open_source_licenses.txt

@vcd/sdk 15.0.4 GA
======================================================================

The following copyright statements and licenses apply to various open
source software packages (or portions thereof) that are included in
this VMware service.

The VMware service may also include other VMware components, which may
contain additional open source software packages. One or more such
open_source_licenses.txt files may therefore accompany this VMware
service.

The VMware service that includes this file does not necessarily use all the open 
source software packages referred to below and may also only use portions of a 
given package.

==================== TABLE OF CONTENTS ====================

The following is a listing of the open source components detailed in
this document. This list is provided for your convenience; please read
further if you wish to review the copyright notice(s) and the full text
of the license associated with each component.


SECTION 1: Apache License, V2.0

   >>> rxjs-7.8.0

SECTION 2: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES

   >>> @vcd/bindings-9.1.1
   >>> tslib-2.3.0
   >>> zone.js-0.12.0
   >>> @ngrx/store-15.4.0
   >>> @angular/animations-15.2.0
   >>> @angular/common-15.2.0
   >>> @angular/compiler-15.2.0
   >>> @angular/core-15.2.0
   >>> @angular/forms-15.2.0
   >>> @angular/platform-browser-dynamic-15.2.0
   >>> @angular/platform-browser-15.2.0
   >>> @angular/router-15.2.0


APPENDIX. Standard License Files

   >>> Apache License, V2.0


-------------------- SECTION 1: Apache License, V2.0 --------------------

   >>> rxjs-7.8.0

       License : Apache 2.0

       ADDITIONAL LICENSE INFORMATION

       > 0BSD

       package/dist/bundles/rxjs.umd.js

       Copyright (c) Microsoft Corporation

       See SECTION 10 in 'LICENSE TEXT REFERENCE TABLE'

       package/dist/bundles/rxjs.umd.js.map

       Copyright (c) Microsoft Corporation

       See SECTION 7 in 'LICENSE TEXT REFERENCE TABLE'

       package/dist/bundles/rxjs.umd.min.js

       (c) b.value

       See SECTION 4 in 'LICENSE TEXT REFERENCE TABLE'

       > Apache2.0

       package/dist/bundles/rxjs.umd.js

       Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors

       See SECTION 9 in 'LICENSE TEXT REFERENCE TABLE'

       package/dist/bundles/rxjs.umd.min.js

       Copyright (c) Microsoft Corporation

       See SECTION 8 in 'LICENSE TEXT REFERENCE TABLE'

       package/LICENSE.txt

       Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors

       See SECTION 1 in 'LICENSE TEXT REFERENCE TABLE'


-------------------- SECTION 2: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES --------------------

   >>> @vcd/bindings-9.1.1



   >>> tslib-2.3.0

       Copyright (c) Microsoft Corporation.

       Permission to use, copy, modify, and/or distribute this software for any
       purpose with or without fee is hereby granted.

       THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
       REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
       AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
       INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
       LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       PERFORMANCE OF THIS SOFTWARE.

       ADDITIONAL LICENSE INFORMATION

       > 0BSD

       package/CopyrightNotice.txt

       Copyright (c) Microsoft Corporation

       See SECTION 6 in 'LICENSE TEXT REFERENCE TABLE'

       package/LICENSE.txt

       Copyright (c) Microsoft Corporation

       See SECTION 6 in 'LICENSE TEXT REFERENCE TABLE'

       package/tslib.d.ts

       Copyright (c) Microsoft Corporation

       See SECTION 6 in 'LICENSE TEXT REFERENCE TABLE'

       package/tslib.es6.js

       Copyright (c) Microsoft Corporation

       See SECTION 6 in 'LICENSE TEXT REFERENCE TABLE'

       package/tslib.js

       Copyright (c) Microsoft Corporation

       See SECTION 6 in 'LICENSE TEXT REFERENCE TABLE'


   >>> zone.js-0.12.0

       License : MIT


   >>> @ngrx/store-15.4.0

       Found in: package/schematics-core/utility/ast-utils.js

       Copyright Google Inc.

       Use of this source code is governed by an MIT-style license that can be
        * found in the LICENSE file at https://angular.io/license

       ADDITIONAL LICENSE INFORMATION

       > MIT

       package/schematics-core/utility/ast-utils.js.map

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/change.js.map

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/find-component.js

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/find-component.js.map

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/find-module.js

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/find-module.js.map

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/strings.js

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics-core/utility/strings.js.map

       Copyright Google Inc.

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/animations-15.2.0

       > MIT

       package/browser/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/browser/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/browser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/dsl/animation_ast_builder.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/dsl/animation_timeline_builder.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/dsl/animation_transition_expr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/dsl/animation_transition_instruction.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/dsl/style_normalization/animation_style_normalizer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/dsl/style_normalization/web_animations_style_normalizer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/error_helpers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/render/animation_driver.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/render/shared.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/render/timeline_animation_engine.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/render/transition_animation_engine.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/render/web_animations/animatable_props_set.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/render/web_animations/dom_animation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/src/warning_helpers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/testing/src/mock_animation_driver.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/browser/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/animation_event.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/animation_metadata.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/animations.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/players/animation_group_player.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/players/animation_player.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/animations.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/animations.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 20 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/browser.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/browser.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 25 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/browser/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/browser/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 21 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/animations.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/animations.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 22 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/browser.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/browser.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 23 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/browser/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/browser/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 24 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/common-15.2.0

       > MIT

       package/esm2020/http/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/backend.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/client.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/context.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/headers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/interceptor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/jsonp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/params.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/provider.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/request.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/response.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/xhr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/src/xsrf.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/src/api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/src/backend.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/src/module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/src/provider.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/http/testing/src/request.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/common.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/common_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/cookie.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_class.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_component_outlet.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_for_of.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_if.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/asserts.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/error_helper.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/image_loaders/cloudflare_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/image_loaders/imagekit_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/image_loaders/image_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/image_loaders/imgix_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_optimized_image/url.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_plural.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_style.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_switch.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_template_outlet.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom_adapter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom_tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/currencies.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/format_date.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/format_number.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/locale_data_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/locale_data.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/localization.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/location/hash_location_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/location/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/location/location.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/location/location_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/location/platform_location.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/location/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/async_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/case_conversion_pipes.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/date_pipe_config.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/date_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/i18n_plural_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/i18n_select_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/invalid_pipe_argument_error.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/json_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/keyvalue_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/number_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/pipes/slice_pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/platform_id.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/viewport_scroller.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/xhr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/mock_location_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/provide_location_mocks.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/src/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/src/location_shim.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/src/location_upgrade_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/src/params.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/src/utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/common.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/common.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 41 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/http.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/http.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 34 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/http/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/http/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 29 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 32 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/upgrade.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/upgrade.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 43 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/common.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/common.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 40 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/http.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/http.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 33 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/http/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/http/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 30 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 31 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/upgrade.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/upgrade.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 42 in 'LICENSE TEXT REFERENCE TABLE'

       package/http/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/http/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/af.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/af.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/af-NA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/af-NA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/agq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/agq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ak.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ak.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/am.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/am.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-AE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-AE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-BH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-BH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-DJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-DJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-DZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-DZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-EG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-EG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-EH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-EH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-ER.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-ER.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-IL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-IL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-IQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-IQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-JO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-JO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-KM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-KM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-KW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-KW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-LB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-LB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-LY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-LY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-MA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-MA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-OM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-OM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-PS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-PS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-QA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-QA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-SY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-TD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-TD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-TN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-TN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-YE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ar-YE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/asa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/asa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/as.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/as.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ast.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/az-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/az-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/az.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/az-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/az-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/az.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bas.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bas.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/be.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bem.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/be.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bem.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/be-tarask.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/be-tarask.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bez.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bez.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bn-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bn-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bo-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bo-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/br.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/br.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/brx.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/brx.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bs-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bs-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bs.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bs-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bs-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/bs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-AD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-AD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-ES-valencia.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-ES-valencia.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-FR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-FR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-IT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca-IT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ca.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ccp.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ccp-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ccp-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ccp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ceb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ceb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ce.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ce.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/cgg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/cgg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/chr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/chr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ckb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ckb-IR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ckb-IR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ckb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/cs.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/cs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/cy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/cy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/da.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/da-GL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/da-GL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/da.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dav.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dav.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-AT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-AT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-IT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-IT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-LI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-LI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-LU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de-LU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/de.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dje.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dje.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/doi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/doi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dsb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dsb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dua.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dua.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dyo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dyo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dz.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/dz.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ebu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ebu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ee.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ee.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ee-TG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ee-TG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/el-CY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/el-CY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/el.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/el.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-001.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-001.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-150.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-150.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-AU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-BZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-CY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-DM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ER.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ER.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-FM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-GY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-HK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-HK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-IO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-JE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-JE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-JM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-JM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-KY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-LC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-LC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-LR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-LR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-LS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-LS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MP.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MP.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-MY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-NZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-PW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-RW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-RW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-SZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-TZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-UG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-UG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-UM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-UM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-VU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-WS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-WS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ZA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ZA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ZM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ZM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ZW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/en-ZW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/eo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/eo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-419.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-419.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-AR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-AR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-BO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-BO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-BR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-BR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-BZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-BZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-CU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-DO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-DO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-EA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-EA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-EC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-EC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-GQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-GQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-GT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-GT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-HN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-HN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-IC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-IC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-MX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-MX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-NI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-NI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-PY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-SV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-SV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-US.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-US.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-UY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-UY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-VE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/es-VE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/et.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/et.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/eu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/eu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ewo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ewo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/af.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/af.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/af-NA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/af-NA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/agq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/agq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ak.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ak.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/am.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/am.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-AE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-AE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-BH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-BH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-DJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-DJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-DZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-DZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-EG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-EG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-EH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-EH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-ER.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-ER.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-IL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-IL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-IQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-IQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-JO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-JO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-KM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-KM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-KW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-KW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-LB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-LB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-LY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-LY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-MA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-MA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-OM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-OM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-PS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-PS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-QA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-QA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-SY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-TD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-TD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-TN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-TN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-YE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ar-YE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/asa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/asa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/as.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/as.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ast.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/az-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/az-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/az.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/az-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/az-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/az.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bas.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bas.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/be.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bem.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/be.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bem.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/be-tarask.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/be-tarask.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bez.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bez.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bn-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bn-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bo-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bo-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/br.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/br.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/brx.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/brx.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bs-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bs-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bs.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bs-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bs-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/bs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-AD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-AD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-ES-valencia.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-ES-valencia.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-FR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-FR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-IT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca-IT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ca.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ccp.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ccp-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ccp-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ccp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ceb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ceb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ce.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ce.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/cgg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/cgg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/chr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/chr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ckb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ckb-IR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ckb-IR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ckb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/cs.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/cs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/cy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/cy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/da.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/da-GL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/da-GL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/da.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dav.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dav.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-AT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-AT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-IT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-IT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-LI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-LI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-LU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de-LU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/de.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dje.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dje.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/doi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/doi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dsb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dsb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dua.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dua.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dyo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dyo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dz.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/dz.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ebu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ebu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ee.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ee.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ee-TG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ee-TG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/el-CY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/el-CY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/el.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/el.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-001.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-001.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-150.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-150.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-AU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-BZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-CY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-DM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ER.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ER.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-FM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-GY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-HK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-HK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-IO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-JE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-JE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-JM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-JM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-KY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-LC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-LC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-LR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-LR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-LS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-LS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MP.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MP.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-MY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-NZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-PW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-RW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-RW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-SZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-TZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-UG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-UG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-UM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-UM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-VU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-WS.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-WS.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ZA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ZA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ZM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ZM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ZW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/en-ZW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/eo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/eo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-419.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-419.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-AR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-AR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-BO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-BO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-BR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-BR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-BZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-BZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-CU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-DO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-DO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-EA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-EA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-EC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-EC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-GQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-GQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-GT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-GT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-HN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-HN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-IC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-IC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-MX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-MX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-NI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-NI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-PY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-SV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-SV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-US.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-US.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-UY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-UY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-VE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/es-VE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/et.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/et.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/eu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/eu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ewo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ewo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fa-AF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fa-AF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-BF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-BF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-GM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-GM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-GW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-GW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-LR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-LR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-NG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-NG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-SL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-SL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-SN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Adlm-SN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-GN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-GN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-BF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-BF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-GW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-LR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-LR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-NG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-NG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-SL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-Latn-SL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ff-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fil.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fil.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fo-DK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fo-DK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-BL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-DJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-DJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-DZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-DZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GP.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GP.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-GQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-HT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-HT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-KM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-KM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-LU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-LU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-ML.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-ML.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-MU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-NC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-NC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-PF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-PF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-PM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-PM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-RE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-RE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-RW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-RW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-SC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-SC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-SN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-SN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-SY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-SY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-TD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-TD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-TG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-TG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-TN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-TN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-VU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-VU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-WF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-WF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-YT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fr-YT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fur.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fur.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/fy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ga.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ga-GB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ga-GB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ga.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gd.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gd.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gsw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gsw-FR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gsw-FR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gsw-LI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gsw-LI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gsw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/guz.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/guz.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/gv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ha.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ha-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ha-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ha.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ha-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ha-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/haw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/haw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/he.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/he.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hi-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hi-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hr-BA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hr-BA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hsb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hsb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/hy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ia.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ia.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/id.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/id.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ig.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ig.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ii.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ii.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/is.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/is.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it-SM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it-SM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it-VA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/it-VA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ja.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ja.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/jgo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/jgo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/jmc.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/jmc.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/jv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/jv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ka.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kam.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ka.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kam.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kde.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kde.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kea.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kea.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kgp.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kgp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/khq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/khq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ki.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ki.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kkj.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kkj.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kln.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kln.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/km.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/km.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ko.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kok.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kok.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ko-KP.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ko-KP.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ko.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ks-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ks-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ksb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ksb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ks-Deva.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ks-Deva.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ks.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ksf.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ksf.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ksh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ksh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ks.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ku.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ku.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/kw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ky.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ky.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lag.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lag.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lkt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lkt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln-AO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln-AO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln-CF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln-CF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln-CG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln-CG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ln.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lrc.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lrc-IQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lrc-IQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lrc.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/luo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/luo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/luy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/luy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/lv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mai.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mai.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mas.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mas.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mas-TZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mas-TZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mer.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mfe.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mfe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mgh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mgh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mgo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mgo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ml.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ml.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mni-Beng.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mni-Beng.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mni.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mni.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms-BN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms-BN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms-ID.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms-ID.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ms-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mua.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mua.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/my.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/my.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mzn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/mzn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/naq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/naq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nb-SJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nb-SJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nd.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nd.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nds.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nds.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nds-NL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nds-NL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ne.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ne-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ne-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ne.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-AW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-AW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-BQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-BQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-CW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-CW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-SR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-SR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-SX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nl-SX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nmg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nmg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nnh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nnh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/no.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/no.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nus.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nus.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nyn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/nyn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/om.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/om-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/om-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/om.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/or.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/or.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/os.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/os.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/os-RU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/os-RU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pa-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pa-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pa-Guru.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pa-Guru.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pcm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pcm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ps.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ps.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ps-PK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ps-PK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-AO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-AO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-CV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-CV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-GQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-GQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-GW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-GW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-LU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-LU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-MZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-MZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-PT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-PT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-ST.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-ST.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-TL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/pt-TL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/qu-BO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/qu-BO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/qu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/qu-EC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/qu-EC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/qu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ro.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rof.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rof.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ro-MD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ro-MD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ro.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-BY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-BY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-KG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-KG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-KZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-KZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-MD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-MD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-UA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ru-UA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rwk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rwk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/rw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sah.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sah.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/saq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/saq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sat.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sat.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sat-Olck.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sat-Olck.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sbp.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sbp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sc.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sc.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sd-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sd-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sd-Deva.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sd-Deva.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sd.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sd.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/se.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/se-FI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/se-FI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/seh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/seh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/se.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ses.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/se-SE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/se-SE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ses.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/shi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/shi-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/shi-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/shi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/shi-Tfng.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/shi-Tfng.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/si.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/si.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/smn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/smn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so-DJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so-DJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so-ET.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so-ET.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/so.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sq-MK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sq-MK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sq-XK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sq-XK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl-BA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl-BA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl-ME.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl-ME.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl-XK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Cyrl-XK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn-BA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn-BA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn-ME.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn-ME.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn-XK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr-Latn-XK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/su.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/su-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/su-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/su.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sv-AX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sv-AX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sv-FI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sv-FI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw-CD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw-CD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw-UG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/sw-UG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta-LK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta-LK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta-MY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta-MY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ta-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/te.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/te.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/teo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/teo-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/teo-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/teo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/th.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/th.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ti.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ti-ER.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ti-ER.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ti.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/to.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/to.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tr-CY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tr-CY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/twq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/twq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tzm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/tzm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ug.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ug.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/und.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/und.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ur.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ur-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ur-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/ur.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/uz.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vai.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vai-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vai-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vai.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vai-Vaii.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vai-Vaii.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vun.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/vun.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/wae.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/wae.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/wo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/wo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/xh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/xh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/xog.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/xog.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yav.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yav.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yo-BJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yo-BJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yrl-CO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yrl-CO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yrl-VE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yrl-VE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yue.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yue-Hans.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yue-Hans.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yue-Hant.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yue-Hant.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/yue.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zgh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zgh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans-HK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans-HK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hans-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hant.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hant-HK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hant-HK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hant.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hant-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh-Hant-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/extra/zu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fa-AF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fa-AF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-BF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-BF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-GM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-GM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-GW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-GW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-LR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-LR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-NG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-NG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-SL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-SL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-SN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Adlm-SN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-GN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-GN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-BF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-BF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-GW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-LR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-LR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-NG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-NG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-SL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-Latn-SL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ff-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fil.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fil.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fo-DK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fo-DK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-BL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-CM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-DJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-DJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-DZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-DZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GP.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GP.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-GQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-HT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-HT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-KM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-KM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-LU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-LU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-ML.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-ML.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-MU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-NC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-NC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-PF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-PF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-PM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-PM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-RE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-RE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-RW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-RW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-SC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-SC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-SN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-SN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-SY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-SY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-TD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-TD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-TG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-TG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-TN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-TN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-VU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-VU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-WF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-WF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-YT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fr-YT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fur.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fur.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/fy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ga.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ga-GB.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ga-GB.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ga.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gd.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gd.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/af.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/af-NA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/agq.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ak.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/am.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-AE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-BH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-DJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-DZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-EG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-EH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-ER.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-IL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-IQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-JO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-KM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-KW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-LB.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-LY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-MA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-MR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-OM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-PS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-QA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-SA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-SD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-SO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-SS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-SY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-TD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-TN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ar-YE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/asa.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/as.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ast.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/az-Cyrl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/az.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/az-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bas.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/be.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bem.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/be-tarask.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bez.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bm.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bn-IN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bo-IN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/br.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/brx.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bs-Cyrl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bs.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/bs-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ca-AD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ca-ES-valencia.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ca-FR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ca-IT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ca.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ccp-IN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ccp.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ceb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ce.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/cgg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/chr.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ckb-IR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ckb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/cs.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/cy.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/da-GL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/da.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/dav.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de-AT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de-BE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de-CH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de-IT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de-LI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/de-LU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/dje.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/doi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/dsb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/dua.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/dyo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/dz.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ebu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ee.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ee-TG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/el-CY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/el.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-001.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-150.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-AE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-AG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-AI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-AS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-AT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-AU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BB.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-BZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CX.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-CY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-DE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-DG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-DK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-DM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-ER.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-FI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-FJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-FK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-FM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GB.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-GY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-HK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-IE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-IL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-IM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-IN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-IO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-JE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-JM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-KE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-KI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-KN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-KY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-LC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-LR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-LS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MP.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MV.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-MY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-NZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-PG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-PH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-PK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-PN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-PR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-PW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-RW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SB.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SX.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-SZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-TC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-TK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-TO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-TT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-TV.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-TZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-UG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-UM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-VC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-VG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-VI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-VU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-WS.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-ZA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-ZM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/en-ZW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/eo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-419.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-AR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-BO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-BR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-BZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-CL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-CO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-CR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-CU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-DO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-EA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-EC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-GQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-GT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-HN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-IC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-MX.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-NI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-PA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-PE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-PH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-PR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-PY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-SV.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-US.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-UY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/es-VE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/et.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/eu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ewo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fa-AF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fa.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-BF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-CM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-GH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-GM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-GW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-LR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-MR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-NE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-NG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-SL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Adlm-SN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-CM.js

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-GN.js

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-BF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-CM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-GH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-GM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-GN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-GW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-LR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-MR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-NE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-NG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-Latn-SL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ff-MR.js

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fil.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fo-DK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-BE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-BF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-BI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-BJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-BL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-CM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-DJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-DZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-GA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-GF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-GN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-GP.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-GQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-HT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-KM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-LU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-ML.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-MU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-NC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-NE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-PF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-PM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-RE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-RW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-SC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-SN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-SY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-TD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-TG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-TN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-VU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-WF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fr-YT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fur.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/fy.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ga-GB.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ga.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gd.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gsw-FR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gsw.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gsw-LI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/guz.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/gv.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ha-GH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ha.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ha-NE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/haw.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/he.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hi-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hr-BA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hr.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hsb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/hy.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ia.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/id.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ig.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ii.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/is.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/it-CH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/it.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/it-SM.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/it-VA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ja.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/jgo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/jmc.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/jv.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kab.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ka.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kam.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kde.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kea.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kgp.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/khq.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ki.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kkj.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kk.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kln.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/km.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ko.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kok.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ko-KP.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ks-Arab.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ksb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ks-Deva.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ksf.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ksh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ks.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ku.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/kw.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ky.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lag.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lkt.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ln-AO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ln-CF.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ln-CG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ln.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lrc-IQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lrc.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lt.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/luo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/luy.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/lv.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mai.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mas.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mas-TZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mer.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mfe.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mgh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mgo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mk.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ml.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mni-Beng.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mni.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mr.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ms-BN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ms-ID.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ms.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ms-SG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mt.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mua.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/my.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/mzn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/naq.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nb.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nb-SJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nd.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nds.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nds-NL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ne-IN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ne.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl-AW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl-BE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl-BQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl-CW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl-SR.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nl-SX.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nmg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nnh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/no.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nus.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/nyn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/om.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/om-KE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/or.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/os.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/os-RU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pa-Arab.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pa-Guru.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pa.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pcm.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ps.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ps-PK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-AO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-CH.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-CV.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-GQ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-GW.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-LU.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-MO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-MZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-PT.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-ST.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/pt-TL.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/qu-BO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/qu-EC.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/qu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/rm.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/rn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/rof.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ro.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ro-MD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ru-BY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ru.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ru-KG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ru-KZ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ru-MD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ru-UA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/rw.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/rwk.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sah.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sa.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/saq.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sat.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sat-Olck.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sbp.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sc.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sd-Arab.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sd-Deva.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sd.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/se-FI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/seh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/se.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/se-SE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ses.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/shi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/shi-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/shi-Tfng.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/si.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sk.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/smn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/so-DJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/so-ET.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/so.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/so-KE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sq.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sq-MK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sq-XK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Cyrl-BA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Cyrl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Cyrl-ME.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Cyrl-XK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Latn-BA.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Latn-ME.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sr-Latn-XK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/su.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/su-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sv-AX.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sv-FI.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sv.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sw-CD.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sw.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sw-KE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/sw-UG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ta.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ta-LK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ta-MY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ta-SG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/te.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/teo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/teo-KE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/tg.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/th.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ti-ER.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ti.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/tk.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/to.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/tr-CY.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/tr.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/tt.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/twq.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/tzm.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ug.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/uk.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/und.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ur-IN.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/ur.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/uz-Arab.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/uz-Cyrl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/uz.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/uz-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/vai.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/vai-Latn.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/vai-Vaii.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/vi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/vun.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/wae.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/wo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/xh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/xog.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yav.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yi.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yo-BJ.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yo.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yrl-CO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yrl.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yrl-VE.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yue-Hans.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yue-Hant.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/yue.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zgh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hans-HK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hans.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hans-MO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hans-SG.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hant-HK.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hant.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh-Hant-MO.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zh.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/global/zu.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gsw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gsw-FR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gsw-FR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gsw-LI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gsw-LI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gsw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/guz.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/guz.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/gv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ha.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ha-GH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ha-GH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ha.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ha-NE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ha-NE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/haw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/haw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/he.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/he.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hi-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hi-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hr-BA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hr-BA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hsb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hsb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/hy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ia.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ia.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/id.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/id.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ig.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ig.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ii.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ii.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/is.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/is.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it-SM.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it-SM.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it-VA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/it-VA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ja.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ja.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/jgo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/jgo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/jmc.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/jmc.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/jv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/jv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ka.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kam.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ka.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kam.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kde.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kde.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kea.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kea.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kgp.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kgp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/khq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/khq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ki.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ki.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kkj.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kkj.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kln.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kln.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/km.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/km.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ko.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kok.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kok.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ko-KP.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ko-KP.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ko.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ks-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ks-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ksb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ksb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ks-Deva.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ks-Deva.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ks.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ksf.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ksf.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ksh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ksh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ks.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ku.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ku.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/kw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ky.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ky.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lag.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lag.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lkt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lkt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln-AO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln-AO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln-CF.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln-CF.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln-CG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln-CG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ln.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lrc.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lrc-IQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lrc-IQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lrc.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/luo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/luo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/luy.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/luy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/lv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mai.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mai.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mas.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mas.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mas-TZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mas-TZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mer.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mfe.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mfe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mgh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mgh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mgo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mgo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ml.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ml.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mni-Beng.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mni-Beng.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mni.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mni.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms-BN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms-BN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms-ID.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms-ID.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ms-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mua.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mua.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/my.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/my.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mzn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/mzn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/naq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/naq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nb.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nb-SJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nb-SJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nd.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nd.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nds.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nds.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nds-NL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nds-NL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ne.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ne-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ne-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ne.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-AW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-AW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-BE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-BE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-BQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-BQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-CW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-CW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-SR.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-SR.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-SX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nl-SX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nmg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nmg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nnh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nnh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/no.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/no.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nus.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nus.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nyn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/nyn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/om.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/om-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/om-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/om.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/or.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/or.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/os.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/os.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/os-RU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/os-RU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pa-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pa-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pa-Guru.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pa-Guru.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pcm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pcm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ps.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ps.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ps-PK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ps-PK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-AO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-AO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-CH.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-CH.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-CV.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-CV.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-GQ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-GQ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-GW.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-GW.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-LU.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-LU.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-MZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-MZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-PT.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-PT.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-ST.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-ST.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-TL.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/pt-TL.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/qu-BO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/qu-BO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/qu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/qu-EC.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/qu-EC.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/qu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ro.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rof.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rof.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ro-MD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ro-MD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ro.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-BY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-BY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-KG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-KG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-KZ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-KZ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-MD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-MD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-UA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ru-UA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rwk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rwk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/rw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sa.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sah.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sah.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sa.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/saq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/saq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sat.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sat.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sat-Olck.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sat-Olck.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sbp.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sbp.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sc.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sc.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sd-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sd-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sd-Deva.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sd-Deva.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sd.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sd.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/se.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/se-FI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/se-FI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/seh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/seh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/se.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ses.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/se-SE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/se-SE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ses.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/shi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/shi-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/shi-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/shi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/shi-Tfng.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/shi-Tfng.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/si.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/si.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/smn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/smn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so-DJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so-DJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so-ET.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so-ET.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/so.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sq-MK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sq-MK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sq-XK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sq-XK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl-BA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl-BA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl-ME.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl-ME.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl-XK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Cyrl-XK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn-BA.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn-BA.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn-ME.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn-ME.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn-XK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr-Latn-XK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/su.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/su-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/su-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/su.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sv-AX.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sv-AX.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sv.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sv-FI.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sv-FI.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sv.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw-CD.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw-CD.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw-UG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/sw-UG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta-LK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta-LK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta-MY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta-MY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ta-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/te.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/te.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/teo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/teo-KE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/teo-KE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/teo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tg.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tg.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/th.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/th.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ti.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ti-ER.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ti-ER.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ti.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/to.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/to.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tr-CY.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tr-CY.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tr.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tt.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tt.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/twq.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/twq.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tzm.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/tzm.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ug.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ug.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uk.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uk.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/und.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/und.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ur.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ur-IN.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ur-IN.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/ur.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz-Arab.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz-Arab.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz-Cyrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz-Cyrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/uz.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vai.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vai-Latn.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vai-Latn.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vai.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vai-Vaii.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vai-Vaii.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vun.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/vun.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/wae.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/wae.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/wo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/wo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/xh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/xh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/xog.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/xog.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yav.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yav.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yi.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yi.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yo-BJ.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yo-BJ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yo.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yo.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yrl-CO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yrl-CO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yrl.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yrl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yrl-VE.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yrl-VE.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yue.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yue-Hans.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yue-Hans.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yue-Hant.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yue-Hant.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/yue.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zgh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zgh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans-HK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans-HK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans-SG.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hans-SG.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hant.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hant-HK.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hant-HK.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hant.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hant-MO.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh-Hant-MO.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zh.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zu.d.ts

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/locales/zu.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/upgrade/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/compiler-15.2.0

       > MIT

       package/esm2020/compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/assertions.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/chars.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/compiler_facade_interface.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/compiler_util/expression_converter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/config.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/constant_pool.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/core.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/expression_parser/ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/expression_parser/lexer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/expression_parser/parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/big_integer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/digest.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/extractor_merger.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/i18n_ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/i18n_html_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/i18n_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/message_bundle.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/parse_util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/placeholder.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/serializer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/xliff2.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/xliff.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/xmb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/xml_helper.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/serializers/xtb.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/translation_bundle.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/injectable_compiler_2.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/jit_compiler_facade.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/entities.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/html_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/html_tags.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/html_whitespaces.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/icu_ast_expander.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/interpolation_config.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/lexer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/tags.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/xml_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/ml_parser/xml_tags.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/abstract_emitter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/abstract_js_emitter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/map_util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/output_ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/output_jit.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/output_jit_trusted_types.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/output/source_map.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/parse_util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/class_metadata.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/component.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/factory.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/injectable.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/ng_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/partial/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_ast.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_class_metadata_compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_identifiers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_injector_compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_jit.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_module_compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_pipe_compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/r3_template_transform.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/i18n/context.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/i18n/icu_serializer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/i18n/meta.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/i18n/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/style_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/t2_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/t2_binder.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/template.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/resource_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/schema/dom_element_schema_registry.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/schema/dom_security_schema.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/schema/element_schema_registry.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/schema/trusted_types_sinks.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/selector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/shadow_css.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/style_url_resolver.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/template_parser/binding_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/template_parser/template_preparser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/compiler.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/compiler.mjs.map

       Copyright Google LLC

       See SECTION 11 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 15 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/compiler.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/compiler.mjs.map

       Copyright Google LLC

       See SECTION 11 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 15 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/core-15.2.0

       > MIT

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/application_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/application_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/application_tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/change_detection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/change_detector_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/constants.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/differs/default_iterable_differ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/differs/default_keyvalue_differ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/differs/iterable_differs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/differs/keyvalue_differs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/change_detection/pipe_transform.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/compiler/compiler_facade_interface.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/compiler/compiler_facade.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/console.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/core.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/core_private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/core_render3_private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/debug/debug_node.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/create_injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/forward_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/initializer_token.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/injectable.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/injection_token.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/injector_compatibility.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/injector_marker.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/injector_token.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/inject_switch.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/interface/defs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/interface/injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/interface/provider.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/internal_tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/jit/environment.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/jit/injectable.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/jit/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/metadata_attr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/metadata.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/null_injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/provider_collection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/provider_token.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/r3_injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/reflective_errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/reflective_injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/reflective_key.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/reflective_provider.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/di/scope.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/error_details_base_url.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/error_handler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/event_emitter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/locale_data_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/locale_en.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/localization.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/i18n/tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/interface/simple_change.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/interface/type.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/compiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/component_factory.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/component_factory_resolver.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/element_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/ng_module_factory_loader_impl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/ng_module_factory_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/ng_module_factory.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/ng_module_registration.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/query_list.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/template_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/view_container_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/linker/view_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/di.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/directives.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/do_boostrap.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/ng_module_def.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/ng_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/resource_loading.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/schema.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/metadata/view.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/platform_core_providers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/r3_symbols.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/reflection/platform_reflection_capabilities.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/reflection/reflection_capabilities.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/assert.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/bindings.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/collect_native_nodes.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/component.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/component_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/context_discovery.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/definition_factory.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/definition.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/di.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/di_setup.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/errors_di.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/features/copy_definition_feature.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/features/host_directives_feature.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/features/inherit_definition_feature.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/features/ng_onchanges_feature.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/features/standalone_feature.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/fields.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/global_utils_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/hooks.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_apply.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_debug.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_insert_before_index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_locale_id.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_parse.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_postprocess.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_tree_shaking.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/i18n/i18n_util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/advance.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/all.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/attribute.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/change_detection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/class_map_interpolation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/di_attr.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/di.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/element_container.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/element.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/element_validation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/host_property.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/i18n_icu_container_visitor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/i18n.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/interpolation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/listener.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/namespace.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/next_context.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/projection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/property.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/shared.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/storage.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/style_map_interpolation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/style_prop_interpolation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/styling.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/template.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/text_interpolation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/instructions/text.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/container.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/context.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/definition.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/document.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/i18n.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/injector.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/lview_tracking.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/projection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/public_definitions.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/query.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/renderer_dom.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/renderer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/sanitization.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/styling.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/type_checks.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/interfaces/view.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/environment.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/module_patch.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/partial.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/jit/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/metadata.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/namespaces.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/ng_module_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/node_assert.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/node_manipulation_i18n.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/node_manipulation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/node_selector_matcher.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/pipe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/profiler.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/pure_function.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/query.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/state.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/styling/class_differ.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/styling/static_styling.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/styling/style_binding_list.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/styling/styling_parser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/tokens.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/change_detection_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/discovery_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/global_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/injector_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/misc_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/stringify_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/view_traversal_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/util/view_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view_engine_compatibility_prebound.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render3/view_ref.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render/api_flags.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render/api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/render.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/bypass.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/html_sanitizer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/iframe_attrs_validation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/inert_body.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/sanitization.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/sanitizer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/security.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/sanitization/url_sanitizer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/testability/testability.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/array_utils.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/assert.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/char_code.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/closure.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/coercion.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/comparison.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/decorators.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/dom.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/empty.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/global.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/is_dev_mode.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/iterable.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/lang.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/microtask.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/ng_dev_mode.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/ng_i18n_closure_mode.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/ng_jit_mode.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/ng_reflect.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/noop.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/property.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/raf.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/security/trusted_type_defs.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/security/trusted_types_bypass.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/security/trusted_types.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/stringify.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util/symbol.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/view/provider_flags.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/zone/async-stack-tagging.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/zone.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/zone/ng_zone.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/async.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/component_fixture.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/fake_async.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/logger.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/metadata_override.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/metadata_overrider.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/ng_zone_mock.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/resolvers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/styling.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing_internal.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/core.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/core.mjs.map

       Copyright Google LLC

       See SECTION 11 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs.map

       Copyright Google LLC

       See SECTION 28 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/core.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/core.mjs.map

       Copyright Google LLC

       See SECTION 11 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs.map

       Copyright Google LLC

       See SECTION 28 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics/migrations/relative-link-resolution/bundle.js

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics/migrations/relative-link-resolution/bundle.js.map

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics/migrations/router-link-with-href/bundle.js

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics/migrations/router-link-with-href/bundle.js.map

       Copyright Google LLC

       See SECTION 5 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics/ng-generate/standalone-migration/bundle.js

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/schematics/ng-generate/standalone-migration/bundle.js.map

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/forms-15.2.0

       > MIT

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/abstract_control_directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/abstract_form_group_directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/checkbox_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/control_container.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/control_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/default_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/error_examples.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/form_interface.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_control.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_control_status.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_form.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_model_group.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_model.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/ng_no_validate_directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/number_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/radio_control_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/range_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/reactive_directives/form_control_directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/reactive_directives/form_control_name.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/reactive_directives/form_group_directive.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/reactive_directives/form_group_name.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/reactive_errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/select_control_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/select_multiple_control_value_accessor.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/shared.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/template_driven_errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/validators.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/errors.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/form_builder.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/form_providers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/forms.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/model/abstract_model.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/model/form_array.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/model/form_control.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/model/form_group.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/validators.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/forms.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/forms.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 46 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/forms.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/forms.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 47 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/platform-browser-dynamic-15.2.0

       > MIT

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/compiler_factory.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/platform-browser-dynamic.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/platform_core_dynamic.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/platform_providers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/resource_loader/resource_loader_cache.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/resource_loader/resource_loader_impl.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/metadata_overrider.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/platform_core_dynamic_testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/private_export_testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/platform-browser-dynamic.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/platform-browser-dynamic.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 39 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 14 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/platform-browser-dynamic.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/platform-browser-dynamic.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 39 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 13 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/platform-browser-15.2.0

       > MIT

       package/animations/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/src/animation_builder.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/src/animations.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/src/module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/animations/src/providers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/browser_adapter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/generic_browser_adapter.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/meta.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/server-transition.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/testability.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/title.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/tools/browser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/tools/common_tools.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/tools/tools.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/browser/transfer_state.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/debug/by.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/debug/ng_probe.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/dom_renderer.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/events/dom_events.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/events/event_manager.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/events/hammer_gestures.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/events/key_events.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/shared_styles_host.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/dom/util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/platform-browser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/security/dom_sanitization_service.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/browser.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/browser_util.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/matchers.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/mock_platform_location_flag.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/animations.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/animations.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 18 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/platform-browser.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/platform-browser.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 37 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 19 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/animations.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/animations.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 16 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/platform-browser.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/platform-browser.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 38 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 17 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


   >>> @angular/router-15.2.0

       > MIT

       package/esm2020/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/apply_redirects.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/components/empty_outlet.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/create_router_state.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/create_url_tree.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/create_url_tree_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/deprecated_load_children.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/router_link_active.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/router_link.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/directives/router_outlet.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/events.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/models.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/navigation_canceling_error.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/navigation_transition.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/activate_routes.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/apply_redirects.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/check_guards.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/prioritized_guard_value.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/recognize.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/resolve_data.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/operators/switch_tap.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/page_title_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/private_export.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/provide_router.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/recognize.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_config_loader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_config.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/route_reuse_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_outlet_context.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_preloader.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_scroller.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/router_state.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/shared.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/url_handling_strategy.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/url_tree.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/collection.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/config_matching.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/config.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/navigations.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/preactivation.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/tree.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/utils/type_guards.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/src/version.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/router_testing_harness.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/router_testing_module.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/testing/src/testing.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/index.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/public_api.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/esm2020/upgrade/src/upgrade.mjs

       Copyright Google LLC

       See SECTION 2 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/router.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/router.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 44 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 36 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/upgrade.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2015/upgrade.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 27 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/router.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/router.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 45 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/testing.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 35 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/upgrade.mjs

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'

       package/fesm2020/upgrade.mjs.map
       [NOTE:  VMWARE, INC. ELECTS TO USE AND DISTRIBUTE THIS SUBPACKAGE UNDER THE TERMS OF THE MIT LICENSE, THE TEXT OF WHICH IS SET FORTH BELOW. THE ORIGINAL LICENSE TERMS ARE REPRODUCED BELOW ONLY AS A REFERENCE.]

       Copyright Google LLC

       See SECTION 26 in 'LICENSE TEXT REFERENCE TABLE'

       package/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/testing/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 3 in 'LICENSE TEXT REFERENCE TABLE'

       package/upgrade/index.d.ts

       (c) 2010-2022 Google LLC. https://angular.io

       See SECTION 12 in 'LICENSE TEXT REFERENCE TABLE'


==================== APPENDIX. Standard License Files ====================

-------------------- SECTION 1: Apache License, V2.0 --------------------

Apache License 

Version 2.0, January 2004 
http://www.apache.org/licenses/ 

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by the
copyright owner that is granting the License.  

"Legal Entity" shall mean the union of the acting entity and all other
entities that control, are controlled by, or are under common control
with that entity. For the purposes of this definition, "control" means
(i) the power, direct or indirect, to cause the direction or management
of such entity, whether by contract or otherwise, or (ii) ownership
of fifty percent (50%) or more of the outstanding shares, or (iii)
beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity exercising
permissions granted by this License.  

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation source,
and configuration files.

"Object" form shall mean any form resulting from mechanical transformation
or translation of a Source form, including but not limited to compiled
object code, generated documentation, and conversions to other media
types.  

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a copyright
notice that is included in or attached to the work (an example is provided
in the Appendix below).  

"Derivative Works" shall mean any work, whether in Source or Object form,
that is based on (or derived from) the Work and for which the editorial
revisions, annotations, elaborations, or other modifications represent,
as a whole, an original work of authorship. For the purposes of this
License, Derivative Works shall not include works that remain separable
from, or merely link (or bind by name) to the interfaces of, the Work
and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including the
original version of the Work and any modifications or additions to
that Work or Derivative Works thereof, that is intentionally submitted
to Licensor for inclusion in the Work by the copyright owner or by an
individual or Legal Entity authorized to submit on behalf of the copyright
owner. For the purposes of this definition, "submitted" means any form of
electronic, verbal, or written communication sent to the Licensor or its
representatives, including but not limited to communication on electronic
mailing lists, source code control systems, and issue tracking systems
that are managed by, or on behalf of, the Licensor for the purpose of
discussing and improving the Work, but excluding communication that is
conspicuously marked or otherwise designated in writing by the copyright
owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License.
Subject to the terms and conditions of this License, each Contributor
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
royalty-free, irrevocable copyright license to reproduce, prepare
Derivative Works of, publicly display, publicly perform, sublicense, and
distribute the Work and such Derivative Works in Source or Object form.

3. Grant of Patent License.
Subject to the terms and conditions of this License, each Contributor
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
royalty- free, irrevocable (except as stated in this section) patent
license to make, have made, use, offer to sell, sell, import, and
otherwise transfer the Work, where such license applies only to those
patent claims licensable by such Contributor that are necessarily
infringed by their Contribution(s) alone or by combination of
their Contribution(s) with the Work to which such Contribution(s)
was submitted. If You institute patent litigation against any entity
(including a cross-claim or counterclaim in a lawsuit) alleging that the
Work or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses granted
to You under this License for that Work shall terminate as of the date
such litigation is filed.

4. Redistribution.
You may reproduce and distribute copies of the Work or Derivative Works
thereof in any medium, with or without modifications, and in Source or
Object form, provided that You meet the following conditions:

  a. You must give any other recipients of the Work or Derivative Works
     a copy of this License; and

  b. You must cause any modified files to carry prominent notices stating
     that You changed the files; and

  c. You must retain, in the Source form of any Derivative Works that
     You distribute, all copyright, patent, trademark, and attribution
     notices from the Source form of the Work, excluding those notices
     that do not pertain to any part of the Derivative Works; and

  d. If the Work includes a "NOTICE" text file as part of its
     distribution, then any Derivative Works that You distribute must
     include a readable copy of the attribution notices contained
     within such NOTICE file, excluding those notices that do not
     pertain to any part of the Derivative Works, in at least one of
     the following places: within a NOTICE text file distributed as part
     of the Derivative Works; within the Source form or documentation,
     if provided along with the Derivative Works; or, within a display
     generated by the Derivative Works, if and wherever such third-party
     notices normally appear. The contents of the NOTICE file are for
     informational purposes only and do not modify the License. You
     may add Your own attribution notices within Derivative Works that
     You distribute, alongside or as an addendum to the NOTICE text
     from the Work, provided that such additional attribution notices
     cannot be construed as modifying the License.  You may add Your own
     copyright statement to Your modifications and may provide additional
     or different license terms and conditions for use, reproduction, or
     distribution of Your modifications, or for any such Derivative Works
     as a whole, provided Your use, reproduction, and distribution of the
     Work otherwise complies with the conditions stated in this License.

5. Submission of Contributions.
Unless You explicitly state otherwise, any Contribution intentionally
submitted for inclusion in the Work by You to the Licensor shall be
under the terms and conditions of this License, without any additional
terms or conditions.  Notwithstanding the above, nothing herein shall
supersede or modify the terms of any separate license agreement you may
have executed with Licensor regarding such Contributions.

6. Trademarks.
This License does not grant permission to use the trade names, trademarks,
service marks, or product names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and
reproducing the content of the NOTICE file.

7. Disclaimer of Warranty.
Unless required by applicable law or agreed to in writing, Licensor
provides the Work (and each Contributor provides its Contributions) on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
express or implied, including, without limitation, any warranties or
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
A PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any risks
associated with Your exercise of permissions under this License.

8. Limitation of Liability.
In no event and under no legal theory, whether in tort (including
negligence), contract, or otherwise, unless required by applicable law
(such as deliberate and grossly negligent acts) or agreed to in writing,
shall any Contributor be liable to You for damages, including any direct,
indirect, special, incidental, or consequential damages of any character
arising as a result of this License or out of the use or inability to
use the Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all other
commercial damages or losses), even if such Contributor has been advised
of the possibility of such damages.

9. Accepting Warranty or Additional Liability.
While redistributing the Work or Derivative Works thereof, You may
choose to offer, and charge a fee for, acceptance of support, warranty,
indemnity, or other liability obligations and/or rights consistent with
this License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf of
any other Contributor, and only if You agree to indemnify, defend, and
hold each Contributor harmless for any liability incurred by, or claims
asserted against, such Contributor by reason of your accepting any such
warranty or additional liability.

END OF TERMS AND CONDITIONS 

APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==================== LICENSE TEXT REFERENCE TABLE ====================

-------------------- SECTION 1 --------------------
                               Apache License
                         Version 2.0, January 2004
                      http://www.apache.org/licenses/

 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

 1. Definitions.

    "License" shall mean the terms and conditions for use, reproduction,
    and distribution as defined by Sections 1 through 9 of this document.

    "Licensor" shall mean the copyright owner or entity authorized by
    the copyright owner that is granting the License.

    "Legal Entity" shall mean the union of the acting entity and all
    other entities that control, are controlled by, or are under common
    control with that entity. For the purposes of this definition,
    "control" means (i) the power, direct or indirect, to cause the
    direction or management of such entity, whether by contract or
    otherwise, or (ii) ownership of fifty percent (50%) or more of the
    outstanding shares, or (iii) beneficial ownership of such entity.

    "You" (or "Your") shall mean an individual or Legal Entity
    exercising permissions granted by this License.

    "Source" form shall mean the preferred form for making modifications,
    including but not limited to software source code, documentation
    source, and configuration files.

    "Object" form shall mean any form resulting from mechanical
    transformation or translation of a Source form, including but
    not limited to compiled object code, generated documentation,
    and conversions to other media types.

    "Work" shall mean the work of authorship, whether in Source or
    Object form, made available under the License, as indicated by a
    copyright notice that is included in or attached to the work
    (an example is provided in the Appendix below).

    "Derivative Works" shall mean any work, whether in Source or Object
    form, that is based on (or derived from) the Work and for which the
    editorial revisions, annotations, elaborations, or other modifications
    represent, as a whole, an original work of authorship. For the purposes
    of this License, Derivative Works shall not include works that remain
    separable from, or merely link (or bind by name) to the interfaces of,
    the Work and Derivative Works thereof.

    "Contribution" shall mean any work of authorship, including
    the original version of the Work and any modifications or additions
    to that Work or Derivative Works thereof, that is intentionally
    submitted to Licensor for inclusion in the Work by the copyright owner
    or by an individual or Legal Entity authorized to submit on behalf of
    the copyright owner. For the purposes of this definition, "submitted"
    means any form of electronic, verbal, or written communication sent
    to the Licensor or its representatives, including but not limited to
    communication on electronic mailing lists, source code control systems,
    and issue tracking systems that are managed by, or on behalf of, the
    Licensor for the purpose of discussing and improving the Work, but
    excluding communication that is conspicuously marked or otherwise
    designated in writing by the copyright owner as "Not a Contribution."

    "Contributor" shall mean Licensor and any individual or Legal Entity
    on behalf of whom a Contribution has been received by Licensor and
    subsequently incorporated within the Work.

 2. Grant of Copyright License. Subject to the terms and conditions of
    this License, each Contributor hereby grants to You a perpetual,
    worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    copyright license to reproduce, prepare Derivative Works of,
    publicly display, publicly perform, sublicense, and distribute the
    Work and such Derivative Works in Source or Object form.

 3. Grant of Patent License. Subject to the terms and conditions of
    this License, each Contributor hereby grants to You a perpetual,
    worldwide, non-exclusive, no-charge, royalty-free, irrevocable
    (except as stated in this section) patent license to make, have made,
    use, offer to sell, sell, import, and otherwise transfer the Work,
    where such license applies only to those patent claims licensable
    by such Contributor that are necessarily infringed by their
    Contribution(s) alone or by combination of their Contribution(s)
    with the Work to which such Contribution(s) was submitted. If You
    institute patent litigation against any entity (including a
    cross-claim or counterclaim in a lawsuit) alleging that the Work
    or a Contribution incorporated within the Work constitutes direct
    or contributory patent infringement, then any patent licenses
    granted to You under this License for that Work shall terminate
    as of the date such litigation is filed.

 4. Redistribution. You may reproduce and distribute copies of the
    Work or Derivative Works thereof in any medium, with or without
    modifications, and in Source or Object form, provided that You
    meet the following conditions:

    (a) You must give any other recipients of the Work or
        Derivative Works a copy of this License; and

    (b) You must cause any modified files to carry prominent notices
        stating that You changed the files; and

    (c) You must retain, in the Source form of any Derivative Works
        that You distribute, all copyright, patent, trademark, and
        attribution notices from the Source form of the Work,
        excluding those notices that do not pertain to any part of
        the Derivative Works; and

    (d) If the Work includes a "NOTICE" text file as part of its
        distribution, then any Derivative Works that You distribute must
        include a readable copy of the attribution notices contained
        within such NOTICE file, excluding those notices that do not
        pertain to any part of the Derivative Works, in at least one
        of the following places: within a NOTICE text file distributed
        as part of the Derivative Works; within the Source form or
        documentation, if provided along with the Derivative Works; or,
        within a display generated by the Derivative Works, if and
        wherever such third-party notices normally appear. The contents
        of the NOTICE file are for informational purposes only and
        do not modify the License. You may add Your own attribution
        notices within Derivative Works that You distribute, alongside
        or as an addendum to the NOTICE text from the Work, provided
        that such additional attribution notices cannot be construed
        as modifying the License.

    You may add Your own copyright statement to Your modifications and
    may provide additional or different license terms and conditions
    for use, reproduction, or distribution of Your modifications, or
    for any such Derivative Works as a whole, provided Your use,
    reproduction, and distribution of the Work otherwise complies with
    the conditions stated in this License.

 5. Submission of Contributions. Unless You explicitly state otherwise,
    any Contribution intentionally submitted for inclusion in the Work
    by You to the Licensor shall be under the terms and conditions of
    this License, without any additional terms or conditions.
    Notwithstanding the above, nothing herein shall supersede or modify
    the terms of any separate license agreement you may have executed
    with Licensor regarding such Contributions.

 6. Trademarks. This License does not grant permission to use the trade
    names, trademarks, service marks, or product names of the Licensor,
    except as required for reasonable and customary use in describing the
    origin of the Work and reproducing the content of the NOTICE file.

 7. Disclaimer of Warranty. Unless required by applicable law or
    agreed to in writing, Licensor provides the Work (and each
    Contributor provides its Contributions) on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    implied, including, without limitation, any warranties or conditions
    of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
    PARTICULAR PURPOSE. You are solely responsible for determining the
    appropriateness of using or redistributing the Work and assume any
    risks associated with Your exercise of permissions under this License.

 8. Limitation of Liability. In no event and under no legal theory,
    whether in tort (including negligence), contract, or otherwise,
    unless required by applicable law (such as deliberate and grossly
    negligent acts) or agreed to in writing, shall any Contributor be
    liable to You for damages, including any direct, indirect, special,
    incidental, or consequential damages of any character arising as a
    result of this License or out of the use or inability to use the
    Work (including but not limited to damages for loss of goodwill,
    work stoppage, computer failure or malfunction, or any and all
    other commercial damages or losses), even if such Contributor
    has been advised of the possibility of such damages.

 9. Accepting Warranty or Additional Liability. While redistributing
    the Work or Derivative Works thereof, You may choose to offer,
    and charge a fee for, acceptance of support, warranty, indemnity,
    or other liability obligations and/or rights consistent with this
    License. However, in accepting such obligations, You may act only
    on Your own behalf and on Your sole responsibility, not on behalf
    of any other Contributor, and only if You agree to indemnify,
    defend, and hold each Contributor harmless for any liability
    incurred by, or claims asserted against, such Contributor by reason
    of your accepting any such warranty or additional liability.

 END OF TERMS AND CONDITIONS

 APPENDIX: How to apply the Apache License to your work.

    To apply the Apache License to your work, attach the following
    boilerplate notice, with the fields enclosed by brackets "[]"
    replaced with your own identifying information. (Don't include
    the brackets!)  The text should be enclosed in the appropriate
    comment syntax for the file format. We also recommend that a
    file or class name and description of purpose be included on the
    same "printed page" as the copyright notice for easier
    identification within third-party archives.

 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-------------------- SECTION 2 --------------------
Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
-------------------- SECTION 3 --------------------
https://angular.io/
 * License:
-------------------- SECTION 4 --------------------
Permission to use, copy, modify, and/or distribute this software for any
    purpose with or without fee is hereby granted.

    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
    PERFORMANCE OF THIS SOFTWARE.
-------------------- SECTION 5 --------------------
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
-------------------- SECTION 6 --------------------
Permission to use, copy, modify, and/or distribute this software for any

purpose with or without fee is hereby granted.



THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH

REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,

INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM

LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR

OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR

PERFORMANCE OF THIS SOFTWARE.
-------------------- SECTION 7 --------------------
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
-------------------- SECTION 8 --------------------
license
  Apache License 2.0
-------------------- SECTION 9 --------------------
the Apache License
-------------------- SECTION 10 --------------------
Permission to use, copy, modify, and/or distribute this software for any

    purpose with or without fee is hereby granted.



    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH

    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY

    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,

    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM

    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR

    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR

    PERFORMANCE OF THIS SOFTWARE.
-------------------- SECTION 11 --------------------
Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */
-------------------- SECTION 12 --------------------
 * (c) 2010-2022 Google LLC. https://angular.io/
 * License: MIT
-------------------- SECTION 13 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable} from '@angular/core'; import {TestComponentRenderer} from '@angular/core/testing';  /**  * A DOM based implementation of the TestComponentRenderer.  */ @Injectable() export class DOMTestComponentRenderer extends TestComponentRenderer {   constructor(@Inject(DOCUMENT) private _doc: any) {     super();   }    override insertRootElement(rootElId: string) {     this.removeAllRootElements();     const rootElement = getDOM().getDefaultDocument().createElement('div');     rootElement.setAttribute('id', rootElId);     this._doc.body.appendChild(rootElement);   }    override removeAllRootElements() {     // TODO(juliemr): can/should this be optional?     const oldRoots = this._doc.querySelectorAll('[id^=root]');     for (let i = 0; i < oldRoots.length; i++) {       getDOM().remove(oldRoots[i]);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createPlatformFactory, PlatformRef} from '@angular/core'; import {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';  /**  * Platform for dynamic tests  *  * @publicApi  */ export const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =     createPlatformFactory(         platformCoreDynamic,         'coreDynamicTesting',         [],     ); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createPlatformFactory, NgModule, PlatformRef, StaticProvider} from '@angular/core'; import {TestComponentRenderer} from '@angular/core/testing'; import {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic'; import {BrowserTestingModule} from '@angular/platform-browser/testing';  import {DOMTestComponentRenderer} from './dom_test_component_renderer'; import {platformCoreDynamicTesting} from './platform_core_dynamic_testing';  export * from './private_export_testing';  /**  * @publicApi  */ export const platformBrowserDynamicTesting = createPlatformFactory(     platformCoreDynamicTesting, 'browserDynamicTesting',     INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);  /**  * NgModule for testing.  *  * @publicApi  */ @NgModule({   exports: [BrowserTestingModule],   providers: [     {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},   ] }) export class BrowserDynamicTestingModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["getDOM","platformCoreDynamic","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;AAYA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,qBAAqB,CAAA;AACjE,IAAA,WAAA,CAAsC,IAAS,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAC;QAD4B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAK;KAE9C;AAEQ,IAAA,iBAAiB,CAAC,QAAgB,EAAA;QACzC,IAAI,CAAC,qBAAqB,EAAE,CAAC;AAC7B,QAAA,MAAM,WAAW,GAAGA,OAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACvE,QAAA,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;KACzC;IAEQ,qBAAqB,GAAA;;QAE5B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAC1D,QAAA,KAAK,IAAI,CAAC,GAA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AJ3B,SAAA,EAAA;AACT,QAAA,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;AACrE,KAAA,EAAA,OAAA,EAAA,CAHS,oBAAoB,CAAA,EAAA,CAAA,CAAA;sGAKnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;AAC/B,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC;AACrE,qBAAA;AACF,iBAAA,CAAA;;;AC3BD;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 14 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable} from '@angular/core'; import {TestComponentRenderer} from '@angular/core/testing';  /**  * A DOM based implementation of the TestComponentRenderer.  */ @Injectable() export class DOMTestComponentRenderer extends TestComponentRenderer {   constructor(@Inject(DOCUMENT) private _doc: any) {     super();   }    override insertRootElement(rootElId: string) {     this.removeAllRootElements();     const rootElement = getDOM().getDefaultDocument().createElement('div');     rootElement.setAttribute('id', rootElId);     this._doc.body.appendChild(rootElement);   }    override removeAllRootElements() {     // TODO(juliemr): can/should this be optional?     const oldRoots = this._doc.querySelectorAll('[id^=root]');     for (let i = 0; i < oldRoots.length; i++) {       getDOM().remove(oldRoots[i]);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createPlatformFactory, PlatformRef} from '@angular/core'; import {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';  /**  * Platform for dynamic tests  *  * @publicApi  */ export const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =     createPlatformFactory(         platformCoreDynamic,         'coreDynamicTesting',         [],     ); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createPlatformFactory, NgModule, PlatformRef, StaticProvider} from '@angular/core'; import {TestComponentRenderer} from '@angular/core/testing'; import {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic'; import {BrowserTestingModule} from '@angular/platform-browser/testing';  import {DOMTestComponentRenderer} from './dom_test_component_renderer'; import {platformCoreDynamicTesting} from './platform_core_dynamic_testing';  export * from './private_export_testing';  /**  * @publicApi  */ export const platformBrowserDynamicTesting = createPlatformFactory(     platformCoreDynamicTesting, 'browserDynamicTesting',     INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);  /**  * NgModule for testing.  *  * @publicApi  */ @NgModule({   exports: [BrowserTestingModule],   providers: [     {provide: TestComponentRenderer, useClass: DOMTestComponentRenderer},   ] }) export class BrowserDynamicTestingModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["getDOM","platformCoreDynamic","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;AAYA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,qBAAqB,CAAA;AACjE,IAAA,WAAA,CAAsC,IAAS,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAC;AAD4B,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAK;KAE9C;AAEQ,IAAA,iBAAiB,CAAC,QAAgB,EAAA;QACzC,IAAI,CAAC,qBAAqB,EAAE,CAAC;AAC7B,QAAA,MAAM,WAAW,GAAGA,OAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACvE,QAAA,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;KACzC;IAEQ,qBAAqB,GAAA;;QAE5B,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAC1D,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACxCA,OAAM,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9B,SAAA;KACF;;AAlBU,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,kBACf,QAAQ,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CA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AwB,EAAC;AACrE,qBAAA;iBACF,CAAA;;;AC3BD;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 15 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/compiler/testing/src/testing.ts","../../../../../../packages/compiler/testing/public_api.ts","../../../../../../packages/compiler/testing/index.ts","../../../../../../packages/compiler/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all APIs of the compiler package.  *  * <div class=\"callout is-critical\">  *   <header>Unstable APIs</header>  *   <p>  *     All compiler apis are currently considered experimental and private!  *   </p>  *   <p>  *     We expect the APIs in this package to keep on changing. Do not rely on them.  *   </p>  * </div>  */  // TODO(alxhub): @angular/compiler/testing is unused in Ivy. A placeholder // is left here because the components repo still depends on this package // directly. It will be cleaned up at a later date. // // This export ensures this package is not empty. export const unusedExport = true; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /// <reference types=\"node\" />  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;AAQA;;;;;;;;;;;;;;AAcG;AAEH;AACA;AACA;AACA;AACA;AACO,MAAM,YAAY,GAAG;;ACrB5B;AASA;;ACTA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 16 --------------------
{"version":3,"file":"animations.mjs","sources":["../../../../../../packages/platform-browser/animations/src/animation_builder.ts","../../../../../../packages/platform-browser/animations/src/animation_renderer.ts","../../../../../../packages/platform-browser/animations/src/providers.ts","../../../../../../packages/platform-browser/animations/src/module.ts","../../../../../../packages/platform-browser/animations/src/animations.ts","../../../../../../packages/platform-browser/animations/public_api.ts","../../../../../../packages/platform-browser/animations/index.ts","../../../../../../packages/platform-browser/animations/animations.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationBuilder, AnimationFactory, AnimationMetadata, AnimationOptions, AnimationPlayer, sequence} from '@angular/animations'; import {DOCUMENT} from '@angular/common'; import {Inject, Injectable, RendererFactory2, RendererType2, ViewEncapsulation} from '@angular/core';  import {AnimationRenderer} from './animation_renderer';  @Injectable() export class BrowserAnimationBuilder extends AnimationBuilder {   private _nextAnimationId = 0;   private _renderer: AnimationRenderer;    constructor(rootRenderer: RendererFactory2, @Inject(DOCUMENT) doc: any) {     super();     const typeData =         {id: '0', encapsulation: ViewEncapsulation.None, styles: [], data: {animation: []}} as         RendererType2;     this._renderer = rootRenderer.createRenderer(doc.body, typeData) as AnimationRenderer;   }    build(animation: AnimationMetadata|AnimationMetadata[]): AnimationFactory {     const id = this._nextAnimationId.toString();     this._nextAnimationId++;     const entry = Array.isArray(animation) ? sequence(animation) : animation;     issueAnimationCommand(this._renderer, null, id, 'register', [entry]);     return new BrowserAnimationFactory(id, this._renderer);   } }  export class BrowserAnimationFactory extends AnimationFactory {   constructor(private _id: string, private _renderer: AnimationRenderer) {     super();   }    create(element: any, options?: AnimationOptions): AnimationPlayer {     return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);   } }  export class RendererAnimationPlayer implements AnimationPlayer {   public parentPlayer: AnimationPlayer|null = null;   private _started = false;    constructor(       public id: string, public element: any, options: AnimationOptions,       private _renderer: AnimationRenderer) {     this._command('create', options);   }    private _listen(eventName: string, callback: (event: any) => any): () => void {     return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);   }    private _command(command: string, ...args: any[]) {     return issueAnimationCommand(this._renderer, this.element, this.id, command, args);   }    onDone(fn: () => void): void {     this._listen('done', fn);   }    onStart(fn: () => void): void {     this._listen('start', fn);   }    onDestroy(fn: () => void): void {     this._listen('destroy', fn);   }    init(): void {     this._command('init');   }    hasStarted(): boolean {     return this._started;   }    play(): void {     this._command('play');     this._started = true;   }    pause(): void {     this._command('pause');   }    restart(): void {     this._command('restart');   }    finish(): void {     this._command('finish');   }    destroy(): void {     this._command('destroy');   }    reset(): void {     this._command('reset');     this._started = false;   }    setPosition(p: number): void {     this._command('setPosition', p);   }    getPosition(): number {     return this._renderer.engine.players[+this.id]?.getPosition() ?? 0;   }    public totalTime = 0; }  function issueAnimationCommand(     renderer: AnimationRenderer, element: any, id: string, command: string, args: any[]): any {   return renderer.setProperty(element, `@@${id}:${command}`, args); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationTriggerMetadata} from '@angular/animations'; import {ɵAnimationEngine as AnimationEngine} from '@angular/animations/browser'; import {Injectable, NgZone, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2} from '@angular/core';  const ANIMATION_PREFIX = '@'; const DISABLE_ANIMATIONS_FLAG = '@.disabled';  // Define a recursive type to allow for nested arrays of `AnimationTriggerMetadata`. Note that an // interface declaration is used as TypeScript prior to 3.7 does not support recursive type // references, see https://github.com/microsoft/TypeScript/pull/33050 for details. type NestedAnimationTriggerMetadata = AnimationTriggerMetadata|RecursiveAnimationTriggerMetadata; interface RecursiveAnimationTriggerMetadata extends Array<NestedAnimationTriggerMetadata> {}  @Injectable() export class AnimationRendererFactory implements RendererFactory2 {   private _currentId: number = 0;   private _microtaskId: number = 1;   private _animationCallbacksBuffer: [(e: any) => any, any][] = [];   private _rendererCache = new Map<Renderer2, BaseAnimationRenderer>();   private _cdRecurDepth = 0;   private promise: Promise<any> = Promise.resolve(0);    constructor(       private delegate: RendererFactory2, private engine: AnimationEngine, private _zone: NgZone) {     engine.onRemovalComplete = (element: any, delegate: Renderer2) => {       // Note: if a component element has a leave animation, and a host leave animation,       // the view engine will call `removeChild` for the parent       // component renderer as well as for the child component renderer.       // Therefore, we need to check if we already removed the element.       const parentNode = delegate?.parentNode(element);       if (parentNode) {         delegate.removeChild(parentNode, element);       }     };   }    createRenderer(hostElement: any, type: RendererType2): Renderer2 {     const EMPTY_NAMESPACE_ID = '';      // cache the delegates to find out which cached delegate can     // be used by which cached renderer     const delegate = this.delegate.createRenderer(hostElement, type);     if (!hostElement || !type || !type.data || !type.data['animation']) {       let renderer: BaseAnimationRenderer|undefined = this._rendererCache.get(delegate);       if (!renderer) {         // Ensure that the renderer is removed from the cache on destroy         // since it may contain references to detached DOM nodes.         const onRendererDestroy = () => this._rendererCache.delete(delegate);         renderer =             new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine, onRendererDestroy);         // only cache this result when the base renderer is used         this._rendererCache.set(delegate, renderer);       }       return renderer;     }      const componentId = type.id;     const namespaceId = type.id + '-' + this._currentId;     this._currentId++;      this.engine.register(namespaceId, hostElement);      const registerTrigger = (trigger: NestedAnimationTriggerMetadata) => {       if (Array.isArray(trigger)) {         trigger.forEach(registerTrigger);       } else {         this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);       }     };     const animationTriggers = type.data['animation'] as NestedAnimationTriggerMetadata[];     animationTriggers.forEach(registerTrigger);      return new AnimationRenderer(this, namespaceId, delegate, this.engine);   }    begin() {     this._cdRecurDepth++;     if (this.delegate.begin) {       this.delegate.begin();     }   }    private _scheduleCountTask() {     // always use promise to schedule microtask instead of use Zone     this.promise.then(() => {       this._microtaskId++;     });   }    /** @internal */   scheduleListenerCallback(count: number, fn: (e: any) => any, data: any) {     if (count >= 0 && count < this._microtaskId) {       this._zone.run(() => fn(data));       return;     }      if (this._animationCallbacksBuffer.length == 0) {       Promise.resolve(null).then(() => {         this._zone.run(() => {           this._animationCallbacksBuffer.forEach(tuple => {             const [fn, data] = tuple;             fn(data);           });           this._animationCallbacksBuffer = [];         });       });     }      this._animationCallbacksBuffer.push([fn, data]);   }    end() {     this._cdRecurDepth--;      // this is to prevent animations from running twice when an inner     // component does CD when a parent component instead has inserted it     if (this._cdRecurDepth == 0) {       this._zone.runOutsideAngular(() => {         this._scheduleCountTask();         this.engine.flush(this._microtaskId);       });     }     if (this.delegate.end) {       this.delegate.end();     }   }    whenRenderingDone(): Promise<any> {     return this.engine.whenRenderingDone();   } }  export class BaseAnimationRenderer implements Renderer2 {   constructor(       protected namespaceId: string, public delegate: Renderer2, public engine: AnimationEngine,       private _onDestroy?: () => void) {     this.destroyNode = this.delegate.destroyNode ? (n) => delegate.destroyNode!(n) : null;   }    get data() {     return this.delegate.data;   }    destroyNode: ((n: any) => void)|null;    destroy(): void {     this.engine.destroy(this.namespaceId, this.delegate);     this.delegate.destroy();     this._onDestroy?.();   }    createElement(name: string, namespace?: string|null|undefined) {     return this.delegate.createElement(name, namespace);   }    createComment(value: string) {     return this.delegate.createComment(value);   }    createText(value: string) {     return this.delegate.createText(value);   }    appendChild(parent: any, newChild: any): void {     this.delegate.appendChild(parent, newChild);     this.engine.onInsert(this.namespaceId, newChild, parent, false);   }    insertBefore(parent: any, newChild: any, refChild: any, isMove: boolean = true): void {     this.delegate.insertBefore(parent, newChild, refChild);     // If `isMove` true than we should animate this insert.     this.engine.onInsert(this.namespaceId, newChild, parent, isMove);   }    removeChild(parent: any, oldChild: any, isHostElement: boolean): void {     this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);   }    selectRootElement(selectorOrNode: any, preserveContent?: boolean) {     return this.delegate.selectRootElement(selectorOrNode, preserveContent);   }    parentNode(node: any) {     return this.delegate.parentNode(node);   }    nextSibling(node: any) {     return this.delegate.nextSibling(node);   }    setAttribute(el: any, name: string, value: string, namespace?: string|null|undefined): void {     this.delegate.setAttribute(el, name, value, namespace);   }    removeAttribute(el: any, name: string, namespace?: string|null|undefined): void {     this.delegate.removeAttribute(el, name, namespace);   }    addClass(el: any, name: string): void {     this.delegate.addClass(el, name);   }    removeClass(el: any, name: string): void {     this.delegate.removeClass(el, name);   }    setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2|undefined): void {     this.delegate.setStyle(el, style, value, flags);   }    removeStyle(el: any, style: string, flags?: RendererStyleFlags2|undefined): void {     this.delegate.removeStyle(el, style, flags);   }    setProperty(el: any, name: string, value: any): void {     if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {       this.disableAnimations(el, !!value);     } else {       this.delegate.setProperty(el, name, value);     }   }    setValue(node: any, value: string): void {     this.delegate.setValue(node, value);   }    listen(target: any, eventName: string, callback: (event: any) => boolean | void): () => void {     return this.delegate.listen(target, eventName, callback);   }    protected disableAnimations(element: any, value: boolean) {     this.engine.disableAnimations(element, value);   } }  export class AnimationRenderer extends BaseAnimationRenderer implements Renderer2 {   constructor(       public factory: AnimationRendererFactory, namespaceId: string, delegate: Renderer2,       engine: AnimationEngine, onDestroy?: () => void) {     super(namespaceId, delegate, engine, onDestroy);     this.namespaceId = namespaceId;   }    override setProperty(el: any, name: string, value: any): void {     if (name.charAt(0) == ANIMATION_PREFIX) {       if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {         value = value === undefined ? true : !!value;         this.disableAnimations(el, value as boolean);       } else {         this.engine.process(this.namespaceId, el, name.slice(1), value);       }     } else {       this.delegate.setProperty(el, name, value);     }   }    override listen(       target: 'window'|'document'|'body'|any, eventName: string,       callback: (event: any) => any): () => void {     if (eventName.charAt(0) == ANIMATION_PREFIX) {       const element = resolveElementFromTarget(target);       let name = eventName.slice(1);       let phase = '';       // @listener.phase is for trigger animation callbacks       // @@listener is for animation builder callbacks       if (name.charAt(0) != ANIMATION_PREFIX) {         [name, phase] = parseTriggerCallbackName(name);       }       return this.engine.listen(this.namespaceId, element, name, phase, event => {         const countId = (event as any)['_data'] || -1;         this.factory.scheduleListenerCallback(countId, callback, event);       });     }     return this.delegate.listen(target, eventName, callback);   } }  function resolveElementFromTarget(target: 'window'|'document'|'body'|any): any {   switch (target) {     case 'body':       return document.body;     case 'document':       return document;     case 'window':       return window;     default:       return target;   } }  function parseTriggerCallbackName(triggerName: string) {   const dotIndex = triggerName.indexOf('.');   const trigger = triggerName.substring(0, dotIndex);   const phase = triggerName.slice(dotIndex + 1);   return [trigger, phase]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AnimationBuilder} from '@angular/animations'; import {AnimationDriver, ɵAnimationEngine as AnimationEngine, ɵAnimationStyleNormalizer as AnimationStyleNormalizer, ɵNoopAnimationDriver as NoopAnimationDriver, ɵWebAnimationsDriver as WebAnimationsDriver, ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer} from '@angular/animations/browser'; import {DOCUMENT} from '@angular/common'; import {ANIMATION_MODULE_TYPE, ApplicationRef, Inject, Injectable, NgZone, OnDestroy, Provider, RendererFactory2} from '@angular/core'; import {ɵDomRendererFactory2 as DomRendererFactory2} from '@angular/platform-browser';  import {BrowserAnimationBuilder} from './animation_builder'; import {AnimationRendererFactory} from './animation_renderer';  @Injectable() export class InjectableAnimationEngine extends AnimationEngine implements OnDestroy {   // The `ApplicationRef` is injected here explicitly to force the dependency ordering.   // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they   // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.   constructor(       @Inject(DOCUMENT) doc: any, driver: AnimationDriver, normalizer: AnimationStyleNormalizer,       appRef: ApplicationRef) {     super(doc.body, driver, normalizer);   }    ngOnDestroy(): void {     this.flush();   } }  export function instantiateDefaultStyleNormalizer() {   return new WebAnimationsStyleNormalizer(); }  export function instantiateRendererFactory(     renderer: DomRendererFactory2, engine: AnimationEngine, zone: NgZone) {   return new AnimationRendererFactory(renderer, engine, zone); }  const SHARED_ANIMATION_PROVIDERS: Provider[] = [   {provide: AnimationBuilder, useClass: BrowserAnimationBuilder},   {provide: AnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer},   {provide: AnimationEngine, useClass: InjectableAnimationEngine}, {     provide: RendererFactory2,     useFactory: instantiateRendererFactory,     deps: [DomRendererFactory2, AnimationEngine, NgZone]   } ];  /**  * Separate providers from the actual module so that we can do a local modification in Google3 to  * include them in the BrowserModule.  */ export const BROWSER_ANIMATIONS_PROVIDERS: Provider[] = [   {provide: AnimationDriver, useFactory: () => new WebAnimationsDriver()},   {provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations'}, ...SHARED_ANIMATION_PROVIDERS ];  /**  * Separate providers from the actual module so that we can do a local modification in Google3 to  * include them in the BrowserTestingModule.  */ export const BROWSER_NOOP_ANIMATIONS_PROVIDERS: Provider[] = [   {provide: AnimationDriver, useClass: NoopAnimationDriver},   {provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations'}, ...SHARED_ANIMATION_PROVIDERS ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ModuleWithProviders, NgModule, Provider} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser';  import {BROWSER_ANIMATIONS_PROVIDERS, BROWSER_NOOP_ANIMATIONS_PROVIDERS} from './providers';  /**  * Object used to configure the behavior of {@link BrowserAnimationsModule}  * @publicApi  */ export interface BrowserAnimationsModuleConfig {   /**    *  Whether animations should be disabled. Passing this is identical to providing the    * `NoopAnimationsModule`, but it can be controlled based on a runtime value.    */   disableAnimations?: boolean; }  /**  * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)  * for use with animations. See [Animations](guide/animations).  * @publicApi  */ @NgModule({   exports: [BrowserModule],   providers: BROWSER_ANIMATIONS_PROVIDERS, }) export class BrowserAnimationsModule {   /**    * Configures the module based on the specified object.    *    * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.    * @see `BrowserAnimationsModuleConfig`    *    * @usageNotes    * When registering the `BrowserAnimationsModule`, you can use the `withConfig`    * function as follows:    * ```    * @NgModule({    *   imports: [BrowserAnimationsModule.withConfig(config)]    * })    * class MyNgModule {}    * ```    */   static withConfig(config: BrowserAnimationsModuleConfig):       ModuleWithProviders<BrowserAnimationsModule> {     return {       ngModule: BrowserAnimationsModule,       providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS :                                             BROWSER_ANIMATIONS_PROVIDERS     };   } }  /**  * Returns the set of [dependency-injection providers](guide/glossary#provider)  * to enable animations in an application. See [animations guide](guide/animations)  * to learn more about animations in Angular.  *  * @usageNotes  *  * The function is useful when you want to enable animations in an application  * bootstrapped using the `bootstrapApplication` function. In this scenario there  * is no need to import the `BrowserAnimationsModule` NgModule at all, just add  * providers returned by this function to the `providers` list as show below.  *  * ```typescript  * bootstrapApplication(RootComponent, {  *   providers: [  *     provideAnimations()  *   ]  * });  * ```  *  * @publicApi  */ export function provideAnimations(): Provider[] {   // Return a copy to prevent changes to the original array in case any in-place   // alterations are performed to the `provideAnimations` call results in app code.   return [...BROWSER_ANIMATIONS_PROVIDERS]; }  /**  * A null player that must be imported to allow disabling of animations.  * @publicApi  */ @NgModule({   exports: [BrowserModule],   providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, }) export class NoopAnimationsModule { }  /**  * Returns the set of [dependency-injection providers](guide/glossary#provider)  * to disable animations in an application. See [animations guide](guide/animations)  * to learn more about animations in Angular.  *  * @usageNotes  *  * The function is useful when you want to bootstrap an application using  * the `bootstrapApplication` function, but you need to disable animations  * (for example, when running tests).  *  * ```typescript  * bootstrapApplication(RootComponent, {  *   providers: [  *     provideNoopAnimations()  *   ]  * });  * ```  *  * @publicApi  */ export function provideNoopAnimations(): Provider[] {   // Return a copy to prevent changes to the original array in case any in-place   // alterations are performed to the `provideNoopAnimations` call results in app code.   return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all animation APIs of the animation browser package.  */ export {ANIMATION_MODULE_TYPE} from '@angular/core'; export {BrowserAnimationsModule, BrowserAnimationsModuleConfig, NoopAnimationsModule, provideAnimations, provideNoopAnimations} from './module';  export * from './private_export'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/animations'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["AnimationEngine","WebAnimationsStyleNormalizer","AnimationStyleNormalizer","DomRendererFactory2","WebAnimationsDriver","NoopAnimationDriver"],"mappings":";;;;;;;;;;;;;;;AAcM,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;IAI3D,WAAY,CAAA,YAA8B,EAAoB,GAAQ,EAAA;AACpE,QAAA,KAAK,EAAE,CAAC;QAJF,IAAgB,CAAA,gBAAA,GAAG,CAAC,CAAC;QAK3B,MAAM,QAAQ,GACV,EAAC,EAAE,EAAE,GAAG,EAAE,aAAa,EAAE,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAC,SAAS,EAAE,EAAE,EAAC,EACrE,CAAC;AAClB,QAAA,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAsB,CAAC;KACvF;AAED,IAAA,KAAK,CAAC,SAAgD,EAAA;QACpD,MAAM,EAAE,GAAG,I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BAAoB,CAAA;;4HAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAHrB,aAAa,CAAA,EAAA,CAAA,CAAA;6HAGZ,oBAAoB,EAAA,SAAA,EAFpB,iCAAiC,EAAA,OAAA,EAAA,CADlC,aAAa,CAAA,EAAA,CAAA,CAAA;sGAGZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;AACxB,oBAAA,SAAS,EAAE,iCAAiC;AAC7C,iBAAA,CAAA;;AAID;;;;;;;;;;;;;;;;;;;;AAoBG;SACa,qBAAqB,GAAA;;;AAGnC,IAAA,OAAO,CAAC,GAAG,iCAAiC,CAAC,CAAC;AAChD;;ACpHA;;;;AAIG;;ACJH;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 17 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser/testing/src/browser_util.ts","../../../../../../packages/platform-browser/testing/src/mock_platform_location_flag.ts","../../../../../../packages/platform-browser/testing/src/browser.ts","../../../../../../packages/platform-browser/testing/src/testing.ts","../../../../../../packages/platform-browser/testing/public_api.ts","../../../../../../packages/platform-browser/testing/index.ts","../../../../../../packages/platform-browser/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {NgZone, ɵglobal as global} from '@angular/core';  export class BrowserDetection {   private _overrideUa: string|null;   private get _ua(): string {     if (typeof this._overrideUa === 'string') {       return this._overrideUa;     }      return getDOM() ? getDOM().getUserAgent() : '';   }    static setup() {     return new BrowserDetection(null);   }    constructor(ua: string|null) {     this._overrideUa = ua;   }    get isFirefox(): boolean {     return this._ua.indexOf('Firefox') > -1;   }    get isAndroid(): boolean {     return this._ua.indexOf('Mozilla/5.0') > -1 && this._ua.indexOf('Android') > -1 &&         this._ua.indexOf('AppleWebKit') > -1 && this._ua.indexOf('Chrome') == -1 &&         this._ua.indexOf('IEMobile') == -1;   }    get isEdge(): boolean {     return this._ua.indexOf('Edge') > -1;   }    get isWebkit(): boolean {     return this._ua.indexOf('AppleWebKit') > -1 && this._ua.indexOf('Edge') == -1 &&         this._ua.indexOf('IEMobile') == -1;   }    get isIOS7(): boolean {     return (this._ua.indexOf('iPhone OS 7') > -1 || this._ua.indexOf('iPad OS 7') > -1) &&         this._ua.indexOf('IEMobile') == -1;   }    get isSlow(): boolean {     return this.isAndroid || this.isIOS7;   }    get isChromeDesktop(): boolean {     return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 &&         this._ua.indexOf('Edge') == -1;   }    // \"Old Chrome\" means Chrome 3X, where there are some discrepancies in the Intl API.   // Android 4.4 and 5.X have such browsers by default (respectively 30 and 39).   get isOldChrome(): boolean {     return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Chrome/3') > -1 &&         this._ua.indexOf('Edge') == -1;   }    get supportsShadowDom() {     const testEl = document.createElement('div');     return (typeof testEl.attachShadow !== 'undefined');   } }  export const browserDetection: BrowserDetection = BrowserDetection.setup();  export function dispatchEvent(element: any, eventType: any): Event {   const evt: Event = getDOM().getDefaultDocument().createEvent('Event');   evt.initEvent(eventType, true, true);   getDOM().dispatchEvent(element, evt);   return evt; }  export function createMouseEvent(eventType: string): MouseEvent {   const evt: MouseEvent = getDOM().getDefaultDocument().createEvent('MouseEvent');   evt.initEvent(eventType, true, true);   return evt; }  export function el(html: string): HTMLElement {   return <HTMLElement>getContent(createTemplate(html)).firstChild; }  function getAttributeMap(element: any): Map<string, string> {   const res = new Map<string, string>();   const elAttrs = element.attributes;   for (let i = 0; i < elAttrs.length; i++) {     const attrib = elAttrs.item(i);     res.set(attrib.name, attrib.value);   }   return res; }  const _selfClosingTags = ['br', 'hr', 'input']; export function stringifyElement(el: any /** TODO #9100 */): string {   let result = '';   if (getDOM().isElementNode(el)) {     const tagName = el.tagName.toLowerCase();      // Opening tag     result += `<${tagName}`;      // Attributes in an ordered way     const attributeMap = getAttributeMap(el);     const sortedKeys = Array.from(attributeMap.keys()).sort();     for (const key of sortedKeys) {       const lowerCaseKey = key.toLowerCase();       let attValue = attributeMap.get(key);        if (typeof attValue !== 'string') {         result += ` ${lowerCaseKey}`;       } else {         // Browsers order style rules differently. Order them alphabetically for consistency.         if (lowerCaseKey === 'style') {           attValue = attValue.split(/; ?/).filter(s => !!s).sort().map(s => `${s};`).join(' ');         }          result += ` ${lowerCaseKey}=\"${attValue}\"`;       }     }     result += '>';      // Children     const childrenRoot = templateAwareRoot(el);     const children = childrenRoot ? childrenRoot.childNodes : [];     for (let j = 0; j < children.length; j++) {       result += stringifyElement(children[j]);     }      // Closing tag     if (_selfClosingTags.indexOf(tagName) == -1) {       result += `</${tagName}>`;     }   } else if (isCommentNode(el)) {     result += `<!--${el.nodeValue}-->`;   } else {     result += el.textContent;   }    return result; }  export function createNgZone(): NgZone {   return new NgZone({enableLongStackTrace: true, shouldCoalesceEventChangeDetection: false}); }  export function isCommentNode(node: Node): boolean {   return node.nodeType === Node.COMMENT_NODE; }  export function isTextNode(node: Node): boolean {   return node.nodeType === Node.TEXT_NODE; }  export function getContent(node: Node): Node {   if ('content' in node) {     return (<any>node).content;   } else {     return node;   } }  export function templateAwareRoot(el: Node): any {   return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el; }  export function setCookie(name: string, value: string) {   // document.cookie is magical, assigning into it assigns/overrides one cookie value, but does   // not clear other cookies.   document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value); }  export function hasStyle(element: any, styleName: string, styleValue?: string|null): boolean {   const value = element.style[styleName] || '';   return styleValue ? value == styleValue : value.length > 0; }  export function hasClass(element: any, className: string): boolean {   return element.classList.contains(className); }  export function sortedClassList(element: any): any[] {   return Array.prototype.slice.call(element.classList, 0).sort(); }  export function createTemplate(html: any): HTMLElement {   const t = getDOM().getDefaultDocument().createElement('template');   t.innerHTML = html;   return t; }  export function childNodesAsList(el: Node): any[] {   const childNodes = el.childNodes;   const res = [];   for (let i = 0; i < childNodes.length; i++) {     res[i] = childNodes[i];   }   return res; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Controls whether the `MockPlatformLocation` class should be used  * as the `PlatformLocation` implementation when the `BrowserTestingModule`  * is imported.  *  * In v16, the value of this flag will be switched to `true` to enable  * the `MockPlatformLocation` by default.  */ export const ENABLE_MOCK_PLATFORM_LOCATION = false; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {PlatformLocation} from '@angular/common'; import {MockPlatformLocation} from '@angular/common/testing'; import {APP_ID, createPlatformFactory, NgModule, NgZone, PLATFORM_INITIALIZER, platformCore, StaticProvider} from '@angular/core'; import {BrowserModule, ɵBrowserDomAdapter as BrowserDomAdapter} from '@angular/platform-browser';  import {BrowserDetection, createNgZone} from './browser_util'; import {ENABLE_MOCK_PLATFORM_LOCATION} from './mock_platform_location_flag';  function initBrowserTests() {   BrowserDomAdapter.makeCurrent();   BrowserDetection.setup(); }  const _TEST_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] =     [{provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true}];  /**  * Platform for testing  *  * @publicApi  */ export const platformBrowserTesting =     createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);  /**  * NgModule for testing.  *  * @publicApi  */ @NgModule({   exports: [BrowserModule],   providers: [     {provide: APP_ID, useValue: 'a'},     {provide: NgZone, useFactory: createNgZone},     (ENABLE_MOCK_PLATFORM_LOCATION ? [{provide: PlatformLocation, useClass: MockPlatformLocation}] :                                      []),   ] }) export class BrowserTestingModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the platform-browser/testing package.  */ export * from './browser'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /// <reference types=\"jasmine\" />  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["getDOM","BrowserDomAdapter"],"mappings":";;;;;;;;;;;;MAWa,gBAAgB,CAAA;AAE3B,IAAA,IAAY,GAAG,GAAA;AACb,QAAA,IAAI,OAAO,IAAI,CAAC,WAAW,KAAK,QAAQ,EAAE;YACxC,OAAO,IAAI,CAAC,WAAW,CAAC;AACzB,SAAA;AAED,QAAA,OAAOA,OAAM,EAAE,GAAGA,OAAM,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;KAChD;AAED,IAAA,OAAO,KAAK,GAAA;AACV,QAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;KACnC;AAED,IAAA,WAAA,CAAY,EAAe,EAAA;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;KACvB;AAED,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,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,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAC;AAChC,wBAAA,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAC;AAC3C,yBAAC,6BAA6B,GAAG,CAAC,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAC,CAAC;AAC7D,4BAAA,EAAE;AACpC,qBAAA;AACF,iBAAA,CAAA;;;ACpCD;;;;AAIG;;ACJH;;ACAA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 18 --------------------
{"version":3,"file":"animations.mjs","sources":["../../../../../../packages/platform-browser/animations/src/animation_builder.ts","../../../../../../packages/platform-browser/animations/src/animation_renderer.ts","../../../../../../packages/platform-browser/animations/src/providers.ts","../../../../../../packages/platform-browser/animations/src/module.ts","../../../../../../packages/platform-browser/animations/src/animations.ts","../../../../../../packages/platform-browser/animations/public_api.ts","../../../../../../packages/platform-browser/animations/index.ts","../../../../../../packages/platform-browser/animations/animations.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationBuilder, AnimationFactory, AnimationMetadata, AnimationOptions, AnimationPlayer, sequence} from '@angular/animations'; import {DOCUMENT} from '@angular/common'; import {Inject, Injectable, RendererFactory2, RendererType2, ViewEncapsulation} from '@angular/core';  import {AnimationRenderer} from './animation_renderer';  @Injectable() export class BrowserAnimationBuilder extends AnimationBuilder {   private _nextAnimationId = 0;   private _renderer: AnimationRenderer;    constructor(rootRenderer: RendererFactory2, @Inject(DOCUMENT) doc: any) {     super();     const typeData =         {id: '0', encapsulation: ViewEncapsulation.None, styles: [], data: {animation: []}} as         RendererType2;     this._renderer = rootRenderer.createRenderer(doc.body, typeData) as AnimationRenderer;   }    build(animation: AnimationMetadata|AnimationMetadata[]): AnimationFactory {     const id = this._nextAnimationId.toString();     this._nextAnimationId++;     const entry = Array.isArray(animation) ? sequence(animation) : animation;     issueAnimationCommand(this._renderer, null, id, 'register', [entry]);     return new BrowserAnimationFactory(id, this._renderer);   } }  export class BrowserAnimationFactory extends AnimationFactory {   constructor(private _id: string, private _renderer: AnimationRenderer) {     super();   }    create(element: any, options?: AnimationOptions): AnimationPlayer {     return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);   } }  export class RendererAnimationPlayer implements AnimationPlayer {   public parentPlayer: AnimationPlayer|null = null;   private _started = false;    constructor(       public id: string, public element: any, options: AnimationOptions,       private _renderer: AnimationRenderer) {     this._command('create', options);   }    private _listen(eventName: string, callback: (event: any) => any): () => void {     return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);   }    private _command(command: string, ...args: any[]) {     return issueAnimationCommand(this._renderer, this.element, this.id, command, args);   }    onDone(fn: () => void): void {     this._listen('done', fn);   }    onStart(fn: () => void): void {     this._listen('start', fn);   }    onDestroy(fn: () => void): void {     this._listen('destroy', fn);   }    init(): void {     this._command('init');   }    hasStarted(): boolean {     return this._started;   }    play(): void {     this._command('play');     this._started = true;   }    pause(): void {     this._command('pause');   }    restart(): void {     this._command('restart');   }    finish(): void {     this._command('finish');   }    destroy(): void {     this._command('destroy');   }    reset(): void {     this._command('reset');     this._started = false;   }    setPosition(p: number): void {     this._command('setPosition', p);   }    getPosition(): number {     return this._renderer.engine.players[+this.id]?.getPosition() ?? 0;   }    public totalTime = 0; }  function issueAnimationCommand(     renderer: AnimationRenderer, element: any, id: string, command: string, args: any[]): any {   return renderer.setProperty(element, `@@${id}:${command}`, args); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationTriggerMetadata} from '@angular/animations'; import {ɵAnimationEngine as AnimationEngine} from '@angular/animations/browser'; import {Injectable, NgZone, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2} from '@angular/core';  const ANIMATION_PREFIX = '@'; const DISABLE_ANIMATIONS_FLAG = '@.disabled';  // Define a recursive type to allow for nested arrays of `AnimationTriggerMetadata`. Note that an // interface declaration is used as TypeScript prior to 3.7 does not support recursive type // references, see https://github.com/microsoft/TypeScript/pull/33050 for details. type NestedAnimationTriggerMetadata = AnimationTriggerMetadata|RecursiveAnimationTriggerMetadata; interface RecursiveAnimationTriggerMetadata extends Array<NestedAnimationTriggerMetadata> {}  @Injectable() export class AnimationRendererFactory implements RendererFactory2 {   private _currentId: number = 0;   private _microtaskId: number = 1;   private _animationCallbacksBuffer: [(e: any) => any, any][] = [];   private _rendererCache = new Map<Renderer2, BaseAnimationRenderer>();   private _cdRecurDepth = 0;   private promise: Promise<any> = Promise.resolve(0);    constructor(       private delegate: RendererFactory2, private engine: AnimationEngine, private _zone: NgZone) {     engine.onRemovalComplete = (element: any, delegate: Renderer2) => {       // Note: if a component element has a leave animation, and a host leave animation,       // the view engine will call `removeChild` for the parent       // component renderer as well as for the child component renderer.       // Therefore, we need to check if we already removed the element.       const parentNode = delegate?.parentNode(element);       if (parentNode) {         delegate.removeChild(parentNode, element);       }     };   }    createRenderer(hostElement: any, type: RendererType2): Renderer2 {     const EMPTY_NAMESPACE_ID = '';      // cache the delegates to find out which cached delegate can     // be used by which cached renderer     const delegate = this.delegate.createRenderer(hostElement, type);     if (!hostElement || !type || !type.data || !type.data['animation']) {       let renderer: BaseAnimationRenderer|undefined = this._rendererCache.get(delegate);       if (!renderer) {         // Ensure that the renderer is removed from the cache on destroy         // since it may contain references to detached DOM nodes.         const onRendererDestroy = () => this._rendererCache.delete(delegate);         renderer =             new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine, onRendererDestroy);         // only cache this result when the base renderer is used         this._rendererCache.set(delegate, renderer);       }       return renderer;     }      const componentId = type.id;     const namespaceId = type.id + '-' + this._currentId;     this._currentId++;      this.engine.register(namespaceId, hostElement);      const registerTrigger = (trigger: NestedAnimationTriggerMetadata) => {       if (Array.isArray(trigger)) {         trigger.forEach(registerTrigger);       } else {         this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);       }     };     const animationTriggers = type.data['animation'] as NestedAnimationTriggerMetadata[];     animationTriggers.forEach(registerTrigger);      return new AnimationRenderer(this, namespaceId, delegate, this.engine);   }    begin() {     this._cdRecurDepth++;     if (this.delegate.begin) {       this.delegate.begin();     }   }    private _scheduleCountTask() {     // always use promise to schedule microtask instead of use Zone     this.promise.then(() => {       this._microtaskId++;     });   }    /** @internal */   scheduleListenerCallback(count: number, fn: (e: any) => any, data: any) {     if (count >= 0 && count < this._microtaskId) {       this._zone.run(() => fn(data));       return;     }      if (this._animationCallbacksBuffer.length == 0) {       Promise.resolve(null).then(() => {         this._zone.run(() => {           this._animationCallbacksBuffer.forEach(tuple => {             const [fn, data] = tuple;             fn(data);           });           this._animationCallbacksBuffer = [];         });       });     }      this._animationCallbacksBuffer.push([fn, data]);   }    end() {     this._cdRecurDepth--;      // this is to prevent animations from running twice when an inner     // component does CD when a parent component instead has inserted it     if (this._cdRecurDepth == 0) {       this._zone.runOutsideAngular(() => {         this._scheduleCountTask();         this.engine.flush(this._microtaskId);       });     }     if (this.delegate.end) {       this.delegate.end();     }   }    whenRenderingDone(): Promise<any> {     return this.engine.whenRenderingDone();   } }  export class BaseAnimationRenderer implements Renderer2 {   constructor(       protected namespaceId: string, public delegate: Renderer2, public engine: AnimationEngine,       private _onDestroy?: () => void) {     this.destroyNode = this.delegate.destroyNode ? (n) => delegate.destroyNode!(n) : null;   }    get data() {     return this.delegate.data;   }    destroyNode: ((n: any) => void)|null;    destroy(): void {     this.engine.destroy(this.namespaceId, this.delegate);     this.delegate.destroy();     this._onDestroy?.();   }    createElement(name: string, namespace?: string|null|undefined) {     return this.delegate.createElement(name, namespace);   }    createComment(value: string) {     return this.delegate.createComment(value);   }    createText(value: string) {     return this.delegate.createText(value);   }    appendChild(parent: any, newChild: any): void {     this.delegate.appendChild(parent, newChild);     this.engine.onInsert(this.namespaceId, newChild, parent, false);   }    insertBefore(parent: any, newChild: any, refChild: any, isMove: boolean = true): void {     this.delegate.insertBefore(parent, newChild, refChild);     // If `isMove` true than we should animate this insert.     this.engine.onInsert(this.namespaceId, newChild, parent, isMove);   }    removeChild(parent: any, oldChild: any, isHostElement: boolean): void {     this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);   }    selectRootElement(selectorOrNode: any, preserveContent?: boolean) {     return this.delegate.selectRootElement(selectorOrNode, preserveContent);   }    parentNode(node: any) {     return this.delegate.parentNode(node);   }    nextSibling(node: any) {     return this.delegate.nextSibling(node);   }    setAttribute(el: any, name: string, value: string, namespace?: string|null|undefined): void {     this.delegate.setAttribute(el, name, value, namespace);   }    removeAttribute(el: any, name: string, namespace?: string|null|undefined): void {     this.delegate.removeAttribute(el, name, namespace);   }    addClass(el: any, name: string): void {     this.delegate.addClass(el, name);   }    removeClass(el: any, name: string): void {     this.delegate.removeClass(el, name);   }    setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2|undefined): void {     this.delegate.setStyle(el, style, value, flags);   }    removeStyle(el: any, style: string, flags?: RendererStyleFlags2|undefined): void {     this.delegate.removeStyle(el, style, flags);   }    setProperty(el: any, name: string, value: any): void {     if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {       this.disableAnimations(el, !!value);     } else {       this.delegate.setProperty(el, name, value);     }   }    setValue(node: any, value: string): void {     this.delegate.setValue(node, value);   }    listen(target: any, eventName: string, callback: (event: any) => boolean | void): () => void {     return this.delegate.listen(target, eventName, callback);   }    protected disableAnimations(element: any, value: boolean) {     this.engine.disableAnimations(element, value);   } }  export class AnimationRenderer extends BaseAnimationRenderer implements Renderer2 {   constructor(       public factory: AnimationRendererFactory, namespaceId: string, delegate: Renderer2,       engine: AnimationEngine, onDestroy?: () => void) {     super(namespaceId, delegate, engine, onDestroy);     this.namespaceId = namespaceId;   }    override setProperty(el: any, name: string, value: any): void {     if (name.charAt(0) == ANIMATION_PREFIX) {       if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {         value = value === undefined ? true : !!value;         this.disableAnimations(el, value as boolean);       } else {         this.engine.process(this.namespaceId, el, name.slice(1), value);       }     } else {       this.delegate.setProperty(el, name, value);     }   }    override listen(       target: 'window'|'document'|'body'|any, eventName: string,       callback: (event: any) => any): () => void {     if (eventName.charAt(0) == ANIMATION_PREFIX) {       const element = resolveElementFromTarget(target);       let name = eventName.slice(1);       let phase = '';       // @listener.phase is for trigger animation callbacks       // @@listener is for animation builder callbacks       if (name.charAt(0) != ANIMATION_PREFIX) {         [name, phase] = parseTriggerCallbackName(name);       }       return this.engine.listen(this.namespaceId, element, name, phase, event => {         const countId = (event as any)['_data'] || -1;         this.factory.scheduleListenerCallback(countId, callback, event);       });     }     return this.delegate.listen(target, eventName, callback);   } }  function resolveElementFromTarget(target: 'window'|'document'|'body'|any): any {   switch (target) {     case 'body':       return document.body;     case 'document':       return document;     case 'window':       return window;     default:       return target;   } }  function parseTriggerCallbackName(triggerName: string) {   const dotIndex = triggerName.indexOf('.');   const trigger = triggerName.substring(0, dotIndex);   const phase = triggerName.slice(dotIndex + 1);   return [trigger, phase]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AnimationBuilder} from '@angular/animations'; import {AnimationDriver, ɵAnimationEngine as AnimationEngine, ɵAnimationStyleNormalizer as AnimationStyleNormalizer, ɵNoopAnimationDriver as NoopAnimationDriver, ɵWebAnimationsDriver as WebAnimationsDriver, ɵWebAnimationsStyleNormalizer as WebAnimationsStyleNormalizer} from '@angular/animations/browser'; import {DOCUMENT} from '@angular/common'; import {ANIMATION_MODULE_TYPE, ApplicationRef, Inject, Injectable, NgZone, OnDestroy, Provider, RendererFactory2} from '@angular/core'; import {ɵDomRendererFactory2 as DomRendererFactory2} from '@angular/platform-browser';  import {BrowserAnimationBuilder} from './animation_builder'; import {AnimationRendererFactory} from './animation_renderer';  @Injectable() export class InjectableAnimationEngine extends AnimationEngine implements OnDestroy {   // The `ApplicationRef` is injected here explicitly to force the dependency ordering.   // Since the `ApplicationRef` should be created earlier before the `AnimationEngine`, they   // both have `ngOnDestroy` hooks and `flush()` must be called after all views are destroyed.   constructor(       @Inject(DOCUMENT) doc: any, driver: AnimationDriver, normalizer: AnimationStyleNormalizer,       appRef: ApplicationRef) {     super(doc.body, driver, normalizer);   }    ngOnDestroy(): void {     this.flush();   } }  export function instantiateDefaultStyleNormalizer() {   return new WebAnimationsStyleNormalizer(); }  export function instantiateRendererFactory(     renderer: DomRendererFactory2, engine: AnimationEngine, zone: NgZone) {   return new AnimationRendererFactory(renderer, engine, zone); }  const SHARED_ANIMATION_PROVIDERS: Provider[] = [   {provide: AnimationBuilder, useClass: BrowserAnimationBuilder},   {provide: AnimationStyleNormalizer, useFactory: instantiateDefaultStyleNormalizer},   {provide: AnimationEngine, useClass: InjectableAnimationEngine}, {     provide: RendererFactory2,     useFactory: instantiateRendererFactory,     deps: [DomRendererFactory2, AnimationEngine, NgZone]   } ];  /**  * Separate providers from the actual module so that we can do a local modification in Google3 to  * include them in the BrowserModule.  */ export const BROWSER_ANIMATIONS_PROVIDERS: Provider[] = [   {provide: AnimationDriver, useFactory: () => new WebAnimationsDriver()},   {provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations'}, ...SHARED_ANIMATION_PROVIDERS ];  /**  * Separate providers from the actual module so that we can do a local modification in Google3 to  * include them in the BrowserTestingModule.  */ export const BROWSER_NOOP_ANIMATIONS_PROVIDERS: Provider[] = [   {provide: AnimationDriver, useClass: NoopAnimationDriver},   {provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations'}, ...SHARED_ANIMATION_PROVIDERS ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ModuleWithProviders, NgModule, Provider} from '@angular/core'; import {BrowserModule} from '@angular/platform-browser';  import {BROWSER_ANIMATIONS_PROVIDERS, BROWSER_NOOP_ANIMATIONS_PROVIDERS} from './providers';  /**  * Object used to configure the behavior of {@link BrowserAnimationsModule}  * @publicApi  */ export interface BrowserAnimationsModuleConfig {   /**    *  Whether animations should be disabled. Passing this is identical to providing the    * `NoopAnimationsModule`, but it can be controlled based on a runtime value.    */   disableAnimations?: boolean; }  /**  * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)  * for use with animations. See [Animations](guide/animations).  * @publicApi  */ @NgModule({   exports: [BrowserModule],   providers: BROWSER_ANIMATIONS_PROVIDERS, }) export class BrowserAnimationsModule {   /**    * Configures the module based on the specified object.    *    * @param config Object used to configure the behavior of the `BrowserAnimationsModule`.    * @see `BrowserAnimationsModuleConfig`    *    * @usageNotes    * When registering the `BrowserAnimationsModule`, you can use the `withConfig`    * function as follows:    * ```    * @NgModule({    *   imports: [BrowserAnimationsModule.withConfig(config)]    * })    * class MyNgModule {}    * ```    */   static withConfig(config: BrowserAnimationsModuleConfig):       ModuleWithProviders<BrowserAnimationsModule> {     return {       ngModule: BrowserAnimationsModule,       providers: config.disableAnimations ? BROWSER_NOOP_ANIMATIONS_PROVIDERS :                                             BROWSER_ANIMATIONS_PROVIDERS     };   } }  /**  * Returns the set of [dependency-injection providers](guide/glossary#provider)  * to enable animations in an application. See [animations guide](guide/animations)  * to learn more about animations in Angular.  *  * @usageNotes  *  * The function is useful when you want to enable animations in an application  * bootstrapped using the `bootstrapApplication` function. In this scenario there  * is no need to import the `BrowserAnimationsModule` NgModule at all, just add  * providers returned by this function to the `providers` list as show below.  *  * ```typescript  * bootstrapApplication(RootComponent, {  *   providers: [  *     provideAnimations()  *   ]  * });  * ```  *  * @publicApi  */ export function provideAnimations(): Provider[] {   // Return a copy to prevent changes to the original array in case any in-place   // alterations are performed to the `provideAnimations` call results in app code.   return [...BROWSER_ANIMATIONS_PROVIDERS]; }  /**  * A null player that must be imported to allow disabling of animations.  * @publicApi  */ @NgModule({   exports: [BrowserModule],   providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, }) export class NoopAnimationsModule { }  /**  * Returns the set of [dependency-injection providers](guide/glossary#provider)  * to disable animations in an application. See [animations guide](guide/animations)  * to learn more about animations in Angular.  *  * @usageNotes  *  * The function is useful when you want to bootstrap an application using  * the `bootstrapApplication` function, but you need to disable animations  * (for example, when running tests).  *  * ```typescript  * bootstrapApplication(RootComponent, {  *   providers: [  *     provideNoopAnimations()  *   ]  * });  * ```  *  * @publicApi  */ export function provideNoopAnimations(): Provider[] {   // Return a copy to prevent changes to the original array in case any in-place   // alterations are performed to the `provideNoopAnimations` call results in app code.   return [...BROWSER_NOOP_ANIMATIONS_PROVIDERS]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all animation APIs of the animation browser package.  */ export {ANIMATION_MODULE_TYPE} from '@angular/core'; export {BrowserAnimationsModule, BrowserAnimationsModuleConfig, NoopAnimationsModule, provideAnimations, provideNoopAnimations} from './module';  export * from './private_export'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/animations'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["AnimationEngine","WebAnimationsStyleNormalizer","AnimationStyleNormalizer","DomRendererFactory2","WebAnimationsDriver","NoopAnimationDriver"],"mappings":";;;;;;;;;;;;;;;AAcM,MAAO,uBAAwB,SAAQ,gBAAgB,CAAA;IAI3D,WAAY,CAAA,YAA8B,EAAoB,GAAQ,EAAA;AACpE,QAAA,KAAK,EAAE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,CADlC,aAAa,CAAA,EAAA,CAAA,CAAA;sGAGZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;AACxB,oBAAA,SAAS,EAAE,iCAAiC;iBAC7C,CAAA;;AAID;;;;;;;;;;;;;;;;;;;;AAoBG;SACa,qBAAqB,GAAA;;;AAGnC,IAAA,OAAO,CAAC,GAAG,iCAAiC,CAAC,CAAC;AAChD;;ACpHA;;;;AAIG;;ACJH;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 19 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser/testing/src/browser_util.ts","../../../../../../packages/platform-browser/testing/src/mock_platform_location_flag.ts","../../../../../../packages/platform-browser/testing/src/browser.ts","../../../../../../packages/platform-browser/testing/src/testing.ts","../../../../../../packages/platform-browser/testing/public_api.ts","../../../../../../packages/platform-browser/testing/index.ts","../../../../../../packages/platform-browser/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {NgZone, ɵglobal as global} from '@angular/core';  export class BrowserDetection {   private _overrideUa: string|null;   private get _ua(): string {     if (typeof this._overrideUa === 'string') {       return this._overrideUa;     }      return getDOM() ? getDOM().getUserAgent() : '';   }    static setup() {     return new BrowserDetection(null);   }    constructor(ua: string|null) {     this._overrideUa = ua;   }    get isFirefox(): boolean {     return this._ua.indexOf('Firefox') > -1;   }    get isAndroid(): boolean {     return this._ua.indexOf('Mozilla/5.0') > -1 && this._ua.indexOf('Android') > -1 &&         this._ua.indexOf('AppleWebKit') > -1 && this._ua.indexOf('Chrome') == -1 &&         this._ua.indexOf('IEMobile') == -1;   }    get isEdge(): boolean {     return this._ua.indexOf('Edge') > -1;   }    get isWebkit(): boolean {     return this._ua.indexOf('AppleWebKit') > -1 && this._ua.indexOf('Edge') == -1 &&         this._ua.indexOf('IEMobile') == -1;   }    get isIOS7(): boolean {     return (this._ua.indexOf('iPhone OS 7') > -1 || this._ua.indexOf('iPad OS 7') > -1) &&         this._ua.indexOf('IEMobile') == -1;   }    get isSlow(): boolean {     return this.isAndroid || this.isIOS7;   }    get isChromeDesktop(): boolean {     return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Mobile Safari') == -1 &&         this._ua.indexOf('Edge') == -1;   }    // \"Old Chrome\" means Chrome 3X, where there are some discrepancies in the Intl API.   // Android 4.4 and 5.X have such browsers by default (respectively 30 and 39).   get isOldChrome(): boolean {     return this._ua.indexOf('Chrome') > -1 && this._ua.indexOf('Chrome/3') > -1 &&         this._ua.indexOf('Edge') == -1;   }    get supportsShadowDom() {     const testEl = document.createElement('div');     return (typeof testEl.attachShadow !== 'undefined');   } }  export const browserDetection: BrowserDetection = BrowserDetection.setup();  export function dispatchEvent(element: any, eventType: any): Event {   const evt: Event = getDOM().getDefaultDocument().createEvent('Event');   evt.initEvent(eventType, true, true);   getDOM().dispatchEvent(element, evt);   return evt; }  export function createMouseEvent(eventType: string): MouseEvent {   const evt: MouseEvent = getDOM().getDefaultDocument().createEvent('MouseEvent');   evt.initEvent(eventType, true, true);   return evt; }  export function el(html: string): HTMLElement {   return <HTMLElement>getContent(createTemplate(html)).firstChild; }  function getAttributeMap(element: any): Map<string, string> {   const res = new Map<string, string>();   const elAttrs = element.attributes;   for (let i = 0; i < elAttrs.length; i++) {     const attrib = elAttrs.item(i);     res.set(attrib.name, attrib.value);   }   return res; }  const _selfClosingTags = ['br', 'hr', 'input']; export function stringifyElement(el: any /** TODO #9100 */): string {   let result = '';   if (getDOM().isElementNode(el)) {     const tagName = el.tagName.toLowerCase();      // Opening tag     result += `<${tagName}`;      // Attributes in an ordered way     const attributeMap = getAttributeMap(el);     const sortedKeys = Array.from(attributeMap.keys()).sort();     for (const key of sortedKeys) {       const lowerCaseKey = key.toLowerCase();       let attValue = attributeMap.get(key);        if (typeof attValue !== 'string') {         result += ` ${lowerCaseKey}`;       } else {         // Browsers order style rules differently. Order them alphabetically for consistency.         if (lowerCaseKey === 'style') {           attValue = attValue.split(/; ?/).filter(s => !!s).sort().map(s => `${s};`).join(' ');         }          result += ` ${lowerCaseKey}=\"${attValue}\"`;       }     }     result += '>';      // Children     const childrenRoot = templateAwareRoot(el);     const children = childrenRoot ? childrenRoot.childNodes : [];     for (let j = 0; j < children.length; j++) {       result += stringifyElement(children[j]);     }      // Closing tag     if (_selfClosingTags.indexOf(tagName) == -1) {       result += `</${tagName}>`;     }   } else if (isCommentNode(el)) {     result += `<!--${el.nodeValue}-->`;   } else {     result += el.textContent;   }    return result; }  export function createNgZone(): NgZone {   return new NgZone({enableLongStackTrace: true, shouldCoalesceEventChangeDetection: false}); }  export function isCommentNode(node: Node): boolean {   return node.nodeType === Node.COMMENT_NODE; }  export function isTextNode(node: Node): boolean {   return node.nodeType === Node.TEXT_NODE; }  export function getContent(node: Node): Node {   if ('content' in node) {     return (<any>node).content;   } else {     return node;   } }  export function templateAwareRoot(el: Node): any {   return getDOM().isElementNode(el) && el.nodeName === 'TEMPLATE' ? getContent(el) : el; }  export function setCookie(name: string, value: string) {   // document.cookie is magical, assigning into it assigns/overrides one cookie value, but does   // not clear other cookies.   document.cookie = encodeURIComponent(name) + '=' + encodeURIComponent(value); }  export function hasStyle(element: any, styleName: string, styleValue?: string|null): boolean {   const value = element.style[styleName] || '';   return styleValue ? value == styleValue : value.length > 0; }  export function hasClass(element: any, className: string): boolean {   return element.classList.contains(className); }  export function sortedClassList(element: any): any[] {   return Array.prototype.slice.call(element.classList, 0).sort(); }  export function createTemplate(html: any): HTMLElement {   const t = getDOM().getDefaultDocument().createElement('template');   t.innerHTML = html;   return t; }  export function childNodesAsList(el: Node): any[] {   const childNodes = el.childNodes;   const res = [];   for (let i = 0; i < childNodes.length; i++) {     res[i] = childNodes[i];   }   return res; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Controls whether the `MockPlatformLocation` class should be used  * as the `PlatformLocation` implementation when the `BrowserTestingModule`  * is imported.  *  * In v16, the value of this flag will be switched to `true` to enable  * the `MockPlatformLocation` by default.  */ export const ENABLE_MOCK_PLATFORM_LOCATION = false; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {PlatformLocation} from '@angular/common'; import {MockPlatformLocation} from '@angular/common/testing'; import {APP_ID, createPlatformFactory, NgModule, NgZone, PLATFORM_INITIALIZER, platformCore, StaticProvider} from '@angular/core'; import {BrowserModule, ɵBrowserDomAdapter as BrowserDomAdapter} from '@angular/platform-browser';  import {BrowserDetection, createNgZone} from './browser_util'; import {ENABLE_MOCK_PLATFORM_LOCATION} from './mock_platform_location_flag';  function initBrowserTests() {   BrowserDomAdapter.makeCurrent();   BrowserDetection.setup(); }  const _TEST_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] =     [{provide: PLATFORM_INITIALIZER, useValue: initBrowserTests, multi: true}];  /**  * Platform for testing  *  * @publicApi  */ export const platformBrowserTesting =     createPlatformFactory(platformCore, 'browserTesting', _TEST_BROWSER_PLATFORM_PROVIDERS);  /**  * NgModule for testing.  *  * @publicApi  */ @NgModule({   exports: [BrowserModule],   providers: [     {provide: APP_ID, useValue: 'a'},     {provide: NgZone, useFactory: createNgZone},     (ENABLE_MOCK_PLATFORM_LOCATION ? [{provide: PlatformLocation, useClass: MockPlatformLocation}] :                                      []),   ] }) export class BrowserTestingModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the platform-browser/testing package.  */ export * from './browser'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /// <reference types=\"jasmine\" />  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["getDOM","BrowserDomAdapter"],"mappings":";;;;;;;;;;;;MAWa,gBAAgB,CAAA;AAE3B,IAAA,IAAY,GAAG,GAAA;AACb,QAAA,IAAI,OAAO,IAAI,CAAC,WAAW,KAAK,QAAQ,EAAE;YACxC,OAAO,IAAI,CAAC,WAAW,CAAC;AACzB,SAAA;AAED,QAAA,OAAOA,OAAM,EAAE,GAAGA,OAAM,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;KAChD;AAED,IAAA,OAAO,KAAK,GAAA;AACV,QAAA,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;KACnC;AAED,IAAA,WAAA,CAAY,EAAe,EAAA;AACzB,QAAA,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;KACvB;AAED,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;KACzC;AAED,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;YAC3E,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CA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,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YARrB,aAAa,CAAA,EAAA,CAAA,CAAA;AAQZ,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,EAPpB,SAAA,EAAA;AACT,QAAA,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAC;AAChC,QAAA,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAC;AAC3C,SAAC,6BAA6B,GAAG,CAAC,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAC,CAAC;AAC7D,YAAA,EAAE;AACpC,KAAA,EAAA,OAAA,EAAA,CANS,aAAa,CAAA,EAAA,CAAA,CAAA;sGAQZ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAThC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;AACxB,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAC;AAChC,wBAAA,EAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAC;AAC3C,yBAAC,6BAA6B,GAAG,CAAC,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAC,CAAC;AAC7D,4BAAA,EAAE;AACpC,qBAAA;iBACF,CAAA;;;ACpCD;;;;AAIG;;ACJH;;ACAA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 20 --------------------
{"version":3,"file":"animations.mjs","sources":["../../../../../../packages/animations/src/animation_builder.ts","../../../../../../packages/animations/src/animation_metadata.ts","../../../../../../packages/animations/src/util.ts","../../../../../../packages/animations/src/players/animation_player.ts","../../../../../../packages/animations/src/players/animation_group_player.ts","../../../../../../packages/animations/src/private_export.ts","../../../../../../packages/animations/src/animations.ts","../../../../../../packages/animations/public_api.ts","../../../../../../packages/animations/index.ts","../../../../../../packages/animations/animations.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationOptions} from './animation_metadata'; import {AnimationPlayer} from './players/animation_player';  /**  * An injectable service that produces an animation sequence programmatically within an  * Angular component or directive.  * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.  *  * @usageNotes  *  * To use this service, add it to your component or directive as a dependency.  * The service is instantiated along with your component.  *  * Apps do not typically need to create their own animation players, but if you  * do need to, follow these steps:  *  * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method  * to create a programmatic animation. The method returns an `AnimationFactory` instance.  *  * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.  *  * 3. Use the player object to control the animation programmatically.  *  * For example:  *  * ```ts  * // import the service from BrowserAnimationsModule  * import {AnimationBuilder} from '@angular/animations';  * // require the service as a dependency  * class MyCmp {  *   constructor(private _builder: AnimationBuilder) {}  *  *   makeAnimation(element: any) {  *     // first define a reusable animation  *     const myAnimation = this._builder.build([  *       style({ width: 0 }),  *       animate(1000, style({ width: '100px' }))  *     ]);  *  *     // use the returned factory object to create a player  *     const player = myAnimation.create(element);  *  *     player.play();  *   }  * }  * ```  *  * @publicApi  */ export abstract class AnimationBuilder {   /**    * Builds a factory for producing a defined animation.    * @param animation A reusable animation definition.    * @returns A factory object that can create a player for the defined animation.    * @see `animate()`    */   abstract build(animation: AnimationMetadata|AnimationMetadata[]): AnimationFactory; }  /**  * A factory object returned from the  * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>  * method.  *  * @publicApi  */ export abstract class AnimationFactory {   /**    * Creates an `AnimationPlayer` instance for the reusable animation defined by    * the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>    * method that created this factory and attaches the new player a DOM element.    *    * @param element The DOM element to which to attach the player.    * @param options A set of options that can include a time delay and    * additional developer-defined parameters.    */   abstract create(element: any, options?: AnimationOptions): AnimationPlayer; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Represents a set of CSS styles for use in an animation style as a generic.  */ export interface ɵStyleData {   [key: string]: string|number; }  /**  * Represents a set of CSS styles for use in an animation style as a Map.  */ export type ɵStyleDataMap = Map<string, string|number>;  /**  * Represents animation-step timing parameters for an animation step.  * @see `animate()`  *  * @publicApi  */ export declare type AnimateTimings = {   /**    * The full duration of an animation step. A number and optional time unit,    * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.    * The default unit is milliseconds.    */   duration: number,   /**    * The delay in applying an animation step. A number and optional time unit.    * The default unit is milliseconds.    */   delay: number,   /**    * An easing style that controls how an animations step accelerates    * and decelerates during its run time. An easing function such as `cubic-bezier()`,    * or one of the following constants:    * - `ease-in`    * - `ease-out`    * - `ease-in-and-out`    */   easing: string | null };  /**  * @description Options that control animation styling and timing.  *  * The following animation functions accept `AnimationOptions` data:  *  * - `transition()`  * - `sequence()`  * - `{@link animations/group group()}`  * - `query()`  * - `animation()`  * - `useAnimation()`  * - `animateChild()`  *  * Programmatic animations built using the `AnimationBuilder` service also  * make use of `AnimationOptions`.  *  * @publicApi  */ export declare interface AnimationOptions {   /**    * Sets a time-delay for initiating an animation action.    * A number and optional time unit, such as \"1s\" or \"10ms\" for one second    * and 10 milliseconds, respectively.The default unit is milliseconds.    * Default value is 0, meaning no delay.    */   delay?: number|string;   /**    * A set of developer-defined parameters that modify styling and timing    * when an animation action starts. An array of key-value pairs, where the provided value    * is used as a default.    */   params?: {[name: string]: any}; }  /**  * Adds duration options to control animation styling and timing for a child animation.  *  * @see `animateChild()`  *  * @publicApi  */ export declare interface AnimateChildOptions extends AnimationOptions {   duration?: number|string; }  /**  * @description Constants for the categories of parameters that can be defined for animations.  *  * A corresponding function defines a set of parameters for each category, and  * collects them into a corresponding `AnimationMetadata` object.  *  * @publicApi  */ export const enum AnimationMetadataType {   /**    * Associates a named animation state with a set of CSS styles.    * See [`state()`](api/animations/state)    */   State = 0,   /**    * Data for a transition from one animation state to another.    * See `transition()`    */   Transition = 1,   /**    * Contains a set of animation steps.    * See `sequence()`    */   Sequence = 2,   /**    * Contains a set of animation steps.    * See `{@link animations/group group()}`    */   Group = 3,   /**    * Contains an animation step.    * See `animate()`    */   Animate = 4,   /**    * Contains a set of animation steps.    * See `keyframes()`    */   Keyframes = 5,   /**    * Contains a set of CSS property-value pairs into a named style.    * See `style()`    */   Style = 6,   /**    * Associates an animation with an entry trigger that can be attached to an element.    * See `trigger()`    */   Trigger = 7,   /**    * Contains a re-usable animation.    * See `animation()`    */   Reference = 8,   /**    * Contains data to use in executing child animations returned by a query.    * See `animateChild()`    */   AnimateChild = 9,   /**    * Contains animation parameters for a re-usable animation.    * See `useAnimation()`    */   AnimateRef = 10,   /**    * Contains child-animation query data.    * See `query()`    */   Query = 11,   /**    * Contains data for staggering an animation sequence.    * See `stagger()`    */   Stagger = 12 }  /**  * Specifies automatic styling.  *  * @publicApi  */ export const AUTO_STYLE = '*';  /**  * Base for animation data structures.  *  * @publicApi  */ export interface AnimationMetadata {   type: AnimationMetadataType; }  /**  * Contains an animation trigger. Instantiated and returned by the  * `trigger()` function.  *  * @publicApi  */ export interface AnimationTriggerMetadata extends AnimationMetadata {   /**    * The trigger name, used to associate it with an element. Unique within the component.    */   name: string;   /**    * An animation definition object, containing an array of state and transition declarations.    */   definitions: AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: {params?: {[name: string]: any}}|null; }  /**  * Encapsulates an animation state by associating a state name with a set of CSS styles.  * Instantiated and returned by the [`state()`](api/animations/state) function.  *  * @publicApi  */ export interface AnimationStateMetadata extends AnimationMetadata {   /**    * The state name, unique within the component.    */   name: string;   /**    *  The CSS styles associated with this state.    */   styles: AnimationStyleMetadata;   /**    * An options object containing    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation.    */   options?: {params: {[name: string]: any}}; }  /**  * Encapsulates an animation transition. Instantiated and returned by the  * `transition()` function.  *  * @publicApi  */ export interface AnimationTransitionMetadata extends AnimationMetadata {   /**    * An expression that describes a state change.    */   expr: string|       ((fromState: string, toState: string, element?: any,         params?: {[key: string]: any}) => boolean);   /**    * One or more animation objects to which this transition applies.    */   animation: AnimationMetadata|AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates a reusable animation, which is a collection of individual animation steps.  * Instantiated and returned by the `animation()` function, and  * passed to the `useAnimation()` function.  *  * @publicApi  */ export interface AnimationReferenceMetadata extends AnimationMetadata {   /**    *  One or more animation step objects.    */   animation: AnimationMetadata|AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates an animation query. Instantiated and returned by  * the `query()` function.  *  * @publicApi  */ export interface AnimationQueryMetadata extends AnimationMetadata {   /**    *  The CSS selector for this query.    */   selector: string;   /**    * One or more animation step objects.    */   animation: AnimationMetadata|AnimationMetadata[];   /**    * A query options object.    */   options: AnimationQueryOptions|null; }  /**  * Encapsulates a keyframes sequence. Instantiated and returned by  * the `keyframes()` function.  *  * @publicApi  */ export interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {   /**    * An array of animation styles.    */   steps: AnimationStyleMetadata[]; }  /**  * Encapsulates an animation style. Instantiated and returned by  * the `style()` function.  *  * @publicApi  */ export interface AnimationStyleMetadata extends AnimationMetadata {   /**    * A set of CSS style properties.    */   styles: '*'|{[key: string]: string | number}|Array<{[key: string]: string | number}|'*'>;   /**    * A percentage of the total animate time at which the style is to be applied.    */   offset: number|null; }  /**  * Encapsulates an animation step. Instantiated and returned by  * the `animate()` function.  *  * @publicApi  */ export interface AnimationAnimateMetadata extends AnimationMetadata {   /**    * The timing data for the step.    */   timings: string|number|AnimateTimings;   /**    * A set of styles used in the step.    */   styles: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata|null; }  /**  * Encapsulates a child animation, that can be run explicitly when the parent is run.  * Instantiated and returned by the `animateChild` function.  *  * @publicApi  */ export interface AnimationAnimateChildMetadata extends AnimationMetadata {   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates a reusable animation.  * Instantiated and returned by the `useAnimation()` function.  *  * @publicApi  */ export interface AnimationAnimateRefMetadata extends AnimationMetadata {   /**    * An animation reference object.    */   animation: AnimationReferenceMetadata;   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates an animation sequence.  * Instantiated and returned by the `sequence()` function.  *  * @publicApi  */ export interface AnimationSequenceMetadata extends AnimationMetadata {   /**    *  An array of animation step objects.    */   steps: AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates an animation group.  * Instantiated and returned by the `{@link animations/group group()}` function.  *  * @publicApi  */ export interface AnimationGroupMetadata extends AnimationMetadata {   /**    * One or more animation or style steps that form this group.    */   steps: AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates animation query options.  * Passed to the `query()` function.  *  * @publicApi  */ export declare interface AnimationQueryOptions extends AnimationOptions {   /**    * True if this query is optional, false if it is required. Default is false.    * A required query throws an error if no elements are retrieved when    * the query is executed. An optional query does not.    *    */   optional?: boolean;   /**    * A maximum total number of results to return from the query.    * If negative, results are limited from the end of the query list towards the beginning.    * By default, results are not limited.    */   limit?: number; }  /**  * Encapsulates parameters for staggering the start times of a set of animation steps.  * Instantiated and returned by the `stagger()` function.  *  * @publicApi  **/ export interface AnimationStaggerMetadata extends AnimationMetadata {   /**    * The timing data for the steps.    */   timings: string|number;   /**    * One or more animation steps.    */   animation: AnimationMetadata|AnimationMetadata[]; }  /**  * Creates a named animation trigger, containing a  list of [`state()`](api/animations/state)  * and `transition()` entries to be evaluated when the expression  * bound to the trigger changes.  *  * @param name An identifying string.  * @param definitions  An animation definition object, containing an array of  * [`state()`](api/animations/state) and `transition()` declarations.  *  * @return An object that encapsulates the trigger data.  *  * @usageNotes  * Define an animation trigger in the `animations` section of `@Component` metadata.  * In the template, reference the trigger by name and bind it to a trigger expression that  * evaluates to a defined animation state, using the following format:  *  * `[@triggerName]=\"expression\"`  *  * Animation trigger bindings convert all values to strings, and then match the  * previous and current values against any linked transitions.  * Booleans can be specified as `1` or `true` and `0` or `false`.  *  * ### Usage Example  *  * The following example creates an animation trigger reference based on the provided  * name value.  * The provided animation value is expected to be an array consisting of state and  * transition declarations.  *  * ```typescript  * @Component({  *   selector: \"my-component\",  *   templateUrl: \"my-component-tpl.html\",  *   animations: [  *     trigger(\"myAnimationTrigger\", [  *       state(...),  *       state(...),  *       transition(...),  *       transition(...)  *     ])  *   ]  * })  * class MyComponent {  *   myStatusExp = \"something\";  * }  * ```  *  * The template associated with this component makes use of the defined trigger  * by binding to an element within its template code.  *  * ```html  * <!-- somewhere inside of my-component-tpl.html -->  * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>  * ```  *  * ### Using an inline function  * The `transition` animation method also supports reading an inline function which can decide  * if its associated animation should be run.  *  * ```typescript  * // this method is run each time the `myAnimationTrigger` trigger value changes.  * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:  string]: any}): boolean {  *   // notice that `element` and `params` are also available here  *   return toState == 'yes-please-animate';  * }  *  * @Component({  *   selector: 'my-component',  *   templateUrl: 'my-component-tpl.html',  *   animations: [  *     trigger('myAnimationTrigger', [  *       transition(myInlineMatcherFn, [  *         // the animation sequence code  *       ]),  *     ])  *   ]  * })  * class MyComponent {  *   myStatusExp = \"yes-please-animate\";  * }  * ```  *  * ### Disabling Animations  * When true, the special animation control binding `@.disabled` binding prevents  * all animations from rendering.  * Place the  `@.disabled` binding on an element to disable  * animations on the element itself, as well as any inner animation triggers  * within the element.  *  * The following example shows how to use this feature:  *  * ```typescript  * @Component({  *   selector: 'my-component',  *   template: `  *     <div [@.disabled]=\"isDisabled\">  *       <div [@childAnimation]=\"exp\"></div>  *     </div>  *   `,  *   animations: [  *     trigger(\"childAnimation\", [  *       // ...  *     ])  *   ]  * })  * class MyComponent {  *   isDisabled = true;  *   exp = '...';  * }  * ```  *  * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,  * along with any inner animations.  *  * ### Disable animations application-wide  * When an area of the template is set to have animations disabled,  * **all** inner components have their animations disabled as well.  * This means that you can disable all animations for an app  * by placing a host binding set on `@.disabled` on the topmost Angular component.  *  * ```typescript  * import {Component, HostBinding} from '@angular/core';  *  * @Component({  *   selector: 'app-component',  *   templateUrl: 'app.component.html',  * })  * class AppComponent {  *   @HostBinding('@.disabled')  *   public animationsDisabled = true;  * }  * ```  *  * ### Overriding disablement of inner animations  * Despite inner animations being disabled, a parent animation can `query()`  * for inner elements located in disabled areas of the template and still animate  * them if needed. This is also the case for when a sub animation is  * queried by a parent and then later animated using `animateChild()`.  *  * ### Detecting when an animation is disabled  * If a region of the DOM (or the entire application) has its animations disabled, the animation  * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides  * an instance of an `AnimationEvent`. If animations are disabled,  * the `.disabled` flag on the event is true.  *  * @publicApi  */ export function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata {   return {type: AnimationMetadataType.Trigger, name, definitions, options: {}}; }  /**  * Defines an animation step that combines styling information with timing information.  *  * @param timings Sets `AnimateTimings` for the parent animation.  * A string in the format \"duration [delay] [easing]\".  *  - Duration and delay are expressed as a number and optional time unit,  * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.  * The default unit is milliseconds.  *  - The easing value controls how the animation accelerates and decelerates  * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,  * `ease-in-out`, or a `cubic-bezier()` function call.  * If not supplied, no easing is applied.  *  * For example, the string \"1s 100ms ease-out\" specifies a duration of  * 1000 milliseconds, and delay of 100 ms, and the \"ease-out\" easing style,  * which decelerates near the end of the duration.  * @param styles Sets AnimationStyles for the parent animation.  * A function call to either `style()` or `keyframes()`  * that returns a collection of CSS style entries to be applied to the parent animation.  * When null, uses the styles from the destination state.  * This is useful when describing an animation step that will complete an animation;  * see \"Animating to the final state\" in `transitions()`.  * @returns An object that encapsulates the animation step.  *  * @usageNotes  * Call within an animation `sequence()`, `{@link animations/group group()}`, or  * `transition()` call to specify an animation step  * that applies given style data to the parent animation for a given amount of time.  *  * ### Syntax Examples  * **Timing examples**  *  * The following examples show various `timings` specifications.  * - `animate(500)` : Duration is 500 milliseconds.  * - `animate(\"1s\")` : Duration is 1000 milliseconds.  * - `animate(\"100ms 0.5s\")` : Duration is 100 milliseconds, delay is 500 milliseconds.  * - `animate(\"5s ease-in\")` : Duration is 5000 milliseconds, easing in.  * - `animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\")` : Duration is 5000 milliseconds, delay is 10  * milliseconds, easing according to a bezier curve.  *  * **Style examples**  *  * The following example calls `style()` to set a single CSS style.  * ```typescript  * animate(500, style({ background: \"red\" }))  * ```  * The following example calls `keyframes()` to set a CSS style  * to different values for successive keyframes.  * ```typescript  * animate(500, keyframes(  *  [  *   style({ background: \"blue\" }),  *   style({ background: \"red\" })  *  ])  * ```  *  * @publicApi  */ export function animate(     timings: string|number,     styles: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata|null =         null): AnimationAnimateMetadata {   return {type: AnimationMetadataType.Animate, styles, timings}; }  /**  * @description Defines a list of animation steps to be run in parallel.  *  * @param steps An array of animation step objects.  * - When steps are defined by `style()` or `animate()`  * function calls, each call within the group is executed instantly.  * - To specify offset styles to be applied at a later time, define steps with  * `keyframes()`, or use `animate()` calls with a delay value.  * For example:  *  * ```typescript  * group([  *   animate(\"1s\", style({ background: \"black\" })),  *   animate(\"2s\", style({ color: \"white\" }))  * ])  * ```  *  * @param options An options object containing a delay and  * developer-defined parameters that provide styling defaults and  * can be overridden on invocation.  *  * @return An object that encapsulates the group data.  *  * @usageNotes  * Grouped animations are useful when a series of styles must be  * animated at different starting times and closed off at different ending times.  *  * When called within a `sequence()` or a  * `transition()` call, does not continue to the next  * instruction until all of the inner animation steps have completed.  *  * @publicApi  */ export function group(     steps: AnimationMetadata[], options: AnimationOptions|null = null): AnimationGroupMetadata {   return {type: AnimationMetadataType.Group, steps, options}; }  /**  * Defines a list of animation steps to be run sequentially, one by one.  *  * @param steps An array of animation step objects.  * - Steps defined by `style()` calls apply the styling data immediately.  * - Steps defined by `animate()` calls apply the styling data over time  *   as specified by the timing data.  *  * ```typescript  * sequence([  *   style({ opacity: 0 }),  *   animate(\"1s\", style({ opacity: 1 }))  * ])  * ```  *  * @param options An options object containing a delay and  * developer-defined parameters that provide styling defaults and  * can be overridden on invocation.  *  * @return An object that encapsulates the sequence data.  *  * @usageNotes  * When you pass an array of steps to a  * `transition()` call, the steps run sequentially by default.  * Compare this to the `{@link animations/group group()}` call, which runs animation steps in  *parallel.  *  * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,  * execution continues to the next instruction only after each of the inner animation  * steps have completed.  *  * @publicApi  **/ export function sequence(     steps: AnimationMetadata[], options: AnimationOptions|null = null): AnimationSequenceMetadata {   return {type: AnimationMetadataType.Sequence, steps, options}; }  /**  * Declares a key/value object containing CSS properties/styles that  * can then be used for an animation [`state`](api/animations/state), within an animation  *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.  *  * @param tokens A set of CSS styles or HTML styles associated with an animation state.  * The value can be any of the following:  * - A key-value style pair associating a CSS property with a value.  * - An array of key-value style pairs.  * - An asterisk (*), to use auto-styling, where styles are derived from the element  * being animated and applied to the animation when it starts.  *  * Auto-styling can be used to define a state that depends on layout or other  * environmental factors.  *  * @return An object that encapsulates the style data.  *  * @usageNotes  * The following examples create animation styles that collect a set of  * CSS property values:  *  * ```typescript  * // string values for CSS properties  * style({ background: \"red\", color: \"blue\" })  *  * // numerical pixel values  * style({ width: 100, height: 0 })  * ```  *  * The following example uses auto-styling to allow an element to animate from  * a height of 0 up to its full height:  *  * ```  * style({ height: 0 }),  * animate(\"1s\", style({ height: \"*\" }))  * ```  *  * @publicApi  **/ export function style(tokens: '*'|{[key: string]: string | number}|                       Array<'*'|{[key: string]: string | number}>): AnimationStyleMetadata {   return {type: AnimationMetadataType.Style, styles: tokens, offset: null}; }  /**  * Declares an animation state within a trigger attached to an element.  *  * @param name One or more names for the defined state in a comma-separated string.  * The following reserved state names can be supplied to define a style for specific use  * cases:  *  * - `void` You can associate styles with this name to be used when  * the element is detached from the application. For example, when an `ngIf` evaluates  * to false, the state of the associated element is void.  *  - `*` (asterisk) Indicates the default state. You can associate styles with this name  * to be used as the fallback when the state that is being animated is not declared  * within the trigger.  *  * @param styles A set of CSS styles associated with this state, created using the  * `style()` function.  * This set of styles persists on the element once the state has been reached.  * @param options Parameters that can be passed to the state when it is invoked.  * 0 or more key-value pairs.  * @return An object that encapsulates the new state data.  *  * @usageNotes  * Use the `trigger()` function to register states to an animation trigger.  * Use the `transition()` function to animate between states.  * When a state is active within a component, its associated styles persist on the element,  * even when the animation ends.  *  * @publicApi  **/ export function state(     name: string, styles: AnimationStyleMetadata,     options?: {params: {[name: string]: any}}): AnimationStateMetadata {   return {type: AnimationMetadataType.State, name, styles, options}; }  /**  * Defines a set of animation styles, associating each style with an optional `offset` value.  *  * @param steps A set of animation styles with optional offset data.  * The optional `offset` value for a style specifies a percentage of the total animation  * time at which that style is applied.  * @returns An object that encapsulates the keyframes data.  *  * @usageNotes  * Use with the `animate()` call. Instead of applying animations  * from the current state  * to the destination state, keyframes describe how each style entry is applied and at what point  * within the animation arc.  * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).  *  * ### Usage  *  * In the following example, the offset values describe  * when each `backgroundColor` value is applied. The color is red at the start, and changes to  * blue when 20% of the total time has elapsed.  *  * ```typescript  * // the provided offset values  * animate(\"5s\", keyframes([  *   style({ backgroundColor: \"red\", offset: 0 }),  *   style({ backgroundColor: \"blue\", offset: 0.2 }),  *   style({ backgroundColor: \"orange\", offset: 0.3 }),  *   style({ backgroundColor: \"black\", offset: 1 })  * ]))  * ```  *  * If there are no `offset` values specified in the style entries, the offsets  * are calculated automatically.  *  * ```typescript  * animate(\"5s\", keyframes([  *   style({ backgroundColor: \"red\" }) // offset = 0  *   style({ backgroundColor: \"blue\" }) // offset = 0.33  *   style({ backgroundColor: \"orange\" }) // offset = 0.66  *   style({ backgroundColor: \"black\" }) // offset = 1  * ]))  *```   * @publicApi  */ export function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata {   return {type: AnimationMetadataType.Keyframes, steps}; }  /**  * Declares an animation transition which is played when a certain specified condition is met.  *  * @param stateChangeExpr A string with a specific format or a function that specifies when the  * animation transition should occur (see [State Change Expression](#state-change-expression)).  *  * @param steps One or more animation objects that represent the animation's instructions.  *  * @param options An options object that can be used to specify a delay for the animation or provide  * custom parameters for it.  *  * @returns An object that encapsulates the transition data.  *  * @usageNotes  *  * ### State Change Expression  *  * The State Change Expression instructs Angular when to run the transition's animations, it can  *either be  *  - a string with a specific syntax  *  - or a function that compares the previous and current state (value of the expression bound to  *    the element's trigger) and returns `true` if the transition should occur or `false` otherwise  *  * The string format can be:  *  - `fromState => toState`, which indicates that the transition's animations should occur then the  *    expression bound to the trigger's element goes from `fromState` to `toState`  *  *    _Example:_  *      ```typescript  *        transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))  *      ```  *  *  - `fromState <=> toState`, which indicates that the transition's animations should occur then  *    the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa  *  *    _Example:_  *      ```typescript  *        transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))  *      ```  *  *  - `:enter`/`:leave`, which indicates that the transition's animations should occur when the  *    element enters or exists the DOM  *  *    _Example:_  *      ```typescript  *        transition(':enter', [  *          style({ opacity: 0 }),  *          animate('500ms', style({ opacity: 1 }))  *        ])  *      ```  *  *  - `:increment`/`:decrement`, which indicates that the transition's animations should occur when  *    the numerical expression bound to the trigger's element has increased in value or decreased  *  *    _Example:_  *      ```typescript  *        transition(':increment', query('@counter', animateChild()))  *      ```  *  *  - a sequence of any of the above divided by commas, which indicates that transition's animations  *    should occur whenever one of the state change expressions matches  *  *    _Example:_  *      ```typescript  *        transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([  *          style({ transform: 'scale(1)', offset: 0}),  *          style({ transform: 'scale(1.1)', offset: 0.7}),  *          style({ transform: 'scale(1)', offset: 1})  *        ]))),  *      ```  *  * Also note that in such context:  *  - `void` can be used to indicate the absence of the element  *  - asterisks can be used as wildcards that match any state  *  - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is  *    equivalent to `:leave`)  *  - `true` and `false` also match expression values of `1` and `0` respectively (but do not match  *    _truthy_ and _falsy_ values)  *  * <div class=\"alert is-helpful\">  *  *  Be careful about entering end leaving elements as their transitions present a common  *  pitfall for developers.  *  *  Note that when an element with a trigger enters the DOM its `:enter` transition always  *  gets executed, but its `:leave` transition will not be executed if the element is removed  *  alongside its parent (as it will be removed \"without warning\" before its transition has  *  a chance to be executed, the only way that such transition can occur is if the element  *  is exiting the DOM on its own).  *  *  * </div>  *  * ### Animating to a Final State  *  * If the final step in a transition is a call to `animate()` that uses a timing value  * with no `style` data, that step is automatically considered the final animation arc,  * for the element to reach the final state, in such case Angular automatically adds or removes  * CSS styles to ensure that the element is in the correct final state.  *  *  * ### Usage Examples  *  *  - Transition animations applied based on  *    the trigger's expression value  *  *   ```HTML  *   <div [@myAnimationTrigger]=\"myStatusExp\">  *    ...  *   </div>  *   ```  *  *   ```typescript  *   trigger(\"myAnimationTrigger\", [  *     ..., // states  *     transition(\"on => off, open => closed\", animate(500)),  *     transition(\"* <=> error\", query('.indicator', animateChild()))  *   ])  *   ```  *  *  - Transition animations applied based on custom logic dependent  *    on the trigger's expression value and provided parameters  *  *    ```HTML  *    <div [@myAnimationTrigger]=\"{  *     value: stepName,  *     params: { target: currentTarget }  *    }\">  *     ...  *    </div>  *    ```  *  *    ```typescript  *    trigger(\"myAnimationTrigger\", [  *      ..., // states  *      transition(  *        (fromState, toState, _element, params) =>  *          ['firststep', 'laststep'].includes(fromState.toLowerCase())  *          && toState === params?.['target'],  *        animate('1s')  *      )  *    ])  *    ```  *  * @publicApi  **/ export function transition(     stateChangeExpr: string|     ((fromState: string, toState: string, element?: any, params?: {[key: string]: any}) => boolean),     steps: AnimationMetadata|AnimationMetadata[],     options: AnimationOptions|null = null): AnimationTransitionMetadata {   return {type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options}; }  /**  * Produces a reusable animation that can be invoked in another animation or sequence,  * by calling the `useAnimation()` function.  *  * @param steps One or more animation objects, as returned by the `animate()`  * or `sequence()` function, that form a transformation from one state to another.  * A sequence is used by default when you pass an array.  * @param options An options object that can contain a delay value for the start of the  * animation, and additional developer-defined parameters.  * Provided values for additional parameters are used as defaults,  * and override values can be passed to the caller on invocation.  * @returns An object that encapsulates the animation data.  *  * @usageNotes  * The following example defines a reusable animation, providing some default parameter  * values.  *  * ```typescript  * var fadeAnimation = animation([  *   style({ opacity: '{{ start }}' }),  *   animate('{{ time }}',  *   style({ opacity: '{{ end }}'}))  *   ],  *   { params: { time: '1000ms', start: 0, end: 1 }});  * ```  *  * The following invokes the defined animation with a call to `useAnimation()`,  * passing in override parameter values.  *  * ```js  * useAnimation(fadeAnimation, {  *   params: {  *     time: '2s',  *     start: 1,  *     end: 0  *   }  * })  * ```  *  * If any of the passed-in parameter values are missing from this call,  * the default values are used. If one or more parameter values are missing before a step is  * animated, `useAnimation()` throws an error.  *  * @publicApi  */ export function animation(     steps: AnimationMetadata|AnimationMetadata[],     options: AnimationOptions|null = null): AnimationReferenceMetadata {   return {type: AnimationMetadataType.Reference, animation: steps, options}; }  /**  * Executes a queried inner animation element within an animation sequence.  *  * @param options An options object that can contain a delay value for the start of the  * animation, and additional override values for developer-defined parameters.  * @return An object that encapsulates the child animation data.  *  * @usageNotes  * Each time an animation is triggered in Angular, the parent animation  * has priority and any child animations are blocked. In order  * for a child animation to run, the parent animation must query each of the elements  * containing child animations, and run them using this function.  *  * Note that this feature is designed to be used with `query()` and it will only work  * with animations that are assigned using the Angular animation library. CSS keyframes  * and transitions are not handled by this API.  *  * @publicApi  */ export function animateChild(options: AnimateChildOptions|null = null):     AnimationAnimateChildMetadata {   return {type: AnimationMetadataType.AnimateChild, options}; }  /**  * Starts a reusable animation that is created using the `animation()` function.  *  * @param animation The reusable animation to start.  * @param options An options object that can contain a delay value for the start of  * the animation, and additional override values for developer-defined parameters.  * @return An object that contains the animation parameters.  *  * @publicApi  */ export function useAnimation(     animation: AnimationReferenceMetadata,     options: AnimationOptions|null = null): AnimationAnimateRefMetadata {   return {type: AnimationMetadataType.AnimateRef, animation, options}; }  /**  * Finds one or more inner elements within the current element that is  * being animated within a sequence. Use with `animate()`.  *  * @param selector The element to query, or a set of elements that contain Angular-specific  * characteristics, specified with one or more of the following tokens.  *  - `query(\":enter\")` or `query(\":leave\")` : Query for newly inserted/removed elements (not  *     all elements can be queried via these tokens, see  *     [Entering and Leaving Elements](#entering-and-leaving-elements))  *  - `query(\":animating\")` : Query all currently animating elements.  *  - `query(\"@triggerName\")` : Query elements that contain an animation trigger.  *  - `query(\"@*\")` : Query all elements that contain an animation triggers.  *  - `query(\":self\")` : Include the current element into the animation sequence.  *  * @param animation One or more animation steps to apply to the queried element or elements.  * An array is treated as an animation sequence.  * @param options An options object. Use the 'limit' field to limit the total number of  * items to collect.  * @return An object that encapsulates the query data.  *  * @usageNotes  *  * ### Multiple Tokens  *  * Tokens can be merged into a combined query selector string. For example:  *  * ```typescript  *  query(':self, .record:enter, .record:leave, @subTrigger', [...])  * ```  *  * The `query()` function collects multiple elements and works internally by using  * `element.querySelectorAll`. Use the `limit` field of an options object to limit  * the total number of items to be collected. For example:  *  * ```js  * query('div', [  *   animate(...),  *   animate(...)  * ], { limit: 1 })  * ```  *  * By default, throws an error when zero items are found. Set the  * `optional` flag to ignore this error. For example:  *  * ```js  * query('.some-element-that-may-not-be-there', [  *   animate(...),  *   animate(...)  * ], { optional: true })  * ```  *  * ### Entering and Leaving Elements  *  * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones  * that can are those that Angular assumes can enter/leave based on their own logic  * (if their insertion/removal is simply a consequence of that of their parent they  * should be queried via a different token in their parent's `:enter`/`:leave` transitions).  *  * The only elements Angular assumes can enter/leave based on their own logic (thus the only  * ones that can be queried via the `:enter` and `:leave` tokens) are:  *  - Those inserted dynamically (via `ViewContainerRef`)  *  - Those that have a structural directive (which, under the hood, are a subset of the above ones)  *  * <div class=\"alert is-helpful\">  *  *  Note that elements will be successfully queried via `:enter`/`:leave` even if their  *  insertion/removal is not done manually via `ViewContainerRef`or caused by their structural  *  directive (e.g. they enter/exit alongside their parent).  *  * </div>  *  * <div class=\"alert is-important\">  *  *  There is an exception to what previously mentioned, besides elements entering/leaving based on  *  their own logic, elements with an animation trigger can always be queried via `:leave` when  * their parent is also leaving.  *  * </div>  *  * ### Usage Example  *  * The following example queries for inner elements and animates them  * individually using `animate()`.  *  * ```typescript  * @Component({  *   selector: 'inner',  *   template: `  *     <div [@queryAnimation]=\"exp\">  *       <h1>Title</h1>  *       <div class=\"content\">  *         Blah blah blah  *       </div>  *     </div>  *   `,  *   animations: [  *    trigger('queryAnimation', [  *      transition('* => goAnimate', [  *        // hide the inner elements  *        query('h1', style({ opacity: 0 })),  *        query('.content', style({ opacity: 0 })),  *  *        // animate the inner elements in, one by one  *        query('h1', animate(1000, style({ opacity: 1 }))),  *        query('.content', animate(1000, style({ opacity: 1 }))),  *      ])  *    ])  *  ]  * })  * class Cmp {  *   exp = '';  *  *   goAnimate() {  *     this.exp = 'goAnimate';  *   }  * }  * ```  *  * @publicApi  */ export function query(     selector: string, animation: AnimationMetadata|AnimationMetadata[],     options: AnimationQueryOptions|null = null): AnimationQueryMetadata {   return {type: AnimationMetadataType.Query, selector, animation, options}; }  /**  * Use within an animation `query()` call to issue a timing gap after  * each queried item is animated.  *  * @param timings A delay value.  * @param animation One ore more animation steps.  * @returns An object that encapsulates the stagger data.  *  * @usageNotes  * In the following example, a container element wraps a list of items stamped out  * by an `ngFor`. The container element contains an animation trigger that will later be set  * to query for each of the inner items.  *  * Each time items are added, the opacity fade-in animation runs,  * and each removed item is faded out.  * When either of these animations occur, the stagger effect is  * applied after each item's animation is started.  *  * ```html  * <!-- list.component.html -->  * <button (click)=\"toggle()\">Show / Hide Items</button>  * <hr />  * <div [@listAnimation]=\"items.length\">  *   <div *ngFor=\"let item of items\">  *     {{ item }}  *   </div>  * </div>  * ```  *  * Here is the component code:  *  * ```typescript  * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';  * @Component({  *   templateUrl: 'list.component.html',  *   animations: [  *     trigger('listAnimation', [  *     ...  *     ])  *   ]  * })  * class ListComponent {  *   items = [];  *  *   showItems() {  *     this.items = [0,1,2,3,4];  *   }  *  *   hideItems() {  *     this.items = [];  *   }  *  *   toggle() {  *     this.items.length ? this.hideItems() : this.showItems();  *    }  *  }  * ```  *  * Here is the animation trigger code:  *  * ```typescript  * trigger('listAnimation', [  *   transition('* => *', [ // each time the binding value changes  *     query(':leave', [  *       stagger(100, [  *         animate('0.5s', style({ opacity: 0 }))  *       ])  *     ]),  *     query(':enter', [  *       style({ opacity: 0 }),  *       stagger(100, [  *         animate('0.5s', style({ opacity: 1 }))  *       ])  *     ])  *   ])  * ])  * ```  *  * @publicApi  */ export function stagger(timings: string|number, animation: AnimationMetadata|AnimationMetadata[]):     AnimationStaggerMetadata {   return {type: AnimationMetadataType.Stagger, timings, animation}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ export function scheduleMicroTask(cb: () => any) {   Promise.resolve().then(cb); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {scheduleMicroTask} from '../util';  /**  * Provides programmatic control of a reusable animation sequence,  * built using the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>  * method which returns an `AnimationFactory`, whose  * <code>[create](api/animations/AnimationFactory#create)()</code> method instantiates and  * initializes this interface.  *  * @see `AnimationBuilder`  * @see `AnimationFactory`  * @see `animate()`  *  * @publicApi  */ export interface AnimationPlayer {   /**    * Provides a callback to invoke when the animation finishes.    * @param fn The callback function.    * @see `finish()`    */   onDone(fn: () => void): void;   /**    * Provides a callback to invoke when the animation starts.    * @param fn The callback function.    * @see `run()`    */   onStart(fn: () => void): void;   /**    * Provides a callback to invoke after the animation is destroyed.    * @param fn The callback function.    * @see `destroy()`    * @see `beforeDestroy()`    */   onDestroy(fn: () => void): void;   /**    * Initializes the animation.    */   init(): void;   /**    * Reports whether the animation has started.    * @returns True if the animation has started, false otherwise.    */   hasStarted(): boolean;   /**    * Runs the animation, invoking the `onStart()` callback.    */   play(): void;   /**    * Pauses the animation.    */   pause(): void;   /**    * Restarts the paused animation.    */   restart(): void;   /**    * Ends the animation, invoking the `onDone()` callback.    */   finish(): void;   /**    * Destroys the animation, after invoking the `beforeDestroy()` callback.    * Calls the `onDestroy()` callback when destruction is completed.    */   destroy(): void;   /**    * Resets the animation to its initial state.    */   reset(): void;   /**    * Sets the position of the animation.    * @param position A 0-based offset into the duration, in milliseconds.    */   setPosition(position: any /** TODO #9100 */): void;   /**    * Reports the current position of the animation.    * @returns A 0-based offset into the duration, in milliseconds.    */   getPosition(): number;   /**    * The parent of this player, if any.    */   parentPlayer: AnimationPlayer|null;   /**    * The total run time of the animation, in milliseconds.    */   readonly totalTime: number;   /**    * Provides a callback to invoke before the animation is destroyed.    */   beforeDestroy?: () => any;   /**    * @internal    * Internal    */   triggerCallback?: (phaseName: string) => void;   /**    * @internal    * Internal    */   disabled?: boolean; }  /**  * An empty programmatic controller for reusable animations.  * Used internally when animations are disabled, to avoid  * checking for the null case when an animation player is expected.  *  * @see `animate()`  * @see `AnimationPlayer`  * @see `GroupPlayer`  *  * @publicApi  */ export class NoopAnimationPlayer implements AnimationPlayer {   private _onDoneFns: Function[] = [];   private _onStartFns: Function[] = [];   private _onDestroyFns: Function[] = [];   private _originalOnDoneFns: Function[] = [];   private _originalOnStartFns: Function[] = [];   private _started = false;   private _destroyed = false;   private _finished = false;   private _position = 0;   public parentPlayer: AnimationPlayer|null = null;   public readonly totalTime: number;   constructor(duration: number = 0, delay: number = 0) {     this.totalTime = duration + delay;   }   private _onFinish() {     if (!this._finished) {       this._finished = true;       this._onDoneFns.forEach(fn => fn());       this._onDoneFns = [];     }   }   onStart(fn: () => void): void {     this._originalOnStartFns.push(fn);     this._onStartFns.push(fn);   }   onDone(fn: () => void): void {     this._originalOnDoneFns.push(fn);     this._onDoneFns.push(fn);   }   onDestroy(fn: () => void): void {     this._onDestroyFns.push(fn);   }   hasStarted(): boolean {     return this._started;   }   init(): void {}   play(): void {     if (!this.hasStarted()) {       this._onStart();       this.triggerMicrotask();     }     this._started = true;   }    /** @internal */   triggerMicrotask() {     scheduleMicroTask(() => this._onFinish());   }    private _onStart() {     this._onStartFns.forEach(fn => fn());     this._onStartFns = [];   }    pause(): void {}   restart(): void {}   finish(): void {     this._onFinish();   }   destroy(): void {     if (!this._destroyed) {       this._destroyed = true;       if (!this.hasStarted()) {         this._onStart();       }       this.finish();       this._onDestroyFns.forEach(fn => fn());       this._onDestroyFns = [];     }   }   reset(): void {     this._started = false;     this._finished = false;     this._onStartFns = this._originalOnStartFns;     this._onDoneFns = this._originalOnDoneFns;   }   setPosition(position: number): void {     this._position = this.totalTime ? position * this.totalTime : 1;   }   getPosition(): number {     return this.totalTime ? this._position / this.totalTime : 1;   }    /** @internal */   triggerCallback(phaseName: string): void {     const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;     methods.forEach(fn => fn());     methods.length = 0;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {scheduleMicroTask} from '../util'; import {AnimationPlayer} from './animation_player';  /**  * A programmatic controller for a group of reusable animations.  * Used internally to control animations.  *  * @see `AnimationPlayer`  * @see `{@link animations/group group()}`  *  */ export class AnimationGroupPlayer implements AnimationPlayer {   private _onDoneFns: Function[] = [];   private _onStartFns: Function[] = [];   private _finished = false;   private _started = false;   private _destroyed = false;   private _onDestroyFns: Function[] = [];    public parentPlayer: AnimationPlayer|null = null;   public totalTime: number = 0;   public readonly players: AnimationPlayer[];    constructor(_players: AnimationPlayer[]) {     this.players = _players;     let doneCount = 0;     let destroyCount = 0;     let startCount = 0;     const total = this.players.length;      if (total == 0) {       scheduleMicroTask(() => this._onFinish());     } else {       this.players.forEach(player => {         player.onDone(() => {           if (++doneCount == total) {             this._onFinish();           }         });         player.onDestroy(() => {           if (++destroyCount == total) {             this._onDestroy();           }         });         player.onStart(() => {           if (++startCount == total) {             this._onStart();           }         });       });     }      this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);   }    private _onFinish() {     if (!this._finished) {       this._finished = true;       this._onDoneFns.forEach(fn => fn());       this._onDoneFns = [];     }   }    init(): void {     this.players.forEach(player => player.init());   }    onStart(fn: () => void): void {     this._onStartFns.push(fn);   }    private _onStart() {     if (!this.hasStarted()) {       this._started = true;       this._onStartFns.forEach(fn => fn());       this._onStartFns = [];     }   }    onDone(fn: () => void): void {     this._onDoneFns.push(fn);   }    onDestroy(fn: () => void): void {     this._onDestroyFns.push(fn);   }    hasStarted() {     return this._started;   }    play() {     if (!this.parentPlayer) {       this.init();     }     this._onStart();     this.players.forEach(player => player.play());   }    pause(): void {     this.players.forEach(player => player.pause());   }    restart(): void {     this.players.forEach(player => player.restart());   }    finish(): void {     this._onFinish();     this.players.forEach(player => player.finish());   }    destroy(): void {     this._onDestroy();   }    private _onDestroy() {     if (!this._destroyed) {       this._destroyed = true;       this._onFinish();       this.players.forEach(player => player.destroy());       this._onDestroyFns.forEach(fn => fn());       this._onDestroyFns = [];     }   }    reset(): void {     this.players.forEach(player => player.reset());     this._destroyed = false;     this._finished = false;     this._started = false;   }    setPosition(p: number): void {     const timeAtPosition = p * this.totalTime;     this.players.forEach(player => {       const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;       player.setPosition(position);     });   }    getPosition(): number {     const longestPlayer =         this.players.reduce((longestSoFar: AnimationPlayer|null, player: AnimationPlayer) => {           const newPlayerIsLongest =               longestSoFar === null || player.totalTime > longestSoFar.totalTime;           return newPlayerIsLongest ? player : longestSoFar;         }, null);     return longestPlayer != null ? longestPlayer.getPosition() : 0;   }    beforeDestroy(): void {     this.players.forEach(player => {       if (player.beforeDestroy) {         player.beforeDestroy();       }     });   }    /** @internal */   triggerCallback(phaseName: string): void {     const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;     methods.forEach(fn => fn());     methods.length = 0;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ export {AnimationGroupPlayer as ɵAnimationGroupPlayer} from './players/animation_group_player'; export const ɵPRE_STYLE = '!'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all animation APIs of the animation package.  */ export {AnimationBuilder, AnimationFactory} from './animation_builder'; export {AnimationEvent} from './animation_event'; export {animate, animateChild, AnimateChildOptions, AnimateTimings, animation, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationMetadataType, AnimationOptions, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, AUTO_STYLE, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵStyleData, ɵStyleDataMap} from './animation_metadata'; export {AnimationPlayer, NoopAnimationPlayer} from './players/animation_player';  export * from './private_export'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/animations'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CG;MACmB,gBAAgB,CAAA;AAQrC,CAAA;AAED;;;;;;AAMG;MACmB,gBAAgB,CAAA;AAWrC;;ACsFD;;;;AAIG;AACI,MAAM,UAAU,GAAG,IAAI;AAyR9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmJG;AACa,SAAA,OAAO,CAAC,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,EAAE,CAAC;AACxB,aAAA;AACH,SAAC,CAAC,CAAC;KACJ;;AAGD,IAAA,eAAe,CAAC,SAAiB,EAAA;AAC/B,QAAA,MAAM,OAAO,GAAG,SAAS,IAAI,OAAO,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1E,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;AAC5B,QAAA,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;KACpB;AACF;;ACrKM,MAAM,UAAU,GAAG;;ACA1B;;;;AAIG;;ACJH;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 21 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../../packages/animations/browser/src/error_helpers.ts","../../../../../../../packages/animations/browser/src/render/web_animations/animatable_props_set.ts","../../../../../../../packages/animations/browser/src/render/shared.ts","../../../../../../../packages/animations/browser/src/util.ts","../../../../../../../packages/animations/browser/testing/src/mock_animation_driver.ts","../../../../../../../packages/animations/browser/testing/public_api.ts","../../../../../../../packages/animations/browser/testing/index.ts","../../../../../../../packages/animations/browser/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors';  const LINE_START = '\  - ';  export function invalidTimingValue(exp: string|number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TIMING_VALUE,       ngDevMode && `The provided timing value \"${exp}\" is invalid.`); }  export function negativeStepValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_STEP_VALUE,       ngDevMode && 'Duration values below 0 are not allowed for this animation step.'); }  export function negativeDelayValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_DELAY_VALUE,       ngDevMode && 'Delay values below 0 are not allowed for this animation step.'); }  export function invalidStyleParams(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_PARAMS,       ngDevMode &&           `Unable to resolve the local animation param ${varName} in the given list of values`); }  export function invalidParamValue(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARAM_VALUE,       ngDevMode && `Please provide a value for the animation param ${varName}`); }  export function invalidNodeType(nodeType: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_NODE_TYPE,       ngDevMode && `Unable to resolve animation metadata node #${nodeType}`); }  export function invalidCssUnitValue(userProvidedProperty: string, value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_CSS_UNIT_VALUE,       ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`); }  export function invalidTrigger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRIGGER,       ngDevMode &&           'animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\\'@foo\\', [...]))'); }  export function invalidDefinition(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_DEFINITION,       ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()'); }  export function invalidState(metadataName: string, missingSubs: string[]): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STATE,       ngDevMode &&           `state(\"${               metadataName}\", ...) must define default values for all the following style substitutions: ${               missingSubs.join(', ')}`); }  export function invalidStyleValue(value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_VALUE,       ngDevMode && `The provided style string value ${value} is not allowed.`); }  export function invalidProperty(prop: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PROPERTY,       ngDevMode &&           `The provided animation property \"${               prop}\" is not a supported CSS property for animations`); }  export function invalidParallelAnimation(     prop: string, firstStart: number, firstEnd: number, secondStart: number,     secondEnd: number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARALLEL_ANIMATION,       ngDevMode &&           `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${               firstEnd}ms\" is also being animated in a parallel animation between the times of \"${               secondStart}ms\" and \"${secondEnd}ms\"`); }  export function invalidKeyframes(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_KEYFRAMES,       ngDevMode && `keyframes() must be placed inside of a call to animate()`); }  export function invalidOffset(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_OFFSET,       ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`); }  export function keyframeOffsetsOutOfOrder(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER,       ngDevMode && `Please ensure that all keyframe offsets are in order`); }  export function keyframesMissingOffsets(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS,       ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`); }  export function invalidStagger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STAGGER,       ngDevMode && `stagger() can only be used inside of query()`); }  export function invalidQuery(selector: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_QUERY,       ngDevMode &&           `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${               selector}\", { optional: true })\\` if you wish to allow this.)`); }  export function invalidExpression(expr: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_EXPRESSION,       ngDevMode && `The provided transition expression \"${expr}\" is not supported`); }  export function invalidTransitionAlias(alias: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRANSITION_ALIAS,       ngDevMode && `The transition alias value \"${alias}\" is not supported`); }  export function validationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.VALIDATION_FAILED,       ngDevMode && `animation validation failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function buildingFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.BUILDING_FAILED,       ngDevMode && `animation building failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function triggerBuildFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_BUILD_FAILED,       ngDevMode &&           `The animation trigger \"${name}\" has failed to build due to the following errors:\  - ${               errors.map(err => err.message).join('\  - ')}`); }  export function animationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.ANIMATION_FAILED,       ngDevMode &&           `Unable to animate due to the following errors:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function registerFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.REGISTRATION_FAILED,       ngDevMode &&           `Unable to build the animation due to the following errors: ${               errors.map(err => err.message).join('\ ')}`); }  export function missingOrDestroyedAnimation(): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION,       ngDevMode && 'The requested animation doesn\\'t exist or has already been destroyed'); }  export function createAnimationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.CREATE_ANIMATION_FAILED,       ngDevMode &&           `Unable to create the animation due to the following errors:${               errors.map(err => err.message).join('\ ')}`); }  export function missingPlayer(id: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_PLAYER,       ngDevMode && `Unable to find the timeline player referenced by ${id}`); }  export function missingTrigger(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_TRIGGER,       ngDevMode &&           `Unable to listen on the animation trigger event \"${               phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`); }  export function missingEvent(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_EVENT,       ngDevMode &&           `Unable to listen on the animation trigger \"${               name}\" because the provided event is undefined!`); }  export function unsupportedTriggerEvent(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT,       ngDevMode &&           `The provided animation trigger event \"${phase}\" for the animation trigger \"${               name}\" is not supported!`); }  export function unregisteredTrigger(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNREGISTERED_TRIGGER,       ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`); }  export function triggerTransitionsFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED,       ngDevMode &&           `Unable to process animations due to the following failed trigger transitions\  ${               errors.map(err => err.message).join('\ ')}`); }  export function triggerParsingFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_PARSING_FAILED,       ngDevMode &&           `Animation parsing for the ${name} trigger have failed:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function transitionFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRANSITION_FAILED,       ngDevMode && `@${name} has failed due to:\  ${errors.map(err => err.message).join('\ - ')}`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Set of all animatable CSS properties  *  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties  */ export const ANIMATABLE_PROP_SET = new Set([   '-moz-outline-radius',   '-moz-outline-radius-bottomleft',   '-moz-outline-radius-bottomright',   '-moz-outline-radius-topleft',   '-moz-outline-radius-topright',   '-ms-grid-columns',   '-ms-grid-rows',   '-webkit-line-clamp',   '-webkit-text-fill-color',   '-webkit-text-stroke',   '-webkit-text-stroke-color',   'accent-color',   'all',   'backdrop-filter',   'background',   'background-color',   'background-position',   'background-size',   'block-size',   'border',   'border-block-end',   'border-block-end-color',   'border-block-end-width',   'border-block-start',   'border-block-start-color',   'border-block-start-width',   'border-bottom',   'border-bottom-color',   'border-bottom-left-radius',   'border-bottom-right-radius',   'border-bottom-width',   'border-color',   'border-end-end-radius',   'border-end-start-radius',   'border-image-outset',   'border-image-slice',   'border-image-width',   'border-inline-end',   'border-inline-end-color',   'border-inline-end-width',   'border-inline-start',   'border-inline-start-color',   'border-inline-start-width',   'border-left',   'border-left-color',   'border-left-width',   'border-radius',   'border-right',   'border-right-color',   'border-right-width',   'border-start-end-radius',   'border-start-start-radius',   'border-top',   'border-top-color',   'border-top-left-radius',   'border-top-right-radius',   'border-top-width',   'border-width',   'bottom',   'box-shadow',   'caret-color',   'clip',   'clip-path',   'color',   'column-count',   'column-gap',   'column-rule',   'column-rule-color',   'column-rule-width',   'column-width',   'columns',   'filter',   'flex',   'flex-basis',   'flex-grow',   'flex-shrink',   'font',   'font-size',   'font-size-adjust',   'font-stretch',   'font-variation-settings',   'font-weight',   'gap',   'grid-column-gap',   'grid-gap',   'grid-row-gap',   'grid-template-columns',   'grid-template-rows',   'height',   'inline-size',   'input-security',   'inset',   'inset-block',   'inset-block-end',   'inset-block-start',   'inset-inline',   'inset-inline-end',   'inset-inline-start',   'left',   'letter-spacing',   'line-clamp',   'line-height',   'margin',   'margin-block-end',   'margin-block-start',   'margin-bottom',   'margin-inline-end',   'margin-inline-start',   'margin-left',   'margin-right',   'margin-top',   'mask',   'mask-border',   'mask-position',   'mask-size',   'max-block-size',   'max-height',   'max-inline-size',   'max-lines',   'max-width',   'min-block-size',   'min-height',   'min-inline-size',   'min-width',   'object-position',   'offset',   'offset-anchor',   'offset-distance',   'offset-path',   'offset-position',   'offset-rotate',   'opacity',   'order',   'outline',   'outline-color',   'outline-offset',   'outline-width',   'padding',   'padding-block-end',   'padding-block-start',   'padding-bottom',   'padding-inline-end',   'padding-inline-start',   'padding-left',   'padding-right',   'padding-top',   'perspective',   'perspective-origin',   'right',   'rotate',   'row-gap',   'scale',   'scroll-margin',   'scroll-margin-block',   'scroll-margin-block-end',   'scroll-margin-block-start',   'scroll-margin-bottom',   'scroll-margin-inline',   'scroll-margin-inline-end',   'scroll-margin-inline-start',   'scroll-margin-left',   'scroll-margin-right',   'scroll-margin-top',   'scroll-padding',   'scroll-padding-block',   'scroll-padding-block-end',   'scroll-padding-block-start',   'scroll-padding-bottom',   'scroll-padding-inline',   'scroll-padding-inline-end',   'scroll-padding-inline-start',   'scroll-padding-left',   'scroll-padding-right',   'scroll-padding-top',   'scroll-snap-coordinate',   'scroll-snap-destination',   'scrollbar-color',   'shape-image-threshold',   'shape-margin',   'shape-outside',   'tab-size',   'text-decoration',   'text-decoration-color',   'text-decoration-thickness',   'text-emphasis',   'text-emphasis-color',   'text-indent',   'text-shadow',   'text-underline-offset',   'top',   'transform',   'transform-origin',   'translate',   'vertical-align',   'visibility',   'width',   'word-spacing',   'z-index',   'zoom', ]); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationEvent, AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵAnimationGroupPlayer, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {AnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer'; import {AnimationDriver} from '../../src/render/animation_driver'; import {animationFailed} from '../error_helpers';  import {ANIMATABLE_PROP_SET} from './web_animations/animatable_props_set';  // We don't include ambient node types here since @angular/animations/browser // is meant to target the browser so technically it should not depend on node // types. `process` is just declared locally here as a result. declare const process: any;  export function isBrowser(): boolean {   return (typeof window !== 'undefined' && typeof window.document !== 'undefined'); }  export function isNode(): boolean {   // Checking only for `process` isn't enough to identify whether or not we're in a Node   // environment, because Webpack by default will polyfill the `process`. While we can discern   // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and   // might not be future-proof. Instead we look at the stringified version of `process` which   // is `[object process]` in Node and `[object Object]` when polyfilled.   return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; }  export function optimizeGroupPlayer(players: AnimationPlayer[]): AnimationPlayer {   switch (players.length) {     case 0:       return new NoopAnimationPlayer();     case 1:       return players[0];     default:       return new ɵAnimationGroupPlayer(players);   } }  export function normalizeKeyframes(     driver: AnimationDriver, normalizer: AnimationStyleNormalizer, element: any,     keyframes: Array<ɵStyleDataMap>, preStyles: ɵStyleDataMap = new Map(),     postStyles: ɵStyleDataMap = new Map()): Array<ɵStyleDataMap> {   const errors: Error[] = [];   const normalizedKeyframes: Array<ɵStyleDataMap> = [];   let previousOffset = -1;   let previousKeyframe: ɵStyleDataMap|null = null;   keyframes.forEach(kf => {     const offset = kf.get('offset') as number;     const isSameOffset = offset == previousOffset;     const normalizedKeyframe: ɵStyleDataMap = (isSameOffset && previousKeyframe) || new Map();     kf.forEach((val, prop) => {       let normalizedProp = prop;       let normalizedValue = val;       if (prop !== 'offset') {         normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);         switch (normalizedValue) {           case PRE_STYLE:             normalizedValue = preStyles.get(prop)!;             break;            case AUTO_STYLE:             normalizedValue = postStyles.get(prop)!;             break;            default:             normalizedValue =                 normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);             break;         }       }       normalizedKeyframe.set(normalizedProp, normalizedValue);     });     if (!isSameOffset) {       normalizedKeyframes.push(normalizedKeyframe);     }     previousKeyframe = normalizedKeyframe;     previousOffset = offset;   });   if (errors.length) {     throw animationFailed(errors);   }    return normalizedKeyframes; }  export function listenOnPlayer(     player: AnimationPlayer, eventName: string, event: AnimationEvent|undefined,     callback: (event: any) => any) {   switch (eventName) {     case 'start':       player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));       break;     case 'done':       player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));       break;     case 'destroy':       player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));       break;   } }  export function copyAnimationEvent(     e: AnimationEvent, phaseName: string, player: AnimationPlayer): AnimationEvent {   const totalTime = player.totalTime;   const disabled = (player as any).disabled ? true : false;   const event = makeAnimationEvent(       e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName,       totalTime == undefined ? e.totalTime : totalTime, disabled);   const data = (e as any)['_data'];   if (data != null) {     (event as any)['_data'] = data;   }   return event; }  export function makeAnimationEvent(     element: any, triggerName: string, fromState: string, toState: string, phaseName: string = '',     totalTime: number = 0, disabled?: boolean): AnimationEvent {   return {element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled}; }  export function getOrSetDefaultValue<T, V>(map: Map<T, V>, key: T, defaultValue: V) {   let value = map.get(key);   if (!value) {     map.set(key, value = defaultValue);   }   return value; }  export function parseTimelineCommand(command: string): [string, string] {   const separatorPos = command.indexOf(':');   const id = command.substring(1, separatorPos);   const action = command.slice(separatorPos + 1);   return [id, action]; }  let _contains: (elm1: any, elm2: any) => boolean = (elm1: any, elm2: any) => false; let _query: (element: any, selector: string, multi: boolean) => any[] =     (element: any, selector: string, multi: boolean) => {       return [];     }; let _documentElement: unknown|null = null;  export function getParentElement(element: any): unknown|null {   const parent = element.parentNode || element.host;  // consider host to support shadow DOM   if (parent === _documentElement) {     return null;   }   return parent; }  // Define utility methods for browsers and platform-server(domino) where Element // and utility methods exist. const _isNode = isNode(); if (_isNode || typeof Element !== 'undefined') {   if (!isBrowser()) {     _contains = (elm1, elm2) => elm1.contains(elm2);   } else {     // Read the document element in an IIFE that's been marked pure to avoid a top-level property     // read that may prevent tree-shaking.     _documentElement = /* @__PURE__ */ (() => document.documentElement)();     _contains = (elm1, elm2) => {       while (elm2) {         if (elm2 === elm1) {           return true;         }         elm2 = getParentElement(elm2);       }       return false;     };   }    _query = (element: any, selector: string, multi: boolean): any[] => {     if (multi) {       return Array.from(element.querySelectorAll(selector));     }     const elem = element.querySelector(selector);     return elem ? [elem] : [];   }; }  function containsVendorPrefix(prop: string): boolean {   // Webkit is the only real popular vendor prefix nowadays   // cc: http://shouldiprefix.com/   return prop.substring(1, 6) == 'ebkit';  // webkit or Webkit }  let _CACHED_BODY: {style: any}|null = null; let _IS_WEBKIT = false; export function validateStyleProperty(prop: string): boolean {   if (!_CACHED_BODY) {     _CACHED_BODY = getBodyNode() || {};     _IS_WEBKIT = _CACHED_BODY!.style ? ('WebkitAppearance' in _CACHED_BODY!.style) : false;   }    let result = true;   if (_CACHED_BODY!.style && !containsVendorPrefix(prop)) {     result = prop in _CACHED_BODY!.style;     if (!result && _IS_WEBKIT) {       const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);       result = camelProp in _CACHED_BODY!.style;     }   }    return result; }  export function validateWebAnimatableStyleProperty(prop: string): boolean {   return ANIMATABLE_PROP_SET.has(prop); }  export function getBodyNode(): any|null {   if (typeof document != 'undefined') {     return document.body;   }   return null; }  export const containsElement = _contains; export const invokeQuery = _query;  export function hypenatePropsKeys(original: ɵStyleDataMap): ɵStyleDataMap {   const newMap: ɵStyleDataMap = new Map();   original.forEach((val, prop) => {     const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');     newMap.set(newProp, val);   });   return newMap; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateTimings, AnimationMetadata, AnimationMetadataType, AnimationOptions, sequence, ɵStyleData, ɵStyleDataMap} from '@angular/animations';  import {Ast as AnimationAst, AstVisitor as AnimationAstVisitor} from './dsl/animation_ast'; import {AnimationDslVisitor} from './dsl/animation_dsl_visitor'; import {invalidNodeType, invalidParamValue, invalidStyleParams, invalidTimingValue, negativeDelayValue, negativeStepValue} from './error_helpers'; import {isNode} from './render/shared';  export const ONE_SECOND = 1000;  export const SUBSTITUTION_EXPR_START = '{{'; export const SUBSTITUTION_EXPR_END = '}}'; export const ENTER_CLASSNAME = 'ng-enter'; export const LEAVE_CLASSNAME = 'ng-leave'; export const NG_TRIGGER_CLASSNAME = 'ng-trigger'; export const NG_TRIGGER_SELECTOR = '.ng-trigger'; export const NG_ANIMATING_CLASSNAME = 'ng-animating'; export const NG_ANIMATING_SELECTOR = '.ng-animating';  export function resolveTimingValue(value: string|number) {   if (typeof value == 'number') return value;    const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);   if (!matches || matches.length < 2) return 0;    return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]); }  function _convertTimeValueToMS(value: number, unit: string): number {   switch (unit) {     case 's':       return value * ONE_SECOND;     default:  // ms or something else       return value;   } }  export function resolveTiming(     timings: string|number|AnimateTimings, errors: Error[], allowNegativeValues?: boolean) {   return timings.hasOwnProperty('duration') ?       <AnimateTimings>timings :       parseTimeExpression(<string|number>timings, errors, allowNegativeValues); }  function parseTimeExpression(     exp: string|number, errors: Error[], allowNegativeValues?: boolean): AnimateTimings {   const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;   let duration: number;   let delay: number = 0;   let easing: string = '';   if (typeof exp === 'string') {     const matches = exp.match(regex);     if (matches === null) {       errors.push(invalidTimingValue(exp));       return {duration: 0, delay: 0, easing: ''};     }      duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);      const delayMatch = matches[3];     if (delayMatch != null) {       delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);     }      const easingVal = matches[5];     if (easingVal) {       easing = easingVal;     }   } else {     duration = exp;   }    if (!allowNegativeValues) {     let containsErrors = false;     let startIndex = errors.length;     if (duration < 0) {       errors.push(negativeStepValue());       containsErrors = true;     }     if (delay < 0) {       errors.push(negativeDelayValue());       containsErrors = true;     }     if (containsErrors) {       errors.splice(startIndex, 0, invalidTimingValue(exp));     }   }    return {duration, delay, easing}; }  export function copyObj(     obj: {[key: string]: any}, destination: {[key: string]: any} = {}): {[key: string]: any} {   Object.keys(obj).forEach(prop => {     destination[prop] = obj[prop];   });   return destination; }  export function convertToMap(obj: ɵStyleData): ɵStyleDataMap {   const styleMap: ɵStyleDataMap = new Map();   Object.keys(obj).forEach(prop => {     const val = obj[prop];     styleMap.set(prop, val);   });   return styleMap; }  export function normalizeKeyframes(keyframes: Array<ɵStyleData>|                                    Array<ɵStyleDataMap>): Array<ɵStyleDataMap> {   if (!keyframes.length) {     return [];   }   if (keyframes[0] instanceof Map) {     return keyframes as Array<ɵStyleDataMap>;   }   return keyframes.map(kf => convertToMap(kf as ɵStyleData)); }  export function normalizeStyles(styles: ɵStyleDataMap|Array<ɵStyleDataMap>): ɵStyleDataMap {   const normalizedStyles: ɵStyleDataMap = new Map();   if (Array.isArray(styles)) {     styles.forEach(data => copyStyles(data, normalizedStyles));   } else {     copyStyles(styles, normalizedStyles);   }   return normalizedStyles; }  export function copyStyles(     styles: ɵStyleDataMap, destination: ɵStyleDataMap = new Map(),     backfill?: ɵStyleDataMap): ɵStyleDataMap {   if (backfill) {     for (let [prop, val] of backfill) {       destination.set(prop, val);     }   }   for (let [prop, val] of styles) {     destination.set(prop, val);   }   return destination; }  function getStyleAttributeString(element: any, key: string, value: string) {   // Return the key-value pair string to be added to the style attribute for the   // given CSS style key.   if (value) {     return key + ':' + value + ';';   } else {     return '';   } }  function writeStyleAttribute(element: any) {   // Read the style property of the element and manually reflect it to the   // style attribute. This is needed because Domino on platform-server doesn't   // understand the full set of allowed CSS properties and doesn't reflect some   // of them automatically.   let styleAttrValue = '';   for (let i = 0; i < element.style.length; i++) {     const key = element.style.item(i);     styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));   }   for (const key in element.style) {     // Skip internal Domino properties that don't need to be reflected.     if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {       continue;     }     const dashKey = camelCaseToDashCase(key);     styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);   }   element.setAttribute('style', styleAttrValue); }  export function setStyles(element: any, styles: ɵStyleDataMap, formerStyles?: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((val, prop) => {       const camelProp = dashCaseToCamelCase(prop);       if (formerStyles && !formerStyles.has(prop)) {         formerStyles.set(prop, element.style[camelProp]);       }       element.style[camelProp] = val;     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function eraseStyles(element: any, styles: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((_, prop) => {       const camelProp = dashCaseToCamelCase(prop);       element.style[camelProp] = '';     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function normalizeAnimationEntry(steps: AnimationMetadata|                                         AnimationMetadata[]): AnimationMetadata {   if (Array.isArray(steps)) {     if (steps.length == 1) return steps[0];     return sequence(steps);   }   return steps as AnimationMetadata; }  export function validateStyleParams(     value: string|number|null|undefined, options: AnimationOptions, errors: Error[]) {   const params = options.params || {};   const matches = extractStyleParams(value);   if (matches.length) {     matches.forEach(varName => {       if (!params.hasOwnProperty(varName)) {         errors.push(invalidStyleParams(varName));       }     });   } }  const PARAM_REGEX =     new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g'); export function extractStyleParams(value: string|number|null|undefined): string[] {   let params: string[] = [];   if (typeof value === 'string') {     let match: any;     while (match = PARAM_REGEX.exec(value)) {       params.push(match[1] as string);     }     PARAM_REGEX.lastIndex = 0;   }   return params; }  export function interpolateParams(     value: string|number, params: {[name: string]: any}, errors: Error[]): string|number {   const original = value.toString();   const str = original.replace(PARAM_REGEX, (_, varName) => {     let localVal = params[varName];     // this means that the value was never overridden by the data passed in by the user     if (localVal == null) {       errors.push(invalidParamValue(varName));       localVal = '';     }     return localVal.toString();   });    // we do this to assert that numeric values stay as they are   return str == original ? value : str; }  export function iteratorToArray(iterator: any): any[] {   const arr: any[] = [];   let item = iterator.next();   while (!item.done) {     arr.push(item.value);     item = iterator.next();   }   return arr; }  const DASH_CASE_REGEXP = /-+([a-z0-9])/g; export function dashCaseToCamelCase(input: string): string {   return input.replace(DASH_CASE_REGEXP, (...m: any[]) => m[1].toUpperCase()); }  export function camelCaseToDashCase(input: string): string {   return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); }  export function allowPreviousPlayerStylesMerge(duration: number, delay: number) {   return duration === 0 || delay === 0; }  export function balancePreviousStylesIntoKeyframes(     element: any, keyframes: Array<ɵStyleDataMap>, previousStyles: ɵStyleDataMap) {   if (previousStyles.size && keyframes.length) {     let startingKeyframe = keyframes[0];     let missingStyleProps: string[] = [];     previousStyles.forEach((val, prop) => {       if (!startingKeyframe.has(prop)) {         missingStyleProps.push(prop);       }       startingKeyframe.set(prop, val);     });      if (missingStyleProps.length) {       for (let i = 1; i < keyframes.length; i++) {         let kf = keyframes[i];         missingStyleProps.forEach(prop => kf.set(prop, computeStyle(element, prop)));       }     }   }   return keyframes; }  export function visitDslNode(     visitor: AnimationDslVisitor, node: AnimationMetadata, context: any): any; export function visitDslNode(     visitor: AnimationAstVisitor, node: AnimationAst<AnimationMetadataType>, context: any): any; export function visitDslNode(visitor: any, node: any, context: any): any {   switch (node.type) {     case AnimationMetadataType.Trigger:       return visitor.visitTrigger(node, context);     case AnimationMetadataType.State:       return visitor.visitState(node, context);     case AnimationMetadataType.Transition:       return visitor.visitTransition(node, context);     case AnimationMetadataType.Sequence:       return visitor.visitSequence(node, context);     case AnimationMetadataType.Group:       return visitor.visitGroup(node, context);     case AnimationMetadataType.Animate:       return visitor.visitAnimate(node, context);     case AnimationMetadataType.Keyframes:       return visitor.visitKeyframes(node, context);     case AnimationMetadataType.Style:       return visitor.visitStyle(node, context);     case AnimationMetadataType.Reference:       return visitor.visitReference(node, context);     case AnimationMetadataType.AnimateChild:       return visitor.visitAnimateChild(node, context);     case AnimationMetadataType.AnimateRef:       return visitor.visitAnimateRef(node, context);     case AnimationMetadataType.Query:       return visitor.visitQuery(node, context);     case AnimationMetadataType.Stagger:       return visitor.visitStagger(node, context);     default:       throw invalidNodeType(node.type);   } }  export function computeStyle(element: any, prop: string): string {   return (<any>window.getComputedStyle(element))[prop]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵStyleDataMap} from '@angular/animations'; import {AnimationDriver, ɵallowPreviousPlayerStylesMerge as allowPreviousPlayerStylesMerge, ɵcontainsElement as containsElement, ɵgetParentElement as getParentElement, ɵinvokeQuery as invokeQuery, ɵnormalizeKeyframes as normalizeKeyframes, ɵvalidateStyleProperty as validateStyleProperty,} from '@angular/animations/browser';  import {validateWebAnimatableStyleProperty} from '../../src/render/shared'; import {camelCaseToDashCase} from '../../src/util';  /**  * @publicApi  */ export class MockAnimationDriver implements AnimationDriver {   static log: AnimationPlayer[] = [];    validateStyleProperty(prop: string): boolean {     return validateStyleProperty(prop);   }    validateAnimatableStyleProperty(prop: string): boolean {     const cssProp = camelCaseToDashCase(prop);     return validateWebAnimatableStyleProperty(cssProp);   }    matchesElement(_element: any, _selector: string): boolean {     return false;   }    containsElement(elm1: any, elm2: any): boolean {     return containsElement(elm1, elm2);   }    getParentElement(element: unknown): unknown {     return getParentElement(element);   }    query(element: any, selector: string, multi: boolean): any[] {     return invokeQuery(element, selector, multi);   }    computeStyle(element: any, prop: string, defaultValue?: string): string {     return defaultValue || '';   }    animate(       element: any, keyframes: Array<ɵStyleDataMap>, duration: number, delay: number,       easing: string, previousPlayers: any[] = []): MockAnimationPlayer {     const player =         new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);     MockAnimationDriver.log.push(<AnimationPlayer>player);     return player;   } }  /**  * @publicApi  */ export class MockAnimationPlayer extends NoopAnimationPlayer {   private __finished = false;   private __started = false;   public previousStyles: ɵStyleDataMap = new Map();   private _onInitFns: (() => any)[] = [];   public currentSnapshot: ɵStyleDataMap = new Map();   private _keyframes: Array<ɵStyleDataMap> = [];    constructor(       public element: any, public keyframes: Array<ɵStyleDataMap>, public duration: number,       public delay: number, public easing: string, public previousPlayers: any[]) {     super(duration, delay);      this._keyframes = normalizeKeyframes(keyframes);      if (allowPreviousPlayerStylesMerge(duration, delay)) {       previousPlayers.forEach(player => {         if (player instanceof MockAnimationPlayer) {           const styles = player.currentSnapshot;           styles.forEach((val, prop) => this.previousStyles.set(prop, val));         }       });     }   }    /* @internal */   onInit(fn: () => any) {     this._onInitFns.push(fn);   }    /* @internal */   override init() {     super.init();     this._onInitFns.forEach(fn => fn());     this._onInitFns = [];   }    override reset() {     super.reset();     this.__started = false;   }    override finish(): void {     super.finish();     this.__finished = true;   }    override destroy(): void {     super.destroy();     this.__finished = true;   }    /* @internal */   triggerMicrotask() {}    override play(): void {     super.play();     this.__started = true;   }    override hasStarted() {     return this.__started;   }    beforeDestroy() {     const captures: ɵStyleDataMap = new Map();      this.previousStyles.forEach((val, prop) => captures.set(prop, val));      if (this.hasStarted()) {       // when assembling the captured styles, it's important that       // we build the keyframe styles in the following order:       // {other styles within keyframes, ... previousStyles }       this._keyframes.forEach(kf => {         for (let [prop, val] of kf) {           if (prop !== 'offset') {             captures.set(prop, this.__finished ? val : AUTO_STYLE);           }         }       });     }      this.currentSnapshot = captures;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verifcation. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["RuntimeError","normalizeKeyframes","PRE_STYLE","validateStyleProperty","containsElement","getParentElement","invokeQuery","allowPreviousPlayerStylesMerge"],"mappings":";;;;;;;;;;AAYA,MAAM,UAAU,GAAG,OAAO,CAAC;AAErB,SAAU,kBAAkB,CAAC,GAAkB,EAAA;AACnD,IAAA,OAAO,IAAIA,aAAY,CAEnB,IAAA,8CAAA,SAAS,IAAI,CAAA,2BAAA,EAA8B,GAAG,CAAA,aAAA,CAAe,CAAC,CAAC;AACrE,CAAC;SAEe,iBAAiB,GAAA;IAC/B,OAAO,IAAIA,aAAY,CAAA,IAAA,6CAEnB,SAAS,IAAI,kEAAkE,CAAC,CAAC;AACvF,CAAC;SAEe,kBAAkB,GAAA;IAChC,OAAO,IAAIA,aAAY,CAAA,IAAA,8CAEnB,SAAS,IAAI,+DAA+D,CAAC,CAAC;AACpF,CAAC;AAEK,SAAU,kB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IAAG;gBAC3B,KAAK,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE;oBAC1B,IAAI,IAAI,KAAK,QAAQ,EAAE;AACrB,wBAAA,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,UAAU,CAAC,CAAC;AACxD,qBAAA;AACF,iBAAA;AACH,aAAC,CAAC,CAAC;AACJ,SAAA;AAED,QAAA,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;KACjC;AACF;;ACzID;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 22 --------------------
{"version":3,"file":"animations.mjs","sources":["../../../../../../packages/animations/src/animation_builder.ts","../../../../../../packages/animations/src/animation_metadata.ts","../../../../../../packages/animations/src/util.ts","../../../../../../packages/animations/src/players/animation_player.ts","../../../../../../packages/animations/src/players/animation_group_player.ts","../../../../../../packages/animations/src/private_export.ts","../../../../../../packages/animations/src/animations.ts","../../../../../../packages/animations/public_api.ts","../../../../../../packages/animations/index.ts","../../../../../../packages/animations/animations.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationOptions} from './animation_metadata'; import {AnimationPlayer} from './players/animation_player';  /**  * An injectable service that produces an animation sequence programmatically within an  * Angular component or directive.  * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.  *  * @usageNotes  *  * To use this service, add it to your component or directive as a dependency.  * The service is instantiated along with your component.  *  * Apps do not typically need to create their own animation players, but if you  * do need to, follow these steps:  *  * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method  * to create a programmatic animation. The method returns an `AnimationFactory` instance.  *  * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.  *  * 3. Use the player object to control the animation programmatically.  *  * For example:  *  * ```ts  * // import the service from BrowserAnimationsModule  * import {AnimationBuilder} from '@angular/animations';  * // require the service as a dependency  * class MyCmp {  *   constructor(private _builder: AnimationBuilder) {}  *  *   makeAnimation(element: any) {  *     // first define a reusable animation  *     const myAnimation = this._builder.build([  *       style({ width: 0 }),  *       animate(1000, style({ width: '100px' }))  *     ]);  *  *     // use the returned factory object to create a player  *     const player = myAnimation.create(element);  *  *     player.play();  *   }  * }  * ```  *  * @publicApi  */ export abstract class AnimationBuilder {   /**    * Builds a factory for producing a defined animation.    * @param animation A reusable animation definition.    * @returns A factory object that can create a player for the defined animation.    * @see `animate()`    */   abstract build(animation: AnimationMetadata|AnimationMetadata[]): AnimationFactory; }  /**  * A factory object returned from the  * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>  * method.  *  * @publicApi  */ export abstract class AnimationFactory {   /**    * Creates an `AnimationPlayer` instance for the reusable animation defined by    * the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>    * method that created this factory and attaches the new player a DOM element.    *    * @param element The DOM element to which to attach the player.    * @param options A set of options that can include a time delay and    * additional developer-defined parameters.    */   abstract create(element: any, options?: AnimationOptions): AnimationPlayer; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Represents a set of CSS styles for use in an animation style as a generic.  */ export interface ɵStyleData {   [key: string]: string|number; }  /**  * Represents a set of CSS styles for use in an animation style as a Map.  */ export type ɵStyleDataMap = Map<string, string|number>;  /**  * Represents animation-step timing parameters for an animation step.  * @see `animate()`  *  * @publicApi  */ export declare type AnimateTimings = {   /**    * The full duration of an animation step. A number and optional time unit,    * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.    * The default unit is milliseconds.    */   duration: number,   /**    * The delay in applying an animation step. A number and optional time unit.    * The default unit is milliseconds.    */   delay: number,   /**    * An easing style that controls how an animations step accelerates    * and decelerates during its run time. An easing function such as `cubic-bezier()`,    * or one of the following constants:    * - `ease-in`    * - `ease-out`    * - `ease-in-and-out`    */   easing: string | null };  /**  * @description Options that control animation styling and timing.  *  * The following animation functions accept `AnimationOptions` data:  *  * - `transition()`  * - `sequence()`  * - `{@link animations/group group()}`  * - `query()`  * - `animation()`  * - `useAnimation()`  * - `animateChild()`  *  * Programmatic animations built using the `AnimationBuilder` service also  * make use of `AnimationOptions`.  *  * @publicApi  */ export declare interface AnimationOptions {   /**    * Sets a time-delay for initiating an animation action.    * A number and optional time unit, such as \"1s\" or \"10ms\" for one second    * and 10 milliseconds, respectively.The default unit is milliseconds.    * Default value is 0, meaning no delay.    */   delay?: number|string;   /**    * A set of developer-defined parameters that modify styling and timing    * when an animation action starts. An array of key-value pairs, where the provided value    * is used as a default.    */   params?: {[name: string]: any}; }  /**  * Adds duration options to control animation styling and timing for a child animation.  *  * @see `animateChild()`  *  * @publicApi  */ export declare interface AnimateChildOptions extends AnimationOptions {   duration?: number|string; }  /**  * @description Constants for the categories of parameters that can be defined for animations.  *  * A corresponding function defines a set of parameters for each category, and  * collects them into a corresponding `AnimationMetadata` object.  *  * @publicApi  */ export const enum AnimationMetadataType {   /**    * Associates a named animation state with a set of CSS styles.    * See [`state()`](api/animations/state)    */   State = 0,   /**    * Data for a transition from one animation state to another.    * See `transition()`    */   Transition = 1,   /**    * Contains a set of animation steps.    * See `sequence()`    */   Sequence = 2,   /**    * Contains a set of animation steps.    * See `{@link animations/group group()}`    */   Group = 3,   /**    * Contains an animation step.    * See `animate()`    */   Animate = 4,   /**    * Contains a set of animation steps.    * See `keyframes()`    */   Keyframes = 5,   /**    * Contains a set of CSS property-value pairs into a named style.    * See `style()`    */   Style = 6,   /**    * Associates an animation with an entry trigger that can be attached to an element.    * See `trigger()`    */   Trigger = 7,   /**    * Contains a re-usable animation.    * See `animation()`    */   Reference = 8,   /**    * Contains data to use in executing child animations returned by a query.    * See `animateChild()`    */   AnimateChild = 9,   /**    * Contains animation parameters for a re-usable animation.    * See `useAnimation()`    */   AnimateRef = 10,   /**    * Contains child-animation query data.    * See `query()`    */   Query = 11,   /**    * Contains data for staggering an animation sequence.    * See `stagger()`    */   Stagger = 12 }  /**  * Specifies automatic styling.  *  * @publicApi  */ export const AUTO_STYLE = '*';  /**  * Base for animation data structures.  *  * @publicApi  */ export interface AnimationMetadata {   type: AnimationMetadataType; }  /**  * Contains an animation trigger. Instantiated and returned by the  * `trigger()` function.  *  * @publicApi  */ export interface AnimationTriggerMetadata extends AnimationMetadata {   /**    * The trigger name, used to associate it with an element. Unique within the component.    */   name: string;   /**    * An animation definition object, containing an array of state and transition declarations.    */   definitions: AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: {params?: {[name: string]: any}}|null; }  /**  * Encapsulates an animation state by associating a state name with a set of CSS styles.  * Instantiated and returned by the [`state()`](api/animations/state) function.  *  * @publicApi  */ export interface AnimationStateMetadata extends AnimationMetadata {   /**    * The state name, unique within the component.    */   name: string;   /**    *  The CSS styles associated with this state.    */   styles: AnimationStyleMetadata;   /**    * An options object containing    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation.    */   options?: {params: {[name: string]: any}}; }  /**  * Encapsulates an animation transition. Instantiated and returned by the  * `transition()` function.  *  * @publicApi  */ export interface AnimationTransitionMetadata extends AnimationMetadata {   /**    * An expression that describes a state change.    */   expr: string|       ((fromState: string, toState: string, element?: any,         params?: {[key: string]: any}) => boolean);   /**    * One or more animation objects to which this transition applies.    */   animation: AnimationMetadata|AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates a reusable animation, which is a collection of individual animation steps.  * Instantiated and returned by the `animation()` function, and  * passed to the `useAnimation()` function.  *  * @publicApi  */ export interface AnimationReferenceMetadata extends AnimationMetadata {   /**    *  One or more animation step objects.    */   animation: AnimationMetadata|AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates an animation query. Instantiated and returned by  * the `query()` function.  *  * @publicApi  */ export interface AnimationQueryMetadata extends AnimationMetadata {   /**    *  The CSS selector for this query.    */   selector: string;   /**    * One or more animation step objects.    */   animation: AnimationMetadata|AnimationMetadata[];   /**    * A query options object.    */   options: AnimationQueryOptions|null; }  /**  * Encapsulates a keyframes sequence. Instantiated and returned by  * the `keyframes()` function.  *  * @publicApi  */ export interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {   /**    * An array of animation styles.    */   steps: AnimationStyleMetadata[]; }  /**  * Encapsulates an animation style. Instantiated and returned by  * the `style()` function.  *  * @publicApi  */ export interface AnimationStyleMetadata extends AnimationMetadata {   /**    * A set of CSS style properties.    */   styles: '*'|{[key: string]: string | number}|Array<{[key: string]: string | number}|'*'>;   /**    * A percentage of the total animate time at which the style is to be applied.    */   offset: number|null; }  /**  * Encapsulates an animation step. Instantiated and returned by  * the `animate()` function.  *  * @publicApi  */ export interface AnimationAnimateMetadata extends AnimationMetadata {   /**    * The timing data for the step.    */   timings: string|number|AnimateTimings;   /**    * A set of styles used in the step.    */   styles: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata|null; }  /**  * Encapsulates a child animation, that can be run explicitly when the parent is run.  * Instantiated and returned by the `animateChild` function.  *  * @publicApi  */ export interface AnimationAnimateChildMetadata extends AnimationMetadata {   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates a reusable animation.  * Instantiated and returned by the `useAnimation()` function.  *  * @publicApi  */ export interface AnimationAnimateRefMetadata extends AnimationMetadata {   /**    * An animation reference object.    */   animation: AnimationReferenceMetadata;   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates an animation sequence.  * Instantiated and returned by the `sequence()` function.  *  * @publicApi  */ export interface AnimationSequenceMetadata extends AnimationMetadata {   /**    *  An array of animation step objects.    */   steps: AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates an animation group.  * Instantiated and returned by the `{@link animations/group group()}` function.  *  * @publicApi  */ export interface AnimationGroupMetadata extends AnimationMetadata {   /**    * One or more animation or style steps that form this group.    */   steps: AnimationMetadata[];   /**    * An options object containing a delay and    * developer-defined parameters that provide styling defaults and    * can be overridden on invocation. Default delay is 0.    */   options: AnimationOptions|null; }  /**  * Encapsulates animation query options.  * Passed to the `query()` function.  *  * @publicApi  */ export declare interface AnimationQueryOptions extends AnimationOptions {   /**    * True if this query is optional, false if it is required. Default is false.    * A required query throws an error if no elements are retrieved when    * the query is executed. An optional query does not.    *    */   optional?: boolean;   /**    * A maximum total number of results to return from the query.    * If negative, results are limited from the end of the query list towards the beginning.    * By default, results are not limited.    */   limit?: number; }  /**  * Encapsulates parameters for staggering the start times of a set of animation steps.  * Instantiated and returned by the `stagger()` function.  *  * @publicApi  **/ export interface AnimationStaggerMetadata extends AnimationMetadata {   /**    * The timing data for the steps.    */   timings: string|number;   /**    * One or more animation steps.    */   animation: AnimationMetadata|AnimationMetadata[]; }  /**  * Creates a named animation trigger, containing a  list of [`state()`](api/animations/state)  * and `transition()` entries to be evaluated when the expression  * bound to the trigger changes.  *  * @param name An identifying string.  * @param definitions  An animation definition object, containing an array of  * [`state()`](api/animations/state) and `transition()` declarations.  *  * @return An object that encapsulates the trigger data.  *  * @usageNotes  * Define an animation trigger in the `animations` section of `@Component` metadata.  * In the template, reference the trigger by name and bind it to a trigger expression that  * evaluates to a defined animation state, using the following format:  *  * `[@triggerName]=\"expression\"`  *  * Animation trigger bindings convert all values to strings, and then match the  * previous and current values against any linked transitions.  * Booleans can be specified as `1` or `true` and `0` or `false`.  *  * ### Usage Example  *  * The following example creates an animation trigger reference based on the provided  * name value.  * The provided animation value is expected to be an array consisting of state and  * transition declarations.  *  * ```typescript  * @Component({  *   selector: \"my-component\",  *   templateUrl: \"my-component-tpl.html\",  *   animations: [  *     trigger(\"myAnimationTrigger\", [  *       state(...),  *       state(...),  *       transition(...),  *       transition(...)  *     ])  *   ]  * })  * class MyComponent {  *   myStatusExp = \"something\";  * }  * ```  *  * The template associated with this component makes use of the defined trigger  * by binding to an element within its template code.  *  * ```html  * <!-- somewhere inside of my-component-tpl.html -->  * <div [@myAnimationTrigger]=\"myStatusExp\">...</div>  * ```  *  * ### Using an inline function  * The `transition` animation method also supports reading an inline function which can decide  * if its associated animation should be run.  *  * ```typescript  * // this method is run each time the `myAnimationTrigger` trigger value changes.  * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:  string]: any}): boolean {  *   // notice that `element` and `params` are also available here  *   return toState == 'yes-please-animate';  * }  *  * @Component({  *   selector: 'my-component',  *   templateUrl: 'my-component-tpl.html',  *   animations: [  *     trigger('myAnimationTrigger', [  *       transition(myInlineMatcherFn, [  *         // the animation sequence code  *       ]),  *     ])  *   ]  * })  * class MyComponent {  *   myStatusExp = \"yes-please-animate\";  * }  * ```  *  * ### Disabling Animations  * When true, the special animation control binding `@.disabled` binding prevents  * all animations from rendering.  * Place the  `@.disabled` binding on an element to disable  * animations on the element itself, as well as any inner animation triggers  * within the element.  *  * The following example shows how to use this feature:  *  * ```typescript  * @Component({  *   selector: 'my-component',  *   template: `  *     <div [@.disabled]=\"isDisabled\">  *       <div [@childAnimation]=\"exp\"></div>  *     </div>  *   `,  *   animations: [  *     trigger(\"childAnimation\", [  *       // ...  *     ])  *   ]  * })  * class MyComponent {  *   isDisabled = true;  *   exp = '...';  * }  * ```  *  * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,  * along with any inner animations.  *  * ### Disable animations application-wide  * When an area of the template is set to have animations disabled,  * **all** inner components have their animations disabled as well.  * This means that you can disable all animations for an app  * by placing a host binding set on `@.disabled` on the topmost Angular component.  *  * ```typescript  * import {Component, HostBinding} from '@angular/core';  *  * @Component({  *   selector: 'app-component',  *   templateUrl: 'app.component.html',  * })  * class AppComponent {  *   @HostBinding('@.disabled')  *   public animationsDisabled = true;  * }  * ```  *  * ### Overriding disablement of inner animations  * Despite inner animations being disabled, a parent animation can `query()`  * for inner elements located in disabled areas of the template and still animate  * them if needed. This is also the case for when a sub animation is  * queried by a parent and then later animated using `animateChild()`.  *  * ### Detecting when an animation is disabled  * If a region of the DOM (or the entire application) has its animations disabled, the animation  * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides  * an instance of an `AnimationEvent`. If animations are disabled,  * the `.disabled` flag on the event is true.  *  * @publicApi  */ export function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata {   return {type: AnimationMetadataType.Trigger, name, definitions, options: {}}; }  /**  * Defines an animation step that combines styling information with timing information.  *  * @param timings Sets `AnimateTimings` for the parent animation.  * A string in the format \"duration [delay] [easing]\".  *  - Duration and delay are expressed as a number and optional time unit,  * such as \"1s\" or \"10ms\" for one second and 10 milliseconds, respectively.  * The default unit is milliseconds.  *  - The easing value controls how the animation accelerates and decelerates  * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,  * `ease-in-out`, or a `cubic-bezier()` function call.  * If not supplied, no easing is applied.  *  * For example, the string \"1s 100ms ease-out\" specifies a duration of  * 1000 milliseconds, and delay of 100 ms, and the \"ease-out\" easing style,  * which decelerates near the end of the duration.  * @param styles Sets AnimationStyles for the parent animation.  * A function call to either `style()` or `keyframes()`  * that returns a collection of CSS style entries to be applied to the parent animation.  * When null, uses the styles from the destination state.  * This is useful when describing an animation step that will complete an animation;  * see \"Animating to the final state\" in `transitions()`.  * @returns An object that encapsulates the animation step.  *  * @usageNotes  * Call within an animation `sequence()`, `{@link animations/group group()}`, or  * `transition()` call to specify an animation step  * that applies given style data to the parent animation for a given amount of time.  *  * ### Syntax Examples  * **Timing examples**  *  * The following examples show various `timings` specifications.  * - `animate(500)` : Duration is 500 milliseconds.  * - `animate(\"1s\")` : Duration is 1000 milliseconds.  * - `animate(\"100ms 0.5s\")` : Duration is 100 milliseconds, delay is 500 milliseconds.  * - `animate(\"5s ease-in\")` : Duration is 5000 milliseconds, easing in.  * - `animate(\"5s 10ms cubic-bezier(.17,.67,.88,.1)\")` : Duration is 5000 milliseconds, delay is 10  * milliseconds, easing according to a bezier curve.  *  * **Style examples**  *  * The following example calls `style()` to set a single CSS style.  * ```typescript  * animate(500, style({ background: \"red\" }))  * ```  * The following example calls `keyframes()` to set a CSS style  * to different values for successive keyframes.  * ```typescript  * animate(500, keyframes(  *  [  *   style({ background: \"blue\" }),  *   style({ background: \"red\" })  *  ])  * ```  *  * @publicApi  */ export function animate(     timings: string|number,     styles: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata|null =         null): AnimationAnimateMetadata {   return {type: AnimationMetadataType.Animate, styles, timings}; }  /**  * @description Defines a list of animation steps to be run in parallel.  *  * @param steps An array of animation step objects.  * - When steps are defined by `style()` or `animate()`  * function calls, each call within the group is executed instantly.  * - To specify offset styles to be applied at a later time, define steps with  * `keyframes()`, or use `animate()` calls with a delay value.  * For example:  *  * ```typescript  * group([  *   animate(\"1s\", style({ background: \"black\" })),  *   animate(\"2s\", style({ color: \"white\" }))  * ])  * ```  *  * @param options An options object containing a delay and  * developer-defined parameters that provide styling defaults and  * can be overridden on invocation.  *  * @return An object that encapsulates the group data.  *  * @usageNotes  * Grouped animations are useful when a series of styles must be  * animated at different starting times and closed off at different ending times.  *  * When called within a `sequence()` or a  * `transition()` call, does not continue to the next  * instruction until all of the inner animation steps have completed.  *  * @publicApi  */ export function group(     steps: AnimationMetadata[], options: AnimationOptions|null = null): AnimationGroupMetadata {   return {type: AnimationMetadataType.Group, steps, options}; }  /**  * Defines a list of animation steps to be run sequentially, one by one.  *  * @param steps An array of animation step objects.  * - Steps defined by `style()` calls apply the styling data immediately.  * - Steps defined by `animate()` calls apply the styling data over time  *   as specified by the timing data.  *  * ```typescript  * sequence([  *   style({ opacity: 0 }),  *   animate(\"1s\", style({ opacity: 1 }))  * ])  * ```  *  * @param options An options object containing a delay and  * developer-defined parameters that provide styling defaults and  * can be overridden on invocation.  *  * @return An object that encapsulates the sequence data.  *  * @usageNotes  * When you pass an array of steps to a  * `transition()` call, the steps run sequentially by default.  * Compare this to the `{@link animations/group group()}` call, which runs animation steps in  *parallel.  *  * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,  * execution continues to the next instruction only after each of the inner animation  * steps have completed.  *  * @publicApi  **/ export function sequence(     steps: AnimationMetadata[], options: AnimationOptions|null = null): AnimationSequenceMetadata {   return {type: AnimationMetadataType.Sequence, steps, options}; }  /**  * Declares a key/value object containing CSS properties/styles that  * can then be used for an animation [`state`](api/animations/state), within an animation  *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.  *  * @param tokens A set of CSS styles or HTML styles associated with an animation state.  * The value can be any of the following:  * - A key-value style pair associating a CSS property with a value.  * - An array of key-value style pairs.  * - An asterisk (*), to use auto-styling, where styles are derived from the element  * being animated and applied to the animation when it starts.  *  * Auto-styling can be used to define a state that depends on layout or other  * environmental factors.  *  * @return An object that encapsulates the style data.  *  * @usageNotes  * The following examples create animation styles that collect a set of  * CSS property values:  *  * ```typescript  * // string values for CSS properties  * style({ background: \"red\", color: \"blue\" })  *  * // numerical pixel values  * style({ width: 100, height: 0 })  * ```  *  * The following example uses auto-styling to allow an element to animate from  * a height of 0 up to its full height:  *  * ```  * style({ height: 0 }),  * animate(\"1s\", style({ height: \"*\" }))  * ```  *  * @publicApi  **/ export function style(tokens: '*'|{[key: string]: string | number}|                       Array<'*'|{[key: string]: string | number}>): AnimationStyleMetadata {   return {type: AnimationMetadataType.Style, styles: tokens, offset: null}; }  /**  * Declares an animation state within a trigger attached to an element.  *  * @param name One or more names for the defined state in a comma-separated string.  * The following reserved state names can be supplied to define a style for specific use  * cases:  *  * - `void` You can associate styles with this name to be used when  * the element is detached from the application. For example, when an `ngIf` evaluates  * to false, the state of the associated element is void.  *  - `*` (asterisk) Indicates the default state. You can associate styles with this name  * to be used as the fallback when the state that is being animated is not declared  * within the trigger.  *  * @param styles A set of CSS styles associated with this state, created using the  * `style()` function.  * This set of styles persists on the element once the state has been reached.  * @param options Parameters that can be passed to the state when it is invoked.  * 0 or more key-value pairs.  * @return An object that encapsulates the new state data.  *  * @usageNotes  * Use the `trigger()` function to register states to an animation trigger.  * Use the `transition()` function to animate between states.  * When a state is active within a component, its associated styles persist on the element,  * even when the animation ends.  *  * @publicApi  **/ export function state(     name: string, styles: AnimationStyleMetadata,     options?: {params: {[name: string]: any}}): AnimationStateMetadata {   return {type: AnimationMetadataType.State, name, styles, options}; }  /**  * Defines a set of animation styles, associating each style with an optional `offset` value.  *  * @param steps A set of animation styles with optional offset data.  * The optional `offset` value for a style specifies a percentage of the total animation  * time at which that style is applied.  * @returns An object that encapsulates the keyframes data.  *  * @usageNotes  * Use with the `animate()` call. Instead of applying animations  * from the current state  * to the destination state, keyframes describe how each style entry is applied and at what point  * within the animation arc.  * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).  *  * ### Usage  *  * In the following example, the offset values describe  * when each `backgroundColor` value is applied. The color is red at the start, and changes to  * blue when 20% of the total time has elapsed.  *  * ```typescript  * // the provided offset values  * animate(\"5s\", keyframes([  *   style({ backgroundColor: \"red\", offset: 0 }),  *   style({ backgroundColor: \"blue\", offset: 0.2 }),  *   style({ backgroundColor: \"orange\", offset: 0.3 }),  *   style({ backgroundColor: \"black\", offset: 1 })  * ]))  * ```  *  * If there are no `offset` values specified in the style entries, the offsets  * are calculated automatically.  *  * ```typescript  * animate(\"5s\", keyframes([  *   style({ backgroundColor: \"red\" }) // offset = 0  *   style({ backgroundColor: \"blue\" }) // offset = 0.33  *   style({ backgroundColor: \"orange\" }) // offset = 0.66  *   style({ backgroundColor: \"black\" }) // offset = 1  * ]))  *```   * @publicApi  */ export function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata {   return {type: AnimationMetadataType.Keyframes, steps}; }  /**  * Declares an animation transition which is played when a certain specified condition is met.  *  * @param stateChangeExpr A string with a specific format or a function that specifies when the  * animation transition should occur (see [State Change Expression](#state-change-expression)).  *  * @param steps One or more animation objects that represent the animation's instructions.  *  * @param options An options object that can be used to specify a delay for the animation or provide  * custom parameters for it.  *  * @returns An object that encapsulates the transition data.  *  * @usageNotes  *  * ### State Change Expression  *  * The State Change Expression instructs Angular when to run the transition's animations, it can  *either be  *  - a string with a specific syntax  *  - or a function that compares the previous and current state (value of the expression bound to  *    the element's trigger) and returns `true` if the transition should occur or `false` otherwise  *  * The string format can be:  *  - `fromState => toState`, which indicates that the transition's animations should occur then the  *    expression bound to the trigger's element goes from `fromState` to `toState`  *  *    _Example:_  *      ```typescript  *        transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))  *      ```  *  *  - `fromState <=> toState`, which indicates that the transition's animations should occur then  *    the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa  *  *    _Example:_  *      ```typescript  *        transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))  *      ```  *  *  - `:enter`/`:leave`, which indicates that the transition's animations should occur when the  *    element enters or exists the DOM  *  *    _Example:_  *      ```typescript  *        transition(':enter', [  *          style({ opacity: 0 }),  *          animate('500ms', style({ opacity: 1 }))  *        ])  *      ```  *  *  - `:increment`/`:decrement`, which indicates that the transition's animations should occur when  *    the numerical expression bound to the trigger's element has increased in value or decreased  *  *    _Example:_  *      ```typescript  *        transition(':increment', query('@counter', animateChild()))  *      ```  *  *  - a sequence of any of the above divided by commas, which indicates that transition's animations  *    should occur whenever one of the state change expressions matches  *  *    _Example:_  *      ```typescript  *        transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([  *          style({ transform: 'scale(1)', offset: 0}),  *          style({ transform: 'scale(1.1)', offset: 0.7}),  *          style({ transform: 'scale(1)', offset: 1})  *        ]))),  *      ```  *  * Also note that in such context:  *  - `void` can be used to indicate the absence of the element  *  - asterisks can be used as wildcards that match any state  *  - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is  *    equivalent to `:leave`)  *  - `true` and `false` also match expression values of `1` and `0` respectively (but do not match  *    _truthy_ and _falsy_ values)  *  * <div class=\"alert is-helpful\">  *  *  Be careful about entering end leaving elements as their transitions present a common  *  pitfall for developers.  *  *  Note that when an element with a trigger enters the DOM its `:enter` transition always  *  gets executed, but its `:leave` transition will not be executed if the element is removed  *  alongside its parent (as it will be removed \"without warning\" before its transition has  *  a chance to be executed, the only way that such transition can occur is if the element  *  is exiting the DOM on its own).  *  *  * </div>  *  * ### Animating to a Final State  *  * If the final step in a transition is a call to `animate()` that uses a timing value  * with no `style` data, that step is automatically considered the final animation arc,  * for the element to reach the final state, in such case Angular automatically adds or removes  * CSS styles to ensure that the element is in the correct final state.  *  *  * ### Usage Examples  *  *  - Transition animations applied based on  *    the trigger's expression value  *  *   ```HTML  *   <div [@myAnimationTrigger]=\"myStatusExp\">  *    ...  *   </div>  *   ```  *  *   ```typescript  *   trigger(\"myAnimationTrigger\", [  *     ..., // states  *     transition(\"on => off, open => closed\", animate(500)),  *     transition(\"* <=> error\", query('.indicator', animateChild()))  *   ])  *   ```  *  *  - Transition animations applied based on custom logic dependent  *    on the trigger's expression value and provided parameters  *  *    ```HTML  *    <div [@myAnimationTrigger]=\"{  *     value: stepName,  *     params: { target: currentTarget }  *    }\">  *     ...  *    </div>  *    ```  *  *    ```typescript  *    trigger(\"myAnimationTrigger\", [  *      ..., // states  *      transition(  *        (fromState, toState, _element, params) =>  *          ['firststep', 'laststep'].includes(fromState.toLowerCase())  *          && toState === params?.['target'],  *        animate('1s')  *      )  *    ])  *    ```  *  * @publicApi  **/ export function transition(     stateChangeExpr: string|     ((fromState: string, toState: string, element?: any, params?: {[key: string]: any}) => boolean),     steps: AnimationMetadata|AnimationMetadata[],     options: AnimationOptions|null = null): AnimationTransitionMetadata {   return {type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options}; }  /**  * Produces a reusable animation that can be invoked in another animation or sequence,  * by calling the `useAnimation()` function.  *  * @param steps One or more animation objects, as returned by the `animate()`  * or `sequence()` function, that form a transformation from one state to another.  * A sequence is used by default when you pass an array.  * @param options An options object that can contain a delay value for the start of the  * animation, and additional developer-defined parameters.  * Provided values for additional parameters are used as defaults,  * and override values can be passed to the caller on invocation.  * @returns An object that encapsulates the animation data.  *  * @usageNotes  * The following example defines a reusable animation, providing some default parameter  * values.  *  * ```typescript  * var fadeAnimation = animation([  *   style({ opacity: '{{ start }}' }),  *   animate('{{ time }}',  *   style({ opacity: '{{ end }}'}))  *   ],  *   { params: { time: '1000ms', start: 0, end: 1 }});  * ```  *  * The following invokes the defined animation with a call to `useAnimation()`,  * passing in override parameter values.  *  * ```js  * useAnimation(fadeAnimation, {  *   params: {  *     time: '2s',  *     start: 1,  *     end: 0  *   }  * })  * ```  *  * If any of the passed-in parameter values are missing from this call,  * the default values are used. If one or more parameter values are missing before a step is  * animated, `useAnimation()` throws an error.  *  * @publicApi  */ export function animation(     steps: AnimationMetadata|AnimationMetadata[],     options: AnimationOptions|null = null): AnimationReferenceMetadata {   return {type: AnimationMetadataType.Reference, animation: steps, options}; }  /**  * Executes a queried inner animation element within an animation sequence.  *  * @param options An options object that can contain a delay value for the start of the  * animation, and additional override values for developer-defined parameters.  * @return An object that encapsulates the child animation data.  *  * @usageNotes  * Each time an animation is triggered in Angular, the parent animation  * has priority and any child animations are blocked. In order  * for a child animation to run, the parent animation must query each of the elements  * containing child animations, and run them using this function.  *  * Note that this feature is designed to be used with `query()` and it will only work  * with animations that are assigned using the Angular animation library. CSS keyframes  * and transitions are not handled by this API.  *  * @publicApi  */ export function animateChild(options: AnimateChildOptions|null = null):     AnimationAnimateChildMetadata {   return {type: AnimationMetadataType.AnimateChild, options}; }  /**  * Starts a reusable animation that is created using the `animation()` function.  *  * @param animation The reusable animation to start.  * @param options An options object that can contain a delay value for the start of  * the animation, and additional override values for developer-defined parameters.  * @return An object that contains the animation parameters.  *  * @publicApi  */ export function useAnimation(     animation: AnimationReferenceMetadata,     options: AnimationOptions|null = null): AnimationAnimateRefMetadata {   return {type: AnimationMetadataType.AnimateRef, animation, options}; }  /**  * Finds one or more inner elements within the current element that is  * being animated within a sequence. Use with `animate()`.  *  * @param selector The element to query, or a set of elements that contain Angular-specific  * characteristics, specified with one or more of the following tokens.  *  - `query(\":enter\")` or `query(\":leave\")` : Query for newly inserted/removed elements (not  *     all elements can be queried via these tokens, see  *     [Entering and Leaving Elements](#entering-and-leaving-elements))  *  - `query(\":animating\")` : Query all currently animating elements.  *  - `query(\"@triggerName\")` : Query elements that contain an animation trigger.  *  - `query(\"@*\")` : Query all elements that contain an animation triggers.  *  - `query(\":self\")` : Include the current element into the animation sequence.  *  * @param animation One or more animation steps to apply to the queried element or elements.  * An array is treated as an animation sequence.  * @param options An options object. Use the 'limit' field to limit the total number of  * items to collect.  * @return An object that encapsulates the query data.  *  * @usageNotes  *  * ### Multiple Tokens  *  * Tokens can be merged into a combined query selector string. For example:  *  * ```typescript  *  query(':self, .record:enter, .record:leave, @subTrigger', [...])  * ```  *  * The `query()` function collects multiple elements and works internally by using  * `element.querySelectorAll`. Use the `limit` field of an options object to limit  * the total number of items to be collected. For example:  *  * ```js  * query('div', [  *   animate(...),  *   animate(...)  * ], { limit: 1 })  * ```  *  * By default, throws an error when zero items are found. Set the  * `optional` flag to ignore this error. For example:  *  * ```js  * query('.some-element-that-may-not-be-there', [  *   animate(...),  *   animate(...)  * ], { optional: true })  * ```  *  * ### Entering and Leaving Elements  *  * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones  * that can are those that Angular assumes can enter/leave based on their own logic  * (if their insertion/removal is simply a consequence of that of their parent they  * should be queried via a different token in their parent's `:enter`/`:leave` transitions).  *  * The only elements Angular assumes can enter/leave based on their own logic (thus the only  * ones that can be queried via the `:enter` and `:leave` tokens) are:  *  - Those inserted dynamically (via `ViewContainerRef`)  *  - Those that have a structural directive (which, under the hood, are a subset of the above ones)  *  * <div class=\"alert is-helpful\">  *  *  Note that elements will be successfully queried via `:enter`/`:leave` even if their  *  insertion/removal is not done manually via `ViewContainerRef`or caused by their structural  *  directive (e.g. they enter/exit alongside their parent).  *  * </div>  *  * <div class=\"alert is-important\">  *  *  There is an exception to what previously mentioned, besides elements entering/leaving based on  *  their own logic, elements with an animation trigger can always be queried via `:leave` when  * their parent is also leaving.  *  * </div>  *  * ### Usage Example  *  * The following example queries for inner elements and animates them  * individually using `animate()`.  *  * ```typescript  * @Component({  *   selector: 'inner',  *   template: `  *     <div [@queryAnimation]=\"exp\">  *       <h1>Title</h1>  *       <div class=\"content\">  *         Blah blah blah  *       </div>  *     </div>  *   `,  *   animations: [  *    trigger('queryAnimation', [  *      transition('* => goAnimate', [  *        // hide the inner elements  *        query('h1', style({ opacity: 0 })),  *        query('.content', style({ opacity: 0 })),  *  *        // animate the inner elements in, one by one  *        query('h1', animate(1000, style({ opacity: 1 }))),  *        query('.content', animate(1000, style({ opacity: 1 }))),  *      ])  *    ])  *  ]  * })  * class Cmp {  *   exp = '';  *  *   goAnimate() {  *     this.exp = 'goAnimate';  *   }  * }  * ```  *  * @publicApi  */ export function query(     selector: string, animation: AnimationMetadata|AnimationMetadata[],     options: AnimationQueryOptions|null = null): AnimationQueryMetadata {   return {type: AnimationMetadataType.Query, selector, animation, options}; }  /**  * Use within an animation `query()` call to issue a timing gap after  * each queried item is animated.  *  * @param timings A delay value.  * @param animation One ore more animation steps.  * @returns An object that encapsulates the stagger data.  *  * @usageNotes  * In the following example, a container element wraps a list of items stamped out  * by an `ngFor`. The container element contains an animation trigger that will later be set  * to query for each of the inner items.  *  * Each time items are added, the opacity fade-in animation runs,  * and each removed item is faded out.  * When either of these animations occur, the stagger effect is  * applied after each item's animation is started.  *  * ```html  * <!-- list.component.html -->  * <button (click)=\"toggle()\">Show / Hide Items</button>  * <hr />  * <div [@listAnimation]=\"items.length\">  *   <div *ngFor=\"let item of items\">  *     {{ item }}  *   </div>  * </div>  * ```  *  * Here is the component code:  *  * ```typescript  * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';  * @Component({  *   templateUrl: 'list.component.html',  *   animations: [  *     trigger('listAnimation', [  *     ...  *     ])  *   ]  * })  * class ListComponent {  *   items = [];  *  *   showItems() {  *     this.items = [0,1,2,3,4];  *   }  *  *   hideItems() {  *     this.items = [];  *   }  *  *   toggle() {  *     this.items.length ? this.hideItems() : this.showItems();  *    }  *  }  * ```  *  * Here is the animation trigger code:  *  * ```typescript  * trigger('listAnimation', [  *   transition('* => *', [ // each time the binding value changes  *     query(':leave', [  *       stagger(100, [  *         animate('0.5s', style({ opacity: 0 }))  *       ])  *     ]),  *     query(':enter', [  *       style({ opacity: 0 }),  *       stagger(100, [  *         animate('0.5s', style({ opacity: 1 }))  *       ])  *     ])  *   ])  * ])  * ```  *  * @publicApi  */ export function stagger(timings: string|number, animation: AnimationMetadata|AnimationMetadata[]):     AnimationStaggerMetadata {   return {type: AnimationMetadataType.Stagger, timings, animation}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ export function scheduleMicroTask(cb: () => any) {   Promise.resolve().then(cb); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {scheduleMicroTask} from '../util';  /**  * Provides programmatic control of a reusable animation sequence,  * built using the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>  * method which returns an `AnimationFactory`, whose  * <code>[create](api/animations/AnimationFactory#create)()</code> method instantiates and  * initializes this interface.  *  * @see `AnimationBuilder`  * @see `AnimationFactory`  * @see `animate()`  *  * @publicApi  */ export interface AnimationPlayer {   /**    * Provides a callback to invoke when the animation finishes.    * @param fn The callback function.    * @see `finish()`    */   onDone(fn: () => void): void;   /**    * Provides a callback to invoke when the animation starts.    * @param fn The callback function.    * @see `run()`    */   onStart(fn: () => void): void;   /**    * Provides a callback to invoke after the animation is destroyed.    * @param fn The callback function.    * @see `destroy()`    * @see `beforeDestroy()`    */   onDestroy(fn: () => void): void;   /**    * Initializes the animation.    */   init(): void;   /**    * Reports whether the animation has started.    * @returns True if the animation has started, false otherwise.    */   hasStarted(): boolean;   /**    * Runs the animation, invoking the `onStart()` callback.    */   play(): void;   /**    * Pauses the animation.    */   pause(): void;   /**    * Restarts the paused animation.    */   restart(): void;   /**    * Ends the animation, invoking the `onDone()` callback.    */   finish(): void;   /**    * Destroys the animation, after invoking the `beforeDestroy()` callback.    * Calls the `onDestroy()` callback when destruction is completed.    */   destroy(): void;   /**    * Resets the animation to its initial state.    */   reset(): void;   /**    * Sets the position of the animation.    * @param position A 0-based offset into the duration, in milliseconds.    */   setPosition(position: any /** TODO #9100 */): void;   /**    * Reports the current position of the animation.    * @returns A 0-based offset into the duration, in milliseconds.    */   getPosition(): number;   /**    * The parent of this player, if any.    */   parentPlayer: AnimationPlayer|null;   /**    * The total run time of the animation, in milliseconds.    */   readonly totalTime: number;   /**    * Provides a callback to invoke before the animation is destroyed.    */   beforeDestroy?: () => any;   /**    * @internal    * Internal    */   triggerCallback?: (phaseName: string) => void;   /**    * @internal    * Internal    */   disabled?: boolean; }  /**  * An empty programmatic controller for reusable animations.  * Used internally when animations are disabled, to avoid  * checking for the null case when an animation player is expected.  *  * @see `animate()`  * @see `AnimationPlayer`  * @see `GroupPlayer`  *  * @publicApi  */ export class NoopAnimationPlayer implements AnimationPlayer {   private _onDoneFns: Function[] = [];   private _onStartFns: Function[] = [];   private _onDestroyFns: Function[] = [];   private _originalOnDoneFns: Function[] = [];   private _originalOnStartFns: Function[] = [];   private _started = false;   private _destroyed = false;   private _finished = false;   private _position = 0;   public parentPlayer: AnimationPlayer|null = null;   public readonly totalTime: number;   constructor(duration: number = 0, delay: number = 0) {     this.totalTime = duration + delay;   }   private _onFinish() {     if (!this._finished) {       this._finished = true;       this._onDoneFns.forEach(fn => fn());       this._onDoneFns = [];     }   }   onStart(fn: () => void): void {     this._originalOnStartFns.push(fn);     this._onStartFns.push(fn);   }   onDone(fn: () => void): void {     this._originalOnDoneFns.push(fn);     this._onDoneFns.push(fn);   }   onDestroy(fn: () => void): void {     this._onDestroyFns.push(fn);   }   hasStarted(): boolean {     return this._started;   }   init(): void {}   play(): void {     if (!this.hasStarted()) {       this._onStart();       this.triggerMicrotask();     }     this._started = true;   }    /** @internal */   triggerMicrotask() {     scheduleMicroTask(() => this._onFinish());   }    private _onStart() {     this._onStartFns.forEach(fn => fn());     this._onStartFns = [];   }    pause(): void {}   restart(): void {}   finish(): void {     this._onFinish();   }   destroy(): void {     if (!this._destroyed) {       this._destroyed = true;       if (!this.hasStarted()) {         this._onStart();       }       this.finish();       this._onDestroyFns.forEach(fn => fn());       this._onDestroyFns = [];     }   }   reset(): void {     this._started = false;     this._finished = false;     this._onStartFns = this._originalOnStartFns;     this._onDoneFns = this._originalOnDoneFns;   }   setPosition(position: number): void {     this._position = this.totalTime ? position * this.totalTime : 1;   }   getPosition(): number {     return this.totalTime ? this._position / this.totalTime : 1;   }    /** @internal */   triggerCallback(phaseName: string): void {     const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;     methods.forEach(fn => fn());     methods.length = 0;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {scheduleMicroTask} from '../util'; import {AnimationPlayer} from './animation_player';  /**  * A programmatic controller for a group of reusable animations.  * Used internally to control animations.  *  * @see `AnimationPlayer`  * @see `{@link animations/group group()}`  *  */ export class AnimationGroupPlayer implements AnimationPlayer {   private _onDoneFns: Function[] = [];   private _onStartFns: Function[] = [];   private _finished = false;   private _started = false;   private _destroyed = false;   private _onDestroyFns: Function[] = [];    public parentPlayer: AnimationPlayer|null = null;   public totalTime: number = 0;   public readonly players: AnimationPlayer[];    constructor(_players: AnimationPlayer[]) {     this.players = _players;     let doneCount = 0;     let destroyCount = 0;     let startCount = 0;     const total = this.players.length;      if (total == 0) {       scheduleMicroTask(() => this._onFinish());     } else {       this.players.forEach(player => {         player.onDone(() => {           if (++doneCount == total) {             this._onFinish();           }         });         player.onDestroy(() => {           if (++destroyCount == total) {             this._onDestroy();           }         });         player.onStart(() => {           if (++startCount == total) {             this._onStart();           }         });       });     }      this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);   }    private _onFinish() {     if (!this._finished) {       this._finished = true;       this._onDoneFns.forEach(fn => fn());       this._onDoneFns = [];     }   }    init(): void {     this.players.forEach(player => player.init());   }    onStart(fn: () => void): void {     this._onStartFns.push(fn);   }    private _onStart() {     if (!this.hasStarted()) {       this._started = true;       this._onStartFns.forEach(fn => fn());       this._onStartFns = [];     }   }    onDone(fn: () => void): void {     this._onDoneFns.push(fn);   }    onDestroy(fn: () => void): void {     this._onDestroyFns.push(fn);   }    hasStarted() {     return this._started;   }    play() {     if (!this.parentPlayer) {       this.init();     }     this._onStart();     this.players.forEach(player => player.play());   }    pause(): void {     this.players.forEach(player => player.pause());   }    restart(): void {     this.players.forEach(player => player.restart());   }    finish(): void {     this._onFinish();     this.players.forEach(player => player.finish());   }    destroy(): void {     this._onDestroy();   }    private _onDestroy() {     if (!this._destroyed) {       this._destroyed = true;       this._onFinish();       this.players.forEach(player => player.destroy());       this._onDestroyFns.forEach(fn => fn());       this._onDestroyFns = [];     }   }    reset(): void {     this.players.forEach(player => player.reset());     this._destroyed = false;     this._finished = false;     this._started = false;   }    setPosition(p: number): void {     const timeAtPosition = p * this.totalTime;     this.players.forEach(player => {       const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;       player.setPosition(position);     });   }    getPosition(): number {     const longestPlayer =         this.players.reduce((longestSoFar: AnimationPlayer|null, player: AnimationPlayer) => {           const newPlayerIsLongest =               longestSoFar === null || player.totalTime > longestSoFar.totalTime;           return newPlayerIsLongest ? player : longestSoFar;         }, null);     return longestPlayer != null ? longestPlayer.getPosition() : 0;   }    beforeDestroy(): void {     this.players.forEach(player => {       if (player.beforeDestroy) {         player.beforeDestroy();       }     });   }    /** @internal */   triggerCallback(phaseName: string): void {     const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;     methods.forEach(fn => fn());     methods.length = 0;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ export {AnimationGroupPlayer as ɵAnimationGroupPlayer} from './players/animation_group_player'; export const ɵPRE_STYLE = '!'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all animation APIs of the animation package.  */ export {AnimationBuilder, AnimationFactory} from './animation_builder'; export {AnimationEvent} from './animation_event'; export {animate, animateChild, AnimateChildOptions, AnimateTimings, animation, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationMetadataType, AnimationOptions, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, AUTO_STYLE, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵStyleData, ɵStyleDataMap} from './animation_metadata'; export {AnimationPlayer, NoopAnimationPlayer} from './players/animation_player';  export * from './private_export'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/animations'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated b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GAAG,YAAY,CAAC,SAAS,CAAC;YACvE,OAAO,kBAAkB,GAAG,MAAM,GAAG,YAAY,CAAC;SACnD,EAAE,IAAI,CAAC,CAAC;AACb,QAAA,OAAO,aAAa,IAAI,IAAI,GAAG,aAAa,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;KAChE;IAED,aAAa,GAAA;AACX,QAAA,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,IAAG;YAC5B,IAAI,MAAM,CAAC,aAAa,EAAE;gBACxB,MAAM,CAAC,aAAa,EAAE,CAAC;AACxB,aAAA;AACH,SAAC,CAAC,CAAC;KACJ;;AAGD,IAAA,eAAe,CAAC,SAAiB,EAAA;AAC/B,QAAA,MAAM,OAAO,GAAG,SAAS,IAAI,OAAO,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC;QAC1E,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;AAC5B,QAAA,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;KACpB;AACF;;ACrKM,MAAM,UAAU,GAAG;;ACA1B;;;;AAIG;;ACJH;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 23 --------------------
{"version":3,"file":"browser.mjs","sources":["../../../../../../packages/animations/browser/src/error_helpers.ts","../../../../../../packages/animations/browser/src/render/web_animations/animatable_props_set.ts","../../../../../../packages/animations/browser/src/render/shared.ts","../../../../../../packages/animations/browser/src/render/animation_driver.ts","../../../../../../packages/animations/browser/src/util.ts","../../../../../../packages/animations/browser/src/warning_helpers.ts","../../../../../../packages/animations/browser/src/dsl/animation_transition_expr.ts","../../../../../../packages/animations/browser/src/dsl/animation_ast_builder.ts","../../../../../../packages/animations/browser/src/dsl/animation_timeline_instruction.ts","../../../../../../packages/animations/browser/src/dsl/element_instruction_map.ts","../../../../../../packages/animations/browser/src/dsl/animation_timeline_builder.ts","../../../../../../packages/animations/browser/src/dsl/animation.ts","../../../../../../packages/animations/browser/src/dsl/style_normalization/animation_style_normalizer.ts","../../../../../../packages/animations/browser/src/dsl/style_normalization/web_animations_style_normalizer.ts","../../../../../../packages/animations/browser/src/dsl/animation_transition_instruction.ts","../../../../../../packages/animations/browser/src/dsl/animation_transition_factory.ts","../../../../../../packages/animations/browser/src/dsl/animation_trigger.ts","../../../../../../packages/animations/browser/src/render/timeline_animation_engine.ts","../../../../../../packages/animations/browser/src/render/transition_animation_engine.ts","../../../../../../packages/animations/browser/src/render/animation_engine_next.ts","../../../../../../packages/animations/browser/src/render/special_cased_styles.ts","../../../../../../packages/animations/browser/src/render/web_animations/web_animations_player.ts","../../../../../../packages/animations/browser/src/render/web_animations/web_animations_driver.ts","../../../../../../packages/animations/browser/src/browser.ts","../../../../../../packages/animations/browser/public_api.ts","../../../../../../packages/animations/browser/index.ts","../../../../../../packages/animations/browser/browser.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors';  const LINE_START = '\  - ';  export function invalidTimingValue(exp: string|number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TIMING_VALUE,       ngDevMode && `The provided timing value \"${exp}\" is invalid.`); }  export function negativeStepValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_STEP_VALUE,       ngDevMode && 'Duration values below 0 are not allowed for this animation step.'); }  export function negativeDelayValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_DELAY_VALUE,       ngDevMode && 'Delay values below 0 are not allowed for this animation step.'); }  export function invalidStyleParams(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_PARAMS,       ngDevMode &&           `Unable to resolve the local animation param ${varName} in the given list of values`); }  export function invalidParamValue(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARAM_VALUE,       ngDevMode && `Please provide a value for the animation param ${varName}`); }  export function invalidNodeType(nodeType: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_NODE_TYPE,       ngDevMode && `Unable to resolve animation metadata node #${nodeType}`); }  export function invalidCssUnitValue(userProvidedProperty: string, value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_CSS_UNIT_VALUE,       ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`); }  export function invalidTrigger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRIGGER,       ngDevMode &&           'animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\\'@foo\\', [...]))'); }  export function invalidDefinition(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_DEFINITION,       ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()'); }  export function invalidState(metadataName: string, missingSubs: string[]): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STATE,       ngDevMode &&           `state(\"${               metadataName}\", ...) must define default values for all the following style substitutions: ${               missingSubs.join(', ')}`); }  export function invalidStyleValue(value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_VALUE,       ngDevMode && `The provided style string value ${value} is not allowed.`); }  export function invalidProperty(prop: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PROPERTY,       ngDevMode &&           `The provided animation property \"${               prop}\" is not a supported CSS property for animations`); }  export function invalidParallelAnimation(     prop: string, firstStart: number, firstEnd: number, secondStart: number,     secondEnd: number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARALLEL_ANIMATION,       ngDevMode &&           `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${               firstEnd}ms\" is also being animated in a parallel animation between the times of \"${               secondStart}ms\" and \"${secondEnd}ms\"`); }  export function invalidKeyframes(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_KEYFRAMES,       ngDevMode && `keyframes() must be placed inside of a call to animate()`); }  export function invalidOffset(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_OFFSET,       ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`); }  export function keyframeOffsetsOutOfOrder(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER,       ngDevMode && `Please ensure that all keyframe offsets are in order`); }  export function keyframesMissingOffsets(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS,       ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`); }  export function invalidStagger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STAGGER,       ngDevMode && `stagger() can only be used inside of query()`); }  export function invalidQuery(selector: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_QUERY,       ngDevMode &&           `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${               selector}\", { optional: true })\\` if you wish to allow this.)`); }  export function invalidExpression(expr: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_EXPRESSION,       ngDevMode && `The provided transition expression \"${expr}\" is not supported`); }  export function invalidTransitionAlias(alias: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRANSITION_ALIAS,       ngDevMode && `The transition alias value \"${alias}\" is not supported`); }  export function validationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.VALIDATION_FAILED,       ngDevMode && `animation validation failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function buildingFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.BUILDING_FAILED,       ngDevMode && `animation building failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function triggerBuildFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_BUILD_FAILED,       ngDevMode &&           `The animation trigger \"${name}\" has failed to build due to the following errors:\  - ${               errors.map(err => err.message).join('\  - ')}`); }  export function animationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.ANIMATION_FAILED,       ngDevMode &&           `Unable to animate due to the following errors:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function registerFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.REGISTRATION_FAILED,       ngDevMode &&           `Unable to build the animation due to the following errors: ${               errors.map(err => err.message).join('\ ')}`); }  export function missingOrDestroyedAnimation(): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION,       ngDevMode && 'The requested animation doesn\\'t exist or has already been destroyed'); }  export function createAnimationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.CREATE_ANIMATION_FAILED,       ngDevMode &&           `Unable to create the animation due to the following errors:${               errors.map(err => err.message).join('\ ')}`); }  export function missingPlayer(id: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_PLAYER,       ngDevMode && `Unable to find the timeline player referenced by ${id}`); }  export function missingTrigger(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_TRIGGER,       ngDevMode &&           `Unable to listen on the animation trigger event \"${               phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`); }  export function missingEvent(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_EVENT,       ngDevMode &&           `Unable to listen on the animation trigger \"${               name}\" because the provided event is undefined!`); }  export function unsupportedTriggerEvent(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT,       ngDevMode &&           `The provided animation trigger event \"${phase}\" for the animation trigger \"${               name}\" is not supported!`); }  export function unregisteredTrigger(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNREGISTERED_TRIGGER,       ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`); }  export function triggerTransitionsFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED,       ngDevMode &&           `Unable to process animations due to the following failed trigger transitions\  ${               errors.map(err => err.message).join('\ ')}`); }  export function triggerParsingFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_PARSING_FAILED,       ngDevMode &&           `Animation parsing for the ${name} trigger have failed:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function transitionFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRANSITION_FAILED,       ngDevMode && `@${name} has failed due to:\  ${errors.map(err => err.message).join('\ - ')}`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Set of all animatable CSS properties  *  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties  */ export const ANIMATABLE_PROP_SET = new Set([   '-moz-outline-radius',   '-moz-outline-radius-bottomleft',   '-moz-outline-radius-bottomright',   '-moz-outline-radius-topleft',   '-moz-outline-radius-topright',   '-ms-grid-columns',   '-ms-grid-rows',   '-webkit-line-clamp',   '-webkit-text-fill-color',   '-webkit-text-stroke',   '-webkit-text-stroke-color',   'accent-color',   'all',   'backdrop-filter',   'background',   'background-color',   'background-position',   'background-size',   'block-size',   'border',   'border-block-end',   'border-block-end-color',   'border-block-end-width',   'border-block-start',   'border-block-start-color',   'border-block-start-width',   'border-bottom',   'border-bottom-color',   'border-bottom-left-radius',   'border-bottom-right-radius',   'border-bottom-width',   'border-color',   'border-end-end-radius',   'border-end-start-radius',   'border-image-outset',   'border-image-slice',   'border-image-width',   'border-inline-end',   'border-inline-end-color',   'border-inline-end-width',   'border-inline-start',   'border-inline-start-color',   'border-inline-start-width',   'border-left',   'border-left-color',   'border-left-width',   'border-radius',   'border-right',   'border-right-color',   'border-right-width',   'border-start-end-radius',   'border-start-start-radius',   'border-top',   'border-top-color',   'border-top-left-radius',   'border-top-right-radius',   'border-top-width',   'border-width',   'bottom',   'box-shadow',   'caret-color',   'clip',   'clip-path',   'color',   'column-count',   'column-gap',   'column-rule',   'column-rule-color',   'column-rule-width',   'column-width',   'columns',   'filter',   'flex',   'flex-basis',   'flex-grow',   'flex-shrink',   'font',   'font-size',   'font-size-adjust',   'font-stretch',   'font-variation-settings',   'font-weight',   'gap',   'grid-column-gap',   'grid-gap',   'grid-row-gap',   'grid-template-columns',   'grid-template-rows',   'height',   'inline-size',   'input-security',   'inset',   'inset-block',   'inset-block-end',   'inset-block-start',   'inset-inline',   'inset-inline-end',   'inset-inline-start',   'left',   'letter-spacing',   'line-clamp',   'line-height',   'margin',   'margin-block-end',   'margin-block-start',   'margin-bottom',   'margin-inline-end',   'margin-inline-start',   'margin-left',   'margin-right',   'margin-top',   'mask',   'mask-border',   'mask-position',   'mask-size',   'max-block-size',   'max-height',   'max-inline-size',   'max-lines',   'max-width',   'min-block-size',   'min-height',   'min-inline-size',   'min-width',   'object-position',   'offset',   'offset-anchor',   'offset-distance',   'offset-path',   'offset-position',   'offset-rotate',   'opacity',   'order',   'outline',   'outline-color',   'outline-offset',   'outline-width',   'padding',   'padding-block-end',   'padding-block-start',   'padding-bottom',   'padding-inline-end',   'padding-inline-start',   'padding-left',   'padding-right',   'padding-top',   'perspective',   'perspective-origin',   'right',   'rotate',   'row-gap',   'scale',   'scroll-margin',   'scroll-margin-block',   'scroll-margin-block-end',   'scroll-margin-block-start',   'scroll-margin-bottom',   'scroll-margin-inline',   'scroll-margin-inline-end',   'scroll-margin-inline-start',   'scroll-margin-left',   'scroll-margin-right',   'scroll-margin-top',   'scroll-padding',   'scroll-padding-block',   'scroll-padding-block-end',   'scroll-padding-block-start',   'scroll-padding-bottom',   'scroll-padding-inline',   'scroll-padding-inline-end',   'scroll-padding-inline-start',   'scroll-padding-left',   'scroll-padding-right',   'scroll-padding-top',   'scroll-snap-coordinate',   'scroll-snap-destination',   'scrollbar-color',   'shape-image-threshold',   'shape-margin',   'shape-outside',   'tab-size',   'text-decoration',   'text-decoration-color',   'text-decoration-thickness',   'text-emphasis',   'text-emphasis-color',   'text-indent',   'text-shadow',   'text-underline-offset',   'top',   'transform',   'transform-origin',   'translate',   'vertical-align',   'visibility',   'width',   'word-spacing',   'z-index',   'zoom', ]); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationEvent, AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵAnimationGroupPlayer, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {AnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer'; import {AnimationDriver} from '../../src/render/animation_driver'; import {animationFailed} from '../error_helpers';  import {ANIMATABLE_PROP_SET} from './web_animations/animatable_props_set';  // We don't include ambient node types here since @angular/animations/browser // is meant to target the browser so technically it should not depend on node // types. `process` is just declared locally here as a result. declare const process: any;  export function isBrowser(): boolean {   return (typeof window !== 'undefined' && typeof window.document !== 'undefined'); }  export function isNode(): boolean {   // Checking only for `process` isn't enough to identify whether or not we're in a Node   // environment, because Webpack by default will polyfill the `process`. While we can discern   // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and   // might not be future-proof. Instead we look at the stringified version of `process` which   // is `[object process]` in Node and `[object Object]` when polyfilled.   return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; }  export function optimizeGroupPlayer(players: AnimationPlayer[]): AnimationPlayer {   switch (players.length) {     case 0:       return new NoopAnimationPlayer();     case 1:       return players[0];     default:       return new ɵAnimationGroupPlayer(players);   } }  export function normalizeKeyframes(     driver: AnimationDriver, normalizer: AnimationStyleNormalizer, element: any,     keyframes: Array<ɵStyleDataMap>, preStyles: ɵStyleDataMap = new Map(),     postStyles: ɵStyleDataMap = new Map()): Array<ɵStyleDataMap> {   const errors: Error[] = [];   const normalizedKeyframes: Array<ɵStyleDataMap> = [];   let previousOffset = -1;   let previousKeyframe: ɵStyleDataMap|null = null;   keyframes.forEach(kf => {     const offset = kf.get('offset') as number;     const isSameOffset = offset == previousOffset;     const normalizedKeyframe: ɵStyleDataMap = (isSameOffset && previousKeyframe) || new Map();     kf.forEach((val, prop) => {       let normalizedProp = prop;       let normalizedValue = val;       if (prop !== 'offset') {         normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);         switch (normalizedValue) {           case PRE_STYLE:             normalizedValue = preStyles.get(prop)!;             break;            case AUTO_STYLE:             normalizedValue = postStyles.get(prop)!;             break;            default:             normalizedValue =                 normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);             break;         }       }       normalizedKeyframe.set(normalizedProp, normalizedValue);     });     if (!isSameOffset) {       normalizedKeyframes.push(normalizedKeyframe);     }     previousKeyframe = normalizedKeyframe;     previousOffset = offset;   });   if (errors.length) {     throw animationFailed(errors);   }    return normalizedKeyframes; }  export function listenOnPlayer(     player: AnimationPlayer, eventName: string, event: AnimationEvent|undefined,     callback: (event: any) => any) {   switch (eventName) {     case 'start':       player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));       break;     case 'done':       player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));       break;     case 'destroy':       player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));       break;   } }  export function copyAnimationEvent(     e: AnimationEvent, phaseName: string, player: AnimationPlayer): AnimationEvent {   const totalTime = player.totalTime;   const disabled = (player as any).disabled ? true : false;   const event = makeAnimationEvent(       e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName,       totalTime == undefined ? e.totalTime : totalTime, disabled);   const data = (e as any)['_data'];   if (data != null) {     (event as any)['_data'] = data;   }   return event; }  export function makeAnimationEvent(     element: any, triggerName: string, fromState: string, toState: string, phaseName: string = '',     totalTime: number = 0, disabled?: boolean): AnimationEvent {   return {element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled}; }  export function getOrSetDefaultValue<T, V>(map: Map<T, V>, key: T, defaultValue: V) {   let value = map.get(key);   if (!value) {     map.set(key, value = defaultValue);   }   return value; }  export function parseTimelineCommand(command: string): [string, string] {   const separatorPos = command.indexOf(':');   const id = command.substring(1, separatorPos);   const action = command.slice(separatorPos + 1);   return [id, action]; }  let _contains: (elm1: any, elm2: any) => boolean = (elm1: any, elm2: any) => false; let _query: (element: any, selector: string, multi: boolean) => any[] =     (element: any, selector: string, multi: boolean) => {       return [];     }; let _documentElement: unknown|null = null;  export function getParentElement(element: any): unknown|null {   const parent = element.parentNode || element.host;  // consider host to support shadow DOM   if (parent === _documentElement) {     return null;   }   return parent; }  // Define utility methods for browsers and platform-server(domino) where Element // and utility methods exist. const _isNode = isNode(); if (_isNode || typeof Element !== 'undefined') {   if (!isBrowser()) {     _contains = (elm1, elm2) => elm1.contains(elm2);   } else {     // Read the document element in an IIFE that's been marked pure to avoid a top-level property     // read that may prevent tree-shaking.     _documentElement = /* @__PURE__ */ (() => document.documentElement)();     _contains = (elm1, elm2) => {       while (elm2) {         if (elm2 === elm1) {           return true;         }         elm2 = getParentElement(elm2);       }       return false;     };   }    _query = (element: any, selector: string, multi: boolean): any[] => {     if (multi) {       return Array.from(element.querySelectorAll(selector));     }     const elem = element.querySelector(selector);     return elem ? [elem] : [];   }; }  function containsVendorPrefix(prop: string): boolean {   // Webkit is the only real popular vendor prefix nowadays   // cc: http://shouldiprefix.com/   return prop.substring(1, 6) == 'ebkit';  // webkit or Webkit }  let _CACHED_BODY: {style: any}|null = null; let _IS_WEBKIT = false; export function validateStyleProperty(prop: string): boolean {   if (!_CACHED_BODY) {     _CACHED_BODY = getBodyNode() || {};     _IS_WEBKIT = _CACHED_BODY!.style ? ('WebkitAppearance' in _CACHED_BODY!.style) : false;   }    let result = true;   if (_CACHED_BODY!.style && !containsVendorPrefix(prop)) {     result = prop in _CACHED_BODY!.style;     if (!result && _IS_WEBKIT) {       const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);       result = camelProp in _CACHED_BODY!.style;     }   }    return result; }  export function validateWebAnimatableStyleProperty(prop: string): boolean {   return ANIMATABLE_PROP_SET.has(prop); }  export function getBodyNode(): any|null {   if (typeof document != 'undefined') {     return document.body;   }   return null; }  export const containsElement = _contains; export const invokeQuery = _query;  export function hypenatePropsKeys(original: ɵStyleDataMap): ɵStyleDataMap {   const newMap: ɵStyleDataMap = new Map();   original.forEach((val, prop) => {     const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');     newMap.set(newProp, val);   });   return newMap; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, NoopAnimationPlayer} from '@angular/animations'; import {Injectable} from '@angular/core';  import {containsElement, getParentElement, invokeQuery, validateStyleProperty} from './shared';  /**  * @publicApi  */ @Injectable() export class NoopAnimationDriver implements AnimationDriver {   validateStyleProperty(prop: string): boolean {     return validateStyleProperty(prop);   }    matchesElement(_element: any, _selector: string): boolean {     // This method is deprecated and no longer in use so we return false.     return false;   }    containsElement(elm1: any, elm2: any): boolean {     return containsElement(elm1, elm2);   }    getParentElement(element: unknown): unknown {     return getParentElement(element);   }    query(element: any, selector: string, multi: boolean): any[] {     return invokeQuery(element, selector, multi);   }    computeStyle(element: any, prop: string, defaultValue?: string): string {     return defaultValue || '';   }    animate(       element: any, keyframes: Array<Map<string, string|number>>, duration: number, delay: number,       easing: string, previousPlayers: any[] = [],       scrubberAccessRequested?: boolean): AnimationPlayer {     return new NoopAnimationPlayer(duration, delay);   } }  /**  * @publicApi  */ export abstract class AnimationDriver {   static NOOP: AnimationDriver = (/* @__PURE__ */ new NoopAnimationDriver());    abstract validateStyleProperty(prop: string): boolean;    abstract validateAnimatableStyleProperty?: (prop: string) => boolean;    /**    * @deprecated No longer in use. Will be removed.    */   abstract matchesElement(element: any, selector: string): boolean;    abstract containsElement(elm1: any, elm2: any): boolean;    /**    * Obtains the parent element, if any. `null` is returned if the element does not have a parent.    */   abstract getParentElement(element: unknown): unknown;    abstract query(element: any, selector: string, multi: boolean): any[];    abstract computeStyle(element: any, prop: string, defaultValue?: string): string;    abstract animate(       element: any, keyframes: Array<Map<string, string|number>>, duration: number, delay: number,       easing?: string|null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateTimings, AnimationMetadata, AnimationMetadataType, AnimationOptions, sequence, ɵStyleData, ɵStyleDataMap} from '@angular/animations';  import {Ast as AnimationAst, AstVisitor as AnimationAstVisitor} from './dsl/animation_ast'; import {AnimationDslVisitor} from './dsl/animation_dsl_visitor'; import {invalidNodeType, invalidParamValue, invalidStyleParams, invalidTimingValue, negativeDelayValue, negativeStepValue} from './error_helpers'; import {isNode} from './render/shared';  export const ONE_SECOND = 1000;  export const SUBSTITUTION_EXPR_START = '{{'; export const SUBSTITUTION_EXPR_END = '}}'; export const ENTER_CLASSNAME = 'ng-enter'; export const LEAVE_CLASSNAME = 'ng-leave'; export const NG_TRIGGER_CLASSNAME = 'ng-trigger'; export const NG_TRIGGER_SELECTOR = '.ng-trigger'; export const NG_ANIMATING_CLASSNAME = 'ng-animating'; export const NG_ANIMATING_SELECTOR = '.ng-animating';  export function resolveTimingValue(value: string|number) {   if (typeof value == 'number') return value;    const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);   if (!matches || matches.length < 2) return 0;    return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]); }  function _convertTimeValueToMS(value: number, unit: string): number {   switch (unit) {     case 's':       return value * ONE_SECOND;     default:  // ms or something else       return value;   } }  export function resolveTiming(     timings: string|number|AnimateTimings, errors: Error[], allowNegativeValues?: boolean) {   return timings.hasOwnProperty('duration') ?       <AnimateTimings>timings :       parseTimeExpression(<string|number>timings, errors, allowNegativeValues); }  function parseTimeExpression(     exp: string|number, errors: Error[], allowNegativeValues?: boolean): AnimateTimings {   const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;   let duration: number;   let delay: number = 0;   let easing: string = '';   if (typeof exp === 'string') {     const matches = exp.match(regex);     if (matches === null) {       errors.push(invalidTimingValue(exp));       return {duration: 0, delay: 0, easing: ''};     }      duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);      const delayMatch = matches[3];     if (delayMatch != null) {       delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);     }      const easingVal = matches[5];     if (easingVal) {       easing = easingVal;     }   } else {     duration = exp;   }    if (!allowNegativeValues) {     let containsErrors = false;     let startIndex = errors.length;     if (duration < 0) {       errors.push(negativeStepValue());       containsErrors = true;     }     if (delay < 0) {       errors.push(negativeDelayValue());       containsErrors = true;     }     if (containsErrors) {       errors.splice(startIndex, 0, invalidTimingValue(exp));     }   }    return {duration, delay, easing}; }  export function copyObj(     obj: {[key: string]: any}, destination: {[key: string]: any} = {}): {[key: string]: any} {   Object.keys(obj).forEach(prop => {     destination[prop] = obj[prop];   });   return destination; }  export function convertToMap(obj: ɵStyleData): ɵStyleDataMap {   const styleMap: ɵStyleDataMap = new Map();   Object.keys(obj).forEach(prop => {     const val = obj[prop];     styleMap.set(prop, val);   });   return styleMap; }  export function normalizeKeyframes(keyframes: Array<ɵStyleData>|                                    Array<ɵStyleDataMap>): Array<ɵStyleDataMap> {   if (!keyframes.length) {     return [];   }   if (keyframes[0] instanceof Map) {     return keyframes as Array<ɵStyleDataMap>;   }   return keyframes.map(kf => convertToMap(kf as ɵStyleData)); }  export function normalizeStyles(styles: ɵStyleDataMap|Array<ɵStyleDataMap>): ɵStyleDataMap {   const normalizedStyles: ɵStyleDataMap = new Map();   if (Array.isArray(styles)) {     styles.forEach(data => copyStyles(data, normalizedStyles));   } else {     copyStyles(styles, normalizedStyles);   }   return normalizedStyles; }  export function copyStyles(     styles: ɵStyleDataMap, destination: ɵStyleDataMap = new Map(),     backfill?: ɵStyleDataMap): ɵStyleDataMap {   if (backfill) {     for (let [prop, val] of backfill) {       destination.set(prop, val);     }   }   for (let [prop, val] of styles) {     destination.set(prop, val);   }   return destination; }  function getStyleAttributeString(element: any, key: string, value: string) {   // Return the key-value pair string to be added to the style attribute for the   // given CSS style key.   if (value) {     return key + ':' + value + ';';   } else {     return '';   } }  function writeStyleAttribute(element: any) {   // Read the style property of the element and manually reflect it to the   // style attribute. This is needed because Domino on platform-server doesn't   // understand the full set of allowed CSS properties and doesn't reflect some   // of them automatically.   let styleAttrValue = '';   for (let i = 0; i < element.style.length; i++) {     const key = element.style.item(i);     styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));   }   for (const key in element.style) {     // Skip internal Domino properties that don't need to be reflected.     if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {       continue;     }     const dashKey = camelCaseToDashCase(key);     styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);   }   element.setAttribute('style', styleAttrValue); }  export function setStyles(element: any, styles: ɵStyleDataMap, formerStyles?: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((val, prop) => {       const camelProp = dashCaseToCamelCase(prop);       if (formerStyles && !formerStyles.has(prop)) {         formerStyles.set(prop, element.style[camelProp]);       }       element.style[camelProp] = val;     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function eraseStyles(element: any, styles: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((_, prop) => {       const camelProp = dashCaseToCamelCase(prop);       element.style[camelProp] = '';     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function normalizeAnimationEntry(steps: AnimationMetadata|                                         AnimationMetadata[]): AnimationMetadata {   if (Array.isArray(steps)) {     if (steps.length == 1) return steps[0];     return sequence(steps);   }   return steps as AnimationMetadata; }  export function validateStyleParams(     value: string|number|null|undefined, options: AnimationOptions, errors: Error[]) {   const params = options.params || {};   const matches = extractStyleParams(value);   if (matches.length) {     matches.forEach(varName => {       if (!params.hasOwnProperty(varName)) {         errors.push(invalidStyleParams(varName));       }     });   } }  const PARAM_REGEX =     new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g'); export function extractStyleParams(value: string|number|null|undefined): string[] {   let params: string[] = [];   if (typeof value === 'string') {     let match: any;     while (match = PARAM_REGEX.exec(value)) {       params.push(match[1] as string);     }     PARAM_REGEX.lastIndex = 0;   }   return params; }  export function interpolateParams(     value: string|number, params: {[name: string]: any}, errors: Error[]): string|number {   const original = value.toString();   const str = original.replace(PARAM_REGEX, (_, varName) => {     let localVal = params[varName];     // this means that the value was never overridden by the data passed in by the user     if (localVal == null) {       errors.push(invalidParamValue(varName));       localVal = '';     }     return localVal.toString();   });    // we do this to assert that numeric values stay as they are   return str == original ? value : str; }  export function iteratorToArray(iterator: any): any[] {   const arr: any[] = [];   let item = iterator.next();   while (!item.done) {     arr.push(item.value);     item = iterator.next();   }   return arr; }  const DASH_CASE_REGEXP = /-+([a-z0-9])/g; export function dashCaseToCamelCase(input: string): string {   return input.replace(DASH_CASE_REGEXP, (...m: any[]) => m[1].toUpperCase()); }  export function camelCaseToDashCase(input: string): string {   return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); }  export function allowPreviousPlayerStylesMerge(duration: number, delay: number) {   return duration === 0 || delay === 0; }  export function balancePreviousStylesIntoKeyframes(     element: any, keyframes: Array<ɵStyleDataMap>, previousStyles: ɵStyleDataMap) {   if (previousStyles.size && keyframes.length) {     let startingKeyframe = keyframes[0];     let missingStyleProps: string[] = [];     previousStyles.forEach((val, prop) => {       if (!startingKeyframe.has(prop)) {         missingStyleProps.push(prop);       }       startingKeyframe.set(prop, val);     });      if (missingStyleProps.length) {       for (let i = 1; i < keyframes.length; i++) {         let kf = keyframes[i];         missingStyleProps.forEach(prop => kf.set(prop, computeStyle(element, prop)));       }     }   }   return keyframes; }  export function visitDslNode(     visitor: AnimationDslVisitor, node: AnimationMetadata, context: any): any; export function visitDslNode(     visitor: AnimationAstVisitor, node: AnimationAst<AnimationMetadataType>, context: any): any; export function visitDslNode(visitor: any, node: any, context: any): any {   switch (node.type) {     case AnimationMetadataType.Trigger:       return visitor.visitTrigger(node, context);     case AnimationMetadataType.State:       return visitor.visitState(node, context);     case AnimationMetadataType.Transition:       return visitor.visitTransition(node, context);     case AnimationMetadataType.Sequence:       return visitor.visitSequence(node, context);     case AnimationMetadataType.Group:       return visitor.visitGroup(node, context);     case AnimationMetadataType.Animate:       return visitor.visitAnimate(node, context);     case AnimationMetadataType.Keyframes:       return visitor.visitKeyframes(node, context);     case AnimationMetadataType.Style:       return visitor.visitStyle(node, context);     case AnimationMetadataType.Reference:       return visitor.visitReference(node, context);     case AnimationMetadataType.AnimateChild:       return visitor.visitAnimateChild(node, context);     case AnimationMetadataType.AnimateRef:       return visitor.visitAnimateRef(node, context);     case AnimationMetadataType.Query:       return visitor.visitQuery(node, context);     case AnimationMetadataType.Stagger:       return visitor.visitStagger(node, context);     default:       throw invalidNodeType(node.type);   } }  export function computeStyle(element: any, prop: string): string {   return (<any>window.getComputedStyle(element))[prop]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  function createListOfWarnings(warnings: string[]): string {   const LINE_START = '\  - ';   return `${LINE_START}${warnings.filter(Boolean).map(warning => warning).join(LINE_START)}`; }  export function warnValidation(warnings: string[]): void {   NG_DEV_MODE && console.warn(`animation validation warnings:${createListOfWarnings(warnings)}`); }  export function warnTriggerBuild(name: string, warnings: string[]): void {   NG_DEV_MODE &&       console.warn(`The animation trigger \"${name}\" has built with the following warnings:${           createListOfWarnings(warnings)}`); }  export function warnRegister(warnings: string[]): void {   NG_DEV_MODE &&       console.warn(`Animation built with the following warnings:${createListOfWarnings(warnings)}`); }  export function triggerParsingWarnings(name: string, warnings: string[]): void {   NG_DEV_MODE &&       console.warn(`Animation parsing for the ${name} trigger presents the following warnings:${           createListOfWarnings(warnings)}`); }  export function pushUnrecognizedPropertiesWarning(warnings: string[], props: string[]): void {   if (props.length) {     warnings.push(`The following provided properties are not recognized: ${props.join(', ')}`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {invalidExpression, invalidTransitionAlias} from '../error_helpers';  export const ANY_STATE = '*'; export declare type TransitionMatcherFn =     (fromState: any, toState: any, element: any, params: {[key: string]: any}) => boolean;  export function parseTransitionExpr(     transitionValue: string|TransitionMatcherFn, errors: Error[]): TransitionMatcherFn[] {   const expressions: TransitionMatcherFn[] = [];   if (typeof transitionValue == 'string') {     transitionValue.split(/\\s*,\\s*/).forEach(         str => parseInnerTransitionStr(str, expressions, errors));   } else {     expressions.push(<TransitionMatcherFn>transitionValue);   }   return expressions; }  function parseInnerTransitionStr(     eventStr: string, expressions: TransitionMatcherFn[], errors: Error[]) {   if (eventStr[0] == ':') {     const result = parseAnimationAlias(eventStr, errors);     if (typeof result == 'function') {       expressions.push(result);       return;     }     eventStr = result;   }    const match = eventStr.match(/^(\\*|[-\\w]+)\\s*(<?[=-]>)\\s*(\\*|[-\\w]+)$/);   if (match == null || match.length < 4) {     errors.push(invalidExpression(eventStr));     return expressions;   }    const fromState = match[1];   const separator = match[2];   const toState = match[3];   expressions.push(makeLambdaFromStates(fromState, toState));    const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;   if (separator[0] == '<' && !isFullAnyStateExpr) {     expressions.push(makeLambdaFromStates(toState, fromState));   } }  function parseAnimationAlias(alias: string, errors: Error[]): string|TransitionMatcherFn {   switch (alias) {     case ':enter':       return 'void => *';     case ':leave':       return '* => void';     case ':increment':       return (fromState: any, toState: any): boolean => parseFloat(toState) > parseFloat(fromState);     case ':decrement':       return (fromState: any, toState: any): boolean => parseFloat(toState) < parseFloat(fromState);     default:       errors.push(invalidTransitionAlias(alias));       return '* => *';   } }  // DO NOT REFACTOR ... keep the follow set instantiations // with the values intact (closure compiler for some reason // removes follow-up lines that add the values outside of // the constructor... const TRUE_BOOLEAN_VALUES = new Set<string>(['true', '1']); const FALSE_BOOLEAN_VALUES = new Set<string>(['false', '0']);  function makeLambdaFromStates(lhs: string, rhs: string): TransitionMatcherFn {   const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);   const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);    return (fromState: any, toState: any): boolean => {     let lhsMatch = lhs == ANY_STATE || lhs == fromState;     let rhsMatch = rhs == ANY_STATE || rhs == toState;      if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {       lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);     }     if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {       rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);     }      return lhsMatch && rhsMatch;   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateTimings, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationMetadataType, AnimationOptions, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, AUTO_STYLE, style, ɵStyleDataMap} from '@angular/animations';  import {invalidDefinition, invalidKeyframes, invalidOffset, invalidParallelAnimation, invalidProperty, invalidStagger, invalidState, invalidStyleValue, invalidTrigger, keyframeOffsetsOutOfOrder, keyframesMissingOffsets} from '../error_helpers'; import {AnimationDriver} from '../render/animation_driver'; import {getOrSetDefaultValue} from '../render/shared'; import {convertToMap, copyObj, extractStyleParams, iteratorToArray, NG_ANIMATING_SELECTOR, NG_TRIGGER_SELECTOR, normalizeAnimationEntry, resolveTiming, SUBSTITUTION_EXPR_START, validateStyleParams, visitDslNode} from '../util'; import {pushUnrecognizedPropertiesWarning} from '../warning_helpers';  import {AnimateAst, AnimateChildAst, AnimateRefAst, Ast, DynamicTimingAst, GroupAst, KeyframesAst, QueryAst, ReferenceAst, SequenceAst, StaggerAst, StateAst, StyleAst, TimingAst, TransitionAst, TriggerAst} from './animation_ast'; import {AnimationDslVisitor} from './animation_dsl_visitor'; import {parseTransitionExpr} from './animation_transition_expr';  const SELF_TOKEN = ':self'; const SELF_TOKEN_REGEX = new RegExp(`\\s*${SELF_TOKEN}\\s*,?`, 'g');  /*  * [Validation]  * The visitor code below will traverse the animation AST generated by the animation verb functions  * (the output is a tree of objects) and attempt to perform a series of validations on the data. The  * following corner-cases will be validated:  *  * 1. Overlap of animations  * Given that a CSS property cannot be animated in more than one place at the same time, it's  * important that this behavior is detected and validated. The way in which this occurs is that  * each time a style property is examined, a string-map containing the property will be updated with  * the start and end times for when the property is used within an animation step.  *  * If there are two or more parallel animations that are currently running (these are invoked by the  * group()) on the same element then the validator will throw an error. Since the start/end timing  * values are collected for each property then if the current animation step is animating the same  * property and its timing values fall anywhere into the window of time that the property is  * currently being animated within then this is what causes an error.  *  * 2. Timing values  * The validator will validate to see if a timing value of `duration delay easing` or  * `durationNumber` is valid or not.  *  * (note that upon validation the code below will replace the timing data with an object containing  * {duration,delay,easing}.  *  * 3. Offset Validation  * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().  * Offsets within keyframes() are considered valid when:  *  *   - No offsets are used at all  *   - Each style() entry contains an offset value  *   - Each offset is between 0 and 1  *   - Each offset is greater to or equal than the previous one  *  * Otherwise an error will be thrown.  */ export function buildAnimationAst(     driver: AnimationDriver, metadata: AnimationMetadata|AnimationMetadata[], errors: Error[],     warnings: string[]): Ast<AnimationMetadataType> {   return new AnimationAstBuilderVisitor(driver).build(metadata, errors, warnings); }  const ROOT_SELECTOR = '';  export class AnimationAstBuilderVisitor implements AnimationDslVisitor {   constructor(private _driver: AnimationDriver) {}    build(metadata: AnimationMetadata|AnimationMetadata[], errors: Error[], warnings: string[]):       Ast<AnimationMetadataType> {     const context = new AnimationAstBuilderContext(errors);     this._resetContextStyleTimingState(context);     const ast =         <Ast<AnimationMetadataType>>visitDslNode(this, normalizeAnimationEntry(metadata), context);      if (typeof ngDevMode === 'undefined' || ngDevMode) {       if (context.unsupportedCSSPropertiesFound.size) {         pushUnrecognizedPropertiesWarning(             warnings,             [...context.unsupportedCSSPropertiesFound.keys()],         );       }     }      return ast;   }    private _resetContextStyleTimingState(context: AnimationAstBuilderContext) {     context.currentQuerySelector = ROOT_SELECTOR;     context.collectedStyles = new Map<string, Map<string, StyleTimeTuple>>();     context.collectedStyles.set(ROOT_SELECTOR, new Map());     context.currentTime = 0;   }    visitTrigger(metadata: AnimationTriggerMetadata, context: AnimationAstBuilderContext):       TriggerAst {     let queryCount = context.queryCount = 0;     let depCount = context.depCount = 0;     const states: StateAst[] = [];     const transitions: TransitionAst[] = [];     if (metadata.name.charAt(0) == '@') {       context.errors.push(invalidTrigger());     }      metadata.definitions.forEach(def => {       this._resetContextStyleTimingState(context);       if (def.type == AnimationMetadataType.State) {         const stateDef = def as AnimationStateMetadata;         const name = stateDef.name;         name.toString().split(/\\s*,\\s*/).forEach(n => {           stateDef.name = n;           states.push(this.visitState(stateDef, context));         });         stateDef.name = name;       } else if (def.type == AnimationMetadataType.Transition) {         const transition = this.visitTransition(def as AnimationTransitionMetadata, context);         queryCount += transition.queryCount;         depCount += transition.depCount;         transitions.push(transition);       } else {         context.errors.push(invalidDefinition());       }     });      return {       type: AnimationMetadataType.Trigger,       name: metadata.name,       states,       transitions,       queryCount,       depCount,       options: null     };   }    visitState(metadata: AnimationStateMetadata, context: AnimationAstBuilderContext): StateAst {     const styleAst = this.visitStyle(metadata.styles, context);     const astParams = (metadata.options && metadata.options.params) || null;     if (styleAst.containsDynamicStyles) {       const missingSubs = new Set<string>();       const params = astParams || {};       styleAst.styles.forEach(style => {         if (style instanceof Map) {           style.forEach(value => {             extractStyleParams(value).forEach(sub => {               if (!params.hasOwnProperty(sub)) {                 missingSubs.add(sub);               }             });           });         }       });       if (missingSubs.size) {         const missingSubsArr = iteratorToArray(missingSubs.values());         context.errors.push(invalidState(metadata.name, missingSubsArr));       }     }      return {       type: AnimationMetadataType.State,       name: metadata.name,       style: styleAst,       options: astParams ? {params: astParams} : null     };   }    visitTransition(metadata: AnimationTransitionMetadata, context: AnimationAstBuilderContext):       TransitionAst {     context.queryCount = 0;     context.depCount = 0;     const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);     const matchers = parseTransitionExpr(metadata.expr, context.errors);      return {       type: AnimationMetadataType.Transition,       matchers,       animation,       queryCount: context.queryCount,       depCount: context.depCount,       options: normalizeAnimationOptions(metadata.options)     };   }    visitSequence(metadata: AnimationSequenceMetadata, context: AnimationAstBuilderContext):       SequenceAst {     return {       type: AnimationMetadataType.Sequence,       steps: metadata.steps.map(s => visitDslNode(this, s, context)),       options: normalizeAnimationOptions(metadata.options)     };   }    visitGroup(metadata: AnimationGroupMetadata, context: AnimationAstBuilderContext): GroupAst {     const currentTime = context.currentTime;     let furthestTime = 0;     const steps = metadata.steps.map(step => {       context.currentTime = currentTime;       const innerAst = visitDslNode(this, step, context);       furthestTime = Math.max(furthestTime, context.currentTime);       return innerAst;     });      context.currentTime = furthestTime;     return {       type: AnimationMetadataType.Group,       steps,       options: normalizeAnimationOptions(metadata.options)     };   }    visitAnimate(metadata: AnimationAnimateMetadata, context: AnimationAstBuilderContext):       AnimateAst {     const timingAst = constructTimingAst(metadata.timings, context.errors);     context.currentAnimateTimings = timingAst;     let styleAst: StyleAst|KeyframesAst;     let styleMetadata: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata =         metadata.styles ? metadata.styles : style({});     if (styleMetadata.type == AnimationMetadataType.Keyframes) {       styleAst = this.visitKeyframes(styleMetadata as AnimationKeyframesSequenceMetadata, context);     } else {       let styleMetadata = metadata.styles as AnimationStyleMetadata;       let isEmpty = false;       if (!styleMetadata) {         isEmpty = true;         const newStyleData: {[prop: string]: string|number} = {};         if (timingAst.easing) {           newStyleData['easing'] = timingAst.easing;         }         styleMetadata = style(newStyleData);       }       context.currentTime += timingAst.duration + timingAst.delay;       const _styleAst = this.visitStyle(styleMetadata, context);       _styleAst.isEmptyStep = isEmpty;       styleAst = _styleAst;     }      context.currentAnimateTimings = null;     return {       type: AnimationMetadataType.Animate,       timings: timingAst,       style: styleAst,       options: null     };   }    visitStyle(metadata: AnimationStyleMetadata, context: AnimationAstBuilderContext): StyleAst {     const ast = this._makeStyleAst(metadata, context);     this._validateStyleAst(ast, context);     return ast;   }    private _makeStyleAst(metadata: AnimationStyleMetadata, context: AnimationAstBuilderContext):       StyleAst {     const styles: Array<(ɵStyleDataMap | string)> = [];     const metadataStyles = Array.isArray(metadata.styles) ? metadata.styles : [metadata.styles];      for (let styleTuple of metadataStyles) {       if (typeof styleTuple === 'string') {         if (styleTuple === AUTO_STYLE) {           styles.push(styleTuple);         } else {           context.errors.push(invalidStyleValue(styleTuple));         }       } else {         styles.push(convertToMap(styleTuple));       }     }      let containsDynamicStyles = false;     let collectedEasing: string|null = null;     styles.forEach(styleData => {       if (styleData instanceof Map) {         if (styleData.has('easing')) {           collectedEasing = styleData.get('easing') as string;           styleData.delete('easing');         }         if (!containsDynamicStyles) {           for (let value of styleData.values()) {             if (value!.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {               containsDynamicStyles = true;               break;             }           }         }       }     });      return {       type: AnimationMetadataType.Style,       styles,       easing: collectedEasing,       offset: metadata.offset,       containsDynamicStyles,       options: null     };   }    private _validateStyleAst(ast: StyleAst, context: AnimationAstBuilderContext): void {     const timings = context.currentAnimateTimings;     let endTime = context.currentTime;     let startTime = context.currentTime;     if (timings && startTime > 0) {       startTime -= timings.duration + timings.delay;     }      ast.styles.forEach(tuple => {       if (typeof tuple === 'string') return;        tuple.forEach((value, prop) => {         if (typeof ngDevMode === 'undefined' || ngDevMode) {           if (!this._driver.validateStyleProperty(prop)) {             tuple.delete(prop);             context.unsupportedCSSPropertiesFound.add(prop);             return;           }         }          // This is guaranteed to have a defined Map at this querySelector location making it         // safe to add the assertion here. It is set as a default empty map in prior methods.         const collectedStyles = context.collectedStyles.get(context.currentQuerySelector!)!;         const collectedEntry = collectedStyles.get(prop);         let updateCollectedStyle = true;         if (collectedEntry) {           if (startTime != endTime && startTime >= collectedEntry.startTime &&               endTime <= collectedEntry.endTime) {             context.errors.push(invalidParallelAnimation(                 prop, collectedEntry.startTime, collectedEntry.endTime, startTime, endTime));             updateCollectedStyle = false;           }            // we always choose the smaller start time value since we           // want to have a record of the entire animation window where           // the style property is being animated in between           startTime = collectedEntry.startTime;         }          if (updateCollectedStyle) {           collectedStyles.set(prop, {startTime, endTime});         }          if (context.options) {           validateStyleParams(value, context.options, context.errors);         }       });     });   }    visitKeyframes(metadata: AnimationKeyframesSequenceMetadata, context: AnimationAstBuilderContext):       KeyframesAst {     const ast: KeyframesAst = {type: AnimationMetadataType.Keyframes, styles: [], options: null};     if (!context.currentAnimateTimings) {       context.errors.push(invalidKeyframes());       return ast;     }      const MAX_KEYFRAME_OFFSET = 1;      let totalKeyframesWithOffsets = 0;     const offsets: number[] = [];     let offsetsOutOfOrder = false;     let keyframesOutOfRange = false;     let previousOffset: number = 0;      const keyframes: StyleAst[] = metadata.steps.map(styles => {       const style = this._makeStyleAst(styles, context);       let offsetVal: number|null =           style.offset != null ? style.offset : consumeOffset(style.styles);       let offset: number = 0;       if (offsetVal != null) {         totalKeyframesWithOffsets++;         offset = style.offset = offsetVal;       }       keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;       offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;       previousOffset = offset;       offsets.push(offset);       return style;     });      if (keyframesOutOfRange) {       context.errors.push(invalidOffset());     }      if (offsetsOutOfOrder) {       context.errors.push(keyframeOffsetsOutOfOrder());     }      const length = metadata.steps.length;     let generatedOffset = 0;     if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {       context.errors.push(keyframesMissingOffsets());     } else if (totalKeyframesWithOffsets == 0) {       generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);     }      const limit = length - 1;     const currentTime = context.currentTime;     const currentAnimateTimings = context.currentAnimateTimings!;     const animateDuration = currentAnimateTimings.duration;     keyframes.forEach((kf, i) => {       const offset = generatedOffset > 0 ? (i == limit ? 1 : (generatedOffset * i)) : offsets[i];       const durationUpToThisFrame = offset * animateDuration;       context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;       currentAnimateTimings.duration = durationUpToThisFrame;       this._validateStyleAst(kf, context);       kf.offset = offset;        ast.styles.push(kf);     });      return ast;   }    visitReference(metadata: AnimationReferenceMetadata, context: AnimationAstBuilderContext):       ReferenceAst {     return {       type: AnimationMetadataType.Reference,       animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),       options: normalizeAnimationOptions(metadata.options)     };   }    visitAnimateChild(metadata: AnimationAnimateChildMetadata, context: AnimationAstBuilderContext):       AnimateChildAst {     context.depCount++;     return {       type: AnimationMetadataType.AnimateChild,       options: normalizeAnimationOptions(metadata.options)     };   }    visitAnimateRef(metadata: AnimationAnimateRefMetadata, context: AnimationAstBuilderContext):       AnimateRefAst {     return {       type: AnimationMetadataType.AnimateRef,       animation: this.visitReference(metadata.animation, context),       options: normalizeAnimationOptions(metadata.options)     };   }    visitQuery(metadata: AnimationQueryMetadata, context: AnimationAstBuilderContext): QueryAst {     const parentSelector = context.currentQuerySelector!;     const options = (metadata.options || {}) as AnimationQueryOptions;      context.queryCount++;     context.currentQuery = metadata;     const [selector, includeSelf] = normalizeSelector(metadata.selector);     context.currentQuerySelector =         parentSelector.length ? (parentSelector + ' ' + selector) : selector;     getOrSetDefaultValue(context.collectedStyles, context.currentQuerySelector, new Map());      const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);     context.currentQuery = null;     context.currentQuerySelector = parentSelector;      return {       type: AnimationMetadataType.Query,       selector,       limit: options.limit || 0,       optional: !!options.optional,       includeSelf,       animation,       originalSelector: metadata.selector,       options: normalizeAnimationOptions(metadata.options)     };   }    visitStagger(metadata: AnimationStaggerMetadata, context: AnimationAstBuilderContext):       StaggerAst {     if (!context.currentQuery) {       context.errors.push(invalidStagger());     }     const timings = metadata.timings === 'full' ?         {duration: 0, delay: 0, easing: 'full'} :         resolveTiming(metadata.timings, context.errors, true);      return {       type: AnimationMetadataType.Stagger,       animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),       timings,       options: null     };   } }  function normalizeSelector(selector: string): [string, boolean] {   const hasAmpersand = selector.split(/\\s*,\\s*/).find(token => token == SELF_TOKEN) ? true : false;   if (hasAmpersand) {     selector = selector.replace(SELF_TOKEN_REGEX, '');   }    // Note: the :enter and :leave aren't normalized here since those   // selectors are filled in at runtime during timeline building   selector = selector.replace(/@\\*/g, NG_TRIGGER_SELECTOR)                  .replace(/@\\w+/g, match => NG_TRIGGER_SELECTOR + '-' + match.slice(1))                  .replace(/:animating/g, NG_ANIMATING_SELECTOR);    return [selector, hasAmpersand]; }   function normalizeParams(obj: {[key: string]: any}|any): {[key: string]: any}|null {   return obj ? copyObj(obj) : null; }  export type StyleTimeTuple = {   startTime: number; endTime: number; };  export class AnimationAstBuilderContext {   public queryCount: number = 0;   public depCount: number = 0;   public currentTransition: AnimationTransitionMetadata|null = null;   public currentQuery: AnimationQueryMetadata|null = null;   public currentQuerySelector: string|null = null;   public currentAnimateTimings: TimingAst|null = null;   public currentTime: number = 0;   public collectedStyles = new Map<string, Map<string, StyleTimeTuple>>();   public options: AnimationOptions|null = null;   public unsupportedCSSPropertiesFound: Set<string> = new Set<string>();   constructor(public errors: Error[]) {} }  type OffsetStyles = string|ɵStyleDataMap;  function consumeOffset(styles: OffsetStyles|Array<OffsetStyles>): number|null {   if (typeof styles == 'string') return null;    let offset: number|null = null;    if (Array.isArray(styles)) {     styles.forEach(styleTuple => {       if (styleTuple instanceof Map && styleTuple.has('offset')) {         const obj = styleTuple as ɵStyleDataMap;         offset = parseFloat(obj.get('offset') as string);         obj.delete('offset');       }     });   } else if (styles instanceof Map && styles.has('offset')) {     const obj = styles;     offset = parseFloat(obj.get('offset') as string);     obj.delete('offset');   }   return offset; }  function constructTimingAst(value: string|number|AnimateTimings, errors: Error[]) {   if (value.hasOwnProperty('duration')) {     return value as AnimateTimings;   }    if (typeof value == 'number') {     const duration = resolveTiming(value, errors).duration;     return makeTimingAst(duration, 0, '');   }    const strValue = value as string;   const isDynamic = strValue.split(/\\s+/).some(v => v.charAt(0) == '{' && v.charAt(1) == '{');   if (isDynamic) {     const ast = makeTimingAst(0, 0, '') as any;     ast.dynamic = true;     ast.strValue = strValue;     return ast as DynamicTimingAst;   }    const timings = resolveTiming(strValue, errors);   return makeTimingAst(timings.duration, timings.delay, timings.easing); }  function normalizeAnimationOptions(options: AnimationOptions|null): AnimationOptions {   if (options) {     options = copyObj(options);     if (options['params']) {       options['params'] = normalizeParams(options['params'])!;     }   } else {     options = {};   }   return options; }  function makeTimingAst(duration: number, delay: number, easing: string|null): TimingAst {   return {duration, delay, easing}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ɵStyleDataMap} from '@angular/animations';  import {AnimationEngineInstruction, AnimationTransitionInstructionType} from '../render/animation_engine_instruction';  export interface AnimationTimelineInstruction extends AnimationEngineInstruction {   element: any;   keyframes: Array<ɵStyleDataMap>;   preStyleProps: string[];   postStyleProps: string[];   duration: number;   delay: number;   totalTime: number;   easing: string|null;   stretchStartingKeyframe?: boolean;   subTimeline: boolean; }  export function createTimelineInstruction(     element: any, keyframes: Array<ɵStyleDataMap>, preStyleProps: string[],     postStyleProps: string[], duration: number, delay: number, easing: string|null = null,     subTimeline: boolean = false): AnimationTimelineInstruction {   return {     type: AnimationTransitionInstructionType.TimelineAnimation,     element,     keyframes,     preStyleProps,     postStyleProps,     duration,     delay,     totalTime: duration + delay,     easing,     subTimeline   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationTimelineInstruction} from './animation_timeline_instruction';  export class ElementInstructionMap {   private _map = new Map<any, AnimationTimelineInstruction[]>();    get(element: any): AnimationTimelineInstruction[] {     return this._map.get(element) || [];   }    append(element: any, instructions: AnimationTimelineInstruction[]) {     let existingInstructions = this._map.get(element);     if (!existingInstructions) {       this._map.set(element, existingInstructions = []);     }     existingInstructions.push(...instructions);   }    has(element: any): boolean {     return this._map.has(element);   }    clear() {     this._map.clear();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateChildOptions, AnimateTimings, AnimationMetadataType, AnimationOptions, AnimationQueryOptions, AUTO_STYLE, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {invalidQuery} from '../error_helpers'; import {AnimationDriver} from '../render/animation_driver'; import {copyStyles, interpolateParams, iteratorToArray, resolveTiming, resolveTimingValue, visitDslNode} from '../util';  import {AnimateAst, AnimateChildAst, AnimateRefAst, Ast, AstVisitor, DynamicTimingAst, GroupAst, KeyframesAst, QueryAst, ReferenceAst, SequenceAst, StaggerAst, StateAst, StyleAst, TimingAst, TransitionAst, TriggerAst} from './animation_ast'; import {AnimationTimelineInstruction, createTimelineInstruction} from './animation_timeline_instruction'; import {ElementInstructionMap} from './element_instruction_map';  const ONE_FRAME_IN_MILLISECONDS = 1; const ENTER_TOKEN = ':enter'; const ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g'); const LEAVE_TOKEN = ':leave'; const LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');  /*  * The code within this file aims to generate web-animations-compatible keyframes from Angular's  * animation DSL code.  *  * The code below will be converted from:  *  * ```  * sequence([  *   style({ opacity: 0 }),  *   animate(1000, style({ opacity: 0 }))  * ])  * ```  *  * To:  * ```  * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]  * duration = 1000  * delay = 0  * easing = ''  * ```  *  * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a  * combination of AST traversal and merge-sort-like algorithms are used.  *  * [AST Traversal]  * Each of the animation verbs, when executed, will return an string-map object representing what  * type of action it is (style, animate, group, etc...) and the data associated with it. This means  * that when functional composition mix of these functions is evaluated (like in the example above)  * then it will end up producing a tree of objects representing the animation itself.  *  * When this animation object tree is processed by the visitor code below it will visit each of the  * verb statements within the visitor. And during each visit it will build the context of the  * animation keyframes by interacting with the `TimelineBuilder`.  *  * [TimelineBuilder]  * This class is responsible for tracking the styles and building a series of keyframe objects for a  * timeline between a start and end time. The builder starts off with an initial timeline and each  * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a  * `sequence()` then it will generate a sub timeline for each step as well as a new one after  * they are complete.  *  * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub  * timeline was created (based on one of the cases above) then the parent timeline will attempt to  * merge the styles used within the sub timelines into itself (only with group() this will happen).  * This happens with a merge operation (much like how the merge works in mergeSort) and it will only  * copy the most recently used styles from the sub timelines into the parent timeline. This ensures  * that if the styles are used later on in another phase of the animation then they will be the most  * up-to-date values.  *  * [How Missing Styles Are Updated]  * Each timeline has a `backFill` property which is responsible for filling in new styles into  * already processed keyframes if a new style shows up later within the animation sequence.  *  * ```  * sequence([  *   style({ width: 0 }),  *   animate(1000, style({ width: 100 })),  *   animate(1000, style({ width: 200 })),  *   animate(1000, style({ width: 300 }))  *   animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere  * else  * ])  * ```  *  * What is happening here is that the `height` value is added later in the sequence, but is missing  * from all previous animation steps. Therefore when a keyframe is created it would also be missing  * from all previous keyframes up until where it is first used. For the timeline keyframe generation  * to properly fill in the style it will place the previous value (the value from the parent  * timeline) or a default value of `*` into the backFill map. The `copyStyles` method in util.ts  * handles propagating that backfill map to the styles object.  *  * When a sub-timeline is created it will have its own backFill property. This is done so that  * styles present within the sub-timeline do not accidentally seep into the previous/future timeline  * keyframes  *  * [Validation]  * The code in this file is not responsible for validation. That functionality happens with within  * the `AnimationValidatorVisitor` code.  */ export function buildAnimationTimelines(     driver: AnimationDriver, rootElement: any, ast: Ast<AnimationMetadataType>,     enterClassName: string, leaveClassName: string, startingStyles: ɵStyleDataMap = new Map(),     finalStyles: ɵStyleDataMap = new Map(), options: AnimationOptions,     subInstructions?: ElementInstructionMap, errors: Error[] = []): AnimationTimelineInstruction[] {   return new AnimationTimelineBuilderVisitor().buildKeyframes(       driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles,       options, subInstructions, errors); }  export class AnimationTimelineBuilderVisitor implements AstVisitor {   buildKeyframes(       driver: AnimationDriver, rootElement: any, ast: Ast<AnimationMetadataType>,       enterClassName: string, leaveClassName: string, startingStyles: ɵStyleDataMap,       finalStyles: ɵStyleDataMap, options: AnimationOptions,       subInstructions?: ElementInstructionMap,       errors: Error[] = []): AnimationTimelineInstruction[] {     subInstructions = subInstructions || new ElementInstructionMap();     const context = new AnimationTimelineContext(         driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);     context.options = options;     const delay = options.delay ? resolveTimingValue(options.delay) : 0;     context.currentTimeline.delayNextStep(delay);     context.currentTimeline.setStyles([startingStyles], null, context.errors, options);      visitDslNode(this, ast, context);      // this checks to see if an actual animation happened     const timelines = context.timelines.filter(timeline => timeline.containsAnimation());      // note: we just want to apply the final styles for the rootElement, so we do not     //       just apply the styles to the last timeline but the last timeline which     //       element is the root one (basically `*`-styles are replaced with the actual     //       state style values only for the root element)     if (timelines.length && finalStyles.size) {       let lastRootTimeline: TimelineBuilder|undefined;       for (let i = timelines.length - 1; i >= 0; i--) {         const timeline = timelines[i];         if (timeline.element === rootElement) {           lastRootTimeline = timeline;           break;         }       }       if (lastRootTimeline && !lastRootTimeline.allowOnlyTimelineStyles()) {         lastRootTimeline.setStyles([finalStyles], null, context.errors, options);       }     }     return timelines.length ?         timelines.map(timeline => timeline.buildKeyframes()) :         [createTimelineInstruction(rootElement, [], [], [], 0, delay, '', false)];   }    visitTrigger(ast: TriggerAst, context: AnimationTimelineContext): any {     // these values are not visited in this AST   }    visitState(ast: StateAst, context: AnimationTimelineContext): any {     // these values are not visited in this AST   }    visitTransition(ast: TransitionAst, context: AnimationTimelineContext): any {     // these values are not visited in this AST   }    visitAnimateChild(ast: AnimateChildAst, context: AnimationTimelineContext): any {     const elementInstructions = context.subInstructions.get(context.element);     if (elementInstructions) {       const innerContext = context.createSubContext(ast.options);       const startTime = context.currentTimeline.currentTime;       const endTime = this._visitSubInstructions(           elementInstructions, innerContext, innerContext.options as AnimateChildOptions);       if (startTime != endTime) {         // we do this on the upper context because we created a sub context for         // the sub child animations         context.transformIntoNewTimeline(endTime);       }     }     context.previousNode = ast;   }    visitAnimateRef(ast: AnimateRefAst, context: AnimationTimelineContext): any {     const innerContext = context.createSubContext(ast.options);     innerContext.transformIntoNewTimeline();     this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);     this.visitReference(ast.animation, innerContext);     context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);     context.previousNode = ast;   }    private _applyAnimationRefDelays(       animationsRefsOptions: (AnimationOptions|null)[], context: AnimationTimelineContext,       innerContext: AnimationTimelineContext) {     for (const animationRefOptions of animationsRefsOptions) {       const animationDelay = animationRefOptions?.delay;       if (animationDelay) {         const animationDelayValue = typeof animationDelay === 'number' ?             animationDelay :             resolveTimingValue(interpolateParams(                 animationDelay, animationRefOptions?.params ?? {}, context.errors));         innerContext.delayNextStep(animationDelayValue);       }     }   }    private _visitSubInstructions(       instructions: AnimationTimelineInstruction[], context: AnimationTimelineContext,       options: AnimateChildOptions): number {     const startTime = context.currentTimeline.currentTime;     let furthestTime = startTime;      // this is a special-case for when a user wants to skip a sub     // animation from being fired entirely.     const duration = options.duration != null ? resolveTimingValue(options.duration) : null;     const delay = options.delay != null ? resolveTimingValue(options.delay) : null;     if (duration !== 0) {       instructions.forEach(instruction => {         const instructionTimings =             context.appendInstructionToTimeline(instruction, duration, delay);         furthestTime =             Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);       });     }      return furthestTime;   }    visitReference(ast: ReferenceAst, context: AnimationTimelineContext) {     context.updateOptions(ast.options, true);     visitDslNode(this, ast.animation, context);     context.previousNode = ast;   }    visitSequence(ast: SequenceAst, context: AnimationTimelineContext) {     const subContextCount = context.subContextCount;     let ctx = context;     const options = ast.options;      if (options && (options.params || options.delay)) {       ctx = context.createSubContext(options);       ctx.transformIntoNewTimeline();        if (options.delay != null) {         if (ctx.previousNode.type == AnimationMetadataType.Style) {           ctx.currentTimeline.snapshotCurrentStyles();           ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;         }          const delay = resolveTimingValue(options.delay);         ctx.delayNextStep(delay);       }     }      if (ast.steps.length) {       ast.steps.forEach(s => visitDslNode(this, s, ctx));        // this is here just in case the inner steps only contain or end with a style() call       ctx.currentTimeline.applyStylesToKeyframe();        // this means that some animation function within the sequence       // ended up creating a sub timeline (which means the current       // timeline cannot overlap with the contents of the sequence)       if (ctx.subContextCount > subContextCount) {         ctx.transformIntoNewTimeline();       }     }      context.previousNode = ast;   }    visitGroup(ast: GroupAst, context: AnimationTimelineContext) {     const innerTimelines: TimelineBuilder[] = [];     let furthestTime = context.currentTimeline.currentTime;     const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;      ast.steps.forEach(s => {       const innerContext = context.createSubContext(ast.options);       if (delay) {         innerContext.delayNextStep(delay);       }        visitDslNode(this, s, innerContext);       furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);       innerTimelines.push(innerContext.currentTimeline);     });      // this operation is run after the AST loop because otherwise     // if the parent timeline's collected styles were updated then     // it would pass in invalid data into the new-to-be forked items     innerTimelines.forEach(         timeline => context.currentTimeline.mergeTimelineCollectedStyles(timeline));     context.transformIntoNewTimeline(furthestTime);     context.previousNode = ast;   }    private _visitTiming(ast: TimingAst, context: AnimationTimelineContext): AnimateTimings {     if ((ast as DynamicTimingAst).dynamic) {       const strValue = (ast as DynamicTimingAst).strValue;       const timingValue =           context.params ? interpolateParams(strValue, context.params, context.errors) : strValue;       return resolveTiming(timingValue, context.errors);     } else {       return {duration: ast.duration, delay: ast.delay, easing: ast.easing};     }   }    visitAnimate(ast: AnimateAst, context: AnimationTimelineContext) {     const timings = context.currentAnimateTimings = this._visitTiming(ast.timings, context);     const timeline = context.currentTimeline;     if (timings.delay) {       context.incrementTime(timings.delay);       timeline.snapshotCurrentStyles();     }      const style = ast.style;     if (style.type == AnimationMetadataType.Keyframes) {       this.visitKeyframes(style, context);     } else {       context.incrementTime(timings.duration);       this.visitStyle(style as StyleAst, context);       timeline.applyStylesToKeyframe();     }      context.currentAnimateTimings = null;     context.previousNode = ast;   }    visitStyle(ast: StyleAst, context: AnimationTimelineContext) {     const timeline = context.currentTimeline;     const timings = context.currentAnimateTimings!;      // this is a special case for when a style() call     // directly follows  an animate() call (but not inside of an animate() call)     if (!timings && timeline.hasCurrentStyleProperties()) {       timeline.forwardFrame();     }      const easing = (timings && timings.easing) || ast.easing;     if (ast.isEmptyStep) {       timeline.applyEmptyStep(easing);     } else {       timeline.setStyles(ast.styles, easing, context.errors, context.options);     }      context.previousNode = ast;   }    visitKeyframes(ast: KeyframesAst, context: AnimationTimelineContext) {     const currentAnimateTimings = context.currentAnimateTimings!;     const startTime = (context.currentTimeline!).duration;     const duration = currentAnimateTimings.duration;     const innerContext = context.createSubContext();     const innerTimeline = innerContext.currentTimeline;     innerTimeline.easing = currentAnimateTimings.easing;      ast.styles.forEach(step => {       const offset: number = step.offset || 0;       innerTimeline.forwardTime(offset * duration);       innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);       innerTimeline.applyStylesToKeyframe();     });      // this will ensure that the parent timeline gets all the styles from     // the child even if the new timeline below is not used     context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);      // we do this because the window between this timeline and the sub timeline     // should ensure that the styles within are exactly the same as they were before     context.transformIntoNewTimeline(startTime + duration);     context.previousNode = ast;   }    visitQuery(ast: QueryAst, context: AnimationTimelineContext) {     // in the event that the first step before this is a style step we need     // to ensure the styles are applied before the children are animated     const startTime = context.currentTimeline.currentTime;     const options = (ast.options || {}) as AnimationQueryOptions;     const delay = options.delay ? resolveTimingValue(options.delay) : 0;      if (delay &&         (context.previousNode.type === AnimationMetadataType.Style ||          (startTime == 0 && context.currentTimeline.hasCurrentStyleProperties()))) {       context.currentTimeline.snapshotCurrentStyles();       context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;     }      let furthestTime = startTime;     const elms = context.invokeQuery(         ast.selector, ast.originalSelector, ast.limit, ast.includeSelf,         options.optional ? true : false, context.errors);      context.currentQueryTotal = elms.length;     let sameElementTimeline: TimelineBuilder|null = null;     elms.forEach((element, i) => {       context.currentQueryIndex = i;       const innerContext = context.createSubContext(ast.options, element);       if (delay) {         innerContext.delayNextStep(delay);       }        if (element === context.element) {         sameElementTimeline = innerContext.currentTimeline;       }        visitDslNode(this, ast.animation, innerContext);        // this is here just incase the inner steps only contain or end       // with a style() call (which is here to signal that this is a preparatory       // call to style an element before it is animated again)       innerContext.currentTimeline.applyStylesToKeyframe();        const endTime = innerContext.currentTimeline.currentTime;       furthestTime = Math.max(furthestTime, endTime);     });      context.currentQueryIndex = 0;     context.currentQueryTotal = 0;     context.transformIntoNewTimeline(furthestTime);      if (sameElementTimeline) {       context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);       context.currentTimeline.snapshotCurrentStyles();     }      context.previousNode = ast;   }    visitStagger(ast: StaggerAst, context: AnimationTimelineContext) {     const parentContext = context.parentContext!;     const tl = context.currentTimeline;     const timings = ast.timings;     const duration = Math.abs(timings.duration);     const maxTime = duration * (context.currentQueryTotal - 1);     let delay = duration * context.currentQueryIndex;      let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;     switch (staggerTransformer) {       case 'reverse':         delay = maxTime - delay;         break;       case 'full':         delay = parentContext.currentStaggerTime;         break;     }      const timeline = context.currentTimeline;     if (delay) {       timeline.delayNextStep(delay);     }      const startingTime = timeline.currentTime;     visitDslNode(this, ast.animation, context);     context.previousNode = ast;      // time = duration + delay     // the reason why this computation is so complex is because     // the inner timeline may either have a delay value or a stretched     // keyframe depending on if a subtimeline is not used or is used.     parentContext.currentStaggerTime =         (tl.currentTime - startingTime) + (tl.startTime - parentContext.currentTimeline.startTime);   } }  export declare type StyleAtTime = {   time: number; value: string | number; };  const DEFAULT_NOOP_PREVIOUS_NODE = <Ast<AnimationMetadataType>>{}; export class AnimationTimelineContext {   public parentContext: AnimationTimelineContext|null = null;   public currentTimeline: TimelineBuilder;   public currentAnimateTimings: AnimateTimings|null = null;   public previousNode: Ast<AnimationMetadataType> = DEFAULT_NOOP_PREVIOUS_NODE;   public subContextCount = 0;   public options: AnimationOptions = {};   public currentQueryIndex: number = 0;   public currentQueryTotal: number = 0;   public currentStaggerTime: number = 0;    constructor(       private _driver: AnimationDriver, public element: any,       public subInstructions: ElementInstructionMap, private _enterClassName: string,       private _leaveClassName: string, public errors: Error[], public timelines: TimelineBuilder[],       initialTimeline?: TimelineBuilder) {     this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);     timelines.push(this.currentTimeline);   }    get params() {     return this.options.params;   }    updateOptions(options: AnimationOptions|null, skipIfExists?: boolean) {     if (!options) return;      const newOptions = options as any;     let optionsToUpdate = this.options;      // NOTE: this will get patched up when other animation methods support duration overrides     if (newOptions.duration != null) {       (optionsToUpdate as any).duration = resolveTimingValue(newOptions.duration);     }      if (newOptions.delay != null) {       optionsToUpdate.delay = resolveTimingValue(newOptions.delay);     }      const newParams = newOptions.params;     if (newParams) {       let paramsToUpdate: {[name: string]: any} = optionsToUpdate.params!;       if (!paramsToUpdate) {         paramsToUpdate = this.options.params = {};       }        Object.keys(newParams).forEach(name => {         if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {           paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);         }       });     }   }    private _copyOptions() {     const options: AnimationOptions = {};     if (this.options) {       const oldParams = this.options.params;       if (oldParams) {         const params: {[name: string]: any} = options['params'] = {};         Object.keys(oldParams).forEach(name => {           params[name] = oldParams[name];         });       }     }     return options;   }    createSubContext(options: AnimationOptions|null = null, element?: any, newTime?: number):       AnimationTimelineContext {     const target = element || this.element;     const context = new AnimationTimelineContext(         this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName,         this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));     context.previousNode = this.previousNode;     context.currentAnimateTimings = this.currentAnimateTimings;      context.options = this._copyOptions();     context.updateOptions(options);      context.currentQueryIndex = this.currentQueryIndex;     context.currentQueryTotal = this.currentQueryTotal;     context.parentContext = this;     this.subContextCount++;     return context;   }    transformIntoNewTimeline(newTime?: number) {     this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;     this.currentTimeline = this.currentTimeline.fork(this.element, newTime);     this.timelines.push(this.currentTimeline);     return this.currentTimeline;   }    appendInstructionToTimeline(       instruction: AnimationTimelineInstruction, duration: number|null,       delay: number|null): AnimateTimings {     const updatedTimings: AnimateTimings = {       duration: duration != null ? duration : instruction.duration,       delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,       easing: ''     };     const builder = new SubTimelineBuilder(         this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps,         instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);     this.timelines.push(builder);     return updatedTimings;   }    incrementTime(time: number) {     this.currentTimeline.forwardTime(this.currentTimeline.duration + time);   }    delayNextStep(delay: number) {     // negative delays are not yet supported     if (delay > 0) {       this.currentTimeline.delayNextStep(delay);     }   }    invokeQuery(       selector: string, originalSelector: string, limit: number, includeSelf: boolean,       optional: boolean, errors: Error[]): any[] {     let results: any[] = [];     if (includeSelf) {       results.push(this.element);     }     if (selector.length > 0) {  // only if :self is used then the selector can be empty       selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);       selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);       const multi = limit != 1;       let elements = this._driver.query(this.element, selector, multi);       if (limit !== 0) {         elements = limit < 0 ? elements.slice(elements.length + limit, elements.length) :                                elements.slice(0, limit);       }       results.push(...elements);     }      if (!optional && results.length == 0) {       errors.push(invalidQuery(originalSelector));     }     return results;   } }  export class TimelineBuilder {   public duration: number = 0;   // TODO(issue/24571): remove '!'.   public easing!: string|null;   private _previousKeyframe: ɵStyleDataMap = new Map();   private _currentKeyframe: ɵStyleDataMap = new Map();   private _keyframes = new Map<number, ɵStyleDataMap>();   private _styleSummary = new Map<string, StyleAtTime>();   private _localTimelineStyles: ɵStyleDataMap = new Map();   private _globalTimelineStyles: ɵStyleDataMap;   private _pendingStyles: ɵStyleDataMap = new Map();   private _backFill: ɵStyleDataMap = new Map();   private _currentEmptyStepKeyframe: ɵStyleDataMap|null = null;    constructor(       private _driver: AnimationDriver, public element: any, public startTime: number,       private _elementTimelineStylesLookup?: Map<any, ɵStyleDataMap>) {     if (!this._elementTimelineStylesLookup) {       this._elementTimelineStylesLookup = new Map<any, ɵStyleDataMap>();     }      this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element)!;     if (!this._globalTimelineStyles) {       this._globalTimelineStyles = this._localTimelineStyles;       this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);     }     this._loadKeyframe();   }    containsAnimation(): boolean {     switch (this._keyframes.size) {       case 0:         return false;       case 1:         return this.hasCurrentStyleProperties();       default:         return true;     }   }    hasCurrentStyleProperties(): boolean {     return this._currentKeyframe.size > 0;   }    get currentTime() {     return this.startTime + this.duration;   }    delayNextStep(delay: number) {     // in the event that a style() step is placed right before a stagger()     // and that style() step is the very first style() value in the animation     // then we need to make a copy of the keyframe [0, copy, 1] so that the delay     // properly applies the style() values to work with the stagger...     const hasPreStyleStep = this._keyframes.size === 1 && this._pendingStyles.size;      if (this.duration || hasPreStyleStep) {       this.forwardTime(this.currentTime + delay);       if (hasPreStyleStep) {         this.snapshotCurrentStyles();       }     } else {       this.startTime += delay;     }   }    fork(element: any, currentTime?: number): TimelineBuilder {     this.applyStylesToKeyframe();     return new TimelineBuilder(         this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);   }    private _loadKeyframe() {     if (this._currentKeyframe) {       this._previousKeyframe = this._currentKeyframe;     }     this._currentKeyframe = this._keyframes.get(this.duration)!;     if (!this._currentKeyframe) {       this._currentKeyframe = new Map();       this._keyframes.set(this.duration, this._currentKeyframe);     }   }    forwardFrame() {     this.duration += ONE_FRAME_IN_MILLISECONDS;     this._loadKeyframe();   }    forwardTime(time: number) {     this.applyStylesToKeyframe();     this.duration = time;     this._loadKeyframe();   }    private _updateStyle(prop: string, value: string|number) {     this._localTimelineStyles.set(prop, value);     this._globalTimelineStyles.set(prop, value);     this._styleSummary.set(prop, {time: this.currentTime, value});   }    allowOnlyTimelineStyles() {     return this._currentEmptyStepKeyframe !== this._currentKeyframe;   }    applyEmptyStep(easing: string|null) {     if (easing) {       this._previousKeyframe.set('easing', easing);     }      // special case for animate(duration):     // all missing styles are filled with a `*` value then     // if any destination styles are filled in later on the same     // keyframe then they will override the overridden styles     // We use `_globalTimelineStyles` here because there may be     // styles in previous keyframes that are not present in this timeline     for (let [prop, value] of this._globalTimelineStyles) {       this._backFill.set(prop, value || AUTO_STYLE);       this._currentKeyframe.set(prop, AUTO_STYLE);     }     this._currentEmptyStepKeyframe = this._currentKeyframe;   }    setStyles(       input: Array<(ɵStyleDataMap | string)>, easing: string|null, errors: Error[],       options?: AnimationOptions) {     if (easing) {       this._previousKeyframe.set('easing', easing);     }     const params = (options && options.params) || {};     const styles = flattenStyles(input, this._globalTimelineStyles);     for (let [prop, value] of styles) {       const val = interpolateParams(value, params, errors);       this._pendingStyles.set(prop, val);       if (!this._localTimelineStyles.has(prop)) {         this._backFill.set(prop, this._globalTimelineStyles.get(prop) ?? AUTO_STYLE);       }       this._updateStyle(prop, val);     }   }    applyStylesToKeyframe() {     if (this._pendingStyles.size == 0) return;      this._pendingStyles.forEach((val, prop) => {       this._currentKeyframe.set(prop, val);     });     this._pendingStyles.clear();      this._localTimelineStyles.forEach((val, prop) => {       if (!this._currentKeyframe.has(prop)) {         this._currentKeyframe.set(prop, val);       }     });   }    snapshotCurrentStyles() {     for (let [prop, val] of this._localTimelineStyles) {       this._pendingStyles.set(prop, val);       this._updateStyle(prop, val);     }   }    getFinalKeyframe() {     return this._keyframes.get(this.duration);   }    get properties() {     const properties: string[] = [];     for (let prop in this._currentKeyframe) {       properties.push(prop);     }     return properties;   }    mergeTimelineCollectedStyles(timeline: TimelineBuilder) {     timeline._styleSummary.forEach((details1, prop) => {       const details0 = this._styleSummary.get(prop);       if (!details0 || details1.time > details0.time) {         this._updateStyle(prop, details1.value);       }     });   }    buildKeyframes(): AnimationTimelineInstruction {     this.applyStylesToKeyframe();     const preStyleProps = new Set<string>();     const postStyleProps = new Set<string>();     const isEmpty = this._keyframes.size === 1 && this.duration === 0;      let finalKeyframes: Array<ɵStyleDataMap> = [];     this._keyframes.forEach((keyframe, time) => {       const finalKeyframe = copyStyles(keyframe, new Map(), this._backFill);       finalKeyframe.forEach((value, prop) => {         if (value === PRE_STYLE) {           preStyleProps.add(prop);         } else if (value === AUTO_STYLE) {           postStyleProps.add(prop);         }       });       if (!isEmpty) {         finalKeyframe.set('offset', time / this.duration);       }       finalKeyframes.push(finalKeyframe);     });      const preProps: string[] = preStyleProps.size ? iteratorToArray(preStyleProps.values()) : [];     const postProps: string[] = postStyleProps.size ? iteratorToArray(postStyleProps.values()) : [];      // special case for a 0-second animation (which is designed just to place styles onscreen)     if (isEmpty) {       const kf0 = finalKeyframes[0];       const kf1 = new Map(kf0);       kf0.set('offset', 0);       kf1.set('offset', 1);       finalKeyframes = [kf0, kf1];     }      return createTimelineInstruction(         this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime,         this.easing, false);   } }  class SubTimelineBuilder extends TimelineBuilder {   public timings: AnimateTimings;    constructor(       driver: AnimationDriver, element: any, public keyframes: Array<ɵStyleDataMap>,       public preStyleProps: string[], public postStyleProps: string[], timings: AnimateTimings,       private _stretchStartingKeyframe: boolean = false) {     super(driver, element, timings.delay);     this.timings = {duration: timings.duration, delay: timings.delay, easing: timings.easing};   }    override containsAnimation(): boolean {     return this.keyframes.length > 1;   }    override buildKeyframes(): AnimationTimelineInstruction {     let keyframes = this.keyframes;     let {delay, duration, easing} = this.timings;     if (this._stretchStartingKeyframe && delay) {       const newKeyframes: Array<ɵStyleDataMap> = [];       const totalTime = duration + delay;       const startingGap = delay / totalTime;        // the original starting keyframe now starts once the delay is done       const newFirstKeyframe = copyStyles(keyframes[0]);       newFirstKeyframe.set('offset', 0);       newKeyframes.push(newFirstKeyframe);        const oldFirstKeyframe = copyStyles(keyframes[0]);       oldFirstKeyframe.set('offset', roundOffset(startingGap));       newKeyframes.push(oldFirstKeyframe);        /*         When the keyframe is stretched then it means that the delay before the animation         starts is gone. Instead the first keyframe is placed at the start of the animation         and it is then copied to where it starts when the original delay is over. This basically         means nothing animates during that delay, but the styles are still rendered. For this         to work the original offset values that exist in the original keyframes must be \"warped\"         so that they can take the new keyframe + delay into account.          delay=1000, duration=1000, keyframes = 0 .5 1          turns into          delay=0, duration=2000, keyframes = 0 .33 .66 1        */        // offsets between 1 ... n -1 are all warped by the keyframe stretch       const limit = keyframes.length - 1;       for (let i = 1; i <= limit; i++) {         let kf = copyStyles(keyframes[i]);         const oldOffset = kf.get('offset') as number;         const timeAtKeyframe = delay + oldOffset * duration;         kf.set('offset', roundOffset(timeAtKeyframe / totalTime));         newKeyframes.push(kf);       }        // the new starting keyframe should be added at the start       duration = totalTime;       delay = 0;       easing = '';        keyframes = newKeyframes;     }      return createTimelineInstruction(         this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing,         true);   } }  function roundOffset(offset: number, decimalPoints = 3): number {   const mult = Math.pow(10, decimalPoints - 1);   return Math.round(offset * mult) / mult; }  function flattenStyles(input: Array<(ɵStyleDataMap | string)>, allStyles: ɵStyleDataMap) {   const styles: ɵStyleDataMap = new Map();   let allProperties: string[]|IterableIterator<string>;   input.forEach(token => {     if (token === '*') {       allProperties = allProperties || allStyles.keys();       for (let prop of allProperties) {         styles.set(prop, AUTO_STYLE);       }     } else {       copyStyles(token as ɵStyleDataMap, styles);     }   });   return styles; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationMetadataType, AnimationOptions, ɵStyleDataMap} from '@angular/animations';  import {buildingFailed, validationFailed} from '../error_helpers'; import {AnimationDriver} from '../render/animation_driver'; import {ENTER_CLASSNAME, LEAVE_CLASSNAME, normalizeStyles} from '../util'; import {warnValidation} from '../warning_helpers';  import {Ast} from './animation_ast'; import {buildAnimationAst} from './animation_ast_builder'; import {buildAnimationTimelines} from './animation_timeline_builder'; import {AnimationTimelineInstruction} from './animation_timeline_instruction'; import {ElementInstructionMap} from './element_instruction_map';  export class Animation {   private _animationAst: Ast<AnimationMetadataType>;   constructor(private _driver: AnimationDriver, input: AnimationMetadata|AnimationMetadata[]) {     const errors: Error[] = [];     const warnings: string[] = [];     const ast = buildAnimationAst(_driver, input, errors, warnings);     if (errors.length) {       throw validationFailed(errors);     }     if (warnings.length) {       warnValidation(warnings);     }     this._animationAst = ast;   }    buildTimelines(       element: any, startingStyles: ɵStyleDataMap|Array<ɵStyleDataMap>,       destinationStyles: ɵStyleDataMap|Array<ɵStyleDataMap>, options: AnimationOptions,       subInstructions?: ElementInstructionMap): AnimationTimelineInstruction[] {     const start = Array.isArray(startingStyles) ? normalizeStyles(startingStyles) :                                                   <ɵStyleDataMap>startingStyles;     const dest = Array.isArray(destinationStyles) ? normalizeStyles(destinationStyles) :                                                     <ɵStyleDataMap>destinationStyles;     const errors: any = [];     subInstructions = subInstructions || new ElementInstructionMap();     const result = buildAnimationTimelines(         this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest,         options, subInstructions, errors);     if (errors.length) {       throw buildingFailed(errors);     }     return result;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @publicApi  */ export abstract class AnimationStyleNormalizer {   abstract normalizePropertyName(propertyName: string, errors: Error[]): string;   abstract normalizeStyleValue(       userProvidedProperty: string, normalizedProperty: string, value: string|number,       errors: Error[]): string; }  /**  * @publicApi  */ export class NoopAnimationStyleNormalizer {   normalizePropertyName(propertyName: string, errors: Error[]): string {     return propertyName;   }    normalizeStyleValue(       userProvidedProperty: string, normalizedProperty: string, value: string|number,       errors: Error[]): string {     return <any>value;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {invalidCssUnitValue} from '../../error_helpers'; import {dashCaseToCamelCase} from '../../util';  import {AnimationStyleNormalizer} from './animation_style_normalizer';  const DIMENSIONAL_PROP_SET = new Set([   'width',   'height',   'minWidth',   'minHeight',   'maxWidth',   'maxHeight',   'left',   'top',   'bottom',   'right',   'fontSize',   'outlineWidth',   'outlineOffset',   'paddingTop',   'paddingLeft',   'paddingBottom',   'paddingRight',   'marginTop',   'marginLeft',   'marginBottom',   'marginRight',   'borderRadius',   'borderWidth',   'borderTopWidth',   'borderLeftWidth',   'borderRightWidth',   'borderBottomWidth',   'textIndent',   'perspective' ]);  export class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {   override normalizePropertyName(propertyName: string, errors: Error[]): string {     return dashCaseToCamelCase(propertyName);   }    override normalizeStyleValue(       userProvidedProperty: string, normalizedProperty: string, value: string|number,       errors: Error[]): string {     let unit: string = '';     const strVal = value.toString().trim();      if (DIMENSIONAL_PROP_SET.has(normalizedProperty) && value !== 0 && value !== '0') {       if (typeof value === 'number') {         unit = 'px';       } else {         const valAndSuffixMatch = value.match(/^[+-]?[\\d\\.]+([a-z]*)$/);         if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {           errors.push(invalidCssUnitValue(userProvidedProperty, value));         }       }     }     return strVal + unit;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵStyleDataMap} from '@angular/animations';  import {AnimationEngineInstruction, AnimationTransitionInstructionType} from '../render/animation_engine_instruction';  import {AnimationTimelineInstruction} from './animation_timeline_instruction';  export interface AnimationTransitionInstruction extends AnimationEngineInstruction {   element: any;   triggerName: string;   isRemovalTransition: boolean;   fromState: string;   fromStyles: ɵStyleDataMap;   toState: string;   toStyles: ɵStyleDataMap;   timelines: AnimationTimelineInstruction[];   queriedElements: any[];   preStyleProps: Map<any, Set<string>>;   postStyleProps: Map<any, Set<string>>;   totalTime: number;   errors?: Error[]; }  export function createTransitionInstruction(     element: any, triggerName: string, fromState: string, toState: string,     isRemovalTransition: boolean, fromStyles: ɵStyleDataMap, toStyles: ɵStyleDataMap,     timelines: AnimationTimelineInstruction[], queriedElements: any[],     preStyleProps: Map<any, Set<string>>, postStyleProps: Map<any, Set<string>>, totalTime: number,     errors?: Error[]): AnimationTransitionInstruction {   return {     type: AnimationTransitionInstructionType.TransitionAnimation,     element,     triggerName,     isRemovalTransition,     fromState,     fromStyles,     toState,     toStyles,     timelines,     queriedElements,     preStyleProps,     postStyleProps,     totalTime,     errors   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationOptions, ɵStyleDataMap} from '@angular/animations';  import {AnimationDriver} from '../render/animation_driver'; import {getOrSetDefaultValue} from '../render/shared'; import {copyObj, interpolateParams, iteratorToArray} from '../util';  import {StyleAst, TransitionAst} from './animation_ast'; import {buildAnimationTimelines} from './animation_timeline_builder'; import {AnimationTimelineInstruction} from './animation_timeline_instruction'; import {TransitionMatcherFn} from './animation_transition_expr'; import {AnimationTransitionInstruction, createTransitionInstruction} from './animation_transition_instruction'; import {ElementInstructionMap} from './element_instruction_map'; import {AnimationStyleNormalizer} from './style_normalization/animation_style_normalizer';  const EMPTY_OBJECT = {};  export class AnimationTransitionFactory {   constructor(       private _triggerName: string, public ast: TransitionAst,       private _stateStyles: Map<string, AnimationStateStyles>) {}    match(currentState: any, nextState: any, element: any, params: {[key: string]: any}): boolean {     return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);   }    buildStyles(stateName: string|boolean|undefined, params: {[key: string]: any}, errors: Error[]):       ɵStyleDataMap {     let styler = this._stateStyles.get('*');     if (stateName !== undefined) {       styler = this._stateStyles.get(stateName?.toString()) || styler;     }     return styler ? styler.buildStyles(params, errors) : new Map();   }    build(       driver: AnimationDriver, element: any, currentState: any, nextState: any,       enterClassName: string, leaveClassName: string, currentOptions?: AnimationOptions,       nextOptions?: AnimationOptions, subInstructions?: ElementInstructionMap,       skipAstBuild?: boolean): AnimationTransitionInstruction {     const errors: Error[] = [];      const transitionAnimationParams = this.ast.options && this.ast.options.params || EMPTY_OBJECT;     const currentAnimationParams = currentOptions && currentOptions.params || EMPTY_OBJECT;     const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);     const nextAnimationParams = nextOptions && nextOptions.params || EMPTY_OBJECT;     const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);      const queriedElements = new Set<any>();     const preStyleMap = new Map<any, Set<string>>();     const postStyleMap = new Map<any, Set<string>>();     const isRemoval = nextState === 'void';      const animationOptions: AnimationOptions = {       params: applyParamDefaults(nextAnimationParams, transitionAnimationParams),       delay: this.ast.options?.delay,     };      const timelines = skipAstBuild ?         [] :         buildAnimationTimelines(             driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles,             nextStateStyles, animationOptions, subInstructions, errors);      let totalTime = 0;     timelines.forEach(tl => {       totalTime = Math.max(tl.duration + tl.delay, totalTime);     });      if (errors.length) {       return createTransitionInstruction(           element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles,           nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);     }      timelines.forEach(tl => {       const elm = tl.element;       const preProps = getOrSetDefaultValue(preStyleMap, elm, new Set<string>());       tl.preStyleProps.forEach(prop => preProps.add(prop));        const postProps = getOrSetDefaultValue(postStyleMap, elm, new Set<string>());       tl.postStyleProps.forEach(prop => postProps.add(prop));        if (elm !== element) {         queriedElements.add(elm);       }     });      if (typeof ngDevMode === 'undefined' || ngDevMode) {       checkNonAnimatableInTimelines(timelines, this._triggerName, driver);     }      const queriedElementsList = iteratorToArray(queriedElements.values());     return createTransitionInstruction(         element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles,         nextStateStyles, timelines, queriedElementsList, preStyleMap, postStyleMap, totalTime);   } }  /**  * Checks inside a set of timelines if they try to animate a css property which is not considered  * animatable, in that case it prints a warning on the console.  * Besides that the function doesn't have any other effect.  *  * Note: this check is done here after the timelines are built instead of doing on a lower level so  * that we can make sure that the warning appears only once per instruction (we can aggregate here  * all the issues instead of finding them separately).  *  * @param timelines The built timelines for the current instruction.  * @param triggerName The name of the trigger for the current instruction.  * @param driver Animation driver used to perform the check.  *  */ function checkNonAnimatableInTimelines(     timelines: AnimationTimelineInstruction[], triggerName: string, driver: AnimationDriver): void {   if (!driver.validateAnimatableStyleProperty) {     return;   }    const allowedNonAnimatableProps = new Set<string>([     // 'easing' is a utility/synthetic prop we use to represent     // easing functions, it represents a property of the animation     // which is not animatable but different values can be used     // in different steps     'easing'   ]);    const invalidNonAnimatableProps = new Set<string>();    timelines.forEach(({keyframes}) => {     const nonAnimatablePropsInitialValues = new Map<string, string|number>();     keyframes.forEach(keyframe => {       const entriesToCheck =           Array.from(keyframe.entries()).filter(([prop]) => !allowedNonAnimatableProps.has(prop));       for (const [prop, value] of entriesToCheck) {         if (!driver.validateAnimatableStyleProperty!(prop)) {           if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {             const propInitialValue = nonAnimatablePropsInitialValues.get(prop);             if (propInitialValue !== value) {               invalidNonAnimatableProps.add(prop);             }           } else {             nonAnimatablePropsInitialValues.set(prop, value);           }         }       }     });   });    if (invalidNonAnimatableProps.size > 0) {     console.warn(         `Warning: The animation trigger \"${triggerName}\" is attempting to animate the following` +         ' not animatable properties: ' + Array.from(invalidNonAnimatableProps).join(', ') + '\ ' +         '(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)');   } }  function oneOrMoreTransitionsMatch(     matchFns: TransitionMatcherFn[], currentState: any, nextState: any, element: any,     params: {[key: string]: any}): boolean {   return matchFns.some(fn => fn(currentState, nextState, element, params)); }  function applyParamDefaults(userParams: Record<string, any>, defaults: Record<string, any>) {   const result: Record<string, any> = copyObj(defaults);    for (const key in userParams) {     if (userParams.hasOwnProperty(key) && userParams[key] != null) {       result[key] = userParams[key];     }   }    return result; }  export class AnimationStateStyles {   constructor(       private styles: StyleAst, private defaultParams: {[key: string]: any},       private normalizer: AnimationStyleNormalizer) {}    buildStyles(params: {[key: string]: any}, errors: Error[]): ɵStyleDataMap {     const finalStyles: ɵStyleDataMap = new Map();     const combinedParams = copyObj(this.defaultParams);     Object.keys(params).forEach(key => {       const value = params[key];       if (value !== null) {         combinedParams[key] = value;       }     });     this.styles.styles.forEach(value => {       if (typeof value !== 'string') {         value.forEach((val, prop) => {           if (val) {             val = interpolateParams(val, combinedParams, errors);           }           const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);           val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);           finalStyles.set(prop, val);         });       }     });     return finalStyles;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadataType, ɵStyleDataMap} from '@angular/animations';  import {SequenceAst, TransitionAst, TriggerAst} from './animation_ast'; import {AnimationStateStyles, AnimationTransitionFactory} from './animation_transition_factory'; import {AnimationStyleNormalizer} from './style_normalization/animation_style_normalizer';    export function buildTrigger(     name: string, ast: TriggerAst, normalizer: AnimationStyleNormalizer): AnimationTrigger {   return new AnimationTrigger(name, ast, normalizer); }  export class AnimationTrigger {   public transitionFactories: AnimationTransitionFactory[] = [];   public fallbackTransition: AnimationTransitionFactory;   public states = new Map<string, AnimationStateStyles>();    constructor(       public name: string, public ast: TriggerAst, private _normalizer: AnimationStyleNormalizer) {     ast.states.forEach(ast => {       const defaultParams = (ast.options && ast.options.params) || {};       this.states.set(ast.name, new AnimationStateStyles(ast.style, defaultParams, _normalizer));     });      balanceProperties(this.states, 'true', '1');     balanceProperties(this.states, 'false', '0');      ast.transitions.forEach(ast => {       this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));     });     this.fallbackTransition = createFallbackTransition(name, this.states, this._normalizer);   }    get containsQueries() {     return this.ast.queryCount > 0;   }    matchTransition(currentState: any, nextState: any, element: any, params: {[key: string]: any}):       AnimationTransitionFactory|null {     const entry =         this.transitionFactories.find(f => f.match(currentState, nextState, element, params));     return entry || null;   }    matchStyles(currentState: any, params: {[key: string]: any}, errors: Error[]): ɵStyleDataMap {     return this.fallbackTransition.buildStyles(currentState, params, errors);   } }  function createFallbackTransition(     triggerName: string, states: Map<string, AnimationStateStyles>,     normalizer: AnimationStyleNormalizer): AnimationTransitionFactory {   const matchers = [(fromState: any, toState: any) => true];   const animation: SequenceAst = {type: AnimationMetadataType.Sequence, steps: [], options: null};   const transition: TransitionAst = {     type: AnimationMetadataType.Transition,     animation,     matchers,     options: null,     queryCount: 0,     depCount: 0   };   return new AnimationTransitionFactory(triggerName, transition, states); }  function balanceProperties(     stateMap: Map<string, AnimationStateStyles>, key1: string, key2: string) {   if (stateMap.has(key1)) {     if (!stateMap.has(key2)) {       stateMap.set(key2, stateMap.get(key1)!);     }   } else if (stateMap.has(key2)) {     stateMap.set(key1, stateMap.get(key2)!);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationMetadataType, AnimationOptions, AnimationPlayer, AUTO_STYLE, ɵStyleDataMap} from '@angular/animations';  import {Ast} from '../dsl/animation_ast'; import {buildAnimationAst} from '../dsl/animation_ast_builder'; import {buildAnimationTimelines} from '../dsl/animation_timeline_builder'; import {AnimationTimelineInstruction} from '../dsl/animation_timeline_instruction'; import {ElementInstructionMap} from '../dsl/element_instruction_map'; import {AnimationStyleNormalizer} from '../dsl/style_normalization/animation_style_normalizer'; import {createAnimationFailed, missingOrDestroyedAnimation, missingPlayer, registerFailed} from '../error_helpers'; import {ENTER_CLASSNAME, LEAVE_CLASSNAME} from '../util'; import {warnRegister} from '../warning_helpers';  import {AnimationDriver} from './animation_driver'; import {getOrSetDefaultValue, listenOnPlayer, makeAnimationEvent, normalizeKeyframes, optimizeGroupPlayer} from './shared';  const EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();  export class TimelineAnimationEngine {   private _animations = new Map<string, Ast<AnimationMetadataType>>();   private _playersById = new Map<string, AnimationPlayer>();   public players: AnimationPlayer[] = [];    constructor(       public bodyNode: any, private _driver: AnimationDriver,       private _normalizer: AnimationStyleNormalizer) {}    register(id: string, metadata: AnimationMetadata|AnimationMetadata[]) {     const errors: Error[] = [];     const warnings: string[] = [];     const ast = buildAnimationAst(this._driver, metadata, errors, warnings);     if (errors.length) {       throw registerFailed(errors);     } else {       if (warnings.length) {         warnRegister(warnings);       }       this._animations.set(id, ast);     }   }    private _buildPlayer(       i: AnimationTimelineInstruction, preStyles: ɵStyleDataMap,       postStyles?: ɵStyleDataMap): AnimationPlayer {     const element = i.element;     const keyframes = normalizeKeyframes(         this._driver, this._normalizer, element, i.keyframes, preStyles, postStyles);     return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);   }    create(id: string, element: any, options: AnimationOptions = {}): AnimationPlayer {     const errors: Error[] = [];     const ast = this._animations.get(id);     let instructions: AnimationTimelineInstruction[];      const autoStylesMap = new Map<any, ɵStyleDataMap>();      if (ast) {       instructions = buildAnimationTimelines(           this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, new Map(), new Map(),           options, EMPTY_INSTRUCTION_MAP, errors);       instructions.forEach(inst => {         const styles = getOrSetDefaultValue(             autoStylesMap, inst.element, new Map<string, string|number|null>());         inst.postStyleProps.forEach(prop => styles.set(prop, null));       });     } else {       errors.push(missingOrDestroyedAnimation());       instructions = [];     }      if (errors.length) {       throw createAnimationFailed(errors);     }      autoStylesMap.forEach((styles, element) => {       styles.forEach((_, prop) => {         styles.set(prop, this._driver.computeStyle(element, prop, AUTO_STYLE));       });     });      const players = instructions.map(i => {       const styles = autoStylesMap.get(i.element);       return this._buildPlayer(i, new Map(), styles);     });     const player = optimizeGroupPlayer(players);     this._playersById.set(id, player);     player.onDestroy(() => this.destroy(id));      this.players.push(player);     return player;   }    destroy(id: string) {     const player = this._getPlayer(id);     player.destroy();     this._playersById.delete(id);     const index = this.players.indexOf(player);     if (index >= 0) {       this.players.splice(index, 1);     }   }    private _getPlayer(id: string): AnimationPlayer {     const player = this._playersById.get(id);     if (!player) {       throw missingPlayer(id);     }     return player;   }    listen(id: string, element: string, eventName: string, callback: (event: any) => any):       () => void {     // triggerName, fromState, toState are all ignored for timeline animations     const baseEvent = makeAnimationEvent(element, '', '', '');     listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);     return () => {};   }    command(id: string, element: any, command: string, args: any[]): void {     if (command == 'register') {       this.register(id, args[0] as AnimationMetadata | AnimationMetadata[]);       return;     }      if (command == 'create') {       const options = (args[0] || {}) as AnimationOptions;       this.create(id, element, options);       return;     }      const player = this._getPlayer(id);     switch (command) {       case 'play':         player.play();         break;       case 'pause':         player.pause();         break;       case 'reset':         player.reset();         break;       case 'restart':         player.restart();         break;       case 'finish':         player.finish();         break;       case 'init':         player.init();         break;       case 'setPosition':         player.setPosition(parseFloat(args[0] as string));         break;       case 'destroy':         this.destroy(id);         break;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationOptions, AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵAnimationGroupPlayer as AnimationGroupPlayer, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {AnimationTimelineInstruction} from '../dsl/animation_timeline_instruction'; import {AnimationTransitionFactory} from '../dsl/animation_transition_factory'; import {AnimationTransitionInstruction} from '../dsl/animation_transition_instruction'; import {AnimationTrigger} from '../dsl/animation_trigger'; import {ElementInstructionMap} from '../dsl/element_instruction_map'; import {AnimationStyleNormalizer} from '../dsl/style_normalization/animation_style_normalizer'; import {missingEvent, missingTrigger, transitionFailed, triggerTransitionsFailed, unregisteredTrigger, unsupportedTriggerEvent} from '../error_helpers'; import {copyObj, ENTER_CLASSNAME, eraseStyles, LEAVE_CLASSNAME, NG_ANIMATING_CLASSNAME, NG_ANIMATING_SELECTOR, NG_TRIGGER_CLASSNAME, NG_TRIGGER_SELECTOR, setStyles} from '../util';  import {AnimationDriver} from './animation_driver'; import {getOrSetDefaultValue, listenOnPlayer, makeAnimationEvent, normalizeKeyframes, optimizeGroupPlayer} from './shared';  const QUEUED_CLASSNAME = 'ng-animate-queued'; const QUEUED_SELECTOR = '.ng-animate-queued'; const DISABLED_CLASSNAME = 'ng-animate-disabled'; const DISABLED_SELECTOR = '.ng-animate-disabled'; const STAR_CLASSNAME = 'ng-star-inserted'; const STAR_SELECTOR = '.ng-star-inserted';  const EMPTY_PLAYER_ARRAY: TransitionAnimationPlayer[] = []; const NULL_REMOVAL_STATE: ElementAnimationState = {   namespaceId: '',   setForRemoval: false,   setForMove: false,   hasAnimation: false,   removedBeforeQueried: false }; const NULL_REMOVED_QUERIED_STATE: ElementAnimationState = {   namespaceId: '',   setForMove: false,   setForRemoval: false,   hasAnimation: false,   removedBeforeQueried: true };  interface TriggerListener {   name: string;   phase: string;   callback: (event: any) => any; }  export interface QueueInstruction {   element: any;   triggerName: string;   fromState: StateValue;   toState: StateValue;   transition: AnimationTransitionFactory;   player: TransitionAnimationPlayer;   isFallbackTransition: boolean; }  export const REMOVAL_FLAG = '__ng_removed';  export interface ElementAnimationState {   setForRemoval: boolean;   setForMove: boolean;   hasAnimation: boolean;   namespaceId: string;   removedBeforeQueried: boolean;   previousTriggersValues?: Map<string, string>; }  export class StateValue {   public value: string;   public options: AnimationOptions;    get params(): {[key: string]: any} {     return this.options.params as {[key: string]: any};   }    constructor(input: any, public namespaceId: string = '') {     const isObj = input && input.hasOwnProperty('value');     const value = isObj ? input['value'] : input;     this.value = normalizeTriggerValue(value);     if (isObj) {       const options = copyObj(input as any);       delete options['value'];       this.options = options as AnimationOptions;     } else {       this.options = {};     }     if (!this.options.params) {       this.options.params = {};     }   }    absorbOptions(options: AnimationOptions) {     const newParams = options.params;     if (newParams) {       const oldParams = this.options.params!;       Object.keys(newParams).forEach(prop => {         if (oldParams[prop] == null) {           oldParams[prop] = newParams[prop];         }       });     }   } }  export const VOID_VALUE = 'void'; export const DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);  export class AnimationTransitionNamespace {   public players: TransitionAnimationPlayer[] = [];    private _triggers = new Map<string, AnimationTrigger>();   private _queue: QueueInstruction[] = [];    private _elementListeners = new Map<any, TriggerListener[]>();    private _hostClassName: string;    constructor(       public id: string, public hostElement: any, private _engine: TransitionAnimationEngine) {     this._hostClassName = 'ng-tns-' + id;     addClass(hostElement, this._hostClassName);   }    listen(element: any, name: string, phase: string, callback: (event: any) => boolean): () => any {     if (!this._triggers.has(name)) {       throw missingTrigger(phase, name);     }      if (phase == null || phase.length == 0) {       throw missingEvent(name);     }      if (!isTriggerEventValid(phase)) {       throw unsupportedTriggerEvent(phase, name);     }      const listeners = getOrSetDefaultValue(this._elementListeners, element, []);     const data = {name, phase, callback};     listeners.push(data);      const triggersWithStates =         getOrSetDefaultValue(this._engine.statesByElement, element, new Map<string, StateValue>());     if (!triggersWithStates.has(name)) {       addClass(element, NG_TRIGGER_CLASSNAME);       addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);       triggersWithStates.set(name, DEFAULT_STATE_VALUE);     }      return () => {       // the event listener is removed AFTER the flush has occurred such       // that leave animations callbacks can fire (otherwise if the node       // is removed in between then the listeners would be deregistered)       this._engine.afterFlush(() => {         const index = listeners.indexOf(data);         if (index >= 0) {           listeners.splice(index, 1);         }          if (!this._triggers.has(name)) {           triggersWithStates.delete(name);         }       });     };   }    register(name: string, ast: AnimationTrigger): boolean {     if (this._triggers.has(name)) {       // throw       return false;     } else {       this._triggers.set(name, ast);       return true;     }   }    private _getTrigger(name: string) {     const trigger = this._triggers.get(name);     if (!trigger) {       throw unregisteredTrigger(name);     }     return trigger;   }    trigger(element: any, triggerName: string, value: any, defaultToFallback: boolean = true):       TransitionAnimationPlayer|undefined {     const trigger = this._getTrigger(triggerName);     const player = new TransitionAnimationPlayer(this.id, triggerName, element);      let triggersWithStates = this._engine.statesByElement.get(element);     if (!triggersWithStates) {       addClass(element, NG_TRIGGER_CLASSNAME);       addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);       this._engine.statesByElement.set(element, triggersWithStates = new Map<string, StateValue>());     }      let fromState = triggersWithStates.get(triggerName);     const toState = new StateValue(value, this.id);     const isObj = value && value.hasOwnProperty('value');     if (!isObj && fromState) {       toState.absorbOptions(fromState.options);     }      triggersWithStates.set(triggerName, toState);      if (!fromState) {       fromState = DEFAULT_STATE_VALUE;     }      const isRemoval = toState.value === VOID_VALUE;      // normally this isn't reached by here, however, if an object expression     // is passed in then it may be a new object each time. Comparing the value     // is important since that will stay the same despite there being a new object.     // The removal arc here is special cased because the same element is triggered     // twice in the event that it contains animations on the outer/inner portions     // of the host container     if (!isRemoval && fromState.value === toState.value) {       // this means that despite the value not changing, some inner params       // have changed which means that the animation final styles need to be applied       if (!objEquals(fromState.params, toState.params)) {         const errors: Error[] = [];         const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);         const toStyles = trigger.matchStyles(toState.value, toState.params, errors);         if (errors.length) {           this._engine.reportError(errors);         } else {           this._engine.afterFlush(() => {             eraseStyles(element, fromStyles);             setStyles(element, toStyles);           });         }       }       return;     }      const playersOnElement: TransitionAnimationPlayer[] =         getOrSetDefaultValue(this._engine.playersByElement, element, []);     playersOnElement.forEach(player => {       // only remove the player if it is queued on the EXACT same trigger/namespace       // we only also deal with queued players here because if the animation has       // started then we want to keep the player alive until the flush happens       // (which is where the previousPlayers are passed into the new player)       if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {         player.destroy();       }     });      let transition =         trigger.matchTransition(fromState.value, toState.value, element, toState.params);     let isFallbackTransition = false;     if (!transition) {       if (!defaultToFallback) return;       transition = trigger.fallbackTransition;       isFallbackTransition = true;     }      this._engine.totalQueuedPlayers++;     this._queue.push(         {element, triggerName, transition, fromState, toState, player, isFallbackTransition});      if (!isFallbackTransition) {       addClass(element, QUEUED_CLASSNAME);       player.onStart(() => {         removeClass(element, QUEUED_CLASSNAME);       });     }      player.onDone(() => {       let index = this.players.indexOf(player);       if (index >= 0) {         this.players.splice(index, 1);       }        const players = this._engine.playersByElement.get(element);       if (players) {         let index = players.indexOf(player);         if (index >= 0) {           players.splice(index, 1);         }       }     });      this.players.push(player);     playersOnElement.push(player);      return player;   }    deregister(name: string) {     this._triggers.delete(name);      this._engine.statesByElement.forEach(stateMap => stateMap.delete(name));      this._elementListeners.forEach((listeners, element) => {       this._elementListeners.set(element, listeners.filter(entry => {         return entry.name != name;       }));     });   }    clearElementCache(element: any) {     this._engine.statesByElement.delete(element);     this._elementListeners.delete(element);     const elementPlayers = this._engine.playersByElement.get(element);     if (elementPlayers) {       elementPlayers.forEach(player => player.destroy());       this._engine.playersByElement.delete(element);     }   }    private _signalRemovalForInnerTriggers(rootElement: any, context: any) {     const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);      // emulate a leave animation for all inner nodes within this node.     // If there are no animations found for any of the nodes then clear the cache     // for the element.     elements.forEach(elm => {       // this means that an inner remove() operation has already kicked off       // the animation on this element...       if (elm[REMOVAL_FLAG]) return;        const namespaces = this._engine.fetchNamespacesByElement(elm);       if (namespaces.size) {         namespaces.forEach(ns => ns.triggerLeaveAnimation(elm, context, false, true));       } else {         this.clearElementCache(elm);       }     });      // If the child elements were removed along with the parent, their animations might not     // have completed. Clear all the elements from the cache so we don't end up with a memory leak.     this._engine.afterFlushAnimationsDone(         () => elements.forEach(elm => this.clearElementCache(elm)));   }    triggerLeaveAnimation(       element: any, context: any, destroyAfterComplete?: boolean,       defaultToFallback?: boolean): boolean {     const triggerStates = this._engine.statesByElement.get(element);     const previousTriggersValues = new Map<string, string>();     if (triggerStates) {       const players: TransitionAnimationPlayer[] = [];       triggerStates.forEach((state, triggerName) => {         previousTriggersValues.set(triggerName, state.value);         // this check is here in the event that an element is removed         // twice (both on the host level and the component level)         if (this._triggers.has(triggerName)) {           const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);           if (player) {             players.push(player);           }         }       });        if (players.length) {         this._engine.markElementAsRemoved(this.id, element, true, context, previousTriggersValues);         if (destroyAfterComplete) {           optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));         }         return true;       }     }     return false;   }    prepareLeaveAnimationListeners(element: any) {     const listeners = this._elementListeners.get(element);     const elementStates = this._engine.statesByElement.get(element);      // if this statement fails then it means that the element was picked up     // by an earlier flush (or there are no listeners at all to track the leave).     if (listeners && elementStates) {       const visitedTriggers = new Set<string>();       listeners.forEach(listener => {         const triggerName = listener.name;         if (visitedTriggers.has(triggerName)) return;         visitedTriggers.add(triggerName);          const trigger = this._triggers.get(triggerName)!;         const transition = trigger.fallbackTransition;         const fromState = elementStates.get(triggerName) || DEFAULT_STATE_VALUE;         const toState = new StateValue(VOID_VALUE);         const player = new TransitionAnimationPlayer(this.id, triggerName, element);          this._engine.totalQueuedPlayers++;         this._queue.push({           element,           triggerName,           transition,           fromState,           toState,           player,           isFallbackTransition: true         });       });     }   }    removeNode(element: any, context: any): void {     const engine = this._engine;     if (element.childElementCount) {       this._signalRemovalForInnerTriggers(element, context);     }      // this means that a * => VOID animation was detected and kicked off     if (this.triggerLeaveAnimation(element, context, true)) return;      // find the player that is animating and make sure that the     // removal is delayed until that player has completed     let containsPotentialParentTransition = false;     if (engine.totalAnimations) {       const currentPlayers =           engine.players.length ? engine.playersByQueriedElement.get(element) : [];        // when this `if statement` does not continue forward it means that       // a previous animation query has selected the current element and       // is animating it. In this situation want to continue forwards and       // allow the element to be queued up for animation later.       if (currentPlayers && currentPlayers.length) {         containsPotentialParentTransition = true;       } else {         let parent = element;         while (parent = parent.parentNode) {           const triggers = engine.statesByElement.get(parent);           if (triggers) {             containsPotentialParentTransition = true;             break;           }         }       }     }      // at this stage we know that the element will either get removed     // during flush or will be picked up by a parent query. Either way     // we need to fire the listeners for this element when it DOES get     // removed (once the query parent animation is done or after flush)     this.prepareLeaveAnimationListeners(element);      // whether or not a parent has an animation we need to delay the deferral of the leave     // operation until we have more information (which we do after flush() has been called)     if (containsPotentialParentTransition) {       engine.markElementAsRemoved(this.id, element, false, context);     } else {       const removalFlag = element[REMOVAL_FLAG];       if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {         // we do this after the flush has occurred such         // that the callbacks can be fired         engine.afterFlush(() => this.clearElementCache(element));         engine.destroyInnerAnimations(element);         engine._onRemovalComplete(element, context);       }     }   }    insertNode(element: any, parent: any): void {     addClass(element, this._hostClassName);   }    drainQueuedTransitions(microtaskId: number): QueueInstruction[] {     const instructions: QueueInstruction[] = [];     this._queue.forEach(entry => {       const player = entry.player;       if (player.destroyed) return;        const element = entry.element;       const listeners = this._elementListeners.get(element);       if (listeners) {         listeners.forEach((listener: TriggerListener) => {           if (listener.name == entry.triggerName) {             const baseEvent = makeAnimationEvent(                 element, entry.triggerName, entry.fromState.value, entry.toState.value);             (baseEvent as any)['_data'] = microtaskId;             listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);           }         });       }        if (player.markedForDestroy) {         this._engine.afterFlush(() => {           // now we can destroy the element properly since the event listeners have           // been bound to the player           player.destroy();         });       } else {         instructions.push(entry);       }     });      this._queue = [];      return instructions.sort((a, b) => {       // if depCount == 0 them move to front       // otherwise if a contains b then move back       const d0 = a.transition.ast.depCount;       const d1 = b.transition.ast.depCount;       if (d0 == 0 || d1 == 0) {         return d0 - d1;       }       return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;     });   }    destroy(context: any) {     this.players.forEach(p => p.destroy());     this._signalRemovalForInnerTriggers(this.hostElement, context);   }    elementContainsData(element: any): boolean {     let containsData = false;     if (this._elementListeners.has(element)) containsData = true;     containsData =         (this._queue.find(entry => entry.element === element) ? true : false) || containsData;     return containsData;   } }  export interface QueuedTransition {   element: any;   instruction: AnimationTransitionInstruction;   player: TransitionAnimationPlayer; }  export class TransitionAnimationEngine {   public players: TransitionAnimationPlayer[] = [];   public newHostElements = new Map<any, AnimationTransitionNamespace>();   public playersByElement = new Map<any, TransitionAnimationPlayer[]>();   public playersByQueriedElement = new Map<any, TransitionAnimationPlayer[]>();   public statesByElement = new Map<any, Map<string, StateValue>>();   public disabledNodes = new Set<any>();    public totalAnimations = 0;   public totalQueuedPlayers = 0;    private _namespaceLookup: {[id: string]: AnimationTransitionNamespace} = {};   private _namespaceList: AnimationTransitionNamespace[] = [];   private _flushFns: (() => any)[] = [];   private _whenQuietFns: (() => any)[] = [];    public namespacesByHostElement = new Map<any, AnimationTransitionNamespace>();   public collectedEnterElements: any[] = [];   public collectedLeaveElements: any[] = [];    // this method is designed to be overridden by the code that uses this engine   public onRemovalComplete = (element: any, context: any) => {};    /** @internal */   _onRemovalComplete(element: any, context: any) {     this.onRemovalComplete(element, context);   }    constructor(       public bodyNode: any, public driver: AnimationDriver,       private _normalizer: AnimationStyleNormalizer) {}    get queuedPlayers(): TransitionAnimationPlayer[] {     const players: TransitionAnimationPlayer[] = [];     this._namespaceList.forEach(ns => {       ns.players.forEach(player => {         if (player.queued) {           players.push(player);         }       });     });     return players;   }    createNamespace(namespaceId: string, hostElement: any) {     const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);     if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {       this._balanceNamespaceList(ns, hostElement);     } else {       // defer this later until flush during when the host element has       // been inserted so that we know exactly where to place it in       // the namespace list       this.newHostElements.set(hostElement, ns);        // given that this host element is a part of the animation code, it       // may or may not be inserted by a parent node that is of an       // animation renderer type. If this happens then we can still have       // access to this item when we query for :enter nodes. If the parent       // is a renderer then the set data-structure will normalize the entry       this.collectEnterElement(hostElement);     }     return this._namespaceLookup[namespaceId] = ns;   }    private _balanceNamespaceList(ns: AnimationTransitionNamespace, hostElement: any) {     const namespaceList = this._namespaceList;     const namespacesByHostElement = this.namespacesByHostElement;     const limit = namespaceList.length - 1;     if (limit >= 0) {       let found = false;       // Find the closest ancestor with an existing namespace so we can then insert `ns` after it,       // establishing a top-down ordering of namespaces in `this._namespaceList`.       let ancestor = this.driver.getParentElement(hostElement);       while (ancestor) {         const ancestorNs = namespacesByHostElement.get(ancestor);         if (ancestorNs) {           // An animation namespace has been registered for this ancestor, so we insert `ns`           // right after it to establish top-down ordering of animation namespaces.           const index = namespaceList.indexOf(ancestorNs);           namespaceList.splice(index + 1, 0, ns);           found = true;           break;         }         ancestor = this.driver.getParentElement(ancestor);       }       if (!found) {         // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to         // ensure that any existing descendants are ordered after `ns`, retaining the desired         // top-down ordering.         namespaceList.unshift(ns);       }     } else {       namespaceList.push(ns);     }      namespacesByHostElement.set(hostElement, ns);     return ns;   }    register(namespaceId: string, hostElement: any) {     let ns = this._namespaceLookup[namespaceId];     if (!ns) {       ns = this.createNamespace(namespaceId, hostElement);     }     return ns;   }    registerTrigger(namespaceId: string, name: string, trigger: AnimationTrigger) {     let ns = this._namespaceLookup[namespaceId];     if (ns && ns.register(name, trigger)) {       this.totalAnimations++;     }   }    destroy(namespaceId: string, context: any) {     if (!namespaceId) return;      const ns = this._fetchNamespace(namespaceId);      this.afterFlush(() => {       this.namespacesByHostElement.delete(ns.hostElement);       delete this._namespaceLookup[namespaceId];       const index = this._namespaceList.indexOf(ns);       if (index >= 0) {         this._namespaceList.splice(index, 1);       }     });      this.afterFlushAnimationsDone(() => ns.destroy(context));   }    private _fetchNamespace(id: string) {     return this._namespaceLookup[id];   }    fetchNamespacesByElement(element: any): Set<AnimationTransitionNamespace> {     // normally there should only be one namespace per element, however     // if @triggers are placed on both the component element and then     // its host element (within the component code) then there will be     // two namespaces returned. We use a set here to simply deduplicate     // the namespaces in case (for the reason described above) there are multiple triggers     const namespaces = new Set<AnimationTransitionNamespace>();     const elementStates = this.statesByElement.get(element);     if (elementStates) {       for (let stateValue of elementStates.values()) {         if (stateValue.namespaceId) {           const ns = this._fetchNamespace(stateValue.namespaceId);           if (ns) {             namespaces.add(ns);           }         }       }     }     return namespaces;   }    trigger(namespaceId: string, element: any, name: string, value: any): boolean {     if (isElementNode(element)) {       const ns = this._fetchNamespace(namespaceId);       if (ns) {         ns.trigger(element, name, value);         return true;       }     }     return false;   }    insertNode(namespaceId: string, element: any, parent: any, insertBefore: boolean): void {     if (!isElementNode(element)) return;      // special case for when an element is removed and reinserted (move operation)     // when this occurs we do not want to use the element for deletion later     const details = element[REMOVAL_FLAG] as ElementAnimationState;     if (details && details.setForRemoval) {       details.setForRemoval = false;       details.setForMove = true;       const index = this.collectedLeaveElements.indexOf(element);       if (index >= 0) {         this.collectedLeaveElements.splice(index, 1);       }     }      // in the event that the namespaceId is blank then the caller     // code does not contain any animation code in it, but it is     // just being called so that the node is marked as being inserted     if (namespaceId) {       const ns = this._fetchNamespace(namespaceId);       // This if-statement is a workaround for router issue #21947.       // The router sometimes hits a race condition where while a route       // is being instantiated a new navigation arrives, triggering leave       // animation of DOM that has not been fully initialized, until this       // is resolved, we need to handle the scenario when DOM is not in a       // consistent state during the animation.       if (ns) {         ns.insertNode(element, parent);       }     }      // only *directives and host elements are inserted before     if (insertBefore) {       this.collectEnterElement(element);     }   }    collectEnterElement(element: any) {     this.collectedEnterElements.push(element);   }    markElementAsDisabled(element: any, value: boolean) {     if (value) {       if (!this.disabledNodes.has(element)) {         this.disabledNodes.add(element);         addClass(element, DISABLED_CLASSNAME);       }     } else if (this.disabledNodes.has(element)) {       this.disabledNodes.delete(element);       removeClass(element, DISABLED_CLASSNAME);     }   }    removeNode(namespaceId: string, element: any, isHostElement: boolean, context: any): void {     if (isElementNode(element)) {       const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;       if (ns) {         ns.removeNode(element, context);       } else {         this.markElementAsRemoved(namespaceId, element, false, context);       }        if (isHostElement) {         const hostNS = this.namespacesByHostElement.get(element);         if (hostNS && hostNS.id !== namespaceId) {           hostNS.removeNode(element, context);         }       }     } else {       this._onRemovalComplete(element, context);     }   }    markElementAsRemoved(       namespaceId: string, element: any, hasAnimation?: boolean, context?: any,       previousTriggersValues?: Map<string, string>) {     this.collectedLeaveElements.push(element);     element[REMOVAL_FLAG] = {       namespaceId,       setForRemoval: context,       hasAnimation,       removedBeforeQueried: false,       previousTriggersValues     };   }    listen(       namespaceId: string, element: any, name: string, phase: string,       callback: (event: any) => boolean): () => any {     if (isElementNode(element)) {       return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);     }     return () => {};   }    private _buildInstruction(       entry: QueueInstruction, subTimelines: ElementInstructionMap, enterClassName: string,       leaveClassName: string, skipBuildAst?: boolean) {     return entry.transition.build(         this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName,         leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);   }    destroyInnerAnimations(containerElement: any) {     let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);     elements.forEach(element => this.destroyActiveAnimationsForElement(element));      if (this.playersByQueriedElement.size == 0) return;      elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);     elements.forEach(element => this.finishActiveQueriedAnimationOnElement(element));   }    destroyActiveAnimationsForElement(element: any) {     const players = this.playersByElement.get(element);     if (players) {       players.forEach(player => {         // special case for when an element is set for destruction, but hasn't started.         // in this situation we want to delay the destruction until the flush occurs         // so that any event listeners attached to the player are triggered.         if (player.queued) {           player.markedForDestroy = true;         } else {           player.destroy();         }       });     }   }    finishActiveQueriedAnimationOnElement(element: any) {     const players = this.playersByQueriedElement.get(element);     if (players) {       players.forEach(player => player.finish());     }   }    whenRenderingDone(): Promise<any> {     return new Promise<void>(resolve => {       if (this.players.length) {         return optimizeGroupPlayer(this.players).onDone(() => resolve());       } else {         resolve();       }     });   }    processLeaveNode(element: any) {     const details = element[REMOVAL_FLAG] as ElementAnimationState;     if (details && details.setForRemoval) {       // this will prevent it from removing it twice       element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;       if (details.namespaceId) {         this.destroyInnerAnimations(element);         const ns = this._fetchNamespace(details.namespaceId);         if (ns) {           ns.clearElementCache(element);         }       }       this._onRemovalComplete(element, details.setForRemoval);     }      if (element.classList?.contains(DISABLED_CLASSNAME)) {       this.markElementAsDisabled(element, false);     }      this.driver.query(element, DISABLED_SELECTOR, true).forEach(node => {       this.markElementAsDisabled(node, false);     });   }    flush(microtaskId: number = -1) {     let players: AnimationPlayer[] = [];     if (this.newHostElements.size) {       this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));       this.newHostElements.clear();     }      if (this.totalAnimations && this.collectedEnterElements.length) {       for (let i = 0; i < this.collectedEnterElements.length; i++) {         const elm = this.collectedEnterElements[i];         addClass(elm, STAR_CLASSNAME);       }     }      if (this._namespaceList.length &&         (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {       const cleanupFns: Function[] = [];       try {         players = this._flushAnimations(cleanupFns, microtaskId);       } finally {         for (let i = 0; i < cleanupFns.length; i++) {           cleanupFns[i]();         }       }     } else {       for (let i = 0; i < this.collectedLeaveElements.length; i++) {         const element = this.collectedLeaveElements[i];         this.processLeaveNode(element);       }     }      this.totalQueuedPlayers = 0;     this.collectedEnterElements.length = 0;     this.collectedLeaveElements.length = 0;     this._flushFns.forEach(fn => fn());     this._flushFns = [];      if (this._whenQuietFns.length) {       // we move these over to a variable so that       // if any new callbacks are registered in another       // flush they do not populate the existing set       const quietFns = this._whenQuietFns;       this._whenQuietFns = [];        if (players.length) {         optimizeGroupPlayer(players).onDone(() => {           quietFns.forEach(fn => fn());         });       } else {         quietFns.forEach(fn => fn());       }     }   }    reportError(errors: Error[]) {     throw triggerTransitionsFailed(errors);   }    private _flushAnimations(cleanupFns: Function[], microtaskId: number):       TransitionAnimationPlayer[] {     const subTimelines = new ElementInstructionMap();     const skippedPlayers: TransitionAnimationPlayer[] = [];     const skippedPlayersMap = new Map<any, AnimationPlayer[]>();     const queuedInstructions: QueuedTransition[] = [];     const queriedElements = new Map<any, TransitionAnimationPlayer[]>();     const allPreStyleElements = new Map<any, Set<string>>();     const allPostStyleElements = new Map<any, Set<string>>();      const disabledElementsSet = new Set<any>();     this.disabledNodes.forEach(node => {       disabledElementsSet.add(node);       const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);       for (let i = 0; i < nodesThatAreDisabled.length; i++) {         disabledElementsSet.add(nodesThatAreDisabled[i]);       }     });      const bodyNode = this.bodyNode;     const allTriggerElements = Array.from(this.statesByElement.keys());     const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);      // this must occur before the instructions are built below such that     // the :enter queries match the elements (since the timeline queries     // are fired during instruction building).     const enterNodeMapIds = new Map<any, string>();     let i = 0;     enterNodeMap.forEach((nodes, root) => {       const className = ENTER_CLASSNAME + i++;       enterNodeMapIds.set(root, className);       nodes.forEach(node => addClass(node, className));     });      const allLeaveNodes: any[] = [];     const mergedLeaveNodes = new Set<any>();     const leaveNodesWithoutAnimations = new Set<any>();     for (let i = 0; i < this.collectedLeaveElements.length; i++) {       const element = this.collectedLeaveElements[i];       const details = element[REMOVAL_FLAG] as ElementAnimationState;       if (details && details.setForRemoval) {         allLeaveNodes.push(element);         mergedLeaveNodes.add(element);         if (details.hasAnimation) {           this.driver.query(element, STAR_SELECTOR, true).forEach(elm => mergedLeaveNodes.add(elm));         } else {           leaveNodesWithoutAnimations.add(element);         }       }     }      const leaveNodeMapIds = new Map<any, string>();     const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));     leaveNodeMap.forEach((nodes, root) => {       const className = LEAVE_CLASSNAME + i++;       leaveNodeMapIds.set(root, className);       nodes.forEach(node => addClass(node, className));     });      cleanupFns.push(() => {       enterNodeMap.forEach((nodes, root) => {         const className = enterNodeMapIds.get(root)!;         nodes.forEach(node => removeClass(node, className));       });        leaveNodeMap.forEach((nodes, root) => {         const className = leaveNodeMapIds.get(root)!;         nodes.forEach(node => removeClass(node, className));       });        allLeaveNodes.forEach(element => {         this.processLeaveNode(element);       });     });      const allPlayers: TransitionAnimationPlayer[] = [];     const erroneousTransitions: AnimationTransitionInstruction[] = [];     for (let i = this._namespaceList.length - 1; i >= 0; i--) {       const ns = this._namespaceList[i];       ns.drainQueuedTransitions(microtaskId).forEach(entry => {         const player = entry.player;         const element = entry.element;         allPlayers.push(player);          if (this.collectedEnterElements.length) {           const details = element[REMOVAL_FLAG] as ElementAnimationState;           // animations for move operations (elements being removed and reinserted,           // e.g. when the order of an *ngFor list changes) are currently not supported           if (details && details.setForMove) {             if (details.previousTriggersValues &&                 details.previousTriggersValues.has(entry.triggerName)) {               const previousValue = details.previousTriggersValues.get(entry.triggerName) as string;                // we need to restore the previous trigger value since the element has               // only been moved and hasn't actually left the DOM               const triggersWithStates = this.statesByElement.get(entry.element);               if (triggersWithStates && triggersWithStates.has(entry.triggerName)) {                 const state = triggersWithStates.get(entry.triggerName)!;                 state.value = previousValue;                 triggersWithStates.set(entry.triggerName, state);               }             }              player.destroy();             return;           }         }          const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);         const leaveClassName = leaveNodeMapIds.get(element)!;         const enterClassName = enterNodeMapIds.get(element)!;         const instruction = this._buildInstruction(             entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned)!;         if (instruction.errors && instruction.errors.length) {           erroneousTransitions.push(instruction);           return;         }          // even though the element may not be in the DOM, it may still         // be added at a later point (due to the mechanics of content         // projection and/or dynamic component insertion) therefore it's         // important to still style the element.         if (nodeIsOrphaned) {           player.onStart(() => eraseStyles(element, instruction.fromStyles));           player.onDestroy(() => setStyles(element, instruction.toStyles));           skippedPlayers.push(player);           return;         }          // if an unmatched transition is queued and ready to go         // then it SHOULD NOT render an animation and cancel the         // previously running animations.         if (entry.isFallbackTransition) {           player.onStart(() => eraseStyles(element, instruction.fromStyles));           player.onDestroy(() => setStyles(element, instruction.toStyles));           skippedPlayers.push(player);           return;         }          // this means that if a parent animation uses this animation as a sub-trigger         // then it will instruct the timeline builder not to add a player delay, but         // instead stretch the first keyframe gap until the animation starts. This is         // important in order to prevent extra initialization styles from being         // required by the user for the animation.         const timelines: AnimationTimelineInstruction[] = [];         instruction.timelines.forEach(tl => {           tl.stretchStartingKeyframe = true;           if (!this.disabledNodes.has(tl.element)) {             timelines.push(tl);           }         });         instruction.timelines = timelines;          subTimelines.append(element, instruction.timelines);          const tuple = {instruction, player, element};          queuedInstructions.push(tuple);          instruction.queriedElements.forEach(             element => getOrSetDefaultValue(queriedElements, element, []).push(player));          instruction.preStyleProps.forEach((stringMap, element) => {           if (stringMap.size) {             let setVal: Set<string> = allPreStyleElements.get(element)!;             if (!setVal) {               allPreStyleElements.set(element, setVal = new Set<string>());             }             stringMap.forEach((_, prop) => setVal.add(prop));           }         });          instruction.postStyleProps.forEach((stringMap, element) => {           let setVal: Set<string> = allPostStyleElements.get(element)!;           if (!setVal) {             allPostStyleElements.set(element, setVal = new Set<string>());           }           stringMap.forEach((_, prop) => setVal.add(prop));         });       });     }      if (erroneousTransitions.length) {       const errors: Error[] = [];       erroneousTransitions.forEach(instruction => {         errors.push(transitionFailed(instruction.triggerName, instruction.errors!));       });        allPlayers.forEach(player => player.destroy());       this.reportError(errors);     }      const allPreviousPlayersMap = new Map<any, TransitionAnimationPlayer[]>();     // this map tells us which element in the DOM tree is contained by     // which animation. Further down this map will get populated once     // the players are built and in doing so we can use it to efficiently     // figure out if a sub player is skipped due to a parent player having priority.     const animationElementMap = new Map<any, any>();     queuedInstructions.forEach(entry => {       const element = entry.element;       if (subTimelines.has(element)) {         animationElementMap.set(element, element);         this._beforeAnimationBuild(             entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);       }     });      skippedPlayers.forEach(player => {       const element = player.element;       const previousPlayers =           this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);       previousPlayers.forEach(prevPlayer => {         getOrSetDefaultValue(allPreviousPlayersMap, element, []).push(prevPlayer);         prevPlayer.destroy();       });     });      // this is a special case for nodes that will be removed either by     // having their own leave animations or by being queried in a container     // that will be removed once a parent animation is complete. The idea     // here is that * styles must be identical to ! styles because of     // backwards compatibility (* is also filled in by default in many places).     // Otherwise * styles will return an empty value or \"auto\" since the element     // passed to getComputedStyle will not be visible (since * === destination)     const replaceNodes = allLeaveNodes.filter(node => {       return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);     });      // POST STAGE: fill the * styles     const postStylesMap = new Map<any, ɵStyleDataMap>();     const allLeaveQueriedNodes = cloakAndComputeStyles(         postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);      allLeaveQueriedNodes.forEach(node => {       if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {         replaceNodes.push(node);       }     });      // PRE STAGE: fill the ! styles     const preStylesMap = new Map<any, ɵStyleDataMap>();     enterNodeMap.forEach((nodes, root) => {       cloakAndComputeStyles(           preStylesMap, this.driver, new Set(nodes), allPreStyleElements, PRE_STYLE);     });      replaceNodes.forEach(node => {       const post = postStylesMap.get(node);       const pre = preStylesMap.get(node);       postStylesMap.set(           node,           new Map([...Array.from(post?.entries() ?? []), ...Array.from(pre?.entries() ?? [])]));     });      const rootPlayers: TransitionAnimationPlayer[] = [];     const subPlayers: TransitionAnimationPlayer[] = [];     const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};     queuedInstructions.forEach(entry => {       const {element, player, instruction} = entry;       // this means that it was never consumed by a parent animation which       // means that it is independent and therefore should be set for animation       if (subTimelines.has(element)) {         if (disabledElementsSet.has(element)) {           player.onDestroy(() => setStyles(element, instruction.toStyles));           player.disabled = true;           player.overrideTotalTime(instruction.totalTime);           skippedPlayers.push(player);           return;         }          // this will flow up the DOM and query the map to figure out         // if a parent animation has priority over it. In the situation         // that a parent is detected then it will cancel the loop. If         // nothing is detected, or it takes a few hops to find a parent,         // then it will fill in the missing nodes and signal them as having         // a detected parent (or a NO_PARENT value via a special constant).         let parentWithAnimation: any = NO_PARENT_ANIMATION_ELEMENT_DETECTED;         if (animationElementMap.size > 1) {           let elm = element;           const parentsToAdd: any[] = [];           while (elm = elm.parentNode) {             const detectedParent = animationElementMap.get(elm);             if (detectedParent) {               parentWithAnimation = detectedParent;               break;             }             parentsToAdd.push(elm);           }           parentsToAdd.forEach(parent => animationElementMap.set(parent, parentWithAnimation));         }          const innerPlayer = this._buildAnimation(             player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap,             postStylesMap);          player.setRealPlayer(innerPlayer);          if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {           rootPlayers.push(player);         } else {           const parentPlayers = this.playersByElement.get(parentWithAnimation);           if (parentPlayers && parentPlayers.length) {             player.parentPlayer = optimizeGroupPlayer(parentPlayers);           }           skippedPlayers.push(player);         }       } else {         eraseStyles(element, instruction.fromStyles);         player.onDestroy(() => setStyles(element, instruction.toStyles));         // there still might be a ancestor player animating this         // element therefore we will still add it as a sub player         // even if its animation may be disabled         subPlayers.push(player);         if (disabledElementsSet.has(element)) {           skippedPlayers.push(player);         }       }     });      // find all of the sub players' corresponding inner animation players     subPlayers.forEach(player => {       // even if no players are found for a sub animation it       // will still complete itself after the next tick since it's Noop       const playersForElement = skippedPlayersMap.get(player.element);       if (playersForElement && playersForElement.length) {         const innerPlayer = optimizeGroupPlayer(playersForElement);         player.setRealPlayer(innerPlayer);       }     });      // the reason why we don't actually play the animation is     // because all that a skipped player is designed to do is to     // fire the start/done transition callback events     skippedPlayers.forEach(player => {       if (player.parentPlayer) {         player.syncPlayerEvents(player.parentPlayer);       } else {         player.destroy();       }     });      // run through all of the queued removals and see if they     // were picked up by a query. If not then perform the removal     // operation right away unless a parent animation is ongoing.     for (let i = 0; i < allLeaveNodes.length; i++) {       const element = allLeaveNodes[i];       const details = element[REMOVAL_FLAG] as ElementAnimationState;       removeClass(element, LEAVE_CLASSNAME);        // this means the element has a removal animation that is being       // taken care of and therefore the inner elements will hang around       // until that animation is over (or the parent queried animation)       if (details && details.hasAnimation) continue;        let players: TransitionAnimationPlayer[] = [];        // if this element is queried or if it contains queried children       // then we want for the element not to be removed from the page       // until the queried animations have finished       if (queriedElements.size) {         let queriedPlayerResults = queriedElements.get(element);         if (queriedPlayerResults && queriedPlayerResults.length) {           players.push(...queriedPlayerResults);         }          let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);         for (let j = 0; j < queriedInnerElements.length; j++) {           let queriedPlayers = queriedElements.get(queriedInnerElements[j]);           if (queriedPlayers && queriedPlayers.length) {             players.push(...queriedPlayers);           }         }       }        const activePlayers = players.filter(p => !p.destroyed);       if (activePlayers.length) {         removeNodesAfterAnimationDone(this, element, activePlayers);       } else {         this.processLeaveNode(element);       }     }      // this is required so the cleanup method doesn't remove them     allLeaveNodes.length = 0;      rootPlayers.forEach(player => {       this.players.push(player);       player.onDone(() => {         player.destroy();          const index = this.players.indexOf(player);         this.players.splice(index, 1);       });       player.play();     });      return rootPlayers;   }    elementContainsData(namespaceId: string, element: any) {     let containsData = false;     const details = element[REMOVAL_FLAG] as ElementAnimationState;     if (details && details.setForRemoval) containsData = true;     if (this.playersByElement.has(element)) containsData = true;     if (this.playersByQueriedElement.has(element)) containsData = true;     if (this.statesByElement.has(element)) containsData = true;     return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;   }    afterFlush(callback: () => any) {     this._flushFns.push(callback);   }    afterFlushAnimationsDone(callback: () => any) {     this._whenQuietFns.push(callback);   }    private _getPreviousPlayers(       element: string, isQueriedElement: boolean, namespaceId?: string, triggerName?: string,       toStateValue?: any): TransitionAnimationPlayer[] {     let players: TransitionAnimationPlayer[] = [];     if (isQueriedElement) {       const queriedElementPlayers = this.playersByQueriedElement.get(element);       if (queriedElementPlayers) {         players = queriedElementPlayers;       }     } else {       const elementPlayers = this.playersByElement.get(element);       if (elementPlayers) {         const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;         elementPlayers.forEach(player => {           if (player.queued) return;           if (!isRemovalAnimation && player.triggerName != triggerName) return;           players.push(player);         });       }     }     if (namespaceId || triggerName) {       players = players.filter(player => {         if (namespaceId && namespaceId != player.namespaceId) return false;         if (triggerName && triggerName != player.triggerName) return false;         return true;       });     }     return players;   }    private _beforeAnimationBuild(       namespaceId: string, instruction: AnimationTransitionInstruction,       allPreviousPlayersMap: Map<any, TransitionAnimationPlayer[]>) {     const triggerName = instruction.triggerName;     const rootElement = instruction.element;      // when a removal animation occurs, ALL previous players are collected     // and destroyed (even if they are outside of the current namespace)     const targetNameSpaceId: string|undefined =         instruction.isRemovalTransition ? undefined : namespaceId;     const targetTriggerName: string|undefined =         instruction.isRemovalTransition ? undefined : triggerName;      for (const timelineInstruction of instruction.timelines) {       const element = timelineInstruction.element;       const isQueriedElement = element !== rootElement;       const players = getOrSetDefaultValue(allPreviousPlayersMap, element, []);       const previousPlayers = this._getPreviousPlayers(           element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);       previousPlayers.forEach(player => {         const realPlayer = (player as TransitionAnimationPlayer).getRealPlayer() as any;         if (realPlayer.beforeDestroy) {           realPlayer.beforeDestroy();         }         player.destroy();         players.push(player);       });     }      // this needs to be done so that the PRE/POST styles can be     // computed properly without interfering with the previous animation     eraseStyles(rootElement, instruction.fromStyles);   }    private _buildAnimation(       namespaceId: string, instruction: AnimationTransitionInstruction,       allPreviousPlayersMap: Map<any, TransitionAnimationPlayer[]>,       skippedPlayersMap: Map<any, AnimationPlayer[]>, preStylesMap: Map<any, ɵStyleDataMap>,       postStylesMap: Map<any, ɵStyleDataMap>): AnimationPlayer {     const triggerName = instruction.triggerName;     const rootElement = instruction.element;      // we first run this so that the previous animation player     // data can be passed into the successive animation players     const allQueriedPlayers: TransitionAnimationPlayer[] = [];     const allConsumedElements = new Set<any>();     const allSubElements = new Set<any>();     const allNewPlayers = instruction.timelines.map(timelineInstruction => {       const element = timelineInstruction.element;       allConsumedElements.add(element);        // FIXME (matsko): make sure to-be-removed animations are removed properly       const details = element[REMOVAL_FLAG];       if (details && details.removedBeforeQueried)         return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);       const isQueriedElement = element !== rootElement;       const previousPlayers =           flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY)                                   .map(p => p.getRealPlayer()))               .filter(p => {                 // the `element` is not apart of the AnimationPlayer definition, but                 // Mock/WebAnimations                 // use the element within their implementation. This will be added in Angular5 to                 // AnimationPlayer                 const pp = p as any;                 return pp.element ? pp.element === element : false;               });        const preStyles = preStylesMap.get(element);       const postStyles = postStylesMap.get(element);        const keyframes = normalizeKeyframes(           this.driver, this._normalizer, element, timelineInstruction.keyframes, preStyles,           postStyles);       const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);        // this means that this particular player belongs to a sub trigger. It is       // important that we match this player up with the corresponding (@trigger.listener)       if (timelineInstruction.subTimeline && skippedPlayersMap) {         allSubElements.add(element);       }        if (isQueriedElement) {         const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);         wrappedPlayer.setRealPlayer(player);         allQueriedPlayers.push(wrappedPlayer);       }        return player;     });      allQueriedPlayers.forEach(player => {       getOrSetDefaultValue(this.playersByQueriedElement, player.element, []).push(player);       player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));     });      allConsumedElements.forEach(element => addClass(element, NG_ANIMATING_CLASSNAME));     const player = optimizeGroupPlayer(allNewPlayers);     player.onDestroy(() => {       allConsumedElements.forEach(element => removeClass(element, NG_ANIMATING_CLASSNAME));       setStyles(rootElement, instruction.toStyles);     });      // this basically makes all of the callbacks for sub element animations     // be dependent on the upper players for when they finish     allSubElements.forEach(element => {       getOrSetDefaultValue(skippedPlayersMap, element, []).push(player);     });      return player;   }    private _buildPlayer(       instruction: AnimationTimelineInstruction, keyframes: Array<ɵStyleDataMap>,       previousPlayers: AnimationPlayer[]): AnimationPlayer {     if (keyframes.length > 0) {       return this.driver.animate(           instruction.element, keyframes, instruction.duration, instruction.delay,           instruction.easing, previousPlayers);     }      // special case for when an empty transition|definition is provided     // ... there is no point in rendering an empty animation     return new NoopAnimationPlayer(instruction.duration, instruction.delay);   } }  export class TransitionAnimationPlayer implements AnimationPlayer {   private _player: AnimationPlayer = new NoopAnimationPlayer();   private _containsRealPlayer = false;    private _queuedCallbacks = new Map<string, ((event: any) => any)[]>();   public readonly destroyed = false;   // TODO(issue/24571): remove '!'.   public parentPlayer!: AnimationPlayer;    public markedForDestroy: boolean = false;   public disabled = false;    readonly queued: boolean = true;   public readonly totalTime: number = 0;    constructor(public namespaceId: string, public triggerName: string, public element: any) {}    setRealPlayer(player: AnimationPlayer) {     if (this._containsRealPlayer) return;      this._player = player;     this._queuedCallbacks.forEach((callbacks, phase) => {       callbacks.forEach(callback => listenOnPlayer(player, phase, undefined, callback));     });      this._queuedCallbacks.clear();     this._containsRealPlayer = true;     this.overrideTotalTime(player.totalTime);     (this as {queued: boolean}).queued = false;   }    getRealPlayer() {     return this._player;   }    overrideTotalTime(totalTime: number) {     (this as any).totalTime = totalTime;   }    syncPlayerEvents(player: AnimationPlayer) {     const p = this._player as any;     if (p.triggerCallback) {       player.onStart(() => p.triggerCallback!('start'));     }     player.onDone(() => this.finish());     player.onDestroy(() => this.destroy());   }    private _queueEvent(name: string, callback: (event: any) => any): void {     getOrSetDefaultValue(this._queuedCallbacks, name, []).push(callback);   }    onDone(fn: () => void): void {     if (this.queued) {       this._queueEvent('done', fn);     }     this._player.onDone(fn);   }    onStart(fn: () => void): void {     if (this.queued) {       this._queueEvent('start', fn);     }     this._player.onStart(fn);   }    onDestroy(fn: () => void): void {     if (this.queued) {       this._queueEvent('destroy', fn);     }     this._player.onDestroy(fn);   }    init(): void {     this._player.init();   }    hasStarted(): boolean {     return this.queued ? false : this._player.hasStarted();   }    play(): void {     !this.queued && this._player.play();   }    pause(): void {     !this.queued && this._player.pause();   }    restart(): void {     !this.queued && this._player.restart();   }    finish(): void {     this._player.finish();   }    destroy(): void {     (this as {destroyed: boolean}).destroyed = true;     this._player.destroy();   }    reset(): void {     !this.queued && this._player.reset();   }    setPosition(p: any): void {     if (!this.queued) {       this._player.setPosition(p);     }   }    getPosition(): number {     return this.queued ? 0 : this._player.getPosition();   }    /** @internal */   triggerCallback(phaseName: string): void {     const p = this._player as any;     if (p.triggerCallback) {       p.triggerCallback(phaseName);     }   } }  function deleteOrUnsetInMap<T, V>(map: Map<T, V[]>, key: T, value: V) {   let currentValues = map.get(key);   if (currentValues) {     if (currentValues.length) {       const index = currentValues.indexOf(value);       currentValues.splice(index, 1);     }     if (currentValues.length == 0) {       map.delete(key);     }   }   return currentValues; }  function normalizeTriggerValue(value: any): any {   // we use `!= null` here because it's the most simple   // way to test against a \"falsy\" value without mixing   // in empty strings or a zero value. DO NOT OPTIMIZE.   return value != null ? value : null; }  function isElementNode(node: any) {   return node && node['nodeType'] === 1; }  function isTriggerEventValid(eventName: string): boolean {   return eventName == 'start' || eventName == 'done'; }  function cloakElement(element: any, value?: string) {   const oldValue = element.style.display;   element.style.display = value != null ? value : 'none';   return oldValue; }  function cloakAndComputeStyles(     valuesMap: Map<any, ɵStyleDataMap>, driver: AnimationDriver, elements: Set<any>,     elementPropsMap: Map<any, Set<string>>, defaultStyle: string): any[] {   const cloakVals: string[] = [];   elements.forEach(element => cloakVals.push(cloakElement(element)));    const failedElements: any[] = [];    elementPropsMap.forEach((props: Set<string>, element: any) => {     const styles: ɵStyleDataMap = new Map();     props.forEach(prop => {       const value = driver.computeStyle(element, prop, defaultStyle);       styles.set(prop, value);        // there is no easy way to detect this because a sub element could be removed       // by a parent animation element being detached.       if (!value || value.length == 0) {         element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;         failedElements.push(element);       }     });     valuesMap.set(element, styles);   });    // we use a index variable here since Set.forEach(a, i) does not return   // an index value for the closure (but instead just the value)   let i = 0;   elements.forEach(element => cloakElement(element, cloakVals[i++]));    return failedElements; }  /* Since the Angular renderer code will return a collection of inserted nodes in all areas of a DOM tree, it's up to this algorithm to figure out which nodes are roots for each animation @trigger.  By placing each inserted node into a Set and traversing upwards, it is possible to find the @trigger elements and well any direct *star insertion nodes, if a @trigger root is found then the enter element is placed into the Map[@trigger] spot.  */ function buildRootMap(roots: any[], nodes: any[]): Map<any, any[]> {   const rootMap = new Map<any, any[]>();   roots.forEach(root => rootMap.set(root, []));    if (nodes.length == 0) return rootMap;    const NULL_NODE = 1;   const nodeSet = new Set(nodes);   const localRootMap = new Map<any, any>();    function getRoot(node: any): any {     if (!node) return NULL_NODE;      let root = localRootMap.get(node);     if (root) return root;      const parent = node.parentNode;     if (rootMap.has(parent)) {  // ngIf inside @trigger       root = parent;     } else if (nodeSet.has(parent)) {  // ngIf inside ngIf       root = NULL_NODE;     } else {  // recurse upwards       root = getRoot(parent);     }      localRootMap.set(node, root);     return root;   }    nodes.forEach(node => {     const root = getRoot(node);     if (root !== NULL_NODE) {       rootMap.get(root)!.push(node);     }   });    return rootMap; }  function addClass(element: any, className: string) {   element.classList?.add(className); }  function removeClass(element: any, className: string) {   element.classList?.remove(className); }  function removeNodesAfterAnimationDone(     engine: TransitionAnimationEngine, element: any, players: AnimationPlayer[]) {   optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element)); }  function flattenGroupPlayers(players: AnimationPlayer[]): AnimationPlayer[] {   const finalPlayers: AnimationPlayer[] = [];   _flattenGroupPlayersRecur(players, finalPlayers);   return finalPlayers; }  function _flattenGroupPlayersRecur(players: AnimationPlayer[], finalPlayers: AnimationPlayer[]) {   for (let i = 0; i < players.length; i++) {     const player = players[i];     if (player instanceof AnimationGroupPlayer) {       _flattenGroupPlayersRecur(player.players, finalPlayers);     } else {       finalPlayers.push(player);     }   } }  function objEquals(a: {[key: string]: any}, b: {[key: string]: any}): boolean {   const k1 = Object.keys(a);   const k2 = Object.keys(b);   if (k1.length != k2.length) return false;   for (let i = 0; i < k1.length; i++) {     const prop = k1[i];     if (!b.hasOwnProperty(prop) || a[prop] !== b[prop]) return false;   }   return true; }  function replacePostStylesAsPre(     element: any, allPreStyleElements: Map<any, Set<string>>,     allPostStyleElements: Map<any, Set<string>>): boolean {   const postEntry = allPostStyleElements.get(element);   if (!postEntry) return false;    let preEntry = allPreStyleElements.get(element);   if (preEntry) {     postEntry.forEach(data => preEntry!.add(data));   } else {     allPreStyleElements.set(element, postEntry);   }    allPostStyleElements.delete(element);   return true; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationPlayer, AnimationTriggerMetadata} from '@angular/animations';  import {TriggerAst} from '../dsl/animation_ast'; import {buildAnimationAst} from '../dsl/animation_ast_builder'; import {AnimationTrigger, buildTrigger} from '../dsl/animation_trigger'; import {AnimationStyleNormalizer} from '../dsl/style_normalization/animation_style_normalizer'; import {triggerBuildFailed} from '../error_helpers'; import {warnTriggerBuild} from '../warning_helpers';  import {AnimationDriver} from './animation_driver'; import {parseTimelineCommand} from './shared'; import {TimelineAnimationEngine} from './timeline_animation_engine'; import {TransitionAnimationEngine} from './transition_animation_engine';  export class AnimationEngine {   private _transitionEngine: TransitionAnimationEngine;   private _timelineEngine: TimelineAnimationEngine;    private _triggerCache: {[key: string]: AnimationTrigger} = {};    // this method is designed to be overridden by the code that uses this engine   public onRemovalComplete = (element: any, context: any) => {};    constructor(       private bodyNode: any, private _driver: AnimationDriver,       private _normalizer: AnimationStyleNormalizer) {     this._transitionEngine = new TransitionAnimationEngine(bodyNode, _driver, _normalizer);     this._timelineEngine = new TimelineAnimationEngine(bodyNode, _driver, _normalizer);      this._transitionEngine.onRemovalComplete = (element: any, context: any) =>         this.onRemovalComplete(element, context);   }    registerTrigger(       componentId: string, namespaceId: string, hostElement: any, name: string,       metadata: AnimationTriggerMetadata): void {     const cacheKey = componentId + '-' + name;     let trigger = this._triggerCache[cacheKey];     if (!trigger) {       const errors: Error[] = [];       const warnings: string[] = [];       const ast = buildAnimationAst(                       this._driver, metadata as AnimationMetadata, errors, warnings) as TriggerAst;       if (errors.length) {         throw triggerBuildFailed(name, errors);       }       if (warnings.length) {         warnTriggerBuild(name, warnings);       }       trigger = buildTrigger(name, ast, this._normalizer);       this._triggerCache[cacheKey] = trigger;     }     this._transitionEngine.registerTrigger(namespaceId, name, trigger);   }    register(namespaceId: string, hostElement: any) {     this._transitionEngine.register(namespaceId, hostElement);   }    destroy(namespaceId: string, context: any) {     this._transitionEngine.destroy(namespaceId, context);   }    onInsert(namespaceId: string, element: any, parent: any, insertBefore: boolean): void {     this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);   }    onRemove(namespaceId: string, element: any, context: any, isHostElement?: boolean): void {     this._transitionEngine.removeNode(namespaceId, element, isHostElement || false, context);   }    disableAnimations(element: any, disable: boolean) {     this._transitionEngine.markElementAsDisabled(element, disable);   }    process(namespaceId: string, element: any, property: string, value: any) {     if (property.charAt(0) == '@') {       const [id, action] = parseTimelineCommand(property);       const args = value as any[];       this._timelineEngine.command(id, element, action, args);     } else {       this._transitionEngine.trigger(namespaceId, element, property, value);     }   }    listen(       namespaceId: string, element: any, eventName: string, eventPhase: string,       callback: (event: any) => any): () => any {     // @@listen     if (eventName.charAt(0) == '@') {       const [id, action] = parseTimelineCommand(eventName);       return this._timelineEngine.listen(id, element, action, callback);     }     return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);   }    flush(microtaskId: number = -1): void {     this._transitionEngine.flush(microtaskId);   }    get players(): AnimationPlayer[] {     return (this._transitionEngine.players as AnimationPlayer[])         .concat(this._timelineEngine.players as AnimationPlayer[]);   }    whenRenderingDone(): Promise<any> {     return this._transitionEngine.whenRenderingDone();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ɵStyleDataMap} from '@angular/animations';  import {eraseStyles, setStyles} from '../util';  /**  * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are  * detected.  *  * In CSS there exist properties that cannot be animated within a keyframe animation  * (whether it be via CSS keyframes or web-animations) and the animation implementation  * will ignore them. This function is designed to detect those special cased styles and  * return a container that will be executed at the start and end of the animation.  *  * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`  */ export function packageNonAnimatableStyles(     element: any, styles: ɵStyleDataMap|Array<ɵStyleDataMap>): SpecialCasedStyles|null {   let startStyles: ɵStyleDataMap|null = null;   let endStyles: ɵStyleDataMap|null = null;   if (Array.isArray(styles) && styles.length) {     startStyles = filterNonAnimatableStyles(styles[0]);     if (styles.length > 1) {       endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);     }   } else if (styles instanceof Map) {     startStyles = filterNonAnimatableStyles(styles);   }    return (startStyles || endStyles) ? new SpecialCasedStyles(element, startStyles, endStyles) :                                       null; }  /**  * Designed to be executed during a keyframe-based animation to apply any special-cased styles.  *  * When started (when the `start()` method is run) then the provided `startStyles`  * will be applied. When finished (when the `finish()` method is called) the  * `endStyles` will be applied as well any any starting styles. Finally when  * `destroy()` is called then all styles will be removed.  */ export class SpecialCasedStyles {   static initialStylesByElement = (/* @__PURE__ */ new WeakMap<any, ɵStyleDataMap>());    private _state = SpecialCasedStylesState.Pending;   private _initialStyles!: ɵStyleDataMap;    constructor(       private _element: any, private _startStyles: ɵStyleDataMap|null,       private _endStyles: ɵStyleDataMap|null) {     let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);     if (!initialStyles) {       SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = new Map());     }     this._initialStyles = initialStyles;   }    start() {     if (this._state < SpecialCasedStylesState.Started) {       if (this._startStyles) {         setStyles(this._element, this._startStyles, this._initialStyles);       }       this._state = SpecialCasedStylesState.Started;     }   }    finish() {     this.start();     if (this._state < SpecialCasedStylesState.Finished) {       setStyles(this._element, this._initialStyles);       if (this._endStyles) {         setStyles(this._element, this._endStyles);         this._endStyles = null;       }       this._state = SpecialCasedStylesState.Started;     }   }    destroy() {     this.finish();     if (this._state < SpecialCasedStylesState.Destroyed) {       SpecialCasedStyles.initialStylesByElement.delete(this._element);       if (this._startStyles) {         eraseStyles(this._element, this._startStyles);         this._endStyles = null;       }       if (this._endStyles) {         eraseStyles(this._element, this._endStyles);         this._endStyles = null;       }       setStyles(this._element, this._initialStyles);       this._state = SpecialCasedStylesState.Destroyed;     }   } }  /**  * An enum of states reflective of what the status of `SpecialCasedStyles` is.  *  * Depending on how `SpecialCasedStyles` is interacted with, the start and end  * styles may not be applied in the same way. This enum ensures that if and when  * the ending styles are applied then the starting styles are applied. It is  * also used to reflect what the current status of the special cased styles are  * which helps prevent the starting/ending styles not be applied twice. It is  * also used to cleanup the styles once `SpecialCasedStyles` is destroyed.  */ const enum SpecialCasedStylesState {   Pending = 0,   Started = 1,   Finished = 2,   Destroyed = 3, }  function filterNonAnimatableStyles(styles: ɵStyleDataMap): ɵStyleDataMap|null {   let result: ɵStyleDataMap|null = null;   styles.forEach((val, prop) => {     if (isNonAnimatableStyle(prop)) {       result = result || new Map();       result.set(prop, val);     }   });   return result; }  function isNonAnimatableStyle(prop: string) {   return prop === 'display' || prop === 'position'; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, ɵStyleDataMap} from '@angular/animations';  import {computeStyle} from '../../util'; import {SpecialCasedStyles} from '../special_cased_styles';  import {DOMAnimation} from './dom_animation';  export class WebAnimationsPlayer implements AnimationPlayer {   private _onDoneFns: Function[] = [];   private _onStartFns: Function[] = [];   private _onDestroyFns: Function[] = [];   private _duration: number;   private _delay: number;   private _initialized = false;   private _finished = false;   private _started = false;   private _destroyed = false;   private _finalKeyframe?: ɵStyleDataMap;    // the following original fns are persistent copies of the _onStartFns and _onDoneFns   // and are used to reset the fns to their original values upon reset()   // (since the _onStartFns and _onDoneFns get deleted after they are called)   private _originalOnDoneFns: Function[] = [];   private _originalOnStartFns: Function[] = [];    // TODO(issue/24571): remove '!'.   public readonly domPlayer!: DOMAnimation;   public time = 0;    public parentPlayer: AnimationPlayer|null = null;   public currentSnapshot: ɵStyleDataMap = new Map();    constructor(       public element: any, public keyframes: Array<ɵStyleDataMap>,       public options: {[key: string]: string|number},       private _specialStyles?: SpecialCasedStyles|null) {     this._duration = <number>options['duration'];     this._delay = <number>options['delay'] || 0;     this.time = this._duration + this._delay;   }    private _onFinish() {     if (!this._finished) {       this._finished = true;       this._onDoneFns.forEach(fn => fn());       this._onDoneFns = [];     }   }    init(): void {     this._buildPlayer();     this._preparePlayerBeforeStart();   }    private _buildPlayer(): void {     if (this._initialized) return;     this._initialized = true;      const keyframes = this.keyframes;     (this as {domPlayer: DOMAnimation}).domPlayer =         this._triggerWebAnimation(this.element, keyframes, this.options);     this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : new Map();     this.domPlayer.addEventListener('finish', () => this._onFinish());   }    private _preparePlayerBeforeStart() {     // this is required so that the player doesn't start to animate right away     if (this._delay) {       this._resetDomPlayerState();     } else {       this.domPlayer.pause();     }   }    private _convertKeyframesToObject(keyframes: Array<ɵStyleDataMap>): any[] {     const kfs: any[] = [];     keyframes.forEach(frame => {       kfs.push(Object.fromEntries(frame));     });     return kfs;   }    /** @internal */   _triggerWebAnimation(element: any, keyframes: Array<ɵStyleDataMap>, options: any): DOMAnimation {     // jscompiler doesn't seem to know animate is a native property because it's not fully     // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]     return element['animate'](this._convertKeyframesToObject(keyframes), options) as DOMAnimation;   }    onStart(fn: () => void): void {     this._originalOnStartFns.push(fn);     this._onStartFns.push(fn);   }    onDone(fn: () => void): void {     this._originalOnDoneFns.push(fn);     this._onDoneFns.push(fn);   }    onDestroy(fn: () => void): void {     this._onDestroyFns.push(fn);   }    play(): void {     this._buildPlayer();     if (!this.hasStarted()) {       this._onStartFns.forEach(fn => fn());       this._onStartFns = [];       this._started = true;       if (this._specialStyles) {         this._specialStyles.start();       }     }     this.domPlayer.play();   }    pause(): void {     this.init();     this.domPlayer.pause();   }    finish(): void {     this.init();     if (this._specialStyles) {       this._specialStyles.finish();     }     this._onFinish();     this.domPlayer.finish();   }    reset(): void {     this._resetDomPlayerState();     this._destroyed = false;     this._finished = false;     this._started = false;     this._onStartFns = this._originalOnStartFns;     this._onDoneFns = this._originalOnDoneFns;   }    private _resetDomPlayerState() {     if (this.domPlayer) {       this.domPlayer.cancel();     }   }    restart(): void {     this.reset();     this.play();   }    hasStarted(): boolean {     return this._started;   }    destroy(): void {     if (!this._destroyed) {       this._destroyed = true;       this._resetDomPlayerState();       this._onFinish();       if (this._specialStyles) {         this._specialStyles.destroy();       }       this._onDestroyFns.forEach(fn => fn());       this._onDestroyFns = [];     }   }    setPosition(p: number): void {     if (this.domPlayer === undefined) {       this.init();     }     this.domPlayer.currentTime = p * this.time;   }    getPosition(): number {     return this.domPlayer.currentTime / this.time;   }    get totalTime(): number {     return this._delay + this._duration;   }    beforeDestroy() {     const styles: ɵStyleDataMap = new Map();     if (this.hasStarted()) {       // note: this code is invoked only when the `play` function was called prior to this       // (thus `hasStarted` returns true), this implies that the code that initializes       // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here       const finalKeyframe = this._finalKeyframe!;       finalKeyframe.forEach((val, prop) => {         if (prop !== 'offset') {           styles.set(prop, this._finished ? val : computeStyle(this.element, prop));         }       });     }      this.currentSnapshot = styles;   }    /** @internal */   triggerCallback(phaseName: string): void {     const methods = phaseName === 'start' ? this._onStartFns : this._onDoneFns;     methods.forEach(fn => fn());     methods.length = 0;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, ɵStyleDataMap} from '@angular/animations';  import {allowPreviousPlayerStylesMerge, balancePreviousStylesIntoKeyframes, camelCaseToDashCase, copyStyles, normalizeKeyframes} from '../../util'; import {AnimationDriver} from '../animation_driver'; import {containsElement, getParentElement, invokeQuery, validateStyleProperty, validateWebAnimatableStyleProperty} from '../shared'; import {packageNonAnimatableStyles} from '../special_cased_styles';  import {WebAnimationsPlayer} from './web_animations_player';  export class WebAnimationsDriver implements AnimationDriver {   validateStyleProperty(prop: string): boolean {     // Perform actual validation in dev mode only, in prod mode this check is a noop.     if (typeof ngDevMode === 'undefined' || ngDevMode) {       return validateStyleProperty(prop);     }     return true;   }    validateAnimatableStyleProperty(prop: string): boolean {     // Perform actual validation in dev mode only, in prod mode this check is a noop.     if (typeof ngDevMode === 'undefined' || ngDevMode) {       const cssProp = camelCaseToDashCase(prop);       return validateWebAnimatableStyleProperty(cssProp);     }     return true;   }    matchesElement(_element: any, _selector: string): boolean {     // This method is deprecated and no longer in use so we return false.     return false;   }    containsElement(elm1: any, elm2: any): boolean {     return containsElement(elm1, elm2);   }    getParentElement(element: unknown): unknown {     return getParentElement(element);   }    query(element: any, selector: string, multi: boolean): any[] {     return invokeQuery(element, selector, multi);   }    computeStyle(element: any, prop: string, defaultValue?: string): string {     return (window.getComputedStyle(element) as any)[prop] as string;   }    animate(       element: any, keyframes: Array<Map<string, string|number>>, duration: number, delay: number,       easing: string, previousPlayers: AnimationPlayer[] = []): AnimationPlayer {     const fill = delay == 0 ? 'both' : 'forwards';     const playerOptions: {[key: string]: string|number} = {duration, delay, fill};     // we check for this to avoid having a null|undefined value be present     // for the easing (which results in an error for certain browsers #9752)     if (easing) {       playerOptions['easing'] = easing;     }      const previousStyles: ɵStyleDataMap = new Map();     const previousWebAnimationPlayers = <WebAnimationsPlayer[]>previousPlayers.filter(         player => player instanceof WebAnimationsPlayer);     if (allowPreviousPlayerStylesMerge(duration, delay)) {       previousWebAnimationPlayers.forEach(player => {         player.currentSnapshot.forEach((val, prop) => previousStyles.set(prop, val));       });     }      let _keyframes = normalizeKeyframes(keyframes).map(styles => copyStyles(styles));     _keyframes = balancePreviousStylesIntoKeyframes(element, _keyframes, previousStyles);     const specialStyles = packageNonAnimatableStyles(element, _keyframes);     return new WebAnimationsPlayer(element, _keyframes, playerOptions, specialStyles);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all animation APIs of the animation browser package.  */ export {AnimationDriver} from './render/animation_driver'; export * from './private_export'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/browser'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["RuntimeError","normalizeKeyframes","PRE_STYLE","AnimationGroupPlayer"],"mappings":";;;;;;;;;;AAYA,MAAM,UAAU,GAAG,OAAO,CAAC;AAErB,SAAU,kBAAkB,CAAC,GAAkB,EAAA;IACnD,OAAO,IAAIA,aAAY,CAEnB,IAA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aAAa,GAAmC,EAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;;AAG9E,QAAA,IAAI,MAAM,EAAE;AACV,YAAA,aAAa,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;AAClC,SAAA;AAED,QAAA,MAAM,cAAc,GAAkB,IAAI,GAAG,EAAE,CAAC;AAChD,QAAA,MAAM,2BAA2B,GAA0B,eAAe,CAAC,MAAM,CAC7E,MAAM,IAAI,MAAM,YAAY,mBAAmB,CAAC,CAAC;AACrD,QAAA,IAAI,8BAA8B,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE;AACnD,YAAA,2BAA2B,CAAC,OAAO,CAAC,MAAM,IAAG;gBAC3C,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,cAAc,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAC/E,aAAC,CAAC,CAAC;AACJ,SAAA;AAED,QAAA,IAAI,UAAU,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;QACjF,UAAU,GAAG,kCAAkC,CAAC,OAAO,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;QACrF,MAAM,aAAa,GAAG,0BAA0B,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QACtE,OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;KACnF;AACF;;ACxED;;;;AAIG;;ACJH;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 24 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../../packages/animations/browser/src/error_helpers.ts","../../../../../../../packages/animations/browser/src/render/web_animations/animatable_props_set.ts","../../../../../../../packages/animations/browser/src/render/shared.ts","../../../../../../../packages/animations/browser/src/util.ts","../../../../../../../packages/animations/browser/testing/src/mock_animation_driver.ts","../../../../../../../packages/animations/browser/testing/public_api.ts","../../../../../../../packages/animations/browser/testing/index.ts","../../../../../../../packages/animations/browser/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors';  const LINE_START = '\  - ';  export function invalidTimingValue(exp: string|number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TIMING_VALUE,       ngDevMode && `The provided timing value \"${exp}\" is invalid.`); }  export function negativeStepValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_STEP_VALUE,       ngDevMode && 'Duration values below 0 are not allowed for this animation step.'); }  export function negativeDelayValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_DELAY_VALUE,       ngDevMode && 'Delay values below 0 are not allowed for this animation step.'); }  export function invalidStyleParams(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_PARAMS,       ngDevMode &&           `Unable to resolve the local animation param ${varName} in the given list of values`); }  export function invalidParamValue(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARAM_VALUE,       ngDevMode && `Please provide a value for the animation param ${varName}`); }  export function invalidNodeType(nodeType: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_NODE_TYPE,       ngDevMode && `Unable to resolve animation metadata node #${nodeType}`); }  export function invalidCssUnitValue(userProvidedProperty: string, value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_CSS_UNIT_VALUE,       ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`); }  export function invalidTrigger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRIGGER,       ngDevMode &&           'animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\\'@foo\\', [...]))'); }  export function invalidDefinition(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_DEFINITION,       ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()'); }  export function invalidState(metadataName: string, missingSubs: string[]): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STATE,       ngDevMode &&           `state(\"${               metadataName}\", ...) must define default values for all the following style substitutions: ${               missingSubs.join(', ')}`); }  export function invalidStyleValue(value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_VALUE,       ngDevMode && `The provided style string value ${value} is not allowed.`); }  export function invalidProperty(prop: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PROPERTY,       ngDevMode &&           `The provided animation property \"${               prop}\" is not a supported CSS property for animations`); }  export function invalidParallelAnimation(     prop: string, firstStart: number, firstEnd: number, secondStart: number,     secondEnd: number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARALLEL_ANIMATION,       ngDevMode &&           `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${               firstEnd}ms\" is also being animated in a parallel animation between the times of \"${               secondStart}ms\" and \"${secondEnd}ms\"`); }  export function invalidKeyframes(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_KEYFRAMES,       ngDevMode && `keyframes() must be placed inside of a call to animate()`); }  export function invalidOffset(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_OFFSET,       ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`); }  export function keyframeOffsetsOutOfOrder(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER,       ngDevMode && `Please ensure that all keyframe offsets are in order`); }  export function keyframesMissingOffsets(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS,       ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`); }  export function invalidStagger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STAGGER,       ngDevMode && `stagger() can only be used inside of query()`); }  export function invalidQuery(selector: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_QUERY,       ngDevMode &&           `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${               selector}\", { optional: true })\\` if you wish to allow this.)`); }  export function invalidExpression(expr: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_EXPRESSION,       ngDevMode && `The provided transition expression \"${expr}\" is not supported`); }  export function invalidTransitionAlias(alias: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRANSITION_ALIAS,       ngDevMode && `The transition alias value \"${alias}\" is not supported`); }  export function validationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.VALIDATION_FAILED,       ngDevMode && `animation validation failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function buildingFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.BUILDING_FAILED,       ngDevMode && `animation building failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function triggerBuildFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_BUILD_FAILED,       ngDevMode &&           `The animation trigger \"${name}\" has failed to build due to the following errors:\  - ${               errors.map(err => err.message).join('\  - ')}`); }  export function animationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.ANIMATION_FAILED,       ngDevMode &&           `Unable to animate due to the following errors:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function registerFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.REGISTRATION_FAILED,       ngDevMode &&           `Unable to build the animation due to the following errors: ${               errors.map(err => err.message).join('\ ')}`); }  export function missingOrDestroyedAnimation(): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION,       ngDevMode && 'The requested animation doesn\\'t exist or has already been destroyed'); }  export function createAnimationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.CREATE_ANIMATION_FAILED,       ngDevMode &&           `Unable to create the animation due to the following errors:${               errors.map(err => err.message).join('\ ')}`); }  export function missingPlayer(id: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_PLAYER,       ngDevMode && `Unable to find the timeline player referenced by ${id}`); }  export function missingTrigger(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_TRIGGER,       ngDevMode &&           `Unable to listen on the animation trigger event \"${               phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`); }  export function missingEvent(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_EVENT,       ngDevMode &&           `Unable to listen on the animation trigger \"${               name}\" because the provided event is undefined!`); }  export function unsupportedTriggerEvent(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT,       ngDevMode &&           `The provided animation trigger event \"${phase}\" for the animation trigger \"${               name}\" is not supported!`); }  export function unregisteredTrigger(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNREGISTERED_TRIGGER,       ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`); }  export function triggerTransitionsFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED,       ngDevMode &&           `Unable to process animations due to the following failed trigger transitions\  ${               errors.map(err => err.message).join('\ ')}`); }  export function triggerParsingFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_PARSING_FAILED,       ngDevMode &&           `Animation parsing for the ${name} trigger have failed:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function transitionFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRANSITION_FAILED,       ngDevMode && `@${name} has failed due to:\  ${errors.map(err => err.message).join('\ - ')}`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Set of all animatable CSS properties  *  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties  */ export const ANIMATABLE_PROP_SET = new Set([   '-moz-outline-radius',   '-moz-outline-radius-bottomleft',   '-moz-outline-radius-bottomright',   '-moz-outline-radius-topleft',   '-moz-outline-radius-topright',   '-ms-grid-columns',   '-ms-grid-rows',   '-webkit-line-clamp',   '-webkit-text-fill-color',   '-webkit-text-stroke',   '-webkit-text-stroke-color',   'accent-color',   'all',   'backdrop-filter',   'background',   'background-color',   'background-position',   'background-size',   'block-size',   'border',   'border-block-end',   'border-block-end-color',   'border-block-end-width',   'border-block-start',   'border-block-start-color',   'border-block-start-width',   'border-bottom',   'border-bottom-color',   'border-bottom-left-radius',   'border-bottom-right-radius',   'border-bottom-width',   'border-color',   'border-end-end-radius',   'border-end-start-radius',   'border-image-outset',   'border-image-slice',   'border-image-width',   'border-inline-end',   'border-inline-end-color',   'border-inline-end-width',   'border-inline-start',   'border-inline-start-color',   'border-inline-start-width',   'border-left',   'border-left-color',   'border-left-width',   'border-radius',   'border-right',   'border-right-color',   'border-right-width',   'border-start-end-radius',   'border-start-start-radius',   'border-top',   'border-top-color',   'border-top-left-radius',   'border-top-right-radius',   'border-top-width',   'border-width',   'bottom',   'box-shadow',   'caret-color',   'clip',   'clip-path',   'color',   'column-count',   'column-gap',   'column-rule',   'column-rule-color',   'column-rule-width',   'column-width',   'columns',   'filter',   'flex',   'flex-basis',   'flex-grow',   'flex-shrink',   'font',   'font-size',   'font-size-adjust',   'font-stretch',   'font-variation-settings',   'font-weight',   'gap',   'grid-column-gap',   'grid-gap',   'grid-row-gap',   'grid-template-columns',   'grid-template-rows',   'height',   'inline-size',   'input-security',   'inset',   'inset-block',   'inset-block-end',   'inset-block-start',   'inset-inline',   'inset-inline-end',   'inset-inline-start',   'left',   'letter-spacing',   'line-clamp',   'line-height',   'margin',   'margin-block-end',   'margin-block-start',   'margin-bottom',   'margin-inline-end',   'margin-inline-start',   'margin-left',   'margin-right',   'margin-top',   'mask',   'mask-border',   'mask-position',   'mask-size',   'max-block-size',   'max-height',   'max-inline-size',   'max-lines',   'max-width',   'min-block-size',   'min-height',   'min-inline-size',   'min-width',   'object-position',   'offset',   'offset-anchor',   'offset-distance',   'offset-path',   'offset-position',   'offset-rotate',   'opacity',   'order',   'outline',   'outline-color',   'outline-offset',   'outline-width',   'padding',   'padding-block-end',   'padding-block-start',   'padding-bottom',   'padding-inline-end',   'padding-inline-start',   'padding-left',   'padding-right',   'padding-top',   'perspective',   'perspective-origin',   'right',   'rotate',   'row-gap',   'scale',   'scroll-margin',   'scroll-margin-block',   'scroll-margin-block-end',   'scroll-margin-block-start',   'scroll-margin-bottom',   'scroll-margin-inline',   'scroll-margin-inline-end',   'scroll-margin-inline-start',   'scroll-margin-left',   'scroll-margin-right',   'scroll-margin-top',   'scroll-padding',   'scroll-padding-block',   'scroll-padding-block-end',   'scroll-padding-block-start',   'scroll-padding-bottom',   'scroll-padding-inline',   'scroll-padding-inline-end',   'scroll-padding-inline-start',   'scroll-padding-left',   'scroll-padding-right',   'scroll-padding-top',   'scroll-snap-coordinate',   'scroll-snap-destination',   'scrollbar-color',   'shape-image-threshold',   'shape-margin',   'shape-outside',   'tab-size',   'text-decoration',   'text-decoration-color',   'text-decoration-thickness',   'text-emphasis',   'text-emphasis-color',   'text-indent',   'text-shadow',   'text-underline-offset',   'top',   'transform',   'transform-origin',   'translate',   'vertical-align',   'visibility',   'width',   'word-spacing',   'z-index',   'zoom', ]); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationEvent, AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵAnimationGroupPlayer, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {AnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer'; import {AnimationDriver} from '../../src/render/animation_driver'; import {animationFailed} from '../error_helpers';  import {ANIMATABLE_PROP_SET} from './web_animations/animatable_props_set';  // We don't include ambient node types here since @angular/animations/browser // is meant to target the browser so technically it should not depend on node // types. `process` is just declared locally here as a result. declare const process: any;  export function isBrowser(): boolean {   return (typeof window !== 'undefined' && typeof window.document !== 'undefined'); }  export function isNode(): boolean {   // Checking only for `process` isn't enough to identify whether or not we're in a Node   // environment, because Webpack by default will polyfill the `process`. While we can discern   // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and   // might not be future-proof. Instead we look at the stringified version of `process` which   // is `[object process]` in Node and `[object Object]` when polyfilled.   return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; }  export function optimizeGroupPlayer(players: AnimationPlayer[]): AnimationPlayer {   switch (players.length) {     case 0:       return new NoopAnimationPlayer();     case 1:       return players[0];     default:       return new ɵAnimationGroupPlayer(players);   } }  export function normalizeKeyframes(     driver: AnimationDriver, normalizer: AnimationStyleNormalizer, element: any,     keyframes: Array<ɵStyleDataMap>, preStyles: ɵStyleDataMap = new Map(),     postStyles: ɵStyleDataMap = new Map()): Array<ɵStyleDataMap> {   const errors: Error[] = [];   const normalizedKeyframes: Array<ɵStyleDataMap> = [];   let previousOffset = -1;   let previousKeyframe: ɵStyleDataMap|null = null;   keyframes.forEach(kf => {     const offset = kf.get('offset') as number;     const isSameOffset = offset == previousOffset;     const normalizedKeyframe: ɵStyleDataMap = (isSameOffset && previousKeyframe) || new Map();     kf.forEach((val, prop) => {       let normalizedProp = prop;       let normalizedValue = val;       if (prop !== 'offset') {         normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);         switch (normalizedValue) {           case PRE_STYLE:             normalizedValue = preStyles.get(prop)!;             break;            case AUTO_STYLE:             normalizedValue = postStyles.get(prop)!;             break;            default:             normalizedValue =                 normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);             break;         }       }       normalizedKeyframe.set(normalizedProp, normalizedValue);     });     if (!isSameOffset) {       normalizedKeyframes.push(normalizedKeyframe);     }     previousKeyframe = normalizedKeyframe;     previousOffset = offset;   });   if (errors.length) {     throw animationFailed(errors);   }    return normalizedKeyframes; }  export function listenOnPlayer(     player: AnimationPlayer, eventName: string, event: AnimationEvent|undefined,     callback: (event: any) => any) {   switch (eventName) {     case 'start':       player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));       break;     case 'done':       player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));       break;     case 'destroy':       player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));       break;   } }  export function copyAnimationEvent(     e: AnimationEvent, phaseName: string, player: AnimationPlayer): AnimationEvent {   const totalTime = player.totalTime;   const disabled = (player as any).disabled ? true : false;   const event = makeAnimationEvent(       e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName,       totalTime == undefined ? e.totalTime : totalTime, disabled);   const data = (e as any)['_data'];   if (data != null) {     (event as any)['_data'] = data;   }   return event; }  export function makeAnimationEvent(     element: any, triggerName: string, fromState: string, toState: string, phaseName: string = '',     totalTime: number = 0, disabled?: boolean): AnimationEvent {   return {element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled}; }  export function getOrSetDefaultValue<T, V>(map: Map<T, V>, key: T, defaultValue: V) {   let value = map.get(key);   if (!value) {     map.set(key, value = defaultValue);   }   return value; }  export function parseTimelineCommand(command: string): [string, string] {   const separatorPos = command.indexOf(':');   const id = command.substring(1, separatorPos);   const action = command.slice(separatorPos + 1);   return [id, action]; }  let _contains: (elm1: any, elm2: any) => boolean = (elm1: any, elm2: any) => false; let _query: (element: any, selector: string, multi: boolean) => any[] =     (element: any, selector: string, multi: boolean) => {       return [];     }; let _documentElement: unknown|null = null;  export function getParentElement(element: any): unknown|null {   const parent = element.parentNode || element.host;  // consider host to support shadow DOM   if (parent === _documentElement) {     return null;   }   return parent; }  // Define utility methods for browsers and platform-server(domino) where Element // and utility methods exist. const _isNode = isNode(); if (_isNode || typeof Element !== 'undefined') {   if (!isBrowser()) {     _contains = (elm1, elm2) => elm1.contains(elm2);   } else {     // Read the document element in an IIFE that's been marked pure to avoid a top-level property     // read that may prevent tree-shaking.     _documentElement = /* @__PURE__ */ (() => document.documentElement)();     _contains = (elm1, elm2) => {       while (elm2) {         if (elm2 === elm1) {           return true;         }         elm2 = getParentElement(elm2);       }       return false;     };   }    _query = (element: any, selector: string, multi: boolean): any[] => {     if (multi) {       return Array.from(element.querySelectorAll(selector));     }     const elem = element.querySelector(selector);     return elem ? [elem] : [];   }; }  function containsVendorPrefix(prop: string): boolean {   // Webkit is the only real popular vendor prefix nowadays   // cc: http://shouldiprefix.com/   return prop.substring(1, 6) == 'ebkit';  // webkit or Webkit }  let _CACHED_BODY: {style: any}|null = null; let _IS_WEBKIT = false; export function validateStyleProperty(prop: string): boolean {   if (!_CACHED_BODY) {     _CACHED_BODY = getBodyNode() || {};     _IS_WEBKIT = _CACHED_BODY!.style ? ('WebkitAppearance' in _CACHED_BODY!.style) : false;   }    let result = true;   if (_CACHED_BODY!.style && !containsVendorPrefix(prop)) {     result = prop in _CACHED_BODY!.style;     if (!result && _IS_WEBKIT) {       const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);       result = camelProp in _CACHED_BODY!.style;     }   }    return result; }  export function validateWebAnimatableStyleProperty(prop: string): boolean {   return ANIMATABLE_PROP_SET.has(prop); }  export function getBodyNode(): any|null {   if (typeof document != 'undefined') {     return document.body;   }   return null; }  export const containsElement = _contains; export const invokeQuery = _query;  export function hypenatePropsKeys(original: ɵStyleDataMap): ɵStyleDataMap {   const newMap: ɵStyleDataMap = new Map();   original.forEach((val, prop) => {     const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');     newMap.set(newProp, val);   });   return newMap; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateTimings, AnimationMetadata, AnimationMetadataType, AnimationOptions, sequence, ɵStyleData, ɵStyleDataMap} from '@angular/animations';  import {Ast as AnimationAst, AstVisitor as AnimationAstVisitor} from './dsl/animation_ast'; import {AnimationDslVisitor} from './dsl/animation_dsl_visitor'; import {invalidNodeType, invalidParamValue, invalidStyleParams, invalidTimingValue, negativeDelayValue, negativeStepValue} from './error_helpers'; import {isNode} from './render/shared';  export const ONE_SECOND = 1000;  export const SUBSTITUTION_EXPR_START = '{{'; export const SUBSTITUTION_EXPR_END = '}}'; export const ENTER_CLASSNAME = 'ng-enter'; export const LEAVE_CLASSNAME = 'ng-leave'; export const NG_TRIGGER_CLASSNAME = 'ng-trigger'; export const NG_TRIGGER_SELECTOR = '.ng-trigger'; export const NG_ANIMATING_CLASSNAME = 'ng-animating'; export const NG_ANIMATING_SELECTOR = '.ng-animating';  export function resolveTimingValue(value: string|number) {   if (typeof value == 'number') return value;    const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);   if (!matches || matches.length < 2) return 0;    return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]); }  function _convertTimeValueToMS(value: number, unit: string): number {   switch (unit) {     case 's':       return value * ONE_SECOND;     default:  // ms or something else       return value;   } }  export function resolveTiming(     timings: string|number|AnimateTimings, errors: Error[], allowNegativeValues?: boolean) {   return timings.hasOwnProperty('duration') ?       <AnimateTimings>timings :       parseTimeExpression(<string|number>timings, errors, allowNegativeValues); }  function parseTimeExpression(     exp: string|number, errors: Error[], allowNegativeValues?: boolean): AnimateTimings {   const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;   let duration: number;   let delay: number = 0;   let easing: string = '';   if (typeof exp === 'string') {     const matches = exp.match(regex);     if (matches === null) {       errors.push(invalidTimingValue(exp));       return {duration: 0, delay: 0, easing: ''};     }      duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);      const delayMatch = matches[3];     if (delayMatch != null) {       delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);     }      const easingVal = matches[5];     if (easingVal) {       easing = easingVal;     }   } else {     duration = exp;   }    if (!allowNegativeValues) {     let containsErrors = false;     let startIndex = errors.length;     if (duration < 0) {       errors.push(negativeStepValue());       containsErrors = true;     }     if (delay < 0) {       errors.push(negativeDelayValue());       containsErrors = true;     }     if (containsErrors) {       errors.splice(startIndex, 0, invalidTimingValue(exp));     }   }    return {duration, delay, easing}; }  export function copyObj(     obj: {[key: string]: any}, destination: {[key: string]: any} = {}): {[key: string]: any} {   Object.keys(obj).forEach(prop => {     destination[prop] = obj[prop];   });   return destination; }  export function convertToMap(obj: ɵStyleData): ɵStyleDataMap {   const styleMap: ɵStyleDataMap = new Map();   Object.keys(obj).forEach(prop => {     const val = obj[prop];     styleMap.set(prop, val);   });   return styleMap; }  export function normalizeKeyframes(keyframes: Array<ɵStyleData>|                                    Array<ɵStyleDataMap>): Array<ɵStyleDataMap> {   if (!keyframes.length) {     return [];   }   if (keyframes[0] instanceof Map) {     return keyframes as Array<ɵStyleDataMap>;   }   return keyframes.map(kf => convertToMap(kf as ɵStyleData)); }  export function normalizeStyles(styles: ɵStyleDataMap|Array<ɵStyleDataMap>): ɵStyleDataMap {   const normalizedStyles: ɵStyleDataMap = new Map();   if (Array.isArray(styles)) {     styles.forEach(data => copyStyles(data, normalizedStyles));   } else {     copyStyles(styles, normalizedStyles);   }   return normalizedStyles; }  export function copyStyles(     styles: ɵStyleDataMap, destination: ɵStyleDataMap = new Map(),     backfill?: ɵStyleDataMap): ɵStyleDataMap {   if (backfill) {     for (let [prop, val] of backfill) {       destination.set(prop, val);     }   }   for (let [prop, val] of styles) {     destination.set(prop, val);   }   return destination; }  function getStyleAttributeString(element: any, key: string, value: string) {   // Return the key-value pair string to be added to the style attribute for the   // given CSS style key.   if (value) {     return key + ':' + value + ';';   } else {     return '';   } }  function writeStyleAttribute(element: any) {   // Read the style property of the element and manually reflect it to the   // style attribute. This is needed because Domino on platform-server doesn't   // understand the full set of allowed CSS properties and doesn't reflect some   // of them automatically.   let styleAttrValue = '';   for (let i = 0; i < element.style.length; i++) {     const key = element.style.item(i);     styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));   }   for (const key in element.style) {     // Skip internal Domino properties that don't need to be reflected.     if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {       continue;     }     const dashKey = camelCaseToDashCase(key);     styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);   }   element.setAttribute('style', styleAttrValue); }  export function setStyles(element: any, styles: ɵStyleDataMap, formerStyles?: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((val, prop) => {       const camelProp = dashCaseToCamelCase(prop);       if (formerStyles && !formerStyles.has(prop)) {         formerStyles.set(prop, element.style[camelProp]);       }       element.style[camelProp] = val;     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function eraseStyles(element: any, styles: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((_, prop) => {       const camelProp = dashCaseToCamelCase(prop);       element.style[camelProp] = '';     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function normalizeAnimationEntry(steps: AnimationMetadata|                                         AnimationMetadata[]): AnimationMetadata {   if (Array.isArray(steps)) {     if (steps.length == 1) return steps[0];     return sequence(steps);   }   return steps as AnimationMetadata; }  export function validateStyleParams(     value: string|number|null|undefined, options: AnimationOptions, errors: Error[]) {   const params = options.params || {};   const matches = extractStyleParams(value);   if (matches.length) {     matches.forEach(varName => {       if (!params.hasOwnProperty(varName)) {         errors.push(invalidStyleParams(varName));       }     });   } }  const PARAM_REGEX =     new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g'); export function extractStyleParams(value: string|number|null|undefined): string[] {   let params: string[] = [];   if (typeof value === 'string') {     let match: any;     while (match = PARAM_REGEX.exec(value)) {       params.push(match[1] as string);     }     PARAM_REGEX.lastIndex = 0;   }   return params; }  export function interpolateParams(     value: string|number, params: {[name: string]: any}, errors: Error[]): string|number {   const original = value.toString();   const str = original.replace(PARAM_REGEX, (_, varName) => {     let localVal = params[varName];     // this means that the value was never overridden by the data passed in by the user     if (localVal == null) {       errors.push(invalidParamValue(varName));       localVal = '';     }     return localVal.toString();   });    // we do this to assert that numeric values stay as they are   return str == original ? value : str; }  export function iteratorToArray(iterator: any): any[] {   const arr: any[] = [];   let item = iterator.next();   while (!item.done) {     arr.push(item.value);     item = iterator.next();   }   return arr; }  const DASH_CASE_REGEXP = /-+([a-z0-9])/g; export function dashCaseToCamelCase(input: string): string {   return input.replace(DASH_CASE_REGEXP, (...m: any[]) => m[1].toUpperCase()); }  export function camelCaseToDashCase(input: string): string {   return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); }  export function allowPreviousPlayerStylesMerge(duration: number, delay: number) {   return duration === 0 || delay === 0; }  export function balancePreviousStylesIntoKeyframes(     element: any, keyframes: Array<ɵStyleDataMap>, previousStyles: ɵStyleDataMap) {   if (previousStyles.size && keyframes.length) {     let startingKeyframe = keyframes[0];     let missingStyleProps: string[] = [];     previousStyles.forEach((val, prop) => {       if (!startingKeyframe.has(prop)) {         missingStyleProps.push(prop);       }       startingKeyframe.set(prop, val);     });      if (missingStyleProps.length) {       for (let i = 1; i < keyframes.length; i++) {         let kf = keyframes[i];         missingStyleProps.forEach(prop => kf.set(prop, computeStyle(element, prop)));       }     }   }   return keyframes; }  export function visitDslNode(     visitor: AnimationDslVisitor, node: AnimationMetadata, context: any): any; export function visitDslNode(     visitor: AnimationAstVisitor, node: AnimationAst<AnimationMetadataType>, context: any): any; export function visitDslNode(visitor: any, node: any, context: any): any {   switch (node.type) {     case AnimationMetadataType.Trigger:       return visitor.visitTrigger(node, context);     case AnimationMetadataType.State:       return visitor.visitState(node, context);     case AnimationMetadataType.Transition:       return visitor.visitTransition(node, context);     case AnimationMetadataType.Sequence:       return visitor.visitSequence(node, context);     case AnimationMetadataType.Group:       return visitor.visitGroup(node, context);     case AnimationMetadataType.Animate:       return visitor.visitAnimate(node, context);     case AnimationMetadataType.Keyframes:       return visitor.visitKeyframes(node, context);     case AnimationMetadataType.Style:       return visitor.visitStyle(node, context);     case AnimationMetadataType.Reference:       return visitor.visitReference(node, context);     case AnimationMetadataType.AnimateChild:       return visitor.visitAnimateChild(node, context);     case AnimationMetadataType.AnimateRef:       return visitor.visitAnimateRef(node, context);     case AnimationMetadataType.Query:       return visitor.visitQuery(node, context);     case AnimationMetadataType.Stagger:       return visitor.visitStagger(node, context);     default:       throw invalidNodeType(node.type);   } }  export function computeStyle(element: any, prop: string): string {   return (<any>window.getComputedStyle(element))[prop]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵStyleDataMap} from '@angular/animations'; import {AnimationDriver, ɵallowPreviousPlayerStylesMerge as allowPreviousPlayerStylesMerge, ɵcontainsElement as containsElement, ɵgetParentElement as getParentElement, ɵinvokeQuery as invokeQuery, ɵnormalizeKeyframes as normalizeKeyframes, ɵvalidateStyleProperty as validateStyleProperty,} from '@angular/animations/browser';  import {validateWebAnimatableStyleProperty} from '../../src/render/shared'; import {camelCaseToDashCase} from '../../src/util';  /**  * @publicApi  */ export class MockAnimationDriver implements AnimationDriver {   static log: AnimationPlayer[] = [];    validateStyleProperty(prop: string): boolean {     return validateStyleProperty(prop);   }    validateAnimatableStyleProperty(prop: string): boolean {     const cssProp = camelCaseToDashCase(prop);     return validateWebAnimatableStyleProperty(cssProp);   }    matchesElement(_element: any, _selector: string): boolean {     return false;   }    containsElement(elm1: any, elm2: any): boolean {     return containsElement(elm1, elm2);   }    getParentElement(element: unknown): unknown {     return getParentElement(element);   }    query(element: any, selector: string, multi: boolean): any[] {     return invokeQuery(element, selector, multi);   }    computeStyle(element: any, prop: string, defaultValue?: string): string {     return defaultValue || '';   }    animate(       element: any, keyframes: Array<ɵStyleDataMap>, duration: number, delay: number,       easing: string, previousPlayers: any[] = []): MockAnimationPlayer {     const player =         new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);     MockAnimationDriver.log.push(<AnimationPlayer>player);     return player;   } }  /**  * @publicApi  */ export class MockAnimationPlayer extends NoopAnimationPlayer {   private __finished = false;   private __started = false;   public previousStyles: ɵStyleDataMap = new Map();   private _onInitFns: (() => any)[] = [];   public currentSnapshot: ɵStyleDataMap = new Map();   private _keyframes: Array<ɵStyleDataMap> = [];    constructor(       public element: any, public keyframes: Array<ɵStyleDataMap>, public duration: number,       public delay: number, public easing: string, public previousPlayers: any[]) {     super(duration, delay);      this._keyframes = normalizeKeyframes(keyframes);      if (allowPreviousPlayerStylesMerge(duration, delay)) {       previousPlayers.forEach(player => {         if (player instanceof MockAnimationPlayer) {           const styles = player.currentSnapshot;           styles.forEach((val, prop) => this.previousStyles.set(prop, val));         }       });     }   }    /* @internal */   onInit(fn: () => any) {     this._onInitFns.push(fn);   }    /* @internal */   override init() {     super.init();     this._onInitFns.forEach(fn => fn());     this._onInitFns = [];   }    override reset() {     super.reset();     this.__started = false;   }    override finish(): void {     super.finish();     this.__finished = true;   }    override destroy(): void {     super.destroy();     this.__finished = true;   }    /* @internal */   triggerMicrotask() {}    override play(): void {     super.play();     this.__started = true;   }    override hasStarted() {     return this.__started;   }    beforeDestroy() {     const captures: ɵStyleDataMap = new Map();      this.previousStyles.forEach((val, prop) => captures.set(prop, val));      if (this.hasStarted()) {       // when assembling the captured styles, it's important that       // we build the keyframe styles in the following order:       // {other styles within keyframes, ... previousStyles }       this._keyframes.forEach(kf => {         for (let [prop, val] of kf) {           if (prop !== 'offset') {             captures.set(prop, this.__finished ? val : AUTO_STYLE);           }         }       });     }      this.currentSnapshot = captures;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verifcation. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["RuntimeError","normalizeKeyframes","PRE_STYLE","validateStyleProperty","containsElement","getParentElement","invokeQuery","allowPreviousPlayerStylesMerge"],"mappings":";;;;;;;;;;AAYA,MAAM,UAAU,GAAG,OAAO,CAAC;AAErB,SAAU,kBAAkB,CAAC,GAAkB,EAAA;IACnD,OAAO,IAAIA,aAAY,CAEnB,IAAA,8CAAA,SAAS,IAAI,CAA8B,2BAAA,EAAA,GAAG,CAAe,aAAA,CAAA,CAAC,CAAC;AACrE,CAAC;SAEe,iBAAiB,GAAA;AAC/B,IAAA,OAAO,IAAIA,aAAY,CAAA,IAAA,6CAEnB,SAAS,IAAI,kEAAkE,CAAC,CAAC;AACvF,CAAC;SAEe,kBAAkB,GAAA;AAChC,IAAA,OAAO,IAAIA,aAAY,CAAA,IAAA,8CAEnB,SAAS,IAAI,+DAA+D,CAAC,CAAC;AACpF,CAAC;AAEK,SAAU,kBAAkB,CAAC,OAAe,EAAA;IAChD,OAAO,IAAIA,aAAY,CAAA,IAAA,8CAEnB,SAAS;QACL,CAA+C,4CAAA,EAAA,OAAO,CAA8B,4BAAA,CAAA,CAAC,CAAC;AAChG,CAAC;AAEK,SAAU,iBAAiB,CAAC,OAAe,EAAA;IAC/C,OAAO,IAAIA,aAAY,CAEnB,IAAA,6CAAA,SAAS,IAAI,CAAkD,+CAAA,EAAA,OAAO,CAAE,CAAA,CAAC,CAAC;AAChF,CAAC;AAEK,SAAU,eAAe,CAAC,QAAgB,EAAA;IAC9C,OAAO,IAAIA,aAAY,CAEnB,IAAA,2CAAA,SAAS,IAAI,CAA8C,2CAAA,EAAA,QAAQ,CAAE,CAAA,CAAC,CAAC;AAC7E,CAAC;AAEe,SAAA,mBAAmB,CAAC,oBAA4B,EAAE,KAAa,EAAA;IAC7E,OAAO,IAAIA,aAAY,CAAA,IAAA,gDAEnB,SAAS,IAAI,CAAuC,oCAAA,EAAA,oBA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AGD,IAAA,gBAAgB,MAAK;IAEZ,IAAI,GAAA;QACX,KAAK,CAAC,IAAI,EAAE,CAAC;AACb,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;KACvB;IAEQ,UAAU,GAAA;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IAED,aAAa,GAAA;AACX,QAAA,MAAM,QAAQ,GAAkB,IAAI,GAAG,EAAE,CAAC;QAE1C,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAEpE,QAAA,IAAI,IAAI,CAAC,UAAU,EAAE,EAAE;;;;AAIrB,YAAA,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,IAAG;gBAC3B,KAAK,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,EAAE;oBAC1B,IAAI,IAAI,KAAK,QAAQ,EAAE;AACrB,wBAAA,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,UAAU,CAAC,CAAC;AACxD,qBAAA;AACF,iBAAA;AACH,aAAC,CAAC,CAAC;AACJ,SAAA;AAED,QAAA,IAAI,CAAC,eAAe,GAAG,QAAQ,CAAC;KACjC;AACF;;ACzID;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
-------------------- SECTION 25 --------------------
{"version":3,"file":"browser.mjs","sources":["../../../../../../packages/animations/browser/src/error_helpers.ts","../../../../../../packages/animations/browser/src/render/web_animations/animatable_props_set.ts","../../../../../../packages/animations/browser/src/render/shared.ts","../../../../../../packages/animations/browser/src/render/animation_driver.ts","../../../../../../packages/animations/browser/src/util.ts","../../../../../../packages/animations/browser/src/warning_helpers.ts","../../../../../../packages/animations/browser/src/dsl/animation_transition_expr.ts","../../../../../../packages/animations/browser/src/dsl/animation_ast_builder.ts","../../../../../../packages/animations/browser/src/dsl/animation_timeline_instruction.ts","../../../../../../packages/animations/browser/src/dsl/element_instruction_map.ts","../../../../../../packages/animations/browser/src/dsl/animation_timeline_builder.ts","../../../../../../packages/animations/browser/src/dsl/animation.ts","../../../../../../packages/animations/browser/src/dsl/style_normalization/animation_style_normalizer.ts","../../../../../../packages/animations/browser/src/dsl/style_normalization/web_animations_style_normalizer.ts","../../../../../../packages/animations/browser/src/dsl/animation_transition_instruction.ts","../../../../../../packages/animations/browser/src/dsl/animation_transition_factory.ts","../../../../../../packages/animations/browser/src/dsl/animation_trigger.ts","../../../../../../packages/animations/browser/src/render/timeline_animation_engine.ts","../../../../../../packages/animations/browser/src/render/transition_animation_engine.ts","../../../../../../packages/animations/browser/src/render/animation_engine_next.ts","../../../../../../packages/animations/browser/src/render/special_cased_styles.ts","../../../../../../packages/animations/browser/src/render/web_animations/web_animations_player.ts","../../../../../../packages/animations/browser/src/render/web_animations/web_animations_driver.ts","../../../../../../packages/animations/browser/src/browser.ts","../../../../../../packages/animations/browser/public_api.ts","../../../../../../packages/animations/browser/index.ts","../../../../../../packages/animations/browser/browser.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors';  const LINE_START = '\  - ';  export function invalidTimingValue(exp: string|number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TIMING_VALUE,       ngDevMode && `The provided timing value \"${exp}\" is invalid.`); }  export function negativeStepValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_STEP_VALUE,       ngDevMode && 'Duration values below 0 are not allowed for this animation step.'); }  export function negativeDelayValue(): Error {   return new RuntimeError(       RuntimeErrorCode.NEGATIVE_DELAY_VALUE,       ngDevMode && 'Delay values below 0 are not allowed for this animation step.'); }  export function invalidStyleParams(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_PARAMS,       ngDevMode &&           `Unable to resolve the local animation param ${varName} in the given list of values`); }  export function invalidParamValue(varName: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARAM_VALUE,       ngDevMode && `Please provide a value for the animation param ${varName}`); }  export function invalidNodeType(nodeType: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_NODE_TYPE,       ngDevMode && `Unable to resolve animation metadata node #${nodeType}`); }  export function invalidCssUnitValue(userProvidedProperty: string, value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_CSS_UNIT_VALUE,       ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`); }  export function invalidTrigger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRIGGER,       ngDevMode &&           'animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\\'@foo\\', [...]))'); }  export function invalidDefinition(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_DEFINITION,       ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()'); }  export function invalidState(metadataName: string, missingSubs: string[]): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STATE,       ngDevMode &&           `state(\"${               metadataName}\", ...) must define default values for all the following style substitutions: ${               missingSubs.join(', ')}`); }  export function invalidStyleValue(value: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STYLE_VALUE,       ngDevMode && `The provided style string value ${value} is not allowed.`); }  export function invalidProperty(prop: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PROPERTY,       ngDevMode &&           `The provided animation property \"${               prop}\" is not a supported CSS property for animations`); }  export function invalidParallelAnimation(     prop: string, firstStart: number, firstEnd: number, secondStart: number,     secondEnd: number): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_PARALLEL_ANIMATION,       ngDevMode &&           `The CSS property \"${prop}\" that exists between the times of \"${firstStart}ms\" and \"${               firstEnd}ms\" is also being animated in a parallel animation between the times of \"${               secondStart}ms\" and \"${secondEnd}ms\"`); }  export function invalidKeyframes(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_KEYFRAMES,       ngDevMode && `keyframes() must be placed inside of a call to animate()`); }  export function invalidOffset(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_OFFSET,       ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`); }  export function keyframeOffsetsOutOfOrder(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER,       ngDevMode && `Please ensure that all keyframe offsets are in order`); }  export function keyframesMissingOffsets(): Error {   return new RuntimeError(       RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS,       ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`); }  export function invalidStagger(): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_STAGGER,       ngDevMode && `stagger() can only be used inside of query()`); }  export function invalidQuery(selector: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_QUERY,       ngDevMode &&           `\\`query(\"${selector}\")\\` returned zero elements. (Use \\`query(\"${               selector}\", { optional: true })\\` if you wish to allow this.)`); }  export function invalidExpression(expr: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_EXPRESSION,       ngDevMode && `The provided transition expression \"${expr}\" is not supported`); }  export function invalidTransitionAlias(alias: string): Error {   return new RuntimeError(       RuntimeErrorCode.INVALID_TRANSITION_ALIAS,       ngDevMode && `The transition alias value \"${alias}\" is not supported`); }  export function validationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.VALIDATION_FAILED,       ngDevMode && `animation validation failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function buildingFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.BUILDING_FAILED,       ngDevMode && `animation building failed:\ ${errors.map(err => err.message).join('\ ')}`); }  export function triggerBuildFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_BUILD_FAILED,       ngDevMode &&           `The animation trigger \"${name}\" has failed to build due to the following errors:\  - ${               errors.map(err => err.message).join('\  - ')}`); }  export function animationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.ANIMATION_FAILED,       ngDevMode &&           `Unable to animate due to the following errors:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function registerFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.REGISTRATION_FAILED,       ngDevMode &&           `Unable to build the animation due to the following errors: ${               errors.map(err => err.message).join('\ ')}`); }  export function missingOrDestroyedAnimation(): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION,       ngDevMode && 'The requested animation doesn\\'t exist or has already been destroyed'); }  export function createAnimationFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.CREATE_ANIMATION_FAILED,       ngDevMode &&           `Unable to create the animation due to the following errors:${               errors.map(err => err.message).join('\ ')}`); }  export function missingPlayer(id: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_PLAYER,       ngDevMode && `Unable to find the timeline player referenced by ${id}`); }  export function missingTrigger(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_TRIGGER,       ngDevMode &&           `Unable to listen on the animation trigger event \"${               phase}\" because the animation trigger \"${name}\" doesn\\'t exist!`); }  export function missingEvent(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.MISSING_EVENT,       ngDevMode &&           `Unable to listen on the animation trigger \"${               name}\" because the provided event is undefined!`); }  export function unsupportedTriggerEvent(phase: string, name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT,       ngDevMode &&           `The provided animation trigger event \"${phase}\" for the animation trigger \"${               name}\" is not supported!`); }  export function unregisteredTrigger(name: string): Error {   return new RuntimeError(       RuntimeErrorCode.UNREGISTERED_TRIGGER,       ngDevMode && `The provided animation trigger \"${name}\" has not been registered!`); }  export function triggerTransitionsFailed(errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED,       ngDevMode &&           `Unable to process animations due to the following failed trigger transitions\  ${               errors.map(err => err.message).join('\ ')}`); }  export function triggerParsingFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRIGGER_PARSING_FAILED,       ngDevMode &&           `Animation parsing for the ${name} trigger have failed:${LINE_START}${               errors.map(err => err.message).join(LINE_START)}`); }  export function transitionFailed(name: string, errors: Error[]): Error {   return new RuntimeError(       RuntimeErrorCode.TRANSITION_FAILED,       ngDevMode && `@${name} has failed due to:\  ${errors.map(err => err.message).join('\ - ')}`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * Set of all animatable CSS properties  *  * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties  */ export const ANIMATABLE_PROP_SET = new Set([   '-moz-outline-radius',   '-moz-outline-radius-bottomleft',   '-moz-outline-radius-bottomright',   '-moz-outline-radius-topleft',   '-moz-outline-radius-topright',   '-ms-grid-columns',   '-ms-grid-rows',   '-webkit-line-clamp',   '-webkit-text-fill-color',   '-webkit-text-stroke',   '-webkit-text-stroke-color',   'accent-color',   'all',   'backdrop-filter',   'background',   'background-color',   'background-position',   'background-size',   'block-size',   'border',   'border-block-end',   'border-block-end-color',   'border-block-end-width',   'border-block-start',   'border-block-start-color',   'border-block-start-width',   'border-bottom',   'border-bottom-color',   'border-bottom-left-radius',   'border-bottom-right-radius',   'border-bottom-width',   'border-color',   'border-end-end-radius',   'border-end-start-radius',   'border-image-outset',   'border-image-slice',   'border-image-width',   'border-inline-end',   'border-inline-end-color',   'border-inline-end-width',   'border-inline-start',   'border-inline-start-color',   'border-inline-start-width',   'border-left',   'border-left-color',   'border-left-width',   'border-radius',   'border-right',   'border-right-color',   'border-right-width',   'border-start-end-radius',   'border-start-start-radius',   'border-top',   'border-top-color',   'border-top-left-radius',   'border-top-right-radius',   'border-top-width',   'border-width',   'bottom',   'box-shadow',   'caret-color',   'clip',   'clip-path',   'color',   'column-count',   'column-gap',   'column-rule',   'column-rule-color',   'column-rule-width',   'column-width',   'columns',   'filter',   'flex',   'flex-basis',   'flex-grow',   'flex-shrink',   'font',   'font-size',   'font-size-adjust',   'font-stretch',   'font-variation-settings',   'font-weight',   'gap',   'grid-column-gap',   'grid-gap',   'grid-row-gap',   'grid-template-columns',   'grid-template-rows',   'height',   'inline-size',   'input-security',   'inset',   'inset-block',   'inset-block-end',   'inset-block-start',   'inset-inline',   'inset-inline-end',   'inset-inline-start',   'left',   'letter-spacing',   'line-clamp',   'line-height',   'margin',   'margin-block-end',   'margin-block-start',   'margin-bottom',   'margin-inline-end',   'margin-inline-start',   'margin-left',   'margin-right',   'margin-top',   'mask',   'mask-border',   'mask-position',   'mask-size',   'max-block-size',   'max-height',   'max-inline-size',   'max-lines',   'max-width',   'min-block-size',   'min-height',   'min-inline-size',   'min-width',   'object-position',   'offset',   'offset-anchor',   'offset-distance',   'offset-path',   'offset-position',   'offset-rotate',   'opacity',   'order',   'outline',   'outline-color',   'outline-offset',   'outline-width',   'padding',   'padding-block-end',   'padding-block-start',   'padding-bottom',   'padding-inline-end',   'padding-inline-start',   'padding-left',   'padding-right',   'padding-top',   'perspective',   'perspective-origin',   'right',   'rotate',   'row-gap',   'scale',   'scroll-margin',   'scroll-margin-block',   'scroll-margin-block-end',   'scroll-margin-block-start',   'scroll-margin-bottom',   'scroll-margin-inline',   'scroll-margin-inline-end',   'scroll-margin-inline-start',   'scroll-margin-left',   'scroll-margin-right',   'scroll-margin-top',   'scroll-padding',   'scroll-padding-block',   'scroll-padding-block-end',   'scroll-padding-block-start',   'scroll-padding-bottom',   'scroll-padding-inline',   'scroll-padding-inline-end',   'scroll-padding-inline-start',   'scroll-padding-left',   'scroll-padding-right',   'scroll-padding-top',   'scroll-snap-coordinate',   'scroll-snap-destination',   'scrollbar-color',   'shape-image-threshold',   'shape-margin',   'shape-outside',   'tab-size',   'text-decoration',   'text-decoration-color',   'text-decoration-thickness',   'text-emphasis',   'text-emphasis-color',   'text-indent',   'text-shadow',   'text-underline-offset',   'top',   'transform',   'transform-origin',   'translate',   'vertical-align',   'visibility',   'width',   'word-spacing',   'z-index',   'zoom', ]); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationEvent, AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵAnimationGroupPlayer, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {AnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer'; import {AnimationDriver} from '../../src/render/animation_driver'; import {animationFailed} from '../error_helpers';  import {ANIMATABLE_PROP_SET} from './web_animations/animatable_props_set';  // We don't include ambient node types here since @angular/animations/browser // is meant to target the browser so technically it should not depend on node // types. `process` is just declared locally here as a result. declare const process: any;  export function isBrowser(): boolean {   return (typeof window !== 'undefined' && typeof window.document !== 'undefined'); }  export function isNode(): boolean {   // Checking only for `process` isn't enough to identify whether or not we're in a Node   // environment, because Webpack by default will polyfill the `process`. While we can discern   // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and   // might not be future-proof. Instead we look at the stringified version of `process` which   // is `[object process]` in Node and `[object Object]` when polyfilled.   return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; }  export function optimizeGroupPlayer(players: AnimationPlayer[]): AnimationPlayer {   switch (players.length) {     case 0:       return new NoopAnimationPlayer();     case 1:       return players[0];     default:       return new ɵAnimationGroupPlayer(players);   } }  export function normalizeKeyframes(     driver: AnimationDriver, normalizer: AnimationStyleNormalizer, element: any,     keyframes: Array<ɵStyleDataMap>, preStyles: ɵStyleDataMap = new Map(),     postStyles: ɵStyleDataMap = new Map()): Array<ɵStyleDataMap> {   const errors: Error[] = [];   const normalizedKeyframes: Array<ɵStyleDataMap> = [];   let previousOffset = -1;   let previousKeyframe: ɵStyleDataMap|null = null;   keyframes.forEach(kf => {     const offset = kf.get('offset') as number;     const isSameOffset = offset == previousOffset;     const normalizedKeyframe: ɵStyleDataMap = (isSameOffset && previousKeyframe) || new Map();     kf.forEach((val, prop) => {       let normalizedProp = prop;       let normalizedValue = val;       if (prop !== 'offset') {         normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);         switch (normalizedValue) {           case PRE_STYLE:             normalizedValue = preStyles.get(prop)!;             break;            case AUTO_STYLE:             normalizedValue = postStyles.get(prop)!;             break;            default:             normalizedValue =                 normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);             break;         }       }       normalizedKeyframe.set(normalizedProp, normalizedValue);     });     if (!isSameOffset) {       normalizedKeyframes.push(normalizedKeyframe);     }     previousKeyframe = normalizedKeyframe;     previousOffset = offset;   });   if (errors.length) {     throw animationFailed(errors);   }    return normalizedKeyframes; }  export function listenOnPlayer(     player: AnimationPlayer, eventName: string, event: AnimationEvent|undefined,     callback: (event: any) => any) {   switch (eventName) {     case 'start':       player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));       break;     case 'done':       player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));       break;     case 'destroy':       player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));       break;   } }  export function copyAnimationEvent(     e: AnimationEvent, phaseName: string, player: AnimationPlayer): AnimationEvent {   const totalTime = player.totalTime;   const disabled = (player as any).disabled ? true : false;   const event = makeAnimationEvent(       e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName,       totalTime == undefined ? e.totalTime : totalTime, disabled);   const data = (e as any)['_data'];   if (data != null) {     (event as any)['_data'] = data;   }   return event; }  export function makeAnimationEvent(     element: any, triggerName: string, fromState: string, toState: string, phaseName: string = '',     totalTime: number = 0, disabled?: boolean): AnimationEvent {   return {element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled}; }  export function getOrSetDefaultValue<T, V>(map: Map<T, V>, key: T, defaultValue: V) {   let value = map.get(key);   if (!value) {     map.set(key, value = defaultValue);   }   return value; }  export function parseTimelineCommand(command: string): [string, string] {   const separatorPos = command.indexOf(':');   const id = command.substring(1, separatorPos);   const action = command.slice(separatorPos + 1);   return [id, action]; }  let _contains: (elm1: any, elm2: any) => boolean = (elm1: any, elm2: any) => false; let _query: (element: any, selector: string, multi: boolean) => any[] =     (element: any, selector: string, multi: boolean) => {       return [];     }; let _documentElement: unknown|null = null;  export function getParentElement(element: any): unknown|null {   const parent = element.parentNode || element.host;  // consider host to support shadow DOM   if (parent === _documentElement) {     return null;   }   return parent; }  // Define utility methods for browsers and platform-server(domino) where Element // and utility methods exist. const _isNode = isNode(); if (_isNode || typeof Element !== 'undefined') {   if (!isBrowser()) {     _contains = (elm1, elm2) => elm1.contains(elm2);   } else {     // Read the document element in an IIFE that's been marked pure to avoid a top-level property     // read that may prevent tree-shaking.     _documentElement = /* @__PURE__ */ (() => document.documentElement)();     _contains = (elm1, elm2) => {       while (elm2) {         if (elm2 === elm1) {           return true;         }         elm2 = getParentElement(elm2);       }       return false;     };   }    _query = (element: any, selector: string, multi: boolean): any[] => {     if (multi) {       return Array.from(element.querySelectorAll(selector));     }     const elem = element.querySelector(selector);     return elem ? [elem] : [];   }; }  function containsVendorPrefix(prop: string): boolean {   // Webkit is the only real popular vendor prefix nowadays   // cc: http://shouldiprefix.com/   return prop.substring(1, 6) == 'ebkit';  // webkit or Webkit }  let _CACHED_BODY: {style: any}|null = null; let _IS_WEBKIT = false; export function validateStyleProperty(prop: string): boolean {   if (!_CACHED_BODY) {     _CACHED_BODY = getBodyNode() || {};     _IS_WEBKIT = _CACHED_BODY!.style ? ('WebkitAppearance' in _CACHED_BODY!.style) : false;   }    let result = true;   if (_CACHED_BODY!.style && !containsVendorPrefix(prop)) {     result = prop in _CACHED_BODY!.style;     if (!result && _IS_WEBKIT) {       const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);       result = camelProp in _CACHED_BODY!.style;     }   }    return result; }  export function validateWebAnimatableStyleProperty(prop: string): boolean {   return ANIMATABLE_PROP_SET.has(prop); }  export function getBodyNode(): any|null {   if (typeof document != 'undefined') {     return document.body;   }   return null; }  export const containsElement = _contains; export const invokeQuery = _query;  export function hypenatePropsKeys(original: ɵStyleDataMap): ɵStyleDataMap {   const newMap: ɵStyleDataMap = new Map();   original.forEach((val, prop) => {     const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');     newMap.set(newProp, val);   });   return newMap; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, NoopAnimationPlayer} from '@angular/animations'; import {Injectable} from '@angular/core';  import {containsElement, getParentElement, invokeQuery, validateStyleProperty} from './shared';  /**  * @publicApi  */ @Injectable() export class NoopAnimationDriver implements AnimationDriver {   validateStyleProperty(prop: string): boolean {     return validateStyleProperty(prop);   }    matchesElement(_element: any, _selector: string): boolean {     // This method is deprecated and no longer in use so we return false.     return false;   }    containsElement(elm1: any, elm2: any): boolean {     return containsElement(elm1, elm2);   }    getParentElement(element: unknown): unknown {     return getParentElement(element);   }    query(element: any, selector: string, multi: boolean): any[] {     return invokeQuery(element, selector, multi);   }    computeStyle(element: any, prop: string, defaultValue?: string): string {     return defaultValue || '';   }    animate(       element: any, keyframes: Array<Map<string, string|number>>, duration: number, delay: number,       easing: string, previousPlayers: any[] = [],       scrubberAccessRequested?: boolean): AnimationPlayer {     return new NoopAnimationPlayer(duration, delay);   } }  /**  * @publicApi  */ export abstract class AnimationDriver {   static NOOP: AnimationDriver = (/* @__PURE__ */ new NoopAnimationDriver());    abstract validateStyleProperty(prop: string): boolean;    abstract validateAnimatableStyleProperty?: (prop: string) => boolean;    /**    * @deprecated No longer in use. Will be removed.    */   abstract matchesElement(element: any, selector: string): boolean;    abstract containsElement(elm1: any, elm2: any): boolean;    /**    * Obtains the parent element, if any. `null` is returned if the element does not have a parent.    */   abstract getParentElement(element: unknown): unknown;    abstract query(element: any, selector: string, multi: boolean): any[];    abstract computeStyle(element: any, prop: string, defaultValue?: string): string;    abstract animate(       element: any, keyframes: Array<Map<string, string|number>>, duration: number, delay: number,       easing?: string|null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateTimings, AnimationMetadata, AnimationMetadataType, AnimationOptions, sequence, ɵStyleData, ɵStyleDataMap} from '@angular/animations';  import {Ast as AnimationAst, AstVisitor as AnimationAstVisitor} from './dsl/animation_ast'; import {AnimationDslVisitor} from './dsl/animation_dsl_visitor'; import {invalidNodeType, invalidParamValue, invalidStyleParams, invalidTimingValue, negativeDelayValue, negativeStepValue} from './error_helpers'; import {isNode} from './render/shared';  export const ONE_SECOND = 1000;  export const SUBSTITUTION_EXPR_START = '{{'; export const SUBSTITUTION_EXPR_END = '}}'; export const ENTER_CLASSNAME = 'ng-enter'; export const LEAVE_CLASSNAME = 'ng-leave'; export const NG_TRIGGER_CLASSNAME = 'ng-trigger'; export const NG_TRIGGER_SELECTOR = '.ng-trigger'; export const NG_ANIMATING_CLASSNAME = 'ng-animating'; export const NG_ANIMATING_SELECTOR = '.ng-animating';  export function resolveTimingValue(value: string|number) {   if (typeof value == 'number') return value;    const matches = value.match(/^(-?[\\.\\d]+)(m?s)/);   if (!matches || matches.length < 2) return 0;    return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]); }  function _convertTimeValueToMS(value: number, unit: string): number {   switch (unit) {     case 's':       return value * ONE_SECOND;     default:  // ms or something else       return value;   } }  export function resolveTiming(     timings: string|number|AnimateTimings, errors: Error[], allowNegativeValues?: boolean) {   return timings.hasOwnProperty('duration') ?       <AnimateTimings>timings :       parseTimeExpression(<string|number>timings, errors, allowNegativeValues); }  function parseTimeExpression(     exp: string|number, errors: Error[], allowNegativeValues?: boolean): AnimateTimings {   const regex = /^(-?[\\.\\d]+)(m?s)(?:\\s+(-?[\\.\\d]+)(m?s))?(?:\\s+([-a-z]+(?:\\(.+?\\))?))?$/i;   let duration: number;   let delay: number = 0;   let easing: string = '';   if (typeof exp === 'string') {     const matches = exp.match(regex);     if (matches === null) {       errors.push(invalidTimingValue(exp));       return {duration: 0, delay: 0, easing: ''};     }      duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);      const delayMatch = matches[3];     if (delayMatch != null) {       delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);     }      const easingVal = matches[5];     if (easingVal) {       easing = easingVal;     }   } else {     duration = exp;   }    if (!allowNegativeValues) {     let containsErrors = false;     let startIndex = errors.length;     if (duration < 0) {       errors.push(negativeStepValue());       containsErrors = true;     }     if (delay < 0) {       errors.push(negativeDelayValue());       containsErrors = true;     }     if (containsErrors) {       errors.splice(startIndex, 0, invalidTimingValue(exp));     }   }    return {duration, delay, easing}; }  export function copyObj(     obj: {[key: string]: any}, destination: {[key: string]: any} = {}): {[key: string]: any} {   Object.keys(obj).forEach(prop => {     destination[prop] = obj[prop];   });   return destination; }  export function convertToMap(obj: ɵStyleData): ɵStyleDataMap {   const styleMap: ɵStyleDataMap = new Map();   Object.keys(obj).forEach(prop => {     const val = obj[prop];     styleMap.set(prop, val);   });   return styleMap; }  export function normalizeKeyframes(keyframes: Array<ɵStyleData>|                                    Array<ɵStyleDataMap>): Array<ɵStyleDataMap> {   if (!keyframes.length) {     return [];   }   if (keyframes[0] instanceof Map) {     return keyframes as Array<ɵStyleDataMap>;   }   return keyframes.map(kf => convertToMap(kf as ɵStyleData)); }  export function normalizeStyles(styles: ɵStyleDataMap|Array<ɵStyleDataMap>): ɵStyleDataMap {   const normalizedStyles: ɵStyleDataMap = new Map();   if (Array.isArray(styles)) {     styles.forEach(data => copyStyles(data, normalizedStyles));   } else {     copyStyles(styles, normalizedStyles);   }   return normalizedStyles; }  export function copyStyles(     styles: ɵStyleDataMap, destination: ɵStyleDataMap = new Map(),     backfill?: ɵStyleDataMap): ɵStyleDataMap {   if (backfill) {     for (let [prop, val] of backfill) {       destination.set(prop, val);     }   }   for (let [prop, val] of styles) {     destination.set(prop, val);   }   return destination; }  function getStyleAttributeString(element: any, key: string, value: string) {   // Return the key-value pair string to be added to the style attribute for the   // given CSS style key.   if (value) {     return key + ':' + value + ';';   } else {     return '';   } }  function writeStyleAttribute(element: any) {   // Read the style property of the element and manually reflect it to the   // style attribute. This is needed because Domino on platform-server doesn't   // understand the full set of allowed CSS properties and doesn't reflect some   // of them automatically.   let styleAttrValue = '';   for (let i = 0; i < element.style.length; i++) {     const key = element.style.item(i);     styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));   }   for (const key in element.style) {     // Skip internal Domino properties that don't need to be reflected.     if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {       continue;     }     const dashKey = camelCaseToDashCase(key);     styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);   }   element.setAttribute('style', styleAttrValue); }  export function setStyles(element: any, styles: ɵStyleDataMap, formerStyles?: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((val, prop) => {       const camelProp = dashCaseToCamelCase(prop);       if (formerStyles && !formerStyles.has(prop)) {         formerStyles.set(prop, element.style[camelProp]);       }       element.style[camelProp] = val;     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function eraseStyles(element: any, styles: ɵStyleDataMap) {   if (element['style']) {     styles.forEach((_, prop) => {       const camelProp = dashCaseToCamelCase(prop);       element.style[camelProp] = '';     });     // On the server set the 'style' attribute since it's not automatically reflected.     if (isNode()) {       writeStyleAttribute(element);     }   } }  export function normalizeAnimationEntry(steps: AnimationMetadata|                                         AnimationMetadata[]): AnimationMetadata {   if (Array.isArray(steps)) {     if (steps.length == 1) return steps[0];     return sequence(steps);   }   return steps as AnimationMetadata; }  export function validateStyleParams(     value: string|number|null|undefined, options: AnimationOptions, errors: Error[]) {   const params = options.params || {};   const matches = extractStyleParams(value);   if (matches.length) {     matches.forEach(varName => {       if (!params.hasOwnProperty(varName)) {         errors.push(invalidStyleParams(varName));       }     });   } }  const PARAM_REGEX =     new RegExp(`${SUBSTITUTION_EXPR_START}\\\\s*(.+?)\\\\s*${SUBSTITUTION_EXPR_END}`, 'g'); export function extractStyleParams(value: string|number|null|undefined): string[] {   let params: string[] = [];   if (typeof value === 'string') {     let match: any;     while (match = PARAM_REGEX.exec(value)) {       params.push(match[1] as string);     }     PARAM_REGEX.lastIndex = 0;   }   return params; }  export function interpolateParams(     value: string|number, params: {[name: string]: any}, errors: Error[]): string|number {   const original = value.toString();   const str = original.replace(PARAM_REGEX, (_, varName) => {     let localVal = params[varName];     // this means that the value was never overridden by the data passed in by the user     if (localVal == null) {       errors.push(invalidParamValue(varName));       localVal = '';     }     return localVal.toString();   });    // we do this to assert that numeric values stay as they are   return str == original ? value : str; }  export function iteratorToArray(iterator: any): any[] {   const arr: any[] = [];   let item = iterator.next();   while (!item.done) {     arr.push(item.value);     item = iterator.next();   }   return arr; }  const DASH_CASE_REGEXP = /-+([a-z0-9])/g; export function dashCaseToCamelCase(input: string): string {   return input.replace(DASH_CASE_REGEXP, (...m: any[]) => m[1].toUpperCase()); }  export function camelCaseToDashCase(input: string): string {   return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); }  export function allowPreviousPlayerStylesMerge(duration: number, delay: number) {   return duration === 0 || delay === 0; }  export function balancePreviousStylesIntoKeyframes(     element: any, keyframes: Array<ɵStyleDataMap>, previousStyles: ɵStyleDataMap) {   if (previousStyles.size && keyframes.length) {     let startingKeyframe = keyframes[0];     let missingStyleProps: string[] = [];     previousStyles.forEach((val, prop) => {       if (!startingKeyframe.has(prop)) {         missingStyleProps.push(prop);       }       startingKeyframe.set(prop, val);     });      if (missingStyleProps.length) {       for (let i = 1; i < keyframes.length; i++) {         let kf = keyframes[i];         missingStyleProps.forEach(prop => kf.set(prop, computeStyle(element, prop)));       }     }   }   return keyframes; }  export function visitDslNode(     visitor: AnimationDslVisitor, node: AnimationMetadata, context: any): any; export function visitDslNode(     visitor: AnimationAstVisitor, node: AnimationAst<AnimationMetadataType>, context: any): any; export function visitDslNode(visitor: any, node: any, context: any): any {   switch (node.type) {     case AnimationMetadataType.Trigger:       return visitor.visitTrigger(node, context);     case AnimationMetadataType.State:       return visitor.visitState(node, context);     case AnimationMetadataType.Transition:       return visitor.visitTransition(node, context);     case AnimationMetadataType.Sequence:       return visitor.visitSequence(node, context);     case AnimationMetadataType.Group:       return visitor.visitGroup(node, context);     case AnimationMetadataType.Animate:       return visitor.visitAnimate(node, context);     case AnimationMetadataType.Keyframes:       return visitor.visitKeyframes(node, context);     case AnimationMetadataType.Style:       return visitor.visitStyle(node, context);     case AnimationMetadataType.Reference:       return visitor.visitReference(node, context);     case AnimationMetadataType.AnimateChild:       return visitor.visitAnimateChild(node, context);     case AnimationMetadataType.AnimateRef:       return visitor.visitAnimateRef(node, context);     case AnimationMetadataType.Query:       return visitor.visitQuery(node, context);     case AnimationMetadataType.Stagger:       return visitor.visitStagger(node, context);     default:       throw invalidNodeType(node.type);   } }  export function computeStyle(element: any, prop: string): string {   return (<any>window.getComputedStyle(element))[prop]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  function createListOfWarnings(warnings: string[]): string {   const LINE_START = '\  - ';   return `${LINE_START}${warnings.filter(Boolean).map(warning => warning).join(LINE_START)}`; }  export function warnValidation(warnings: string[]): void {   NG_DEV_MODE && console.warn(`animation validation warnings:${createListOfWarnings(warnings)}`); }  export function warnTriggerBuild(name: string, warnings: string[]): void {   NG_DEV_MODE &&       console.warn(`The animation trigger \"${name}\" has built with the following warnings:${           createListOfWarnings(warnings)}`); }  export function warnRegister(warnings: string[]): void {   NG_DEV_MODE &&       console.warn(`Animation built with the following warnings:${createListOfWarnings(warnings)}`); }  export function triggerParsingWarnings(name: string, warnings: string[]): void {   NG_DEV_MODE &&       console.warn(`Animation parsing for the ${name} trigger presents the following warnings:${           createListOfWarnings(warnings)}`); }  export function pushUnrecognizedPropertiesWarning(warnings: string[], props: string[]): void {   if (props.length) {     warnings.push(`The following provided properties are not recognized: ${props.join(', ')}`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {invalidExpression, invalidTransitionAlias} from '../error_helpers';  export const ANY_STATE = '*'; export declare type TransitionMatcherFn =     (fromState: any, toState: any, element: any, params: {[key: string]: any}) => boolean;  export function parseTransitionExpr(     transitionValue: string|TransitionMatcherFn, errors: Error[]): TransitionMatcherFn[] {   const expressions: TransitionMatcherFn[] = [];   if (typeof transitionValue == 'string') {     transitionValue.split(/\\s*,\\s*/).forEach(         str => parseInnerTransitionStr(str, expressions, errors));   } else {     expressions.push(<TransitionMatcherFn>transitionValue);   }   return expressions; }  function parseInnerTransitionStr(     eventStr: string, expressions: TransitionMatcherFn[], errors: Error[]) {   if (eventStr[0] == ':') {     const result = parseAnimationAlias(eventStr, errors);     if (typeof result == 'function') {       expressions.push(result);       return;     }     eventStr = result;   }    const match = eventStr.match(/^(\\*|[-\\w]+)\\s*(<?[=-]>)\\s*(\\*|[-\\w]+)$/);   if (match == null || match.length < 4) {     errors.push(invalidExpression(eventStr));     return expressions;   }    const fromState = match[1];   const separator = match[2];   const toState = match[3];   expressions.push(makeLambdaFromStates(fromState, toState));    const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;   if (separator[0] == '<' && !isFullAnyStateExpr) {     expressions.push(makeLambdaFromStates(toState, fromState));   } }  function parseAnimationAlias(alias: string, errors: Error[]): string|TransitionMatcherFn {   switch (alias) {     case ':enter':       return 'void => *';     case ':leave':       return '* => void';     case ':increment':       return (fromState: any, toState: any): boolean => parseFloat(toState) > parseFloat(fromState);     case ':decrement':       return (fromState: any, toState: any): boolean => parseFloat(toState) < parseFloat(fromState);     default:       errors.push(invalidTransitionAlias(alias));       return '* => *';   } }  // DO NOT REFACTOR ... keep the follow set instantiations // with the values intact (closure compiler for some reason // removes follow-up lines that add the values outside of // the constructor... const TRUE_BOOLEAN_VALUES = new Set<string>(['true', '1']); const FALSE_BOOLEAN_VALUES = new Set<string>(['false', '0']);  function makeLambdaFromStates(lhs: string, rhs: string): TransitionMatcherFn {   const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);   const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);    return (fromState: any, toState: any): boolean => {     let lhsMatch = lhs == ANY_STATE || lhs == fromState;     let rhsMatch = rhs == ANY_STATE || rhs == toState;      if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {       lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);     }     if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {       rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);     }      return lhsMatch && rhsMatch;   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateTimings, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationMetadataType, AnimationOptions, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, AUTO_STYLE, style, ɵStyleDataMap} from '@angular/animations';  import {invalidDefinition, invalidKeyframes, invalidOffset, invalidParallelAnimation, invalidProperty, invalidStagger, invalidState, invalidStyleValue, invalidTrigger, keyframeOffsetsOutOfOrder, keyframesMissingOffsets} from '../error_helpers'; import {AnimationDriver} from '../render/animation_driver'; import {getOrSetDefaultValue} from '../render/shared'; import {convertToMap, copyObj, extractStyleParams, iteratorToArray, NG_ANIMATING_SELECTOR, NG_TRIGGER_SELECTOR, normalizeAnimationEntry, resolveTiming, SUBSTITUTION_EXPR_START, validateStyleParams, visitDslNode} from '../util'; import {pushUnrecognizedPropertiesWarning} from '../warning_helpers';  import {AnimateAst, AnimateChildAst, AnimateRefAst, Ast, DynamicTimingAst, GroupAst, KeyframesAst, QueryAst, ReferenceAst, SequenceAst, StaggerAst, StateAst, StyleAst, TimingAst, TransitionAst, TriggerAst} from './animation_ast'; import {AnimationDslVisitor} from './animation_dsl_visitor'; import {parseTransitionExpr} from './animation_transition_expr';  const SELF_TOKEN = ':self'; const SELF_TOKEN_REGEX = new RegExp(`\\s*${SELF_TOKEN}\\s*,?`, 'g');  /*  * [Validation]  * The visitor code below will traverse the animation AST generated by the animation verb functions  * (the output is a tree of objects) and attempt to perform a series of validations on the data. The  * following corner-cases will be validated:  *  * 1. Overlap of animations  * Given that a CSS property cannot be animated in more than one place at the same time, it's  * important that this behavior is detected and validated. The way in which this occurs is that  * each time a style property is examined, a string-map containing the property will be updated with  * the start and end times for when the property is used within an animation step.  *  * If there are two or more parallel animations that are currently running (these are invoked by the  * group()) on the same element then the validator will throw an error. Since the start/end timing  * values are collected for each property then if the current animation step is animating the same  * property and its timing values fall anywhere into the window of time that the property is  * currently being animated within then this is what causes an error.  *  * 2. Timing values  * The validator will validate to see if a timing value of `duration delay easing` or  * `durationNumber` is valid or not.  *  * (note that upon validation the code below will replace the timing data with an object containing  * {duration,delay,easing}.  *  * 3. Offset Validation  * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().  * Offsets within keyframes() are considered valid when:  *  *   - No offsets are used at all  *   - Each style() entry contains an offset value  *   - Each offset is between 0 and 1  *   - Each offset is greater to or equal than the previous one  *  * Otherwise an error will be thrown.  */ export function buildAnimationAst(     driver: AnimationDriver, metadata: AnimationMetadata|AnimationMetadata[], errors: Error[],     warnings: string[]): Ast<AnimationMetadataType> {   return new AnimationAstBuilderVisitor(driver).build(metadata, errors, warnings); }  const ROOT_SELECTOR = '';  export class AnimationAstBuilderVisitor implements AnimationDslVisitor {   constructor(private _driver: AnimationDriver) {}    build(metadata: AnimationMetadata|AnimationMetadata[], errors: Error[], warnings: string[]):       Ast<AnimationMetadataType> {     const context = new AnimationAstBuilderContext(errors);     this._resetContextStyleTimingState(context);     const ast =         <Ast<AnimationMetadataType>>visitDslNode(this, normalizeAnimationEntry(metadata), context);      if (typeof ngDevMode === 'undefined' || ngDevMode) {       if (context.unsupportedCSSPropertiesFound.size) {         pushUnrecognizedPropertiesWarning(             warnings,             [...context.unsupportedCSSPropertiesFound.keys()],         );       }     }      return ast;   }    private _resetContextStyleTimingState(context: AnimationAstBuilderContext) {     context.currentQuerySelector = ROOT_SELECTOR;     context.collectedStyles = new Map<string, Map<string, StyleTimeTuple>>();     context.collectedStyles.set(ROOT_SELECTOR, new Map());     context.currentTime = 0;   }    visitTrigger(metadata: AnimationTriggerMetadata, context: AnimationAstBuilderContext):       TriggerAst {     let queryCount = context.queryCount = 0;     let depCount = context.depCount = 0;     const states: StateAst[] = [];     const transitions: TransitionAst[] = [];     if (metadata.name.charAt(0) == '@') {       context.errors.push(invalidTrigger());     }      metadata.definitions.forEach(def => {       this._resetContextStyleTimingState(context);       if (def.type == AnimationMetadataType.State) {         const stateDef = def as AnimationStateMetadata;         const name = stateDef.name;         name.toString().split(/\\s*,\\s*/).forEach(n => {           stateDef.name = n;           states.push(this.visitState(stateDef, context));         });         stateDef.name = name;       } else if (def.type == AnimationMetadataType.Transition) {         const transition = this.visitTransition(def as AnimationTransitionMetadata, context);         queryCount += transition.queryCount;         depCount += transition.depCount;         transitions.push(transition);       } else {         context.errors.push(invalidDefinition());       }     });      return {       type: AnimationMetadataType.Trigger,       name: metadata.name,       states,       transitions,       queryCount,       depCount,       options: null     };   }    visitState(metadata: AnimationStateMetadata, context: AnimationAstBuilderContext): StateAst {     const styleAst = this.visitStyle(metadata.styles, context);     const astParams = (metadata.options && metadata.options.params) || null;     if (styleAst.containsDynamicStyles) {       const missingSubs = new Set<string>();       const params = astParams || {};       styleAst.styles.forEach(style => {         if (style instanceof Map) {           style.forEach(value => {             extractStyleParams(value).forEach(sub => {               if (!params.hasOwnProperty(sub)) {                 missingSubs.add(sub);               }             });           });         }       });       if (missingSubs.size) {         const missingSubsArr = iteratorToArray(missingSubs.values());         context.errors.push(invalidState(metadata.name, missingSubsArr));       }     }      return {       type: AnimationMetadataType.State,       name: metadata.name,       style: styleAst,       options: astParams ? {params: astParams} : null     };   }    visitTransition(metadata: AnimationTransitionMetadata, context: AnimationAstBuilderContext):       TransitionAst {     context.queryCount = 0;     context.depCount = 0;     const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);     const matchers = parseTransitionExpr(metadata.expr, context.errors);      return {       type: AnimationMetadataType.Transition,       matchers,       animation,       queryCount: context.queryCount,       depCount: context.depCount,       options: normalizeAnimationOptions(metadata.options)     };   }    visitSequence(metadata: AnimationSequenceMetadata, context: AnimationAstBuilderContext):       SequenceAst {     return {       type: AnimationMetadataType.Sequence,       steps: metadata.steps.map(s => visitDslNode(this, s, context)),       options: normalizeAnimationOptions(metadata.options)     };   }    visitGroup(metadata: AnimationGroupMetadata, context: AnimationAstBuilderContext): GroupAst {     const currentTime = context.currentTime;     let furthestTime = 0;     const steps = metadata.steps.map(step => {       context.currentTime = currentTime;       const innerAst = visitDslNode(this, step, context);       furthestTime = Math.max(furthestTime, context.currentTime);       return innerAst;     });      context.currentTime = furthestTime;     return {       type: AnimationMetadataType.Group,       steps,       options: normalizeAnimationOptions(metadata.options)     };   }    visitAnimate(metadata: AnimationAnimateMetadata, context: AnimationAstBuilderContext):       AnimateAst {     const timingAst = constructTimingAst(metadata.timings, context.errors);     context.currentAnimateTimings = timingAst;     let styleAst: StyleAst|KeyframesAst;     let styleMetadata: AnimationStyleMetadata|AnimationKeyframesSequenceMetadata =         metadata.styles ? metadata.styles : style({});     if (styleMetadata.type == AnimationMetadataType.Keyframes) {       styleAst = this.visitKeyframes(styleMetadata as AnimationKeyframesSequenceMetadata, context);     } else {       let styleMetadata = metadata.styles as AnimationStyleMetadata;       let isEmpty = false;       if (!styleMetadata) {         isEmpty = true;         const newStyleData: {[prop: string]: string|number} = {};         if (timingAst.easing) {           newStyleData['easing'] = timingAst.easing;         }         styleMetadata = style(newStyleData);       }       context.currentTime += timingAst.duration + timingAst.delay;       const _styleAst = this.visitStyle(styleMetadata, context);       _styleAst.isEmptyStep = isEmpty;       styleAst = _styleAst;     }      context.currentAnimateTimings = null;     return {       type: AnimationMetadataType.Animate,       timings: timingAst,       style: styleAst,       options: null     };   }    visitStyle(metadata: AnimationStyleMetadata, context: AnimationAstBuilderContext): StyleAst {     const ast = this._makeStyleAst(metadata, context);     this._validateStyleAst(ast, context);     return ast;   }    private _makeStyleAst(metadata: AnimationStyleMetadata, context: AnimationAstBuilderContext):       StyleAst {     const styles: Array<(ɵStyleDataMap | string)> = [];     const metadataStyles = Array.isArray(metadata.styles) ? metadata.styles : [metadata.styles];      for (let styleTuple of metadataStyles) {       if (typeof styleTuple === 'string') {         if (styleTuple === AUTO_STYLE) {           styles.push(styleTuple);         } else {           context.errors.push(invalidStyleValue(styleTuple));         }       } else {         styles.push(convertToMap(styleTuple));       }     }      let containsDynamicStyles = false;     let collectedEasing: string|null = null;     styles.forEach(styleData => {       if (styleData instanceof Map) {         if (styleData.has('easing')) {           collectedEasing = styleData.get('easing') as string;           styleData.delete('easing');         }         if (!containsDynamicStyles) {           for (let value of styleData.values()) {             if (value!.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {               containsDynamicStyles = true;               break;             }           }         }       }     });      return {       type: AnimationMetadataType.Style,       styles,       easing: collectedEasing,       offset: metadata.offset,       containsDynamicStyles,       options: null     };   }    private _validateStyleAst(ast: StyleAst, context: AnimationAstBuilderContext): void {     const timings = context.currentAnimateTimings;     let endTime = context.currentTime;     let startTime = context.currentTime;     if (timings && startTime > 0) {       startTime -= timings.duration + timings.delay;     }      ast.styles.forEach(tuple => {       if (typeof tuple === 'string') return;        tuple.forEach((value, prop) => {         if (typeof ngDevMode === 'undefined' || ngDevMode) {           if (!this._driver.validateStyleProperty(prop)) {             tuple.delete(prop);             context.unsupportedCSSPropertiesFound.add(prop);             return;           }         }          // This is guaranteed to have a defined Map at this querySelector location making it         // safe to add the assertion here. It is set as a default empty map in prior methods.         const collectedStyles = context.collectedStyles.get(context.currentQuerySelector!)!;         const collectedEntry = collectedStyles.get(prop);         let updateCollectedStyle = true;         if (collectedEntry) {           if (startTime != endTime && startTime >= collectedEntry.startTime &&               endTime <= collectedEntry.endTime) {             context.errors.push(invalidParallelAnimation(                 prop, collectedEntry.startTime, collectedEntry.endTime, startTime, endTime));             updateCollectedStyle = false;           }            // we always choose the smaller start time value since we           // want to have a record of the entire animation window where           // the style property is being animated in between           startTime = collectedEntry.startTime;         }          if (updateCollectedStyle) {           collectedStyles.set(prop, {startTime, endTime});         }          if (context.options) {           validateStyleParams(value, context.options, context.errors);         }       });     });   }    visitKeyframes(metadata: AnimationKeyframesSequenceMetadata, context: AnimationAstBuilderContext):       KeyframesAst {     const ast: KeyframesAst = {type: AnimationMetadataType.Keyframes, styles: [], options: null};     if (!context.currentAnimateTimings) {       context.errors.push(invalidKeyframes());       return ast;     }      const MAX_KEYFRAME_OFFSET = 1;      let totalKeyframesWithOffsets = 0;     const offsets: number[] = [];     let offsetsOutOfOrder = false;     let keyframesOutOfRange = false;     let previousOffset: number = 0;      const keyframes: StyleAst[] = metadata.steps.map(styles => {       const style = this._makeStyleAst(styles, context);       let offsetVal: number|null =           style.offset != null ? style.offset : consumeOffset(style.styles);       let offset: number = 0;       if (offsetVal != null) {         totalKeyframesWithOffsets++;         offset = style.offset = offsetVal;       }       keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;       offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;       previousOffset = offset;       offsets.push(offset);       return style;     });      if (keyframesOutOfRange) {       context.errors.push(invalidOffset());     }      if (offsetsOutOfOrder) {       context.errors.push(keyframeOffsetsOutOfOrder());     }      const length = metadata.steps.length;     let generatedOffset = 0;     if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {       context.errors.push(keyframesMissingOffsets());     } else if (totalKeyframesWithOffsets == 0) {       generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);     }      const limit = length - 1;     const currentTime = context.currentTime;     const currentAnimateTimings = context.currentAnimateTimings!;     const animateDuration = currentAnimateTimings.duration;     keyframes.forEach((kf, i) => {       const offset = generatedOffset > 0 ? (i == limit ? 1 : (generatedOffset * i)) : offsets[i];       const durationUpToThisFrame = offset * animateDuration;       context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;       currentAnimateTimings.duration = durationUpToThisFrame;       this._validateStyleAst(kf, context);       kf.offset = offset;        ast.styles.push(kf);     });      return ast;   }    visitReference(metadata: AnimationReferenceMetadata, context: AnimationAstBuilderContext):       ReferenceAst {     return {       type: AnimationMetadataType.Reference,       animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),       options: normalizeAnimationOptions(metadata.options)     };   }    visitAnimateChild(metadata: AnimationAnimateChildMetadata, context: AnimationAstBuilderContext):       AnimateChildAst {     context.depCount++;     return {       type: AnimationMetadataType.AnimateChild,       options: normalizeAnimationOptions(metadata.options)     };   }    visitAnimateRef(metadata: AnimationAnimateRefMetadata, context: AnimationAstBuilderContext):       AnimateRefAst {     return {       type: AnimationMetadataType.AnimateRef,       animation: this.visitReference(metadata.animation, context),       options: normalizeAnimationOptions(metadata.options)     };   }    visitQuery(metadata: AnimationQueryMetadata, context: AnimationAstBuilderContext): QueryAst {     const parentSelector = context.currentQuerySelector!;     const options = (metadata.options || {}) as AnimationQueryOptions;      context.queryCount++;     context.currentQuery = metadata;     const [selector, includeSelf] = normalizeSelector(metadata.selector);     context.currentQuerySelector =         parentSelector.length ? (parentSelector + ' ' + selector) : selector;     getOrSetDefaultValue(context.collectedStyles, context.currentQuerySelector, new Map());      const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);     context.currentQuery = null;     context.currentQuerySelector = parentSelector;      return {       type: AnimationMetadataType.Query,       selector,       limit: options.limit || 0,       optional: !!options.optional,       includeSelf,       animation,       originalSelector: metadata.selector,       options: normalizeAnimationOptions(metadata.options)     };   }    visitStagger(metadata: AnimationStaggerMetadata, context: AnimationAstBuilderContext):       StaggerAst {     if (!context.currentQuery) {       context.errors.push(invalidStagger());     }     const timings = metadata.timings === 'full' ?         {duration: 0, delay: 0, easing: 'full'} :         resolveTiming(metadata.timings, context.errors, true);      return {       type: AnimationMetadataType.Stagger,       animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),       timings,       options: null     };   } }  function normalizeSelector(selector: string): [string, boolean] {   const hasAmpersand = selector.split(/\\s*,\\s*/).find(token => token == SELF_TOKEN) ? true : false;   if (hasAmpersand) {     selector = selector.replace(SELF_TOKEN_REGEX, '');   }    // Note: the :enter and :leave aren't normalized here since those   // selectors are filled in at runtime during timeline building   selector = selector.replace(/@\\*/g, NG_TRIGGER_SELECTOR)                  .replace(/@\\w+/g, match => NG_TRIGGER_SELECTOR + '-' + match.slice(1))                  .replace(/:animating/g, NG_ANIMATING_SELECTOR);    return [selector, hasAmpersand]; }   function normalizeParams(obj: {[key: string]: any}|any): {[key: string]: any}|null {   return obj ? copyObj(obj) : null; }  export type StyleTimeTuple = {   startTime: number; endTime: number; };  export class AnimationAstBuilderContext {   public queryCount: number = 0;   public depCount: number = 0;   public currentTransition: AnimationTransitionMetadata|null = null;   public currentQuery: AnimationQueryMetadata|null = null;   public currentQuerySelector: string|null = null;   public currentAnimateTimings: TimingAst|null = null;   public currentTime: number = 0;   public collectedStyles = new Map<string, Map<string, StyleTimeTuple>>();   public options: AnimationOptions|null = null;   public unsupportedCSSPropertiesFound: Set<string> = new Set<string>();   constructor(public errors: Error[]) {} }  type OffsetStyles = string|ɵStyleDataMap;  function consumeOffset(styles: OffsetStyles|Array<OffsetStyles>): number|null {   if (typeof styles == 'string') return null;    let offset: number|null = null;    if (Array.isArray(styles)) {     styles.forEach(styleTuple => {       if (styleTuple instanceof Map && styleTuple.has('offset')) {         const obj = styleTuple as ɵStyleDataMap;         offset = parseFloat(obj.get('offset') as string);         obj.delete('offset');       }     });   } else if (styles instanceof Map && styles.has('offset')) {     const obj = styles;     offset = parseFloat(obj.get('offset') as string);     obj.delete('offset');   }   return offset; }  function constructTimingAst(value: string|number|AnimateTimings, errors: Error[]) {   if (value.hasOwnProperty('duration')) {     return value as AnimateTimings;   }    if (typeof value == 'number') {     const duration = resolveTiming(value, errors).duration;     return makeTimingAst(duration, 0, '');   }    const strValue = value as string;   const isDynamic = strValue.split(/\\s+/).some(v => v.charAt(0) == '{' && v.charAt(1) == '{');   if (isDynamic) {     const ast = makeTimingAst(0, 0, '') as any;     ast.dynamic = true;     ast.strValue = strValue;     return ast as DynamicTimingAst;   }    const timings = resolveTiming(strValue, errors);   return makeTimingAst(timings.duration, timings.delay, timings.easing); }  function normalizeAnimationOptions(options: AnimationOptions|null): AnimationOptions {   if (options) {     options = copyObj(options);     if (options['params']) {       options['params'] = normalizeParams(options['params'])!;     }   } else {     options = {};   }   return options; }  function makeTimingAst(duration: number, delay: number, easing: string|null): TimingAst {   return {duration, delay, easing}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ɵStyleDataMap} from '@angular/animations';  import {AnimationEngineInstruction, AnimationTransitionInstructionType} from '../render/animation_engine_instruction';  export interface AnimationTimelineInstruction extends AnimationEngineInstruction {   element: any;   keyframes: Array<ɵStyleDataMap>;   preStyleProps: string[];   postStyleProps: string[];   duration: number;   delay: number;   totalTime: number;   easing: string|null;   stretchStartingKeyframe?: boolean;   subTimeline: boolean; }  export function createTimelineInstruction(     element: any, keyframes: Array<ɵStyleDataMap>, preStyleProps: string[],     postStyleProps: string[], duration: number, delay: number, easing: string|null = null,     subTimeline: boolean = false): AnimationTimelineInstruction {   return {     type: AnimationTransitionInstructionType.TimelineAnimation,     element,     keyframes,     preStyleProps,     postStyleProps,     duration,     delay,     totalTime: duration + delay,     easing,     subTimeline   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationTimelineInstruction} from './animation_timeline_instruction';  export class ElementInstructionMap {   private _map = new Map<any, AnimationTimelineInstruction[]>();    get(element: any): AnimationTimelineInstruction[] {     return this._map.get(element) || [];   }    append(element: any, instructions: AnimationTimelineInstruction[]) {     let existingInstructions = this._map.get(element);     if (!existingInstructions) {       this._map.set(element, existingInstructions = []);     }     existingInstructions.push(...instructions);   }    has(element: any): boolean {     return this._map.has(element);   }    clear() {     this._map.clear();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimateChildOptions, AnimateTimings, AnimationMetadataType, AnimationOptions, AnimationQueryOptions, AUTO_STYLE, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {invalidQuery} from '../error_helpers'; import {AnimationDriver} from '../render/animation_driver'; import {copyStyles, interpolateParams, iteratorToArray, resolveTiming, resolveTimingValue, visitDslNode} from '../util';  import {AnimateAst, AnimateChildAst, AnimateRefAst, Ast, AstVisitor, DynamicTimingAst, GroupAst, KeyframesAst, QueryAst, ReferenceAst, SequenceAst, StaggerAst, StateAst, StyleAst, TimingAst, TransitionAst, TriggerAst} from './animation_ast'; import {AnimationTimelineInstruction, createTimelineInstruction} from './animation_timeline_instruction'; import {ElementInstructionMap} from './element_instruction_map';  const ONE_FRAME_IN_MILLISECONDS = 1; const ENTER_TOKEN = ':enter'; const ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g'); const LEAVE_TOKEN = ':leave'; const LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');  /*  * The code within this file aims to generate web-animations-compatible keyframes from Angular's  * animation DSL code.  *  * The code below will be converted from:  *  * ```  * sequence([  *   style({ opacity: 0 }),  *   animate(1000, style({ opacity: 0 }))  * ])  * ```  *  * To:  * ```  * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]  * duration = 1000  * delay = 0  * easing = ''  * ```  *  * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a  * combination of AST traversal and merge-sort-like algorithms are used.  *  * [AST Traversal]  * Each of the animation verbs, when executed, will return an string-map object representing what  * type of action it is (style, animate, group, etc...) and the data associated with it. This means  * that when functional composition mix of these functions is evaluated (like in the example above)  * then it will end up producing a tree of objects representing the animation itself.  *  * When this animation object tree is processed by the visitor code below it will visit each of the  * verb statements within the visitor. And during each visit it will build the context of the  * animation keyframes by interacting with the `TimelineBuilder`.  *  * [TimelineBuilder]  * This class is responsible for tracking the styles and building a series of keyframe objects for a  * timeline between a start and end time. The builder starts off with an initial timeline and each  * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a  * `sequence()` then it will generate a sub timeline for each step as well as a new one after  * they are complete.  *  * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub  * timeline was created (based on one of the cases above) then the parent timeline will attempt to  * merge the styles used within the sub timelines into itself (only with group() this will happen).  * This happens with a merge operation (much like how the merge works in mergeSort) and it will only  * copy the most recently used styles from the sub timelines into the parent timeline. This ensures  * that if the styles are used later on in another phase of the animation then they will be the most  * up-to-date values.  *  * [How Missing Styles Are Updated]  * Each timeline has a `backFill` property which is responsible for filling in new styles into  * already processed keyframes if a new style shows up later within the animation sequence.  *  * ```  * sequence([  *   style({ width: 0 }),  *   animate(1000, style({ width: 100 })),  *   animate(1000, style({ width: 200 })),  *   animate(1000, style({ width: 300 }))  *   animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere  * else  * ])  * ```  *  * What is happening here is that the `height` value is added later in the sequence, but is missing  * from all previous animation steps. Therefore when a keyframe is created it would also be missing  * from all previous keyframes up until where it is first used. For the timeline keyframe generation  * to properly fill in the style it will place the previous value (the value from the parent  * timeline) or a default value of `*` into the backFill map. The `copyStyles` method in util.ts  * handles propagating that backfill map to the styles object.  *  * When a sub-timeline is created it will have its own backFill property. This is done so that  * styles present within the sub-timeline do not accidentally seep into the previous/future timeline  * keyframes  *  * [Validation]  * The code in this file is not responsible for validation. That functionality happens with within  * the `AnimationValidatorVisitor` code.  */ export function buildAnimationTimelines(     driver: AnimationDriver, rootElement: any, ast: Ast<AnimationMetadataType>,     enterClassName: string, leaveClassName: string, startingStyles: ɵStyleDataMap = new Map(),     finalStyles: ɵStyleDataMap = new Map(), options: AnimationOptions,     subInstructions?: ElementInstructionMap, errors: Error[] = []): AnimationTimelineInstruction[] {   return new AnimationTimelineBuilderVisitor().buildKeyframes(       driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles,       options, subInstructions, errors); }  export class AnimationTimelineBuilderVisitor implements AstVisitor {   buildKeyframes(       driver: AnimationDriver, rootElement: any, ast: Ast<AnimationMetadataType>,       enterClassName: string, leaveClassName: string, startingStyles: ɵStyleDataMap,       finalStyles: ɵStyleDataMap, options: AnimationOptions,       subInstructions?: ElementInstructionMap,       errors: Error[] = []): AnimationTimelineInstruction[] {     subInstructions = subInstructions || new ElementInstructionMap();     const context = new AnimationTimelineContext(         driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);     context.options = options;     const delay = options.delay ? resolveTimingValue(options.delay) : 0;     context.currentTimeline.delayNextStep(delay);     context.currentTimeline.setStyles([startingStyles], null, context.errors, options);      visitDslNode(this, ast, context);      // this checks to see if an actual animation happened     const timelines = context.timelines.filter(timeline => timeline.containsAnimation());      // note: we just want to apply the final styles for the rootElement, so we do not     //       just apply the styles to the last timeline but the last timeline which     //       element is the root one (basically `*`-styles are replaced with the actual     //       state style values only for the root element)     if (timelines.length && finalStyles.size) {       let lastRootTimeline: TimelineBuilder|undefined;       for (let i = timelines.length - 1; i >= 0; i--) {         const timeline = timelines[i];         if (timeline.element === rootElement) {           lastRootTimeline = timeline;           break;         }       }       if (lastRootTimeline && !lastRootTimeline.allowOnlyTimelineStyles()) {         lastRootTimeline.setStyles([finalStyles], null, context.errors, options);       }     }     return timelines.length ?         timelines.map(timeline => timeline.buildKeyframes()) :         [createTimelineInstruction(rootElement, [], [], [], 0, delay, '', false)];   }    visitTrigger(ast: TriggerAst, context: AnimationTimelineContext): any {     // these values are not visited in this AST   }    visitState(ast: StateAst, context: AnimationTimelineContext): any {     // these values are not visited in this AST   }    visitTransition(ast: TransitionAst, context: AnimationTimelineContext): any {     // these values are not visited in this AST   }    visitAnimateChild(ast: AnimateChildAst, context: AnimationTimelineContext): any {     const elementInstructions = context.subInstructions.get(context.element);     if (elementInstructions) {       const innerContext = context.createSubContext(ast.options);       const startTime = context.currentTimeline.currentTime;       const endTime = this._visitSubInstructions(           elementInstructions, innerContext, innerContext.options as AnimateChildOptions);       if (startTime != endTime) {         // we do this on the upper context because we created a sub context for         // the sub child animations         context.transformIntoNewTimeline(endTime);       }     }     context.previousNode = ast;   }    visitAnimateRef(ast: AnimateRefAst, context: AnimationTimelineContext): any {     const innerContext = context.createSubContext(ast.options);     innerContext.transformIntoNewTimeline();     this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);     this.visitReference(ast.animation, innerContext);     context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);     context.previousNode = ast;   }    private _applyAnimationRefDelays(       animationsRefsOptions: (AnimationOptions|null)[], context: AnimationTimelineContext,       innerContext: AnimationTimelineContext) {     for (const animationRefOptions of animationsRefsOptions) {       const animationDelay = animationRefOptions?.delay;       if (animationDelay) {         const animationDelayValue = typeof animationDelay === 'number' ?             animationDelay :             resolveTimingValue(interpolateParams(                 animationDelay, animationRefOptions?.params ?? {}, context.errors));         innerContext.delayNextStep(animationDelayValue);       }     }   }    private _visitSubInstructions(       instructions: AnimationTimelineInstruction[], context: AnimationTimelineContext,       options: AnimateChildOptions): number {     const startTime = context.currentTimeline.currentTime;     let furthestTime = startTime;      // this is a special-case for when a user wants to skip a sub     // animation from being fired entirely.     const duration = options.duration != null ? resolveTimingValue(options.duration) : null;     const delay = options.delay != null ? resolveTimingValue(options.delay) : null;     if (duration !== 0) {       instructions.forEach(instruction => {         const instructionTimings =             context.appendInstructionToTimeline(instruction, duration, delay);         furthestTime =             Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);       });     }      return furthestTime;   }    visitReference(ast: ReferenceAst, context: AnimationTimelineContext) {     context.updateOptions(ast.options, true);     visitDslNode(this, ast.animation, context);     context.previousNode = ast;   }    visitSequence(ast: SequenceAst, context: AnimationTimelineContext) {     const subContextCount = context.subContextCount;     let ctx = context;     const options = ast.options;      if (options && (options.params || options.delay)) {       ctx = context.createSubContext(options);       ctx.transformIntoNewTimeline();        if (options.delay != null) {         if (ctx.previousNode.type == AnimationMetadataType.Style) {           ctx.currentTimeline.snapshotCurrentStyles();           ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;         }          const delay = resolveTimingValue(options.delay);         ctx.delayNextStep(delay);       }     }      if (ast.steps.length) {       ast.steps.forEach(s => visitDslNode(this, s, ctx));        // this is here just in case the inner steps only contain or end with a style() call       ctx.currentTimeline.applyStylesToKeyframe();        // this means that some animation function within the sequence       // ended up creating a sub timeline (which means the current       // timeline cannot overlap with the contents of the sequence)       if (ctx.subContextCount > subContextCount) {         ctx.transformIntoNewTimeline();       }     }      context.previousNode = ast;   }    visitGroup(ast: GroupAst, context: AnimationTimelineContext) {     const innerTimelines: TimelineBuilder[] = [];     let furthestTime = context.currentTimeline.currentTime;     const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;      ast.steps.forEach(s => {       const innerContext = context.createSubContext(ast.options);       if (delay) {         innerContext.delayNextStep(delay);       }        visitDslNode(this, s, innerContext);       furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);       innerTimelines.push(innerContext.currentTimeline);     });      // this operation is run after the AST loop because otherwise     // if the parent timeline's collected styles were updated then     // it would pass in invalid data into the new-to-be forked items     innerTimelines.forEach(         timeline => context.currentTimeline.mergeTimelineCollectedStyles(timeline));     context.transformIntoNewTimeline(furthestTime);     context.previousNode = ast;   }    private _visitTiming(ast: TimingAst, context: AnimationTimelineContext): AnimateTimings {     if ((ast as DynamicTimingAst).dynamic) {       const strValue = (ast as DynamicTimingAst).strValue;       const timingValue =           context.params ? interpolateParams(strValue, context.params, context.errors) : strValue;       return resolveTiming(timingValue, context.errors);     } else {       return {duration: ast.duration, delay: ast.delay, easing: ast.easing};     }   }    visitAnimate(ast: AnimateAst, context: AnimationTimelineContext) {     const timings = context.currentAnimateTimings = this._visitTiming(ast.timings, context);     const timeline = context.currentTimeline;     if (timings.delay) {       context.incrementTime(timings.delay);       timeline.snapshotCurrentStyles();     }      const style = ast.style;     if (style.type == AnimationMetadataType.Keyframes) {       this.visitKeyframes(style, context);     } else {       context.incrementTime(timings.duration);       this.visitStyle(style as StyleAst, context);       timeline.applyStylesToKeyframe();     }      context.currentAnimateTimings = null;     context.previousNode = ast;   }    visitStyle(ast: StyleAst, context: AnimationTimelineContext) {     const timeline = context.currentTimeline;     const timings = context.currentAnimateTimings!;      // this is a special case for when a style() call     // directly follows  an animate() call (but not inside of an animate() call)     if (!timings && timeline.hasCurrentStyleProperties()) {       timeline.forwardFrame();     }      const easing = (timings && timings.easing) || ast.easing;     if (ast.isEmptyStep) {       timeline.applyEmptyStep(easing);     } else {       timeline.setStyles(ast.styles, easing, context.errors, context.options);     }      context.previousNode = ast;   }    visitKeyframes(ast: KeyframesAst, context: AnimationTimelineContext) {     const currentAnimateTimings = context.currentAnimateTimings!;     const startTime = (context.currentTimeline!).duration;     const duration = currentAnimateTimings.duration;     const innerContext = context.createSubContext();     const innerTimeline = innerContext.currentTimeline;     innerTimeline.easing = currentAnimateTimings.easing;      ast.styles.forEach(step => {       const offset: number = step.offset || 0;       innerTimeline.forwardTime(offset * duration);       innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);       innerTimeline.applyStylesToKeyframe();     });      // this will ensure that the parent timeline gets all the styles from     // the child even if the new timeline below is not used     context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);      // we do this because the window between this timeline and the sub timeline     // should ensure that the styles within are exactly the same as they were before     context.transformIntoNewTimeline(startTime + duration);     context.previousNode = ast;   }    visitQuery(ast: QueryAst, context: AnimationTimelineContext) {     // in the event that the first step before this is a style step we need     // to ensure the styles are applied before the children are animated     const startTime = context.currentTimeline.currentTime;     const options = (ast.options || {}) as AnimationQueryOptions;     const delay = options.delay ? resolveTimingValue(options.delay) : 0;      if (delay &&         (context.previousNode.type === AnimationMetadataType.Style ||          (startTime == 0 && context.currentTimeline.hasCurrentStyleProperties()))) {       context.currentTimeline.snapshotCurrentStyles();       context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;     }      let furthestTime = startTime;     const elms = context.invokeQuery(         ast.selector, ast.originalSelector, ast.limit, ast.includeSelf,         options.optional ? true : false, context.errors);      context.currentQueryTotal = elms.length;     let sameElementTimeline: TimelineBuilder|null = null;     elms.forEach((element, i) => {       context.currentQueryIndex = i;       const innerContext = context.createSubContext(ast.options, element);       if (delay) {         innerContext.delayNextStep(delay);       }        if (element === context.element) {         sameElementTimeline = innerContext.currentTimeline;       }        visitDslNode(this, ast.animation, innerContext);        // this is here just incase the inner steps only contain or end       // with a style() call (which is here to signal that this is a preparatory       // call to style an element before it is animated again)       innerContext.currentTimeline.applyStylesToKeyframe();        const endTime = innerContext.currentTimeline.currentTime;       furthestTime = Math.max(furthestTime, endTime);     });      context.currentQueryIndex = 0;     context.currentQueryTotal = 0;     context.transformIntoNewTimeline(furthestTime);      if (sameElementTimeline) {       context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);       context.currentTimeline.snapshotCurrentStyles();     }      context.previousNode = ast;   }    visitStagger(ast: StaggerAst, context: AnimationTimelineContext) {     const parentContext = context.parentContext!;     const tl = context.currentTimeline;     const timings = ast.timings;     const duration = Math.abs(timings.duration);     const maxTime = duration * (context.currentQueryTotal - 1);     let delay = duration * context.currentQueryIndex;      let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;     switch (staggerTransformer) {       case 'reverse':         delay = maxTime - delay;         break;       case 'full':         delay = parentContext.currentStaggerTime;         break;     }      const timeline = context.currentTimeline;     if (delay) {       timeline.delayNextStep(delay);     }      const startingTime = timeline.currentTime;     visitDslNode(this, ast.animation, context);     context.previousNode = ast;      // time = duration + delay     // the reason why this computation is so complex is because     // the inner timeline may either have a delay value or a stretched     // keyframe depending on if a subtimeline is not used or is used.     parentContext.currentStaggerTime =         (tl.currentTime - startingTime) + (tl.startTime - parentContext.currentTimeline.startTime);   } }  export declare type StyleAtTime = {   time: number; value: string | number; };  const DEFAULT_NOOP_PREVIOUS_NODE = <Ast<AnimationMetadataType>>{}; export class AnimationTimelineContext {   public parentContext: AnimationTimelineContext|null = null;   public currentTimeline: TimelineBuilder;   public currentAnimateTimings: AnimateTimings|null = null;   public previousNode: Ast<AnimationMetadataType> = DEFAULT_NOOP_PREVIOUS_NODE;   public subContextCount = 0;   public options: AnimationOptions = {};   public currentQueryIndex: number = 0;   public currentQueryTotal: number = 0;   public currentStaggerTime: number = 0;    constructor(       private _driver: AnimationDriver, public element: any,       public subInstructions: ElementInstructionMap, private _enterClassName: string,       private _leaveClassName: string, public errors: Error[], public timelines: TimelineBuilder[],       initialTimeline?: TimelineBuilder) {     this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);     timelines.push(this.currentTimeline);   }    get params() {     return this.options.params;   }    updateOptions(options: AnimationOptions|null, skipIfExists?: boolean) {     if (!options) return;      const newOptions = options as any;     let optionsToUpdate = this.options;      // NOTE: this will get patched up when other animation methods support duration overrides     if (newOptions.duration != null) {       (optionsToUpdate as any).duration = resolveTimingValue(newOptions.duration);     }      if (newOptions.delay != null) {       optionsToUpdate.delay = resolveTimingValue(newOptions.delay);     }      const newParams = newOptions.params;     if (newParams) {       let paramsToUpdate: {[name: string]: any} = optionsToUpdate.params!;       if (!paramsToUpdate) {         paramsToUpdate = this.options.params = {};       }        Object.keys(newParams).forEach(name => {         if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {           paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);         }       });     }   }    private _copyOptions() {     const options: AnimationOptions = {};     if (this.options) {       const oldParams = this.options.params;       if (oldParams) {         const params: {[name: string]: any} = options['params'] = {};         Object.keys(oldParams).forEach(name => {           params[name] = oldParams[name];         });       }     }     return options;   }    createSubContext(options: AnimationOptions|null = null, element?: any, newTime?: number):       AnimationTimelineContext {     const target = element || this.element;     const context = new AnimationTimelineContext(         this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName,         this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));     context.previousNode = this.previousNode;     context.currentAnimateTimings = this.currentAnimateTimings;      context.options = this._copyOptions();     context.updateOptions(options);      context.currentQueryIndex = this.currentQueryIndex;     context.currentQueryTotal = this.currentQueryTotal;     context.parentContext = this;     this.subContextCount++;     return context;   }    transformIntoNewTimeline(newTime?: number) {     this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;     this.currentTimeline = this.currentTimeline.fork(this.element, newTime);     this.timelines.push(this.currentTimeline);     return this.currentTimeline;   }    appendInstructionToTimeline(       instruction: AnimationTimelineInstruction, duration: number|null,       delay: number|null): AnimateTimings {     const updatedTimings: AnimateTimings = {       duration: duration != null ? duration : instruction.duration,       delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,       easing: ''     };     const builder = new SubTimelineBuilder(         this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps,         instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);     this.timelines.push(builder);     return updatedTimings;   }    incrementTime(time: number) {     this.currentTimeline.forwardTime(this.currentTimeline.duration + time);   }    delayNextStep(delay: number) {     // negative delays are not yet supported     if (delay > 0) {       this.currentTimeline.delayNextStep(delay);     }   }    invokeQuery(       selector: string, originalSelector: string, limit: number, includeSelf: boolean,       optional: boolean, errors: Error[]): any[] {     let results: any[] = [];     if (includeSelf) {       results.push(this.element);     }     if (selector.length > 0) {  // only if :self is used then the selector can be empty       selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);       selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);       const multi = limit != 1;       let elements = this._driver.query(this.element, selector, multi);       if (limit !== 0) {         elements = limit < 0 ? elements.slice(elements.length + limit, elements.length) :                                elements.slice(0, limit);       }       results.push(...elements);     }      if (!optional && results.length == 0) {       errors.push(invalidQuery(originalSelector));     }     return results;   } }  export class TimelineBuilder {   public duration: number = 0;   // TODO(issue/24571): remove '!'.   public easing!: string|null;   private _previousKeyframe: ɵStyleDataMap = new Map();   private _currentKeyframe: ɵStyleDataMap = new Map();   private _keyframes = new Map<number, ɵStyleDataMap>();   private _styleSummary = new Map<string, StyleAtTime>();   private _localTimelineStyles: ɵStyleDataMap = new Map();   private _globalTimelineStyles: ɵStyleDataMap;   private _pendingStyles: ɵStyleDataMap = new Map();   private _backFill: ɵStyleDataMap = new Map();   private _currentEmptyStepKeyframe: ɵStyleDataMap|null = null;    constructor(       private _driver: AnimationDriver, public element: any, public startTime: number,       private _elementTimelineStylesLookup?: Map<any, ɵStyleDataMap>) {     if (!this._elementTimelineStylesLookup) {       this._elementTimelineStylesLookup = new Map<any, ɵStyleDataMap>();     }      this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element)!;     if (!this._globalTimelineStyles) {       this._globalTimelineStyles = this._localTimelineStyles;       this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);     }     this._loadKeyframe();   }    containsAnimation(): boolean {     switch (this._keyframes.size) {       case 0:         return false;       case 1:         return this.hasCurrentStyleProperties();       default:         return true;     }   }    hasCurrentStyleProperties(): boolean {     return this._currentKeyframe.size > 0;   }    get currentTime() {     return this.startTime + this.duration;   }    delayNextStep(delay: number) {     // in the event that a style() step is placed right before a stagger()     // and that style() step is the very first style() value in the animation     // then we need to make a copy of the keyframe [0, copy, 1] so that the delay     // properly applies the style() values to work with the stagger...     const hasPreStyleStep = this._keyframes.size === 1 && this._pendingStyles.size;      if (this.duration || hasPreStyleStep) {       this.forwardTime(this.currentTime + delay);       if (hasPreStyleStep) {         this.snapshotCurrentStyles();       }     } else {       this.startTime += delay;     }   }    fork(element: any, currentTime?: number): TimelineBuilder {     this.applyStylesToKeyframe();     return new TimelineBuilder(         this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);   }    private _loadKeyframe() {     if (this._currentKeyframe) {       this._previousKeyframe = this._currentKeyframe;     }     this._currentKeyframe = this._keyframes.get(this.duration)!;     if (!this._currentKeyframe) {       this._currentKeyframe = new Map();       this._keyframes.set(this.duration, this._currentKeyframe);     }   }    forwardFrame() {     this.duration += ONE_FRAME_IN_MILLISECONDS;     this._loadKeyframe();   }    forwardTime(time: number) {     this.applyStylesToKeyframe();     this.duration = time;     this._loadKeyframe();   }    private _updateStyle(prop: string, value: string|number) {     this._localTimelineStyles.set(prop, value);     this._globalTimelineStyles.set(prop, value);     this._styleSummary.set(prop, {time: this.currentTime, value});   }    allowOnlyTimelineStyles() {     return this._currentEmptyStepKeyframe !== this._currentKeyframe;   }    applyEmptyStep(easing: string|null) {     if (easing) {       this._previousKeyframe.set('easing', easing);     }      // special case for animate(duration):     // all missing styles are filled with a `*` value then     // if any destination styles are filled in later on the same     // keyframe then they will override the overridden styles     // We use `_globalTimelineStyles` here because there may be     // styles in previous keyframes that are not present in this timeline     for (let [prop, value] of this._globalTimelineStyles) {       this._backFill.set(prop, value || AUTO_STYLE);       this._currentKeyframe.set(prop, AUTO_STYLE);     }     this._currentEmptyStepKeyframe = this._currentKeyframe;   }    setStyles(       input: Array<(ɵStyleDataMap | string)>, easing: string|null, errors: Error[],       options?: AnimationOptions) {     if (easing) {       this._previousKeyframe.set('easing', easing);     }     const params = (options && options.params) || {};     const styles = flattenStyles(input, this._globalTimelineStyles);     for (let [prop, value] of styles) {       const val = interpolateParams(value, params, errors);       this._pendingStyles.set(prop, val);       if (!this._localTimelineStyles.has(prop)) {         this._backFill.set(prop, this._globalTimelineStyles.get(prop) ?? AUTO_STYLE);       }       this._updateStyle(prop, val);     }   }    applyStylesToKeyframe() {     if (this._pendingStyles.size == 0) return;      this._pendingStyles.forEach((val, prop) => {       this._currentKeyframe.set(prop, val);     });     this._pendingStyles.clear();      this._localTimelineStyles.forEach((val, prop) => {       if (!this._currentKeyframe.has(prop)) {         this._currentKeyframe.set(prop, val);       }     });   }    snapshotCurrentStyles() {     for (let [prop, val] of this._localTimelineStyles) {       this._pendingStyles.set(prop, val);       this._updateStyle(prop, val);     }   }    getFinalKeyframe() {     return this._keyframes.get(this.duration);   }    get properties() {     const properties: string[] = [];     for (let prop in this._currentKeyframe) {       properties.push(prop);     }     return properties;   }    mergeTimelineCollectedStyles(timeline: TimelineBuilder) {     timeline._styleSummary.forEach((details1, prop) => {       const details0 = this._styleSummary.get(prop);       if (!details0 || details1.time > details0.time) {         this._updateStyle(prop, details1.value);       }     });   }    buildKeyframes(): AnimationTimelineInstruction {     this.applyStylesToKeyframe();     const preStyleProps = new Set<string>();     const postStyleProps = new Set<string>();     const isEmpty = this._keyframes.size === 1 && this.duration === 0;      let finalKeyframes: Array<ɵStyleDataMap> = [];     this._keyframes.forEach((keyframe, time) => {       const finalKeyframe = copyStyles(keyframe, new Map(), this._backFill);       finalKeyframe.forEach((value, prop) => {         if (value === PRE_STYLE) {           preStyleProps.add(prop);         } else if (value === AUTO_STYLE) {           postStyleProps.add(prop);         }       });       if (!isEmpty) {         finalKeyframe.set('offset', time / this.duration);       }       finalKeyframes.push(finalKeyframe);     });      const preProps: string[] = preStyleProps.size ? iteratorToArray(preStyleProps.values()) : [];     const postProps: string[] = postStyleProps.size ? iteratorToArray(postStyleProps.values()) : [];      // special case for a 0-second animation (which is designed just to place styles onscreen)     if (isEmpty) {       const kf0 = finalKeyframes[0];       const kf1 = new Map(kf0);       kf0.set('offset', 0);       kf1.set('offset', 1);       finalKeyframes = [kf0, kf1];     }      return createTimelineInstruction(         this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime,         this.easing, false);   } }  class SubTimelineBuilder extends TimelineBuilder {   public timings: AnimateTimings;    constructor(       driver: AnimationDriver, element: any, public keyframes: Array<ɵStyleDataMap>,       public preStyleProps: string[], public postStyleProps: string[], timings: AnimateTimings,       private _stretchStartingKeyframe: boolean = false) {     super(driver, element, timings.delay);     this.timings = {duration: timings.duration, delay: timings.delay, easing: timings.easing};   }    override containsAnimation(): boolean {     return this.keyframes.length > 1;   }    override buildKeyframes(): AnimationTimelineInstruction {     let keyframes = this.keyframes;     let {delay, duration, easing} = this.timings;     if (this._stretchStartingKeyframe && delay) {       const newKeyframes: Array<ɵStyleDataMap> = [];       const totalTime = duration + delay;       const startingGap = delay / totalTime;        // the original starting keyframe now starts once the delay is done       const newFirstKeyframe = copyStyles(keyframes[0]);       newFirstKeyframe.set('offset', 0);       newKeyframes.push(newFirstKeyframe);        const oldFirstKeyframe = copyStyles(keyframes[0]);       oldFirstKeyframe.set('offset', roundOffset(startingGap));       newKeyframes.push(oldFirstKeyframe);        /*         When the keyframe is stretched then it means that the delay before the animation         starts is gone. Instead the first keyframe is placed at the start of the animation         and it is then copied to where it starts when the original delay is over. This basically         means nothing animates during that delay, but the styles are still rendered. For this         to work the original offset values that exist in the original keyframes must be \"warped\"         so that they can take the new keyframe + delay into account.          delay=1000, duration=1000, keyframes = 0 .5 1          turns into          delay=0, duration=2000, keyframes = 0 .33 .66 1        */        // offsets between 1 ... n -1 are all warped by the keyframe stretch       const limit = keyframes.length - 1;       for (let i = 1; i <= limit; i++) {         let kf = copyStyles(keyframes[i]);         const oldOffset = kf.get('offset') as number;         const timeAtKeyframe = delay + oldOffset * duration;         kf.set('offset', roundOffset(timeAtKeyframe / totalTime));         newKeyframes.push(kf);       }        // the new starting keyframe should be added at the start       duration = totalTime;       delay = 0;       easing = '';        keyframes = newKeyframes;     }      return createTimelineInstruction(         this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing,         true);   } }  function roundOffset(offset: number, decimalPoints = 3): number {   const mult = Math.pow(10, decimalPoints - 1);   return Math.round(offset * mult) / mult; }  function flattenStyles(input: Array<(ɵStyleDataMap | string)>, allStyles: ɵStyleDataMap) {   const styles: ɵStyleDataMap = new Map();   let allProperties: string[]|IterableIterator<string>;   input.forEach(token => {     if (token === '*') {       allProperties = allProperties || allStyles.keys();       for (let prop of allProperties) {         styles.set(prop, AUTO_STYLE);       }     } else {       copyStyles(token as ɵStyleDataMap, styles);     }   });   return styles; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationMetadataType, AnimationOptions, ɵStyleDataMap} from '@angular/animations';  import {buildingFailed, validationFailed} from '../error_helpers'; import {AnimationDriver} from '../render/animation_driver'; import {ENTER_CLASSNAME, LEAVE_CLASSNAME, normalizeStyles} from '../util'; import {warnValidation} from '../warning_helpers';  import {Ast} from './animation_ast'; import {buildAnimationAst} from './animation_ast_builder'; import {buildAnimationTimelines} from './animation_timeline_builder'; import {AnimationTimelineInstruction} from './animation_timeline_instruction'; import {ElementInstructionMap} from './element_instruction_map';  export class Animation {   private _animationAst: Ast<AnimationMetadataType>;   constructor(private _driver: AnimationDriver, input: AnimationMetadata|AnimationMetadata[]) {     const errors: Error[] = [];     const warnings: string[] = [];     const ast = buildAnimationAst(_driver, input, errors, warnings);     if (errors.length) {       throw validationFailed(errors);     }     if (warnings.length) {       warnValidation(warnings);     }     this._animationAst = ast;   }    buildTimelines(       element: any, startingStyles: ɵStyleDataMap|Array<ɵStyleDataMap>,       destinationStyles: ɵStyleDataMap|Array<ɵStyleDataMap>, options: AnimationOptions,       subInstructions?: ElementInstructionMap): AnimationTimelineInstruction[] {     const start = Array.isArray(startingStyles) ? normalizeStyles(startingStyles) :                                                   <ɵStyleDataMap>startingStyles;     const dest = Array.isArray(destinationStyles) ? normalizeStyles(destinationStyles) :                                                     <ɵStyleDataMap>destinationStyles;     const errors: any = [];     subInstructions = subInstructions || new ElementInstructionMap();     const result = buildAnimationTimelines(         this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest,         options, subInstructions, errors);     if (errors.length) {       throw buildingFailed(errors);     }     return result;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @publicApi  */ export abstract class AnimationStyleNormalizer {   abstract normalizePropertyName(propertyName: string, errors: Error[]): string;   abstract normalizeStyleValue(       userProvidedProperty: string, normalizedProperty: string, value: string|number,       errors: Error[]): string; }  /**  * @publicApi  */ export class NoopAnimationStyleNormalizer {   normalizePropertyName(propertyName: string, errors: Error[]): string {     return propertyName;   }    normalizeStyleValue(       userProvidedProperty: string, normalizedProperty: string, value: string|number,       errors: Error[]): string {     return <any>value;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {invalidCssUnitValue} from '../../error_helpers'; import {dashCaseToCamelCase} from '../../util';  import {AnimationStyleNormalizer} from './animation_style_normalizer';  const DIMENSIONAL_PROP_SET = new Set([   'width',   'height',   'minWidth',   'minHeight',   'maxWidth',   'maxHeight',   'left',   'top',   'bottom',   'right',   'fontSize',   'outlineWidth',   'outlineOffset',   'paddingTop',   'paddingLeft',   'paddingBottom',   'paddingRight',   'marginTop',   'marginLeft',   'marginBottom',   'marginRight',   'borderRadius',   'borderWidth',   'borderTopWidth',   'borderLeftWidth',   'borderRightWidth',   'borderBottomWidth',   'textIndent',   'perspective' ]);  export class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {   override normalizePropertyName(propertyName: string, errors: Error[]): string {     return dashCaseToCamelCase(propertyName);   }    override normalizeStyleValue(       userProvidedProperty: string, normalizedProperty: string, value: string|number,       errors: Error[]): string {     let unit: string = '';     const strVal = value.toString().trim();      if (DIMENSIONAL_PROP_SET.has(normalizedProperty) && value !== 0 && value !== '0') {       if (typeof value === 'number') {         unit = 'px';       } else {         const valAndSuffixMatch = value.match(/^[+-]?[\\d\\.]+([a-z]*)$/);         if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {           errors.push(invalidCssUnitValue(userProvidedProperty, value));         }       }     }     return strVal + unit;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵStyleDataMap} from '@angular/animations';  import {AnimationEngineInstruction, AnimationTransitionInstructionType} from '../render/animation_engine_instruction';  import {AnimationTimelineInstruction} from './animation_timeline_instruction';  export interface AnimationTransitionInstruction extends AnimationEngineInstruction {   element: any;   triggerName: string;   isRemovalTransition: boolean;   fromState: string;   fromStyles: ɵStyleDataMap;   toState: string;   toStyles: ɵStyleDataMap;   timelines: AnimationTimelineInstruction[];   queriedElements: any[];   preStyleProps: Map<any, Set<string>>;   postStyleProps: Map<any, Set<string>>;   totalTime: number;   errors?: Error[]; }  export function createTransitionInstruction(     element: any, triggerName: string, fromState: string, toState: string,     isRemovalTransition: boolean, fromStyles: ɵStyleDataMap, toStyles: ɵStyleDataMap,     timelines: AnimationTimelineInstruction[], queriedElements: any[],     preStyleProps: Map<any, Set<string>>, postStyleProps: Map<any, Set<string>>, totalTime: number,     errors?: Error[]): AnimationTransitionInstruction {   return {     type: AnimationTransitionInstructionType.TransitionAnimation,     element,     triggerName,     isRemovalTransition,     fromState,     fromStyles,     toState,     toStyles,     timelines,     queriedElements,     preStyleProps,     postStyleProps,     totalTime,     errors   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationOptions, ɵStyleDataMap} from '@angular/animations';  import {AnimationDriver} from '../render/animation_driver'; import {getOrSetDefaultValue} from '../render/shared'; import {copyObj, interpolateParams, iteratorToArray} from '../util';  import {StyleAst, TransitionAst} from './animation_ast'; import {buildAnimationTimelines} from './animation_timeline_builder'; import {AnimationTimelineInstruction} from './animation_timeline_instruction'; import {TransitionMatcherFn} from './animation_transition_expr'; import {AnimationTransitionInstruction, createTransitionInstruction} from './animation_transition_instruction'; import {ElementInstructionMap} from './element_instruction_map'; import {AnimationStyleNormalizer} from './style_normalization/animation_style_normalizer';  const EMPTY_OBJECT = {};  export class AnimationTransitionFactory {   constructor(       private _triggerName: string, public ast: TransitionAst,       private _stateStyles: Map<string, AnimationStateStyles>) {}    match(currentState: any, nextState: any, element: any, params: {[key: string]: any}): boolean {     return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);   }    buildStyles(stateName: string|boolean|undefined, params: {[key: string]: any}, errors: Error[]):       ɵStyleDataMap {     let styler = this._stateStyles.get('*');     if (stateName !== undefined) {       styler = this._stateStyles.get(stateName?.toString()) || styler;     }     return styler ? styler.buildStyles(params, errors) : new Map();   }    build(       driver: AnimationDriver, element: any, currentState: any, nextState: any,       enterClassName: string, leaveClassName: string, currentOptions?: AnimationOptions,       nextOptions?: AnimationOptions, subInstructions?: ElementInstructionMap,       skipAstBuild?: boolean): AnimationTransitionInstruction {     const errors: Error[] = [];      const transitionAnimationParams = this.ast.options && this.ast.options.params || EMPTY_OBJECT;     const currentAnimationParams = currentOptions && currentOptions.params || EMPTY_OBJECT;     const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);     const nextAnimationParams = nextOptions && nextOptions.params || EMPTY_OBJECT;     const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);      const queriedElements = new Set<any>();     const preStyleMap = new Map<any, Set<string>>();     const postStyleMap = new Map<any, Set<string>>();     const isRemoval = nextState === 'void';      const animationOptions: AnimationOptions = {       params: applyParamDefaults(nextAnimationParams, transitionAnimationParams),       delay: this.ast.options?.delay,     };      const timelines = skipAstBuild ?         [] :         buildAnimationTimelines(             driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles,             nextStateStyles, animationOptions, subInstructions, errors);      let totalTime = 0;     timelines.forEach(tl => {       totalTime = Math.max(tl.duration + tl.delay, totalTime);     });      if (errors.length) {       return createTransitionInstruction(           element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles,           nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);     }      timelines.forEach(tl => {       const elm = tl.element;       const preProps = getOrSetDefaultValue(preStyleMap, elm, new Set<string>());       tl.preStyleProps.forEach(prop => preProps.add(prop));        const postProps = getOrSetDefaultValue(postStyleMap, elm, new Set<string>());       tl.postStyleProps.forEach(prop => postProps.add(prop));        if (elm !== element) {         queriedElements.add(elm);       }     });      if (typeof ngDevMode === 'undefined' || ngDevMode) {       checkNonAnimatableInTimelines(timelines, this._triggerName, driver);     }      const queriedElementsList = iteratorToArray(queriedElements.values());     return createTransitionInstruction(         element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles,         nextStateStyles, timelines, queriedElementsList, preStyleMap, postStyleMap, totalTime);   } }  /**  * Checks inside a set of timelines if they try to animate a css property which is not considered  * animatable, in that case it prints a warning on the console.  * Besides that the function doesn't have any other effect.  *  * Note: this check is done here after the timelines are built instead of doing on a lower level so  * that we can make sure that the warning appears only once per instruction (we can aggregate here  * all the issues instead of finding them separately).  *  * @param timelines The built timelines for the current instruction.  * @param triggerName The name of the trigger for the current instruction.  * @param driver Animation driver used to perform the check.  *  */ function checkNonAnimatableInTimelines(     timelines: AnimationTimelineInstruction[], triggerName: string, driver: AnimationDriver): void {   if (!driver.validateAnimatableStyleProperty) {     return;   }    const allowedNonAnimatableProps = new Set<string>([     // 'easing' is a utility/synthetic prop we use to represent     // easing functions, it represents a property of the animation     // which is not animatable but different values can be used     // in different steps     'easing'   ]);    const invalidNonAnimatableProps = new Set<string>();    timelines.forEach(({keyframes}) => {     const nonAnimatablePropsInitialValues = new Map<string, string|number>();     keyframes.forEach(keyframe => {       const entriesToCheck =           Array.from(keyframe.entries()).filter(([prop]) => !allowedNonAnimatableProps.has(prop));       for (const [prop, value] of entriesToCheck) {         if (!driver.validateAnimatableStyleProperty!(prop)) {           if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {             const propInitialValue = nonAnimatablePropsInitialValues.get(prop);             if (propInitialValue !== value) {               invalidNonAnimatableProps.add(prop);             }           } else {             nonAnimatablePropsInitialValues.set(prop, value);           }         }       }     });   });    if (invalidNonAnimatableProps.size > 0) {     console.warn(         `Warning: The animation trigger \"${triggerName}\" is attempting to animate the following` +         ' not animatable properties: ' + Array.from(invalidNonAnimatableProps).join(', ') + '\ ' +         '(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)');   } }  function oneOrMoreTransitionsMatch(     matchFns: TransitionMatcherFn[], currentState: any, nextState: any, element: any,     params: {[key: string]: any}): boolean {   return matchFns.some(fn => fn(currentState, nextState, element, params)); }  function applyParamDefaults(userParams: Record<string, any>, defaults: Record<string, any>) {   const result: Record<string, any> = copyObj(defaults);    for (const key in userParams) {     if (userParams.hasOwnProperty(key) && userParams[key] != null) {       result[key] = userParams[key];     }   }    return result; }  export class AnimationStateStyles {   constructor(       private styles: StyleAst, private defaultParams: {[key: string]: any},       private normalizer: AnimationStyleNormalizer) {}    buildStyles(params: {[key: string]: any}, errors: Error[]): ɵStyleDataMap {     const finalStyles: ɵStyleDataMap = new Map();     const combinedParams = copyObj(this.defaultParams);     Object.keys(params).forEach(key => {       const value = params[key];       if (value !== null) {         combinedParams[key] = value;       }     });     this.styles.styles.forEach(value => {       if (typeof value !== 'string') {         value.forEach((val, prop) => {           if (val) {             val = interpolateParams(val, combinedParams, errors);           }           const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);           val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);           finalStyles.set(prop, val);         });       }     });     return finalStyles;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadataType, ɵStyleDataMap} from '@angular/animations';  import {SequenceAst, TransitionAst, TriggerAst} from './animation_ast'; import {AnimationStateStyles, AnimationTransitionFactory} from './animation_transition_factory'; import {AnimationStyleNormalizer} from './style_normalization/animation_style_normalizer';    export function buildTrigger(     name: string, ast: TriggerAst, normalizer: AnimationStyleNormalizer): AnimationTrigger {   return new AnimationTrigger(name, ast, normalizer); }  export class AnimationTrigger {   public transitionFactories: AnimationTransitionFactory[] = [];   public fallbackTransition: AnimationTransitionFactory;   public states = new Map<string, AnimationStateStyles>();    constructor(       public name: string, public ast: TriggerAst, private _normalizer: AnimationStyleNormalizer) {     ast.states.forEach(ast => {       const defaultParams = (ast.options && ast.options.params) || {};       this.states.set(ast.name, new AnimationStateStyles(ast.style, defaultParams, _normalizer));     });      balanceProperties(this.states, 'true', '1');     balanceProperties(this.states, 'false', '0');      ast.transitions.forEach(ast => {       this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));     });     this.fallbackTransition = createFallbackTransition(name, this.states, this._normalizer);   }    get containsQueries() {     return this.ast.queryCount > 0;   }    matchTransition(currentState: any, nextState: any, element: any, params: {[key: string]: any}):       AnimationTransitionFactory|null {     const entry =         this.transitionFactories.find(f => f.match(currentState, nextState, element, params));     return entry || null;   }    matchStyles(currentState: any, params: {[key: string]: any}, errors: Error[]): ɵStyleDataMap {     return this.fallbackTransition.buildStyles(currentState, params, errors);   } }  function createFallbackTransition(     triggerName: string, states: Map<string, AnimationStateStyles>,     normalizer: AnimationStyleNormalizer): AnimationTransitionFactory {   const matchers = [(fromState: any, toState: any) => true];   const animation: SequenceAst = {type: AnimationMetadataType.Sequence, steps: [], options: null};   const transition: TransitionAst = {     type: AnimationMetadataType.Transition,     animation,     matchers,     options: null,     queryCount: 0,     depCount: 0   };   return new AnimationTransitionFactory(triggerName, transition, states); }  function balanceProperties(     stateMap: Map<string, AnimationStateStyles>, key1: string, key2: string) {   if (stateMap.has(key1)) {     if (!stateMap.has(key2)) {       stateMap.set(key2, stateMap.get(key1)!);     }   } else if (stateMap.has(key2)) {     stateMap.set(key1, stateMap.get(key2)!);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationMetadataType, AnimationOptions, AnimationPlayer, AUTO_STYLE, ɵStyleDataMap} from '@angular/animations';  import {Ast} from '../dsl/animation_ast'; import {buildAnimationAst} from '../dsl/animation_ast_builder'; import {buildAnimationTimelines} from '../dsl/animation_timeline_builder'; import {AnimationTimelineInstruction} from '../dsl/animation_timeline_instruction'; import {ElementInstructionMap} from '../dsl/element_instruction_map'; import {AnimationStyleNormalizer} from '../dsl/style_normalization/animation_style_normalizer'; import {createAnimationFailed, missingOrDestroyedAnimation, missingPlayer, registerFailed} from '../error_helpers'; import {ENTER_CLASSNAME, LEAVE_CLASSNAME} from '../util'; import {warnRegister} from '../warning_helpers';  import {AnimationDriver} from './animation_driver'; import {getOrSetDefaultValue, listenOnPlayer, makeAnimationEvent, normalizeKeyframes, optimizeGroupPlayer} from './shared';  const EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();  export class TimelineAnimationEngine {   private _animations = new Map<string, Ast<AnimationMetadataType>>();   private _playersById = new Map<string, AnimationPlayer>();   public players: AnimationPlayer[] = [];    constructor(       public bodyNode: any, private _driver: AnimationDriver,       private _normalizer: AnimationStyleNormalizer) {}    register(id: string, metadata: AnimationMetadata|AnimationMetadata[]) {     const errors: Error[] = [];     const warnings: string[] = [];     const ast = buildAnimationAst(this._driver, metadata, errors, warnings);     if (errors.length) {       throw registerFailed(errors);     } else {       if (warnings.length) {         warnRegister(warnings);       }       this._animations.set(id, ast);     }   }    private _buildPlayer(       i: AnimationTimelineInstruction, preStyles: ɵStyleDataMap,       postStyles?: ɵStyleDataMap): AnimationPlayer {     const element = i.element;     const keyframes = normalizeKeyframes(         this._driver, this._normalizer, element, i.keyframes, preStyles, postStyles);     return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);   }    create(id: string, element: any, options: AnimationOptions = {}): AnimationPlayer {     const errors: Error[] = [];     const ast = this._animations.get(id);     let instructions: AnimationTimelineInstruction[];      const autoStylesMap = new Map<any, ɵStyleDataMap>();      if (ast) {       instructions = buildAnimationTimelines(           this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, new Map(), new Map(),           options, EMPTY_INSTRUCTION_MAP, errors);       instructions.forEach(inst => {         const styles = getOrSetDefaultValue(             autoStylesMap, inst.element, new Map<string, string|number|null>());         inst.postStyleProps.forEach(prop => styles.set(prop, null));       });     } else {       errors.push(missingOrDestroyedAnimation());       instructions = [];     }      if (errors.length) {       throw createAnimationFailed(errors);     }      autoStylesMap.forEach((styles, element) => {       styles.forEach((_, prop) => {         styles.set(prop, this._driver.computeStyle(element, prop, AUTO_STYLE));       });     });      const players = instructions.map(i => {       const styles = autoStylesMap.get(i.element);       return this._buildPlayer(i, new Map(), styles);     });     const player = optimizeGroupPlayer(players);     this._playersById.set(id, player);     player.onDestroy(() => this.destroy(id));      this.players.push(player);     return player;   }    destroy(id: string) {     const player = this._getPlayer(id);     player.destroy();     this._playersById.delete(id);     const index = this.players.indexOf(player);     if (index >= 0) {       this.players.splice(index, 1);     }   }    private _getPlayer(id: string): AnimationPlayer {     const player = this._playersById.get(id);     if (!player) {       throw missingPlayer(id);     }     return player;   }    listen(id: string, element: string, eventName: string, callback: (event: any) => any):       () => void {     // triggerName, fromState, toState are all ignored for timeline animations     const baseEvent = makeAnimationEvent(element, '', '', '');     listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);     return () => {};   }    command(id: string, element: any, command: string, args: any[]): void {     if (command == 'register') {       this.register(id, args[0] as AnimationMetadata | AnimationMetadata[]);       return;     }      if (command == 'create') {       const options = (args[0] || {}) as AnimationOptions;       this.create(id, element, options);       return;     }      const player = this._getPlayer(id);     switch (command) {       case 'play':         player.play();         break;       case 'pause':         player.pause();         break;       case 'reset':         player.reset();         break;       case 'restart':         player.restart();         break;       case 'finish':         player.finish();         break;       case 'init':         player.init();         break;       case 'setPosition':         player.setPosition(parseFloat(args[0] as string));         break;       case 'destroy':         this.destroy(id);         break;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationOptions, AnimationPlayer, AUTO_STYLE, NoopAnimationPlayer, ɵAnimationGroupPlayer as AnimationGroupPlayer, ɵPRE_STYLE as PRE_STYLE, ɵStyleDataMap} from '@angular/animations';  import {AnimationTimelineInstruction} from '../dsl/animation_timeline_instruction'; import {AnimationTransitionFactory} from '../dsl/animation_transition_factory'; import {AnimationTransitionInstruction} from '../dsl/animation_transition_instruction'; import {AnimationTrigger} from '../dsl/animation_trigger'; import {ElementInstructionMap} from '../dsl/element_instruction_map'; import {AnimationStyleNormalizer} from '../dsl/style_normalization/animation_style_normalizer'; import {missingEvent, missingTrigger, transitionFailed, triggerTransitionsFailed, unregisteredTrigger, unsupportedTriggerEvent} from '../error_helpers'; import {copyObj, ENTER_CLASSNAME, eraseStyles, LEAVE_CLASSNAME, NG_ANIMATING_CLASSNAME, NG_ANIMATING_SELECTOR, NG_TRIGGER_CLASSNAME, NG_TRIGGER_SELECTOR, setStyles} from '../util';  import {AnimationDriver} from './animation_driver'; import {getOrSetDefaultValue, listenOnPlayer, makeAnimationEvent, normalizeKeyframes, optimizeGroupPlayer} from './shared';  const QUEUED_CLASSNAME = 'ng-animate-queued'; const QUEUED_SELECTOR = '.ng-animate-queued'; const DISABLED_CLASSNAME = 'ng-animate-disabled'; const DISABLED_SELECTOR = '.ng-animate-disabled'; const STAR_CLASSNAME = 'ng-star-inserted'; const STAR_SELECTOR = '.ng-star-inserted';  const EMPTY_PLAYER_ARRAY: TransitionAnimationPlayer[] = []; const NULL_REMOVAL_STATE: ElementAnimationState = {   namespaceId: '',   setForRemoval: false,   setForMove: false,   hasAnimation: false,   removedBeforeQueried: false }; const NULL_REMOVED_QUERIED_STATE: ElementAnimationState = {   namespaceId: '',   setForMove: false,   setForRemoval: false,   hasAnimation: false,   removedBeforeQueried: true };  interface TriggerListener {   name: string;   phase: string;   callback: (event: any) => any; }  export interface QueueInstruction {   element: any;   triggerName: string;   fromState: StateValue;   toState: StateValue;   transition: AnimationTransitionFactory;   player: TransitionAnimationPlayer;   isFallbackTransition: boolean; }  export const REMOVAL_FLAG = '__ng_removed';  export interface ElementAnimationState {   setForRemoval: boolean;   setForMove: boolean;   hasAnimation: boolean;   namespaceId: string;   removedBeforeQueried: boolean;   previousTriggersValues?: Map<string, string>; }  export class StateValue {   public value: string;   public options: AnimationOptions;    get params(): {[key: string]: any} {     return this.options.params as {[key: string]: any};   }    constructor(input: any, public namespaceId: string = '') {     const isObj = input && input.hasOwnProperty('value');     const value = isObj ? input['value'] : input;     this.value = normalizeTriggerValue(value);     if (isObj) {       const options = copyObj(input as any);       delete options['value'];       this.options = options as AnimationOptions;     } else {       this.options = {};     }     if (!this.options.params) {       this.options.params = {};     }   }    absorbOptions(options: AnimationOptions) {     const newParams = options.params;     if (newParams) {       const oldParams = this.options.params!;       Object.keys(newParams).forEach(prop => {         if (oldParams[prop] == null) {           oldParams[prop] = newParams[prop];         }       });     }   } }  export const VOID_VALUE = 'void'; export const DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);  export class AnimationTransitionNamespace {   public players: TransitionAnimationPlayer[] = [];    private _triggers = new Map<string, AnimationTrigger>();   private _queue: QueueInstruction[] = [];    private _elementListeners = new Map<any, TriggerListener[]>();    private _hostClassName: string;    constructor(       public id: string, public hostElement: any, private _engine: TransitionAnimationEngine) {     this._hostClassName = 'ng-tns-' + id;     addClass(hostElement, this._hostClassName);   }    listen(element: any, name: string, phase: string, callback: (event: any) => boolean): () => any {     if (!this._triggers.has(name)) {       throw missingTrigger(phase, name);     }      if (phase == null || phase.length == 0) {       throw missingEvent(name);     }      if (!isTriggerEventValid(phase)) {       throw unsupportedTriggerEvent(phase, name);     }      const listeners = getOrSetDefaultValue(this._elementListeners, element, []);     const data = {name, phase, callback};     listeners.push(data);      const triggersWithStates =         getOrSetDefaultValue(this._engine.statesByElement, element, new Map<string, StateValue>());     if (!triggersWithStates.has(name)) {       addClass(element, NG_TRIGGER_CLASSNAME);       addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);       triggersWithStates.set(name, DEFAULT_STATE_VALUE);     }      return () => {       // the event listener is removed AFTER the flush has occurred such       // that leave animations callbacks can fire (otherwise if the node       // is removed in between then the listeners would be deregistered)       this._engine.afterFlush(() => {         const index = listeners.indexOf(data);         if (index >= 0) {           listeners.splice(index, 1);         }          if (!this._triggers.has(name)) {           triggersWithStates.delete(name);         }       });     };   }    register(name: string, ast: AnimationTrigger): boolean {     if (this._triggers.has(name)) {       // throw       return false;     } else {       this._triggers.set(name, ast);       return true;     }   }    private _getTrigger(name: string) {     const trigger = this._triggers.get(name);     if (!trigger) {       throw unregisteredTrigger(name);     }     return trigger;   }    trigger(element: any, triggerName: string, value: any, defaultToFallback: boolean = true):       TransitionAnimationPlayer|undefined {     const trigger = this._getTrigger(triggerName);     const player = new TransitionAnimationPlayer(this.id, triggerName, element);      let triggersWithStates = this._engine.statesByElement.get(element);     if (!triggersWithStates) {       addClass(element, NG_TRIGGER_CLASSNAME);       addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);       this._engine.statesByElement.set(element, triggersWithStates = new Map<string, StateValue>());     }      let fromState = triggersWithStates.get(triggerName);     const toState = new StateValue(value, this.id);     const isObj = value && value.hasOwnProperty('value');     if (!isObj && fromState) {       toState.absorbOptions(fromState.options);     }      triggersWithStates.set(triggerName, toState);      if (!fromState) {       fromState = DEFAULT_STATE_VALUE;     }      const isRemoval = toState.value === VOID_VALUE;      // normally this isn't reached by here, however, if an object expression     // is passed in then it may be a new object each time. Comparing the value     // is important since that will stay the same despite there being a new object.     // The removal arc here is special cased because the same element is triggered     // twice in the event that it contains animations on the outer/inner portions     // of the host container     if (!isRemoval && fromState.value === toState.value) {       // this means that despite the value not changing, some inner params       // have changed which means that the animation final styles need to be applied       if (!objEquals(fromState.params, toState.params)) {         const errors: Error[] = [];         const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);         const toStyles = trigger.matchStyles(toState.value, toState.params, errors);         if (errors.length) {           this._engine.reportError(errors);         } else {           this._engine.afterFlush(() => {             eraseStyles(element, fromStyles);             setStyles(element, toStyles);           });         }       }       return;     }      const playersOnElement: TransitionAnimationPlayer[] =         getOrSetDefaultValue(this._engine.playersByElement, element, []);     playersOnElement.forEach(player => {       // only remove the player if it is queued on the EXACT same trigger/namespace       // we only also deal with queued players here because if the animation has       // started then we want to keep the player alive until the flush happens       // (which is where the previousPlayers are passed into the new player)       if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {         player.destroy();       }     });      let transition =         trigger.matchTransition(fromState.value, toState.value, element, toState.params);     let isFallbackTransition = false;     if (!transition) {       if (!defaultToFallback) return;       transition = trigger.fallbackTransition;       isFallbackTransition = true;     }      this._engine.totalQueuedPlayers++;     this._queue.push(         {element, triggerName, transition, fromState, toState, player, isFallbackTransition});      if (!isFallbackTransition) {       addClass(element, QUEUED_CLASSNAME);       player.onStart(() => {         removeClass(element, QUEUED_CLASSNAME);       });     }      player.onDone(() => {       let index = this.players.indexOf(player);       if (index >= 0) {         this.players.splice(index, 1);       }        const players = this._engine.playersByElement.get(element);       if (players) {         let index = players.indexOf(player);         if (index >= 0) {           players.splice(index, 1);         }       }     });      this.players.push(player);     playersOnElement.push(player);      return player;   }    deregister(name: string) {     this._triggers.delete(name);      this._engine.statesByElement.forEach(stateMap => stateMap.delete(name));      this._elementListeners.forEach((listeners, element) => {       this._elementListeners.set(element, listeners.filter(entry => {         return entry.name != name;       }));     });   }    clearElementCache(element: any) {     this._engine.statesByElement.delete(element);     this._elementListeners.delete(element);     const elementPlayers = this._engine.playersByElement.get(element);     if (elementPlayers) {       elementPlayers.forEach(player => player.destroy());       this._engine.playersByElement.delete(element);     }   }    private _signalRemovalForInnerTriggers(rootElement: any, context: any) {     const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);      // emulate a leave animation for all inner nodes within this node.     // If there are no animations found for any of the nodes then clear the cache     // for the element.     elements.forEach(elm => {       // this means that an inner remove() operation has already kicked off       // the animation on this element...       if (elm[REMOVAL_FLAG]) return;        const namespaces = this._engine.fetchNamespacesByElement(elm);       if (namespaces.size) {         namespaces.forEach(ns => ns.triggerLeaveAnimation(elm, context, false, true));       } else {         this.clearElementCache(elm);       }     });      // If the child elements were removed along with the parent, their animations might not     // have completed. Clear all the elements from the cache so we don't end up with a memory leak.     this._engine.afterFlushAnimationsDone(         () => elements.forEach(elm => this.clearElementCache(elm)));   }    triggerLeaveAnimation(       element: any, context: any, destroyAfterComplete?: boolean,       defaultToFallback?: boolean): boolean {     const triggerStates = this._engine.statesByElement.get(element);     const previousTriggersValues = new Map<string, string>();     if (triggerStates) {       const players: TransitionAnimationPlayer[] = [];       triggerStates.forEach((state, triggerName) => {         previousTriggersValues.set(triggerName, state.value);         // this check is here in the event that an element is removed         // twice (both on the host level and the component level)         if (this._triggers.has(triggerName)) {           const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);           if (player) {             players.push(player);           }         }       });        if (players.length) {         this._engine.markElementAsRemoved(this.id, element, true, context, previousTriggersValues);         if (destroyAfterComplete) {           optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));         }         return true;       }     }     return false;   }    prepareLeaveAnimationListeners(element: any) {     const listeners = this._elementListeners.get(element);     const elementStates = this._engine.statesByElement.get(element);      // if this statement fails then it means that the element was picked up     // by an earlier flush (or there are no listeners at all to track the leave).     if (listeners && elementStates) {       const visitedTriggers = new Set<string>();       listeners.forEach(listener => {         const triggerName = listener.name;         if (visitedTriggers.has(triggerName)) return;         visitedTriggers.add(triggerName);          const trigger = this._triggers.get(triggerName)!;         const transition = trigger.fallbackTransition;         const fromState = elementStates.get(triggerName) || DEFAULT_STATE_VALUE;         const toState = new StateValue(VOID_VALUE);         const player = new TransitionAnimationPlayer(this.id, triggerName, element);          this._engine.totalQueuedPlayers++;         this._queue.push({           element,           triggerName,           transition,           fromState,           toState,           player,           isFallbackTransition: true         });       });     }   }    removeNode(element: any, context: any): void {     const engine = this._engine;     if (element.childElementCount) {       this._signalRemovalForInnerTriggers(element, context);     }      // this means that a * => VOID animation was detected and kicked off     if (this.triggerLeaveAnimation(element, context, true)) return;      // find the player that is animating and make sure that the     // removal is delayed until that player has completed     let containsPotentialParentTransition = false;     if (engine.totalAnimations) {       const currentPlayers =           engine.players.length ? engine.playersByQueriedElement.get(element) : [];        // when this `if statement` does not continue forward it means that       // a previous animation query has selected the current element and       // is animating it. In this situation want to continue forwards and       // allow the element to be queued up for animation later.       if (currentPlayers && currentPlayers.length) {         containsPotentialParentTransition = true;       } else {         let parent = element;         while (parent = parent.parentNode) {           const triggers = engine.statesByElement.get(parent);           if (triggers) {             containsPotentialParentTransition = true;             break;           }         }       }     }      // at this stage we know that the element will either get removed     // during flush or will be picked up by a parent query. Either way     // we need to fire the listeners for this element when it DOES get     // removed (once the query parent animation is done or after flush)     this.prepareLeaveAnimationListeners(element);      // whether or not a parent has an animation we need to delay the deferral of the leave     // operation until we have more information (which we do after flush() has been called)     if (containsPotentialParentTransition) {       engine.markElementAsRemoved(this.id, element, false, context);     } else {       const removalFlag = element[REMOVAL_FLAG];       if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {         // we do this after the flush has occurred such         // that the callbacks can be fired         engine.afterFlush(() => this.clearElementCache(element));         engine.destroyInnerAnimations(element);         engine._onRemovalComplete(element, context);       }     }   }    insertNode(element: any, parent: any): void {     addClass(element, this._hostClassName);   }    drainQueuedTransitions(microtaskId: number): QueueInstruction[] {     const instructions: QueueInstruction[] = [];     this._queue.forEach(entry => {       const player = entry.player;       if (player.destroyed) return;        const element = entry.element;       const listeners = this._elementListeners.get(element);       if (listeners) {         listeners.forEach((listener: TriggerListener) => {           if (listener.name == entry.triggerName) {             const baseEvent = makeAnimationEvent(                 element, entry.triggerName, entry.fromState.value, entry.toState.value);             (baseEvent as any)['_data'] = microtaskId;             listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);           }         });       }        if (player.markedForDestroy) {         this._engine.afterFlush(() => {           // now we can destroy the element properly since the event listeners have           // been bound to the player           player.destroy();         });       } else {         instructions.push(entry);       }     });      this._queue = [];      return instructions.sort((a, b) => {       // if depCount == 0 them move to front       // otherwise if a contains b then move back       const d0 = a.transition.ast.depCount;       const d1 = b.transition.ast.depCount;       if (d0 == 0 || d1 == 0) {         return d0 - d1;       }       return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;     });   }    destroy(context: any) {     this.players.forEach(p => p.destroy());     this._signalRemovalForInnerTriggers(this.hostElement, context);   }    elementContainsData(element: any): boolean {     let containsData = false;     if (this._elementListeners.has(element)) containsData = true;     containsData =         (this._queue.find(entry => entry.element === element) ? true : false) || containsData;     return containsData;   } }  export interface QueuedTransition {   element: any;   instruction: AnimationTransitionInstruction;   player: TransitionAnimationPlayer; }  export class TransitionAnimationEngine {   public players: TransitionAnimationPlayer[] = [];   public newHostElements = new Map<any, AnimationTransitionNamespace>();   public playersByElement = new Map<any, TransitionAnimationPlayer[]>();   public playersByQueriedElement = new Map<any, TransitionAnimationPlayer[]>();   public statesByElement = new Map<any, Map<string, StateValue>>();   public disabledNodes = new Set<any>();    public totalAnimations = 0;   public totalQueuedPlayers = 0;    private _namespaceLookup: {[id: string]: AnimationTransitionNamespace} = {};   private _namespaceList: AnimationTransitionNamespace[] = [];   private _flushFns: (() => any)[] = [];   private _whenQuietFns: (() => any)[] = [];    public namespacesByHostElement = new Map<any, AnimationTransitionNamespace>();   public collectedEnterElements: any[] = [];   public collectedLeaveElements: any[] = [];    // this method is designed to be overridden by the code that uses this engine   public onRemovalComplete = (element: any, context: any) => {};    /** @internal */   _onRemovalComplete(element: any, context: any) {     this.onRemovalComplete(element, context);   }    constructor(       public bodyNode: any, public driver: AnimationDriver,       private _normalizer: AnimationStyleNormalizer) {}    get queuedPlayers(): TransitionAnimationPlayer[] {     const players: TransitionAnimationPlayer[] = [];     this._namespaceList.forEach(ns => {       ns.players.forEach(player => {         if (player.queued) {           players.push(player);         }       });     });     return players;   }    createNamespace(namespaceId: string, hostElement: any) {     const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);     if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {       this._balanceNamespaceList(ns, hostElement);     } else {       // defer this later until flush during when the host element has       // been inserted so that we know exactly where to place it in       // the namespace list       this.newHostElements.set(hostElement, ns);        // given that this host element is a part of the animation code, it       // may or may not be inserted by a parent node that is of an       // animation renderer type. If this happens then we can still have       // access to this item when we query for :enter nodes. If the parent       // is a renderer then the set data-structure will normalize the entry       this.collectEnterElement(hostElement);     }     return this._namespaceLookup[namespaceId] = ns;   }    private _balanceNamespaceList(ns: AnimationTransitionNamespace, hostElement: any) {     const namespaceList = this._namespaceList;     const namespacesByHostElement = this.namespacesByHostElement;     const limit = namespaceList.length - 1;     if (limit >= 0) {       let found = false;       // Find the closest ancestor with an existing namespace so we can then insert `ns` after it,       // establishing a top-down ordering of namespaces in `this._namespaceList`.       let ancestor = this.driver.getParentElement(hostElement);       while (ancestor) {         const ancestorNs = namespacesByHostElement.get(ancestor);         if (ancestorNs) {           // An animation namespace has been registered for this ancestor, so we insert `ns`           // right after it to establish top-down ordering of animation namespaces.           const index = namespaceList.indexOf(ancestorNs);           namespaceList.splice(index + 1, 0, ns);           found = true;           break;         }         ancestor = this.driver.getParentElement(ancestor);       }       if (!found) {         // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to         // ensure that any existing descendants are ordered after `ns`, retaining the desired         // top-down ordering.         namespaceList.unshift(ns);       }     } else {       namespaceList.push(ns);     }      namespacesByHostElement.set(hostElement, ns);     return ns;   }    register(namespaceId: string, hostElement: any) {     let ns = this._namespaceLookup[namespaceId];     if (!ns) {       ns = this.createNamespace(namespaceId, hostElement);     }     return ns;   }    registerTrigger(namespaceId: string, name: string, trigger: AnimationTrigger) {     let ns = this._namespaceLookup[namespaceId];     if (ns && ns.register(name, trigger)) {       this.totalAnimations++;     }   }    destroy(namespaceId: string, context: any) {     if (!namespaceId) return;      const ns = this._fetchNamespace(namespaceId);      this.afterFlush(() => {       this.namespacesByHostElement.delete(ns.hostElement);       delete this._namespaceLookup[namespaceId];       const index = this._namespaceList.indexOf(ns);       if (index >= 0) {         this._namespaceList.splice(index, 1);       }     });      this.afterFlushAnimationsDone(() => ns.destroy(context));   }    private _fetchNamespace(id: string) {     return this._namespaceLookup[id];   }    fetchNamespacesByElement(element: any): Set<AnimationTransitionNamespace> {     // normally there should only be one namespace per element, however     // if @triggers are placed on both the component element and then     // its host element (within the component code) then there will be     // two namespaces returned. We use a set here to simply deduplicate     // the namespaces in case (for the reason described above) there are multiple triggers     const namespaces = new Set<AnimationTransitionNamespace>();     const elementStates = this.statesByElement.get(element);     if (elementStates) {       for (let stateValue of elementStates.values()) {         if (stateValue.namespaceId) {           const ns = this._fetchNamespace(stateValue.namespaceId);           if (ns) {             namespaces.add(ns);           }         }       }     }     return namespaces;   }    trigger(namespaceId: string, element: any, name: string, value: any): boolean {     if (isElementNode(element)) {       const ns = this._fetchNamespace(namespaceId);       if (ns) {         ns.trigger(element, name, value);         return true;       }     }     return false;   }    insertNode(namespaceId: string, element: any, parent: any, insertBefore: boolean): void {     if (!isElementNode(element)) return;      // special case for when an element is removed and reinserted (move operation)     // when this occurs we do not want to use the element for deletion later     const details = element[REMOVAL_FLAG] as ElementAnimationState;     if (details && details.setForRemoval) {       details.setForRemoval = false;       details.setForMove = true;       const index = this.collectedLeaveElements.indexOf(element);       if (index >= 0) {         this.collectedLeaveElements.splice(index, 1);       }     }      // in the event that the namespaceId is blank then the caller     // code does not contain any animation code in it, but it is     // just being called so that the node is marked as being inserted     if (namespaceId) {       const ns = this._fetchNamespace(namespaceId);       // This if-statement is a workaround for router issue #21947.       // The router sometimes hits a race condition where while a route       // is being instantiated a new navigation arrives, triggering leave       // animation of DOM that has not been fully initialized, until this       // is resolved, we need to handle the scenario when DOM is not in a       // consistent state during the animation.       if (ns) {         ns.insertNode(element, parent);       }     }      // only *directives and host elements are inserted before     if (insertBefore) {       this.collectEnterElement(element);     }   }    collectEnterElement(element: any) {     this.collectedEnterElements.push(element);   }    markElementAsDisabled(element: any, value: boolean) {     if (value) {       if (!this.disabledNodes.has(element)) {         this.disabledNodes.add(element);         addClass(element, DISABLED_CLASSNAME);       }     } else if (this.disabledNodes.has(element)) {       this.disabledNodes.delete(element);       removeClass(element, DISABLED_CLASSNAME);     }   }    removeNode(namespaceId: string, element: any, isHostElement: boolean, context: any): void {     if (isElementNode(element)) {       const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;       if (ns) {         ns.removeNode(element, context);       } else {         this.markElementAsRemoved(namespaceId, element, false, context);       }        if (isHostElement) {         const hostNS = this.namespacesByHostElement.get(element);         if (hostNS && hostNS.id !== namespaceId) {           hostNS.removeNode(element, context);         }       }     } else {       this._onRemovalComplete(element, context);     }   }    markElementAsRemoved(       namespaceId: string, element: any, hasAnimation?: boolean, context?: any,       previousTriggersValues?: Map<string, string>) {     this.collectedLeaveElements.push(element);     element[REMOVAL_FLAG] = {       namespaceId,       setForRemoval: context,       hasAnimation,       removedBeforeQueried: false,       previousTriggersValues     };   }    listen(       namespaceId: string, element: any, name: string, phase: string,       callback: (event: any) => boolean): () => any {     if (isElementNode(element)) {       return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);     }     return () => {};   }    private _buildInstruction(       entry: QueueInstruction, subTimelines: ElementInstructionMap, enterClassName: string,       leaveClassName: string, skipBuildAst?: boolean) {     return entry.transition.build(         this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName,         leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);   }    destroyInnerAnimations(containerElement: any) {     let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);     elements.forEach(element => this.destroyActiveAnimationsForElement(element));      if (this.playersByQueriedElement.size == 0) return;      elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);     elements.forEach(element => this.finishActiveQueriedAnimationOnElement(element));   }    destroyActiveAnimationsForElement(element: any) {     const players = this.playersByElement.get(element);     if (players) {       players.forEach(player => {         // special case for when an element is set for destruction, but hasn't started.         // in this situation we want to delay the destruction until the flush occurs         // so that any event listeners attached to the player are triggered.         if (player.queued) {           player.markedForDestroy = true;         } else {           player.destroy();         }       });     }   }    finishActiveQueriedAnimationOnElement(element: any) {     const players = this.playersByQueriedElement.get(element);     if (players) {       players.forEach(player => player.finish());     }   }    whenRenderingDone(): Promise<any> {     return new Promise<void>(resolve => {       if (this.players.length) {         return optimizeGroupPlayer(this.players).onDone(() => resolve());       } else {         resolve();       }     });   }    processLeaveNode(element: any) {     const details = element[REMOVAL_FLAG] as ElementAnimationState;     if (details && details.setForRemoval) {       // this will prevent it from removing it twice       element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;       if (details.namespaceId) {         this.destroyInnerAnimations(element);         const ns = this._fetchNamespace(details.namespaceId);         if (ns) {           ns.clearElementCache(element);         }       }       this._onRemovalComplete(element, details.setForRemoval);     }      if (element.classList?.contains(DISABLED_CLASSNAME)) {       this.markElementAsDisabled(element, false);     }      this.driver.query(element, DISABLED_SELECTOR, true).forEach(node => {       this.markElementAsDisabled(node, false);     });   }    flush(microtaskId: number = -1) {     let players: AnimationPlayer[] = [];     if (this.newHostElements.size) {       this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));       this.newHostElements.clear();     }      if (this.totalAnimations && this.collectedEnterElements.length) {       for (let i = 0; i < this.collectedEnterElements.length; i++) {         const elm = this.collectedEnterElements[i];         addClass(elm, STAR_CLASSNAME);       }     }      if (this._namespaceList.length &&         (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {       const cleanupFns: Function[] = [];       try {         players = this._flushAnimations(cleanupFns, microtaskId);       } finally {         for (let i = 0; i < cleanupFns.length; i++) {           cleanupFns[i]();         }       }     } else {       for (let i = 0; i < this.collectedLeaveElements.length; i++) {         const element = this.collectedLeaveElements[i];         this.processLeaveNode(element);       }     }      this.totalQueuedPlayers = 0;     this.collectedEnterElements.length = 0;     this.collectedLeaveElements.length = 0;     this._flushFns.forEach(fn => fn());     this._flushFns = [];      if (this._whenQuietFns.length) {       // we move these over to a variable so that       // if any new callbacks are registered in another       // flush they do not populate the existing set       const quietFns = this._whenQuietFns;       this._whenQuietFns = [];        if (players.length) {         optimizeGroupPlayer(players).onDone(() => {           quietFns.forEach(fn => fn());         });       } else {         quietFns.forEach(fn => fn());       }     }   }    reportError(errors: Error[]) {     throw triggerTransitionsFailed(errors);   }    private _flushAnimations(cleanupFns: Function[], microtaskId: number):       TransitionAnimationPlayer[] {     const subTimelines = new ElementInstructionMap();     const skippedPlayers: TransitionAnimationPlayer[] = [];     const skippedPlayersMap = new Map<any, AnimationPlayer[]>();     const queuedInstructions: QueuedTransition[] = [];     const queriedElements = new Map<any, TransitionAnimationPlayer[]>();     const allPreStyleElements = new Map<any, Set<string>>();     const allPostStyleElements = new Map<any, Set<string>>();      const disabledElementsSet = new Set<any>();     this.disabledNodes.forEach(node => {       disabledElementsSet.add(node);       const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);       for (let i = 0; i < nodesThatAreDisabled.length; i++) {         disabledElementsSet.add(nodesThatAreDisabled[i]);       }     });      const bodyNode = this.bodyNode;     const allTriggerElements = Array.from(this.statesByElement.keys());     const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);      // this must occur before the instructions are built below such that     // the :enter queries match the elements (since the timeline queries     // are fired during instruction building).     const enterNodeMapIds = new Map<any, string>();     let i = 0;     enterNodeMap.forEach((nodes, root) => {       const className = ENTER_CLASSNAME + i++;       enterNodeMapIds.set(root, className);       nodes.forEach(node => addClass(node, className));     });      const allLeaveNodes: any[] = [];     const mergedLeaveNodes = new Set<any>();     const leaveNodesWithoutAnimations = new Set<any>();     for (let i = 0; i < this.collectedLeaveElements.length; i++) {       const element = this.collectedLeaveElements[i];       const details = element[REMOVAL_FLAG] as ElementAnimationState;       if (details && details.setForRemoval) {         allLeaveNodes.push(element);         mergedLeaveNodes.add(element);         if (details.hasAnimation) {           this.driver.query(element, STAR_SELECTOR, true).forEach(elm => mergedLeaveNodes.add(elm));         } else {           leaveNodesWithoutAnimations.add(element);         }       }     }      const leaveNodeMapIds = new Map<any, string>();     const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));     leaveNodeMap.forEach((nodes, root) => {       const className = LEAVE_CLASSNAME + i++;       leaveNodeMapIds.set(root, className);       nodes.forEach(node => addClass(node, className));     });      cleanupFns.push(() => {       enterNodeMap.forEach((nodes, root) => {         const className = enterNodeMapIds.get(root)!;         nodes.forEach(node => removeClass(node, className));       });        leaveNodeMap.forEach((nodes, root) => {         const className = leaveNodeMapIds.get(root)!;         nodes.forEach(node => removeClass(node, className));       });        allLeaveNodes.forEach(element => {         this.processLeaveNode(element);       });     });      const allPlayers: TransitionAnimationPlayer[] = [];     const erroneousTransitions: AnimationTransitionInstruction[] = [];     for (let i = this._namespaceList.length - 1; i >= 0; i--) {       const ns = this._namespaceList[i];       ns.drainQueuedTransitions(microtaskId).forEach(entry => {         const player = entry.player;         const element = entry.element;         allPlayers.push(player);          if (this.collectedEnterElements.length) {           const details = element[REMOVAL_FLAG] as ElementAnimationState;           // animations for move operations (elements being removed and reinserted,           // e.g. when the order of an *ngFor list changes) are currently not supported           if (details && details.setForMove) {             if (details.previousTriggersValues &&                 details.previousTriggersValues.has(entry.triggerName)) {               const previousValue = details.previousTriggersValues.get(entry.triggerName) as string;                // we need to restore the previous trigger value since the element has               // only been moved and hasn't actually left the DOM               const triggersWithStates = this.statesByElement.get(entry.element);               if (triggersWithStates && triggersWithStates.has(entry.triggerName)) {                 const state = triggersWithStates.get(entry.triggerName)!;                 state.value = previousValue;                 triggersWithStates.set(entry.triggerName, state);               }             }              player.destroy();             return;           }         }          const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);         const leaveClassName = leaveNodeMapIds.get(element)!;         const enterClassName = enterNodeMapIds.get(element)!;         const instruction = this._buildInstruction(             entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned)!;         if (instruction.errors && instruction.errors.length) {           erroneousTransitions.push(instruction);           return;         }          // even though the element may not be in the DOM, it may still         // be added at a later point (due to the mechanics of content         // projection and/or dynamic component insertion) therefore it's         // important to still style the element.         if (nodeIsOrphaned) {           player.onStart(() => eraseStyles(element, instruction.fromStyles));           player.onDestroy(() => setStyles(element, instruction.toStyles));           skippedPlayers.push(player);           return;         }          // if an unmatched transition is queued and ready to go         // then it SHOULD NOT render an animation and cancel the         // previously running animations.         if (entry.isFallbackTransition) {           player.onStart(() => eraseStyles(element, instruction.fromStyles));           player.onDestroy(() => setStyles(element, instruction.toStyles));           skippedPlayers.push(player);           return;         }          // this means that if a parent animation uses this animation as a sub-trigger         // then it will instruct the timeline builder not to add a player delay, but         // instead stretch the first keyframe gap until the animation starts. This is         // important in order to prevent extra initialization styles from being         // required by the user for the animation.         const timelines: AnimationTimelineInstruction[] = [];         instruction.timelines.forEach(tl => {           tl.stretchStartingKeyframe = true;           if (!this.disabledNodes.has(tl.element)) {             timelines.push(tl);           }         });         instruction.timelines = timelines;          subTimelines.append(element, instruction.timelines);          const tuple = {instruction, player, element};          queuedInstructions.push(tuple);          instruction.queriedElements.forEach(             element => getOrSetDefaultValue(queriedElements, element, []).push(player));          instruction.preStyleProps.forEach((stringMap, element) => {           if (stringMap.size) {             let setVal: Set<string> = allPreStyleElements.get(element)!;             if (!setVal) {               allPreStyleElements.set(element, setVal = new Set<string>());             }             stringMap.forEach((_, prop) => setVal.add(prop));           }         });          instruction.postStyleProps.forEach((stringMap, element) => {           let setVal: Set<string> = allPostStyleElements.get(element)!;           if (!setVal) {             allPostStyleElements.set(element, setVal = new Set<string>());           }           stringMap.forEach((_, prop) => setVal.add(prop));         });       });     }      if (erroneousTransitions.length) {       const errors: Error[] = [];       erroneousTransitions.forEach(instruction => {         errors.push(transitionFailed(instruction.triggerName, instruction.errors!));       });        allPlayers.forEach(player => player.destroy());       this.reportError(errors);     }      const allPreviousPlayersMap = new Map<any, TransitionAnimationPlayer[]>();     // this map tells us which element in the DOM tree is contained by     // which animation. Further down this map will get populated once     // the players are built and in doing so we can use it to efficiently     // figure out if a sub player is skipped due to a parent player having priority.     const animationElementMap = new Map<any, any>();     queuedInstructions.forEach(entry => {       const element = entry.element;       if (subTimelines.has(element)) {         animationElementMap.set(element, element);         this._beforeAnimationBuild(             entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);       }     });      skippedPlayers.forEach(player => {       const element = player.element;       const previousPlayers =           this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);       previousPlayers.forEach(prevPlayer => {         getOrSetDefaultValue(allPreviousPlayersMap, element, []).push(prevPlayer);         prevPlayer.destroy();       });     });      // this is a special case for nodes that will be removed either by     // having their own leave animations or by being queried in a container     // that will be removed once a parent animation is complete. The idea     // here is that * styles must be identical to ! styles because of     // backwards compatibility (* is also filled in by default in many places).     // Otherwise * styles will return an empty value or \"auto\" since the element     // passed to getComputedStyle will not be visible (since * === destination)     const replaceNodes = allLeaveNodes.filter(node => {       return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);     });      // POST STAGE: fill the * styles     const postStylesMap = new Map<any, ɵStyleDataMap>();     const allLeaveQueriedNodes = cloakAndComputeStyles(         postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);      allLeaveQueriedNodes.forEach(node => {       if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {         replaceNodes.push(node);       }     });      // PRE STAGE: fill the ! styles     const preStylesMap = new Map<any, ɵStyleDataMap>();     enterNodeMap.forEach((nodes, root) => {       cloakAndComputeStyles(           preStylesMap, this.driver, new Set(nodes), allPreStyleElements, PRE_STYLE);     });      replaceNodes.forEach(node => {       const post = postStylesMap.get(node);       const pre = preStylesMap.get(node);       postStylesMap.set(           node,           new Map([...Array.from(post?.entries() ?? []), ...Array.from(pre?.entries() ?? [])]));     });      const rootPlayers: TransitionAnimationPlayer[] = [];     const subPlayers: TransitionAnimationPlayer[] = [];     const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};     queuedInstructions.forEach(entry => {       const {element, player, instruction} = entry;       // this means that it was never consumed by a parent animation which       // means that it is independent and therefore should be set for animation       if (subTimelines.has(element)) {         if (disabledElementsSet.has(element)) {           player.onDestroy(() => setStyles(element, instruction.toStyles));           player.disabled = true;           player.overrideTotalTime(instruction.totalTime);           skippedPlayers.push(player);           return;         }          // this will flow up the DOM and query the map to figure out         // if a parent animation has priority over it. In the situation         // that a parent is detected then it will cancel the loop. If         // nothing is detected, or it takes a few hops to find a parent,         // then it will fill in the missing nodes and signal them as having         // a detected parent (or a NO_PARENT value via a special constant).         let parentWithAnimation: any = NO_PARENT_ANIMATION_ELEMENT_DETECTED;         if (animationElementMap.size > 1) {           let elm = element;           const parentsToAdd: any[] = [];           while (elm = elm.parentNode) {             const detectedParent = animationElementMap.get(elm);             if (detectedParent) {               parentWithAnimation = detectedParent;               break;             }             parentsToAdd.push(elm);           }           parentsToAdd.forEach(parent => animationElementMap.set(parent, parentWithAnimation));         }          const innerPlayer = this._buildAnimation(             player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap,             postStylesMap);          player.setRealPlayer(innerPlayer);          if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {           rootPlayers.push(player);         } else {           const parentPlayers = this.playersByElement.get(parentWithAnimation);           if (parentPlayers && parentPlayers.length) {             player.parentPlayer = optimizeGroupPlayer(parentPlayers);           }           skippedPlayers.push(player);         }       } else {         eraseStyles(element, instruction.fromStyles);         player.onDestroy(() => setStyles(element, instruction.toStyles));         // there still might be a ancestor player animating this         // element therefore we will still add it as a sub player         // even if its animation may be disabled         subPlayers.push(player);         if (disabledElementsSet.has(element)) {           skippedPlayers.push(player);         }       }     });      // find all of the sub players' corresponding inner animation players     subPlayers.forEach(player => {       // even if no players are found for a sub animation it       // will still complete itself after the next tick since it's Noop       const playersForElement = skippedPlayersMap.get(player.element);       if (playersForElement && playersForElement.length) {         const innerPlayer = optimizeGroupPlayer(playersForElement);         player.setRealPlayer(innerPlayer);       }     });      // the reason why we don't actually play the animation is     // because all that a skipped player is designed to do is to     // fire the start/done transition callback events     skippedPlayers.forEach(player => {       if (player.parentPlayer) {         player.syncPlayerEvents(player.parentPlayer);       } else {         player.destroy();       }     });      // run through all of the queued removals and see if they     // were picked up by a query. If not then perform the removal     // operation right away unless a parent animation is ongoing.     for (let i = 0; i < allLeaveNodes.length; i++) {       const element = allLeaveNodes[i];       const details = element[REMOVAL_FLAG] as ElementAnimationState;       removeClass(element, LEAVE_CLASSNAME);        // this means the element has a removal animation that is being       // taken care of and therefore the inner elements will hang around       // until that animation is over (or the parent queried animation)       if (details && details.hasAnimation) continue;        let players: TransitionAnimationPlayer[] = [];        // if this element is queried or if it contains queried children       // then we want for the element not to be removed from the page       // until the queried animations have finished       if (queriedElements.size) {         let queriedPlayerResults = queriedElements.get(element);         if (queriedPlayerResults && queriedPlayerResults.length) {           players.push(...queriedPlayerResults);         }          let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);         for (let j = 0; j < queriedInnerElements.length; j++) {           let queriedPlayers = queriedElements.get(queriedInnerElements[j]);           if (queriedPlayers && queriedPlayers.length) {             players.push(...queriedPlayers);           }         }       }        const activePlayers = players.filter(p => !p.destroyed);       if (activePlayers.length) {         removeNodesAfterAnimationDone(this, element, activePlayers);       } else {         this.processLeaveNode(element);       }     }      // this is required so the cleanup method doesn't remove them     allLeaveNodes.length = 0;      rootPlayers.forEach(player => {       this.players.push(player);       player.onDone(() => {         player.destroy();          const index = this.players.indexOf(player);         this.players.splice(index, 1);       });       player.play();     });      return rootPlayers;   }    elementContainsData(namespaceId: string, element: any) {     let containsData = false;     const details = element[REMOVAL_FLAG] as ElementAnimationState;     if (details && details.setForRemoval) containsData = true;     if (this.playersByElement.has(element)) containsData = true;     if (this.playersByQueriedElement.has(element)) containsData = true;     if (this.statesByElement.has(element)) containsData = true;     return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;   }    afterFlush(callback: () => any) {     this._flushFns.push(callback);   }    afterFlushAnimationsDone(callback: () => any) {     this._whenQuietFns.push(callback);   }    private _getPreviousPlayers(       element: string, isQueriedElement: boolean, namespaceId?: string, triggerName?: string,       toStateValue?: any): TransitionAnimationPlayer[] {     let players: TransitionAnimationPlayer[] = [];     if (isQueriedElement) {       const queriedElementPlayers = this.playersByQueriedElement.get(element);       if (queriedElementPlayers) {         players = queriedElementPlayers;       }     } else {       const elementPlayers = this.playersByElement.get(element);       if (elementPlayers) {         const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;         elementPlayers.forEach(player => {           if (player.queued) return;           if (!isRemovalAnimation && player.triggerName != triggerName) return;           players.push(player);         });       }     }     if (namespaceId || triggerName) {       players = players.filter(player => {         if (namespaceId && namespaceId != player.namespaceId) return false;         if (triggerName && triggerName != player.triggerName) return false;         return true;       });     }     return players;   }    private _beforeAnimationBuild(       namespaceId: string, instruction: AnimationTransitionInstruction,       allPreviousPlayersMap: Map<any, TransitionAnimationPlayer[]>) {     const triggerName = instruction.triggerName;     const rootElement = instruction.element;      // when a removal animation occurs, ALL previous players are collected     // and destroyed (even if they are outside of the current namespace)     const targetNameSpaceId: string|undefined =         instruction.isRemovalTransition ? undefined : namespaceId;     const targetTriggerName: string|undefined =         instruction.isRemovalTransition ? undefined : triggerName;      for (const timelineInstruction of instruction.timelines) {       const element = timelineInstruction.element;       const isQueriedElement = element !== rootElement;       const players = getOrSetDefaultValue(allPreviousPlayersMap, element, []);       const previousPlayers = this._getPreviousPlayers(           element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);       previousPlayers.forEach(player => {         const realPlayer = (player as TransitionAnimationPlayer).getRealPlayer() as any;         if (realPlayer.beforeDestroy) {           realPlayer.beforeDestroy();         }         player.destroy();         players.push(player);       });     }      // this needs to be done so that the PRE/POST styles can be     // computed properly without interfering with the previous animation     eraseStyles(rootElement, instruction.fromStyles);   }    private _buildAnimation(       namespaceId: string, instruction: AnimationTransitionInstruction,       allPreviousPlayersMap: Map<any, TransitionAnimationPlayer[]>,       skippedPlayersMap: Map<any, AnimationPlayer[]>, preStylesMap: Map<any, ɵStyleDataMap>,       postStylesMap: Map<any, ɵStyleDataMap>): AnimationPlayer {     const triggerName = instruction.triggerName;     const rootElement = instruction.element;      // we first run this so that the previous animation player     // data can be passed into the successive animation players     const allQueriedPlayers: TransitionAnimationPlayer[] = [];     const allConsumedElements = new Set<any>();     const allSubElements = new Set<any>();     const allNewPlayers = instruction.timelines.map(timelineInstruction => {       const element = timelineInstruction.element;       allConsumedElements.add(element);        // FIXME (matsko): make sure to-be-removed animations are removed properly       const details = element[REMOVAL_FLAG];       if (details && details.removedBeforeQueried)         return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);       const isQueriedElement = element !== rootElement;       const previousPlayers =           flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY)                                   .map(p => p.getRealPlayer()))               .filter(p => {                 // the `element` is not apart of the AnimationPlayer definition, but                 // Mock/WebAnimations                 // use the element within their implementation. This will be added in Angular5 to                 // AnimationPlayer                 const pp = p as any;                 return pp.element ? pp.element === element : false;               });        const preStyles = preStylesMap.get(element);       const postStyles = postStylesMap.get(element);        const keyframes = normalizeKeyframes(           this.driver, this._normalizer, element, timelineInstruction.keyframes, preStyles,           postStyles);       const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);        // this means that this particular player belongs to a sub trigger. It is       // important that we match this player up with the corresponding (@trigger.listener)       if (timelineInstruction.subTimeline && skippedPlayersMap) {         allSubElements.add(element);       }        if (isQueriedElement) {         const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);         wrappedPlayer.setRealPlayer(player);         allQueriedPlayers.push(wrappedPlayer);       }        return player;     });      allQueriedPlayers.forEach(player => {       getOrSetDefaultValue(this.playersByQueriedElement, player.element, []).push(player);       player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));     });      allConsumedElements.forEach(element => addClass(element, NG_ANIMATING_CLASSNAME));     const player = optimizeGroupPlayer(allNewPlayers);     player.onDestroy(() => {       allConsumedElements.forEach(element => removeClass(element, NG_ANIMATING_CLASSNAME));       setStyles(rootElement, instruction.toStyles);     });      // this basically makes all of the callbacks for sub element animations     // be dependent on the upper players for when they finish     allSubElements.forEach(element => {       getOrSetDefaultValue(skippedPlayersMap, element, []).push(player);     });      return player;   }    private _buildPlayer(       instruction: AnimationTimelineInstruction, keyframes: Array<ɵStyleDataMap>,       previousPlayers: AnimationPlayer[]): AnimationPlayer {     if (keyframes.length > 0) {       return this.driver.animate(           instruction.element, keyframes, instruction.duration, instruction.delay,           instruction.easing, previousPlayers);     }      // special case for when an empty transition|definition is provided     // ... there is no point in rendering an empty animation     return new NoopAnimationPlayer(instruction.duration, instruction.delay);   } }  export class TransitionAnimationPlayer implements AnimationPlayer {   private _player: AnimationPlayer = new NoopAnimationPlayer();   private _containsRealPlayer = false;    private _queuedCallbacks = new Map<string, ((event: any) => any)[]>();   public readonly destroyed = false;   // TODO(issue/24571): remove '!'.   public parentPlayer!: AnimationPlayer;    public markedForDestroy: boolean = false;   public disabled = false;    readonly queued: boolean = true;   public readonly totalTime: number = 0;    constructor(public namespaceId: string, public triggerName: string, public element: any) {}    setRealPlayer(player: AnimationPlayer) {     if (this._containsRealPlayer) return;      this._player = player;     this._queuedCallbacks.forEach((callbacks, phase) => {       callbacks.forEach(callback => listenOnPlayer(player, phase, undefined, callback));     });      this._queuedCallbacks.clear();     this._containsRealPlayer = true;     this.overrideTotalTime(player.totalTime);     (this as {queued: boolean}).queued = false;   }    getRealPlayer() {     return this._player;   }    overrideTotalTime(totalTime: number) {     (this as any).totalTime = totalTime;   }    syncPlayerEvents(player: AnimationPlayer) {     const p = this._player as any;     if (p.triggerCallback) {       player.onStart(() => p.triggerCallback!('start'));     }     player.onDone(() => this.finish());     player.onDestroy(() => this.destroy());   }    private _queueEvent(name: string, callback: (event: any) => any): void {     getOrSetDefaultValue(this._queuedCallbacks, name, []).push(callback);   }    onDone(fn: () => void): void {     if (this.queued) {       this._queueEvent('done', fn);     }     this._player.onDone(fn);   }    onStart(fn: () => void): void {     if (this.queued) {       this._queueEvent('start', fn);     }     this._player.onStart(fn);   }    onDestroy(fn: () => void): void {     if (this.queued) {       this._queueEvent('destroy', fn);     }     this._player.onDestroy(fn);   }    init(): void {     this._player.init();   }    hasStarted(): boolean {     return this.queued ? false : this._player.hasStarted();   }    play(): void {     !this.queued && this._player.play();   }    pause(): void {     !this.queued && this._player.pause();   }    restart(): void {     !this.queued && this._player.restart();   }    finish(): void {     this._player.finish();   }    destroy(): void {     (this as {destroyed: boolean}).destroyed = true;     this._player.destroy();   }    reset(): void {     !this.queued && this._player.reset();   }    setPosition(p: any): void {     if (!this.queued) {       this._player.setPosition(p);     }   }    getPosition(): number {     return this.queued ? 0 : this._player.getPosition();   }    /** @internal */   triggerCallback(phaseName: string): void {     const p = this._player as any;     if (p.triggerCallback) {       p.triggerCallback(phaseName);     }   } }  function deleteOrUnsetInMap<T, V>(map: Map<T, V[]>, key: T, value: V) {   let currentValues = map.get(key);   if (currentValues) {     if (currentValues.length) {       const index = currentValues.indexOf(value);       currentValues.splice(index, 1);     }     if (currentValues.length == 0) {       map.delete(key);     }   }   return currentValues; }  function normalizeTriggerValue(value: any): any {   // we use `!= null` here because it's the most simple   // way to test against a \"falsy\" value without mixing   // in empty strings or a zero value. DO NOT OPTIMIZE.   return value != null ? value : null; }  function isElementNode(node: any) {   return node && node['nodeType'] === 1; }  function isTriggerEventValid(eventName: string): boolean {   return eventName == 'start' || eventName == 'done'; }  function cloakElement(element: any, value?: string) {   const oldValue = element.style.display;   element.style.display = value != null ? value : 'none';   return oldValue; }  function cloakAndComputeStyles(     valuesMap: Map<any, ɵStyleDataMap>, driver: AnimationDriver, elements: Set<any>,     elementPropsMap: Map<any, Set<string>>, defaultStyle: string): any[] {   const cloakVals: string[] = [];   elements.forEach(element => cloakVals.push(cloakElement(element)));    const failedElements: any[] = [];    elementPropsMap.forEach((props: Set<string>, element: any) => {     const styles: ɵStyleDataMap = new Map();     props.forEach(prop => {       const value = driver.computeStyle(element, prop, defaultStyle);       styles.set(prop, value);        // there is no easy way to detect this because a sub element could be removed       // by a parent animation element being detached.       if (!value || value.length == 0) {         element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;         failedElements.push(element);       }     });     valuesMap.set(element, styles);   });    // we use a index variable here since Set.forEach(a, i) does not return   // an index value for the closure (but instead just the value)   let i = 0;   elements.forEach(element => cloakElement(element, cloakVals[i++]));    return failedElements; }  /* Since the Angular renderer code will return a collection of inserted nodes in all areas of a DOM tree, it's up to this algorithm to figure out which nodes are roots for each animation @trigger.  By placing each inserted node into a Set and traversing upwards, it is possible to find the @trigger elements and well any direct *star insertion nodes, if a @trigger root is found then the enter element is placed into the Map[@trigger] spot.  */ function buildRootMap(roots: any[], nodes: any[]): Map<any, any[]> {   const rootMap = new Map<any, any[]>();   roots.forEach(root => rootMap.set(root, []));    if (nodes.length == 0) return rootMap;    const NULL_NODE = 1;   const nodeSet = new Set(nodes);   const localRootMap = new Map<any, any>();    function getRoot(node: any): any {     if (!node) return NULL_NODE;      let root = localRootMap.get(node);     if (root) return root;      const parent = node.parentNode;     if (rootMap.has(parent)) {  // ngIf inside @trigger       root = parent;     } else if (nodeSet.has(parent)) {  // ngIf inside ngIf       root = NULL_NODE;     } else {  // recurse upwards       root = getRoot(parent);     }      localRootMap.set(node, root);     return root;   }    nodes.forEach(node => {     const root = getRoot(node);     if (root !== NULL_NODE) {       rootMap.get(root)!.push(node);     }   });    return rootMap; }  function addClass(element: any, className: string) {   element.classList?.add(className); }  function removeClass(element: any, className: string) {   element.classList?.remove(className); }  function removeNodesAfterAnimationDone(     engine: TransitionAnimationEngine, element: any, players: AnimationPlayer[]) {   optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element)); }  function flattenGroupPlayers(players: AnimationPlayer[]): AnimationPlayer[] {   const finalPlayers: AnimationPlayer[] = [];   _flattenGroupPlayersRecur(players, finalPlayers);   return finalPlayers; }  function _flattenGroupPlayersRecur(players: AnimationPlayer[], finalPlayers: AnimationPlayer[]) {   for (let i = 0; i < players.length; i++) {     const player = players[i];     if (player instanceof AnimationGroupPlayer) {       _flattenGroupPlayersRecur(player.players, finalPlayers);     } else {       finalPlayers.push(player);     }   } }  function objEquals(a: {[key: string]: any}, b: {[key: string]: any}): boolean {   const k1 = Object.keys(a);   const k2 = Object.keys(b);   if (k1.length != k2.length) return false;   for (let i = 0; i < k1.length; i++) {     const prop = k1[i];     if (!b.hasOwnProperty(prop) || a[prop] !== b[prop]) return false;   }   return true; }  function replacePostStylesAsPre(     element: any, allPreStyleElements: Map<any, Set<string>>,     allPostStyleElements: Map<any, Set<string>>): boolean {   const postEntry = allPostStyleElements.get(element);   if (!postEntry) return false;    let preEntry = allPreStyleElements.get(element);   if (preEntry) {     postEntry.forEach(data => preEntry!.add(data));   } else {     allPreStyleElements.set(element, postEntry);   }    allPostStyleElements.delete(element);   return true; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationMetadata, AnimationPlayer, AnimationTriggerMetadata} from '@angular/animations';  import {TriggerAst} from '../dsl/animation_ast'; import {buildAnimationAst} from '../dsl/animation_ast_builder'; import {AnimationTrigger, buildTrigger} from '../dsl/animation_trigger'; import {AnimationStyleNormalizer} from '../dsl/style_normalization/animation_style_normalizer'; import {triggerBuildFailed} from '../error_helpers'; import {warnTriggerBuild} from '../warning_helpers';  import {AnimationDriver} from './animation_driver'; import {parseTimelineCommand} from './shared'; import {TimelineAnimationEngine} from './timeline_animation_engine'; import {TransitionAnimationEngine} from './transition_animation_engine';  export class AnimationEngine {   private _transitionEngine: TransitionAnimationEngine;   private _timelineEngine: TimelineAnimationEngine;    private _triggerCache: {[key: string]: AnimationTrigger} = {};    // this method is designed to be overridden by the code that uses this engine   public onRemovalComplete = (element: any, context: any) => {};    constructor(       private bodyNode: any, private _driver: AnimationDriver,       private _normalizer: AnimationStyleNormalizer) {     this._transitionEngine = new TransitionAnimationEngine(bodyNode, _driver, _normalizer);     this._timelineEngine = new TimelineAnimationEngine(bodyNode, _driver, _normalizer);      this._transitionEngine.onRemovalComplete = (element: any, context: any) =>         this.onRemovalComplete(element, context);   }    registerTrigger(       componentId: string, namespaceId: string, hostElement: any, name: string,       metadata: AnimationTriggerMetadata): void {     const cacheKey = componentId + '-' + name;     let trigger = this._triggerCache[cacheKey];     if (!trigger) {       const errors: Error[] = [];       const warnings: string[] = [];       const ast = buildAnimationAst(                       this._driver, metadata as AnimationMetadata, errors, warnings) as TriggerAst;       if (errors.length) {         throw triggerBuildFailed(name, errors);       }       if (warnings.length) {         warnTriggerBuild(name, warnings);       }       trigger = buildTrigger(name, ast, this._normalizer);       this._triggerCache[cacheKey] = trigger;     }     this._transitionEngine.registerTrigger(namespaceId, name, trigger);   }    register(namespaceId: string, hostElement: any) {     this._transitionEngine.register(namespaceId, hostElement);   }    destroy(namespaceId: string, context: any) {     this._transitionEngine.destroy(namespaceId, context);   }    onInsert(namespaceId: string, element: any, parent: any, insertBefore: boolean): void {     this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);   }    onRemove(namespaceId: string, element: any, context: any, isHostElement?: boolean): void {     this._transitionEngine.removeNode(namespaceId, element, isHostElement || false, context);   }    disableAnimations(element: any, disable: boolean) {     this._transitionEngine.markElementAsDisabled(element, disable);   }    process(namespaceId: string, element: any, property: string, value: any) {     if (property.charAt(0) == '@') {       const [id, action] = parseTimelineCommand(property);       const args = value as any[];       this._timelineEngine.command(id, element, action, args);     } else {       this._transitionEngine.trigger(namespaceId, element, property, value);     }   }    listen(       namespaceId: string, element: any, eventName: string, eventPhase: string,       callback: (event: any) => any): () => any {     // @@listen     if (eventName.charAt(0) == '@') {       const [id, action] = parseTimelineCommand(eventName);       return this._timelineEngine.listen(id, element, action, callback);     }     return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);   }    flush(microtaskId: number = -1): void {     this._transitionEngine.flush(microtaskId);   }    get players(): AnimationPlayer[] {     return (this._transitionEngine.players as AnimationPlayer[])         .concat(this._timelineEngine.players as AnimationPlayer[]);   }    whenRenderingDone(): Promise<any> {     return this._transitionEngine.whenRenderingDone();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ɵStyleDataMap} from '@angular/animations';  import {eraseStyles, setStyles} from '../util';  /**  * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are  * detected.  *  * In CSS there exist properties that cannot be animated within a keyframe animation  * (whether it be via CSS keyframes or web-animations) and the animation implementation  * will ignore them. This function is designed to detect those special cased styles and  * return a container that will be executed at the start and end of the animation.  *  * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`  */ export function packageNonAnimatableStyles(     element: any, styles: ɵStyleDataMap|Array<ɵStyleDataMap>): SpecialCasedStyles|null {   let startStyles: ɵStyleDataMap|null = null;   let endStyles: ɵStyleDataMap|null = null;   if (Array.isArray(styles) && styles.length) {     startStyles = filterNonAnimatableStyles(styles[0]);     if (styles.length > 1) {       endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);     }   } else if (styles instanceof Map) {     startStyles = filterNonAnimatableStyles(styles);   }    return (startStyles || endStyles) ? new SpecialCasedStyles(element, startStyles, endStyles) :                                       null; }  /**  * Designed to be executed during a keyframe-based animation to apply any special-cased styles.  *  * When started (when the `start()` method is run) then the provided `startStyles`  * will be applied. When finished (when the `finish()` method is called) the  * `endStyles` will be applied as well any any starting styles. Finally when  * `destroy()` is called then all styles will be removed.  */ export class SpecialCasedStyles {   static initialStylesByElement = (/* @__PURE__ */ new WeakMap<any, ɵStyleDataMap>());    private _state = SpecialCasedStylesState.Pending;   private _initialStyles!: ɵStyleDataMap;    constructor(       private _element: any, private _startStyles: ɵStyleDataMap|null,       private _endStyles: ɵStyleDataMap|null) {     let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);     if (!initialStyles) {       SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = new Map());     }     this._initialStyles = initialStyles;   }    start() {     if (this._state < SpecialCasedStylesState.Started) {       if (this._startStyles) {         setStyles(this._element, this._startStyles, this._initialStyles);       }       this._state = SpecialCasedStylesState.Started;     }   }    finish() {     this.start();     if (this._state < SpecialCasedStylesState.Finished) {       setStyles(this._element, this._initialStyles);       if (this._endStyles) {         setStyles(this._element, this._endStyles);         this._endStyles = null;       }       this._state = SpecialCasedStylesState.Started;     }   }    destroy() {     this.finish();     if (this._state < SpecialCasedStylesState.Destroyed) {       SpecialCasedStyles.initialStylesByElement.delete(this._element);       if (this._startStyles) {         eraseStyles(this._element, this._startStyles);         this._endStyles = null;       }       if (this._endStyles) {         eraseStyles(this._element, this._endStyles);         this._endStyles = null;       }       setStyles(this._element, this._initialStyles);       this._state = SpecialCasedStylesState.Destroyed;     }   } }  /**  * An enum of states reflective of what the status of `SpecialCasedStyles` is.  *  * Depending on how `SpecialCasedStyles` is interacted with, the start and end  * styles may not be applied in the same way. This enum ensures that if and when  * the ending styles are applied then the starting styles are applied. It is  * also used to reflect what the current status of the special cased styles are  * which helps prevent the starting/ending styles not be applied twice. It is  * also used to cleanup the styles once `SpecialCasedStyles` is destroyed.  */ const enum SpecialCasedStylesState {   Pending = 0,   Started = 1,   Finished = 2,   Destroyed = 3, }  function filterNonAnimatableStyles(styles: ɵStyleDataMap): ɵStyleDataMap|null {   let result: ɵStyleDataMap|null = null;   styles.forEach((val, prop) => {     if (isNonAnimatableStyle(prop)) {       result = result || new Map();       result.set(prop, val);     }   });   return result; }  function isNonAnimatableStyle(prop: string) {   return prop === 'display' || prop === 'position'; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, ɵStyleDataMap} from '@angular/animations';  import {computeStyle} from '../../util'; import {SpecialCasedStyles} from '../special_cased_styles';  import {DOMAnimation} from './dom_animation';  export class WebAnimationsPlayer implements AnimationPlayer {   private _onDoneFns: Function[] = [];   private _onStartFns: Function[] = [];   private _onDestroyFns: Function[] = [];   private _duration: number;   private _delay: number;   private _initialized = false;   private _finished = false;   private _started = false;   private _destroyed = false;   private _finalKeyframe?: ɵStyleDataMap;    // the following original fns are persistent copies of the _onStartFns and _onDoneFns   // and are used to reset the fns to their original values upon reset()   // (since the _onStartFns and _onDoneFns get deleted after they are called)   private _originalOnDoneFns: Function[] = [];   private _originalOnStartFns: Function[] = [];    // TODO(issue/24571): remove '!'.   public readonly domPlayer!: DOMAnimation;   public time = 0;    public parentPlayer: AnimationPlayer|null = null;   public currentSnapshot: ɵStyleDataMap = new Map();    constructor(       public element: any, public keyframes: Array<ɵStyleDataMap>,       public options: {[key: string]: string|number},       private _specialStyles?: SpecialCasedStyles|null) {     this._duration = <number>options['duration'];     this._delay = <number>options['delay'] || 0;     this.time = this._duration + this._delay;   }    private _onFinish() {     if (!this._finished) {       this._finished = true;       this._onDoneFns.forEach(fn => fn());       this._onDoneFns = [];     }   }    init(): void {     this._buildPlayer();     this._preparePlayerBeforeStart();   }    private _buildPlayer(): void {     if (this._initialized) return;     this._initialized = true;      const keyframes = this.keyframes;     (this as {domPlayer: DOMAnimation}).domPlayer =         this._triggerWebAnimation(this.element, keyframes, this.options);     this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : new Map();     this.domPlayer.addEventListener('finish', () => this._onFinish());   }    private _preparePlayerBeforeStart() {     // this is required so that the player doesn't start to animate right away     if (this._delay) {       this._resetDomPlayerState();     } else {       this.domPlayer.pause();     }   }    private _convertKeyframesToObject(keyframes: Array<ɵStyleDataMap>): any[] {     const kfs: any[] = [];     keyframes.forEach(frame => {       kfs.push(Object.fromEntries(frame));     });     return kfs;   }    /** @internal */   _triggerWebAnimation(element: any, keyframes: Array<ɵStyleDataMap>, options: any): DOMAnimation {     // jscompiler doesn't seem to know animate is a native property because it's not fully     // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]     return element['animate'](this._convertKeyframesToObject(keyframes), options) as DOMAnimation;   }    onStart(fn: () => void): void {     this._originalOnStartFns.push(fn);     this._onStartFns.push(fn);   }    onDone(fn: () => void): void {     this._originalOnDoneFns.push(fn);     this._onDoneFns.push(fn);   }    onDestroy(fn: () => void): void {     this._onDestroyFns.push(fn);   }    play(): void {     this._buildPlayer();     if (!this.hasStarted()) {       this._onStartFns.forEach(fn => fn());       this._onStartFns = [];       this._started = true;       if (this._specialStyles) {         this._specialStyles.start();       }     }     this.domPlayer.play();   }    pause(): void {     this.init();     this.domPlayer.pause();   }    finish(): void {     this.init();     if (this._specialStyles) {       this._specialStyles.finish();     }     this._onFinish();     this.domPlayer.finish();   }    reset(): void {     this._resetDomPlayerState();     this._destroyed = false;     this._finished = false;     this._started = false;     this._onStartFns = this._originalOnStartFns;     this._onDoneFns = this._originalOnDoneFns;   }    private _resetDomPlayerState() {     if (this.domPlayer) {       this.domPlayer.cancel();     }   }    restart(): void {     this.reset();     this.play();   }    hasStarted(): boolean {     return this._started;   }    destroy(): void {     if (!this._destroyed) {       this._destroyed = true;       this._resetDomPlayerState();       this._onFinish();       if (this._specialStyles) {         this._specialStyles.destroy();       }       this._onDestroyFns.forEach(fn => fn());       this._onDestroyFns = [];     }   }    setPosition(p: number): void {     if (this.domPlayer === undefined) {       this.init();     }     this.domPlayer.currentTime = p * this.time;   }    getPosition(): number {     return this.domPlayer.currentTime / this.time;   }    get totalTime(): number {     return this._delay + this._duration;   }    beforeDestroy() {     const styles: ɵStyleDataMap = new Map();     if (this.hasStarted()) {       // note: this code is invoked only when the `play` function was called prior to this       // (thus `hasStarted` returns true), this implies that the code that initializes       // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here       const finalKeyframe = this._finalKeyframe!;       finalKeyframe.forEach((val, prop) => {         if (prop !== 'offset') {           styles.set(prop, this._finished ? val : computeStyle(this.element, prop));         }       });     }      this.currentSnapshot = styles;   }    /** @internal */   triggerCallback(phaseName: string): void {     const methods = phaseName === 'start' ? this._onStartFns : this._onDoneFns;     methods.forEach(fn => fn());     methods.length = 0;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {AnimationPlayer, ɵStyleDataMap} from '@angular/animations';  import {allowPreviousPlayerStylesMerge, balancePreviousStylesIntoKeyframes, camelCaseToDashCase, copyStyles, normalizeKeyframes} from '../../util'; import {AnimationDriver} from '../animation_driver'; import {containsElement, getParentElement, invokeQuery, validateStyleProperty, validateWebAnimatableStyleProperty} from '../shared'; import {packageNonAnimatableStyles} from '../special_cased_styles';  import {WebAnimationsPlayer} from './web_animations_player';  export class WebAnimationsDriver implements AnimationDriver {   validateStyleProperty(prop: string): boolean {     // Perform actual validation in dev mode only, in prod mode this check is a noop.     if (typeof ngDevMode === 'undefined' || ngDevMode) {       return validateStyleProperty(prop);     }     return true;   }    validateAnimatableStyleProperty(prop: string): boolean {     // Perform actual validation in dev mode only, in prod mode this check is a noop.     if (typeof ngDevMode === 'undefined' || ngDevMode) {       const cssProp = camelCaseToDashCase(prop);       return validateWebAnimatableStyleProperty(cssProp);     }     return true;   }    matchesElement(_element: any, _selector: string): boolean {     // This method is deprecated and no longer in use so we return false.     return false;   }    containsElement(elm1: any, elm2: any): boolean {     return containsElement(elm1, elm2);   }    getParentElement(element: unknown): unknown {     return getParentElement(element);   }    query(element: any, selector: string, multi: boolean): any[] {     return invokeQuery(element, selector, multi);   }    computeStyle(element: any, prop: string, defaultValue?: string): string {     return (window.getComputedStyle(element) as any)[prop] as string;   }    animate(       element: any, keyframes: Array<Map<string, string|number>>, duration: number, delay: number,       easing: string, previousPlayers: AnimationPlayer[] = []): AnimationPlayer {     const fill = delay == 0 ? 'both' : 'forwards';     const playerOptions: {[key: string]: string|number} = {duration, delay, fill};     // we check for this to avoid having a null|undefined value be present     // for the easing (which results in an error for certain browsers #9752)     if (easing) {       playerOptions['easing'] = easing;     }      const previousStyles: ɵStyleDataMap = new Map();     const previousWebAnimationPlayers = <WebAnimationsPlayer[]>previousPlayers.filter(         player => player instanceof WebAnimationsPlayer);     if (allowPreviousPlayerStylesMerge(duration, delay)) {       previousWebAnimationPlayers.forEach(player => {         player.currentSnapshot.forEach((val, prop) => previousStyles.set(prop, val));       });     }      let _keyframes = normalizeKeyframes(keyframes).map(styles => copyStyles(styles));     _keyframes = balancePreviousStylesIntoKeyframes(element, _keyframes, previousStyles);     const specialStyles = packageNonAnimatableStyles(element, _keyframes);     return new WebAnimationsPlayer(element, _keyframes, playerOptions, specialStyles);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all animation APIs of the animation browser package.  */ export {AnimationDriver} from './render/animation_driver'; export * from './private_export'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/browser'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["RuntimeError","normalizeKeyframes","PRE_STYLE","Anim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grade.mjs","sources":["../../../../../../packages/router/upgrade/src/upgrade.ts","../../../../../../packages/router/upgrade/public_api.ts","../../../../../../packages/router/upgrade/index.ts","../../../../../../packages/router/upgrade/upgrade.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location} from '@angular/common'; import {APP_BOOTSTRAP_LISTENER, ComponentRef, InjectionToken} from '@angular/core'; import {Router, ɵRestoredState as RestoredState} from '@angular/router'; import {UpgradeModule} from '@angular/upgrade/static';  /**  * Creates an initializer that sets up `ngRoute` integration  * along with setting up the Angular router.  *  * @usageNotes  *  * <code-example language=\"typescript\">  * @NgModule({  *  imports: [  *   RouterModule.forRoot(SOME_ROUTES),  *   UpgradeModule  * ],  * providers: [  *   RouterUpgradeInitializer  * ]  * })  * export class AppModule {  *   ngDoBootstrap() {}  * }  * </code-example>  *  * @publicApi  */ export const RouterUpgradeInitializer = {   provide: APP_BOOTSTRAP_LISTENER,   multi: true,   useFactory: locationSyncBootstrapListener as (ngUpgrade: UpgradeModule) => () => void,   deps: [UpgradeModule] };  /**  * @internal  */ export function locationSyncBootstrapListener(ngUpgrade: UpgradeModule) {   return () => {     setUpLocationSync(ngUpgrade);   }; }  /**  * Sets up a location change listener to trigger `history.pushState`.  * Works around the problem that `onPopState` does not trigger `history.pushState`.  * Must be called *after* calling `UpgradeModule.bootstrap`.  *  * @param ngUpgrade The upgrade NgModule.  * @param urlType The location strategy.  * @see `HashLocationStrategy`  * @see `PathLocationStrategy`  *  * @publicApi  */ export function setUpLocationSync(ngUpgrade: UpgradeModule, urlType: 'path'|'hash' = 'path') {   if (!ngUpgrade.$injector) {     throw new Error(`         RouterUpgradeInitializer can be used only after UpgradeModule.bootstrap has been called.         Remove RouterUpgradeInitializer and call setUpLocationSync after UpgradeModule.bootstrap.       `);   }    const router: Router = ngUpgrade.injector.get(Router);   const location: Location = ngUpgrade.injector.get(Location);    ngUpgrade.$injector.get('$rootScope')       .$on(           '$locationChangeStart',           (event: any, newUrl: string, oldUrl: string,            newState?: {[k: string]: unknown}|RestoredState,            oldState?: {[k: string]: unknown}|RestoredState) => {             // Navigations coming from Angular router have a navigationId state             // property. Don't trigger Angular router navigation again if it is             // caused by a URL change from the current Angular router             // navigation.             const currentNavigationId = router.getCurrentNavigation()?.id;             const newStateNavigationId = newState?.navigationId;             if (newStateNavigationId !== undefined &&                 newStateNavigationId === currentNavigationId) {               return;             }              let url;             if (urlType === 'path') {               url = resolveUrl(newUrl);             } else if (urlType === 'hash') {               // Remove the first hash from the URL               const hashIdx = newUrl.indexOf('#');               url = resolveUrl(newUrl.substring(0, hashIdx) + newUrl.substring(hashIdx + 1));             } else {               throw 'Invalid URLType passed to setUpLocationSync: ' + urlType;             }             const path = location.normalize(url.pathname);             router.navigateByUrl(path + url.search + url.hash);           }); }  /**  * Normalizes and parses a URL.  *  * - Normalizing means that a relative URL will be resolved into an absolute URL in the context of  *   the application document.  * - Parsing means that the anchor's `protocol`, `hostname`, `port`, `pathname` and related  *   properties are all populated to reflect the normalized URL.  *  * While this approach has wide compatibility, it doesn't work as expected on IE. On IE, normalizing  * happens similar to other browsers, but the parsed components will not be set. (E.g. if you assign  * `a.href = 'foo'`, then `a.protocol`, `a.host`, etc. will not be correctly updated.)  * We work around that by performing the parsing in a 2nd step by taking a previously normalized URL  * and assigning it again. This correctly populates all properties.  *  * See  * https://github.com/angular/angular.js/blob/2c7400e7d07b0f6cec1817dab40b9250ce8ebce6/src/ng/urlUtils.js#L26-L33  * for more info.  */ let anchor: HTMLAnchorElement|undefined; function resolveUrl(url: string): {pathname: string, search: string, hash: string} {   if (!anchor) {     anchor = document.createElement('a');   }    anchor.setAttribute('href', url);   anchor.setAttribute('href', anchor.href);    return {     // IE does not start `pathname` with `/` like other browsers.     pathname: `/${anchor.pathname.replace(/^\\//, '')}`,     search: anchor.search,     hash: anchor.hash   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/upgrade';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;AAaA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AACU,MAAA,wBAAwB,GAAG;AACtC,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,UAAU,EAAE,6BAAyE;IACrF,IAAI,EAAE,CAAC,aAAa,CAAC;EACrB;AAEF;;AAEG;AACG,SAAU,6BAA6B,CAAC,SAAwB,EAAA;AACpE,IAAA,OAAO,MAAK;QACV,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAC/B,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;AAWG;SACa,iBAAiB,CAAC,SAAwB,EAAE,UAAyB,MAAM,EAAA;AACzF,IAAA,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,CAAA;;;AAGb,MAAA,CAAA,CAAC,CAAC;AACN,KAAA;IAED,MAAM,MAAM,GAAW,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAa,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAE5D,IAAA,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC;AAChC,SAAA,GAAG,CACA,sBAAsB,EACtB,CAAC,KAAU,EAAE,MAAc,EAAE,MAAc,EAC1C,QAA+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M,CAAC,IAAI,CAAC,CAAC;IAEzC,OAAO;;AAEL,QAAA,QAAQ,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAE,CAAA;QAClD,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AACJ;;ACpIA;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 27 --------------------
{"version":3,"file":"upgrade.mjs","sources":["../../../../../../packages/router/upgrade/src/upgrade.ts","../../../../../../packages/router/upgrade/public_api.ts","../../../../../../packages/router/upgrade/index.ts","../../../../../../packages/router/upgrade/upgrade.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location} from '@angular/common'; import {APP_BOOTSTRAP_LISTENER, ComponentRef, InjectionToken} from '@angular/core'; import {Router, ɵRestoredState as RestoredState} from '@angular/router'; import {UpgradeModule} from '@angular/upgrade/static';  /**  * Creates an initializer that sets up `ngRoute` integration  * along with setting up the Angular router.  *  * @usageNotes  *  * <code-example language=\"typescript\">  * @NgModule({  *  imports: [  *   RouterModule.forRoot(SOME_ROUTES),  *   UpgradeModule  * ],  * providers: [  *   RouterUpgradeInitializer  * ]  * })  * export class AppModule {  *   ngDoBootstrap() {}  * }  * </code-example>  *  * @publicApi  */ export const RouterUpgradeInitializer = {   provide: APP_BOOTSTRAP_LISTENER,   multi: true,   useFactory: locationSyncBootstrapListener as (ngUpgrade: UpgradeModule) => () => void,   deps: [UpgradeModule] };  /**  * @internal  */ export function locationSyncBootstrapListener(ngUpgrade: UpgradeModule) {   return () => {     setUpLocationSync(ngUpgrade);   }; }  /**  * Sets up a location change listener to trigger `history.pushState`.  * Works around the problem that `onPopState` does not trigger `history.pushState`.  * Must be called *after* calling `UpgradeModule.bootstrap`.  *  * @param ngUpgrade The upgrade NgModule.  * @param urlType The location strategy.  * @see `HashLocationStrategy`  * @see `PathLocationStrategy`  *  * @publicApi  */ export function setUpLocationSync(ngUpgrade: UpgradeModule, urlType: 'path'|'hash' = 'path') {   if (!ngUpgrade.$injector) {     throw new Error(`         RouterUpgradeInitializer can be used only after UpgradeModule.bootstrap has been called.         Remove RouterUpgradeInitializer and call setUpLocationSync after UpgradeModule.bootstrap.       `);   }    const router: Router = ngUpgrade.injector.get(Router);   const location: Location = ngUpgrade.injector.get(Location);    ngUpgrade.$injector.get('$rootScope')       .$on(           '$locationChangeStart',           (event: any, newUrl: string, oldUrl: string,            newState?: {[k: string]: unknown}|RestoredState,            oldState?: {[k: string]: unknown}|RestoredState) => {             // Navigations coming from Angular router have a navigationId state             // property. Don't trigger Angular router navigation again if it is             // caused by a URL change from the current Angular router             // navigation.             const currentNavigationId = router.getCurrentNavigation()?.id;             const newStateNavigationId = newState?.navigationId;             if (newStateNavigationId !== undefined &&                 newStateNavigationId === currentNavigationId) {               return;             }              let url;             if (urlType === 'path') {               url = resolveUrl(newUrl);             } else if (urlType === 'hash') {               // Remove the first hash from the URL               const hashIdx = newUrl.indexOf('#');               url = resolveUrl(newUrl.substring(0, hashIdx) + newUrl.substring(hashIdx + 1));             } else {               throw 'Invalid URLType passed to setUpLocationSync: ' + urlType;             }             const path = location.normalize(url.pathname);             router.navigateByUrl(path + url.search + url.hash);           }); }  /**  * Normalizes and parses a URL.  *  * - Normalizing means that a relative URL will be resolved into an absolute URL in the context of  *   the application document.  * - Parsing means that the anchor's `protocol`, `hostname`, `port`, `pathname` and related  *   properties are all populated to reflect the normalized URL.  *  * While this approach has wide compatibility, it doesn't work as expected on IE. On IE, normalizing  * happens similar to other browsers, but the parsed components will not be set. (E.g. if you assign  * `a.href = 'foo'`, then `a.protocol`, `a.host`, etc. will not be correctly updated.)  * We work around that by performing the parsing in a 2nd step by taking a previously normalized URL  * and assigning it again. This correctly populates all properties.  *  * See  * https://github.com/angular/angular.js/blob/2c7400e7d07b0f6cec1817dab40b9250ce8ebce6/src/ng/urlUtils.js#L26-L33  * for more info.  */ let anchor: HTMLAnchorElement|undefined; function resolveUrl(url: string): {pathname: string, search: string, hash: string} {   if (!anchor) {     anchor = document.createElement('a');   }    anchor.setAttribute('href', url);   anchor.setAttribute('href', anchor.href);    return {     // IE does not start `pathname` with `/` like other browsers.     pathname: `/${anchor.pathname.replace(/^\\//, '')}`,     search: anchor.search,     hash: anchor.hash   }; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/upgrade';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;AAaA;;;;;;;;;;;;;;;;;;;;;;AAsBG;AACU,MAAA,wBAAwB,GAAG;AACtC,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,UAAU,EAAE,6BAAyE;IACrF,IAAI,EAAE,CAAC,aAAa,CAAC;EACrB;AAEF;;AAEG;AACG,SAAU,6BAA6B,CAAC,SAAwB,EAAA;AACpE,IAAA,OAAO,MAAK;QACV,iBAAiB,CAAC,SAAS,CAAC,CAAC;AAC/B,KAAC,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;AAWG;SACa,iBAAiB,CAAC,SAAwB,EAAE,UAAyB,MAAM,EAAA;AACzF,IAAA,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,CAAA;;;AAGb,MAAA,C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,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9C,QAAA,MAAM,CAAC,aAAa,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC;AACrD,KAAC,CAAC,CAAC;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;AAiBG;AACH,IAAI,MAAmC,CAAC;AACxC,SAAS,UAAU,CAAC,GAAW,EAAA;IAC7B,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AACtC,KAAA;AAED,IAAA,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAEzC,OAAO;;AAEL,QAAA,QAAQ,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAE,CAAA;QAClD,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,IAAI;KAClB,CAAC;AACJ;;ACpIA;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 28 --------------------
Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ /**  *
-------------------- SECTION 29 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../../packages/common/http/testing/src/api.ts","../../../../../../../packages/common/http/testing/src/request.ts","../../../../../../../packages/common/http/testing/src/backend.ts","../../../../../../../packages/common/http/testing/src/provider.ts","../../../../../../../packages/common/http/testing/src/module.ts","../../../../../../../packages/common/http/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpRequest} from '@angular/common/http';  import {TestRequest} from './request';  /**  * Defines a matcher for requests based on URL, method, or both.  *  * @publicApi  */ export interface RequestMatch {   method?: string;   url?: string; }  /**  * Controller to be injected into tests, that allows for mocking and flushing  * of requests.  *  * @publicApi  */ export abstract class HttpTestingController {   /**    * Search for requests that match the given parameter, without any expectations.    */   abstract match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[];    /**    * Expect that a single request has been made which matches the given URL, and return its    * mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(url: string, description?: string): TestRequest;    /**    * Expect that a single request has been made which matches the given parameters, and return    * its mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(params: RequestMatch, description?: string): TestRequest;    /**    * Expect that a single request has been made which matches the given predicate function, and    * return its mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(matchFn: ((req: HttpRequest<any>) => boolean), description?: string):       TestRequest;    /**    * Expect that a single request has been made which matches the given condition, and return    * its mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(       match: string|RequestMatch|((req: HttpRequest<any>) => boolean),       description?: string): TestRequest;    /**    * Expect that no requests have been made which match the given URL.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(url: string, description?: string): void;    /**    * Expect that no requests have been made which match the given parameters.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(params: RequestMatch, description?: string): void;    /**    * Expect that no requests have been made which match the given predicate function.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): void;    /**    * Expect that no requests have been made which match the given condition.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(       match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string): void;    /**    * Verify that no unmatched requests are outstanding.    *    * If any requests are outstanding, fail with an error message indicating which requests were not    * handled.    *    * If `ignoreCancelled` is not set (the default), `verify()` will also fail if cancelled requests    * were not explicitly matched.    */   abstract verify(opts?: {ignoreCancelled?: boolean}): void; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpErrorResponse, HttpEvent, HttpHeaders, HttpRequest, HttpResponse, HttpStatusCode} from '@angular/common/http'; import {Observer} from 'rxjs';  /**  * Type that describes options that can be used to create an error  * in `TestRequest`.  */ type TestRequestErrorOptions = {   headers?: HttpHeaders|{[name: string]: string | string[]},   status?: number,   statusText?: string, };  /**  * A mock requests that was received and is ready to be answered.  *  * This interface allows access to the underlying `HttpRequest`, and allows  * responding with `HttpEvent`s or `HttpErrorResponse`s.  *  * @publicApi  */ export class TestRequest {   /**    * Whether the request was cancelled after it was sent.    */   get cancelled(): boolean {     return this._cancelled;   }    /**    * @internal set by `HttpClientTestingBackend`    */   _cancelled = false;    constructor(public request: HttpRequest<any>, private observer: Observer<HttpEvent<any>>) {}    /**    * Resolve the request by returning a body plus additional HTTP information (such as response    * headers) if provided.    * If the request specifies an expected body type, the body is converted into the requested type.    * Otherwise, the body is converted to `JSON` by default.    *    * Both successful and unsuccessful responses can be delivered via `flush()`.    */   flush(       body: ArrayBuffer|Blob|boolean|string|number|Object|(boolean|string|number|Object|null)[]|       null,       opts: {         headers?: HttpHeaders|{[name: string]: string | string[]},         status?: number,         statusText?: string,       } = {}): void {     if (this.cancelled) {       throw new Error(`Cannot flush a cancelled request.`);     }     const url = this.request.urlWithParams;     const headers =         (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);     body = _maybeConvertBody(this.request.responseType, body);     let statusText: string|undefined = opts.statusText;     let status: number = opts.status !== undefined ? opts.status : HttpStatusCode.Ok;     if (opts.status === undefined) {       if (body === null) {         status = HttpStatusCode.NoContent;         statusText = statusText || 'No Content';       } else {         statusText = statusText || 'OK';       }     }     if (statusText === undefined) {       throw new Error('statusText is required when setting a custom status.');     }     if (status >= 200 && status < 300) {       this.observer.next(new HttpResponse<any>({body, headers, status, statusText, url}));       this.observer.complete();     } else {       this.observer.error(new HttpErrorResponse({error: body, headers, status, statusText, url}));     }   }    /**    * Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).    * @deprecated Http requests never emit an `ErrorEvent`. Please specify a `ProgressEvent`.    */   error(error: ErrorEvent, opts?: TestRequestErrorOptions): void;   /**    * Resolve the request by returning an `ProgressEvent` (e.g. simulating a network failure).    */   error(error: ProgressEvent, opts?: TestRequestErrorOptions): void;   error(error: ProgressEvent|ErrorEvent, opts: TestRequestErrorOptions = {}): void {     if (this.cancelled) {       throw new Error(`Cannot return an error for a cancelled request.`);     }     if (opts.status && opts.status >= 200 && opts.status < 300) {       throw new Error(`error() called with a successful status.`);     }     const headers =         (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);     this.observer.error(new HttpErrorResponse({       error,       headers,       status: opts.status || 0,       statusText: opts.statusText || '',       url: this.request.urlWithParams,     }));   }    /**    * Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this    * request.    */   event(event: HttpEvent<any>): void {     if (this.cancelled) {       throw new Error(`Cannot send events to a cancelled request.`);     }     this.observer.next(event);   } }   /**  * Helper function to convert a response body to an ArrayBuffer.  */ function _toArrayBufferBody(body: ArrayBuffer|Blob|string|number|Object|                             (string | number | Object | null)[]): ArrayBuffer {   if (typeof ArrayBuffer === 'undefined') {     throw new Error('ArrayBuffer responses are not supported on this platform.');   }   if (body instanceof ArrayBuffer) {     return body;   }   throw new Error('Automatic conversion to ArrayBuffer is not supported for response type.'); }  /**  * Helper function to convert a response body to a Blob.  */ function _toBlob(body: ArrayBuffer|Blob|string|number|Object|                  (string | number | Object | null)[]): Blob {   if (typeof Blob === 'undefined') {     throw new Error('Blob responses are not supported on this platform.');   }   if (body instanceof Blob) {     return body;   }   if (ArrayBuffer && body instanceof ArrayBuffer) {     return new Blob([body]);   }   throw new Error('Automatic conversion to Blob is not supported for response type.'); }  /**  * Helper function to convert a response body to JSON data.  */ function _toJsonBody(     body: ArrayBuffer|Blob|boolean|string|number|Object|     (boolean | string | number | Object | null)[],     format: string = 'JSON'): Object|string|number|(Object | string | number)[] {   if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {     throw new Error(`Automatic conversion to ${format} is not supported for ArrayBuffers.`);   }   if (typeof Blob !== 'undefined' && body instanceof Blob) {     throw new Error(`Automatic conversion to ${format} is not supported for Blobs.`);   }   if (typeof body === 'string' || typeof body === 'number' || typeof body === 'object' ||       typeof body === 'boolean' || Array.isArray(body)) {     return body;   }   throw new Error(`Automatic conversion to ${format} is not supported for response type.`); }  /**  * Helper function to convert a response body to a string.  */ function _toTextBody(body: ArrayBuffer|Blob|string|number|Object|                      (string | number | Object | null)[]): string {   if (typeof body === 'string') {     return body;   }   if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {     throw new Error('Automatic conversion to text is not supported for ArrayBuffers.');   }   if (typeof Blob !== 'undefined' && body instanceof Blob) {     throw new Error('Automatic conversion to text is not supported for Blobs.');   }   return JSON.stringify(_toJsonBody(body, 'text')); }  /**  * Convert a response body to the requested type.  */ function _maybeConvertBody(     responseType: string,     body: ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|     null): ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|null {   if (body === null) {     return null;   }   switch (responseType) {     case 'arraybuffer':       return _toArrayBufferBody(body);     case 'blob':       return _toBlob(body);     case 'json':       return _toJsonBody(body);     case 'text':       return _toTextBody(body);     default:       throw new Error(`Unsupported responseType: ${responseType}`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpBackend, HttpEvent, HttpEventType, HttpRequest} from '@angular/common/http'; import {Injectable} from '@angular/core'; import {Observable, Observer} from 'rxjs';  import {HttpTestingController, RequestMatch} from './api'; import {TestRequest} from './request';   /**  * A testing backend for `HttpClient` which both acts as an `HttpBackend`  * and as the `HttpTestingController`.  *  * `HttpClientTestingBackend` works by keeping a list of all open requests.  * As requests come in, they're added to the list. Users can assert that specific  * requests were made and then flush them. In the end, a verify() method asserts  * that no unexpected requests were made.  *  *  */ @Injectable() export class HttpClientTestingBackend implements HttpBackend, HttpTestingController {   /**    * List of pending requests which have not yet been expected.    */   private open: TestRequest[] = [];    /**    * Handle an incoming request by queueing it in the list of open requests.    */   handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {     return new Observable((observer: Observer<any>) => {       const testReq = new TestRequest(req, observer);       this.open.push(testReq);       observer.next({type: HttpEventType.Sent} as HttpEvent<any>);       return () => {         testReq._cancelled = true;       };     });   }    /**    * Helper function to search for requests in the list of open requests.    */   private _match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {     if (typeof match === 'string') {       return this.open.filter(testReq => testReq.request.urlWithParams === match);     } else if (typeof match === 'function') {       return this.open.filter(testReq => match(testReq.request));     } else {       return this.open.filter(           testReq => (!match.method || testReq.request.method === match.method.toUpperCase()) &&               (!match.url || testReq.request.urlWithParams === match.url));     }   }    /**    * Search for requests in the list of open requests, and return all that match    * without asserting anything about the number of matches.    */   match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {     const results = this._match(match);     results.forEach(result => {       const index = this.open.indexOf(result);       if (index !== -1) {         this.open.splice(index, 1);       }     });     return results;   }    /**    * Expect that a single outstanding request matches the given matcher, and return    * it.    *    * Requests returned through this API will no longer be in the list of open requests,    * and thus will not match twice.    */   expectOne(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):       TestRequest {     description = description || this.descriptionFromMatcher(match);     const matches = this.match(match);     if (matches.length > 1) {       throw new Error(`Expected one matching request for criteria \"${description}\", found ${           matches.length} requests.`);     }     if (matches.length === 0) {       let message = `Expected one matching request for criteria \"${description}\", found none.`;       if (this.open.length > 0) {         // Show the methods and URLs of open requests in the error, for convenience.         const requests = this.open.map(describeRequest).join(', ');         message += ` Requests received are: ${requests}.`;       }       throw new Error(message);     }     return matches[0];   }    /**    * Expect that no outstanding requests match the given matcher, and throw an error    * if any do.    */   expectNone(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):       void {     description = description || this.descriptionFromMatcher(match);     const matches = this.match(match);     if (matches.length > 0) {       throw new Error(`Expected zero matching requests for criteria \"${description}\", found ${           matches.length}.`);     }   }    /**    * Validate that there are no outstanding requests.    */   verify(opts: {ignoreCancelled?: boolean} = {}): void {     let open = this.open;     // It's possible that some requests may be cancelled, and this is expected.     // The user can ask to ignore open requests which have been cancelled.     if (opts.ignoreCancelled) {       open = open.filter(testReq => !testReq.cancelled);     }     if (open.length > 0) {       // Show the methods and URLs of open requests in the error, for convenience.       const requests = open.map(describeRequest).join(', ');       throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);     }   }    private descriptionFromMatcher(matcher: string|RequestMatch|                                  ((req: HttpRequest<any>) => boolean)): string {     if (typeof matcher === 'string') {       return `Match URL: ${matcher}`;     } else if (typeof matcher === 'object') {       const method = matcher.method || '(any)';       const url = matcher.url || '(any)';       return `Match method: ${method}, URL: ${url}`;     } else {       return `Match by function: ${matcher.name}`;     }   } }  function describeRequest(testRequest: TestRequest): string {   const url = testRequest.request.urlWithParams;   const method = testRequest.request.method;   return `${method} ${url}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpBackend, HttpClientModule} from '@angular/common/http'; import {NgModule, Provider} from '@angular/core';  import {HttpTestingController} from './api'; import {HttpClientTestingBackend} from './backend';   export function provideHttpClientTesting(): Provider[] {   return [     HttpClientTestingBackend,     {provide: HttpBackend, useExisting: HttpClientTestingBackend},     {provide: HttpTestingController, useExisting: HttpClientTestingBackend},   ]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpClientModule} from '@angular/common/http'; import {NgModule} from '@angular/core';  import {provideHttpClientTesting} from './provider';   /**  * Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.  *  * Inject `HttpTestingController` to expect and flush requests in your tests.  *  * @publicApi  */ @NgModule({   imports: [     HttpClientModule,   ],   providers: [     provideHttpClientTesting(),   ], }) export class HttpClientTestingModule { } ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;AAsBA;;;;;AAKG;MACmB,qBAAqB,CAAA;AAwF1C;;AC/FD;;;;;;;AAOG;MACU,WAAW,CAAA;AACtB;;AAEG;AACH,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAOD,WAAmB,CAAA,OAAyB,EAAU,QAAkC,EAAA;AAArE,QAAA,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;AAAU,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;AALxF;;AAEG;AACH,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK,CAAC;KAEyE;AAE5F;;;;;;;AAOG;AACH,IAAA,KAAK,CACD,IACI,EACJ,IAAA,GAII,EAAE,EAAA;QACR,IAAI,IAAI,CAAC,SAAS,EAAE;AAClB,YAAA,MAAM,IAAI,KAAK,CAAC,CAAA,iCAAA,CAAmC,CAAC,CAAC;AACtD,SAAA;AACD,QAAA,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;QACvC,MAAM,OAAO,GACT,CAAC,IAAI,CAAC,OAAO,YAAY,WAAW,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAC1D,QAAA,IAAI,UAAU,GAAqB,IAA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E;AAC3B,KAAA,EAAA,OAAA,EAAA,CAJC,gBAAgB,CAAA,EAAA,CAAA,CAAA;sGAMP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,gBAAgB;AACjB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA,wBAAwB,EAAE;AAC3B,qBAAA;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
-------------------- SECTION 30 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../../packages/common/http/testing/src/api.ts","../../../../../../../packages/common/http/testing/src/request.ts","../../../../../../../packages/common/http/testing/src/backend.ts","../../../../../../../packages/common/http/testing/src/provider.ts","../../../../../../../packages/common/http/testing/src/module.ts","../../../../../../../packages/common/http/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpRequest} from '@angular/common/http';  import {TestRequest} from './request';  /**  * Defines a matcher for requests based on URL, method, or both.  *  * @publicApi  */ export interface RequestMatch {   method?: string;   url?: string; }  /**  * Controller to be injected into tests, that allows for mocking and flushing  * of requests.  *  * @publicApi  */ export abstract class HttpTestingController {   /**    * Search for requests that match the given parameter, without any expectations.    */   abstract match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[];    /**    * Expect that a single request has been made which matches the given URL, and return its    * mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(url: string, description?: string): TestRequest;    /**    * Expect that a single request has been made which matches the given parameters, and return    * its mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(params: RequestMatch, description?: string): TestRequest;    /**    * Expect that a single request has been made which matches the given predicate function, and    * return its mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(matchFn: ((req: HttpRequest<any>) => boolean), description?: string):       TestRequest;    /**    * Expect that a single request has been made which matches the given condition, and return    * its mock.    *    * If no such request has been made, or more than one such request has been made, fail with an    * error message including the given request description, if any.    */   abstract expectOne(       match: string|RequestMatch|((req: HttpRequest<any>) => boolean),       description?: string): TestRequest;    /**    * Expect that no requests have been made which match the given URL.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(url: string, description?: string): void;    /**    * Expect that no requests have been made which match the given parameters.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(params: RequestMatch, description?: string): void;    /**    * Expect that no requests have been made which match the given predicate function.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(matchFn: ((req: HttpRequest<any>) => boolean), description?: string): void;    /**    * Expect that no requests have been made which match the given condition.    *    * If a matching request has been made, fail with an error message including the given request    * description, if any.    */   abstract expectNone(       match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string): void;    /**    * Verify that no unmatched requests are outstanding.    *    * If any requests are outstanding, fail with an error message indicating which requests were not    * handled.    *    * If `ignoreCancelled` is not set (the default), `verify()` will also fail if cancelled requests    * were not explicitly matched.    */   abstract verify(opts?: {ignoreCancelled?: boolean}): void; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpErrorResponse, HttpEvent, HttpHeaders, HttpRequest, HttpResponse, HttpStatusCode} from '@angular/common/http'; import {Observer} from 'rxjs';  /**  * Type that describes options that can be used to create an error  * in `TestRequest`.  */ type TestRequestErrorOptions = {   headers?: HttpHeaders|{[name: string]: string | string[]},   status?: number,   statusText?: string, };  /**  * A mock requests that was received and is ready to be answered.  *  * This interface allows access to the underlying `HttpRequest`, and allows  * responding with `HttpEvent`s or `HttpErrorResponse`s.  *  * @publicApi  */ export class TestRequest {   /**    * Whether the request was cancelled after it was sent.    */   get cancelled(): boolean {     return this._cancelled;   }    /**    * @internal set by `HttpClientTestingBackend`    */   _cancelled = false;    constructor(public request: HttpRequest<any>, private observer: Observer<HttpEvent<any>>) {}    /**    * Resolve the request by returning a body plus additional HTTP information (such as response    * headers) if provided.    * If the request specifies an expected body type, the body is converted into the requested type.    * Otherwise, the body is converted to `JSON` by default.    *    * Both successful and unsuccessful responses can be delivered via `flush()`.    */   flush(       body: ArrayBuffer|Blob|boolean|string|number|Object|(boolean|string|number|Object|null)[]|       null,       opts: {         headers?: HttpHeaders|{[name: string]: string | string[]},         status?: number,         statusText?: string,       } = {}): void {     if (this.cancelled) {       throw new Error(`Cannot flush a cancelled request.`);     }     const url = this.request.urlWithParams;     const headers =         (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);     body = _maybeConvertBody(this.request.responseType, body);     let statusText: string|undefined = opts.statusText;     let status: number = opts.status !== undefined ? opts.status : HttpStatusCode.Ok;     if (opts.status === undefined) {       if (body === null) {         status = HttpStatusCode.NoContent;         statusText = statusText || 'No Content';       } else {         statusText = statusText || 'OK';       }     }     if (statusText === undefined) {       throw new Error('statusText is required when setting a custom status.');     }     if (status >= 200 && status < 300) {       this.observer.next(new HttpResponse<any>({body, headers, status, statusText, url}));       this.observer.complete();     } else {       this.observer.error(new HttpErrorResponse({error: body, headers, status, statusText, url}));     }   }    /**    * Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).    * @deprecated Http requests never emit an `ErrorEvent`. Please specify a `ProgressEvent`.    */   error(error: ErrorEvent, opts?: TestRequestErrorOptions): void;   /**    * Resolve the request by returning an `ProgressEvent` (e.g. simulating a network failure).    */   error(error: ProgressEvent, opts?: TestRequestErrorOptions): void;   error(error: ProgressEvent|ErrorEvent, opts: TestRequestErrorOptions = {}): void {     if (this.cancelled) {       throw new Error(`Cannot return an error for a cancelled request.`);     }     if (opts.status && opts.status >= 200 && opts.status < 300) {       throw new Error(`error() called with a successful status.`);     }     const headers =         (opts.headers instanceof HttpHeaders) ? opts.headers : new HttpHeaders(opts.headers);     this.observer.error(new HttpErrorResponse({       error,       headers,       status: opts.status || 0,       statusText: opts.statusText || '',       url: this.request.urlWithParams,     }));   }    /**    * Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this    * request.    */   event(event: HttpEvent<any>): void {     if (this.cancelled) {       throw new Error(`Cannot send events to a cancelled request.`);     }     this.observer.next(event);   } }   /**  * Helper function to convert a response body to an ArrayBuffer.  */ function _toArrayBufferBody(body: ArrayBuffer|Blob|string|number|Object|                             (string | number | Object | null)[]): ArrayBuffer {   if (typeof ArrayBuffer === 'undefined') {     throw new Error('ArrayBuffer responses are not supported on this platform.');   }   if (body instanceof ArrayBuffer) {     return body;   }   throw new Error('Automatic conversion to ArrayBuffer is not supported for response type.'); }  /**  * Helper function to convert a response body to a Blob.  */ function _toBlob(body: ArrayBuffer|Blob|string|number|Object|                  (string | number | Object | null)[]): Blob {   if (typeof Blob === 'undefined') {     throw new Error('Blob responses are not supported on this platform.');   }   if (body instanceof Blob) {     return body;   }   if (ArrayBuffer && body instanceof ArrayBuffer) {     return new Blob([body]);   }   throw new Error('Automatic conversion to Blob is not supported for response type.'); }  /**  * Helper function to convert a response body to JSON data.  */ function _toJsonBody(     body: ArrayBuffer|Blob|boolean|string|number|Object|     (boolean | string | number | Object | null)[],     format: string = 'JSON'): Object|string|number|(Object | string | number)[] {   if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {     throw new Error(`Automatic conversion to ${format} is not supported for ArrayBuffers.`);   }   if (typeof Blob !== 'undefined' && body instanceof Blob) {     throw new Error(`Automatic conversion to ${format} is not supported for Blobs.`);   }   if (typeof body === 'string' || typeof body === 'number' || typeof body === 'object' ||       typeof body === 'boolean' || Array.isArray(body)) {     return body;   }   throw new Error(`Automatic conversion to ${format} is not supported for response type.`); }  /**  * Helper function to convert a response body to a string.  */ function _toTextBody(body: ArrayBuffer|Blob|string|number|Object|                      (string | number | Object | null)[]): string {   if (typeof body === 'string') {     return body;   }   if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {     throw new Error('Automatic conversion to text is not supported for ArrayBuffers.');   }   if (typeof Blob !== 'undefined' && body instanceof Blob) {     throw new Error('Automatic conversion to text is not supported for Blobs.');   }   return JSON.stringify(_toJsonBody(body, 'text')); }  /**  * Convert a response body to the requested type.  */ function _maybeConvertBody(     responseType: string,     body: ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|     null): ArrayBuffer|Blob|string|number|Object|(string | number | Object | null)[]|null {   if (body === null) {     return null;   }   switch (responseType) {     case 'arraybuffer':       return _toArrayBufferBody(body);     case 'blob':       return _toBlob(body);     case 'json':       return _toJsonBody(body);     case 'text':       return _toTextBody(body);     default:       throw new Error(`Unsupported responseType: ${responseType}`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpBackend, HttpEvent, HttpEventType, HttpRequest} from '@angular/common/http'; import {Injectable} from '@angular/core'; import {Observable, Observer} from 'rxjs';  import {HttpTestingController, RequestMatch} from './api'; import {TestRequest} from './request';   /**  * A testing backend for `HttpClient` which both acts as an `HttpBackend`  * and as the `HttpTestingController`.  *  * `HttpClientTestingBackend` works by keeping a list of all open requests.  * As requests come in, they're added to the list. Users can assert that specific  * requests were made and then flush them. In the end, a verify() method asserts  * that no unexpected requests were made.  *  *  */ @Injectable() export class HttpClientTestingBackend implements HttpBackend, HttpTestingController {   /**    * List of pending requests which have not yet been expected.    */   private open: TestRequest[] = [];    /**    * Handle an incoming request by queueing it in the list of open requests.    */   handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {     return new Observable((observer: Observer<any>) => {       const testReq = new TestRequest(req, observer);       this.open.push(testReq);       observer.next({type: HttpEventType.Sent} as HttpEvent<any>);       return () => {         testReq._cancelled = true;       };     });   }    /**    * Helper function to search for requests in the list of open requests.    */   private _match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {     if (typeof match === 'string') {       return this.open.filter(testReq => testReq.request.urlWithParams === match);     } else if (typeof match === 'function') {       return this.open.filter(testReq => match(testReq.request));     } else {       return this.open.filter(           testReq => (!match.method || testReq.request.method === match.method.toUpperCase()) &&               (!match.url || testReq.request.urlWithParams === match.url));     }   }    /**    * Search for requests in the list of open requests, and return all that match    * without asserting anything about the number of matches.    */   match(match: string|RequestMatch|((req: HttpRequest<any>) => boolean)): TestRequest[] {     const results = this._match(match);     results.forEach(result => {       const index = this.open.indexOf(result);       if (index !== -1) {         this.open.splice(index, 1);       }     });     return results;   }    /**    * Expect that a single outstanding request matches the given matcher, and return    * it.    *    * Requests returned through this API will no longer be in the list of open requests,    * and thus will not match twice.    */   expectOne(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):       TestRequest {     description = description || this.descriptionFromMatcher(match);     const matches = this.match(match);     if (matches.length > 1) {       throw new Error(`Expected one matching request for criteria \"${description}\", found ${           matches.length} requests.`);     }     if (matches.length === 0) {       let message = `Expected one matching request for criteria \"${description}\", found none.`;       if (this.open.length > 0) {         // Show the methods and URLs of open requests in the error, for convenience.         const requests = this.open.map(describeRequest).join(', ');         message += ` Requests received are: ${requests}.`;       }       throw new Error(message);     }     return matches[0];   }    /**    * Expect that no outstanding requests match the given matcher, and throw an error    * if any do.    */   expectNone(match: string|RequestMatch|((req: HttpRequest<any>) => boolean), description?: string):       void {     description = description || this.descriptionFromMatcher(match);     const matches = this.match(match);     if (matches.length > 0) {       throw new Error(`Expected zero matching requests for criteria \"${description}\", found ${           matches.length}.`);     }   }    /**    * Validate that there are no outstanding requests.    */   verify(opts: {ignoreCancelled?: boolean} = {}): void {     let open = this.open;     // It's possible that some requests may be cancelled, and this is expected.     // The user can ask to ignore open requests which have been cancelled.     if (opts.ignoreCancelled) {       open = open.filter(testReq => !testReq.cancelled);     }     if (open.length > 0) {       // Show the methods and URLs of open requests in the error, for convenience.       const requests = open.map(describeRequest).join(', ');       throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);     }   }    private descriptionFromMatcher(matcher: string|RequestMatch|                                  ((req: HttpRequest<any>) => boolean)): string {     if (typeof matcher === 'string') {       return `Match URL: ${matcher}`;     } else if (typeof matcher === 'object') {       const method = matcher.method || '(any)';       const url = matcher.url || '(any)';       return `Match method: ${method}, URL: ${url}`;     } else {       return `Match by function: ${matcher.name}`;     }   } }  function describeRequest(testRequest: TestRequest): string {   const url = testRequest.request.urlWithParams;   const method = testRequest.request.method;   return `${method} ${url}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpBackend, HttpClientModule} from '@angular/common/http'; import {NgModule, Provider} from '@angular/core';  import {HttpTestingController} from './api'; import {HttpClientTestingBackend} from './backend';   export function provideHttpClientTesting(): Provider[] {   return [     HttpClientTestingBackend,     {provide: HttpBackend, useExisting: HttpClientTestingBackend},     {provide: HttpTestingController, useExisting: HttpClientTestingBackend},   ]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpClientModule} from '@angular/common/http'; import {NgModule} from '@angular/core';  import {provideHttpClientTesting} from './provider';   /**  * Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.  *  * Inject `HttpTestingController` to expect and flush requests in your tests.  *  * @publicApi  */ @NgModule({   imports: [     HttpClientModule,   ],   providers: [     provideHttpClientTesting(),   ], }) export class HttpClientTestingModule { } ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;AAsBA;;;;;AAKG;MACmB,qBAAqB,CAAA;AAwF1C;;AC/FD;;;;;;;AAOG;MACU,WAAW,CAAA;AACtB;;AAEG;AACH,IAAA,IAAI,SAAS,GAAA;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAOD,WAAmB,CAAA,OAAyB,EAAU,QAAkC,EAAA;QAArE,IAAO,CAAA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AE,wBAAwB,EAAC;AAC7D,QAAA,EAAC,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,wBAAwB,EAAC;KACxE,CAAC;AACJ;;ACPA;;;;;;AAMG;MASU,uBAAuB,CAAA;;+HAAvB,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAvB,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,YANhC,gBAAgB,CAAA,EAAA,CAAA,CAAA;AAMP,uBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAJvB,SAAA,EAAA;AACT,QAAA,wBAAwB,EAAE;AAC3B,KAAA,EAAA,OAAA,EAAA,CAJC,gBAAgB,CAAA,EAAA,CAAA,CAAA;sGAMP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,gBAAgB;AACjB,qBAAA;AACD,oBAAA,SAAS,EAAE;AACT,wBAAA,wBAAwB,EAAE;AAC3B,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
-------------------- SECTION 31 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/common/src/location/util.ts","../../../../../../packages/common/testing/src/location_mock.ts","../../../../../../packages/common/testing/src/mock_location_strategy.ts","../../../../../../packages/common/testing/src/mock_platform_location.ts","../../../../../../packages/common/testing/src/provide_location_mocks.ts","../../../../../../packages/common/testing/src/testing.ts","../../../../../../packages/common/testing/public_api.ts","../../../../../../packages/common/testing/index.ts","../../../../../../packages/common/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */   /**  * Joins two parts of a URL with a slash if needed.  *  * @param start  URL string  * @param end    URL string  *  *  * @returns The joined URL string.  */ export function joinWithSlash(start: string, end: string): string {   if (start.length == 0) {     return end;   }   if (end.length == 0) {     return start;   }   let slashes = 0;   if (start.endsWith('/')) {     slashes++;   }   if (end.startsWith('/')) {     slashes++;   }   if (slashes == 2) {     return start + end.substring(1);   }   if (slashes == 1) {     return start + end;   }   return start + '/' + end; }  /**  * Removes a trailing slash from a URL string if needed.  * Looks for the first occurrence of either `#`, `?`, or the end of the  * line as `/` characters and removes the trailing slash if one exists.  *  * @param url URL string.  *  * @returns The URL string, modified if needed.  */ export function stripTrailingSlash(url: string): string {   const match = url.match(/#|\\?|$/);   const pathEndIdx = match && match.index || url.length;   const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);   return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx); }  /**  * Normalizes URL parameters by prepending with `?` if needed.  *  * @param  params String of URL parameters.  *  * @returns The normalized URL parameters string.  */ export function normalizeQueryParams(params: string): string {   return params && params[0] !== '?' ? '?' + params : params; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location, LocationStrategy} from '@angular/common'; import {EventEmitter, Injectable} from '@angular/core'; import {SubscriptionLike} from 'rxjs';  import {normalizeQueryParams} from '../../src/location/util';  /**  * A spy for {@link Location} that allows tests to fire simulated location events.  *  * @publicApi  */ @Injectable() export class SpyLocation implements Location {   urlChanges: string[] = [];   private _history: LocationState[] = [new LocationState('', '', null)];   private _historyIndex: number = 0;   /** @internal */   _subject: EventEmitter<any> = new EventEmitter();   /** @internal */   _basePath: string = '';   /** @internal */   _locationStrategy: LocationStrategy = null!;   /** @internal */   _urlChangeListeners: ((url: string, state: unknown) => void)[] = [];   /** @internal */   _urlChangeSubscription: SubscriptionLike|null = null;    ngOnDestroy(): void {     this._urlChangeSubscription?.unsubscribe();     this._urlChangeListeners = [];   }    setInitialPath(url: string) {     this._history[this._historyIndex].path = url;   }    setBaseHref(url: string) {     this._basePath = url;   }    path(): string {     return this._history[this._historyIndex].path;   }    getState(): unknown {     return this._history[this._historyIndex].state;   }    isCurrentPathEqualTo(path: string, query: string = ''): boolean {     const givenPath = path.endsWith('/') ? path.substring(0, path.length - 1) : path;     const currPath =         this.path().endsWith('/') ? this.path().substring(0, this.path().length - 1) : this.path();      return currPath == givenPath + (query.length > 0 ? ('?' + query) : '');   }    simulateUrlPop(pathname: string) {     this._subject.emit({'url': pathname, 'pop': true, 'type': 'popstate'});   }    simulateHashChange(pathname: string) {     const path = this.prepareExternalUrl(pathname);     this.pushHistory(path, '', null);      this.urlChanges.push('hash: ' + pathname);     // the browser will automatically fire popstate event before each `hashchange` event, so we need     // to simulate it.     this._subject.emit({'url': pathname, 'pop': true, 'type': 'popstate'});     this._subject.emit({'url': pathname, 'pop': true, 'type': 'hashchange'});   }    prepareExternalUrl(url: string): string {     if (url.length > 0 && !url.startsWith('/')) {       url = '/' + url;     }     return this._basePath + url;   }    go(path: string, query: string = '', state: any = null) {     path = this.prepareExternalUrl(path);      this.pushHistory(path, query, state);      const locationState = this._history[this._historyIndex - 1];     if (locationState.path == path && locationState.query == query) {       return;     }      const url = path + (query.length > 0 ? ('?' + query) : '');     this.urlChanges.push(url);     this._notifyUrlChangeListeners(path + normalizeQueryParams(query), state);   }    replaceState(path: string, query: string = '', state: any = null) {     path = this.prepareExternalUrl(path);      const history = this._history[this._historyIndex];      history.state = state;      if (history.path == path && history.query == query) {       return;     }      history.path = path;     history.query = query;      const url = path + (query.length > 0 ? ('?' + query) : '');     this.urlChanges.push('replace: ' + url);     this._notifyUrlChangeListeners(path + normalizeQueryParams(query), state);   }    forward() {     if (this._historyIndex < (this._history.length - 1)) {       this._historyIndex++;       this._subject.emit(           {'url': this.path(), 'state': this.getState(), 'pop': true, 'type': 'popstate'});     }   }    back() {     if (this._historyIndex > 0) {       this._historyIndex--;       this._subject.emit(           {'url': this.path(), 'state': this.getState(), 'pop': true, 'type': 'popstate'});     }   }    historyGo(relativePosition: number = 0): void {     const nextPageIndex = this._historyIndex + relativePosition;     if (nextPageIndex >= 0 && nextPageIndex < this._history.length) {       this._historyIndex = nextPageIndex;       this._subject.emit(           {'url': this.path(), 'state': this.getState(), 'pop': true, 'type': 'popstate'});     }   }    onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction {     this._urlChangeListeners.push(fn);      if (!this._urlChangeSubscription) {       this._urlChangeSubscription = this.subscribe(v => {         this._notifyUrlChangeListeners(v.url, v.state);       });     }      return () => {       const fnIndex = this._urlChangeListeners.indexOf(fn);       this._urlChangeListeners.splice(fnIndex, 1);        if (this._urlChangeListeners.length === 0) {         this._urlChangeSubscription?.unsubscribe();         this._urlChangeSubscription = null;       }     };   }    /** @internal */   _notifyUrlChangeListeners(url: string = '', state: unknown) {     this._urlChangeListeners.forEach(fn => fn(url, state));   }    subscribe(       onNext: (value: any) => void, onThrow?: ((error: any) => void)|null,       onReturn?: (() => void)|null): SubscriptionLike {     return this._subject.subscribe({next: onNext, error: onThrow, complete: onReturn});   }    normalize(url: string): string {     return null!;   }    private pushHistory(path: string, query: string, state: any) {     if (this._historyIndex > 0) {       this._history.splice(this._historyIndex + 1);     }     this._history.push(new LocationState(path, query, state));     this._historyIndex = this._history.length - 1;   } }  class LocationState {   constructor(public path: string, public query: string, public state: any) {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {LocationStrategy} from '@angular/common'; import {EventEmitter, Injectable} from '@angular/core';    /**  * A mock implementation of {@link LocationStrategy} that allows tests to fire simulated  * location events.  *  * @publicApi  */ @Injectable() export class MockLocationStrategy extends LocationStrategy {   internalBaseHref: string = '/';   internalPath: string = '/';   internalTitle: string = '';   urlChanges: string[] = [];   /** @internal */   _subject: EventEmitter<any> = new EventEmitter();   private stateChanges: any[] = [];   constructor() {     super();   }    simulatePopState(url: string): void {     this.internalPath = url;     this._subject.emit(new _MockPopStateEvent(this.path()));   }    path(includeHash: boolean = false): string {     return this.internalPath;   }    prepareExternalUrl(internal: string): string {     if (internal.startsWith('/') && this.internalBaseHref.endsWith('/')) {       return this.internalBaseHref + internal.substring(1);     }     return this.internalBaseHref + internal;   }    pushState(ctx: any, title: string, path: string, query: string): void {     // Add state change to changes array     this.stateChanges.push(ctx);      this.internalTitle = title;      const url = path + (query.length > 0 ? ('?' + query) : '');     this.internalPath = url;      const externalUrl = this.prepareExternalUrl(url);     this.urlChanges.push(externalUrl);   }    replaceState(ctx: any, title: string, path: string, query: string): void {     // Reset the last index of stateChanges to the ctx (state) object     this.stateChanges[(this.stateChanges.length || 1) - 1] = ctx;      this.internalTitle = title;      const url = path + (query.length > 0 ? ('?' + query) : '');     this.internalPath = url;      const externalUrl = this.prepareExternalUrl(url);     this.urlChanges.push('replace: ' + externalUrl);   }    onPopState(fn: (value: any) => void): void {     this._subject.subscribe({next: fn});   }    getBaseHref(): string {     return this.internalBaseHref;   }    back(): void {     if (this.urlChanges.length > 0) {       this.urlChanges.pop();       this.stateChanges.pop();       const nextUrl = this.urlChanges.length > 0 ? this.urlChanges[this.urlChanges.length - 1] : '';       this.simulatePopState(nextUrl);     }   }    forward(): void {     throw 'not implemented';   }    getState(): unknown {     return this.stateChanges[(this.stateChanges.length || 1) - 1];   } }  class _MockPopStateEvent {   pop: boolean = true;   type: string = 'popstate';   constructor(public newUrl: string) {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {LocationChangeEvent, LocationChangeListener, PlatformLocation} from '@angular/common'; import {Inject, Injectable, InjectionToken, Optional} from '@angular/core'; import {Subject} from 'rxjs';  /**  * Parser from https://tools.ietf.org/html/rfc3986#appendix-B  * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?  *  12            3  4          5       6  7        8 9  *  * Example: http://www.ics.uci.edu/pub/ietf/uri/#Related  *  * Results in:  *  * $1 = http:  * $2 = http  * $3 = //www.ics.uci.edu  * $4 = www.ics.uci.edu  * $5 = /pub/ietf/uri/  * $6 = <undefined>  * $7 = <undefined>  * $8 = #Related  * $9 = Related  */ const urlParse = /^(([^:\\/?#]+):)?(\\/\\/([^\\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;  function parseUrl(urlStr: string, baseHref: string) {   const verifyProtocol = /^((http[s]?|ftp):\\/\\/)/;   let serverBase: string|undefined;    // URL class requires full URL. If the URL string doesn't start with protocol, we need to add   // an arbitrary base URL which can be removed afterward.   if (!verifyProtocol.test(urlStr)) {     serverBase = 'http://empty.com/';   }   let parsedUrl: {     protocol: string,     hostname: string,     port: string,     pathname: string,     search: string,     hash: string   };   try {     parsedUrl = new URL(urlStr, serverBase);   } catch (e) {     const result = urlParse.exec(serverBase || '' + urlStr);     if (!result) {       throw new Error(`Invalid URL: ${urlStr} with base: ${baseHref}`);     }     const hostSplit = result[4].split(':');     parsedUrl = {       protocol: result[1],       hostname: hostSplit[0],       port: hostSplit[1] || '',       pathname: result[5],       search: result[6],       hash: result[8],     };   }   if (parsedUrl.pathname && parsedUrl.pathname.indexOf(baseHref) === 0) {     parsedUrl.pathname = parsedUrl.pathname.substring(baseHref.length);   }   return {     hostname: !serverBase && parsedUrl.hostname || '',     protocol: !serverBase && parsedUrl.protocol || '',     port: !serverBase && parsedUrl.port || '',     pathname: parsedUrl.pathname || '/',     search: parsedUrl.search || '',     hash: parsedUrl.hash || '',   }; }  /**  * Mock platform location config  *  * @publicApi  */ export interface MockPlatformLocationConfig {   startUrl?: string;   appBaseHref?: string; }  /**  * Provider for mock platform location config  *  * @publicApi  */ export const MOCK_PLATFORM_LOCATION_CONFIG =     new InjectionToken<MockPlatformLocationConfig>('MOCK_PLATFORM_LOCATION_CONFIG');  /**  * Mock implementation of URL state.  *  * @publicApi  */ @Injectable() export class MockPlatformLocation implements PlatformLocation {   private baseHref: string = '';   private hashUpdate = new Subject<LocationChangeEvent>();   private popStateSubject = new Subject<LocationChangeEvent>();   private urlChangeIndex: number = 0;   private urlChanges: {     hostname: string,     protocol: string,     port: string,     pathname: string,     search: string,     hash: string,     state: unknown   }[] = [{hostname: '', protocol: '', port: '', pathname: '/', search: '', hash: '', state: null}];    constructor(@Inject(MOCK_PLATFORM_LOCATION_CONFIG) @Optional() config?:                   MockPlatformLocationConfig) {     if (config) {       this.baseHref = config.appBaseHref || '';        const parsedChanges =           this.parseChanges(null, config.startUrl || 'http://_empty_/', this.baseHref);       this.urlChanges[0] = {...parsedChanges};     }   }    get hostname() {     return this.urlChanges[this.urlChangeIndex].hostname;   }   get protocol() {     return this.urlChanges[this.urlChangeIndex].protocol;   }   get port() {     return this.urlChanges[this.urlChangeIndex].port;   }   get pathname() {     return this.urlChanges[this.urlChangeIndex].pathname;   }   get search() {     return this.urlChanges[this.urlChangeIndex].search;   }   get hash() {     return this.urlChanges[this.urlChangeIndex].hash;   }   get state() {     return this.urlChanges[this.urlChangeIndex].state;   }     getBaseHrefFromDOM(): string {     return this.baseHref;   }    onPopState(fn: LocationChangeListener): VoidFunction {     const subscription = this.popStateSubject.subscribe(fn);     return () => subscription.unsubscribe();   }    onHashChange(fn: LocationChangeListener): VoidFunction {     const subscription = this.hashUpdate.subscribe(fn);     return () => subscription.unsubscribe();   }    get href(): string {     let url = `${this.protocol}//${this.hostname}${this.port ? ':' + this.port : ''}`;     url += `${this.pathname === '/' ? '' : this.pathname}${this.search}${this.hash}`;     return url;   }    get url(): string {     return `${this.pathname}${this.search}${this.hash}`;   }    private parseChanges(state: unknown, url: string, baseHref: string = '') {     // When the `history.state` value is stored, it is always copied.     state = JSON.parse(JSON.stringify(state));     return {...parseUrl(url, baseHref), state};   }    replaceState(state: any, title: string, newUrl: string): void {     const {pathname, search, state: parsedState, hash} = this.parseChanges(state, newUrl);      this.urlChanges[this.urlChangeIndex] =         {...this.urlChanges[this.urlChangeIndex], pathname, search, hash, state: parsedState};   }    pushState(state: any, title: string, newUrl: string): void {     const {pathname, search, state: parsedState, hash} = this.parseChanges(state, newUrl);     if (this.urlChangeIndex > 0) {       this.urlChanges.splice(this.urlChangeIndex + 1);     }     this.urlChanges.push(         {...this.urlChanges[this.urlChangeIndex], pathname, search, hash, state: parsedState});     this.urlChangeIndex = this.urlChanges.length - 1;   }    forward(): void {     const oldUrl = this.url;     const oldHash = this.hash;     if (this.urlChangeIndex < this.urlChanges.length) {       this.urlChangeIndex++;     }     this.emitEvents(oldHash, oldUrl);   }    back(): void {     const oldUrl = this.url;     const oldHash = this.hash;     if (this.urlChangeIndex > 0) {       this.urlChangeIndex--;     }     this.emitEvents(oldHash, oldUrl);   }    historyGo(relativePosition: number = 0): void {     const oldUrl = this.url;     const oldHash = this.hash;     const nextPageIndex = this.urlChangeIndex + relativePosition;     if (nextPageIndex >= 0 && nextPageIndex < this.urlChanges.length) {       this.urlChangeIndex = nextPageIndex;     }     this.emitEvents(oldHash, oldUrl);   }    getState(): unknown {     return this.state;   }    /**    * Browsers are inconsistent in when they fire events and perform the state updates    * The most easiest thing to do in our mock is synchronous and that happens to match    * Firefox and Chrome, at least somewhat closely    *    * https://github.com/WICG/navigation-api#watching-for-navigations    * https://docs.google.com/document/d/1Pdve-DJ1JCGilj9Yqf5HxRJyBKSel5owgOvUJqTauwU/edit#heading=h.3ye4v71wsz94    * popstate is always sent before hashchange:    * https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event#when_popstate_is_sent    */   private emitEvents(oldHash: string, oldUrl: string) {     this.popStateSubject.next(         {type: 'popstate', state: this.getState(), oldUrl, newUrl: this.url} as         LocationChangeEvent);     if (oldHash !== this.hash) {       this.hashUpdate.next(           {type: 'hashchange', state: null, oldUrl, newUrl: this.url} as LocationChangeEvent);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location, LocationStrategy} from '@angular/common'; import {Provider} from '@angular/core';  import {SpyLocation} from './location_mock'; import {MockLocationStrategy} from './mock_location_strategy';  /**  * Returns mock providers for the `Location` and `LocationStrategy` classes.  * The mocks are helpful in tests to fire simulated location events.  *  * @publicApi  */ export function provideLocationMocks(): Provider[] {   return [     {provide: Location, useClass: SpyLocation},     {provide: LocationStrategy, useClass: MockLocationStrategy},   ]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the common/testing package.  */ export {SpyLocation} from './location_mock'; export {MockLocationStrategy} from './mock_location_strategy'; export {MOCK_PLATFORM_LOCATION_CONFIG, MockPlatformLocation, MockPlatformLocationConfig} from './mock_platform_location'; export {provideLocationMocks} from './provide_location_mocks'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;AASA;;;;;;;;AAQG;AACa,SAAA,aAAa,CAAC,KAAa,EAAE,GAAW,EAAA;AACtD,IAAA,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE;AACrB,QAAA,OAAO,GAAG,CAAC;AACZ,KAAA;AAC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AAQ,EAAE,oBAAoB,EAAC;KAC5D,CAAC;AACJ;;ACjBA;;;;AAIG;;ACJH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 32 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/common/src/location/util.ts","../../../../../../packages/common/testing/src/location_mock.ts","../../../../../../packages/common/testing/src/mock_location_strategy.ts","../../../../../../packages/common/testing/src/mock_platform_location.ts","../../../../../../packages/common/testing/src/provide_location_mocks.ts","../../../../../../packages/common/testing/src/testing.ts","../../../../../../packages/common/testing/public_api.ts","../../../../../../packages/common/testing/index.ts","../../../../../../packages/common/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */   /**  * Joins two parts of a URL with a slash if needed.  *  * @param start  URL string  * @param end    URL string  *  *  * @returns The joined URL string.  */ export function joinWithSlash(start: string, end: string): string {   if (start.length == 0) {     return end;   }   if (end.length == 0) {     return start;   }   let slashes = 0;   if (start.endsWith('/')) {     slashes++;   }   if (end.startsWith('/')) {     slashes++;   }   if (slashes == 2) {     return start + end.substring(1);   }   if (slashes == 1) {     return start + end;   }   return start + '/' + end; }  /**  * Removes a trailing slash from a URL string if needed.  * Looks for the first occurrence of either `#`, `?`, or the end of the  * line as `/` characters and removes the trailing slash if one exists.  *  * @param url URL string.  *  * @returns The URL string, modified if needed.  */ export function stripTrailingSlash(url: string): string {   const match = url.match(/#|\\?|$/);   const pathEndIdx = match && match.index || url.length;   const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);   return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx); }  /**  * Normalizes URL parameters by prepending with `?` if needed.  *  * @param  params String of URL parameters.  *  * @returns The normalized URL parameters string.  */ export function normalizeQueryParams(params: string): string {   return params && params[0] !== '?' ? '?' + params : params; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location, LocationStrategy} from '@angular/common'; import {EventEmitter, Injectable} from '@angular/core'; import {SubscriptionLike} from 'rxjs';  import {normalizeQueryParams} from '../../src/location/util';  /**  * A spy for {@link Location} that allows tests to fire simulated location events.  *  * @publicApi  */ @Injectable() export class SpyLocation implements Location {   urlChanges: string[] = [];   private _history: LocationState[] = [new LocationState('', '', null)];   private _historyIndex: number = 0;   /** @internal */   _subject: EventEmitter<any> = new EventEmitter();   /** @internal */   _basePath: string = '';   /** @internal */   _locationStrategy: LocationStrategy = null!;   /** @internal */   _urlChangeListeners: ((url: string, state: unknown) => void)[] = [];   /** @internal */   _urlChangeSubscription: SubscriptionLike|null = null;    ngOnDestroy(): void {     this._urlChangeSubscription?.unsubscribe();     this._urlChangeListeners = [];   }    setInitialPath(url: string) {     this._history[this._historyIndex].path = url;   }    setBaseHref(url: string) {     this._basePath = url;   }    path(): string {     return this._history[this._historyIndex].path;   }    getState(): unknown {     return this._history[this._historyIndex].state;   }    isCurrentPathEqualTo(path: string, query: string = ''): boolean {     const givenPath = path.endsWith('/') ? path.substring(0, path.length - 1) : path;     const currPath =         this.path().endsWith('/') ? this.path().substring(0, this.path().length - 1) : this.path();      return currPath == givenPath + (query.length > 0 ? ('?' + query) : '');   }    simulateUrlPop(pathname: string) {     this._subject.emit({'url': pathname, 'pop': true, 'type': 'popstate'});   }    simulateHashChange(pathname: string) {     const path = this.prepareExternalUrl(pathname);     this.pushHistory(path, '', null);      this.urlChanges.push('hash: ' + pathname);     // the browser will automatically fire popstate event before each `hashchange` event, so we need     // to simulate it.     this._subject.emit({'url': pathname, 'pop': true, 'type': 'popstate'});     this._subject.emit({'url': pathname, 'pop': true, 'type': 'hashchange'});   }    prepareExternalUrl(url: string): string {     if (url.length > 0 && !url.startsWith('/')) {       url = '/' + url;     }     return this._basePath + url;   }    go(path: string, query: string = '', state: any = null) {     path = this.prepareExternalUrl(path);      this.pushHistory(path, query, state);      const locationState = this._history[this._historyIndex - 1];     if (locationState.path == path && locationState.query == query) {       return;     }      const url = path + (query.length > 0 ? ('?' + query) : '');     this.urlChanges.push(url);     this._notifyUrlChangeListeners(path + normalizeQueryParams(query), state);   }    replaceState(path: string, query: string = '', state: any = null) {     path = this.prepareExternalUrl(path);      const history = this._history[this._historyIndex];      history.state = state;      if (history.path == path && history.query == query) {       return;     }      history.path = path;     history.query = query;      const url = path + (query.length > 0 ? ('?' + query) : '');     this.urlChanges.push('replace: ' + url);     this._notifyUrlChangeListeners(path + normalizeQueryParams(query), state);   }    forward() {     if (this._historyIndex < (this._history.length - 1)) {       this._historyIndex++;       this._subject.emit(           {'url': this.path(), 'state': this.getState(), 'pop': true, 'type': 'popstate'});     }   }    back() {     if (this._historyIndex > 0) {       this._historyIndex--;       this._subject.emit(           {'url': this.path(), 'state': this.getState(), 'pop': true, 'type': 'popstate'});     }   }    historyGo(relativePosition: number = 0): void {     const nextPageIndex = this._historyIndex + relativePosition;     if (nextPageIndex >= 0 && nextPageIndex < this._history.length) {       this._historyIndex = nextPageIndex;       this._subject.emit(           {'url': this.path(), 'state': this.getState(), 'pop': true, 'type': 'popstate'});     }   }    onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction {     this._urlChangeListeners.push(fn);      if (!this._urlChangeSubscription) {       this._urlChangeSubscription = this.subscribe(v => {         this._notifyUrlChangeListeners(v.url, v.state);       });     }      return () => {       const fnIndex = this._urlChangeListeners.indexOf(fn);       this._urlChangeListeners.splice(fnIndex, 1);        if (this._urlChangeListeners.length === 0) {         this._urlChangeSubscription?.unsubscribe();         this._urlChangeSubscription = null;       }     };   }    /** @internal */   _notifyUrlChangeListeners(url: string = '', state: unknown) {     this._urlChangeListeners.forEach(fn => fn(url, state));   }    subscribe(       onNext: (value: any) => void, onThrow?: ((error: any) => void)|null,       onReturn?: (() => void)|null): SubscriptionLike {     return this._subject.subscribe({next: onNext, error: onThrow, complete: onReturn});   }    normalize(url: string): string {     return null!;   }    private pushHistory(path: string, query: string, state: any) {     if (this._historyIndex > 0) {       this._history.splice(this._historyIndex + 1);     }     this._history.push(new LocationState(path, query, state));     this._historyIndex = this._history.length - 1;   } }  class LocationState {   constructor(public path: string, public query: string, public state: any) {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {LocationStrategy} from '@angular/common'; import {EventEmitter, Injectable} from '@angular/core';    /**  * A mock implementation of {@link LocationStrategy} that allows tests to fire simulated  * location events.  *  * @publicApi  */ @Injectable() export class MockLocationStrategy extends LocationStrategy {   internalBaseHref: string = '/';   internalPath: string = '/';   internalTitle: string = '';   urlChanges: string[] = [];   /** @internal */   _subject: EventEmitter<any> = new EventEmitter();   private stateChanges: any[] = [];   constructor() {     super();   }    simulatePopState(url: string): void {     this.internalPath = url;     this._subject.emit(new _MockPopStateEvent(this.path()));   }    path(includeHash: boolean = false): string {     return this.internalPath;   }    prepareExternalUrl(internal: string): string {     if (internal.startsWith('/') && this.internalBaseHref.endsWith('/')) {       return this.internalBaseHref + internal.substring(1);     }     return this.internalBaseHref + internal;   }    pushState(ctx: any, title: string, path: string, query: string): void {     // Add state change to changes array     this.stateChanges.push(ctx);      this.internalTitle = title;      const url = path + (query.length > 0 ? ('?' + query) : '');     this.internalPath = url;      const externalUrl = this.prepareExternalUrl(url);     this.urlChanges.push(externalUrl);   }    replaceState(ctx: any, title: string, path: string, query: string): void {     // Reset the last index of stateChanges to the ctx (state) object     this.stateChanges[(this.stateChanges.length || 1) - 1] = ctx;      this.internalTitle = title;      const url = path + (query.length > 0 ? ('?' + query) : '');     this.internalPath = url;      const externalUrl = this.prepareExternalUrl(url);     this.urlChanges.push('replace: ' + externalUrl);   }    onPopState(fn: (value: any) => void): void {     this._subject.subscribe({next: fn});   }    getBaseHref(): string {     return this.internalBaseHref;   }    back(): void {     if (this.urlChanges.length > 0) {       this.urlChanges.pop();       this.stateChanges.pop();       const nextUrl = this.urlChanges.length > 0 ? this.urlChanges[this.urlChanges.length - 1] : '';       this.simulatePopState(nextUrl);     }   }    forward(): void {     throw 'not implemented';   }    getState(): unknown {     return this.stateChanges[(this.stateChanges.length || 1) - 1];   } }  class _MockPopStateEvent {   pop: boolean = true;   type: string = 'popstate';   constructor(public newUrl: string) {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {LocationChangeEvent, LocationChangeListener, PlatformLocation} from '@angular/common'; import {Inject, Injectable, InjectionToken, Optional} from '@angular/core'; import {Subject} from 'rxjs';  /**  * Parser from https://tools.ietf.org/html/rfc3986#appendix-B  * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?  *  12            3  4          5       6  7        8 9  *  * Example: http://www.ics.uci.edu/pub/ietf/uri/#Related  *  * Results in:  *  * $1 = http:  * $2 = http  * $3 = //www.ics.uci.edu  * $4 = www.ics.uci.edu  * $5 = /pub/ietf/uri/  * $6 = <undefined>  * $7 = <undefined>  * $8 = #Related  * $9 = Related  */ const urlParse = /^(([^:\\/?#]+):)?(\\/\\/([^\\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;  function parseUrl(urlStr: string, baseHref: string) {   const verifyProtocol = /^((http[s]?|ftp):\\/\\/)/;   let serverBase: string|undefined;    // URL class requires full URL. If the URL string doesn't start with protocol, we need to add   // an arbitrary base URL which can be removed afterward.   if (!verifyProtocol.test(urlStr)) {     serverBase = 'http://empty.com/';   }   let parsedUrl: {     protocol: string,     hostname: string,     port: string,     pathname: string,     search: string,     hash: string   };   try {     parsedUrl = new URL(urlStr, serverBase);   } catch (e) {     const result = urlParse.exec(serverBase || '' + urlStr);     if (!result) {       throw new Error(`Invalid URL: ${urlStr} with base: ${baseHref}`);     }     const hostSplit = result[4].split(':');     parsedUrl = {       protocol: result[1],       hostname: hostSplit[0],       port: hostSplit[1] || '',       pathname: result[5],       search: result[6],       hash: result[8],     };   }   if (parsedUrl.pathname && parsedUrl.pathname.indexOf(baseHref) === 0) {     parsedUrl.pathname = parsedUrl.pathname.substring(baseHref.length);   }   return {     hostname: !serverBase && parsedUrl.hostname || '',     protocol: !serverBase && parsedUrl.protocol || '',     port: !serverBase && parsedUrl.port || '',     pathname: parsedUrl.pathname || '/',     search: parsedUrl.search || '',     hash: parsedUrl.hash || '',   }; }  /**  * Mock platform location config  *  * @publicApi  */ export interface MockPlatformLocationConfig {   startUrl?: string;   appBaseHref?: string; }  /**  * Provider for mock platform location config  *  * @publicApi  */ export const MOCK_PLATFORM_LOCATION_CONFIG =     new InjectionToken<MockPlatformLocationConfig>('MOCK_PLATFORM_LOCATION_CONFIG');  /**  * Mock implementation of URL state.  *  * @publicApi  */ @Injectable() export class MockPlatformLocation implements PlatformLocation {   private baseHref: string = '';   private hashUpdate = new Subject<LocationChangeEvent>();   private popStateSubject = new Subject<LocationChangeEvent>();   private urlChangeIndex: number = 0;   private urlChanges: {     hostname: string,     protocol: string,     port: string,     pathname: string,     search: string,     hash: string,     state: unknown   }[] = [{hostname: '', protocol: '', port: '', pathname: '/', search: '', hash: '', state: null}];    constructor(@Inject(MOCK_PLATFORM_LOCATION_CONFIG) @Optional() config?:                   MockPlatformLocationConfig) {     if (config) {       this.baseHref = config.appBaseHref || '';        const parsedChanges =           this.parseChanges(null, config.startUrl || 'http://_empty_/', this.baseHref);       this.urlChanges[0] = {...parsedChanges};     }   }    get hostname() {     return this.urlChanges[this.urlChangeIndex].hostname;   }   get protocol() {     return this.urlChanges[this.urlChangeIndex].protocol;   }   get port() {     return this.urlChanges[this.urlChangeIndex].port;   }   get pathname() {     return this.urlChanges[this.urlChangeIndex].pathname;   }   get search() {     return this.urlChanges[this.urlChangeIndex].search;   }   get hash() {     return this.urlChanges[this.urlChangeIndex].hash;   }   get state() {     return this.urlChanges[this.urlChangeIndex].state;   }     getBaseHrefFromDOM(): string {     return this.baseHref;   }    onPopState(fn: LocationChangeListener): VoidFunction {     const subscription = this.popStateSubject.subscribe(fn);     return () => subscription.unsubscribe();   }    onHashChange(fn: LocationChangeListener): VoidFunction {     const subscription = this.hashUpdate.subscribe(fn);     return () => subscription.unsubscribe();   }    get href(): string {     let url = `${this.protocol}//${this.hostname}${this.port ? ':' + this.port : ''}`;     url += `${this.pathname === '/' ? '' : this.pathname}${this.search}${this.hash}`;     return url;   }    get url(): string {     return `${this.pathname}${this.search}${this.hash}`;   }    private parseChanges(state: unknown, url: string, baseHref: string = '') {     // When the `history.state` value is stored, it is always copied.     state = JSON.parse(JSON.stringify(state));     return {...parseUrl(url, baseHref), state};   }    replaceState(state: any, title: string, newUrl: string): void {     const {pathname, search, state: parsedState, hash} = this.parseChanges(state, newUrl);      this.urlChanges[this.urlChangeIndex] =         {...this.urlChanges[this.urlChangeIndex], pathname, search, hash, state: parsedState};   }    pushState(state: any, title: string, newUrl: string): void {     const {pathname, search, state: parsedState, hash} = this.parseChanges(state, newUrl);     if (this.urlChangeIndex > 0) {       this.urlChanges.splice(this.urlChangeIndex + 1);     }     this.urlChanges.push(         {...this.urlChanges[this.urlChangeIndex], pathname, search, hash, state: parsedState});     this.urlChangeIndex = this.urlChanges.length - 1;   }    forward(): void {     const oldUrl = this.url;     const oldHash = this.hash;     if (this.urlChangeIndex < this.urlChanges.length) {       this.urlChangeIndex++;     }     this.emitEvents(oldHash, oldUrl);   }    back(): void {     const oldUrl = this.url;     const oldHash = this.hash;     if (this.urlChangeIndex > 0) {       this.urlChangeIndex--;     }     this.emitEvents(oldHash, oldUrl);   }    historyGo(relativePosition: number = 0): void {     const oldUrl = this.url;     const oldHash = this.hash;     const nextPageIndex = this.urlChangeIndex + relativePosition;     if (nextPageIndex >= 0 && nextPageIndex < this.urlChanges.length) {       this.urlChangeIndex = nextPageIndex;     }     this.emitEvents(oldHash, oldUrl);   }    getState(): unknown {     return this.state;   }    /**    * Browsers are inconsistent in when they fire events and perform the state updates    * The most easiest thing to do in our mock is synchronous and that happens to match    * Firefox and Chrome, at least somewhat closely    *    * https://github.com/WICG/navigation-api#watching-for-navigations    * https://docs.google.com/document/d/1Pdve-DJ1JCGilj9Yqf5HxRJyBKSel5owgOvUJqTauwU/edit#heading=h.3ye4v71wsz94    * popstate is always sent before hashchange:    * https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event#when_popstate_is_sent    */   private emitEvents(oldHash: string, oldUrl: string) {     this.popStateSubject.next(         {type: 'popstate', state: this.getState(), oldUrl, newUrl: this.url} as         LocationChangeEvent);     if (oldHash !== this.hash) {       this.hashUpdate.next(           {type: 'hashchange', state: null, oldUrl, newUrl: this.url} as LocationChangeEvent);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location, LocationStrategy} from '@angular/common'; import {Provider} from '@angular/core';  import {SpyLocation} from './location_mock'; import {MockLocationStrategy} from './mock_location_strategy';  /**  * Returns mock providers for the `Location` and `LocationStrategy` classes.  * The mocks are helpful in tests to fire simulated location events.  *  * @publicApi  */ export function provideLocationMocks(): Provider[] {   return [     {provide: Location, useClass: SpyLocation},     {provide: LocationStrategy, useClass: MockLocationStrategy},   ]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the common/testing package.  */ export {SpyLocation} from './location_mock'; export {MockLocationStrategy} from './mock_location_strategy'; export {MOCK_PLATFORM_LOCATION_CONFIG, MockPlatformLocation, MockPlatformLocationConfig} from './mock_platform_location'; export {provideLocationMocks} from './provide_location_mocks'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;AASA;;;;;;;;AAQG;AACa,SAAA,aAAa,CAAC,KAAa,EAAE,GAAW,EAAA;AACtD,IAAA,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE;AACrB,QAAA,OAAO,GAAG,CAAC;AACZ,KAAA;AACD,IAAA,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE;AACnB,QAAA,OAAO,KAAK,CAAC;AACd,KAAA;IACD,IAAI,OAAO,GAAG,CAAC,CAAC;AAChB,IAAA,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;AACvB,QAAA,OAAO,EAAE,CAAC;AACX,KAAA;AACD,IAAA,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;AACvB,QAAA,OAAO,EAAE,CAAC;AACX,KAAA;IACD,IAAI,OAAO,IAAI,CAAC,EAAE;QAChB,OAAO,KAAK,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACjC,KAAA;IACD,IAAI,OAAO,IAAI,CAAC,EAAE;QAChB,OAAO,KAAK,GAAG,GAAG,CAAC;AACpB,KAAA;AACD,IAAA,OAAO,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC;AAC3B,CAAC;AAED;;;;;;;;AAQG;AACG,SAAU,kBAAkB,CAAC,GAAW,EAAA;IAC5C,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClC,MAAM,UAAU,GAAG,KAAK,IAAI,KAAK,CAAC,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC;IACtD,MAAM,eAAe,GAAG,UAAU,IAAI,GAAG,CAAC,U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,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,EAChD,CAAC,CAAC;AACzB,QAAA,IAAI,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE;YACzB,IAAI,CAAC,UAAU,CAAC,IAAI,CAChB,EAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,EAAwB,CAAC,CAAC;AACzF,SAAA;KACF;;AAlJU,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,kBAeX,6BAA6B,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;gIAftC,oBAAoB,EAAA,CAAA,CAAA;sGAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;;;8BAgBI,MAAM;+BAAC,6BAA6B,CAAA;;8BAAG,QAAQ;;;;ACzG9D;;;;;AAKG;SACa,oBAAoB,GAAA;IAClC,OAAO;AACL,QAAA,EAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAC;AAC1C,QAAA,EAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,oBAAoB,EAAC;KAC5D,CAAC;AACJ;;ACjBA;;;;AAIG;;ACJH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 33 --------------------
{"version":3,"file":"http.mjs","sources":["../../../../../../packages/common/http/src/backend.ts","../../../../../../packages/common/http/src/headers.ts","../../../../../../packages/common/http/src/params.ts","../../../../../../packages/common/http/src/context.ts","../../../../../../packages/common/http/src/request.ts","../../../../../../packages/common/http/src/response.ts","../../../../../../packages/common/http/src/client.ts","../../../../../../packages/common/http/src/interceptor.ts","../../../../../../packages/common/http/src/jsonp.ts","../../../../../../packages/common/http/src/xhr.ts","../../../../../../packages/common/http/src/xsrf.ts","../../../../../../packages/common/http/src/provider.ts","../../../../../../packages/common/http/src/module.ts","../../../../../../packages/common/http/public_api.ts","../../../../../../packages/common/http/index.ts","../../../../../../packages/common/http/http.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Observable} from 'rxjs';  import {HttpRequest} from './request'; import {HttpEvent} from './response';  /**  * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a  * `HttpResponse`.  *  * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the  * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the  * `HttpBackend`.  *  * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.  *  * @publicApi  */ export abstract class HttpHandler {   abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>; }  /**  * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.  *  * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.  *  * When injected, `HttpBackend` dispatches requests directly to the backend, without going  * through the interceptor chain.  *  * @publicApi  */ export abstract class HttpBackend implements HttpHandler {   abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  interface Update {   name: string;   value?: string|string[];   op: 'a'|'s'|'d'; }  /**  * Represents the header configuration options for an HTTP request.  * Instances are immutable. Modifying methods return a cloned  * instance with the change. The original object is never changed.  *  * @publicApi  */ export class HttpHeaders {   /**    * Internal map of lowercase header names to values.    */   // TODO(issue/24571): remove '!'.   private headers!: Map<string, string[]>;     /**    * Internal map of lowercased header names to the normalized    * form of the name (the form seen first).    */   private normalizedNames: Map<string, string> = new Map();    /**    * Complete the lazy initialization of this object (needed before reading).    */   private lazyInit!: HttpHeaders|Function|null;    /**    * Queued updates to be materialized the next initialization.    */   private lazyUpdate: Update[]|null = null;    /**  Constructs a new HTTP header object with the given values.*/    constructor(headers?: string|{[name: string]: string | string[]}) {     if (!headers) {       this.headers = new Map<string, string[]>();     } else if (typeof headers === 'string') {       this.lazyInit = () => {         this.headers = new Map<string, string[]>();         headers.split('\ ').forEach(line => {           const index = line.indexOf(':');           if (index > 0) {             const name = line.slice(0, index);             const key = name.toLowerCase();             const value = line.slice(index + 1).trim();             this.maybeSetNormalizedName(name, key);             if (this.headers.has(key)) {               this.headers.get(key)!.push(value);             } else {               this.headers.set(key, [value]);             }           }         });       };     } else {       this.lazyInit = () => {         if (typeof ngDevMode === 'undefined' || ngDevMode) {           assertValidHeaders(headers);         }         this.headers = new Map<string, string[]>();         Object.keys(headers).forEach(name => {           let values: string|string[] = headers[name];           const key = name.toLowerCase();           if (typeof values === 'string') {             values = [values];           }           if (values.length > 0) {             this.headers.set(key, values);             this.maybeSetNormalizedName(name, key);           }         });       };     }   }    /**    * Checks for existence of a given header.    *    * @param name The header name to check for existence.    *    * @returns True if the header exists, false otherwise.    */   has(name: string): boolean {     this.init();      return this.headers.has(name.toLowerCase());   }    /**    * Retrieves the first value of a given header.    *    * @param name The header name.    *    * @returns The value string if the header exists, null otherwise    */   get(name: string): string|null {     this.init();      const values = this.headers.get(name.toLowerCase());     return values && values.length > 0 ? values[0] : null;   }    /**    * Retrieves the names of the headers.    *    * @returns A list of header names.    */   keys(): string[] {     this.init();      return Array.from(this.normalizedNames.values());   }    /**    * Retrieves a list of values for a given header.    *    * @param name The header name from which to retrieve values.    *    * @returns A string of values if the header exists, null otherwise.    */   getAll(name: string): string[]|null {     this.init();      return this.headers.get(name.toLowerCase()) || null;   }    /**    * Appends a new value to the existing set of values for a header    * and returns them in a clone of the original instance.    *    * @param name The header name for which to append the values.    * @param value The value to append.    *    * @returns A clone of the HTTP headers object with the value appended to the given header.    */    append(name: string, value: string|string[]): HttpHeaders {     return this.clone({name, value, op: 'a'});   }   /**    * Sets or modifies a value for a given header in a clone of the original instance.    * If the header already exists, its value is replaced with the given value    * in the returned object.    *    * @param name The header name.    * @param value The value or values to set or override for the given header.    *    * @returns A clone of the HTTP headers object with the newly set header value.    */   set(name: string, value: string|string[]): HttpHeaders {     return this.clone({name, value, op: 's'});   }   /**    * Deletes values for a given header in a clone of the original instance.    *    * @param name The header name.    * @param value The value or values to delete for the given header.    *    * @returns A clone of the HTTP headers object with the given value deleted.    */   delete(name: string, value?: string|string[]): HttpHeaders {     return this.clone({name, value, op: 'd'});   }    private maybeSetNormalizedName(name: string, lcName: string): void {     if (!this.normalizedNames.has(lcName)) {       this.normalizedNames.set(lcName, name);     }   }    private init(): void {     if (!!this.lazyInit) {       if (this.lazyInit instanceof HttpHeaders) {         this.copyFrom(this.lazyInit);       } else {         this.lazyInit();       }       this.lazyInit = null;       if (!!this.lazyUpdate) {         this.lazyUpdate.forEach(update => this.applyUpdate(update));         this.lazyUpdate = null;       }     }   }    private copyFrom(other: HttpHeaders) {     other.init();     Array.from(other.headers.keys()).forEach(key => {       this.headers.set(key, other.headers.get(key)!);       this.normalizedNames.set(key, other.normalizedNames.get(key)!);     });   }    private clone(update: Update): HttpHeaders {     const clone = new HttpHeaders();     clone.lazyInit =         (!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this;     clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);     return clone;   }    private applyUpdate(update: Update): void {     const key = update.name.toLowerCase();     switch (update.op) {       case 'a':       case 's':         let value = update.value!;         if (typeof value === 'string') {           value = [value];         }         if (value.length === 0) {           return;         }         this.maybeSetNormalizedName(update.name, key);         const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];         base.push(...value);         this.headers.set(key, base);         break;       case 'd':         const toDelete = update.value as string | undefined;         if (!toDelete) {           this.headers.delete(key);           this.normalizedNames.delete(key);         } else {           let existing = this.headers.get(key);           if (!existing) {             return;           }           existing = existing.filter(value => toDelete.indexOf(value) === -1);           if (existing.length === 0) {             this.headers.delete(key);             this.normalizedNames.delete(key);           } else {             this.headers.set(key, existing);           }         }         break;     }   }    /**    * @internal    */   forEach(fn: (name: string, values: string[]) => void) {     this.init();     Array.from(this.normalizedNames.keys())         .forEach(key => fn(this.normalizedNames.get(key)!, this.headers.get(key)!));   } }  /**  * Verifies that the headers object has the right shape: the values  * must be either strings or arrays. Throws an error if an invalid  * header value is present.  */ function assertValidHeaders(headers: Record<string, unknown>):     asserts headers is Record<string, string|string[]> {   for (const [key, value] of Object.entries(headers)) {     if (typeof value !== 'string' && !Array.isArray(value)) {       throw new Error(           `Unexpected value of the \\`${key}\\` header provided. ` +           `Expecting either a string or an array, but got: \\`${value}\\`.`);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A codec for encoding and decoding parameters in URLs.  *  * Used by `HttpParams`.  *  * @publicApi  **/ export interface HttpParameterCodec {   encodeKey(key: string): string;   encodeValue(value: string): string;    decodeKey(key: string): string;   decodeValue(value: string): string; }  /**  * Provides encoding and decoding of URL parameter and query-string values.  *  * Serializes and parses URL parameter keys and values to encode and decode them.  * If you pass URL query parameters without encoding,  * the query parameters can be misinterpreted at the receiving end.  *  *  * @publicApi  */ export class HttpUrlEncodingCodec implements HttpParameterCodec {   /**    * Encodes a key name for a URL parameter or query-string.    * @param key The key name.    * @returns The encoded key name.    */   encodeKey(key: string): string {     return standardEncoding(key);   }    /**    * Encodes the value of a URL parameter or query-string.    * @param value The value.    * @returns The encoded value.    */   encodeValue(value: string): string {     return standardEncoding(value);   }    /**    * Decodes an encoded URL parameter or query-string key.    * @param key The encoded key name.    * @returns The decoded key name.    */   decodeKey(key: string): string {     return decodeURIComponent(key);   }    /**    * Decodes an encoded URL parameter or query-string value.    * @param value The encoded value.    * @returns The decoded value.    */   decodeValue(value: string) {     return decodeURIComponent(value);   } }   function paramParser(rawParams: string, codec: HttpParameterCodec): Map<string, string[]> {   const map = new Map<string, string[]>();   if (rawParams.length > 0) {     // The `window.location.search` can be used while creating an instance of the `HttpParams` class     // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`     // may start with the `?` char, so we strip it if it's present.     const params: string[] = rawParams.replace(/^\\?/, '').split('&');     params.forEach((param: string) => {       const eqIdx = param.indexOf('=');       const [key, val]: string[] = eqIdx == -1 ?           [codec.decodeKey(param), ''] :           [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];       const list = map.get(key) || [];       list.push(val);       map.set(key, list);     });   }   return map; }  /**  * Encode input string with standard encodeURIComponent and then un-encode specific characters.  */ const STANDARD_ENCODING_REGEX = /%(\\d[a-f0-9])/gi; const STANDARD_ENCODING_REPLACEMENTS: {[x: string]: string} = {   '40': '@',   '3A': ':',   '24': '$',   '2C': ',',   '3B': ';',   '3D': '=',   '3F': '?',   '2F': '/', };  function standardEncoding(v: string): string {   return encodeURIComponent(v).replace(       STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s); }  function valueToString(value: string|number|boolean): string {   return `${value}`; }  interface Update {   param: string;   value?: string|number|boolean;   op: 'a'|'d'|'s'; }  /**  * Options used to construct an `HttpParams` instance.  *  * @publicApi  */ export interface HttpParamsOptions {   /**    * String representation of the HTTP parameters in URL-query-string format.    * Mutually exclusive with `fromObject`.    */   fromString?: string;    /** Object map of the HTTP parameters. Mutually exclusive with `fromString`. */   fromObject?: {[param: string]: string|number|boolean|ReadonlyArray<string|number|boolean>};    /** Encoding codec used to parse and serialize the parameters. */   encoder?: HttpParameterCodec; }  /**  * An HTTP request/response body that represents serialized parameters,  * per the MIME type `application/x-www-form-urlencoded`.  *  * This class is immutable; all mutation operations return a new instance.  *  * @publicApi  */ export class HttpParams {   private map: Map<string, string[]>|null;   private encoder: HttpParameterCodec;   private updates: Update[]|null = null;   private cloneFrom: HttpParams|null = null;    constructor(options: HttpParamsOptions = {} as HttpParamsOptions) {     this.encoder = options.encoder || new HttpUrlEncodingCodec();     if (!!options.fromString) {       if (!!options.fromObject) {         throw new Error(`Cannot specify both fromString and fromObject.`);       }       this.map = paramParser(options.fromString, this.encoder);     } else if (!!options.fromObject) {       this.map = new Map<string, string[]>();       Object.keys(options.fromObject).forEach(key => {         const value = (options.fromObject as any)[key];         // convert the values to strings         const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];         this.map!.set(key, values);       });     } else {       this.map = null;     }   }    /**    * Reports whether the body includes one or more values for a given parameter.    * @param param The parameter name.    * @returns True if the parameter has one or more values,    * false if it has no value or is not present.    */   has(param: string): boolean {     this.init();     return this.map!.has(param);   }    /**    * Retrieves the first value for a parameter.    * @param param The parameter name.    * @returns The first value of the given parameter,    * or `null` if the parameter is not present.    */   get(param: string): string|null {     this.init();     const res = this.map!.get(param);     return !!res ? res[0] : null;   }    /**    * Retrieves all values for a  parameter.    * @param param The parameter name.    * @returns All values in a string array,    * or `null` if the parameter not present.    */   getAll(param: string): string[]|null {     this.init();     return this.map!.get(param) || null;   }    /**    * Retrieves all the parameters for this body.    * @returns The parameter names in a string array.    */   keys(): string[] {     this.init();     return Array.from(this.map!.keys());   }    /**    * Appends a new value to existing values for a parameter.    * @param param The parameter name.    * @param value The new value to add.    * @return A new body with the appended value.    */   append(param: string, value: string|number|boolean): HttpParams {     return this.clone({param, value, op: 'a'});   }    /**    * Constructs a new body with appended values for the given parameter name.    * @param params parameters and values    * @return A new body with the new value.    */   appendAll(params: {[param: string]: string|number|boolean|ReadonlyArray<string|number|boolean>}):       HttpParams {     const updates: Update[] = [];     Object.keys(params).forEach(param => {       const value = params[param];       if (Array.isArray(value)) {         value.forEach(_value => {           updates.push({param, value: _value, op: 'a'});         });       } else {         updates.push({param, value: value as (string | number | boolean), op: 'a'});       }     });     return this.clone(updates);   }    /**    * Replaces the value for a parameter.    * @param param The parameter name.    * @param value The new value.    * @return A new body with the new value.    */   set(param: string, value: string|number|boolean): HttpParams {     return this.clone({param, value, op: 's'});   }    /**    * Removes a given value or all values from a parameter.    * @param param The parameter name.    * @param value The value to remove, if provided.    * @return A new body with the given value removed, or with all values    * removed if no value is specified.    */   delete(param: string, value?: string|number|boolean): HttpParams {     return this.clone({param, value, op: 'd'});   }    /**    * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are    * separated by `&`s.    */   toString(): string {     this.init();     return this.keys()         .map(key => {           const eKey = this.encoder.encodeKey(key);           // `a: ['1']` produces `'a=1'`           // `b: []` produces `''`           // `c: ['1', '2']` produces `'c=1&c=2'`           return this.map!.get(key)!.map(value => eKey + '=' + this.encoder.encodeValue(value))               .join('&');         })         // filter out empty values because `b: []` produces `''`         // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't         .filter(param => param !== '')         .join('&');   }    private clone(update: Update|Update[]): HttpParams {     const clone = new HttpParams({encoder: this.encoder} as HttpParamsOptions);     clone.cloneFrom = this.cloneFrom || this;     clone.updates = (this.updates || []).concat(update);     return clone;   }    private init() {     if (this.map === null) {       this.map = new Map<string, string[]>();     }     if (this.cloneFrom !== null) {       this.cloneFrom.init();       this.cloneFrom.keys().forEach(key => this.map!.set(key, this.cloneFrom!.map!.get(key)!));       this.updates!.forEach(update => {         switch (update.op) {           case 'a':           case 's':             const base = (update.op === 'a' ? this.map!.get(update.param) : undefined) || [];             base.push(valueToString(update.value!));             this.map!.set(update.param, base);             break;           case 'd':             if (update.value !== undefined) {               let base = this.map!.get(update.param) || [];               const idx = base.indexOf(valueToString(update.value));               if (idx !== -1) {                 base.splice(idx, 1);               }               if (base.length > 0) {                 this.map!.set(update.param, base);               } else {                 this.map!.delete(update.param);               }             } else {               this.map!.delete(update.param);               break;             }         }       });       this.cloneFrom = this.updates = null;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A token used to manipulate and access values stored in `HttpContext`.  *  * @publicApi  */ export class HttpContextToken<T> {   constructor(public readonly defaultValue: () => T) {} }  /**  * Http context stores arbitrary user defined values and ensures type safety without  * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.  *  * This context is mutable and is shared between cloned requests unless explicitly specified.  *  * @usageNotes  *  * ### Usage Example  *  * ```typescript  * // inside cache.interceptors.ts  * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);  *  * export class CacheInterceptor implements HttpInterceptor {  *  *   intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {  *     if (req.context.get(IS_CACHE_ENABLED) === true) {  *       return ...;  *     }  *     return delegate.handle(req);  *   }  * }  *  * // inside a service  *  * this.httpClient.get('/api/weather', {  *   context: new HttpContext().set(IS_CACHE_ENABLED, true)  * }).subscribe(...);  * ```  *  * @publicApi  */ export class HttpContext {   private readonly map = new Map<HttpContextToken<unknown>, unknown>();    /**    * Store a value in the context. If a value is already present it will be overwritten.    *    * @param token The reference to an instance of `HttpContextToken`.    * @param value The value to store.    *    * @returns A reference to itself for easy chaining.    */   set<T>(token: HttpContextToken<T>, value: T): HttpContext {     this.map.set(token, value);     return this;   }    /**    * Retrieve the value associated with the given token.    *    * @param token The reference to an instance of `HttpContextToken`.    *    * @returns The stored value or default if one is defined.    */   get<T>(token: HttpContextToken<T>): T {     if (!this.map.has(token)) {       this.map.set(token, token.defaultValue());     }     return this.map.get(token) as T;   }    /**    * Delete the value associated with the given token.    *    * @param token The reference to an instance of `HttpContextToken`.    *    * @returns A reference to itself for easy chaining.    */   delete(token: HttpContextToken<unknown>): HttpContext {     this.map.delete(token);     return this;   }    /**    * Checks for existence of a given token.    *    * @param token The reference to an instance of `HttpContextToken`.    *    * @returns True if the token exists, false otherwise.    */   has(token: HttpContextToken<unknown>): boolean {     return this.map.has(token);   }    /**    * @returns a list of tokens currently stored in the context.    */   keys(): IterableIterator<HttpContextToken<unknown>> {     return this.map.keys();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpContext} from './context'; import {HttpHeaders} from './headers'; import {HttpParams} from './params';   /**  * Construction interface for `HttpRequest`s.  *  * All values are optional and will override default values if provided.  */ interface HttpRequestInit {   headers?: HttpHeaders;   context?: HttpContext;   reportProgress?: boolean;   params?: HttpParams;   responseType?: 'arraybuffer'|'blob'|'json'|'text';   withCredentials?: boolean; }  /**  * Determine whether the given HTTP method may include a body.  */ function mightHaveBody(method: string): boolean {   switch (method) {     case 'DELETE':     case 'GET':     case 'HEAD':     case 'OPTIONS':     case 'JSONP':       return false;     default:       return true;   } }  /**  * Safely assert whether the given value is an ArrayBuffer.  *  * In some execution environments ArrayBuffer is not defined.  */ function isArrayBuffer(value: any): value is ArrayBuffer {   return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer; }  /**  * Safely assert whether the given value is a Blob.  *  * In some execution environments Blob is not defined.  */ function isBlob(value: any): value is Blob {   return typeof Blob !== 'undefined' && value instanceof Blob; }  /**  * Safely assert whether the given value is a FormData instance.  *  * In some execution environments FormData is not defined.  */ function isFormData(value: any): value is FormData {   return typeof FormData !== 'undefined' && value instanceof FormData; }  /**  * Safely assert whether the given value is a URLSearchParams instance.  *  * In some execution environments URLSearchParams is not defined.  */ function isUrlSearchParams(value: any): value is URLSearchParams {   return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams; }  /**  * An outgoing HTTP request with an optional typed body.  *  * `HttpRequest` represents an outgoing request, including URL, method,  * headers, body, and other request configuration options. Instances should be  * assumed to be immutable. To modify a `HttpRequest`, the `clone`  * method should be used.  *  * @publicApi  */ export class HttpRequest<T> {   /**    * The request body, or `null` if one isn't set.    *    * Bodies are not enforced to be immutable, as they can include a reference to any    * user-defined data type. However, interceptors should take care to preserve    * idempotence by treating them as such.    */   readonly body: T|null = null;    /**    * Outgoing headers for this request.    */   // TODO(issue/24571): remove '!'.   readonly headers!: HttpHeaders;    /**    * Shared and mutable context that can be used by interceptors    */   readonly context!: HttpContext;    /**    * Whether this request should be made in a way that exposes progress events.    *    * Progress events are expensive (change detection runs on each event) and so    * they should only be requested if the consumer intends to monitor them.    */   readonly reportProgress: boolean = false;    /**    * Whether this request should be sent with outgoing credentials (cookies).    */   readonly withCredentials: boolean = false;    /**    * The expected response type of the server.    *    * This is used to parse the response appropriately before returning it to    * the requestee.    */   readonly responseType: 'arraybuffer'|'blob'|'json'|'text' = 'json';    /**    * The outgoing HTTP request method.    */   readonly method: string;    /**    * Outgoing URL parameters.    *    * To pass a string representation of HTTP parameters in the URL-query-string format,    * the `HttpParamsOptions`' `fromString` may be used. For example:    *    * ```    * new HttpParams({fromString: 'angular=awesome'})    * ```    */   // TODO(issue/24571): remove '!'.   readonly params!: HttpParams;    /**    * The outgoing URL with all URL parameters set.    */   readonly urlWithParams: string;    constructor(method: 'DELETE'|'GET'|'HEAD'|'JSONP'|'OPTIONS', url: string, init?: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   });   constructor(method: 'POST'|'PUT'|'PATCH', url: string, body: T|null, init?: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   });   constructor(method: string, url: string, body: T|null, init?: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   });   constructor(       method: string, readonly url: string, third?: T|{         headers?: HttpHeaders,         context?: HttpContext,         reportProgress?: boolean,         params?: HttpParams,         responseType?: 'arraybuffer'|'blob'|'json'|'text',         withCredentials?: boolean,       }|null,       fourth?: {         headers?: HttpHeaders,         context?: HttpContext,         reportProgress?: boolean,         params?: HttpParams,         responseType?: 'arraybuffer'|'blob'|'json'|'text',         withCredentials?: boolean,       }) {     this.method = method.toUpperCase();     // Next, need to figure out which argument holds the HttpRequestInit     // options, if any.     let options: HttpRequestInit|undefined;      // Check whether a body argument is expected. The only valid way to omit     // the body argument is to use a known no-body method like GET.     if (mightHaveBody(this.method) || !!fourth) {       // Body is the third argument, options are the fourth.       this.body = (third !== undefined) ? third as T : null;       options = fourth;     } else {       // No body required, options are the third argument. The body stays null.       options = third as HttpRequestInit;     }      // If options have been passed, interpret them.     if (options) {       // Normalize reportProgress and withCredentials.       this.reportProgress = !!options.reportProgress;       this.withCredentials = !!options.withCredentials;        // Override default response type of 'json' if one is provided.       if (!!options.responseType) {         this.responseType = options.responseType;       }        // Override headers if they're provided.       if (!!options.headers) {         this.headers = options.headers;       }        if (!!options.context) {         this.context = options.context;       }        if (!!options.params) {         this.params = options.params;       }     }      // If no headers have been passed in, construct a new HttpHeaders instance.     if (!this.headers) {       this.headers = new HttpHeaders();     }      // If no context have been passed in, construct a new HttpContext instance.     if (!this.context) {       this.context = new HttpContext();     }      // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.     if (!this.params) {       this.params = new HttpParams();       this.urlWithParams = url;     } else {       // Encode the parameters to a string in preparation for inclusion in the URL.       const params = this.params.toString();       if (params.length === 0) {         // No parameters, the visible URL is just the URL given at creation time.         this.urlWithParams = url;       } else {         // Does the URL already have query parameters? Look for '?'.         const qIdx = url.indexOf('?');         // There are 3 cases to handle:         // 1) No existing parameters -> append '?' followed by params.         // 2) '?' exists and is followed by existing query string ->         //    append '&' followed by params.         // 3) '?' exists at the end of the url -> append params directly.         // This basically amounts to determining the character, if any, with         // which to join the URL and parameters.         const sep: string = qIdx === -1 ? '?' : (qIdx < url.length - 1 ? '&' : '');         this.urlWithParams = url + sep + params;       }     }   }    /**    * Transform the free-form body into a serialized format suitable for    * transmission to the server.    */   serializeBody(): ArrayBuffer|Blob|FormData|string|null {     // If no body is present, no need to serialize it.     if (this.body === null) {       return null;     }     // Check whether the body is already in a serialized form. If so,     // it can just be returned directly.     if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) ||         isUrlSearchParams(this.body) || typeof this.body === 'string') {       return this.body;     }     // Check whether the body is an instance of HttpUrlEncodedParams.     if (this.body instanceof HttpParams) {       return this.body.toString();     }     // Check whether the body is an object or array, and serialize with JSON if so.     if (typeof this.body === 'object' || typeof this.body === 'boolean' ||         Array.isArray(this.body)) {       return JSON.stringify(this.body);     }     // Fall back on toString() for everything else.     return (this.body as any).toString();   }    /**    * Examine the body and attempt to infer an appropriate MIME type    * for it.    *    * If no such type can be inferred, this method will return `null`.    */   detectContentTypeHeader(): string|null {     // An empty body has no content type.     if (this.body === null) {       return null;     }     // FormData bodies rely on the browser's content type assignment.     if (isFormData(this.body)) {       return null;     }     // Blobs usually have their own content type. If it doesn't, then     // no type can be inferred.     if (isBlob(this.body)) {       return this.body.type || null;     }     // Array buffers have unknown contents and thus no type can be inferred.     if (isArrayBuffer(this.body)) {       return null;     }     // Technically, strings could be a form of JSON data, but it's safe enough     // to assume they're plain strings.     if (typeof this.body === 'string') {       return 'text/plain';     }     // `HttpUrlEncodedParams` has its own content-type.     if (this.body instanceof HttpParams) {       return 'application/x-www-form-urlencoded;charset=UTF-8';     }     // Arrays, objects, boolean and numbers will be encoded as JSON.     if (typeof this.body === 'object' || typeof this.body === 'number' ||         typeof this.body === 'boolean') {       return 'application/json';     }     // No type could be inferred.     return null;   }    clone(): HttpRequest<T>;   clone(update: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: T|null,     method?: string,     url?: string,     setHeaders?: {[name: string]: string|string[]},     setParams?: {[param: string]: string},   }): HttpRequest<T>;   clone<V>(update: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: V|null,     method?: string,     url?: string,     setHeaders?: {[name: string]: string|string[]},     setParams?: {[param: string]: string},   }): HttpRequest<V>;   clone(update: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: any|null,     method?: string,     url?: string,     setHeaders?: {[name: string]: string|string[]},     setParams?: {[param: string]: string};   } = {}): HttpRequest<any> {     // For method, url, and responseType, take the current value unless     // it is overridden in the update hash.     const method = update.method || this.method;     const url = update.url || this.url;     const responseType = update.responseType || this.responseType;      // The body is somewhat special - a `null` value in update.body means     // whatever current body is present is being overridden with an empty     // body, whereas an `undefined` value in update.body implies no     // override.     const body = (update.body !== undefined) ? update.body : this.body;      // Carefully handle the boolean options to differentiate between     // `false` and `undefined` in the update args.     const withCredentials =         (update.withCredentials !== undefined) ? update.withCredentials : this.withCredentials;     const reportProgress =         (update.reportProgress !== undefined) ? update.reportProgress : this.reportProgress;      // Headers and params may be appended to if `setHeaders` or     // `setParams` are used.     let headers = update.headers || this.headers;     let params = update.params || this.params;      // Pass on context if needed     const context = update.context ?? this.context;      // Check whether the caller has asked to add headers.     if (update.setHeaders !== undefined) {       // Set every requested header.       headers =           Object.keys(update.setHeaders)               .reduce((headers, name) => headers.set(name, update.setHeaders![name]), headers);     }      // Check whether the caller has asked to set params.     if (update.setParams) {       // Set every requested param.       params = Object.keys(update.setParams)                    .reduce((params, param) => params.set(param, update.setParams![param]), params);     }      // Finally, construct the new HttpRequest using the pieces from above.     return new HttpRequest(method, url, body, {       params,       headers,       context,       reportProgress,       responseType,       withCredentials,     });   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpHeaders} from './headers';  /**  * Type enumeration for the different kinds of `HttpEvent`.  *  * @publicApi  */ export enum HttpEventType {   /**    * The request was sent out over the wire.    */   Sent,    /**    * An upload progress event was received.    */   UploadProgress,    /**    * The response status code and headers were received.    */   ResponseHeader,    /**    * A download progress event was received.    */   DownloadProgress,    /**    * The full response including the body was received.    */   Response,    /**    * A custom event from an interceptor or a backend.    */   User, }  /**  * Base interface for progress events.  *  * @publicApi  */ export interface HttpProgressEvent {   /**    * Progress event type is either upload or download.    */   type: HttpEventType.DownloadProgress|HttpEventType.UploadProgress;    /**    * Number of bytes uploaded or downloaded.    */   loaded: number;    /**    * Total number of bytes to upload or download. Depending on the request or    * response, this may not be computable and thus may not be present.    */   total?: number; }  /**  * A download progress event.  *  * @publicApi  */ export interface HttpDownloadProgressEvent extends HttpProgressEvent {   type: HttpEventType.DownloadProgress;    /**    * The partial response body as downloaded so far.    *    * Only present if the responseType was `text`.    */   partialText?: string; }  /**  * An upload progress event.  *  * @publicApi  */ export interface HttpUploadProgressEvent extends HttpProgressEvent {   type: HttpEventType.UploadProgress; }  /**  * An event indicating that the request was sent to the server. Useful  * when a request may be retried multiple times, to distinguish between  * retries on the final event stream.  *  * @publicApi  */ export interface HttpSentEvent {   type: HttpEventType.Sent; }  /**  * A user-defined event.  *  * Grouping all custom events under this type ensures they will be handled  * and forwarded by all implementations of interceptors.  *  * @publicApi  */ export interface HttpUserEvent<T> {   type: HttpEventType.User; }  /**  * An error that represents a failed attempt to JSON.parse text coming back  * from the server.  *  * It bundles the Error object with the actual response body that failed to parse.  *  *  */ export interface HttpJsonParseError {   error: Error;   text: string; }  /**  * Union type for all possible events on the response stream.  *  * Typed according to the expected type of the response.  *  * @publicApi  */ export type HttpEvent<T> =     HttpSentEvent|HttpHeaderResponse|HttpResponse<T>|HttpProgressEvent|HttpUserEvent<T>;  /**  * Base class for both `HttpResponse` and `HttpHeaderResponse`.  *  * @publicApi  */ export abstract class HttpResponseBase {   /**    * All response headers.    */   readonly headers: HttpHeaders;    /**    * Response status code.    */   readonly status: number;    /**    * Textual description of response status code, defaults to OK.    *    * Do not depend on this.    */   readonly statusText: string;    /**    * URL of the resource retrieved, or null if not available.    */   readonly url: string|null;    /**    * Whether the status code falls in the 2xx range.    */   readonly ok: boolean;    /**    * Type of the response, narrowed to either the full response or the header.    */   // TODO(issue/24571): remove '!'.   readonly type!: HttpEventType.Response|HttpEventType.ResponseHeader;    /**    * Super-constructor for all responses.    *    * The single parameter accepted is an initialization hash. Any properties    * of the response passed there will override the default values.    */   constructor(       init: {         headers?: HttpHeaders,         status?: number,         statusText?: string,         url?: string,       },       defaultStatus: number = HttpStatusCode.Ok, defaultStatusText: string = 'OK') {     // If the hash has values passed, use them to initialize the response.     // Otherwise use the default values.     this.headers = init.headers || new HttpHeaders();     this.status = init.status !== undefined ? init.status : defaultStatus;     this.statusText = init.statusText || defaultStatusText;     this.url = init.url || null;      // Cache the ok value to avoid defining a getter.     this.ok = this.status >= 200 && this.status < 300;   } }  /**  * A partial HTTP response which only includes the status and header data,  * but no response body.  *  * `HttpHeaderResponse` is a `HttpEvent` available on the response  * event stream, only when progress events are requested.  *  * @publicApi  */ export class HttpHeaderResponse extends HttpResponseBase {   /**    * Create a new `HttpHeaderResponse` with the given parameters.    */   constructor(init: {     headers?: HttpHeaders,     status?: number,     statusText?: string,     url?: string,   } = {}) {     super(init);   }    override readonly type: HttpEventType.ResponseHeader = HttpEventType.ResponseHeader;    /**    * Copy this `HttpHeaderResponse`, overriding its contents with the    * given parameter hash.    */   clone(update: {headers?: HttpHeaders; status?: number; statusText?: string; url?: string;} = {}):       HttpHeaderResponse {     // Perform a straightforward initialization of the new HttpHeaderResponse,     // overriding the current parameters with new ones if given.     return new HttpHeaderResponse({       headers: update.headers || this.headers,       status: update.status !== undefined ? update.status : this.status,       statusText: update.statusText || this.statusText,       url: update.url || this.url || undefined,     });   } }  /**  * A full HTTP response, including a typed response body (which may be `null`  * if one was not returned).  *  * `HttpResponse` is a `HttpEvent` available on the response event  * stream.  *  * @publicApi  */ export class HttpResponse<T> extends HttpResponseBase {   /**    * The response body, or `null` if one was not returned.    */   readonly body: T|null;    /**    * Construct a new `HttpResponse`.    */   constructor(init: {     body?: T|null,     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   } = {}) {     super(init);     this.body = init.body !== undefined ? init.body : null;   }    override readonly type: HttpEventType.Response = HttpEventType.Response;    clone(): HttpResponse<T>;   clone(update: {headers?: HttpHeaders; status?: number; statusText?: string; url?: string;}):       HttpResponse<T>;   clone<V>(update: {     body?: V|null,     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   }): HttpResponse<V>;   clone(update: {     body?: any|null;     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   } = {}): HttpResponse<any> {     return new HttpResponse<any>({       body: (update.body !== undefined) ? update.body : this.body,       headers: update.headers || this.headers,       status: (update.status !== undefined) ? update.status : this.status,       statusText: update.statusText || this.statusText,       url: update.url || this.url || undefined,     });   } }  /**  * A response that represents an error or failure, either from a  * non-successful HTTP status, an error while executing the request,  * or some other failure which occurred during the parsing of the response.  *  * Any error returned on the `Observable` response stream will be  * wrapped in an `HttpErrorResponse` to provide additional context about  * the state of the HTTP layer when the error occurred. The error property  * will contain either a wrapped Error object or the error response returned  * from the server.  *  * @publicApi  */ export class HttpErrorResponse extends HttpResponseBase implements Error {   readonly name = 'HttpErrorResponse';   readonly message: string;   readonly error: any|null;    /**    * Errors are never okay, even when the status code is in the 2xx success range.    */   override readonly ok = false;    constructor(init: {     error?: any;     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   }) {     // Initialize with a default status of 0 / Unknown Error.     super(init, 0, 'Unknown Error');      // If the response was successful, then this was a parse error. Otherwise, it was     // a protocol-level failure of some sort. Either the request failed in transit     // or the server returned an unsuccessful status code.     if (this.status >= 200 && this.status < 300) {       this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;     } else {       this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${           init.statusText}`;     }     this.error = init.error || null;   } }  /**  * Http status codes.  * As per https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml  * @publicApi  */ export const enum HttpStatusCode {   Continue = 100,   SwitchingProtocols = 101,   Processing = 102,   EarlyHints = 103,    Ok = 200,   Created = 201,   Accepted = 202,   NonAuthoritativeInformation = 203,   NoContent = 204,   ResetContent = 205,   PartialContent = 206,   MultiStatus = 207,   AlreadyReported = 208,   ImUsed = 226,    MultipleChoices = 300,   MovedPermanently = 301,   Found = 302,   SeeOther = 303,   NotModified = 304,   UseProxy = 305,   Unused = 306,   TemporaryRedirect = 307,   PermanentRedirect = 308,    BadRequest = 400,   Unauthorized = 401,   PaymentRequired = 402,   Forbidden = 403,   NotFound = 404,   MethodNotAllowed = 405,   NotAcceptable = 406,   ProxyAuthenticationRequired = 407,   RequestTimeout = 408,   Conflict = 409,   Gone = 410,   LengthRequired = 411,   PreconditionFailed = 412,   PayloadTooLarge = 413,   UriTooLong = 414,   UnsupportedMediaType = 415,   RangeNotSatisfiable = 416,   ExpectationFailed = 417,   ImATeapot = 418,   MisdirectedRequest = 421,   UnprocessableEntity = 422,   Locked = 423,   FailedDependency = 424,   TooEarly = 425,   UpgradeRequired = 426,   PreconditionRequired = 428,   TooManyRequests = 429,   RequestHeaderFieldsTooLarge = 431,   UnavailableForLegalReasons = 451,    InternalServerError = 500,   NotImplemented = 501,   BadGateway = 502,   ServiceUnavailable = 503,   GatewayTimeout = 504,   HttpVersionNotSupported = 505,   VariantAlsoNegotiates = 506,   InsufficientStorage = 507,   LoopDetected = 508,   NotExtended = 510,   NetworkAuthenticationRequired = 511 } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injectable} from '@angular/core'; import {Observable, of} from 'rxjs'; import {concatMap, filter, map} from 'rxjs/operators';  import {HttpHandler} from './backend'; import {HttpContext} from './context'; import {HttpHeaders} from './headers'; import {HttpParams, HttpParamsOptions} from './params'; import {HttpRequest} from './request'; import {HttpEvent, HttpResponse} from './response';   /**  * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and  * the given `body`. This function clones the object and adds the body.  *  * Note that the `responseType` *options* value is a String that identifies the  * single data type of the response.  * A single overload version of the method handles each response type.  * The value of `responseType` cannot be a union, as the combined signature could imply.  *  */ function addBody<T>(     options: {       headers?: HttpHeaders|{[header: string]: string | string[]},       context?: HttpContext,       observe?: 'body'|'events'|'response',       params?: HttpParams|             {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},       reportProgress?: boolean,       responseType?: 'arraybuffer'|'blob'|'json'|'text',       withCredentials?: boolean,     },     body: T|null): any {   return {     body,     headers: options.headers,     context: options.context,     observe: options.observe,     params: options.params,     reportProgress: options.reportProgress,     responseType: options.responseType,     withCredentials: options.withCredentials,   }; }  /**  * Performs HTTP requests.  * This service is available as an injectable class, with methods to perform HTTP requests.  * Each request method has multiple signatures, and the return type varies based on  * the signature that is called (mainly the values of `observe` and `responseType`).  *  * Note that the `responseType` *options* value is a String that identifies the  * single data type of the response.  * A single overload version of the method handles each response type.  * The value of `responseType` cannot be a union, as the combined signature could imply.   *  * @usageNotes  * Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.  *  * ### HTTP Request Example  *  * ```  *  // GET heroes whose name contains search term  * searchHeroes(term: string): observable<Hero[]>{  *  *  const params = new HttpParams({fromString: 'name=term'});  *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});  * }  * ```  *  * Alternatively, the parameter string can be used without invoking HttpParams  * by directly joining to the URL.  * ```  * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});  * ```  *  *  * ### JSONP Example  * ```  * requestJsonp(url, callback = 'callback') {  *  return this.httpClient.jsonp(this.heroesURL, callback);  * }  * ```  *  * ### PATCH Example  * ```  * // PATCH one of the heroes' name  * patchHero (id: number, heroName: string): Observable<{}> {  * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42  *  return this.httpClient.patch(url, {name: heroName}, httpOptions)  *    .pipe(catchError(this.handleError('patchHero')));  * }  * ```  *  * @see [HTTP Guide](guide/http)  * @see [HTTP Request](api/common/http/HttpRequest)  *  * @publicApi  */ @Injectable() export class HttpClient {   constructor(private handler: HttpHandler) {}    /**    * Sends an `HttpRequest` and returns a stream of `HttpEvent`s.    *    * @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.    */   request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;    /**    * Constructs a request that interprets the body as an `ArrayBuffer` and returns the response in    * an `ArrayBuffer`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a request that interprets the body as a blob and returns    * the response as a blob.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type `Blob`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a request that interprets the body as a text string and    * returns a string value.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a request that interprets the body as an `ArrayBuffer` and returns the    * the full event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an array of `HttpEvent`s for    * the request.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},           observe: 'events',     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a request that interprets the body as a `Blob` and returns    * the full event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type `Blob`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a request which interprets the body as a text string and returns the full event    * stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type string.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the  request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type `Object`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'events',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<any>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type `R`.    */   request<R>(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'events',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<R>>;    /**    * Constructs a request which interprets the body as an `ArrayBuffer`    * and returns the full `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body as an `ArrayBuffer`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a request which interprets the body as a `Blob` and returns the full `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a request which interprets the body as a text stream and returns the full    * `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the HTTP response, with the response body of type string.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`,    * with the response body of type `Object`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns    * the full `HttpResponse` with the response body in the requested type.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return  An `Observable` of the full `HttpResponse`, with the response body of type `R`.    */   request<R>(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<R>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * `HttpResponse` as a JavaScript object.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Object`.    */   request(method: string, url: string, options?: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     reportProgress?: boolean,     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a request which interprets the body as a JavaScript object    * with the response body of the requested type.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `R`.    */   request<R>(method: string, url: string, options?: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     reportProgress?: boolean,     withCredentials?: boolean,   }): Observable<R>;    /**    * Constructs a request where response type and requested observable are not known statically.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the requested response, with body of type `any`.    */   request(method: string, url: string, options?: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     observe?: 'body'|'events'|'response',     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   }): Observable<any>;    /**    * Constructs an observable for a generic HTTP request that, when subscribed,    * fires the request through the chain of registered interceptors and on to the    * server.    *    * You can pass an `HttpRequest` directly as the only parameter. In this case,    * the call returns an observable of the raw `HttpEvent` stream.    *    * Alternatively you can pass an HTTP method as the first parameter,    * a URL string as the second, and an options hash containing the request body as the third.    * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the    * type of returned observable.    *   * The `responseType` value determines how a successful response body is parsed.    *   * If `responseType` is the default `json`, you can pass a type interface for the resulting    * object as a type parameter to the call.    *    * The `observe` value determines the return type, according to what you are interested in    * observing.    *   * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including    * progress events by default.    *   * An `observe` value of response returns an observable of `HttpResponse<T>`,    * where the `T` parameter depends on the `responseType` and any optionally provided type    * parameter.    *   * An `observe` value of body returns an observable of `<T>` with the same `T` body type.    *    */   request(first: string|HttpRequest<any>, url?: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     let req: HttpRequest<any>;     // First, check whether the primary argument is an instance of `HttpRequest`.     if (first instanceof HttpRequest) {       // It is. The other arguments must be undefined (per the signatures) and can be       // ignored.       req = first;     } else {       // It's a string, so it represents a URL. Construct a request based on it,       // and incorporate the remaining arguments (assuming `GET` unless a method is       // provided.        // Figure out the headers.       let headers: HttpHeaders|undefined = undefined;       if (options.headers instanceof HttpHeaders) {         headers = options.headers;       } else {         headers = new HttpHeaders(options.headers);       }        // Sort out parameters.       let params: HttpParams|undefined = undefined;       if (!!options.params) {         if (options.params instanceof HttpParams) {           params = options.params;         } else {           params = new HttpParams({fromObject: options.params} as HttpParamsOptions);         }       }        // Construct the request.       req = new HttpRequest(first, url!, (options.body !== undefined ? options.body : null), {         headers,         context: options.context,         params,         reportProgress: options.reportProgress,         // By default, JSON is assumed to be returned for all calls.         responseType: options.responseType || 'json',         withCredentials: options.withCredentials,       });     }      // Start with an Observable.of() the initial request, and run the handler (which     // includes all interceptors) inside a concatMap(). This way, the handler runs     // inside an Observable chain, which causes interceptors to be re-run on every     // subscription (this also makes retries re-run the handler, including interceptors).     const events$: Observable<HttpEvent<any>> =         of(req).pipe(concatMap((req: HttpRequest<any>) => this.handler.handle(req)));      // If coming via the API signature which accepts a previously constructed HttpRequest,     // the only option is to get the event stream. Otherwise, return the event stream if     // that is what was requested.     if (first instanceof HttpRequest || options.observe === 'events') {       return events$;     }      // The requested stream contains either the full response or the body. In either     // case, the first step is to filter the event stream to extract a stream of     // responses(s).     const res$: Observable<HttpResponse<any>> = <Observable<HttpResponse<any>>>events$.pipe(         filter((event: HttpEvent<any>) => event instanceof HttpResponse));      // Decide which stream to return.     switch (options.observe || 'body') {       case 'body':         // The requested stream is the body. Map the response stream to the response         // body. This could be done more simply, but a misbehaving interceptor might         // transform the response body into a different format and ignore the requested         // responseType. Guard against this by validating that the response is of the         // requested type.         switch (req.responseType) {           case 'arraybuffer':             return res$.pipe(map((res: HttpResponse<any>) => {               // Validate that the body is an ArrayBuffer.               if (res.body !== null && !(res.body instanceof ArrayBuffer)) {                 throw new Error('Response is not an ArrayBuffer.');               }               return res.body;             }));           case 'blob':             return res$.pipe(map((res: HttpResponse<any>) => {               // Validate that the body is a Blob.               if (res.body !== null && !(res.body instanceof Blob)) {                 throw new Error('Response is not a Blob.');               }               return res.body;             }));           case 'text':             return res$.pipe(map((res: HttpResponse<any>) => {               // Validate that the body is a string.               if (res.body !== null && typeof res.body !== 'string') {                 throw new Error('Response is not a string.');               }               return res.body;             }));           case 'json':           default:             // No validation needed for JSON responses, as they can be of any type.             return res$.pipe(map((res: HttpResponse<any>) => res.body));         }       case 'response':         // The response stream was requested directly, so return it.         return res$;       default:         // Guard against new future observe types being added.         throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);     }   }    /**    * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`    *  and returns the response as an `ArrayBuffer`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return  An `Observable` of the response body as an `ArrayBuffer`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,     body?: any|null,   }): Observable<ArrayBuffer>;     /**    * Constructs a `DELETE` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response body as a `Blob`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,     body?: any|null,   }): Observable<Blob>;    /**    * Constructs a `DELETE` request that interprets the body as a text string and returns    * a string.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,     body?: any|null,   }): Observable<string>;    /**    * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`    *  and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with response body as an `ArrayBuffer`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,     body?: any|null   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `DELETE` request that interprets the body as a `Blob`    *  and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with the response body as a    * `Blob`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `DELETE` request that interprets the body as a text string    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response    * body of type string.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `DELETE` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with response body of    * type `Object`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `DELETE`request that interprets the body as JSON    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with a response    * body in the requested type.    */   delete<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | (string | number | boolean)[]},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer` and returns    *  the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`, with the response body as an `ArrayBuffer`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `DELETE` request that interprets the body as a `Blob` and returns the full    * `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `DELETE` request that interprets the body as a text stream and    *  returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`, with the response body of type string.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `DELETE` request the interprets the body as a JavaScript object and returns    * the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Object`.    *    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `DELETE` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of the requested type.    */   delete<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `DELETE` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type `Object`.    */   delete(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<Object>;    /**    * Constructs a DELETE request that interprets the body as JSON and returns    * the response in a given type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with response body in the requested type.    */   delete<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `DELETE` request to execute on the server. See the individual overloads for    * details on the return type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: any|null,   } = {}): Observable<any> {     return this.request<any>('DELETE', url, options as any);   }     /**    * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the    * response in an `ArrayBuffer`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `GET` request that interprets the body as a `Blob`    * and returns the response as a `Blob`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `GET` request that interprets the body as a text string    * and returns the response as a string value.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns    *  the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response    * body as an `ArrayBuffer`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `GET` request that interprets the body as a `Blob` and    * returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `GET` request that interprets the body as a text string and returns    * the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `GET` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type `Object`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `GET` request that interprets the body as JSON and returns the full    * event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with a response body in the requested type.    */   get<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `GET` request that interprets the body as a `Blob` and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `GET` request that interprets the body as a text stream and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type string.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `GET` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`,    * with the response body of type `Object`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `GET` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse` for the request,    * with a response body in the requested type.    */   get<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `GET` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    *    * @return An `Observable` of the response body as a JavaScript object.    */   get(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `GET` request that interprets the body as JSON and returns    * the response body in a given type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with a response body in the requested type.    */   get<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `GET` request to execute on the server. See the individual overloads for    * details on the return type.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('GET', url, options as any);   }     /**    * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and    * returns the response as an `ArrayBuffer`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `HEAD` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return  An `Observable` of the response, with the response body as a `Blob`.    */    head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `HEAD` request that interprets the body as a text string and returns the response    * as a string value.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `HEAD` request that interprets the body as an  `ArrayBuffer`    *  and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `HEAD` request that interprets the body as a `Blob` and    * returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as a `Blob`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `HEAD` request that interprets the body as a text string    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response body of type    * string.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON    * and returns the full HTTP event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with a response body of    * type `Object`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON and    * returns the full event stream.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body in the requested type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    */   head<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer`    *  and returns the full HTTP response.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `HEAD` request that interprets the body as a `Blob` and returns    * the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a blob.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `HEAD` request that interprets the body as text stream    * and returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type string.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type `Object`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body of the requested type.    */   head<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**     * Constructs a `HEAD` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   head(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `HEAD` request that interprets the body as JSON and returns    * the response in a given type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body of the given type.    */   head<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `HEAD` request to execute on the server. The `HEAD` method returns    * meta information about the resource without transferring the    * resource itself. See the individual overloads for    * details on the return type.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('HEAD', url, options as any);   }    /**    * Constructs a `JSONP` request for the given URL and name of the callback parameter.    *    * @param url The resource URL.    * @param callbackParam The callback function name.    *    * @return An `Observable` of the response object, with response body as an object.    */   jsonp(url: string, callbackParam: string): Observable<Object>;    /**    * Constructs a `JSONP` request for the given URL and name of the callback parameter.    *    * @param url The resource URL.    * @param callbackParam The callback function name.    *    * You must install a suitable interceptor, such as one provided by `HttpClientJsonpModule`.    * If no such interceptor is reached,    * then the `JSONP` request can be rejected by the configured backend.    *    * @return An `Observable` of the response object, with response body in the requested type.    */   jsonp<T>(url: string, callbackParam: string): Observable<T>;    /**    * Constructs an `Observable` that, when subscribed, causes a request with the special method    * `JSONP` to be dispatched via the interceptor pipeline.    * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain    * API endpoints that don't support newer,    * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.    * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the    * requests even if the API endpoint is not located on the same domain (origin) as the client-side    * application making the request.    * The endpoint API must support JSONP callback for JSONP requests to work.    * The resource API returns the JSON response wrapped in a callback function.    * You can pass the callback function name as one of the query parameters.    * Note that JSONP requests can only be used with `GET` requests.    *    * @param url The resource URL.    * @param callbackParam The callback function name.    *    */   jsonp<T>(url: string, callbackParam: string): Observable<T> {     return this.request<any>('JSONP', url, {       params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),       observe: 'body',       responseType: 'json',     });   }    /**    * Constructs an `OPTIONS` request that interprets the body as an    * `ArrayBuffer` and returns the response as an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs an `OPTIONS` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs an `OPTIONS` request that interprets the body as a text string and    * returns a string value.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body of type string.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs an `OPTIONS` request that interprets the body as an `ArrayBuffer`    *  and returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return  An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs an `OPTIONS` request that interprets the body as a `Blob` and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as a `Blob`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs an `OPTIONS` request that interprets the body as a text string    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with the response body of type string.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request with the response    * body of type `Object`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body in the requested type.    */   options<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs an `OPTIONS` request that interprets the body as an `ArrayBuffer`    *  and returns the full HTTP response.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs an `OPTIONS` request that interprets the body as a `Blob`    *  and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs an `OPTIONS` request that interprets the body as text stream    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type string.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type `Object`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the requested type.    */   options<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**     * Constructs an `OPTIONS` request that interprets the body as JSON and returns the    * response body as an object parsed from JSON.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   options(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON and returns the    * response in a given type.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse`, with a response body of the given type.    */   options<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an `Observable` that, when subscribed, causes the configured    * `OPTIONS` request to execute on the server. This method allows the client    * to determine the supported HTTP methods and other capabilities of an endpoint,    * without implying a resource action. See the individual overloads for    * details on the return type.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('OPTIONS', url, options as any);   }    /**    * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns    * the response as an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `PATCH` request that interprets the body as a `Blob` and returns the response    * as a `Blob`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `PATCH` request that interprets the body as a text string and    * returns the response as a string value.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with a response body of type string.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and    *  returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */    patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `PATCH` request that interprets the body as a `Blob`    *  and returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with the    * response body as `Blob`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `PATCH` request that interprets the body as a text string and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with a    * response body of type string.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body of type `Object`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body in the requested type.    */   patch<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer`    *  and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `PATCH` request that interprets the body as a `Blob` and returns the full    * `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `PATCH` request that interprets the body as a text stream and returns the    * full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with a response body of type string.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the requested type.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the given type.    */   patch<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**     * Constructs a `PATCH` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   patch(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the response in a given type.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with a response body in the given type.    */   patch<T>(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `PATCH` request to execute on the server. See the individual overloads for    * details on the return type.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('PATCH', url, addBody(options, body));   }    /**    * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns    * an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `POST` request that interprets the body as a `Blob` and returns the    * response as a `Blob`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `POST` request that interprets the body as a text string and    * returns the response as a string value.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the response, with a response body of type string.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `POST` request that interprets the body as a `Blob`    * and returns the response in an observable of the full event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response body as `Blob`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `POST` request that interprets the body as a text string and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of all `HttpEvent`s for the request,    * with a response body of type string.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a POST request that interprets the body as JSON and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of all `HttpEvent`s for the request,    * with a response body of type `Object`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a POST request that interprets the body as JSON and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with a response body in the requested type.    */   post<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a POST request that interprets the body as an `ArrayBuffer`    *  and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of the `HttpResponse` for the request, with the response body as an    * `ArrayBuffer`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `POST` request that interprets the body as a `Blob` and returns the full    * `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `POST` request that interprets the body as a text stream and returns    * the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with a response body of type string.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `POST` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body of type    * `Object`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `POST` request that interprets the body as JSON and returns the    * full `HttpResponse`.    *    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body in the    * requested type.    */   post<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `POST` request that interprets the body as JSON    * and returns the response body as an object parsed from JSON.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   post(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `POST` request that interprets the body as JSON    * and returns an observable of the response.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of the `HttpResponse` for the request, with a response body in the    * requested type.    */   post<T>(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `POST` request to execute on the server. The server responds with the location of    * the replaced resource. See the individual overloads for    * details on the return type.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('POST', url, addBody(options, body));   }    /**    * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the    * response as an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `PUT` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `PUT` request that interprets the body as a text string and    * returns the response as a string value.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response, with a response body of type string.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `PUT` request that interprets the body as a `Blob` and returns the full event    * stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as a `Blob`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `PUT` request that interprets the body as a text string and returns the full event    * stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request, with a response body    * of type string.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `PUT` request that interprets the body as JSON and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request, with a response body of    * type `Object`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `PUT` request that interprets the body as JSON and returns the    * full event stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with a response body in the requested type.    */   put<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `PUT` request that interprets the body as an    * `ArrayBuffer` and returns an observable of the full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with the response body as an    * `ArrayBuffer`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `PUT` request that interprets the body as a `Blob` and returns the    * full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `PUT` request that interprets the body as a text stream and returns the    * full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body of type    * string.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `PUT` request that interprets the body as JSON and returns the full    * HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body    * of type 'Object`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `PUT` request that interprets the body as an instance of the requested type and    * returns the full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the requested type.    */   put<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `PUT` request that interprets the body as JSON    * and returns an observable of JavaScript object.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response as a JavaScript object.    */   put(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `PUT` request that interprets the body as an instance of the requested type    * and returns an observable of the requested type.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the requested type.    */   put<T>(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `PUT` request to execute on the server. The `PUT` method replaces an existing resource    * with a new set of values.    * See the individual overloads for details on the return type.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('PUT', url, addBody(options, body));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, inject, Injectable, InjectionToken} from '@angular/core'; import {Observable} from 'rxjs';  import {HttpBackend, HttpHandler} from './backend'; import {HttpRequest} from './request'; import {HttpEvent} from './response';  /**  * Intercepts and handles an `HttpRequest` or `HttpResponse`.  *  * Most interceptors transform the outgoing request before passing it to the  * next interceptor in the chain, by calling `next.handle(transformedReq)`.  * An interceptor may transform the  * response event stream as well, by applying additional RxJS operators on the stream  * returned by `next.handle()`.  *  * More rarely, an interceptor may handle the request entirely,  * and compose a new event stream instead of invoking `next.handle()`. This is an  * acceptable behavior, but keep in mind that further interceptors will be skipped entirely.  *  * It is also rare but valid for an interceptor to return multiple responses on the  * event stream for a single request.  *  * @publicApi  *  * @see [HTTP Guide](guide/http#intercepting-requests-and-responses)  *  * @usageNotes  *  * To use the same instance of `HttpInterceptors` for the entire app, import the `HttpClientModule`  * only in your `AppModule`, and add the interceptors to the root application injector.  * If you import `HttpClientModule` multiple times across different modules (for example, in lazy  * loading modules), each import creates a new copy of the `HttpClientModule`, which overwrites the  * interceptors provided in the root module.  */ export interface HttpInterceptor {   /**    * Identifies and handles a given HTTP request.    * @param req The outgoing request object to handle.    * @param next The next interceptor in the chain, or the backend    * if no interceptors remain in the chain.    * @returns An observable of the event stream.    */   intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; }  /**  * Represents the next interceptor in an interceptor chain, or the real backend if there are no  * further interceptors.  *  * Most interceptors will delegate to this function, and either modify the outgoing request or the  * response when it arrives. Within the scope of the current request, however, this function may be  * called any number of times, for any number of downstream requests. Such downstream requests need  * not be to the same URL or even the same origin as the current request. It is also valid to not  * call the downstream handler at all, and process the current request entirely within the  * interceptor.  *  * This function should only be called within the scope of the request that's currently being  * intercepted. Once that request is complete, this downstream handler function should not be  * called.  *  * @publicApi  *  * @see [HTTP Guide](guide/http#intercepting-requests-and-responses)  */ export type HttpHandlerFn = (req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>;  /**  * An interceptor for HTTP requests made via `HttpClient`.  *  * `HttpInterceptorFn`s are middleware functions which `HttpClient` calls when a request is made.  * These functions have the opportunity to modify the outgoing request or any response that comes  * back, as well as block, redirect, or otherwise change the request or response semantics.  *  * An `HttpHandlerFn` representing the next interceptor (or the backend which will make a real HTTP  * request) is provided. Most interceptors will delegate to this function, but that is not required  * (see `HttpHandlerFn` for more details).  *  * `HttpInterceptorFn`s have access to `inject()` via the `EnvironmentInjector` from which they were  * configured.  */ export type HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) =>     Observable<HttpEvent<unknown>>;  /**  * Function which invokes an HTTP interceptor chain.  *  * Each interceptor in the interceptor chain is turned into a `ChainedInterceptorFn` which closes  * over the rest of the chain (represented by another `ChainedInterceptorFn`). The last such  * function in the chain will instead delegate to the `finalHandlerFn`, which is passed down when  * the chain is invoked.  *  * This pattern allows for a chain of many interceptors to be composed and wrapped in a single  * `HttpInterceptorFn`, which is a useful abstraction for including different kinds of interceptors  * (e.g. legacy class-based interceptors) in the same chain.  */ type ChainedInterceptorFn<RequestT> = (req: HttpRequest<RequestT>, finalHandlerFn: HttpHandlerFn) =>     Observable<HttpEvent<RequestT>>;  function interceptorChainEndFn(     req: HttpRequest<any>, finalHandlerFn: HttpHandlerFn): Observable<HttpEvent<any>> {   return finalHandlerFn(req); }  /**  * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the  * `ChainedInterceptorFn` interface.  */ function adaptLegacyInterceptorToChain(     chainTailFn: ChainedInterceptorFn<any>,     interceptor: HttpInterceptor): ChainedInterceptorFn<any> {   return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {     handle: (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn),   }); }  /**  * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given  * injector.  */ function chainedInterceptorFn(     chainTailFn: ChainedInterceptorFn<unknown>, interceptorFn: HttpInterceptorFn,     injector: EnvironmentInjector): ChainedInterceptorFn<unknown> {   // clang-format off   return (initialRequest, finalHandlerFn) => injector.runInContext(() =>     interceptorFn(       initialRequest,       downstreamRequest => chainTailFn(downstreamRequest, finalHandlerFn)     )   );   // clang-format on }  /**  * A multi-provider token that represents the array of registered  * `HttpInterceptor` objects.  *  * @publicApi  */ export const HTTP_INTERCEPTORS = new InjectionToken<HttpInterceptor[]>('HTTP_INTERCEPTORS');  /**  * A multi-provided token of `HttpInterceptorFn`s.  */ export const HTTP_INTERCEPTOR_FNS = new InjectionToken<HttpInterceptorFn[]>('HTTP_INTERCEPTOR_FNS');  /**  * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy  * class-based interceptors and runs the request through it.  */ export function legacyInterceptorFnFactory(): HttpInterceptorFn {   let chain: ChainedInterceptorFn<any>|null = null;    return (req, handler) => {     if (chain === null) {       const interceptors = inject(HTTP_INTERCEPTORS, {optional: true}) ?? [];       // Note: interceptors are wrapped right-to-left so that final execution order is       // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to       // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside       // out.       chain = interceptors.reduceRight(           adaptLegacyInterceptorToChain, interceptorChainEndFn as ChainedInterceptorFn<any>);     }      return chain(req, handler);   }; }  @Injectable() export class HttpInterceptorHandler extends HttpHandler {   private chain: ChainedInterceptorFn<unknown>|null = null;    constructor(private backend: HttpBackend, private injector: EnvironmentInjector) {     super();   }    override handle(initialRequest: HttpRequest<any>): Observable<HttpEvent<any>> {     if (this.chain === null) {       const dedupedInterceptorFns = Array.from(new Set(this.injector.get(HTTP_INTERCEPTOR_FNS)));        // Note: interceptors are wrapped right-to-left so that final execution order is       // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to       // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside       // out.       this.chain = dedupedInterceptorFns.reduceRight(           (nextSequencedFn, interceptorFn) =>               chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector),           interceptorChainEndFn as ChainedInterceptorFn<unknown>);     }     return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {EnvironmentInjector, Inject, inject, Injectable} from '@angular/core'; import {Observable, Observer} from 'rxjs';  import {HttpBackend, HttpHandler} from './backend'; import {HttpHandlerFn} from './interceptor'; import {HttpRequest} from './request'; import {HttpErrorResponse, HttpEvent, HttpEventType, HttpResponse, HttpStatusCode} from './response';   // Every request made through JSONP needs a callback name that's unique across the // whole page. Each request is assigned an id and the callback name is constructed // from that. The next id to be assigned is tracked in a global variable here that // is shared among all applications on the page. let nextRequestId: number = 0;  /**  * When a pending <script> is unsubscribed we'll move it to this document, so it won't be  * executed.  */ let foreignDocument: Document|undefined;  // Error text given when a JSONP script is injected, but doesn't invoke the callback // passed in its URL. export const JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';  // Error text given when a request is passed to the JsonpClientBackend that doesn't // have a request method JSONP. export const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.'; export const JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';  // Error text given when a request is passed to the JsonpClientBackend that has // headers set export const JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';  /**  * DI token/abstract type representing a map of JSONP callbacks.  *  * In the browser, this should always be the `window` object.  *  *  */ export abstract class JsonpCallbackContext {   [key: string]: (data: any) => void; }  /**  * Factory function that determines where to store JSONP callbacks.  *  * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist  * in test environments. In that case, callbacks are stored on an anonymous object instead.  *  *  */ export function jsonpCallbackContext(): Object {   if (typeof window === 'object') {     return window;   }   return {}; }  /**  * Processes an `HttpRequest` with the JSONP method,  * by performing JSONP style requests.  * @see `HttpHandler`  * @see `HttpXhrBackend`  *  * @publicApi  */ @Injectable() export class JsonpClientBackend implements HttpBackend {   /**    * A resolved promise that can be used to schedule microtasks in the event handlers.    */   private readonly resolvedPromise = Promise.resolve();    constructor(private callbackMap: JsonpCallbackContext, @Inject(DOCUMENT) private document: any) {}    /**    * Get the name of the next callback method, by incrementing the global `nextRequestId`.    */   private nextCallback(): string {     return `ng_jsonp_callback_${nextRequestId++}`;   }    /**    * Processes a JSONP request and returns an event stream of the results.    * @param req The request object.    * @returns An observable of the response events.    *    */   handle(req: HttpRequest<never>): Observable<HttpEvent<any>> {     // Firstly, check both the method and response type. If either doesn't match     // then the request was improperly routed here and cannot be handled.     if (req.method !== 'JSONP') {       throw new Error(JSONP_ERR_WRONG_METHOD);     } else if (req.responseType !== 'json') {       throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);     }      // Check the request headers. JSONP doesn't support headers and     // cannot set any that were supplied.     if (req.headers.keys().length > 0) {       throw new Error(JSONP_ERR_HEADERS_NOT_SUPPORTED);     }      // Everything else happens inside the Observable boundary.     return new Observable<HttpEvent<any>>((observer: Observer<HttpEvent<any>>) => {       // The first step to make a request is to generate the callback name, and replace the       // callback placeholder in the URL with the name. Care has to be taken here to ensure       // a trailing &, if matched, gets inserted back into the URL in the correct place.       const callback = this.nextCallback();       const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);        // Construct the <script> tag and point it at the URL.       const node = this.document.createElement('script');       node.src = url;        // A JSONP request requires waiting for multiple callbacks. These variables       // are closed over and track state across those callbacks.        // The response object, if one has been received, or null otherwise.       let body: any|null = null;        // Whether the response callback has been called.       let finished: boolean = false;        // Set the response callback in this.callbackMap (which will be the window       // object in the browser. The script being loaded via the <script> tag will       // eventually call this callback.       this.callbackMap[callback] = (data?: any) => {         // Data has been received from the JSONP script. Firstly, delete this callback.         delete this.callbackMap[callback];          // Set state to indicate data was received.         body = data;         finished = true;       };        // cleanup() is a utility closure that removes the <script> from the page and       // the response callback from the window. This logic is used in both the       // success, error, and cancellation paths, so it's extracted out for convenience.       const cleanup = () => {         // Remove the <script> tag if it's still on the page.         if (node.parentNode) {           node.parentNode.removeChild(node);         }          // Remove the response callback from the callbackMap (window object in the         // browser).         delete this.callbackMap[callback];       };        // onLoad() is the success callback which runs after the response callback       // if the JSONP script loads successfully. The event itself is unimportant.       // If something went wrong, onLoad() may run without the response callback       // having been invoked.       const onLoad = (event: Event) => {         // We wrap it in an extra Promise, to ensure the microtask         // is scheduled after the loaded endpoint has executed any potential microtask itself,         // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496         this.resolvedPromise.then(() => {           // Cleanup the page.           cleanup();            // Check whether the response callback has run.           if (!finished) {             // It hasn't, something went wrong with the request. Return an error via             // the Observable error path. All JSONP errors have status 0.             observer.error(new HttpErrorResponse({               url,               status: 0,               statusText: 'JSONP Error',               error: new Error(JSONP_ERR_NO_CALLBACK),             }));             return;           }            // Success. body either contains the response body or null if none was           // returned.           observer.next(new HttpResponse({             body,             status: HttpStatusCode.Ok,             statusText: 'OK',             url,           }));            // Complete the stream, the response is over.           observer.complete();         });       };        // onError() is the error callback, which runs if the script returned generates       // a Javascript error. It emits the error via the Observable error channel as       // a HttpErrorResponse.       const onError: any = (error: Error) => {         cleanup();          // Wrap the error in a HttpErrorResponse.         observer.error(new HttpErrorResponse({           error,           status: 0,           statusText: 'JSONP Error',           url,         }));       };        // Subscribe to both the success (load) and error events on the <script> tag,       // and add it to the page.       node.addEventListener('load', onLoad);       node.addEventListener('error', onError);       this.document.body.appendChild(node);        // The request has now been successfully sent.       observer.next({type: HttpEventType.Sent});        // Cancellation handler.       return () => {         if (!finished) {           this.removeListeners(node);         }          // And finally, clean up the page.         cleanup();       };     });   }    private removeListeners(script: HTMLScriptElement): void {     // Issue #34818     // Changing <script>'s ownerDocument will prevent it from execution.     // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block     if (!foreignDocument) {       foreignDocument = (this.document.implementation as DOMImplementation).createHTMLDocument();     }     foreignDocument.adoptNode(script);   } }  /**  * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.  */ export function jsonpInterceptorFn(     req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>> {   if (req.method === 'JSONP') {     return inject(JsonpClientBackend).handle(req as HttpRequest<never>);   }    // Fall through for normal HTTP requests.   return next(req); }  /**  * Identifies requests with the method JSONP and  * shifts them to the `JsonpClientBackend`.  *  * @see `HttpInterceptor`  *  * @publicApi  */ @Injectable() export class JsonpInterceptor {   constructor(private injector: EnvironmentInjector) {}    /**    * Identifies and handles a given JSONP request.    * @param initialRequest The outgoing request object to handle.    * @param next The next interceptor in the chain, or the backend    * if no interceptors remain in the chain.    * @returns An observable of the event stream.    */   intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {     return this.injector.runInContext(         () => jsonpInterceptorFn(             initialRequest, downstreamRequest => next.handle(downstreamRequest)));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {XhrFactory} from '@angular/common'; import {Injectable} from '@angular/core'; import {Observable, Observer} from 'rxjs';  import {HttpBackend} from './backend'; import {HttpHeaders} from './headers'; import {HttpRequest} from './request'; import {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpJsonParseError, HttpResponse, HttpStatusCode, HttpUploadProgressEvent} from './response';   const XSSI_PREFIX = /^\\)\\]\\}',?\ /;  /**  * Determine an appropriate URL for the response, by checking either  * XMLHttpRequest.responseURL or the X-Request-URL header.  */ function getResponseUrl(xhr: any): string|null {   if ('responseURL' in xhr && xhr.responseURL) {     return xhr.responseURL;   }   if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {     return xhr.getResponseHeader('X-Request-URL');   }   return null; }  /**  * Uses `XMLHttpRequest` to send requests to a backend server.  * @see `HttpHandler`  * @see `JsonpClientBackend`  *  * @publicApi  */ @Injectable() export class HttpXhrBackend implements HttpBackend {   constructor(private xhrFactory: XhrFactory) {}    /**    * Processes a request and returns a stream of response events.    * @param req The request object.    * @returns An observable of the response events.    */   handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {     // Quick check to give a better error message when a user attempts to use     // HttpClient.jsonp() without installing the HttpClientJsonpModule     if (req.method === 'JSONP') {       throw new Error(           `Attempted to construct Jsonp request without HttpClientJsonpModule installed.`);     }      // Everything happens on Observable subscription.     return new Observable((observer: Observer<HttpEvent<any>>) => {       // Start by setting up the XHR object with request method, URL, and withCredentials flag.       const xhr = this.xhrFactory.build();       xhr.open(req.method, req.urlWithParams);       if (!!req.withCredentials) {         xhr.withCredentials = true;       }        // Add all the requested headers.       req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));        // Add an Accept header if one isn't present already.       if (!req.headers.has('Accept')) {         xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');       }        // Auto-detect the Content-Type header if one isn't present already.       if (!req.headers.has('Content-Type')) {         const detectedType = req.detectContentTypeHeader();         // Sometimes Content-Type detection fails.         if (detectedType !== null) {           xhr.setRequestHeader('Content-Type', detectedType);         }       }        // Set the responseType if one was requested.       if (req.responseType) {         const responseType = req.responseType.toLowerCase();          // JSON responses need to be processed as text. This is because if the server         // returns an XSSI-prefixed JSON response, the browser will fail to parse it,         // xhr.response will be null, and xhr.responseText cannot be accessed to         // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON         // is parsed by first requesting text and then applying JSON.parse.         xhr.responseType = ((responseType !== 'json') ? responseType : 'text') as any;       }        // Serialize the request body if one is present. If not, this will be set to null.       const reqBody = req.serializeBody();        // If progress events are enabled, response headers will be delivered       // in two events - the HttpHeaderResponse event and the full HttpResponse       // event. However, since response headers don't change in between these       // two events, it doesn't make sense to parse them twice. So headerResponse       // caches the data extracted from the response whenever it's first parsed,       // to ensure parsing isn't duplicated.       let headerResponse: HttpHeaderResponse|null = null;        // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest       // state, and memoizes it into headerResponse.       const partialFromXhr = (): HttpHeaderResponse => {         if (headerResponse !== null) {           return headerResponse;         }          const statusText = xhr.statusText || 'OK';          // Parse headers from XMLHttpRequest - this step is lazy.         const headers = new HttpHeaders(xhr.getAllResponseHeaders());          // Read the response URL from the XMLHttpResponse instance and fall back on the         // request URL.         const url = getResponseUrl(xhr) || req.url;          // Construct the HttpHeaderResponse and memoize it.         headerResponse = new HttpHeaderResponse({headers, status: xhr.status, statusText, url});         return headerResponse;       };        // Next, a few closures are defined for the various events which XMLHttpRequest can       // emit. This allows them to be unregistered as event listeners later.        // First up is the load event, which represents a response being fully available.       const onLoad = () => {         // Read response state from the memoized partial data.         let {headers, status, statusText, url} = partialFromXhr();          // The body will be read out if present.         let body: any|null = null;          if (status !== HttpStatusCode.NoContent) {           // Use XMLHttpRequest.response if set, responseText otherwise.           body = (typeof xhr.response === 'undefined') ? xhr.responseText : xhr.response;         }          // Normalize another potential bug (this one comes from CORS).         if (status === 0) {           status = !!body ? HttpStatusCode.Ok : 0;         }          // ok determines whether the response will be transmitted on the event or         // error channel. Unsuccessful status codes (not 2xx) will always be errors,         // but a successful status code can still result in an error if the user         // asked for JSON data and the body cannot be parsed as such.         let ok = status >= 200 && status < 300;          // Check whether the body needs to be parsed as JSON (in many cases the browser         // will have done that already).         if (req.responseType === 'json' && typeof body === 'string') {           // Save the original body, before attempting XSSI prefix stripping.           const originalBody = body;           body = body.replace(XSSI_PREFIX, '');           try {             // Attempt the parse. If it fails, a parse error should be delivered to the user.             body = body !== '' ? JSON.parse(body) : null;           } catch (error) {             // Since the JSON.parse failed, it's reasonable to assume this might not have been a             // JSON response. Restore the original body (including any XSSI prefix) to deliver             // a better error response.             body = originalBody;              // If this was an error request to begin with, leave it as a string, it probably             // just isn't JSON. Otherwise, deliver the parsing error to the user.             if (ok) {               // Even though the response status was 2xx, this is still an error.               ok = false;               // The parse error contains the text of the body that failed to parse.               body = {error, text: body} as HttpJsonParseError;             }           }         }          if (ok) {           // A successful response is delivered on the event stream.           observer.next(new HttpResponse({             body,             headers,             status,             statusText,             url: url || undefined,           }));           // The full body has been received and delivered, no further events           // are possible. This request is complete.           observer.complete();         } else {           // An unsuccessful request is delivered on the error channel.           observer.error(new HttpErrorResponse({             // The error in this case is the response body (error from the server).             error: body,             headers,             status,             statusText,             url: url || undefined,           }));         }       };        // The onError callback is called when something goes wrong at the network level.       // Connection timeout, DNS error, offline, etc. These are actual errors, and are       // transmitted on the error channel.       const onError = (error: ProgressEvent) => {         const {url} = partialFromXhr();         const res = new HttpErrorResponse({           error,           status: xhr.status || 0,           statusText: xhr.statusText || 'Unknown Error',           url: url || undefined,         });         observer.error(res);       };        // The sentHeaders flag tracks whether the HttpResponseHeaders event       // has been sent on the stream. This is necessary to track if progress       // is enabled since the event will be sent on only the first download       // progress event.       let sentHeaders = false;        // The download progress event handler, which is only registered if       // progress events are enabled.       const onDownProgress = (event: ProgressEvent) => {         // Send the HttpResponseHeaders event if it hasn't been sent already.         if (!sentHeaders) {           observer.next(partialFromXhr());           sentHeaders = true;         }          // Start building the download progress event to deliver on the response         // event stream.         let progressEvent: HttpDownloadProgressEvent = {           type: HttpEventType.DownloadProgress,           loaded: event.loaded,         };          // Set the total number of bytes in the event if it's available.         if (event.lengthComputable) {           progressEvent.total = event.total;         }          // If the request was for text content and a partial response is         // available on XMLHttpRequest, include it in the progress event         // to allow for streaming reads.         if (req.responseType === 'text' && !!xhr.responseText) {           progressEvent.partialText = xhr.responseText;         }          // Finally, fire the event.         observer.next(progressEvent);       };        // The upload progress event handler, which is only registered if       // progress events are enabled.       const onUpProgress = (event: ProgressEvent) => {         // Upload progress events are simpler. Begin building the progress         // event.         let progress: HttpUploadProgressEvent = {           type: HttpEventType.UploadProgress,           loaded: event.loaded,         };          // If the total number of bytes being uploaded is available, include         // it.         if (event.lengthComputable) {           progress.total = event.total;         }          // Send the event.         observer.next(progress);       };        // By default, register for load and error events.       xhr.addEventListener('load', onLoad);       xhr.addEventListener('error', onError);       xhr.addEventListener('timeout', onError);       xhr.addEventListener('abort', onError);        // Progress events are only enabled if requested.       if (req.reportProgress) {         // Download progress is always enabled if requested.         xhr.addEventListener('progress', onDownProgress);          // Upload progress depends on whether there is a body to upload.         if (reqBody !== null && xhr.upload) {           xhr.upload.addEventListener('progress', onUpProgress);         }       }        // Fire the request, and notify the event stream that it was fired.       xhr.send(reqBody!);       observer.next({type: HttpEventType.Sent});        // This is the return from the Observable function, which is the       // request cancellation handler.       return () => {         // On a cancellation, remove all registered event listeners.         xhr.removeEventListener('error', onError);         xhr.removeEventListener('abort', onError);         xhr.removeEventListener('load', onLoad);         xhr.removeEventListener('timeout', onError);         if (req.reportProgress) {           xhr.removeEventListener('progress', onDownProgress);           if (reqBody !== null && xhr.upload) {             xhr.upload.removeEventListener('progress', onUpProgress);           }         }          // Finally, abort the in-flight request.         if (xhr.readyState !== xhr.DONE) {           xhr.abort();         }       };     });   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵparseCookieValue as parseCookieValue} from '@angular/common'; import {EnvironmentInjector, Inject, inject, Injectable, InjectionToken, PLATFORM_ID} from '@angular/core'; import {Observable} from 'rxjs';  import {HttpHandler} from './backend'; import {HttpHandlerFn, HttpInterceptor} from './interceptor'; import {HttpRequest} from './request'; import {HttpEvent} from './response';  export const XSRF_ENABLED = new InjectionToken<boolean>('XSRF_ENABLED');  export const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN'; export const XSRF_COOKIE_NAME = new InjectionToken<string>('XSRF_COOKIE_NAME', {   providedIn: 'root',   factory: () => XSRF_DEFAULT_COOKIE_NAME, });  export const XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN'; export const XSRF_HEADER_NAME = new InjectionToken<string>('XSRF_HEADER_NAME', {   providedIn: 'root',   factory: () => XSRF_DEFAULT_HEADER_NAME, });  /**  * Retrieves the current XSRF token to use with the next outgoing request.  *  * @publicApi  */ export abstract class HttpXsrfTokenExtractor {   /**    * Get the XSRF token to use with an outgoing request.    *    * Will be called for every request, so the token may change between requests.    */   abstract getToken(): string|null; }  /**  * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.  */ @Injectable() export class HttpXsrfCookieExtractor implements HttpXsrfTokenExtractor {   private lastCookieString: string = '';   private lastToken: string|null = null;    /**    * @internal for testing    */   parseCount: number = 0;    constructor(       @Inject(DOCUMENT) private doc: any, @Inject(PLATFORM_ID) private platform: string,       @Inject(XSRF_COOKIE_NAME) private cookieName: string) {}    getToken(): string|null {     if (this.platform === 'server') {       return null;     }     const cookieString = this.doc.cookie || '';     if (cookieString !== this.lastCookieString) {       this.parseCount++;       this.lastToken = parseCookieValue(cookieString, this.cookieName);       this.lastCookieString = cookieString;     }     return this.lastToken;   } }  export function xsrfInterceptorFn(     req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>> {   const lcUrl = req.url.toLowerCase();   // Skip both non-mutating requests and absolute URLs.   // Non-mutating requests don't require a token, and absolute URLs require special handling   // anyway as the cookie set   // on our origin is not the same as the token expected by another origin.   if (!inject(XSRF_ENABLED) || req.method === 'GET' || req.method === 'HEAD' ||       lcUrl.startsWith('http://') || lcUrl.startsWith('https://')) {     return next(req);   }    const token = inject(HttpXsrfTokenExtractor).getToken();   const headerName = inject(XSRF_HEADER_NAME);    // Be careful not to overwrite an existing header of the same name.   if (token != null && !req.headers.has(headerName)) {     req = req.clone({headers: req.headers.set(headerName, token)});   }   return next(req); }  /**  * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.  */ @Injectable() export class HttpXsrfInterceptor implements HttpInterceptor {   constructor(private injector: EnvironmentInjector) {}    intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {     return this.injector.runInContext(         () =>             xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentProviders, inject, InjectionToken, makeEnvironmentProviders, Provider} from '@angular/core';  import {HttpBackend, HttpHandler} from './backend'; import {HttpClient} from './client'; import {HTTP_INTERCEPTOR_FNS, HttpInterceptorFn, HttpInterceptorHandler, legacyInterceptorFnFactory} from './interceptor'; import {jsonpCallbackContext, JsonpCallbackContext, JsonpClientBackend, jsonpInterceptorFn} from './jsonp'; import {HttpXhrBackend} from './xhr'; import {HttpXsrfCookieExtractor, HttpXsrfTokenExtractor, XSRF_COOKIE_NAME, XSRF_ENABLED, XSRF_HEADER_NAME, xsrfInterceptorFn} from './xsrf';  /**  * Identifies a particular kind of `HttpFeature`.  *  * @publicApi  */ export enum HttpFeatureKind {   Interceptors,   LegacyInterceptors,   CustomXsrfConfiguration,   NoXsrfProtection,   JsonpSupport,   RequestsMadeViaParent, }  /**  * A feature for use when configuring `provideHttpClient`.  *  * @publicApi  */ export interface HttpFeature<KindT extends HttpFeatureKind> {   ɵkind: KindT;   ɵproviders: Provider[]; }  function makeHttpFeature<KindT extends HttpFeatureKind>(     kind: KindT, providers: Provider[]): HttpFeature<KindT> {   return {     ɵkind: kind,     ɵproviders: providers,   }; }  /**  * Configures Angular's `HttpClient` service to be available for injection.  *  * By default, `HttpClient` will be configured for injection with its default options for XSRF  * protection of outgoing requests. Additional configuration options can be provided by passing  * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the  * `withInterceptors(...)` feature.  *  * @see withInterceptors  * @see withInterceptorsFromDi  * @see withXsrfConfiguration  * @see withNoXsrfProtection  * @see withJsonpSupport  * @see withRequestsMadeViaParent  */ export function provideHttpClient(...features: HttpFeature<HttpFeatureKind>[]):     EnvironmentProviders {   if (ngDevMode) {     const featureKinds = new Set(features.map(f => f.ɵkind));     if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) &&         featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {       throw new Error(           ngDevMode ?               `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.` :               '');     }   }    const providers: Provider[] = [     HttpClient,     HttpXhrBackend,     HttpInterceptorHandler,     {provide: HttpHandler, useExisting: HttpInterceptorHandler},     {provide: HttpBackend, useExisting: HttpXhrBackend},     {       provide: HTTP_INTERCEPTOR_FNS,       useValue: xsrfInterceptorFn,       multi: true,     },     {provide: XSRF_ENABLED, useValue: true},     {provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor},   ];    for (const feature of features) {     providers.push(...feature.ɵproviders);   }    return makeEnvironmentProviders(providers); }  /**  * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`  * instance.  *  * @see HttpInterceptorFn  * @see provideHttpClient  * @publicApi  */ export function withInterceptors(interceptorFns: HttpInterceptorFn[]):     HttpFeature<HttpFeatureKind.Interceptors> {   return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map(interceptorFn => {     return {       provide: HTTP_INTERCEPTOR_FNS,       useValue: interceptorFn,       multi: true,     };   })); }  const LEGACY_INTERCEPTOR_FN = new InjectionToken<HttpInterceptorFn>('LEGACY_INTERCEPTOR_FN');  /**  * Includes class-based interceptors configured using a multi-provider in the current injector into  * the configured `HttpClient` instance.  *  * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided  * interceptors may be phased out in a later release.  *  * @see HttpInterceptor  * @see HTTP_INTERCEPTORS  * @see provideHttpClient  */ export function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors> {   // Note: the legacy interceptor function is provided here via an intermediate token   // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are   // included multiple times, all of the multi-provider entries will have the same instance of the   // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy   // interceptors will not run multiple times.   return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [     {       provide: LEGACY_INTERCEPTOR_FN,       useFactory: legacyInterceptorFnFactory,     },     {       provide: HTTP_INTERCEPTOR_FNS,       useExisting: LEGACY_INTERCEPTOR_FN,       multi: true,     }   ]); }  /**  * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.  *  * This feature is incompatible with the `withNoXsrfProtection` feature.  *  * @see provideHttpClient  */ export function withXsrfConfiguration(     {cookieName, headerName}: {cookieName?: string, headerName?: string}):     HttpFeature<HttpFeatureKind.CustomXsrfConfiguration> {   const providers: Provider[] = [];   if (cookieName !== undefined) {     providers.push({provide: XSRF_COOKIE_NAME, useValue: cookieName});   }   if (headerName !== undefined) {     providers.push({provide: XSRF_HEADER_NAME, useValue: headerName});   }    return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers); }  /**  * Disables XSRF protection in the configuration of the current `HttpClient` instance.  *  * This feature is incompatible with the `withXsrfConfiguration` feature.  *  * @see provideHttpClient  */ export function withNoXsrfProtection(): HttpFeature<HttpFeatureKind.NoXsrfProtection> {   return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [     {       provide: XSRF_ENABLED,       useValue: false,     },   ]); }  /**  * Add JSONP support to the configuration of the current `HttpClient` instance.  *  * @see provideHttpClient  */ export function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSupport> {   return makeHttpFeature(HttpFeatureKind.JsonpSupport, [     JsonpClientBackend,     {provide: JsonpCallbackContext, useFactory: jsonpCallbackContext},     {provide: HTTP_INTERCEPTOR_FNS, useValue: jsonpInterceptorFn, multi: true},   ]); }  /**  * Configures the current `HttpClient` instance to make requests via the parent injector's  * `HttpClient` instead of directly.  *  * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent  * instance. For example, even if `HttpClient` is configured in the parent injector with  * one or more interceptors, they will not intercept requests made via this instance.  *  * With this option enabled, once the request has passed through the current injector's  * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of  * dispatched directly, and interceptors in the parent configuration will be applied to the request.  *  * If there are several `HttpClient` instances in the injector hierarchy, it's possible for  * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to  * \"bubble up\" until either reaching the root level or an `HttpClient` which was not configured with  * this option.  *  * @see provideHttpClient  * @developerPreview  */ export function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind.RequestsMadeViaParent> {   return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [     {       provide: HttpBackend,       useFactory: () => {         const handlerFromParent = inject(HttpHandler, {skipSelf: true, optional: true});         if (ngDevMode && handlerFromParent === null) {           throw new Error(               'withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');         }         return handlerFromParent;       },     },   ]); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ModuleWithProviders, NgModule} from '@angular/core';  import {HTTP_INTERCEPTORS} from './interceptor'; import {provideHttpClient, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withXsrfConfiguration} from './provider'; import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor, XSRF_DEFAULT_COOKIE_NAME, XSRF_DEFAULT_HEADER_NAME, XSRF_ENABLED} from './xsrf';  /**  * Configures XSRF protection support for outgoing requests.  *  * For a server that supports a cookie-based XSRF protection system,  * use directly to configure XSRF protection with the correct  * cookie and header names.  *  * If no names are supplied, the default cookie name is `XSRF-TOKEN`  * and the default header name is `X-XSRF-TOKEN`.  *  * @publicApi  */ @NgModule({   providers: [     HttpXsrfInterceptor,     {provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true},     {provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor},     withXsrfConfiguration({       cookieName: XSRF_DEFAULT_COOKIE_NAME,       headerName: XSRF_DEFAULT_HEADER_NAME,     }).ɵproviders,     {provide: XSRF_ENABLED, useValue: true},   ], }) export class HttpClientXsrfModule {   /**    * Disable the default XSRF protection.    */   static disable(): ModuleWithProviders<HttpClientXsrfModule> {     return {       ngModule: HttpClientXsrfModule,       providers: [         withNoXsrfProtection().ɵproviders,       ],     };   }    /**    * Configure XSRF protection.    * @param options An object that can specify either or both    * cookie name or header name.    * - Cookie name default is `XSRF-TOKEN`.    * - Header name default is `X-XSRF-TOKEN`.    *    */   static withOptions(options: {     cookieName?: string,     headerName?: string,   } = {}): ModuleWithProviders<HttpClientXsrfModule> {     return {       ngModule: HttpClientXsrfModule,       providers: withXsrfConfiguration(options).ɵproviders,     };   } }  /**  * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`  * with supporting services for XSRF. Automatically imported by `HttpClientModule`.  *  * You can add interceptors to the chain behind `HttpClient` by binding them to the  * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.  *  * @publicApi  */ @NgModule({   /**    * Configures the [dependency injector](guide/glossary#injector) where it is imported    * with supporting services for HTTP communications.    */   providers: [     provideHttpClient(withInterceptorsFromDi()),   ], }) export class HttpClientModule { }  /**  * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`  * with supporting services for JSONP.  * Without this module, Jsonp requests reach the backend  * with method JSONP, where they are rejected.  *  * @publicApi  */ @NgModule({   providers: [     withJsonpSupport().ɵproviders,   ], }) export class HttpClientJsonpModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {XhrFactory as XhrFactory_fromAngularCommon} from '@angular/common';  /**  * A wrapper around the `XMLHttpRequest` constructor.  *  * @publicApi  * @see `XhrFactory`  * @deprecated  * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.  */ export type XhrFactory = XhrFactory_fromAngularCommon; /**  * A wrapper around the `XMLHttpRequest` constructor.  *  * @publicApi  * @see `XhrFactory`  * @deprecated  * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.  */ export const XhrFactory = XhrFactory_fromAngularCommon;  export {HttpBackend, HttpHandler} from './src/backend'; export {HttpClient} from './src/client'; export {HttpContext, HttpContextToken} from './src/context'; export {HttpHeaders} from './src/headers'; export {HTTP_INTERCEPTORS, HttpInterceptor, HttpInterceptorHandler as ɵHttpInterceptorHandler, HttpInterceptorFn, HttpHandlerFn} from './src/interceptor'; export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp'; export {HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule} from './src/module'; export {HttpParameterCodec, HttpParams, HttpParamsOptions, HttpUrlEncodingCodec} from './src/params'; export {HttpFeature, HttpFeatureKind, provideHttpClient, withJsonpSupport, withNoXsrfProtection, withXsrfConfiguration, withInterceptors, withInterceptorsFromDi, withRequestsMadeViaParent} from './src/provider'; export {HttpRequest} from './src/request'; export {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUserEvent} from './src/response'; export {HttpXhrBackend} from './src/xhr'; export {HttpXsrfTokenExtractor} from './src/xsrf';  // This re-export exists because g3 depends on this old private name. export {HttpInterceptorHandler as ɵHttpInterceptingHandler} from './src/interceptor'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["i1.HttpHandler","i1.HttpBackend","parseCookieValue","XhrFactory_fromAngularCommon"],"mappings":";;;;;;;;;;;;;AAaA;;;;;;;;;;;AAWG;MACmB,WAAW,CAAA;AAEhC,CAAA;AAED;;;;;;;;;AASG;MACmB,WAAW,CAAA;AAEhC;;AC3BD;;;;;;AAMG;MACU,WAAW,CAAA;;AA0BtB,IAAA,WAAA,CAAY,OAAoD,EAAA;AAlBhE;;;AAGG;AACK,QAAA,IAAA,CAAA,eAAe,GAAwB,IAAI,GAAG,EAAE,CAAC;AAOzD;;AAEG;QACK,IAAU,CAAA,UAAA,GAAkB,IAAI,CAAC;QAKvC,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAoB,CAAC;AAC5C,SAAA;AAAM,aAAA,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;AACtC,YAAA,IAAI,CA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qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;8HAArB,qBAAqB,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAJrB,SAAA,EAAA;QACT,gBAAgB,EAAE,CAAC,UAAU;AAC9B,KAAA,EAAA,CAAA,CAAA;sGAEU,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;wBACT,gBAAgB,EAAE,CAAC,UAAU;AAC9B,qBAAA;AACF,iBAAA,CAAA;;;ACpFD;;;;;;;AAOG;AACI,MAAM,UAAU,GAAGC;;ACnB1B;;ACRA;;AAEG;;;;"}
-------------------- SECTION 34 --------------------
{"version":3,"file":"http.mjs","sources":["../../../../../../packages/common/http/src/backend.ts","../../../../../../packages/common/http/src/headers.ts","../../../../../../packages/common/http/src/params.ts","../../../../../../packages/common/http/src/context.ts","../../../../../../packages/common/http/src/request.ts","../../../../../../packages/common/http/src/response.ts","../../../../../../packages/common/http/src/client.ts","../../../../../../packages/common/http/src/interceptor.ts","../../../../../../packages/common/http/src/jsonp.ts","../../../../../../packages/common/http/src/xhr.ts","../../../../../../packages/common/http/src/xsrf.ts","../../../../../../packages/common/http/src/provider.ts","../../../../../../packages/common/http/src/module.ts","../../../../../../packages/common/http/public_api.ts","../../../../../../packages/common/http/index.ts","../../../../../../packages/common/http/http.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Observable} from 'rxjs';  import {HttpRequest} from './request'; import {HttpEvent} from './response';  /**  * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a  * `HttpResponse`.  *  * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the  * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the  * `HttpBackend`.  *  * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.  *  * @publicApi  */ export abstract class HttpHandler {   abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>; }  /**  * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.  *  * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.  *  * When injected, `HttpBackend` dispatches requests directly to the backend, without going  * through the interceptor chain.  *  * @publicApi  */ export abstract class HttpBackend implements HttpHandler {   abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  interface Update {   name: string;   value?: string|string[];   op: 'a'|'s'|'d'; }  /**  * Represents the header configuration options for an HTTP request.  * Instances are immutable. Modifying methods return a cloned  * instance with the change. The original object is never changed.  *  * @publicApi  */ export class HttpHeaders {   /**    * Internal map of lowercase header names to values.    */   // TODO(issue/24571): remove '!'.   private headers!: Map<string, string[]>;     /**    * Internal map of lowercased header names to the normalized    * form of the name (the form seen first).    */   private normalizedNames: Map<string, string> = new Map();    /**    * Complete the lazy initialization of this object (needed before reading).    */   private lazyInit!: HttpHeaders|Function|null;    /**    * Queued updates to be materialized the next initialization.    */   private lazyUpdate: Update[]|null = null;    /**  Constructs a new HTTP header object with the given values.*/    constructor(headers?: string|{[name: string]: string | string[]}) {     if (!headers) {       this.headers = new Map<string, string[]>();     } else if (typeof headers === 'string') {       this.lazyInit = () => {         this.headers = new Map<string, string[]>();         headers.split('\ ').forEach(line => {           const index = line.indexOf(':');           if (index > 0) {             const name = line.slice(0, index);             const key = name.toLowerCase();             const value = line.slice(index + 1).trim();             this.maybeSetNormalizedName(name, key);             if (this.headers.has(key)) {               this.headers.get(key)!.push(value);             } else {               this.headers.set(key, [value]);             }           }         });       };     } else {       this.lazyInit = () => {         if (typeof ngDevMode === 'undefined' || ngDevMode) {           assertValidHeaders(headers);         }         this.headers = new Map<string, string[]>();         Object.keys(headers).forEach(name => {           let values: string|string[] = headers[name];           const key = name.toLowerCase();           if (typeof values === 'string') {             values = [values];           }           if (values.length > 0) {             this.headers.set(key, values);             this.maybeSetNormalizedName(name, key);           }         });       };     }   }    /**    * Checks for existence of a given header.    *    * @param name The header name to check for existence.    *    * @returns True if the header exists, false otherwise.    */   has(name: string): boolean {     this.init();      return this.headers.has(name.toLowerCase());   }    /**    * Retrieves the first value of a given header.    *    * @param name The header name.    *    * @returns The value string if the header exists, null otherwise    */   get(name: string): string|null {     this.init();      const values = this.headers.get(name.toLowerCase());     return values && values.length > 0 ? values[0] : null;   }    /**    * Retrieves the names of the headers.    *    * @returns A list of header names.    */   keys(): string[] {     this.init();      return Array.from(this.normalizedNames.values());   }    /**    * Retrieves a list of values for a given header.    *    * @param name The header name from which to retrieve values.    *    * @returns A string of values if the header exists, null otherwise.    */   getAll(name: string): string[]|null {     this.init();      return this.headers.get(name.toLowerCase()) || null;   }    /**    * Appends a new value to the existing set of values for a header    * and returns them in a clone of the original instance.    *    * @param name The header name for which to append the values.    * @param value The value to append.    *    * @returns A clone of the HTTP headers object with the value appended to the given header.    */    append(name: string, value: string|string[]): HttpHeaders {     return this.clone({name, value, op: 'a'});   }   /**    * Sets or modifies a value for a given header in a clone of the original instance.    * If the header already exists, its value is replaced with the given value    * in the returned object.    *    * @param name The header name.    * @param value The value or values to set or override for the given header.    *    * @returns A clone of the HTTP headers object with the newly set header value.    */   set(name: string, value: string|string[]): HttpHeaders {     return this.clone({name, value, op: 's'});   }   /**    * Deletes values for a given header in a clone of the original instance.    *    * @param name The header name.    * @param value The value or values to delete for the given header.    *    * @returns A clone of the HTTP headers object with the given value deleted.    */   delete(name: string, value?: string|string[]): HttpHeaders {     return this.clone({name, value, op: 'd'});   }    private maybeSetNormalizedName(name: string, lcName: string): void {     if (!this.normalizedNames.has(lcName)) {       this.normalizedNames.set(lcName, name);     }   }    private init(): void {     if (!!this.lazyInit) {       if (this.lazyInit instanceof HttpHeaders) {         this.copyFrom(this.lazyInit);       } else {         this.lazyInit();       }       this.lazyInit = null;       if (!!this.lazyUpdate) {         this.lazyUpdate.forEach(update => this.applyUpdate(update));         this.lazyUpdate = null;       }     }   }    private copyFrom(other: HttpHeaders) {     other.init();     Array.from(other.headers.keys()).forEach(key => {       this.headers.set(key, other.headers.get(key)!);       this.normalizedNames.set(key, other.normalizedNames.get(key)!);     });   }    private clone(update: Update): HttpHeaders {     const clone = new HttpHeaders();     clone.lazyInit =         (!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this;     clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);     return clone;   }    private applyUpdate(update: Update): void {     const key = update.name.toLowerCase();     switch (update.op) {       case 'a':       case 's':         let value = update.value!;         if (typeof value === 'string') {           value = [value];         }         if (value.length === 0) {           return;         }         this.maybeSetNormalizedName(update.name, key);         const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];         base.push(...value);         this.headers.set(key, base);         break;       case 'd':         const toDelete = update.value as string | undefined;         if (!toDelete) {           this.headers.delete(key);           this.normalizedNames.delete(key);         } else {           let existing = this.headers.get(key);           if (!existing) {             return;           }           existing = existing.filter(value => toDelete.indexOf(value) === -1);           if (existing.length === 0) {             this.headers.delete(key);             this.normalizedNames.delete(key);           } else {             this.headers.set(key, existing);           }         }         break;     }   }    /**    * @internal    */   forEach(fn: (name: string, values: string[]) => void) {     this.init();     Array.from(this.normalizedNames.keys())         .forEach(key => fn(this.normalizedNames.get(key)!, this.headers.get(key)!));   } }  /**  * Verifies that the headers object has the right shape: the values  * must be either strings or arrays. Throws an error if an invalid  * header value is present.  */ function assertValidHeaders(headers: Record<string, unknown>):     asserts headers is Record<string, string|string[]> {   for (const [key, value] of Object.entries(headers)) {     if (typeof value !== 'string' && !Array.isArray(value)) {       throw new Error(           `Unexpected value of the \\`${key}\\` header provided. ` +           `Expecting either a string or an array, but got: \\`${value}\\`.`);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A codec for encoding and decoding parameters in URLs.  *  * Used by `HttpParams`.  *  * @publicApi  **/ export interface HttpParameterCodec {   encodeKey(key: string): string;   encodeValue(value: string): string;    decodeKey(key: string): string;   decodeValue(value: string): string; }  /**  * Provides encoding and decoding of URL parameter and query-string values.  *  * Serializes and parses URL parameter keys and values to encode and decode them.  * If you pass URL query parameters without encoding,  * the query parameters can be misinterpreted at the receiving end.  *  *  * @publicApi  */ export class HttpUrlEncodingCodec implements HttpParameterCodec {   /**    * Encodes a key name for a URL parameter or query-string.    * @param key The key name.    * @returns The encoded key name.    */   encodeKey(key: string): string {     return standardEncoding(key);   }    /**    * Encodes the value of a URL parameter or query-string.    * @param value The value.    * @returns The encoded value.    */   encodeValue(value: string): string {     return standardEncoding(value);   }    /**    * Decodes an encoded URL parameter or query-string key.    * @param key The encoded key name.    * @returns The decoded key name.    */   decodeKey(key: string): string {     return decodeURIComponent(key);   }    /**    * Decodes an encoded URL parameter or query-string value.    * @param value The encoded value.    * @returns The decoded value.    */   decodeValue(value: string) {     return decodeURIComponent(value);   } }   function paramParser(rawParams: string, codec: HttpParameterCodec): Map<string, string[]> {   const map = new Map<string, string[]>();   if (rawParams.length > 0) {     // The `window.location.search` can be used while creating an instance of the `HttpParams` class     // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`     // may start with the `?` char, so we strip it if it's present.     const params: string[] = rawParams.replace(/^\\?/, '').split('&');     params.forEach((param: string) => {       const eqIdx = param.indexOf('=');       const [key, val]: string[] = eqIdx == -1 ?           [codec.decodeKey(param), ''] :           [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];       const list = map.get(key) || [];       list.push(val);       map.set(key, list);     });   }   return map; }  /**  * Encode input string with standard encodeURIComponent and then un-encode specific characters.  */ const STANDARD_ENCODING_REGEX = /%(\\d[a-f0-9])/gi; const STANDARD_ENCODING_REPLACEMENTS: {[x: string]: string} = {   '40': '@',   '3A': ':',   '24': '$',   '2C': ',',   '3B': ';',   '3D': '=',   '3F': '?',   '2F': '/', };  function standardEncoding(v: string): string {   return encodeURIComponent(v).replace(       STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s); }  function valueToString(value: string|number|boolean): string {   return `${value}`; }  interface Update {   param: string;   value?: string|number|boolean;   op: 'a'|'d'|'s'; }  /**  * Options used to construct an `HttpParams` instance.  *  * @publicApi  */ export interface HttpParamsOptions {   /**    * String representation of the HTTP parameters in URL-query-string format.    * Mutually exclusive with `fromObject`.    */   fromString?: string;    /** Object map of the HTTP parameters. Mutually exclusive with `fromString`. */   fromObject?: {[param: string]: string|number|boolean|ReadonlyArray<string|number|boolean>};    /** Encoding codec used to parse and serialize the parameters. */   encoder?: HttpParameterCodec; }  /**  * An HTTP request/response body that represents serialized parameters,  * per the MIME type `application/x-www-form-urlencoded`.  *  * This class is immutable; all mutation operations return a new instance.  *  * @publicApi  */ export class HttpParams {   private map: Map<string, string[]>|null;   private encoder: HttpParameterCodec;   private updates: Update[]|null = null;   private cloneFrom: HttpParams|null = null;    constructor(options: HttpParamsOptions = {} as HttpParamsOptions) {     this.encoder = options.encoder || new HttpUrlEncodingCodec();     if (!!options.fromString) {       if (!!options.fromObject) {         throw new Error(`Cannot specify both fromString and fromObject.`);       }       this.map = paramParser(options.fromString, this.encoder);     } else if (!!options.fromObject) {       this.map = new Map<string, string[]>();       Object.keys(options.fromObject).forEach(key => {         const value = (options.fromObject as any)[key];         // convert the values to strings         const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];         this.map!.set(key, values);       });     } else {       this.map = null;     }   }    /**    * Reports whether the body includes one or more values for a given parameter.    * @param param The parameter name.    * @returns True if the parameter has one or more values,    * false if it has no value or is not present.    */   has(param: string): boolean {     this.init();     return this.map!.has(param);   }    /**    * Retrieves the first value for a parameter.    * @param param The parameter name.    * @returns The first value of the given parameter,    * or `null` if the parameter is not present.    */   get(param: string): string|null {     this.init();     const res = this.map!.get(param);     return !!res ? res[0] : null;   }    /**    * Retrieves all values for a  parameter.    * @param param The parameter name.    * @returns All values in a string array,    * or `null` if the parameter not present.    */   getAll(param: string): string[]|null {     this.init();     return this.map!.get(param) || null;   }    /**    * Retrieves all the parameters for this body.    * @returns The parameter names in a string array.    */   keys(): string[] {     this.init();     return Array.from(this.map!.keys());   }    /**    * Appends a new value to existing values for a parameter.    * @param param The parameter name.    * @param value The new value to add.    * @return A new body with the appended value.    */   append(param: string, value: string|number|boolean): HttpParams {     return this.clone({param, value, op: 'a'});   }    /**    * Constructs a new body with appended values for the given parameter name.    * @param params parameters and values    * @return A new body with the new value.    */   appendAll(params: {[param: string]: string|number|boolean|ReadonlyArray<string|number|boolean>}):       HttpParams {     const updates: Update[] = [];     Object.keys(params).forEach(param => {       const value = params[param];       if (Array.isArray(value)) {         value.forEach(_value => {           updates.push({param, value: _value, op: 'a'});         });       } else {         updates.push({param, value: value as (string | number | boolean), op: 'a'});       }     });     return this.clone(updates);   }    /**    * Replaces the value for a parameter.    * @param param The parameter name.    * @param value The new value.    * @return A new body with the new value.    */   set(param: string, value: string|number|boolean): HttpParams {     return this.clone({param, value, op: 's'});   }    /**    * Removes a given value or all values from a parameter.    * @param param The parameter name.    * @param value The value to remove, if provided.    * @return A new body with the given value removed, or with all values    * removed if no value is specified.    */   delete(param: string, value?: string|number|boolean): HttpParams {     return this.clone({param, value, op: 'd'});   }    /**    * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are    * separated by `&`s.    */   toString(): string {     this.init();     return this.keys()         .map(key => {           const eKey = this.encoder.encodeKey(key);           // `a: ['1']` produces `'a=1'`           // `b: []` produces `''`           // `c: ['1', '2']` produces `'c=1&c=2'`           return this.map!.get(key)!.map(value => eKey + '=' + this.encoder.encodeValue(value))               .join('&');         })         // filter out empty values because `b: []` produces `''`         // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't         .filter(param => param !== '')         .join('&');   }    private clone(update: Update|Update[]): HttpParams {     const clone = new HttpParams({encoder: this.encoder} as HttpParamsOptions);     clone.cloneFrom = this.cloneFrom || this;     clone.updates = (this.updates || []).concat(update);     return clone;   }    private init() {     if (this.map === null) {       this.map = new Map<string, string[]>();     }     if (this.cloneFrom !== null) {       this.cloneFrom.init();       this.cloneFrom.keys().forEach(key => this.map!.set(key, this.cloneFrom!.map!.get(key)!));       this.updates!.forEach(update => {         switch (update.op) {           case 'a':           case 's':             const base = (update.op === 'a' ? this.map!.get(update.param) : undefined) || [];             base.push(valueToString(update.value!));             this.map!.set(update.param, base);             break;           case 'd':             if (update.value !== undefined) {               let base = this.map!.get(update.param) || [];               const idx = base.indexOf(valueToString(update.value));               if (idx !== -1) {                 base.splice(idx, 1);               }               if (base.length > 0) {                 this.map!.set(update.param, base);               } else {                 this.map!.delete(update.param);               }             } else {               this.map!.delete(update.param);               break;             }         }       });       this.cloneFrom = this.updates = null;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A token used to manipulate and access values stored in `HttpContext`.  *  * @publicApi  */ export class HttpContextToken<T> {   constructor(public readonly defaultValue: () => T) {} }  /**  * Http context stores arbitrary user defined values and ensures type safety without  * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.  *  * This context is mutable and is shared between cloned requests unless explicitly specified.  *  * @usageNotes  *  * ### Usage Example  *  * ```typescript  * // inside cache.interceptors.ts  * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);  *  * export class CacheInterceptor implements HttpInterceptor {  *  *   intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {  *     if (req.context.get(IS_CACHE_ENABLED) === true) {  *       return ...;  *     }  *     return delegate.handle(req);  *   }  * }  *  * // inside a service  *  * this.httpClient.get('/api/weather', {  *   context: new HttpContext().set(IS_CACHE_ENABLED, true)  * }).subscribe(...);  * ```  *  * @publicApi  */ export class HttpContext {   private readonly map = new Map<HttpContextToken<unknown>, unknown>();    /**    * Store a value in the context. If a value is already present it will be overwritten.    *    * @param token The reference to an instance of `HttpContextToken`.    * @param value The value to store.    *    * @returns A reference to itself for easy chaining.    */   set<T>(token: HttpContextToken<T>, value: T): HttpContext {     this.map.set(token, value);     return this;   }    /**    * Retrieve the value associated with the given token.    *    * @param token The reference to an instance of `HttpContextToken`.    *    * @returns The stored value or default if one is defined.    */   get<T>(token: HttpContextToken<T>): T {     if (!this.map.has(token)) {       this.map.set(token, token.defaultValue());     }     return this.map.get(token) as T;   }    /**    * Delete the value associated with the given token.    *    * @param token The reference to an instance of `HttpContextToken`.    *    * @returns A reference to itself for easy chaining.    */   delete(token: HttpContextToken<unknown>): HttpContext {     this.map.delete(token);     return this;   }    /**    * Checks for existence of a given token.    *    * @param token The reference to an instance of `HttpContextToken`.    *    * @returns True if the token exists, false otherwise.    */   has(token: HttpContextToken<unknown>): boolean {     return this.map.has(token);   }    /**    * @returns a list of tokens currently stored in the context.    */   keys(): IterableIterator<HttpContextToken<unknown>> {     return this.map.keys();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpContext} from './context'; import {HttpHeaders} from './headers'; import {HttpParams} from './params';   /**  * Construction interface for `HttpRequest`s.  *  * All values are optional and will override default values if provided.  */ interface HttpRequestInit {   headers?: HttpHeaders;   context?: HttpContext;   reportProgress?: boolean;   params?: HttpParams;   responseType?: 'arraybuffer'|'blob'|'json'|'text';   withCredentials?: boolean; }  /**  * Determine whether the given HTTP method may include a body.  */ function mightHaveBody(method: string): boolean {   switch (method) {     case 'DELETE':     case 'GET':     case 'HEAD':     case 'OPTIONS':     case 'JSONP':       return false;     default:       return true;   } }  /**  * Safely assert whether the given value is an ArrayBuffer.  *  * In some execution environments ArrayBuffer is not defined.  */ function isArrayBuffer(value: any): value is ArrayBuffer {   return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer; }  /**  * Safely assert whether the given value is a Blob.  *  * In some execution environments Blob is not defined.  */ function isBlob(value: any): value is Blob {   return typeof Blob !== 'undefined' && value instanceof Blob; }  /**  * Safely assert whether the given value is a FormData instance.  *  * In some execution environments FormData is not defined.  */ function isFormData(value: any): value is FormData {   return typeof FormData !== 'undefined' && value instanceof FormData; }  /**  * Safely assert whether the given value is a URLSearchParams instance.  *  * In some execution environments URLSearchParams is not defined.  */ function isUrlSearchParams(value: any): value is URLSearchParams {   return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams; }  /**  * An outgoing HTTP request with an optional typed body.  *  * `HttpRequest` represents an outgoing request, including URL, method,  * headers, body, and other request configuration options. Instances should be  * assumed to be immutable. To modify a `HttpRequest`, the `clone`  * method should be used.  *  * @publicApi  */ export class HttpRequest<T> {   /**    * The request body, or `null` if one isn't set.    *    * Bodies are not enforced to be immutable, as they can include a reference to any    * user-defined data type. However, interceptors should take care to preserve    * idempotence by treating them as such.    */   readonly body: T|null = null;    /**    * Outgoing headers for this request.    */   // TODO(issue/24571): remove '!'.   readonly headers!: HttpHeaders;    /**    * Shared and mutable context that can be used by interceptors    */   readonly context!: HttpContext;    /**    * Whether this request should be made in a way that exposes progress events.    *    * Progress events are expensive (change detection runs on each event) and so    * they should only be requested if the consumer intends to monitor them.    */   readonly reportProgress: boolean = false;    /**    * Whether this request should be sent with outgoing credentials (cookies).    */   readonly withCredentials: boolean = false;    /**    * The expected response type of the server.    *    * This is used to parse the response appropriately before returning it to    * the requestee.    */   readonly responseType: 'arraybuffer'|'blob'|'json'|'text' = 'json';    /**    * The outgoing HTTP request method.    */   readonly method: string;    /**    * Outgoing URL parameters.    *    * To pass a string representation of HTTP parameters in the URL-query-string format,    * the `HttpParamsOptions`' `fromString` may be used. For example:    *    * ```    * new HttpParams({fromString: 'angular=awesome'})    * ```    */   // TODO(issue/24571): remove '!'.   readonly params!: HttpParams;    /**    * The outgoing URL with all URL parameters set.    */   readonly urlWithParams: string;    constructor(method: 'DELETE'|'GET'|'HEAD'|'JSONP'|'OPTIONS', url: string, init?: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   });   constructor(method: 'POST'|'PUT'|'PATCH', url: string, body: T|null, init?: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   });   constructor(method: string, url: string, body: T|null, init?: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   });   constructor(       method: string, readonly url: string, third?: T|{         headers?: HttpHeaders,         context?: HttpContext,         reportProgress?: boolean,         params?: HttpParams,         responseType?: 'arraybuffer'|'blob'|'json'|'text',         withCredentials?: boolean,       }|null,       fourth?: {         headers?: HttpHeaders,         context?: HttpContext,         reportProgress?: boolean,         params?: HttpParams,         responseType?: 'arraybuffer'|'blob'|'json'|'text',         withCredentials?: boolean,       }) {     this.method = method.toUpperCase();     // Next, need to figure out which argument holds the HttpRequestInit     // options, if any.     let options: HttpRequestInit|undefined;      // Check whether a body argument is expected. The only valid way to omit     // the body argument is to use a known no-body method like GET.     if (mightHaveBody(this.method) || !!fourth) {       // Body is the third argument, options are the fourth.       this.body = (third !== undefined) ? third as T : null;       options = fourth;     } else {       // No body required, options are the third argument. The body stays null.       options = third as HttpRequestInit;     }      // If options have been passed, interpret them.     if (options) {       // Normalize reportProgress and withCredentials.       this.reportProgress = !!options.reportProgress;       this.withCredentials = !!options.withCredentials;        // Override default response type of 'json' if one is provided.       if (!!options.responseType) {         this.responseType = options.responseType;       }        // Override headers if they're provided.       if (!!options.headers) {         this.headers = options.headers;       }        if (!!options.context) {         this.context = options.context;       }        if (!!options.params) {         this.params = options.params;       }     }      // If no headers have been passed in, construct a new HttpHeaders instance.     if (!this.headers) {       this.headers = new HttpHeaders();     }      // If no context have been passed in, construct a new HttpContext instance.     if (!this.context) {       this.context = new HttpContext();     }      // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.     if (!this.params) {       this.params = new HttpParams();       this.urlWithParams = url;     } else {       // Encode the parameters to a string in preparation for inclusion in the URL.       const params = this.params.toString();       if (params.length === 0) {         // No parameters, the visible URL is just the URL given at creation time.         this.urlWithParams = url;       } else {         // Does the URL already have query parameters? Look for '?'.         const qIdx = url.indexOf('?');         // There are 3 cases to handle:         // 1) No existing parameters -> append '?' followed by params.         // 2) '?' exists and is followed by existing query string ->         //    append '&' followed by params.         // 3) '?' exists at the end of the url -> append params directly.         // This basically amounts to determining the character, if any, with         // which to join the URL and parameters.         const sep: string = qIdx === -1 ? '?' : (qIdx < url.length - 1 ? '&' : '');         this.urlWithParams = url + sep + params;       }     }   }    /**    * Transform the free-form body into a serialized format suitable for    * transmission to the server.    */   serializeBody(): ArrayBuffer|Blob|FormData|string|null {     // If no body is present, no need to serialize it.     if (this.body === null) {       return null;     }     // Check whether the body is already in a serialized form. If so,     // it can just be returned directly.     if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) ||         isUrlSearchParams(this.body) || typeof this.body === 'string') {       return this.body;     }     // Check whether the body is an instance of HttpUrlEncodedParams.     if (this.body instanceof HttpParams) {       return this.body.toString();     }     // Check whether the body is an object or array, and serialize with JSON if so.     if (typeof this.body === 'object' || typeof this.body === 'boolean' ||         Array.isArray(this.body)) {       return JSON.stringify(this.body);     }     // Fall back on toString() for everything else.     return (this.body as any).toString();   }    /**    * Examine the body and attempt to infer an appropriate MIME type    * for it.    *    * If no such type can be inferred, this method will return `null`.    */   detectContentTypeHeader(): string|null {     // An empty body has no content type.     if (this.body === null) {       return null;     }     // FormData bodies rely on the browser's content type assignment.     if (isFormData(this.body)) {       return null;     }     // Blobs usually have their own content type. If it doesn't, then     // no type can be inferred.     if (isBlob(this.body)) {       return this.body.type || null;     }     // Array buffers have unknown contents and thus no type can be inferred.     if (isArrayBuffer(this.body)) {       return null;     }     // Technically, strings could be a form of JSON data, but it's safe enough     // to assume they're plain strings.     if (typeof this.body === 'string') {       return 'text/plain';     }     // `HttpUrlEncodedParams` has its own content-type.     if (this.body instanceof HttpParams) {       return 'application/x-www-form-urlencoded;charset=UTF-8';     }     // Arrays, objects, boolean and numbers will be encoded as JSON.     if (typeof this.body === 'object' || typeof this.body === 'number' ||         typeof this.body === 'boolean') {       return 'application/json';     }     // No type could be inferred.     return null;   }    clone(): HttpRequest<T>;   clone(update: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: T|null,     method?: string,     url?: string,     setHeaders?: {[name: string]: string|string[]},     setParams?: {[param: string]: string},   }): HttpRequest<T>;   clone<V>(update: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: V|null,     method?: string,     url?: string,     setHeaders?: {[name: string]: string|string[]},     setParams?: {[param: string]: string},   }): HttpRequest<V>;   clone(update: {     headers?: HttpHeaders,     context?: HttpContext,     reportProgress?: boolean,     params?: HttpParams,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: any|null,     method?: string,     url?: string,     setHeaders?: {[name: string]: string|string[]},     setParams?: {[param: string]: string};   } = {}): HttpRequest<any> {     // For method, url, and responseType, take the current value unless     // it is overridden in the update hash.     const method = update.method || this.method;     const url = update.url || this.url;     const responseType = update.responseType || this.responseType;      // The body is somewhat special - a `null` value in update.body means     // whatever current body is present is being overridden with an empty     // body, whereas an `undefined` value in update.body implies no     // override.     const body = (update.body !== undefined) ? update.body : this.body;      // Carefully handle the boolean options to differentiate between     // `false` and `undefined` in the update args.     const withCredentials =         (update.withCredentials !== undefined) ? update.withCredentials : this.withCredentials;     const reportProgress =         (update.reportProgress !== undefined) ? update.reportProgress : this.reportProgress;      // Headers and params may be appended to if `setHeaders` or     // `setParams` are used.     let headers = update.headers || this.headers;     let params = update.params || this.params;      // Pass on context if needed     const context = update.context ?? this.context;      // Check whether the caller has asked to add headers.     if (update.setHeaders !== undefined) {       // Set every requested header.       headers =           Object.keys(update.setHeaders)               .reduce((headers, name) => headers.set(name, update.setHeaders![name]), headers);     }      // Check whether the caller has asked to set params.     if (update.setParams) {       // Set every requested param.       params = Object.keys(update.setParams)                    .reduce((params, param) => params.set(param, update.setParams![param]), params);     }      // Finally, construct the new HttpRequest using the pieces from above.     return new HttpRequest(method, url, body, {       params,       headers,       context,       reportProgress,       responseType,       withCredentials,     });   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HttpHeaders} from './headers';  /**  * Type enumeration for the different kinds of `HttpEvent`.  *  * @publicApi  */ export enum HttpEventType {   /**    * The request was sent out over the wire.    */   Sent,    /**    * An upload progress event was received.    */   UploadProgress,    /**    * The response status code and headers were received.    */   ResponseHeader,    /**    * A download progress event was received.    */   DownloadProgress,    /**    * The full response including the body was received.    */   Response,    /**    * A custom event from an interceptor or a backend.    */   User, }  /**  * Base interface for progress events.  *  * @publicApi  */ export interface HttpProgressEvent {   /**    * Progress event type is either upload or download.    */   type: HttpEventType.DownloadProgress|HttpEventType.UploadProgress;    /**    * Number of bytes uploaded or downloaded.    */   loaded: number;    /**    * Total number of bytes to upload or download. Depending on the request or    * response, this may not be computable and thus may not be present.    */   total?: number; }  /**  * A download progress event.  *  * @publicApi  */ export interface HttpDownloadProgressEvent extends HttpProgressEvent {   type: HttpEventType.DownloadProgress;    /**    * The partial response body as downloaded so far.    *    * Only present if the responseType was `text`.    */   partialText?: string; }  /**  * An upload progress event.  *  * @publicApi  */ export interface HttpUploadProgressEvent extends HttpProgressEvent {   type: HttpEventType.UploadProgress; }  /**  * An event indicating that the request was sent to the server. Useful  * when a request may be retried multiple times, to distinguish between  * retries on the final event stream.  *  * @publicApi  */ export interface HttpSentEvent {   type: HttpEventType.Sent; }  /**  * A user-defined event.  *  * Grouping all custom events under this type ensures they will be handled  * and forwarded by all implementations of interceptors.  *  * @publicApi  */ export interface HttpUserEvent<T> {   type: HttpEventType.User; }  /**  * An error that represents a failed attempt to JSON.parse text coming back  * from the server.  *  * It bundles the Error object with the actual response body that failed to parse.  *  *  */ export interface HttpJsonParseError {   error: Error;   text: string; }  /**  * Union type for all possible events on the response stream.  *  * Typed according to the expected type of the response.  *  * @publicApi  */ export type HttpEvent<T> =     HttpSentEvent|HttpHeaderResponse|HttpResponse<T>|HttpProgressEvent|HttpUserEvent<T>;  /**  * Base class for both `HttpResponse` and `HttpHeaderResponse`.  *  * @publicApi  */ export abstract class HttpResponseBase {   /**    * All response headers.    */   readonly headers: HttpHeaders;    /**    * Response status code.    */   readonly status: number;    /**    * Textual description of response status code, defaults to OK.    *    * Do not depend on this.    */   readonly statusText: string;    /**    * URL of the resource retrieved, or null if not available.    */   readonly url: string|null;    /**    * Whether the status code falls in the 2xx range.    */   readonly ok: boolean;    /**    * Type of the response, narrowed to either the full response or the header.    */   // TODO(issue/24571): remove '!'.   readonly type!: HttpEventType.Response|HttpEventType.ResponseHeader;    /**    * Super-constructor for all responses.    *    * The single parameter accepted is an initialization hash. Any properties    * of the response passed there will override the default values.    */   constructor(       init: {         headers?: HttpHeaders,         status?: number,         statusText?: string,         url?: string,       },       defaultStatus: number = HttpStatusCode.Ok, defaultStatusText: string = 'OK') {     // If the hash has values passed, use them to initialize the response.     // Otherwise use the default values.     this.headers = init.headers || new HttpHeaders();     this.status = init.status !== undefined ? init.status : defaultStatus;     this.statusText = init.statusText || defaultStatusText;     this.url = init.url || null;      // Cache the ok value to avoid defining a getter.     this.ok = this.status >= 200 && this.status < 300;   } }  /**  * A partial HTTP response which only includes the status and header data,  * but no response body.  *  * `HttpHeaderResponse` is a `HttpEvent` available on the response  * event stream, only when progress events are requested.  *  * @publicApi  */ export class HttpHeaderResponse extends HttpResponseBase {   /**    * Create a new `HttpHeaderResponse` with the given parameters.    */   constructor(init: {     headers?: HttpHeaders,     status?: number,     statusText?: string,     url?: string,   } = {}) {     super(init);   }    override readonly type: HttpEventType.ResponseHeader = HttpEventType.ResponseHeader;    /**    * Copy this `HttpHeaderResponse`, overriding its contents with the    * given parameter hash.    */   clone(update: {headers?: HttpHeaders; status?: number; statusText?: string; url?: string;} = {}):       HttpHeaderResponse {     // Perform a straightforward initialization of the new HttpHeaderResponse,     // overriding the current parameters with new ones if given.     return new HttpHeaderResponse({       headers: update.headers || this.headers,       status: update.status !== undefined ? update.status : this.status,       statusText: update.statusText || this.statusText,       url: update.url || this.url || undefined,     });   } }  /**  * A full HTTP response, including a typed response body (which may be `null`  * if one was not returned).  *  * `HttpResponse` is a `HttpEvent` available on the response event  * stream.  *  * @publicApi  */ export class HttpResponse<T> extends HttpResponseBase {   /**    * The response body, or `null` if one was not returned.    */   readonly body: T|null;    /**    * Construct a new `HttpResponse`.    */   constructor(init: {     body?: T|null,     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   } = {}) {     super(init);     this.body = init.body !== undefined ? init.body : null;   }    override readonly type: HttpEventType.Response = HttpEventType.Response;    clone(): HttpResponse<T>;   clone(update: {headers?: HttpHeaders; status?: number; statusText?: string; url?: string;}):       HttpResponse<T>;   clone<V>(update: {     body?: V|null,     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   }): HttpResponse<V>;   clone(update: {     body?: any|null;     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   } = {}): HttpResponse<any> {     return new HttpResponse<any>({       body: (update.body !== undefined) ? update.body : this.body,       headers: update.headers || this.headers,       status: (update.status !== undefined) ? update.status : this.status,       statusText: update.statusText || this.statusText,       url: update.url || this.url || undefined,     });   } }  /**  * A response that represents an error or failure, either from a  * non-successful HTTP status, an error while executing the request,  * or some other failure which occurred during the parsing of the response.  *  * Any error returned on the `Observable` response stream will be  * wrapped in an `HttpErrorResponse` to provide additional context about  * the state of the HTTP layer when the error occurred. The error property  * will contain either a wrapped Error object or the error response returned  * from the server.  *  * @publicApi  */ export class HttpErrorResponse extends HttpResponseBase implements Error {   readonly name = 'HttpErrorResponse';   readonly message: string;   readonly error: any|null;    /**    * Errors are never okay, even when the status code is in the 2xx success range.    */   override readonly ok = false;    constructor(init: {     error?: any;     headers?: HttpHeaders;     status?: number;     statusText?: string;     url?: string;   }) {     // Initialize with a default status of 0 / Unknown Error.     super(init, 0, 'Unknown Error');      // If the response was successful, then this was a parse error. Otherwise, it was     // a protocol-level failure of some sort. Either the request failed in transit     // or the server returned an unsuccessful status code.     if (this.status >= 200 && this.status < 300) {       this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;     } else {       this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${           init.statusText}`;     }     this.error = init.error || null;   } }  /**  * Http status codes.  * As per https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml  * @publicApi  */ export const enum HttpStatusCode {   Continue = 100,   SwitchingProtocols = 101,   Processing = 102,   EarlyHints = 103,    Ok = 200,   Created = 201,   Accepted = 202,   NonAuthoritativeInformation = 203,   NoContent = 204,   ResetContent = 205,   PartialContent = 206,   MultiStatus = 207,   AlreadyReported = 208,   ImUsed = 226,    MultipleChoices = 300,   MovedPermanently = 301,   Found = 302,   SeeOther = 303,   NotModified = 304,   UseProxy = 305,   Unused = 306,   TemporaryRedirect = 307,   PermanentRedirect = 308,    BadRequest = 400,   Unauthorized = 401,   PaymentRequired = 402,   Forbidden = 403,   NotFound = 404,   MethodNotAllowed = 405,   NotAcceptable = 406,   ProxyAuthenticationRequired = 407,   RequestTimeout = 408,   Conflict = 409,   Gone = 410,   LengthRequired = 411,   PreconditionFailed = 412,   PayloadTooLarge = 413,   UriTooLong = 414,   UnsupportedMediaType = 415,   RangeNotSatisfiable = 416,   ExpectationFailed = 417,   ImATeapot = 418,   MisdirectedRequest = 421,   UnprocessableEntity = 422,   Locked = 423,   FailedDependency = 424,   TooEarly = 425,   UpgradeRequired = 426,   PreconditionRequired = 428,   TooManyRequests = 429,   RequestHeaderFieldsTooLarge = 431,   UnavailableForLegalReasons = 451,    InternalServerError = 500,   NotImplemented = 501,   BadGateway = 502,   ServiceUnavailable = 503,   GatewayTimeout = 504,   HttpVersionNotSupported = 505,   VariantAlsoNegotiates = 506,   InsufficientStorage = 507,   LoopDetected = 508,   NotExtended = 510,   NetworkAuthenticationRequired = 511 } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injectable} from '@angular/core'; import {Observable, of} from 'rxjs'; import {concatMap, filter, map} from 'rxjs/operators';  import {HttpHandler} from './backend'; import {HttpContext} from './context'; import {HttpHeaders} from './headers'; import {HttpParams, HttpParamsOptions} from './params'; import {HttpRequest} from './request'; import {HttpEvent, HttpResponse} from './response';   /**  * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and  * the given `body`. This function clones the object and adds the body.  *  * Note that the `responseType` *options* value is a String that identifies the  * single data type of the response.  * A single overload version of the method handles each response type.  * The value of `responseType` cannot be a union, as the combined signature could imply.  *  */ function addBody<T>(     options: {       headers?: HttpHeaders|{[header: string]: string | string[]},       context?: HttpContext,       observe?: 'body'|'events'|'response',       params?: HttpParams|             {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},       reportProgress?: boolean,       responseType?: 'arraybuffer'|'blob'|'json'|'text',       withCredentials?: boolean,     },     body: T|null): any {   return {     body,     headers: options.headers,     context: options.context,     observe: options.observe,     params: options.params,     reportProgress: options.reportProgress,     responseType: options.responseType,     withCredentials: options.withCredentials,   }; }  /**  * Performs HTTP requests.  * This service is available as an injectable class, with methods to perform HTTP requests.  * Each request method has multiple signatures, and the return type varies based on  * the signature that is called (mainly the values of `observe` and `responseType`).  *  * Note that the `responseType` *options* value is a String that identifies the  * single data type of the response.  * A single overload version of the method handles each response type.  * The value of `responseType` cannot be a union, as the combined signature could imply.   *  * @usageNotes  * Sample HTTP requests for the [Tour of Heroes](/tutorial/tour-of-heroes/toh-pt0) application.  *  * ### HTTP Request Example  *  * ```  *  // GET heroes whose name contains search term  * searchHeroes(term: string): observable<Hero[]>{  *  *  const params = new HttpParams({fromString: 'name=term'});  *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});  * }  * ```  *  * Alternatively, the parameter string can be used without invoking HttpParams  * by directly joining to the URL.  * ```  * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});  * ```  *  *  * ### JSONP Example  * ```  * requestJsonp(url, callback = 'callback') {  *  return this.httpClient.jsonp(this.heroesURL, callback);  * }  * ```  *  * ### PATCH Example  * ```  * // PATCH one of the heroes' name  * patchHero (id: number, heroName: string): Observable<{}> {  * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42  *  return this.httpClient.patch(url, {name: heroName}, httpOptions)  *    .pipe(catchError(this.handleError('patchHero')));  * }  * ```  *  * @see [HTTP Guide](guide/http)  * @see [HTTP Request](api/common/http/HttpRequest)  *  * @publicApi  */ @Injectable() export class HttpClient {   constructor(private handler: HttpHandler) {}    /**    * Sends an `HttpRequest` and returns a stream of `HttpEvent`s.    *    * @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.    */   request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;    /**    * Constructs a request that interprets the body as an `ArrayBuffer` and returns the response in    * an `ArrayBuffer`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a request that interprets the body as a blob and returns    * the response as a blob.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type `Blob`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a request that interprets the body as a text string and    * returns a string value.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a request that interprets the body as an `ArrayBuffer` and returns the    * the full event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an array of `HttpEvent`s for    * the request.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},           observe: 'events',     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a request that interprets the body as a `Blob` and returns    * the full event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type `Blob`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a request which interprets the body as a text string and returns the full event    * stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type string.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the  request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type `Object`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'events',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<any>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * event stream.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body of type `R`.    */   request<R>(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'events',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<R>>;    /**    * Constructs a request which interprets the body as an `ArrayBuffer`    * and returns the full `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body as an `ArrayBuffer`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a request which interprets the body as a `Blob` and returns the full `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a request which interprets the body as a text stream and returns the full    * `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the HTTP response, with the response body of type string.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * `HttpResponse`.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`,    * with the response body of type `Object`.    */   request(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns    * the full `HttpResponse` with the response body in the requested type.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return  An `Observable` of the full `HttpResponse`, with the response body of type `R`.    */   request<R>(method: string, url: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     reportProgress?: boolean, observe: 'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<R>>;    /**    * Constructs a request which interprets the body as a JavaScript object and returns the full    * `HttpResponse` as a JavaScript object.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Object`.    */   request(method: string, url: string, options?: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     reportProgress?: boolean,     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a request which interprets the body as a JavaScript object    * with the response body of the requested type.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `R`.    */   request<R>(method: string, url: string, options?: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     responseType?: 'json',     reportProgress?: boolean,     withCredentials?: boolean,   }): Observable<R>;    /**    * Constructs a request where response type and requested observable are not known statically.    *    * @param method  The HTTP method.    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the requested response, with body of type `any`.    */   request(method: string, url: string, options?: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     observe?: 'body'|'events'|'response',     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   }): Observable<any>;    /**    * Constructs an observable for a generic HTTP request that, when subscribed,    * fires the request through the chain of registered interceptors and on to the    * server.    *    * You can pass an `HttpRequest` directly as the only parameter. In this case,    * the call returns an observable of the raw `HttpEvent` stream.    *    * Alternatively you can pass an HTTP method as the first parameter,    * a URL string as the second, and an options hash containing the request body as the third.    * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the    * type of returned observable.    *   * The `responseType` value determines how a successful response body is parsed.    *   * If `responseType` is the default `json`, you can pass a type interface for the resulting    * object as a type parameter to the call.    *    * The `observe` value determines the return type, according to what you are interested in    * observing.    *   * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including    * progress events by default.    *   * An `observe` value of response returns an observable of `HttpResponse<T>`,    * where the `T` parameter depends on the `responseType` and any optionally provided type    * parameter.    *   * An `observe` value of body returns an observable of `<T>` with the same `T` body type.    *    */   request(first: string|HttpRequest<any>, url?: string, options: {     body?: any,     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     let req: HttpRequest<any>;     // First, check whether the primary argument is an instance of `HttpRequest`.     if (first instanceof HttpRequest) {       // It is. The other arguments must be undefined (per the signatures) and can be       // ignored.       req = first;     } else {       // It's a string, so it represents a URL. Construct a request based on it,       // and incorporate the remaining arguments (assuming `GET` unless a method is       // provided.        // Figure out the headers.       let headers: HttpHeaders|undefined = undefined;       if (options.headers instanceof HttpHeaders) {         headers = options.headers;       } else {         headers = new HttpHeaders(options.headers);       }        // Sort out parameters.       let params: HttpParams|undefined = undefined;       if (!!options.params) {         if (options.params instanceof HttpParams) {           params = options.params;         } else {           params = new HttpParams({fromObject: options.params} as HttpParamsOptions);         }       }        // Construct the request.       req = new HttpRequest(first, url!, (options.body !== undefined ? options.body : null), {         headers,         context: options.context,         params,         reportProgress: options.reportProgress,         // By default, JSON is assumed to be returned for all calls.         responseType: options.responseType || 'json',         withCredentials: options.withCredentials,       });     }      // Start with an Observable.of() the initial request, and run the handler (which     // includes all interceptors) inside a concatMap(). This way, the handler runs     // inside an Observable chain, which causes interceptors to be re-run on every     // subscription (this also makes retries re-run the handler, including interceptors).     const events$: Observable<HttpEvent<any>> =         of(req).pipe(concatMap((req: HttpRequest<any>) => this.handler.handle(req)));      // If coming via the API signature which accepts a previously constructed HttpRequest,     // the only option is to get the event stream. Otherwise, return the event stream if     // that is what was requested.     if (first instanceof HttpRequest || options.observe === 'events') {       return events$;     }      // The requested stream contains either the full response or the body. In either     // case, the first step is to filter the event stream to extract a stream of     // responses(s).     const res$: Observable<HttpResponse<any>> = <Observable<HttpResponse<any>>>events$.pipe(         filter((event: HttpEvent<any>) => event instanceof HttpResponse));      // Decide which stream to return.     switch (options.observe || 'body') {       case 'body':         // The requested stream is the body. Map the response stream to the response         // body. This could be done more simply, but a misbehaving interceptor might         // transform the response body into a different format and ignore the requested         // responseType. Guard against this by validating that the response is of the         // requested type.         switch (req.responseType) {           case 'arraybuffer':             return res$.pipe(map((res: HttpResponse<any>) => {               // Validate that the body is an ArrayBuffer.               if (res.body !== null && !(res.body instanceof ArrayBuffer)) {                 throw new Error('Response is not an ArrayBuffer.');               }               return res.body;             }));           case 'blob':             return res$.pipe(map((res: HttpResponse<any>) => {               // Validate that the body is a Blob.               if (res.body !== null && !(res.body instanceof Blob)) {                 throw new Error('Response is not a Blob.');               }               return res.body;             }));           case 'text':             return res$.pipe(map((res: HttpResponse<any>) => {               // Validate that the body is a string.               if (res.body !== null && typeof res.body !== 'string') {                 throw new Error('Response is not a string.');               }               return res.body;             }));           case 'json':           default:             // No validation needed for JSON responses, as they can be of any type.             return res$.pipe(map((res: HttpResponse<any>) => res.body));         }       case 'response':         // The response stream was requested directly, so return it.         return res$;       default:         // Guard against new future observe types being added.         throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);     }   }    /**    * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`    *  and returns the response as an `ArrayBuffer`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return  An `Observable` of the response body as an `ArrayBuffer`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,     body?: any|null,   }): Observable<ArrayBuffer>;     /**    * Constructs a `DELETE` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response body as a `Blob`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,     body?: any|null,   }): Observable<Blob>;    /**    * Constructs a `DELETE` request that interprets the body as a text string and returns    * a string.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,     body?: any|null,   }): Observable<string>;    /**    * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`    *  and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with response body as an `ArrayBuffer`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,     body?: any|null   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `DELETE` request that interprets the body as a `Blob`    *  and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with the response body as a    * `Blob`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `DELETE` request that interprets the body as a text string    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response    * body of type string.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `DELETE` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with response body of    * type `Object`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `DELETE`request that interprets the body as JSON    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with a response    * body in the requested type.    */   delete<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | (string | number | boolean)[]},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer` and returns    *  the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`, with the response body as an `ArrayBuffer`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `DELETE` request that interprets the body as a `Blob` and returns the full    * `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `DELETE` request that interprets the body as a text stream and    *  returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`, with the response body of type string.    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `DELETE` request the interprets the body as a JavaScript object and returns    * the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of type `Object`.    *    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `DELETE` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with the response body of the requested type.    */   delete<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `DELETE` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type `Object`.    */   delete(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<Object>;    /**    * Constructs a DELETE request that interprets the body as JSON and returns    * the response in a given type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with response body in the requested type.    */   delete<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,     body?: any|null,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `DELETE` request to execute on the server. See the individual overloads for    * details on the return type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    */   delete(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,     body?: any|null,   } = {}): Observable<any> {     return this.request<any>('DELETE', url, options as any);   }     /**    * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the    * response in an `ArrayBuffer`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `GET` request that interprets the body as a `Blob`    * and returns the response as a `Blob`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `GET` request that interprets the body as a text string    * and returns the response as a string value.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns    *  the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response    * body as an `ArrayBuffer`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `GET` request that interprets the body as a `Blob` and    * returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `GET` request that interprets the body as a text string and returns    * the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `GET` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type `Object`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `GET` request that interprets the body as JSON and returns the full    * event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with a response body in the requested type.    */   get<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `GET` request that interprets the body as a `Blob` and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `GET` request that interprets the body as a text stream and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type string.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `GET` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse`,    * with the response body of type `Object`.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `GET` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the full `HttpResponse` for the request,    * with a response body in the requested type.    */   get<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `GET` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    *    * @return An `Observable` of the response body as a JavaScript object.    */   get(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `GET` request that interprets the body as JSON and returns    * the response body in a given type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse`, with a response body in the requested type.    */   get<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `GET` request to execute on the server. See the individual overloads for    * details on the return type.    */   get(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('GET', url, options as any);   }     /**    * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and    * returns the response as an `ArrayBuffer`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `HEAD` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return  An `Observable` of the response, with the response body as a `Blob`.    */    head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `HEAD` request that interprets the body as a text string and returns the response    * as a string value.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body of type string.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `HEAD` request that interprets the body as an  `ArrayBuffer`    *  and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `HEAD` request that interprets the body as a `Blob` and    * returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as a `Blob`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `HEAD` request that interprets the body as a text string    * and returns the full event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response body of type    * string.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON    * and returns the full HTTP event stream.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of all `HttpEvent`s for the request, with a response body of    * type `Object`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON and    * returns the full event stream.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body in the requested type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    */   head<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer`    *  and returns the full HTTP response.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `HEAD` request that interprets the body as a `Blob` and returns    * the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a blob.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `HEAD` request that interprets the body as text stream    * and returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type string.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type `Object`.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `HEAD` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body of the requested type.    */   head<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**     * Constructs a `HEAD` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   head(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `HEAD` request that interprets the body as JSON and returns    * the response in a given type.    *    * @param url     The endpoint URL.    * @param options The HTTP options to send with the request.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body of the given type.    */   head<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `HEAD` request to execute on the server. The `HEAD` method returns    * meta information about the resource without transferring the    * resource itself. See the individual overloads for    * details on the return type.    */   head(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('HEAD', url, options as any);   }    /**    * Constructs a `JSONP` request for the given URL and name of the callback parameter.    *    * @param url The resource URL.    * @param callbackParam The callback function name.    *    * @return An `Observable` of the response object, with response body as an object.    */   jsonp(url: string, callbackParam: string): Observable<Object>;    /**    * Constructs a `JSONP` request for the given URL and name of the callback parameter.    *    * @param url The resource URL.    * @param callbackParam The callback function name.    *    * You must install a suitable interceptor, such as one provided by `HttpClientJsonpModule`.    * If no such interceptor is reached,    * then the `JSONP` request can be rejected by the configured backend.    *    * @return An `Observable` of the response object, with response body in the requested type.    */   jsonp<T>(url: string, callbackParam: string): Observable<T>;    /**    * Constructs an `Observable` that, when subscribed, causes a request with the special method    * `JSONP` to be dispatched via the interceptor pipeline.    * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain    * API endpoints that don't support newer,    * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.    * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the    * requests even if the API endpoint is not located on the same domain (origin) as the client-side    * application making the request.    * The endpoint API must support JSONP callback for JSONP requests to work.    * The resource API returns the JSON response wrapped in a callback function.    * You can pass the callback function name as one of the query parameters.    * Note that JSONP requests can only be used with `GET` requests.    *    * @param url The resource URL.    * @param callbackParam The callback function name.    *    */   jsonp<T>(url: string, callbackParam: string): Observable<T> {     return this.request<any>('JSONP', url, {       params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),       observe: 'body',       responseType: 'json',     });   }    /**    * Constructs an `OPTIONS` request that interprets the body as an    * `ArrayBuffer` and returns the response as an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs an `OPTIONS` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs an `OPTIONS` request that interprets the body as a text string and    * returns a string value.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body of type string.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs an `OPTIONS` request that interprets the body as an `ArrayBuffer`    *  and returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return  An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs an `OPTIONS` request that interprets the body as a `Blob` and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as a `Blob`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs an `OPTIONS` request that interprets the body as a text string    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with the response body of type string.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request with the response    * body of type `Object`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body in the requested type.    */   options<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs an `OPTIONS` request that interprets the body as an `ArrayBuffer`    *  and returns the full HTTP response.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs an `OPTIONS` request that interprets the body as a `Blob`    *  and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs an `OPTIONS` request that interprets the body as text stream    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type string.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body of type `Object`.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON and    * returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the requested type.    */   options<T>(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**     * Constructs an `OPTIONS` request that interprets the body as JSON and returns the    * response body as an object parsed from JSON.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   options(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs an `OPTIONS` request that interprets the body as JSON and returns the    * response in a given type.    *    * @param url The endpoint URL.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse`, with a response body of the given type.    */   options<T>(url: string, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an `Observable` that, when subscribed, causes the configured    * `OPTIONS` request to execute on the server. This method allows the client    * to determine the supported HTTP methods and other capabilities of an endpoint,    * without implying a resource action. See the individual overloads for    * details on the return type.    */   options(url: string, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('OPTIONS', url, options as any);   }    /**    * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns    * the response as an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `PATCH` request that interprets the body as a `Blob` and returns the response    * as a `Blob`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `PATCH` request that interprets the body as a text string and    * returns the response as a string value.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with a response body of type string.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and    *  returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */    patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `PATCH` request that interprets the body as a `Blob`    *  and returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with the    * response body as `Blob`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `PATCH` request that interprets the body as a text string and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request, with a    * response body of type string.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body of type `Object`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of all the `HttpEvent`s for the request,    * with a response body in the requested type.    */   patch<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer`    *  and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with the response body as an `ArrayBuffer`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `PATCH` request that interprets the body as a `Blob` and returns the full    * `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `PATCH` request that interprets the body as a text stream and returns the    * full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with a response body of type string.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the requested type.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the given type.    */   patch<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**     * Constructs a `PATCH` request that interprets the body as JSON and    * returns the response body as an object parsed from JSON.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   patch(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `PATCH` request that interprets the body as JSON    * and returns the response in a given type.    *    * @param url The endpoint URL.    * @param body The resources to edit.    * @param options HTTP options.    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with a response body in the given type.    */   patch<T>(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `PATCH` request to execute on the server. See the individual overloads for    * details on the return type.    */   patch(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('PATCH', url, addBody(options, body));   }    /**    * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns    * an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options.    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `POST` request that interprets the body as a `Blob` and returns the    * response as a `Blob`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `POST` request that interprets the body as a text string and    * returns the response as a string value.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the response, with a response body of type string.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `POST` request that interprets the body as a `Blob`    * and returns the response in an observable of the full event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request, with the response body as `Blob`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `POST` request that interprets the body as a text string and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of all `HttpEvent`s for the request,    * with a response body of type string.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a POST request that interprets the body as JSON and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of all `HttpEvent`s for the request,    * with a response body of type `Object`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a POST request that interprets the body as JSON and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with a response body in the requested type.    */   post<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a POST request that interprets the body as an `ArrayBuffer`    *  and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of the `HttpResponse` for the request, with the response body as an    * `ArrayBuffer`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `POST` request that interprets the body as a `Blob` and returns the full    * `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `POST` request that interprets the body as a text stream and returns    * the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of the `HttpResponse` for the request,    * with a response body of type string.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `POST` request that interprets the body as JSON    * and returns the full `HttpResponse`.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body of type    * `Object`.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `POST` request that interprets the body as JSON and returns the    * full `HttpResponse`.    *    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body in the    * requested type.    */   post<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `POST` request that interprets the body as JSON    * and returns the response body as an object parsed from JSON.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as an object parsed from JSON.    */   post(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `POST` request that interprets the body as JSON    * and returns an observable of the response.    *    * @param url The endpoint URL.    * @param body The content to replace with.    * @param options HTTP options    *    * @return  An `Observable` of the `HttpResponse` for the request, with a response body in the    * requested type.    */   post<T>(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `POST` request to execute on the server. The server responds with the location of    * the replaced resource. See the individual overloads for    * details on the return type.    */   post(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('POST', url, addBody(options, body));   }    /**    * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the    * response as an `ArrayBuffer`.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<ArrayBuffer>;    /**    * Constructs a `PUT` request that interprets the body as a `Blob` and returns    * the response as a `Blob`.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response, with the response body as a `Blob`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<Blob>;    /**    * Constructs a `PUT` request that interprets the body as a text string and    * returns the response as a string value.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response, with a response body of type string.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<string>;    /**    * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and    * returns the full event stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as an `ArrayBuffer`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpEvent<ArrayBuffer>>;    /**    * Constructs a `PUT` request that interprets the body as a `Blob` and returns the full event    * stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with the response body as a `Blob`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpEvent<Blob>>;    /**    * Constructs a `PUT` request that interprets the body as a text string and returns the full event    * stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request, with a response body    * of type string.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpEvent<string>>;    /**    * Constructs a `PUT` request that interprets the body as JSON and returns the full    * event stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request, with a response body of    * type `Object`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<Object>>;    /**    * Constructs a `PUT` request that interprets the body as JSON and returns the    * full event stream.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of all `HttpEvent`s for the request,    * with a response body in the requested type.    */   put<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'events',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpEvent<T>>;    /**    * Constructs a `PUT` request that interprets the body as an    * `ArrayBuffer` and returns an observable of the full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with the response body as an    * `ArrayBuffer`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'arraybuffer',     withCredentials?: boolean,   }): Observable<HttpResponse<ArrayBuffer>>;    /**    * Constructs a `PUT` request that interprets the body as a `Blob` and returns the    * full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request,    * with the response body as a `Blob`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'blob',     withCredentials?: boolean,   }): Observable<HttpResponse<Blob>>;    /**    * Constructs a `PUT` request that interprets the body as a text stream and returns the    * full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body of type    * string.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean, responseType: 'text',     withCredentials?: boolean,   }): Observable<HttpResponse<string>>;    /**    * Constructs a `PUT` request that interprets the body as JSON and returns the full    * HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request, with a response body    * of type 'Object`.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<Object>>;    /**    * Constructs a `PUT` request that interprets the body as an instance of the requested type and    * returns the full HTTP response.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the `HttpResponse` for the request,    * with a response body in the requested type.    */   put<T>(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]}, observe: 'response',     context?: HttpContext,     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<HttpResponse<T>>;    /**    * Constructs a `PUT` request that interprets the body as JSON    * and returns an observable of JavaScript object.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the response as a JavaScript object.    */   put(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<Object>;    /**    * Constructs a `PUT` request that interprets the body as an instance of the requested type    * and returns an observable of the requested type.    *    * @param url The endpoint URL.    * @param body The resources to add/update.    * @param options HTTP options    *    * @return An `Observable` of the requested type.    */   put<T>(url: string, body: any|null, options?: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'json',     withCredentials?: boolean,   }): Observable<T>;    /**    * Constructs an observable that, when subscribed, causes the configured    * `PUT` request to execute on the server. The `PUT` method replaces an existing resource    * with a new set of values.    * See the individual overloads for details on the return type.    */   put(url: string, body: any|null, options: {     headers?: HttpHeaders|{[header: string]: string | string[]},     context?: HttpContext,     observe?: 'body'|'events'|'response',     params?: HttpParams|           {[param: string]: string | number | boolean | ReadonlyArray<string|number|boolean>},     reportProgress?: boolean,     responseType?: 'arraybuffer'|'blob'|'json'|'text',     withCredentials?: boolean,   } = {}): Observable<any> {     return this.request<any>('PUT', url, addBody(options, body));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, inject, Injectable, InjectionToken} from '@angular/core'; import {Observable} from 'rxjs';  import {HttpBackend, HttpHandler} from './backend'; import {HttpRequest} from './request'; import {HttpEvent} from './response';  /**  * Intercepts and handles an `HttpRequest` or `HttpResponse`.  *  * Most interceptors transform the outgoing request before passing it to the  * next interceptor in the chain, by calling `next.handle(transformedReq)`.  * An interceptor may transform the  * response event stream as well, by applying additional RxJS operators on the stream  * returned by `next.handle()`.  *  * More rarely, an interceptor may handle the request entirely,  * and compose a new event stream instead of invoking `next.handle()`. This is an  * acceptable behavior, but keep in mind that further interceptors will be skipped entirely.  *  * It is also rare but valid for an interceptor to return multiple responses on the  * event stream for a single request.  *  * @publicApi  *  * @see [HTTP Guide](guide/http#intercepting-requests-and-responses)  *  * @usageNotes  *  * To use the same instance of `HttpInterceptors` for the entire app, import the `HttpClientModule`  * only in your `AppModule`, and add the interceptors to the root application injector.  * If you import `HttpClientModule` multiple times across different modules (for example, in lazy  * loading modules), each import creates a new copy of the `HttpClientModule`, which overwrites the  * interceptors provided in the root module.  */ export interface HttpInterceptor {   /**    * Identifies and handles a given HTTP request.    * @param req The outgoing request object to handle.    * @param next The next interceptor in the chain, or the backend    * if no interceptors remain in the chain.    * @returns An observable of the event stream.    */   intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>; }  /**  * Represents the next interceptor in an interceptor chain, or the real backend if there are no  * further interceptors.  *  * Most interceptors will delegate to this function, and either modify the outgoing request or the  * response when it arrives. Within the scope of the current request, however, this function may be  * called any number of times, for any number of downstream requests. Such downstream requests need  * not be to the same URL or even the same origin as the current request. It is also valid to not  * call the downstream handler at all, and process the current request entirely within the  * interceptor.  *  * This function should only be called within the scope of the request that's currently being  * intercepted. Once that request is complete, this downstream handler function should not be  * called.  *  * @publicApi  *  * @see [HTTP Guide](guide/http#intercepting-requests-and-responses)  */ export type HttpHandlerFn = (req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>;  /**  * An interceptor for HTTP requests made via `HttpClient`.  *  * `HttpInterceptorFn`s are middleware functions which `HttpClient` calls when a request is made.  * These functions have the opportunity to modify the outgoing request or any response that comes  * back, as well as block, redirect, or otherwise change the request or response semantics.  *  * An `HttpHandlerFn` representing the next interceptor (or the backend which will make a real HTTP  * request) is provided. Most interceptors will delegate to this function, but that is not required  * (see `HttpHandlerFn` for more details).  *  * `HttpInterceptorFn`s have access to `inject()` via the `EnvironmentInjector` from which they were  * configured.  */ export type HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) =>     Observable<HttpEvent<unknown>>;  /**  * Function which invokes an HTTP interceptor chain.  *  * Each interceptor in the interceptor chain is turned into a `ChainedInterceptorFn` which closes  * over the rest of the chain (represented by another `ChainedInterceptorFn`). The last such  * function in the chain will instead delegate to the `finalHandlerFn`, which is passed down when  * the chain is invoked.  *  * This pattern allows for a chain of many interceptors to be composed and wrapped in a single  * `HttpInterceptorFn`, which is a useful abstraction for including different kinds of interceptors  * (e.g. legacy class-based interceptors) in the same chain.  */ type ChainedInterceptorFn<RequestT> = (req: HttpRequest<RequestT>, finalHandlerFn: HttpHandlerFn) =>     Observable<HttpEvent<RequestT>>;  function interceptorChainEndFn(     req: HttpRequest<any>, finalHandlerFn: HttpHandlerFn): Observable<HttpEvent<any>> {   return finalHandlerFn(req); }  /**  * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the  * `ChainedInterceptorFn` interface.  */ function adaptLegacyInterceptorToChain(     chainTailFn: ChainedInterceptorFn<any>,     interceptor: HttpInterceptor): ChainedInterceptorFn<any> {   return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {     handle: (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn),   }); }  /**  * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given  * injector.  */ function chainedInterceptorFn(     chainTailFn: ChainedInterceptorFn<unknown>, interceptorFn: HttpInterceptorFn,     injector: EnvironmentInjector): ChainedInterceptorFn<unknown> {   // clang-format off   return (initialRequest, finalHandlerFn) => injector.runInContext(() =>     interceptorFn(       initialRequest,       downstreamRequest => chainTailFn(downstreamRequest, finalHandlerFn)     )   );   // clang-format on }  /**  * A multi-provider token that represents the array of registered  * `HttpInterceptor` objects.  *  * @publicApi  */ export const HTTP_INTERCEPTORS = new InjectionToken<HttpInterceptor[]>('HTTP_INTERCEPTORS');  /**  * A multi-provided token of `HttpInterceptorFn`s.  */ export const HTTP_INTERCEPTOR_FNS = new InjectionToken<HttpInterceptorFn[]>('HTTP_INTERCEPTOR_FNS');  /**  * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy  * class-based interceptors and runs the request through it.  */ export function legacyInterceptorFnFactory(): HttpInterceptorFn {   let chain: ChainedInterceptorFn<any>|null = null;    return (req, handler) => {     if (chain === null) {       const interceptors = inject(HTTP_INTERCEPTORS, {optional: true}) ?? [];       // Note: interceptors are wrapped right-to-left so that final execution order is       // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to       // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside       // out.       chain = interceptors.reduceRight(           adaptLegacyInterceptorToChain, interceptorChainEndFn as ChainedInterceptorFn<any>);     }      return chain(req, handler);   }; }  @Injectable() export class HttpInterceptorHandler extends HttpHandler {   private chain: ChainedInterceptorFn<unknown>|null = null;    constructor(private backend: HttpBackend, private injector: EnvironmentInjector) {     super();   }    override handle(initialRequest: HttpRequest<any>): Observable<HttpEvent<any>> {     if (this.chain === null) {       const dedupedInterceptorFns = Array.from(new Set(this.injector.get(HTTP_INTERCEPTOR_FNS)));        // Note: interceptors are wrapped right-to-left so that final execution order is       // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to       // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside       // out.       this.chain = dedupedInterceptorFns.reduceRight(           (nextSequencedFn, interceptorFn) =>               chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector),           interceptorChainEndFn as ChainedInterceptorFn<unknown>);     }     return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {EnvironmentInjector, Inject, inject, Injectable} from '@angular/core'; import {Observable, Observer} from 'rxjs';  import {HttpBackend, HttpHandler} from './backend'; import {HttpHandlerFn} from './interceptor'; import {HttpRequest} from './request'; import {HttpErrorResponse, HttpEvent, HttpEventType, HttpResponse, HttpStatusCode} from './response';   // Every request made through JSONP needs a callback name that's unique across the // whole page. Each request is assigned an id and the callback name is constructed // from that. The next id to be assigned is tracked in a global variable here that // is shared among all applications on the page. let nextRequestId: number = 0;  /**  * When a pending <script> is unsubscribed we'll move it to this document, so it won't be  * executed.  */ let foreignDocument: Document|undefined;  // Error text given when a JSONP script is injected, but doesn't invoke the callback // passed in its URL. export const JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';  // Error text given when a request is passed to the JsonpClientBackend that doesn't // have a request method JSONP. export const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.'; export const JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';  // Error text given when a request is passed to the JsonpClientBackend that has // headers set export const JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';  /**  * DI token/abstract type representing a map of JSONP callbacks.  *  * In the browser, this should always be the `window` object.  *  *  */ export abstract class JsonpCallbackContext {   [key: string]: (data: any) => void; }  /**  * Factory function that determines where to store JSONP callbacks.  *  * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist  * in test environments. In that case, callbacks are stored on an anonymous object instead.  *  *  */ export function jsonpCallbackContext(): Object {   if (typeof window === 'object') {     return window;   }   return {}; }  /**  * Processes an `HttpRequest` with the JSONP method,  * by performing JSONP style requests.  * @see `HttpHandler`  * @see `HttpXhrBackend`  *  * @publicApi  */ @Injectable() export class JsonpClientBackend implements HttpBackend {   /**    * A resolved promise that can be used to schedule microtasks in the event handlers.    */   private readonly resolvedPromise = Promise.resolve();    constructor(private callbackMap: JsonpCallbackContext, @Inject(DOCUMENT) private document: any) {}    /**    * Get the name of the next callback method, by incrementing the global `nextRequestId`.    */   private nextCallback(): string {     return `ng_jsonp_callback_${nextRequestId++}`;   }    /**    * Processes a JSONP request and returns an event stream of the results.    * @param req The request object.    * @returns An observable of the response events.    *    */   handle(req: HttpRequest<never>): Observable<HttpEvent<any>> {     // Firstly, check both the method and response type. If either doesn't match     // then the request was improperly routed here and cannot be handled.     if (req.method !== 'JSONP') {       throw new Error(JSONP_ERR_WRONG_METHOD);     } else if (req.responseType !== 'json') {       throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);     }      // Check the request headers. JSONP doesn't support headers and     // cannot set any that were supplied.     if (req.headers.keys().length > 0) {       throw new Error(JSONP_ERR_HEADERS_NOT_SUPPORTED);     }      // Everything else happens inside the Observable boundary.     return new Observable<HttpEvent<any>>((observer: Observer<HttpEvent<any>>) => {       // The first step to make a request is to generate the callback name, and replace the       // callback placeholder in the URL with the name. Care has to be taken here to ensure       // a trailing &, if matched, gets inserted back into the URL in the correct place.       const callback = this.nextCallback();       const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);        // Construct the <script> tag and point it at the URL.       const node = this.document.createElement('script');       node.src = url;        // A JSONP request requires waiting for multiple callbacks. These variables       // are closed over and track state across those callbacks.        // The response object, if one has been received, or null otherwise.       let body: any|null = null;        // Whether the response callback has been called.       let finished: boolean = false;        // Set the response callback in this.callbackMap (which will be the window       // object in the browser. The script being loaded via the <script> tag will       // eventually call this callback.       this.callbackMap[callback] = (data?: any) => {         // Data has been received from the JSONP script. Firstly, delete this callback.         delete this.callbackMap[callback];          // Set state to indicate data was received.         body = data;         finished = true;       };        // cleanup() is a utility closure that removes the <script> from the page and       // the response callback from the window. This logic is used in both the       // success, error, and cancellation paths, so it's extracted out for convenience.       const cleanup = () => {         // Remove the <script> tag if it's still on the page.         if (node.parentNode) {           node.parentNode.removeChild(node);         }          // Remove the response callback from the callbackMap (window object in the         // browser).         delete this.callbackMap[callback];       };        // onLoad() is the success callback which runs after the response callback       // if the JSONP script loads successfully. The event itself is unimportant.       // If something went wrong, onLoad() may run without the response callback       // having been invoked.       const onLoad = (event: Event) => {         // We wrap it in an extra Promise, to ensure the microtask         // is scheduled after the loaded endpoint has executed any potential microtask itself,         // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496         this.resolvedPromise.then(() => {           // Cleanup the page.           cleanup();            // Check whether the response callback has run.           if (!finished) {             // It hasn't, something went wrong with the request. Return an error via             // the Observable error path. All JSONP errors have status 0.             observer.error(new HttpErrorResponse({               url,               status: 0,               statusText: 'JSONP Error',               error: new Error(JSONP_ERR_NO_CALLBACK),             }));             return;           }            // Success. body either contains the response body or null if none was           // returned.           observer.next(new HttpResponse({             body,             status: HttpStatusCode.Ok,             statusText: 'OK',             url,           }));            // Complete the stream, the response is over.           observer.complete();         });       };        // onError() is the error callback, which runs if the script returned generates       // a Javascript error. It emits the error via the Observable error channel as       // a HttpErrorResponse.       const onError: any = (error: Error) => {         cleanup();          // Wrap the error in a HttpErrorResponse.         observer.error(new HttpErrorResponse({           error,           status: 0,           statusText: 'JSONP Error',           url,         }));       };        // Subscribe to both the success (load) and error events on the <script> tag,       // and add it to the page.       node.addEventListener('load', onLoad);       node.addEventListener('error', onError);       this.document.body.appendChild(node);        // The request has now been successfully sent.       observer.next({type: HttpEventType.Sent});        // Cancellation handler.       return () => {         if (!finished) {           this.removeListeners(node);         }          // And finally, clean up the page.         cleanup();       };     });   }    private removeListeners(script: HTMLScriptElement): void {     // Issue #34818     // Changing <script>'s ownerDocument will prevent it from execution.     // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block     if (!foreignDocument) {       foreignDocument = (this.document.implementation as DOMImplementation).createHTMLDocument();     }     foreignDocument.adoptNode(script);   } }  /**  * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.  */ export function jsonpInterceptorFn(     req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>> {   if (req.method === 'JSONP') {     return inject(JsonpClientBackend).handle(req as HttpRequest<never>);   }    // Fall through for normal HTTP requests.   return next(req); }  /**  * Identifies requests with the method JSONP and  * shifts them to the `JsonpClientBackend`.  *  * @see `HttpInterceptor`  *  * @publicApi  */ @Injectable() export class JsonpInterceptor {   constructor(private injector: EnvironmentInjector) {}    /**    * Identifies and handles a given JSONP request.    * @param initialRequest The outgoing request object to handle.    * @param next The next interceptor in the chain, or the backend    * if no interceptors remain in the chain.    * @returns An observable of the event stream.    */   intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {     return this.injector.runInContext(         () => jsonpInterceptorFn(             initialRequest, downstreamRequest => next.handle(downstreamRequest)));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {XhrFactory} from '@angular/common'; import {Injectable} from '@angular/core'; import {Observable, Observer} from 'rxjs';  import {HttpBackend} from './backend'; import {HttpHeaders} from './headers'; import {HttpRequest} from './request'; import {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpJsonParseError, HttpResponse, HttpStatusCode, HttpUploadProgressEvent} from './response';   const XSSI_PREFIX = /^\\)\\]\\}',?\ /;  /**  * Determine an appropriate URL for the response, by checking either  * XMLHttpRequest.responseURL or the X-Request-URL header.  */ function getResponseUrl(xhr: any): string|null {   if ('responseURL' in xhr && xhr.responseURL) {     return xhr.responseURL;   }   if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {     return xhr.getResponseHeader('X-Request-URL');   }   return null; }  /**  * Uses `XMLHttpRequest` to send requests to a backend server.  * @see `HttpHandler`  * @see `JsonpClientBackend`  *  * @publicApi  */ @Injectable() export class HttpXhrBackend implements HttpBackend {   constructor(private xhrFactory: XhrFactory) {}    /**    * Processes a request and returns a stream of response events.    * @param req The request object.    * @returns An observable of the response events.    */   handle(req: HttpRequest<any>): Observable<HttpEvent<any>> {     // Quick check to give a better error message when a user attempts to use     // HttpClient.jsonp() without installing the HttpClientJsonpModule     if (req.method === 'JSONP') {       throw new Error(           `Attempted to construct Jsonp request without HttpClientJsonpModule installed.`);     }      // Everything happens on Observable subscription.     return new Observable((observer: Observer<HttpEvent<any>>) => {       // Start by setting up the XHR object with request method, URL, and withCredentials flag.       const xhr = this.xhrFactory.build();       xhr.open(req.method, req.urlWithParams);       if (!!req.withCredentials) {         xhr.withCredentials = true;       }        // Add all the requested headers.       req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));        // Add an Accept header if one isn't present already.       if (!req.headers.has('Accept')) {         xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');       }        // Auto-detect the Content-Type header if one isn't present already.       if (!req.headers.has('Content-Type')) {         const detectedType = req.detectContentTypeHeader();         // Sometimes Content-Type detection fails.         if (detectedType !== null) {           xhr.setRequestHeader('Content-Type', detectedType);         }       }        // Set the responseType if one was requested.       if (req.responseType) {         const responseType = req.responseType.toLowerCase();          // JSON responses need to be processed as text. This is because if the server         // returns an XSSI-prefixed JSON response, the browser will fail to parse it,         // xhr.response will be null, and xhr.responseText cannot be accessed to         // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON         // is parsed by first requesting text and then applying JSON.parse.         xhr.responseType = ((responseType !== 'json') ? responseType : 'text') as any;       }        // Serialize the request body if one is present. If not, this will be set to null.       const reqBody = req.serializeBody();        // If progress events are enabled, response headers will be delivered       // in two events - the HttpHeaderResponse event and the full HttpResponse       // event. However, since response headers don't change in between these       // two events, it doesn't make sense to parse them twice. So headerResponse       // caches the data extracted from the response whenever it's first parsed,       // to ensure parsing isn't duplicated.       let headerResponse: HttpHeaderResponse|null = null;        // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest       // state, and memoizes it into headerResponse.       const partialFromXhr = (): HttpHeaderResponse => {         if (headerResponse !== null) {           return headerResponse;         }          const statusText = xhr.statusText || 'OK';          // Parse headers from XMLHttpRequest - this step is lazy.         const headers = new HttpHeaders(xhr.getAllResponseHeaders());          // Read the response URL from the XMLHttpResponse instance and fall back on the         // request URL.         const url = getResponseUrl(xhr) || req.url;          // Construct the HttpHeaderResponse and memoize it.         headerResponse = new HttpHeaderResponse({headers, status: xhr.status, statusText, url});         return headerResponse;       };        // Next, a few closures are defined for the various events which XMLHttpRequest can       // emit. This allows them to be unregistered as event listeners later.        // First up is the load event, which represents a response being fully available.       const onLoad = () => {         // Read response state from the memoized partial data.         let {headers, status, statusText, url} = partialFromXhr();          // The body will be read out if present.         let body: any|null = null;          if (status !== HttpStatusCode.NoContent) {           // Use XMLHttpRequest.response if set, responseText otherwise.           body = (typeof xhr.response === 'undefined') ? xhr.responseText : xhr.response;         }          // Normalize another potential bug (this one comes from CORS).         if (status === 0) {           status = !!body ? HttpStatusCode.Ok : 0;         }          // ok determines whether the response will be transmitted on the event or         // error channel. Unsuccessful status codes (not 2xx) will always be errors,         // but a successful status code can still result in an error if the user         // asked for JSON data and the body cannot be parsed as such.         let ok = status >= 200 && status < 300;          // Check whether the body needs to be parsed as JSON (in many cases the browser         // will have done that already).         if (req.responseType === 'json' && typeof body === 'string') {           // Save the original body, before attempting XSSI prefix stripping.           const originalBody = body;           body = body.replace(XSSI_PREFIX, '');           try {             // Attempt the parse. If it fails, a parse error should be delivered to the user.             body = body !== '' ? JSON.parse(body) : null;           } catch (error) {             // Since the JSON.parse failed, it's reasonable to assume this might not have been a             // JSON response. Restore the original body (including any XSSI prefix) to deliver             // a better error response.             body = originalBody;              // If this was an error request to begin with, leave it as a string, it probably             // just isn't JSON. Otherwise, deliver the parsing error to the user.             if (ok) {               // Even though the response status was 2xx, this is still an error.               ok = false;               // The parse error contains the text of the body that failed to parse.               body = {error, text: body} as HttpJsonParseError;             }           }         }          if (ok) {           // A successful response is delivered on the event stream.           observer.next(new HttpResponse({             body,             headers,             status,             statusText,             url: url || undefined,           }));           // The full body has been received and delivered, no further events           // are possible. This request is complete.           observer.complete();         } else {           // An unsuccessful request is delivered on the error channel.           observer.error(new HttpErrorResponse({             // The error in this case is the response body (error from the server).             error: body,             headers,             status,             statusText,             url: url || undefined,           }));         }       };        // The onError callback is called when something goes wrong at the network level.       // Connection timeout, DNS error, offline, etc. These are actual errors, and are       // transmitted on the error channel.       const onError = (error: ProgressEvent) => {         const {url} = partialFromXhr();         const res = new HttpErrorResponse({           error,           status: xhr.status || 0,           statusText: xhr.statusText || 'Unknown Error',           url: url || undefined,         });         observer.error(res);       };        // The sentHeaders flag tracks whether the HttpResponseHeaders event       // has been sent on the stream. This is necessary to track if progress       // is enabled since the event will be sent on only the first download       // progress event.       let sentHeaders = false;        // The download progress event handler, which is only registered if       // progress events are enabled.       const onDownProgress = (event: ProgressEvent) => {         // Send the HttpResponseHeaders event if it hasn't been sent already.         if (!sentHeaders) {           observer.next(partialFromXhr());           sentHeaders = true;         }          // Start building the download progress event to deliver on the response         // event stream.         let progressEvent: HttpDownloadProgressEvent = {           type: HttpEventType.DownloadProgress,           loaded: event.loaded,         };          // Set the total number of bytes in the event if it's available.         if (event.lengthComputable) {           progressEvent.total = event.total;         }          // If the request was for text content and a partial response is         // available on XMLHttpRequest, include it in the progress event         // to allow for streaming reads.         if (req.responseType === 'text' && !!xhr.responseText) {           progressEvent.partialText = xhr.responseText;         }          // Finally, fire the event.         observer.next(progressEvent);       };        // The upload progress event handler, which is only registered if       // progress events are enabled.       const onUpProgress = (event: ProgressEvent) => {         // Upload progress events are simpler. Begin building the progress         // event.         let progress: HttpUploadProgressEvent = {           type: HttpEventType.UploadProgress,           loaded: event.loaded,         };          // If the total number of bytes being uploaded is available, include         // it.         if (event.lengthComputable) {           progress.total = event.total;         }          // Send the event.         observer.next(progress);       };        // By default, register for load and error events.       xhr.addEventListener('load', onLoad);       xhr.addEventListener('error', onError);       xhr.addEventListener('timeout', onError);       xhr.addEventListener('abort', onError);        // Progress events are only enabled if requested.       if (req.reportProgress) {         // Download progress is always enabled if requested.         xhr.addEventListener('progress', onDownProgress);          // Upload progress depends on whether there is a body to upload.         if (reqBody !== null && xhr.upload) {           xhr.upload.addEventListener('progress', onUpProgress);         }       }        // Fire the request, and notify the event stream that it was fired.       xhr.send(reqBody!);       observer.next({type: HttpEventType.Sent});        // This is the return from the Observable function, which is the       // request cancellation handler.       return () => {         // On a cancellation, remove all registered event listeners.         xhr.removeEventListener('error', onError);         xhr.removeEventListener('abort', onError);         xhr.removeEventListener('load', onLoad);         xhr.removeEventListener('timeout', onError);         if (req.reportProgress) {           xhr.removeEventListener('progress', onDownProgress);           if (reqBody !== null && xhr.upload) {             xhr.upload.removeEventListener('progress', onUpProgress);           }         }          // Finally, abort the in-flight request.         if (xhr.readyState !== xhr.DONE) {           xhr.abort();         }       };     });   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵparseCookieValue as parseCookieValue} from '@angular/common'; import {EnvironmentInjector, Inject, inject, Injectable, InjectionToken, PLATFORM_ID} from '@angular/core'; import {Observable} from 'rxjs';  import {HttpHandler} from './backend'; import {HttpHandlerFn, HttpInterceptor} from './interceptor'; import {HttpRequest} from './request'; import {HttpEvent} from './response';  export const XSRF_ENABLED = new InjectionToken<boolean>('XSRF_ENABLED');  export const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN'; export const XSRF_COOKIE_NAME = new InjectionToken<string>('XSRF_COOKIE_NAME', {   providedIn: 'root',   factory: () => XSRF_DEFAULT_COOKIE_NAME, });  export const XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN'; export const XSRF_HEADER_NAME = new InjectionToken<string>('XSRF_HEADER_NAME', {   providedIn: 'root',   factory: () => XSRF_DEFAULT_HEADER_NAME, });  /**  * Retrieves the current XSRF token to use with the next outgoing request.  *  * @publicApi  */ export abstract class HttpXsrfTokenExtractor {   /**    * Get the XSRF token to use with an outgoing request.    *    * Will be called for every request, so the token may change between requests.    */   abstract getToken(): string|null; }  /**  * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.  */ @Injectable() export class HttpXsrfCookieExtractor implements HttpXsrfTokenExtractor {   private lastCookieString: string = '';   private lastToken: string|null = null;    /**    * @internal for testing    */   parseCount: number = 0;    constructor(       @Inject(DOCUMENT) private doc: any, @Inject(PLATFORM_ID) private platform: string,       @Inject(XSRF_COOKIE_NAME) private cookieName: string) {}    getToken(): string|null {     if (this.platform === 'server') {       return null;     }     const cookieString = this.doc.cookie || '';     if (cookieString !== this.lastCookieString) {       this.parseCount++;       this.lastToken = parseCookieValue(cookieString, this.cookieName);       this.lastCookieString = cookieString;     }     return this.lastToken;   } }  export function xsrfInterceptorFn(     req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>> {   const lcUrl = req.url.toLowerCase();   // Skip both non-mutating requests and absolute URLs.   // Non-mutating requests don't require a token, and absolute URLs require special handling   // anyway as the cookie set   // on our origin is not the same as the token expected by another origin.   if (!inject(XSRF_ENABLED) || req.method === 'GET' || req.method === 'HEAD' ||       lcUrl.startsWith('http://') || lcUrl.startsWith('https://')) {     return next(req);   }    const token = inject(HttpXsrfTokenExtractor).getToken();   const headerName = inject(XSRF_HEADER_NAME);    // Be careful not to overwrite an existing header of the same name.   if (token != null && !req.headers.has(headerName)) {     req = req.clone({headers: req.headers.set(headerName, token)});   }   return next(req); }  /**  * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.  */ @Injectable() export class HttpXsrfInterceptor implements HttpInterceptor {   constructor(private injector: EnvironmentInjector) {}    intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {     return this.injector.runInContext(         () =>             xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentProviders, inject, InjectionToken, makeEnvironmentProviders, Provider} from '@angular/core';  import {HttpBackend, HttpHandler} from './backend'; import {HttpClient} from './client'; import {HTTP_INTERCEPTOR_FNS, HttpInterceptorFn, HttpInterceptorHandler, legacyInterceptorFnFactory} from './interceptor'; import {jsonpCallbackContext, JsonpCallbackContext, JsonpClientBackend, jsonpInterceptorFn} from './jsonp'; import {HttpXhrBackend} from './xhr'; import {HttpXsrfCookieExtractor, HttpXsrfTokenExtractor, XSRF_COOKIE_NAME, XSRF_ENABLED, XSRF_HEADER_NAME, xsrfInterceptorFn} from './xsrf';  /**  * Identifies a particular kind of `HttpFeature`.  *  * @publicApi  */ export enum HttpFeatureKind {   Interceptors,   LegacyInterceptors,   CustomXsrfConfiguration,   NoXsrfProtection,   JsonpSupport,   RequestsMadeViaParent, }  /**  * A feature for use when configuring `provideHttpClient`.  *  * @publicApi  */ export interface HttpFeature<KindT extends HttpFeatureKind> {   ɵkind: KindT;   ɵproviders: Provider[]; }  function makeHttpFeature<KindT extends HttpFeatureKind>(     kind: KindT, providers: Provider[]): HttpFeature<KindT> {   return {     ɵkind: kind,     ɵproviders: providers,   }; }  /**  * Configures Angular's `HttpClient` service to be available for injection.  *  * By default, `HttpClient` will be configured for injection with its default options for XSRF  * protection of outgoing requests. Additional configuration options can be provided by passing  * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the  * `withInterceptors(...)` feature.  *  * @see withInterceptors  * @see withInterceptorsFromDi  * @see withXsrfConfiguration  * @see withNoXsrfProtection  * @see withJsonpSupport  * @see withRequestsMadeViaParent  */ export function provideHttpClient(...features: HttpFeature<HttpFeatureKind>[]):     EnvironmentProviders {   if (ngDevMode) {     const featureKinds = new Set(features.map(f => f.ɵkind));     if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) &&         featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {       throw new Error(           ngDevMode ?               `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.` :               '');     }   }    const providers: Provider[] = [     HttpClient,     HttpXhrBackend,     HttpInterceptorHandler,     {provide: HttpHandler, useExisting: HttpInterceptorHandler},     {provide: HttpBackend, useExisting: HttpXhrBackend},     {       provide: HTTP_INTERCEPTOR_FNS,       useValue: xsrfInterceptorFn,       multi: true,     },     {provide: XSRF_ENABLED, useValue: true},     {provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor},   ];    for (const feature of features) {     providers.push(...feature.ɵproviders);   }    return makeEnvironmentProviders(providers); }  /**  * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`  * instance.  *  * @see HttpInterceptorFn  * @see provideHttpClient  * @publicApi  */ export function withInterceptors(interceptorFns: HttpInterceptorFn[]):     HttpFeature<HttpFeatureKind.Interceptors> {   return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map(interceptorFn => {     return {       provide: HTTP_INTERCEPTOR_FNS,       useValue: interceptorFn,       multi: true,     };   })); }  const LEGACY_INTERCEPTOR_FN = new InjectionToken<HttpInterceptorFn>('LEGACY_INTERCEPTOR_FN');  /**  * Includes class-based interceptors configured using a multi-provider in the current injector into  * the configured `HttpClient` instance.  *  * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided  * interceptors may be phased out in a later release.  *  * @see HttpInterceptor  * @see HTTP_INTERCEPTORS  * @see provideHttpClient  */ export function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors> {   // Note: the legacy interceptor function is provided here via an intermediate token   // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are   // included multiple times, all of the multi-provider entries will have the same instance of the   // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy   // interceptors will not run multiple times.   return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [     {       provide: LEGACY_INTERCEPTOR_FN,       useFactory: legacyInterceptorFnFactory,     },     {       provide: HTTP_INTERCEPTOR_FNS,       useExisting: LEGACY_INTERCEPTOR_FN,       multi: true,     }   ]); }  /**  * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.  *  * This feature is incompatible with the `withNoXsrfProtection` feature.  *  * @see provideHttpClient  */ export function withXsrfConfiguration(     {cookieName, headerName}: {cookieName?: string, headerName?: string}):     HttpFeature<HttpFeatureKind.CustomXsrfConfiguration> {   const providers: Provider[] = [];   if (cookieName !== undefined) {     providers.push({provide: XSRF_COOKIE_NAME, useValue: cookieName});   }   if (headerName !== undefined) {     providers.push({provide: XSRF_HEADER_NAME, useValue: headerName});   }    return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers); }  /**  * Disables XSRF protection in the configuration of the current `HttpClient` instance.  *  * This feature is incompatible with the `withXsrfConfiguration` feature.  *  * @see provideHttpClient  */ export function withNoXsrfProtection(): HttpFeature<HttpFeatureKind.NoXsrfProtection> {   return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [     {       provide: XSRF_ENABLED,       useValue: false,     },   ]); }  /**  * Add JSONP support to the configuration of the current `HttpClient` instance.  *  * @see provideHttpClient  */ export function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSupport> {   return makeHttpFeature(HttpFeatureKind.JsonpSupport, [     JsonpClientBackend,     {provide: JsonpCallbackContext, useFactory: jsonpCallbackContext},     {provide: HTTP_INTERCEPTOR_FNS, useValue: jsonpInterceptorFn, multi: true},   ]); }  /**  * Configures the current `HttpClient` instance to make requests via the parent injector's  * `HttpClient` instead of directly.  *  * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent  * instance. For example, even if `HttpClient` is configured in the parent injector with  * one or more interceptors, they will not intercept requests made via this instance.  *  * With this option enabled, once the request has passed through the current injector's  * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of  * dispatched directly, and interceptors in the parent configuration will be applied to the request.  *  * If there are several `HttpClient` instances in the injector hierarchy, it's possible for  * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to  * \"bubble up\" until either reaching the root level or an `HttpClient` which was not configured with  * this option.  *  * @see provideHttpClient  * @developerPreview  */ export function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind.RequestsMadeViaParent> {   return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [     {       provide: HttpBackend,       useFactory: () => {         const handlerFromParent = inject(HttpHandler, {skipSelf: true, optional: true});         if (ngDevMode && handlerFromParent === null) {           throw new Error(               'withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');         }         return handlerFromParent;       },     },   ]); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ModuleWithProviders, NgModule} from '@angular/core';  import {HTTP_INTERCEPTORS} from './interceptor'; import {provideHttpClient, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withXsrfConfiguration} from './provider'; import {HttpXsrfCookieExtractor, HttpXsrfInterceptor, HttpXsrfTokenExtractor, XSRF_DEFAULT_COOKIE_NAME, XSRF_DEFAULT_HEADER_NAME, XSRF_ENABLED} from './xsrf';  /**  * Configures XSRF protection support for outgoing requests.  *  * For a server that supports a cookie-based XSRF protection system,  * use directly to configure XSRF protection with the correct  * cookie and header names.  *  * If no names are supplied, the default cookie name is `XSRF-TOKEN`  * and the default header name is `X-XSRF-TOKEN`.  *  * @publicApi  */ @NgModule({   providers: [     HttpXsrfInterceptor,     {provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true},     {provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor},     withXsrfConfiguration({       cookieName: XSRF_DEFAULT_COOKIE_NAME,       headerName: XSRF_DEFAULT_HEADER_NAME,     }).ɵproviders,     {provide: XSRF_ENABLED, useValue: true},   ], }) export class HttpClientXsrfModule {   /**    * Disable the default XSRF protection.    */   static disable(): ModuleWithProviders<HttpClientXsrfModule> {     return {       ngModule: HttpClientXsrfModule,       providers: [         withNoXsrfProtection().ɵproviders,       ],     };   }    /**    * Configure XSRF protection.    * @param options An object that can specify either or both    * cookie name or header name.    * - Cookie name default is `XSRF-TOKEN`.    * - Header name default is `X-XSRF-TOKEN`.    *    */   static withOptions(options: {     cookieName?: string,     headerName?: string,   } = {}): ModuleWithProviders<HttpClientXsrfModule> {     return {       ngModule: HttpClientXsrfModule,       providers: withXsrfConfiguration(options).ɵproviders,     };   } }  /**  * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`  * with supporting services for XSRF. Automatically imported by `HttpClientModule`.  *  * You can add interceptors to the chain behind `HttpClient` by binding them to the  * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.  *  * @publicApi  */ @NgModule({   /**    * Configures the [dependency injector](guide/glossary#injector) where it is imported    * with supporting services for HTTP communications.    */   providers: [     provideHttpClient(withInterceptorsFromDi()),   ], }) export class HttpClientModule { }  /**  * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`  * with supporting services for JSONP.  * Without this module, Jsonp requests reach the backend  * with method JSONP, where they are rejected.  *  * @publicApi  */ @NgModule({   providers: [     withJsonpSupport().ɵproviders,   ], }) export class HttpClientJsonpModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {XhrFactory as XhrFactory_fromAngularCommon} from '@angular/common';  /**  * A wrapper around the `XMLHttpRequest` constructor.  *  * @publicApi  * @see `XhrFactory`  * @deprecated  * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.  */ export type XhrFactory = XhrFactory_fromAngularCommon; /**  * A wrapper around the `XMLHttpRequest` constructor.  *  * @publicApi  * @see `XhrFactory`  * @deprecated  * `XhrFactory` has moved, please import `XhrFactory` from `@angular/common` instead.  */ export const XhrFactory = XhrFactory_fromAngularCommon;  export {HttpBackend, HttpHandler} from './src/backend'; export {HttpClient} from './src/client'; export {HttpContext, HttpContextToken} from './src/context'; export {HttpHeaders} from './src/headers'; export {HTTP_INTERCEPTORS, HttpInterceptor, HttpInterceptorHandler as ɵHttpInterceptorHandler, HttpInterceptorFn, HttpHandlerFn} from './src/interceptor'; export {JsonpClientBackend, JsonpInterceptor} from './src/jsonp'; export {HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule} from './src/module'; export {HttpParameterCodec, HttpParams, HttpParamsOptions, HttpUrlEncodingCodec} from './src/params'; export {HttpFeature, HttpFeatureKind, provideHttpClient, withJsonpSupport, withNoXsrfProtection, withXsrfConfiguration, withInterceptors, withInterceptorsFromDi, withRequestsMadeViaParent} from './src/provider'; export {HttpRequest} from './src/request'; export {HttpDownloadProgressEvent, HttpErrorResponse, HttpEvent, HttpEventType, HttpHeaderResponse, HttpProgressEvent, HttpResponse, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUserEvent} from './src/response'; export {HttpXhrBackend} from './src/xhr'; export {HttpXsrfTokenExtractor} from './src/xsrf';  // This re-export exists because g3 depends on this old private name. export {HttpInterceptorHandler as ɵHttpInterceptingHandler} from './src/interceptor'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["i1.HttpHandler","i1.HttpBackend","parseCookieValue","XhrFactory_fromAngularCommon"],"mappings":";;;;;;;;;;;;;AAaA;;;;;;;;;;;AAWG;MACmB,WAAW,CAAA;AAEhC,CAAA;AAED;;;;;;;;;AASG;MACmB,WAAW,CAAA;AAEhC;;AC3BD;;;;;;AAMG;MACU,WAAW,CAAA;;AA0BtB,IAAA,WAAA,CAAY,OAAoD,EAAA;AAlBhE;;;AAGG;AACK,QAAA,IAAA,CAAA,eAAe,GAAwB,IAAI,GAAG,EAAE,CAAC;AAOzD;;AAEG;AACK,QAAA,IAAU,CAAA,UAAA,GAAkB,IAAI,CAAC;QAKvC,IAAI,CAAC,OAAO,EAAE;AACZ,YAAA,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAoB,CAAC;AAC5C,SAAA;AAAM,aAAA,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;AACtC,YAAA,IAAI,CAAC,QAAQ,GAAG,MAAK;AACnB,gBAAA,IAAI,CAAC,OAAO,GAAG,IAAI,GAAG,EAAoB,CAAC;gBAC3C,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,IAAG;oBACjC,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;oBAChC,IAAI,KAAK,GAAG,CAAC,EAAE;wBACb,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAClC,wBAAA,MAAM,GAAG,G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,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;8HAArB,qBAAqB,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,EAJrB,SAAA,EAAA;QACT,gBAAgB,EAAE,CAAC,UAAU;AAC9B,KAAA,EAAA,CAAA,CAAA;sGAEU,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBALjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,SAAS,EAAE;wBACT,gBAAgB,EAAE,CAAC,UAAU;AAC9B,qBAAA;iBACF,CAAA;;;ACpFD;;;;;;;AAOG;AACI,MAAM,UAAU,GAAGC;;ACnB1B;;ACRA;;AAEG;;;;"}
-------------------- SECTION 35 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/router/testing/src/router_testing_module.ts","../../../../../../packages/router/testing/src/router_testing_harness.ts","../../../../../../packages/router/testing/src/testing.ts","../../../../../../packages/router/testing/public_api.ts","../../../../../../packages/router/testing/index.ts","../../../../../../packages/router/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location} from '@angular/common'; import {provideLocationMocks} from '@angular/common/testing'; import {Compiler, inject, Injector, ModuleWithProviders, NgModule} from '@angular/core'; import {ChildrenOutletContexts, ExtraOptions, NoPreloading, Route, Router, ROUTER_CONFIGURATION, RouteReuseStrategy, RouterModule, ROUTES, Routes, TitleStrategy, UrlHandlingStrategy, UrlSerializer, ɵflatten as flatten, ɵROUTER_PROVIDERS as ROUTER_PROVIDERS, ɵwithPreloading as withPreloading} from '@angular/router';  function isUrlHandlingStrategy(opts: ExtraOptions|                                UrlHandlingStrategy): opts is UrlHandlingStrategy {   // This property check is needed because UrlHandlingStrategy is an interface and doesn't exist at   // runtime.   return 'shouldProcessUrl' in opts; }  function throwInvalidConfigError(parameter: string): never {   throw new Error(       `Parameter ${parameter} does not match the one available in the injector. ` +       '`setupTestingRouter` is meant to be used as a factory function with dependencies coming from DI.'); }  /**  * Router setup factory function used for testing.  *  * @publicApi  * @deprecated Use `provideRouter` or `RouterTestingModule` instead.  */ export function setupTestingRouter(     urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,     compiler: Compiler, injector: Injector, routes: Route[][],     opts?: ExtraOptions|UrlHandlingStrategy|null, urlHandlingStrategy?: UrlHandlingStrategy,     routeReuseStrategy?: RouteReuseStrategy, titleStrategy?: TitleStrategy) {   // Note: The checks below are to detect misconfigured providers and invalid uses of   // `setupTestingRouter`. This function is not used internally (neither in router code or anywhere   // in g3). It appears this function was exposed as publicApi by mistake and should not be used   // externally either. However, if it is, the documented intent is to be used as a factory function   // and parameter values should always match what's available in DI.   if (urlSerializer !== inject(UrlSerializer)) {     throwInvalidConfigError('urlSerializer');   }   if (contexts !== inject(ChildrenOutletContexts)) {     throwInvalidConfigError('contexts');   }   if (location !== inject(Location)) {     throwInvalidConfigError('location');   }   if (compiler !== inject(Compiler)) {     throwInvalidConfigError('compiler');   }   if (injector !== inject(Injector)) {     throwInvalidConfigError('injector');   }   if (routes !== inject(ROUTES)) {     throwInvalidConfigError('routes');   }   if (opts) {     // Handle deprecated argument ordering.     if (isUrlHandlingStrategy(opts)) {       if (opts !== inject(UrlHandlingStrategy)) {         throwInvalidConfigError('opts (UrlHandlingStrategy)');       }     } else {       if (opts !== inject(ROUTER_CONFIGURATION)) {         throwInvalidConfigError('opts (ROUTER_CONFIGURATION)');       }     }   }    if (urlHandlingStrategy !== inject(UrlHandlingStrategy)) {     throwInvalidConfigError('urlHandlingStrategy');   }    if (routeReuseStrategy !== inject(RouteReuseStrategy)) {     throwInvalidConfigError('routeReuseStrategy');   }    if (titleStrategy !== inject(TitleStrategy)) {     throwInvalidConfigError('titleStrategy');   }    return new Router(); }  /**  * @description  *  * Sets up the router to be used for testing.  *  * The modules sets up the router to be used for testing.  * It provides spy implementations of `Location` and `LocationStrategy`.  *  * @usageNotes  * ### Example  *  * ```  * beforeEach(() => {  *   TestBed.configureTestingModule({  *     imports: [  *       RouterTestingModule.withRoutes(  *         [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}]  *       )  *     ]  *   });  * });  * ```  *  * @publicApi  */ @NgModule({   exports: [RouterModule],   providers: [     ROUTER_PROVIDERS,     provideLocationMocks(),     withPreloading(NoPreloading).ɵproviders,     {provide: ROUTES, multi: true, useValue: []},   ] }) export class RouterTestingModule {   static withRoutes(routes: Routes, config?: ExtraOptions):       ModuleWithProviders<RouterTestingModule> {     return {       ngModule: RouterTestingModule,       providers: [         {provide: ROUTES, multi: true, useValue: routes},         {provide: ROUTER_CONFIGURATION, useValue: config ? config : {}},       ]     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Component, DebugElement, Injectable, Type, ViewChild} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {Router, RouterOutlet, ɵafterNextNavigation as afterNextNavigation} from '@angular/router';  @Injectable({providedIn: 'root'}) export class RootFixtureService {   private fixture?: ComponentFixture<RootCmp>;   private harness?: RouterTestingHarness;    createHarness(): RouterTestingHarness {     if (this.harness) {       throw new Error('Only one harness should be created per test.');     }     this.harness = new RouterTestingHarness(this.getRootFixture());     return this.harness;   }    private getRootFixture(): ComponentFixture<RootCmp> {     if (this.fixture !== undefined) {       return this.fixture;     }     this.fixture = TestBed.createComponent(RootCmp);     this.fixture.detectChanges();     return this.fixture;   } }  @Component({   standalone: true,   template: '<router-outlet></router-outlet>',   imports: [RouterOutlet], }) export class RootCmp {   @ViewChild(RouterOutlet) outlet?: RouterOutlet; }  /**  * A testing harness for the `Router` to reduce the boilerplate needed to test routes and routed  * components.  *  * @publicApi  */ export class RouterTestingHarness {   /**    * Creates a `RouterTestingHarness` instance.    *    * The `RouterTestingHarness` also creates its own root component with a `RouterOutlet` for the    * purposes of rendering route components.    *    * Throws an error if an instance has already been created.    * Use of this harness also requires `destroyAfterEach: true` in the `ModuleTeardownOptions`    *    * @param initialUrl The target of navigation to trigger before returning the harness.    */   static async create(initialUrl?: string): Promise<RouterTestingHarness> {     const harness = TestBed.inject(RootFixtureService).createHarness();     if (initialUrl !== undefined) {       await harness.navigateByUrl(initialUrl);     }     return harness;   }    /** @internal */   constructor(private readonly fixture: ComponentFixture<RootCmp>) {}    /** Instructs the root fixture to run change detection. */   detectChanges(): void {     this.fixture.detectChanges();   }   /** The `DebugElement` of the `RouterOutlet` component. `null` if the outlet is not activated. */   get routeDebugElement(): DebugElement|null {     const outlet = this.fixture.componentInstance.outlet;     if (!outlet || !outlet.isActivated) {       return null;     }     return this.fixture.debugElement.query(v => v.componentInstance === outlet.component);   }   /** The native element of the `RouterOutlet` component. `null` if the outlet is not activated. */   get routeNativeElement(): HTMLElement|null {     return this.routeDebugElement?.nativeElement ?? null;   }    /**    * Triggers a `Router` navigation and waits for it to complete.    *    * The root component with a `RouterOutlet` created for the harness is used to render `Route`    * components. The root component is reused within the same test in subsequent calls to    * `navigateForTest`.    *    * When testing `Routes` with a guards that reject the navigation, the `RouterOutlet` might not be    * activated and the `activatedComponent` may be `null`.    *    * {@example router/testing/test/router_testing_harness_examples.spec.ts region='Guard'}    *    * @param url The target of the navigation. Passed to `Router.navigateByUrl`.    * @returns The activated component instance of the `RouterOutlet` after navigation completes    *     (`null` if the outlet does not get activated).    */   async navigateByUrl(url: string): Promise<null|{}>;   /**    * Triggers a router navigation and waits for it to complete.    *    * The root component with a `RouterOutlet` created for the harness is used to render `Route`    * components.    *    * {@example router/testing/test/router_testing_harness_examples.spec.ts region='RoutedComponent'}    *    * The root component is reused within the same test in subsequent calls to `navigateByUrl`.    *    * This function also makes it easier to test components that depend on `ActivatedRoute` data.    *    * {@example router/testing/test/router_testing_harness_examples.spec.ts region='ActivatedRoute'}    *    * @param url The target of the navigation. Passed to `Router.navigateByUrl`.    * @param requiredRoutedComponentType After navigation completes, the required type for the    *     activated component of the `RouterOutlet`. If the outlet is not activated or a different    *     component is activated, this function will throw an error.    * @returns The activated component instance of the `RouterOutlet` after navigation completes.    */   async navigateByUrl<T>(url: string, requiredRoutedComponentType: Type<T>): Promise<T>;   async navigateByUrl<T>(url: string, requiredRoutedComponentType?: Type<T>): Promise<T|null> {     const router = TestBed.inject(Router);     let resolveFn!: () => void;     const redirectTrackingPromise = new Promise<void>(resolve => {       resolveFn = resolve;     });     afterNextNavigation(TestBed.inject(Router), resolveFn);     await router.navigateByUrl(url);     await redirectTrackingPromise;     this.fixture.detectChanges();     const outlet = this.fixture.componentInstance.outlet;     // The outlet might not be activated if the user is testing a navigation for a guard that     // rejects     if (outlet && outlet.isActivated && outlet.activatedRoute.component) {       const activatedComponent = outlet.component;       if (requiredRoutedComponentType !== undefined &&           !(activatedComponent instanceof requiredRoutedComponentType)) {         throw new Error(`Unexpected routed component type. Expected ${             requiredRoutedComponentType.name} but got ${activatedComponent.constructor.name}`);       }       return activatedComponent as T;     } else {       return null;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the router/testing package.  */ export * from './router_testing_module'; export {RouterTestingHarness} from './router_testing_harness'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["ROUTER_PROVIDERS","withPreloading","afterNextNavigation"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,qBAAqB,CAAC,IACmB,EAAA;;;IAGhD,OAAO,kBAAkB,IAAI,IAAI,CAAC;AACpC,CAAC;AAED,SAAS,uBAAuB,CAAC,SAAiB,EAAA;AAChD,IAAA,MAAM,IAAI,KAAK,CACX,CAAA,UAAA,EAAa,SAAS,CAAqD,mDAAA,CAAA;AAC3E,QAAA,kGAAkG,CAAC,CAAC;AAC1G,CAAC;AAED;;;;;AAKG;AACG,SAAU,kBAAkB,CAC9B,aAA4B,EAAE,QAAgC,EAAE,QAAkB,EAClF,QAAkB,EAAE,QAAkB,EAAE,MAAiB,EACzD,IAA4C,EAAE,mBAAyC,EACvF,kBAAuC,EAAE,aAA6B,EAAA;;;;;;AAMxE,IAAA,IAAI,aAAa,KAAK,MAAM,CAAC,aAAa,CAAC,EAAE;QAC3C,uBAAuB,CAAC,eAAe,CAAC,CAAC;AAC1C,KAAA;AACD,IAAA,IAAI,QAAQ,KAAK,MAAM,CAAC,sBAAsB,CAAC,EAAE;QAC/C,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACrC,KAAA;AACD,IAAA,IAAI,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE;QACjC,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACrC,KAAA;AACD,IAAA,IAAI,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE;QACjC,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACrC,KAAA;AACD,IAAA,IAAI,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,EAAE;QACjC,uBAAuB,CAAC,UAAU,CAAC,CAAC;AACrC,KAAA;AACD,IAAA,IAAI,MAAM,KAAK,MAAM,CAAC,MAAM,CAAC,EAAE;QAC7B,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SAAA;AAAM,aAAA;AACL,YAAA,OAAO,IAAI,CAAC;AACb,SAAA;KACF;AACF;;ACjJD;;;;AAIG;;ACJH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 36 --------------------
{"version":3,"file":"testing.mjs","sources":["../../../../../../packages/router/testing/src/router_testing_module.ts","../../../../../../packages/router/testing/src/router_testing_harness.ts","../../../../../../packages/router/testing/src/testing.ts","../../../../../../packages/router/testing/public_api.ts","../../../../../../packages/router/testing/index.ts","../../../../../../packages/router/testing/testing.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location} from '@angular/common'; import {provideLocationMocks} from '@angular/common/testing'; import {Compiler, inject, Injector, ModuleWithProviders, NgModule} from '@angular/core'; import {ChildrenOutletContexts, ExtraOptions, NoPreloading, Route, Router, ROUTER_CONFIGURATION, RouteReuseStrategy, RouterModule, ROUTES, Routes, TitleStrategy, UrlHandlingStrategy, UrlSerializer, ɵflatten as flatten, ɵROUTER_PROVIDERS as ROUTER_PROVIDERS, ɵwithPreloading as withPreloading} from '@angular/router';  function isUrlHandlingStrategy(opts: ExtraOptions|                                UrlHandlingStrategy): opts is UrlHandlingStrategy {   // This property check is needed because UrlHandlingStrategy is an interface and doesn't exist at   // runtime.   return 'shouldProcessUrl' in opts; }  function throwInvalidConfigError(parameter: string): never {   throw new Error(       `Parameter ${parameter} does not match the one available in the injector. ` +       '`setupTestingRouter` is meant to be used as a factory function with dependencies coming from DI.'); }  /**  * Router setup factory function used for testing.  *  * @publicApi  * @deprecated Use `provideRouter` or `RouterTestingModule` instead.  */ export function setupTestingRouter(     urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location,     compiler: Compiler, injector: Injector, routes: Route[][],     opts?: ExtraOptions|UrlHandlingStrategy|null, urlHandlingStrategy?: UrlHandlingStrategy,     routeReuseStrategy?: RouteReuseStrategy, titleStrategy?: TitleStrategy) {   // Note: The checks below are to detect misconfigured providers and invalid uses of   // `setupTestingRouter`. This function is not used internally (neither in router code or anywhere   // in g3). It appears this function was exposed as publicApi by mistake and should not be used   // externally either. However, if it is, the documented intent is to be used as a factory function   // and parameter values should always match what's available in DI.   if (urlSerializer !== inject(UrlSerializer)) {     throwInvalidConfigError('urlSerializer');   }   if (contexts !== inject(ChildrenOutletContexts)) {     throwInvalidConfigError('contexts');   }   if (location !== inject(Location)) {     throwInvalidConfigError('location');   }   if (compiler !== inject(Compiler)) {     throwInvalidConfigError('compiler');   }   if (injector !== inject(Injector)) {     throwInvalidConfigError('injector');   }   if (routes !== inject(ROUTES)) {     throwInvalidConfigError('routes');   }   if (opts) {     // Handle deprecated argument ordering.     if (isUrlHandlingStrategy(opts)) {       if (opts !== inject(UrlHandlingStrategy)) {         throwInvalidConfigError('opts (UrlHandlingStrategy)');       }     } else {       if (opts !== inject(ROUTER_CONFIGURATION)) {         throwInvalidConfigError('opts (ROUTER_CONFIGURATION)');       }     }   }    if (urlHandlingStrategy !== inject(UrlHandlingStrategy)) {     throwInvalidConfigError('urlHandlingStrategy');   }    if (routeReuseStrategy !== inject(RouteReuseStrategy)) {     throwInvalidConfigError('routeReuseStrategy');   }    if (titleStrategy !== inject(TitleStrategy)) {     throwInvalidConfigError('titleStrategy');   }    return new Router(); }  /**  * @description  *  * Sets up the router to be used for testing.  *  * The modules sets up the router to be used for testing.  * It provides spy implementations of `Location` and `LocationStrategy`.  *  * @usageNotes  * ### Example  *  * ```  * beforeEach(() => {  *   TestBed.configureTestingModule({  *     imports: [  *       RouterTestingModule.withRoutes(  *         [{path: '', component: BlankCmp}, {path: 'simple', component: SimpleCmp}]  *       )  *     ]  *   });  * });  * ```  *  * @publicApi  */ @NgModule({   exports: [RouterModule],   providers: [     ROUTER_PROVIDERS,     provideLocationMocks(),     withPreloading(NoPreloading).ɵproviders,     {provide: ROUTES, multi: true, useValue: []},   ] }) export class RouterTestingModule {   static withRoutes(routes: Routes, config?: ExtraOptions):       ModuleWithProviders<RouterTestingModule> {     return {       ngModule: RouterTestingModule,       providers: [         {provide: ROUTES, multi: true, useValue: routes},         {provide: ROUTER_CONFIGURATION, useValue: config ? config : {}},       ]     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Component, DebugElement, Injectable, Type, ViewChild} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {Router, RouterOutlet, ɵafterNextNavigation as afterNextNavigation} from '@angular/router';  @Injectable({providedIn: 'root'}) export class RootFixtureService {   private fixture?: ComponentFixture<RootCmp>;   private harness?: RouterTestingHarness;    createHarness(): RouterTestingHarness {     if (this.harness) {       throw new Error('Only one harness should be created per test.');     }     this.harness = new RouterTestingHarness(this.getRootFixture());     return this.harness;   }    private getRootFixture(): ComponentFixture<RootCmp> {     if (this.fixture !== undefined) {       return this.fixture;     }     this.fixture = TestBed.createComponent(RootCmp);     this.fixture.detectChanges();     return this.fixture;   } }  @Component({   standalone: true,   template: '<router-outlet></router-outlet>',   imports: [RouterOutlet], }) export class RootCmp {   @ViewChild(RouterOutlet) outlet?: RouterOutlet; }  /**  * A testing harness for the `Router` to reduce the boilerplate needed to test routes and routed  * components.  *  * @publicApi  */ export class RouterTestingHarness {   /**    * Creates a `RouterTestingHarness` instance.    *    * The `RouterTestingHarness` also creates its own root component with a `RouterOutlet` for the    * purposes of rendering route components.    *    * Throws an error if an instance has already been created.    * Use of this harness also requires `destroyAfterEach: true` in the `ModuleTeardownOptions`    *    * @param initialUrl The target of navigation to trigger before returning the harness.    */   static async create(initialUrl?: string): Promise<RouterTestingHarness> {     const harness = TestBed.inject(RootFixtureService).createHarness();     if (initialUrl !== undefined) {       await harness.navigateByUrl(initialUrl);     }     return harness;   }    /** @internal */   constructor(private readonly fixture: ComponentFixture<RootCmp>) {}    /** Instructs the root fixture to run change detection. */   detectChanges(): void {     this.fixture.detectChanges();   }   /** The `DebugElement` of the `RouterOutlet` component. `null` if the outlet is not activated. */   get routeDebugElement(): DebugElement|null {     const outlet = this.fixture.componentInstance.outlet;     if (!outlet || !outlet.isActivated) {       return null;     }     return this.fixture.debugElement.query(v => v.componentInstance === outlet.component);   }   /** The native element of the `RouterOutlet` component. `null` if the outlet is not activated. */   get routeNativeElement(): HTMLElement|null {     return this.routeDebugElement?.nativeElement ?? null;   }    /**    * Triggers a `Router` navigation and waits for it to complete.    *    * The root component with a `RouterOutlet` created for the harness is used to render `Route`    * components. The root component is reused within the same test in subsequent calls to    * `navigateForTest`.    *    * When testing `Routes` with a guards that reject the navigation, the `RouterOutlet` might not be    * activated and the `activatedComponent` may be `null`.    *    * {@example router/testing/test/router_testing_harness_examples.spec.ts region='Guard'}    *    * @param url The target of the navigation. Passed to `Router.navigateByUrl`.    * @returns The activated component instance of the `RouterOutlet` after navigation completes    *     (`null` if the outlet does not get activated).    */   async navigateByUrl(url: string): Promise<null|{}>;   /**    * Triggers a router navigation and waits for it to complete.    *    * The root component with a `RouterOutlet` created for the harness is used to render `Route`    * components.    *    * {@example router/testing/test/router_testing_harness_examples.spec.ts region='RoutedComponent'}    *    * The root component is reused within the same test in subsequent calls to `navigateByUrl`.    *    * This function also makes it easier to test components that depend on `ActivatedRoute` data.    *    * {@example router/testing/test/router_testing_harness_examples.spec.ts region='ActivatedRoute'}    *    * @param url The target of the navigation. Passed to `Router.navigateByUrl`.    * @param requiredRoutedComponentType After navigation completes, the required type for the    *     activated component of the `RouterOutlet`. If the outlet is not activated or a different    *     component is activated, this function will throw an error.    * @returns The activated component instance of the `RouterOutlet` after navigation completes.    */   async navigateByUrl<T>(url: string, requiredRoutedComponentType: Type<T>): Promise<T>;   async navigateByUrl<T>(url: string, requiredRoutedComponentType?: Type<T>): Promise<T|null> {     const router = TestBed.inject(Router);     let resolveFn!: () => void;     const redirectTrackingPromise = new Promise<void>(resolve => {       resolveFn = resolve;     });     afterNextNavigation(TestBed.inject(Router), resolveFn);     await router.navigateByUrl(url);     await redirectTrackingPromise;     this.fixture.detectChanges();     const outlet = this.fixture.componentInstance.outlet;     // The outlet might not be activated if the user is testing a navigation for a guard that     // rejects     if (outlet && outlet.isActivated && outlet.activatedRoute.component) {       const activatedComponent = outlet.component;       if (requiredRoutedComponentType !== undefined &&           !(activatedComponent instanceof requiredRoutedComponentType)) {         throw new Error(`Unexpected routed component type. Expected ${             requiredRoutedComponentType.name} but got ${activatedComponent.constructor.name}`);       }       return activatedComponent as T;     } else {       return null;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the router/testing package.  */ export * from './router_testing_module'; export {RouterTestingHarness} from './router_testing_harness'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/testing';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["ROUTER_PROVIDERS","withPreloading","afterNextNavigation"],"mappings":";;;;;;;;;;;;;;AAaA,SAAS,qBAAqB,CAAC,IACmB,EAAA;;;IAGhD,OAAO,kBAAkB,IAAI,IAAI,CAAC;AACpC,CAAC;AAED,SAAS,uBAAuB,CAAC,SAAiB,EAAA;AAChD,IAAA,MAAM,IAAI,KAAK,CACX,CAAA,UAAA,EAAa,SAAS,CAAqD,mDAAA,CAAA;AAC3E,QAAA,kGAAkG,CAAC,CAAC;AAC1G,CAAC;AAED;;;;;AAKG;AACG,S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AAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACtC,YAAA,IAAI,SAAsB,CAAC;AAC3B,YAAA,MAAM,uBAAuB,GAAG,IAAI,OAAO,CAAO,OAAO,IAAG;gBAC1D,SAAS,GAAG,OAAO,CAAC;AACtB,aAAC,CAAC,CAAC;YACHC,oBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC;AACvD,YAAA,MAAM,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AAChC,YAAA,MAAM,uBAAuB,CAAC;AAC9B,YAAA,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;YAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,MAAM,CAAC;;;YAGrD,IAAI,MAAM,IAAI,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE;AACnE,gBAAA,MAAM,kBAAkB,GAAG,MAAM,CAAC,SAAS,CAAC;gBAC5C,IAAI,2BAA2B,KAAK,SAAS;AACzC,oBAAA,EAAE,kBAAkB,YAAY,2BAA2B,CAAC,EAAE;AAChE,oBAAA,MAAM,IAAI,KAAK,CAAC,CAAA,2CAAA,EACZ,2BAA2B,CAAC,IAAI,CAAY,SAAA,EAAA,kBAAkB,CAAC,WAAW,CAAC,IAAI,CAAA,CAAE,CAAC,CAAC;AACxF,iBAAA;AACD,gBAAA,OAAO,kBAAuB,CAAC;AAChC,aAAA;AAAM,iBAAA;AACL,gBAAA,OAAO,IAAI,CAAC;AACb,aAAA;SACF,CAAA,CAAA;AAAA,KAAA;AACF;;ACjJD;;;;AAIG;;ACJH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 37 --------------------
{"version":3,"file":"platform-browser.mjs","sources":["../../../../../../packages/platform-browser/src/browser/generic_browser_adapter.ts","../../../../../../packages/platform-browser/src/browser/browser_adapter.ts","../../../../../../packages/platform-browser/src/browser/server-transition.ts","../../../../../../packages/platform-browser/src/browser/testability.ts","../../../../../../packages/platform-browser/src/browser/xhr.ts","../../../../../../packages/platform-browser/src/dom/events/event_manager.ts","../../../../../../packages/platform-browser/src/dom/shared_styles_host.ts","../../../../../../packages/platform-browser/src/dom/dom_renderer.ts","../../../../../../packages/platform-browser/src/dom/events/dom_events.ts","../../../../../../packages/platform-browser/src/dom/events/key_events.ts","../../../../../../packages/platform-browser/src/browser.ts","../../../../../../packages/platform-browser/src/browser/meta.ts","../../../../../../packages/platform-browser/src/browser/title.ts","../../../../../../packages/platform-browser/src/dom/util.ts","../../../../../../packages/platform-browser/src/browser/tools/browser.ts","../../../../../../packages/platform-browser/src/browser/tools/common_tools.ts","../../../../../../packages/platform-browser/src/browser/tools/tools.ts","../../../../../../packages/platform-browser/src/browser/transfer_state.ts","../../../../../../packages/platform-browser/src/dom/debug/by.ts","../../../../../../packages/platform-browser/src/dom/events/hammer_gestures.ts","../../../../../../packages/platform-browser/src/security/dom_sanitization_service.ts","../../../../../../packages/platform-browser/src/version.ts","../../../../../../packages/platform-browser/public_api.ts","../../../../../../packages/platform-browser/index.ts","../../../../../../packages/platform-browser/platform-browser.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵDomAdapter as DomAdapter} from '@angular/common';    /**  * Provides DOM operations in any browser environment.  *  * @security Tread carefully! Interacting with the DOM directly is dangerous and  * can introduce XSS risks.  */ export abstract class GenericBrowserDomAdapter extends DomAdapter {   readonly supportsDOMEvents: boolean = true; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵparseCookieValue as parseCookieValue, ɵsetRootDomAdapter as setRootDomAdapter} from '@angular/common';  import {GenericBrowserDomAdapter} from './generic_browser_adapter';  /**  * A `DomAdapter` powered by full browser DOM APIs.  *  * @security Tread carefully! Interacting with the DOM directly is dangerous and  * can introduce XSS risks.  */ /* tslint:disable:requireParameterType no-console */ export class BrowserDomAdapter extends GenericBrowserDomAdapter {   static makeCurrent() {     setRootDomAdapter(new BrowserDomAdapter());   }    onAndCancel(el: Node, evt: any, listener: any): Function {     el.addEventListener(evt, listener, false);     // Needed to follow Dart's subscription semantic, until fix of     // https://code.google.com/p/dart/issues/detail?id=17406     return () => {       el.removeEventListener(evt, listener, false);     };   }   dispatchEvent(el: Node, evt: any) {     el.dispatchEvent(evt);   }   remove(node: Node): void {     if (node.parentNode) {       node.parentNode.removeChild(node);     }   }   createElement(tagName: string, doc?: Document): HTMLElement {     doc = doc || this.getDefaultDocument();     return doc.createElement(tagName);   }   createHtmlDocument(): Document {     return document.implementation.createHTMLDocument('fakeTitle');   }   getDefaultDocument(): Document {     return document;   }    isElementNode(node: Node): boolean {     return node.nodeType === Node.ELEMENT_NODE;   }    isShadowRoot(node: any): boolean {     return node instanceof DocumentFragment;   }    /** @deprecated No longer being used in Ivy code. To be removed in version 14. */   getGlobalEventTarget(doc: Document, target: string): EventTarget|null {     if (target === 'window') {       return window;     }     if (target === 'document') {       return doc;     }     if (target === 'body') {       return doc.body;     }     return null;   }   getBaseHref(doc: Document): string|null {     const href = getBaseElementHref();     return href == null ? null : relativePath(href);   }   resetBaseElement(): void {     baseElement = null;   }   getUserAgent(): string {     return window.navigator.userAgent;   }   getCookie(name: string): string|null {     return parseCookieValue(document.cookie, name);   } }  let baseElement: HTMLElement|null = null; function getBaseElementHref(): string|null {   baseElement = baseElement || document.querySelector('base');   return baseElement ? baseElement.getAttribute('href') : null; }  // based on urlUtils.js in AngularJS 1 let urlParsingNode: HTMLAnchorElement|undefined; function relativePath(url: any): string {   urlParsingNode = urlParsingNode || document.createElement('a');   urlParsingNode.setAttribute('href', url);   const pathName = urlParsingNode.pathname;   return pathName.charAt(0) === '/' ? pathName : `/${pathName}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {APP_INITIALIZER, ApplicationInitStatus, InjectionToken, Injector, StaticProvider} from '@angular/core';  /**  * An id that identifies a particular application being bootstrapped, that should  * match across the client/server boundary.  */ export const TRANSITION_ID = new InjectionToken('TRANSITION_ID');  export function appInitializerFactory(transitionId: string, document: any, injector: Injector) {   return () => {     // Wait for all application initializers to be completed before removing the styles set by     // the server.     injector.get(ApplicationInitStatus).donePromise.then(() => {       const dom = getDOM();       const styles: HTMLCollectionOf<HTMLStyleElement> =           document.querySelectorAll(`style[ng-transition=\"${transitionId}\"]`);       for (let i = 0; i < styles.length; i++) {         dom.remove(styles[i]);       }     });   }; }  export const SERVER_TRANSITION_PROVIDERS: StaticProvider[] = [   {     provide: APP_INITIALIZER,     useFactory: appInitializerFactory,     deps: [TRANSITION_ID, DOCUMENT, Injector],     multi: true   }, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {GetTestability, Testability, TestabilityRegistry, ɵglobal as global} from '@angular/core';  export class BrowserGetTestability implements GetTestability {   addToWindow(registry: TestabilityRegistry): void {     global['getAngularTestability'] = (elem: any, findInAncestors: boolean = true) => {       const testability = registry.findTestabilityInTree(elem, findInAncestors);       if (testability == null) {         throw new Error('Could not find testability for element.');       }       return testability;     };      global['getAllAngularTestabilities'] = () => registry.getAllTestabilities();      global['getAllAngularRootElements'] = () => registry.getAllRootElements();      const whenAllStable = (callback: any /** TODO #9100 */) => {       const testabilities = global['getAllAngularTestabilities']();       let count = testabilities.length;       let didWork = false;       const decrement = function(didWork_: any /** TODO #9100 */) {         didWork = didWork || didWork_;         count--;         if (count == 0) {           callback(didWork);         }       };       testabilities.forEach(function(testability: any /** TODO #9100 */) {         testability.whenStable(decrement);       });     };      if (!global['frameworkStabilizers']) {       global['frameworkStabilizers'] = [];     }     global['frameworkStabilizers'].push(whenAllStable);   }    findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean):       Testability|null {     if (elem == null) {       return null;     }     const t = registry.getTestability(elem);     if (t != null) {       return t;     } else if (!findInAncestors) {       return null;     }     if (getDOM().isShadowRoot(elem)) {       return this.findTestabilityInTree(registry, (<any>elem).host, true);     }     return this.findTestabilityInTree(registry, elem.parentElement, true);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {XhrFactory} from '@angular/common'; import {Injectable} from '@angular/core';  /**  * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.  */ @Injectable() export class BrowserXhr implements XhrFactory {   build(): XMLHttpRequest {     return new XMLHttpRequest();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, InjectionToken, NgZone} from '@angular/core';  /**  * The injection token for the event-manager plug-in service.  *  * @publicApi  */ export const EVENT_MANAGER_PLUGINS =     new InjectionToken<EventManagerPlugin[]>('EventManagerPlugins');  /**  * An injectable service that provides event management for Angular  * through a browser plug-in.  *  * @publicApi  */ @Injectable() export class EventManager {   private _plugins: EventManagerPlugin[];   private _eventNameToPlugin = new Map<string, EventManagerPlugin>();    /**    * Initializes an instance of the event-manager service.    */   constructor(@Inject(EVENT_MANAGER_PLUGINS) plugins: EventManagerPlugin[], private _zone: NgZone) {     plugins.forEach(p => p.manager = this);     this._plugins = plugins.slice().reverse();   }    /**    * Registers a handler for a specific element and event.    *    * @param element The HTML element to receive event notifications.    * @param eventName The name of the event to listen for.    * @param handler A function to call when the notification occurs. Receives the    * event object as an argument.    * @returns  A callback function that can be used to remove the handler.    */   addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     const plugin = this._findPluginFor(eventName);     return plugin.addEventListener(element, eventName, handler);   }    /**    * Registers a global handler for an event in a target view.    *    * @param target A target for global event notifications. One of \"window\", \"document\", or \"body\".    * @param eventName The name of the event to listen for.    * @param handler A function to call when the notification occurs. Receives the    * event object as an argument.    * @returns A callback function that can be used to remove the handler.    * @deprecated No longer being used in Ivy code. To be removed in version 14.    */   addGlobalEventListener(target: string, eventName: string, handler: Function): Function {     const plugin = this._findPluginFor(eventName);     return plugin.addGlobalEventListener(target, eventName, handler);   }    /**    * Retrieves the compilation zone in which event listeners are registered.    */   getZone(): NgZone {     return this._zone;   }    /** @internal */   _findPluginFor(eventName: string): EventManagerPlugin {     const plugin = this._eventNameToPlugin.get(eventName);     if (plugin) {       return plugin;     }      const plugins = this._plugins;     for (let i = 0; i < plugins.length; i++) {       const plugin = plugins[i];       if (plugin.supports(eventName)) {         this._eventNameToPlugin.set(eventName, plugin);         return plugin;       }     }     throw new Error(`No event manager plugin found for event ${eventName}`);   } }  export abstract class EventManagerPlugin {   constructor(private _doc: any) {}    // TODO(issue/24571): remove '!'.   manager!: EventManager;    abstract supports(eventName: string): boolean;    abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;    addGlobalEventListener(element: string, eventName: string, handler: Function): Function {     const target: HTMLElement = getDOM().getGlobalEventTarget(this._doc, element);     if (!target) {       throw new Error(`Unsupported event target ${target} for event ${eventName}`);     }     return this.addEventListener(target, eventName, handler);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {Inject, Injectable, OnDestroy} from '@angular/core';  @Injectable() export class SharedStylesHost implements OnDestroy {   private readonly usageCount = new Map<string /** Style string */, number /** Usage count */>();    addStyles(styles: string[]): void {     for (const style of styles) {       const usageCount = this.changeUsageCount(style, 1);        if (usageCount === 1) {         this.onStyleAdded(style);       }     }   }    removeStyles(styles: string[]): void {     for (const style of styles) {       const usageCount = this.changeUsageCount(style, -1);        if (usageCount === 0) {         this.onStyleRemoved(style);       }     }   }    onStyleRemoved(style: string): void {}    onStyleAdded(style: string): void {}    getAllStyles(): IterableIterator<string> {     return this.usageCount.keys();   }    private changeUsageCount(style: string, delta: number): number {     const map = this.usageCount;     let usage = map.get(style) ?? 0;     usage += delta;      if (usage > 0) {       map.set(style, usage);     } else {       map.delete(style);     }      return usage;   }    ngOnDestroy(): void {     for (const style of this.getAllStyles()) {       this.onStyleRemoved(style);     }      this.usageCount.clear();   } }  @Injectable() export class DomSharedStylesHost extends SharedStylesHost implements OnDestroy {   // Maps all registered host nodes to a list of style nodes that have been added to the host node.   private readonly styleRef = new Map<string, HTMLStyleElement[]>();   private hostNodes = new Set<Node>();    constructor(@Inject(DOCUMENT) private readonly doc: any) {     super();     this.resetHostNodes();   }    override onStyleAdded(style: string): void {     for (const host of this.hostNodes) {       this.addStyleToHost(host, style);     }   }    override onStyleRemoved(style: string): void {     const styleRef = this.styleRef;     const styleElements = styleRef.get(style);     styleElements?.forEach(e => e.remove());     styleRef.delete(style);   }    override ngOnDestroy(): void {     super.ngOnDestroy();     this.styleRef.clear();     this.resetHostNodes();   }    addHost(hostNode: Node): void {     this.hostNodes.add(hostNode);      for (const style of this.getAllStyles()) {       this.addStyleToHost(hostNode, style);     }   }    removeHost(hostNode: Node): void {     this.hostNodes.delete(hostNode);   }    private addStyleToHost(host: Node, style: string): void {     const styleEl = this.doc.createElement('style');     styleEl.textContent = style;     host.appendChild(styleEl);      const styleElRef = this.styleRef.get(style);     if (styleElRef) {       styleElRef.push(styleEl);     } else {       this.styleRef.set(style, [styleEl]);     }   }    private resetHostNodes(): void {     const hostNodes = this.hostNodes;     hostNodes.clear();     // Re-add the head element back since this is the default host.     hostNodes.add(this.doc.head);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {APP_ID, Inject, Injectable, InjectionToken, OnDestroy, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, ViewEncapsulation} from '@angular/core';  import {EventManager} from './events/event_manager'; import {DomSharedStylesHost} from './shared_styles_host';  export const NAMESPACE_URIS: {[ns: string]: string} = {   'svg': 'http://www.w3.org/2000/svg',   'xhtml': 'http://www.w3.org/1999/xhtml',   'xlink': 'http://www.w3.org/1999/xlink',   'xml': 'http://www.w3.org/XML/1998/namespace',   'xmlns': 'http://www.w3.org/2000/xmlns/',   'math': 'http://www.w3.org/1998/MathML/', };  const COMPONENT_REGEX = /%COMP%/g; const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  export const COMPONENT_VARIABLE = '%COMP%'; export const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`; export const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;  /**  * The default value for the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token.  */ const REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = false;  /**  * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates whether styles  * of destroyed components should be removed from DOM.  *  * By default, the value is set to `false`. This will be changed in the next major version.  * @publicApi  */ export const REMOVE_STYLES_ON_COMPONENT_DESTROY =     new InjectionToken<boolean>('RemoveStylesOnCompDestory', {       providedIn: 'root',       factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT,     });  export function shimContentAttribute(componentShortId: string): string {   return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId); }  export function shimHostAttribute(componentShortId: string): string {   return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId); }  export function flattenStyles(compId: string, styles: Array<string|string[]>): string[] {   // Cannot use `Infinity` as depth as `infinity` is not a number literal in TypeScript.   // See: https://github.com/microsoft/TypeScript/issues/32277   return styles.flat(100).map(s => s.replace(COMPONENT_REGEX, compId)); }  function decoratePreventDefault(eventHandler: Function): Function {   // `DebugNode.triggerEventHandler` needs to know if the listener was created with   // decoratePreventDefault or is a listener added outside the Angular context so it can handle the   // two differently. In the first case, the special '__ngUnwrap__' token is passed to the unwrap   // the listener (see below).   return (event: any) => {     // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function     // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The debug_node     // can inspect the listener toString contents for the existence of this special token. Because     // the token is a string literal, it is ensured to not be modified by compiled code.     if (event === '__ngUnwrap__') {       return eventHandler;     }      const allowDefaultBehavior = eventHandler(event);     if (allowDefaultBehavior === false) {       // TODO(tbosch): move preventDefault into event plugins...       event.preventDefault();       event.returnValue = false;     }      return undefined;   }; }  @Injectable() export class DomRendererFactory2 implements RendererFactory2, OnDestroy {   private rendererByCompId =       new Map<string, EmulatedEncapsulationDomRenderer2|NoneEncapsulationDomRenderer>();   private defaultRenderer: Renderer2;    constructor(       private eventManager: EventManager, private sharedStylesHost: DomSharedStylesHost,       @Inject(APP_ID) private appId: string,       @Inject(REMOVE_STYLES_ON_COMPONENT_DESTROY) private removeStylesOnCompDestory: boolean) {     this.defaultRenderer = new DefaultDomRenderer2(eventManager);   }    createRenderer(element: any, type: RendererType2|null): Renderer2 {     if (!element || !type) {       return this.defaultRenderer;     }      const renderer = this.getOrCreateRenderer(element, type);      // Renderers have different logic due to different encapsulation behaviours.     // Ex: for emulated, an attribute is added to the element.     if (renderer instanceof EmulatedEncapsulationDomRenderer2) {       renderer.applyToHost(element);     } else if (renderer instanceof NoneEncapsulationDomRenderer) {       renderer.applyStyles();     }      return renderer;   }    private getOrCreateRenderer(element: any, type: RendererType2): Renderer2 {     const rendererByCompId = this.rendererByCompId;     let renderer = rendererByCompId.get(type.id);      if (!renderer) {       const eventManager = this.eventManager;       const sharedStylesHost = this.sharedStylesHost;       const removeStylesOnCompDestory = this.removeStylesOnCompDestory;        switch (type.encapsulation) {         case ViewEncapsulation.Emulated:           renderer = new EmulatedEncapsulationDomRenderer2(               eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestory);           break;         case ViewEncapsulation.ShadowDom:           return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type);         default:           renderer = new NoneEncapsulationDomRenderer(               eventManager, sharedStylesHost, type, removeStylesOnCompDestory);           break;       }        renderer.onDestroy = () => rendererByCompId.delete(type.id);       rendererByCompId.set(type.id, renderer);     }      return renderer;   }    ngOnDestroy() {     this.rendererByCompId.clear();   }    begin() {}   end() {} }  class DefaultDomRenderer2 implements Renderer2 {   data: {[key: string]: any} = Object.create(null);    constructor(private eventManager: EventManager) {}    destroy(): void {}    destroyNode = null;    createElement(name: string, namespace?: string): any {     if (namespace) {       // TODO: `|| namespace` was added in       // https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to       // support how Ivy passed around the namespace URI rather than short name at the time. It did       // not, however extend the support to other parts of the system (setAttribute, setAttribute,       // and the ServerRenderer). We should decide what exactly the semantics for dealing with       // namespaces should be and make it consistent.       // Related issues:       // https://github.com/angular/angular/issues/44028       // https://github.com/angular/angular/issues/44883       return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);     }      return document.createElement(name);   }    createComment(value: string): any {     return document.createComment(value);   }    createText(value: string): any {     return document.createTextNode(value);   }    appendChild(parent: any, newChild: any): void {     const targetParent = isTemplateNode(parent) ? parent.content : parent;     targetParent.appendChild(newChild);   }    insertBefore(parent: any, newChild: any, refChild: any): void {     if (parent) {       const targetParent = isTemplateNode(parent) ? parent.content : parent;       targetParent.insertBefore(newChild, refChild);     }   }    removeChild(parent: any, oldChild: any): void {     if (parent) {       parent.removeChild(oldChild);     }   }    selectRootElement(selectorOrNode: string|any, preserveContent?: boolean): any {     let el: any = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :                                                        selectorOrNode;     if (!el) {       throw new Error(`The selector \"${selectorOrNode}\" did not match any elements`);     }     if (!preserveContent) {       el.textContent = '';     }     return el;   }    parentNode(node: any): any {     return node.parentNode;   }    nextSibling(node: any): any {     return node.nextSibling;   }    setAttribute(el: any, name: string, value: string, namespace?: string): void {     if (namespace) {       name = namespace + ':' + name;       const namespaceUri = NAMESPACE_URIS[namespace];       if (namespaceUri) {         el.setAttributeNS(namespaceUri, name, value);       } else {         el.setAttribute(name, value);       }     } else {       el.setAttribute(name, value);     }   }    removeAttribute(el: any, name: string, namespace?: string): void {     if (namespace) {       const namespaceUri = NAMESPACE_URIS[namespace];       if (namespaceUri) {         el.removeAttributeNS(namespaceUri, name);       } else {         el.removeAttribute(`${namespace}:${name}`);       }     } else {       el.removeAttribute(name);     }   }    addClass(el: any, name: string): void {     el.classList.add(name);   }    removeClass(el: any, name: string): void {     el.classList.remove(name);   }    setStyle(el: any, style: string, value: any, flags: RendererStyleFlags2): void {     if (flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {       el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');     } else {       el.style[style] = value;     }   }    removeStyle(el: any, style: string, flags: RendererStyleFlags2): void {     if (flags & RendererStyleFlags2.DashCase) {       el.style.removeProperty(style);     } else {       // IE requires '' instead of null       // see https://github.com/angular/angular/issues/7916       el.style[style] = '';     }   }    setProperty(el: any, name: string, value: any): void {     NG_DEV_MODE && checkNoSyntheticProp(name, 'property');     el[name] = value;   }    setValue(node: any, value: string): void {     node.nodeValue = value;   }    listen(target: 'window'|'document'|'body'|any, event: string, callback: (event: any) => boolean):       () => void {     NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');     if (typeof target === 'string') {       return <() => void>this.eventManager.addGlobalEventListener(           target, event, decoratePreventDefault(callback));     }     return <() => void>this.eventManager.addEventListener(                target, event, decoratePreventDefault(callback)) as () => void;   } }  const AT_CHARCODE = (() => '@'.charCodeAt(0))(); function checkNoSyntheticProp(name: string, nameKind: string) {   if (name.charCodeAt(0) === AT_CHARCODE) {     throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:   - Either \\`BrowserAnimationsModule\\` or \\`NoopAnimationsModule\\` are imported in your application.   - There is corresponding configuration for the animation named \\`${         name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.io/api/core/Component#animations).`);   } }   function isTemplateNode(node: any): node is HTMLTemplateElement {   return node.tagName === 'TEMPLATE' && node.content !== undefined; }  class ShadowDomRenderer extends DefaultDomRenderer2 {   private shadowRoot: any;    constructor(       eventManager: EventManager, private sharedStylesHost: DomSharedStylesHost,       private hostEl: any, component: RendererType2) {     super(eventManager);     this.shadowRoot = (hostEl as any).attachShadow({mode: 'open'});      this.sharedStylesHost.addHost(this.shadowRoot);     const styles = flattenStyles(component.id, component.styles);      for (const style of styles) {       const styleEl = document.createElement('style');       styleEl.textContent = style;       this.shadowRoot.appendChild(styleEl);     }   }    private nodeOrShadowRoot(node: any): any {     return node === this.hostEl ? this.shadowRoot : node;   }    override appendChild(parent: any, newChild: any): void {     return super.appendChild(this.nodeOrShadowRoot(parent), newChild);   }   override insertBefore(parent: any, newChild: any, refChild: any): void {     return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);   }   override removeChild(parent: any, oldChild: any): void {     return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);   }   override parentNode(node: any): any {     return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));   }    override destroy() {     this.sharedStylesHost.removeHost(this.shadowRoot);   } }  class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {   private readonly styles: string[];   private rendererUsageCount = 0;   onDestroy: VoidFunction|undefined;    constructor(       eventManager: EventManager,       private readonly sharedStylesHost: DomSharedStylesHost,       component: RendererType2,       private removeStylesOnCompDestory: boolean,       compId = component.id,   ) {     super(eventManager);     this.styles = flattenStyles(compId, component.styles);   }    applyStyles(): void {     this.sharedStylesHost.addStyles(this.styles);     this.rendererUsageCount++;   }    override destroy(): void {     if (!this.removeStylesOnCompDestory) {       return;     }      this.sharedStylesHost.removeStyles(this.styles);     this.rendererUsageCount--;     if (this.rendererUsageCount === 0) {       this.onDestroy?.();     }   } }  class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {   private contentAttr: string;   private hostAttr: string;    constructor(       eventManager: EventManager, sharedStylesHost: DomSharedStylesHost, component: RendererType2,       appId: string, removeStylesOnCompDestory: boolean) {     const compId = appId + '-' + component.id;     super(eventManager, sharedStylesHost, component, removeStylesOnCompDestory, compId);     this.contentAttr = shimContentAttribute(compId);     this.hostAttr = shimHostAttribute(compId);   }    applyToHost(element: any): void {     this.applyStyles();     this.setAttribute(element, this.hostAttr, '');   }    override createElement(parent: any, name: string): Element {     const el = super.createElement(parent, name);     super.setAttribute(el, this.contentAttr, '');     return el;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {Inject, Injectable} from '@angular/core';  import {EventManagerPlugin} from './event_manager';  @Injectable() export class DomEventsPlugin extends EventManagerPlugin {   constructor(@Inject(DOCUMENT) doc: any) {     super(doc);   }    // This plugin should come last in the list of plugins, because it accepts all   // events.   override supports(eventName: string): boolean {     return true;   }    override addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     element.addEventListener(eventName, handler as EventListener, false);     return () => this.removeEventListener(element, eventName, handler as EventListener);   }    removeEventListener(target: any, eventName: string, callback: Function): void {     return target.removeEventListener(eventName, callback as EventListener);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, NgZone} from '@angular/core';  import {EventManagerPlugin} from './event_manager';  /**  * Defines supported modifiers for key events.  */ const MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];  // The following values are here for cross-browser compatibility and to match the W3C standard // cf https://www.w3.org/TR/DOM-Level-3-Events-key/ const _keyMap: {[k: string]: string} = {   '\\b': 'Backspace',   '\ ': 'Tab',   '\\x7F': 'Delete',   '\\x1B': 'Escape',   'Del': 'Delete',   'Esc': 'Escape',   'Left': 'ArrowLeft',   'Right': 'ArrowRight',   'Up': 'ArrowUp',   'Down': 'ArrowDown',   'Menu': 'ContextMenu',   'Scroll': 'ScrollLock',   'Win': 'OS' };  /**  * Retrieves modifiers from key-event objects.  */ const MODIFIER_KEY_GETTERS: {[key: string]: (event: KeyboardEvent) => boolean} = {   'alt': (event: KeyboardEvent) => event.altKey,   'control': (event: KeyboardEvent) => event.ctrlKey,   'meta': (event: KeyboardEvent) => event.metaKey,   'shift': (event: KeyboardEvent) => event.shiftKey };  /**  * @publicApi  * A browser plug-in that provides support for handling of key events in Angular.  */ @Injectable() export class KeyEventsPlugin extends EventManagerPlugin {   /**    * Initializes an instance of the browser plug-in.    * @param doc The document in which key events will be detected.    */   constructor(@Inject(DOCUMENT) doc: any) {     super(doc);   }    /**    * Reports whether a named key event is supported.    * @param eventName The event name to query.    * @return True if the named key event is supported.    */   override supports(eventName: string): boolean {     return KeyEventsPlugin.parseEventName(eventName) != null;   }    /**    * Registers a handler for a specific element and key event.    * @param element The HTML element to receive event notifications.    * @param eventName The name of the key event to listen for.    * @param handler A function to call when the notification occurs. Receives the    * event object as an argument.    * @returns The key event that was registered.    */   override addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     const parsedEvent = KeyEventsPlugin.parseEventName(eventName)!;      const outsideHandler =         KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());      return this.manager.getZone().runOutsideAngular(() => {       return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);     });   }    /**    * Parses the user provided full keyboard event definition and normalizes it for    * later internal use. It ensures the string is all lowercase, converts special    * characters to a standard spelling, and orders all the values consistently.    *    * @param eventName The name of the key event to listen for.    * @returns an object with the full, normalized string, and the dom event name    * or null in the case when the event doesn't match a keyboard event.    */   static parseEventName(eventName: string): {fullKey: string, domEventName: string}|null {     const parts: string[] = eventName.toLowerCase().split('.');      const domEventName = parts.shift();     if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {       return null;     }      const key = KeyEventsPlugin._normalizeKey(parts.pop()!);      let fullKey = '';     let codeIX = parts.indexOf('code');     if (codeIX > -1) {       parts.splice(codeIX, 1);       fullKey = 'code.';     }     MODIFIER_KEYS.forEach(modifierName => {       const index: number = parts.indexOf(modifierName);       if (index > -1) {         parts.splice(index, 1);         fullKey += modifierName + '.';       }     });     fullKey += key;      if (parts.length != 0 || key.length === 0) {       // returning null instead of throwing to let another plugin process the event       return null;     }      // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.     //       The code must remain in the `result['domEventName']` form.     // return {domEventName, fullKey};     const result: {fullKey: string, domEventName: string} = {} as any;     result['domEventName'] = domEventName;     result['fullKey'] = fullKey;     return result;   }    /**    * Determines whether the actual keys pressed match the configured key code string.    * The `fullKeyCode` event is normalized in the `parseEventName` method when the    * event is attached to the DOM during the `addEventListener` call. This is unseen    * by the end user and is normalized for internal consistency and parsing.    *    * @param event The keyboard event.    * @param fullKeyCode The normalized user defined expected key event string    * @returns boolean.    */   static matchEventFullKeyCode(event: KeyboardEvent, fullKeyCode: string): boolean {     let keycode = _keyMap[event.key] || event.key;     let key = '';     if (fullKeyCode.indexOf('code.') > -1) {       keycode = event.code;       key = 'code.';     }     // the keycode could be unidentified so we have to check here     if (keycode == null || !keycode) return false;     keycode = keycode.toLowerCase();     if (keycode === ' ') {       keycode = 'space';  // for readability     } else if (keycode === '.') {       keycode = 'dot';  // because '.' is used as a separator in event names     }     MODIFIER_KEYS.forEach(modifierName => {       if (modifierName !== keycode) {         const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];         if (modifierGetter(event)) {           key += modifierName + '.';         }       }     });     key += keycode;     return key === fullKeyCode;   }    /**    * Configures a handler callback for a key event.    * @param fullKey The event name that combines all simultaneous keystrokes.    * @param handler The function that responds to the key event.    * @param zone The zone in which the event occurred.    * @returns A callback function.    */   static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function {     return (event: KeyboardEvent) => {       if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {         zone.runGuarded(() => handler(event));       }     };   }    /** @internal */   static _normalizeKey(keyName: string): string {     // TODO: switch to a Map if the mapping grows too much     switch (keyName) {       case 'esc':         return 'escape';       default:         return keyName;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {CommonModule, DOCUMENT, XhrFactory, ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common'; import {APP_ID, ApplicationModule, ApplicationRef, createPlatformFactory, EnvironmentProviders, ErrorHandler, Inject, InjectionToken, ModuleWithProviders, NgModule, NgZone, Optional, PLATFORM_ID, PLATFORM_INITIALIZER, platformCore, PlatformRef, Provider, RendererFactory2, SkipSelf, StaticProvider, Testability, TestabilityRegistry, Type, ɵINJECTOR_SCOPE as INJECTOR_SCOPE, ɵinternalCreateApplication as internalCreateApplication, ɵsetDocument, ɵTESTABILITY as TESTABILITY, ɵTESTABILITY_GETTER as TESTABILITY_GETTER} from '@angular/core';  import {BrowserDomAdapter} from './browser/browser_adapter'; import {SERVER_TRANSITION_PROVIDERS, TRANSITION_ID} from './browser/server-transition'; import {BrowserGetTestability} from './browser/testability'; import {BrowserXhr} from './browser/xhr'; import {DomRendererFactory2, REMOVE_STYLES_ON_COMPONENT_DESTROY} from './dom/dom_renderer'; import {DomEventsPlugin} from './dom/events/dom_events'; import {EVENT_MANAGER_PLUGINS, EventManager} from './dom/events/event_manager'; import {KeyEventsPlugin} from './dom/events/key_events'; import {DomSharedStylesHost, SharedStylesHost} from './dom/shared_styles_host';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * Set of config options available during the application bootstrap operation.  *  * @publicApi  */ export interface ApplicationConfig {   /**    * List of providers that should be available to the root component and all its children.    */   providers: Array<Provider|EnvironmentProviders>; }  /**  * Bootstraps an instance of an Angular application and renders a standalone component as the  * application's root component. More information about standalone components can be found in [this  * guide](guide/standalone-components).  *  * @usageNotes  * The root component passed into this function *must* be a standalone one (should have the  * `standalone: true` flag in the `@Component` decorator config).  *  * ```typescript  * @Component({  *   standalone: true,  *   template: 'Hello world!'  * })  * class RootComponent {}  *  * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);  * ```  *  * You can add the list of providers that should be available in the application injector by  * specifying the `providers` field in an object passed as the second argument:  *  * ```typescript  * await bootstrapApplication(RootComponent, {  *   providers: [  *     {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}  *   ]  * });  * ```  *  * The `importProvidersFrom` helper method can be used to collect all providers from any  * existing NgModule (and transitively from all NgModules that it imports):  *  * ```typescript  * await bootstrapApplication(RootComponent, {  *   providers: [  *     importProvidersFrom(SomeNgModule)  *   ]  * });  * ```  *  * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by  * default. You can add [Testability](api/core/Testability) by getting the list of necessary  * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`  * array, for example:  *  * ```typescript  * import {provideProtractorTestingSupport} from '@angular/platform-browser';  *  * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});  * ```  *  * @param rootComponent A reference to a standalone component that should be rendered.  * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for  *     additional info.  * @returns A promise that returns an `ApplicationRef` instance once resolved.  *  * @publicApi  */ export function bootstrapApplication(     rootComponent: Type<unknown>, options?: ApplicationConfig): Promise<ApplicationRef> {   return internalCreateApplication({rootComponent, ...createProvidersConfig(options)}); }  /**  * Create an instance of an Angular application without bootstrapping any components. This is useful  * for the situation where one wants to decouple application environment creation (a platform and  * associated injectors) from rendering components on a screen. Components can be subsequently  * bootstrapped on the returned `ApplicationRef`.  *  * @param options Extra configuration for the application environment, see `ApplicationConfig` for  *     additional info.  * @returns A promise that returns an `ApplicationRef` instance once resolved.  *  * @publicApi  */ export function createApplication(options?: ApplicationConfig) {   return internalCreateApplication(createProvidersConfig(options)); }  function createProvidersConfig(options?: ApplicationConfig) {   return {     appProviders: [       ...BROWSER_MODULE_PROVIDERS,       ...(options?.providers ?? []),     ],     platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS   }; }  /**  * Returns a set of providers required to setup [Testability](api/core/Testability) for an  * application bootstrapped using the `bootstrapApplication` function. The set of providers is  * needed to support testing an application with Protractor (which relies on the Testability APIs  * to be present).  *  * @returns An array of providers required to setup Testability for an application and make it  *     available for testing using Protractor.  *  * @publicApi  */ export function provideProtractorTestingSupport(): Provider[] {   // Return a copy to prevent changes to the original array in case any in-place   // alterations are performed to the `provideProtractorTestingSupport` call results in app code.   return [...TESTABILITY_PROVIDERS]; }  export function initDomAdapter() {   BrowserDomAdapter.makeCurrent(); }  export function errorHandler(): ErrorHandler {   return new ErrorHandler(); }  export function _document(): any {   // Tell ivy about the global document   ɵsetDocument(document);   return document; }  export const INTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] = [   {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},   {provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true},   {provide: DOCUMENT, useFactory: _document, deps: []}, ];  /**  * A factory function that returns a `PlatformRef` instance associated with browser service  * providers.  *  * @publicApi  */ export const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef =     createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);  /**  * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.  * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the  * `BrowserModule` presence itself, since the standalone-based bootstrap just imports  * `BrowserModule` providers without referencing the module itself.  */ const BROWSER_MODULE_PROVIDERS_MARKER =     new InjectionToken(NG_DEV_MODE ? 'BrowserModule Providers Marker' : '');  const TESTABILITY_PROVIDERS = [   {     provide: TESTABILITY_GETTER,     useClass: BrowserGetTestability,     deps: [],   },   {     provide: TESTABILITY,     useClass: Testability,     deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER]   },   {     provide: Testability,  // Also provide as `Testability` for backwards-compatibility.     useClass: Testability,     deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER]   } ];  const BROWSER_MODULE_PROVIDERS: Provider[] = [   {provide: INJECTOR_SCOPE, useValue: 'root'},   {provide: ErrorHandler, useFactory: errorHandler, deps: []}, {     provide: EVENT_MANAGER_PLUGINS,     useClass: DomEventsPlugin,     multi: true,     deps: [DOCUMENT, NgZone, PLATFORM_ID]   },   {provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT]}, {     provide: DomRendererFactory2,     useClass: DomRendererFactory2,     deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]   },   {provide: RendererFactory2, useExisting: DomRendererFactory2},   {provide: SharedStylesHost, useExisting: DomSharedStylesHost},   {provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT]},   {provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone]},   {provide: XhrFactory, useClass: BrowserXhr, deps: []},   NG_DEV_MODE ? {provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true} : [] ];  /**  * Exports required infrastructure for all Angular apps.  * Included by default in all Angular apps created with the CLI  * `new` command.  * Re-exports `CommonModule` and `ApplicationModule`, making their  * exports and providers available to all apps.  *  * @publicApi  */ @NgModule({   providers: [     ...BROWSER_MODULE_PROVIDERS,  //     ...TESTABILITY_PROVIDERS   ],   exports: [CommonModule, ApplicationModule], }) export class BrowserModule {   constructor(@Optional() @SkipSelf() @Inject(BROWSER_MODULE_PROVIDERS_MARKER)               providersAlreadyPresent: boolean|null) {     if (NG_DEV_MODE && providersAlreadyPresent) {       throw new Error(           `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` +           `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`);     }   }    /**    * Configures a browser-based app to transition from a server-rendered app, if    * one is present on the page.    *    * @param params An object containing an identifier for the app to transition.    * The ID must match between the client and server versions of the app.    * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.    */   static withServerTransition(params: {appId: string}): ModuleWithProviders<BrowserModule> {     return {       ngModule: BrowserModule,       providers: [         {provide: APP_ID, useValue: params.appId},         {provide: TRANSITION_ID, useExisting: APP_ID},         SERVER_TRANSITION_PROVIDERS,       ],     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵDomAdapter as DomAdapter, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, ɵɵinject} from '@angular/core';  /**  * Represents the attributes of an HTML `<meta>` element. The element itself is  * represented by the internal `HTMLMetaElement`.  *  * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)  * @see `Meta`  *  * @publicApi  */ export type MetaDefinition = {   charset?: string;   content?: string;   httpEquiv?: string;   id?: string;   itemprop?: string;   name?: string;   property?: string;   scheme?: string;   url?: string; }&{   // TODO(IgorMinar): this type looks wrong   [prop: string]: string; };  /**  * Factory to create a `Meta` service instance for the current DOM document.  */ export function createMeta() {   return new Meta(ɵɵinject(DOCUMENT)); }  /**  * A service for managing HTML `<meta>` tags.  *  * Properties of the `MetaDefinition` object match the attributes of the  * HTML `<meta>` tag. These tags define document metadata that is important for  * things like configuring a Content Security Policy, defining browser compatibility  * and security settings, setting HTTP Headers, defining rich content for social sharing,  * and Search Engine Optimization (SEO).  *  * To identify specific `<meta>` tags in a document, use an attribute selection  * string in the format `\"tag_attribute='value string'\"`.  * For example, an `attrSelector` value of `\"name='description'\"` matches a tag  * whose `name` attribute has the value `\"description\"`.  * Selectors are used with the `querySelector()` Document method,  * in the format `meta[{attrSelector}]`.  *  * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)  * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)  *  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: createMeta, deps: []}) export class Meta {   private _dom: DomAdapter;   constructor(@Inject(DOCUMENT) private _doc: any) {     this._dom = getDOM();   }   /**    * Retrieves or creates a specific `<meta>` tag element in the current HTML document.    * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute    * values in the provided tag definition, and verifies that all other attribute values are equal.    * If an existing element is found, it is returned and is not modified in any way.    * @param tag The definition of a `<meta>` element to match or create.    * @param forceCreation True to create a new element without checking whether one already exists.    * @returns The existing element with the same attributes and values if found,    * the new element if no match is found, or `null` if the tag parameter is not defined.    */   addTag(tag: MetaDefinition, forceCreation: boolean = false): HTMLMetaElement|null {     if (!tag) return null;     return this._getOrCreateElement(tag, forceCreation);   }    /**    * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.    * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute    * values in the provided tag definition, and verifies that all other attribute values are equal.    * @param tags An array of tag definitions to match or create.    * @param forceCreation True to create new elements without checking whether they already exist.    * @returns The matching elements if found, or the new elements.    */   addTags(tags: MetaDefinition[], forceCreation: boolean = false): HTMLMetaElement[] {     if (!tags) return [];     return tags.reduce((result: HTMLMetaElement[], tag: MetaDefinition) => {       if (tag) {         result.push(this._getOrCreateElement(tag, forceCreation));       }       return result;     }, []);   }    /**    * Retrieves a `<meta>` tag element in the current HTML document.    * @param attrSelector The tag attribute and value to match against, in the format    * `\"tag_attribute='value string'\"`.    * @returns The matching element, if any.    */   getTag(attrSelector: string): HTMLMetaElement|null {     if (!attrSelector) return null;     return this._doc.querySelector(`meta[${attrSelector}]`) || null;   }    /**    * Retrieves a set of `<meta>` tag elements in the current HTML document.    * @param attrSelector The tag attribute and value to match against, in the format    * `\"tag_attribute='value string'\"`.    * @returns The matching elements, if any.    */   getTags(attrSelector: string): HTMLMetaElement[] {     if (!attrSelector) return [];     const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);     return list ? [].slice.call(list) : [];   }    /**    * Modifies an existing `<meta>` tag element in the current HTML document.    * @param tag The tag description with which to replace the existing tag content.    * @param selector A tag attribute and value to match against, to identify    * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.    * If not supplied, matches a tag with the same `name` or `property` attribute value as the    * replacement tag.    * @return The modified element.    */   updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement|null {     if (!tag) return null;     selector = selector || this._parseSelector(tag);     const meta: HTMLMetaElement = this.getTag(selector)!;     if (meta) {       return this._setMetaElementAttributes(tag, meta);     }     return this._getOrCreateElement(tag, true);   }    /**    * Removes an existing `<meta>` tag element from the current HTML document.    * @param attrSelector A tag attribute and value to match against, to identify    * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.    */   removeTag(attrSelector: string): void {     this.removeTagElement(this.getTag(attrSelector)!);   }    /**    * Removes an existing `<meta>` tag element from the current HTML document.    * @param meta The tag definition to match against to identify an existing tag.    */   removeTagElement(meta: HTMLMetaElement): void {     if (meta) {       this._dom.remove(meta);     }   }    private _getOrCreateElement(meta: MetaDefinition, forceCreation: boolean = false):       HTMLMetaElement {     if (!forceCreation) {       const selector: string = this._parseSelector(meta);       // It's allowed to have multiple elements with the same name so it's not enough to       // just check that element with the same name already present on the page. We also need to       // check if element has tag attributes       const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];       if (elem !== undefined) return elem;     }     const element: HTMLMetaElement = this._dom.createElement('meta') as HTMLMetaElement;     this._setMetaElementAttributes(meta, element);     const head = this._doc.getElementsByTagName('head')[0];     head.appendChild(element);     return element;   }    private _setMetaElementAttributes(tag: MetaDefinition, el: HTMLMetaElement): HTMLMetaElement {     Object.keys(tag).forEach(         (prop: string) => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));     return el;   }    private _parseSelector(tag: MetaDefinition): string {     const attr: string = tag.name ? 'name' : 'property';     return `${attr}=\"${tag[attr]}\"`;   }    private _containsAttributes(tag: MetaDefinition, elem: HTMLMetaElement): boolean {     return Object.keys(tag).every(         (key: string) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);   }    private _getMetaKeyMap(prop: string): string {     return META_KEYS_MAP[prop] || prop;   } }  /**  * Mapping for MetaDefinition properties with their correct meta attribute names  */ const META_KEYS_MAP: {[prop: string]: string;} = {   httpEquiv: 'http-equiv' }; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, ɵɵinject} from '@angular/core';   /**  * Factory to create Title service.  */ export function createTitle() {   return new Title(ɵɵinject(DOCUMENT)); }  /**  * A service that can be used to get and set the title of a current HTML document.  *  * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)  * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements  * (representing the `<title>` tag). Instead, this service can be used to set and get the current  * title value.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: createTitle, deps: []}) export class Title {   constructor(@Inject(DOCUMENT) private _doc: any) {}   /**    * Get the title of the current HTML document.    */   getTitle(): string {     return this._doc.title;   }    /**    * Set the title of the current HTML document.    * @param newTitle    */   setTitle(newTitle: string) {     this._doc.title = newTitle || '';   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵglobal as global} from '@angular/core';  const CAMEL_CASE_REGEXP = /([A-Z])/g; const DASH_CASE_REGEXP = /-([a-z])/g;   export function camelCaseToDashCase(input: string): string {   return input.replace(CAMEL_CASE_REGEXP, (...m: string[]) => '-' + m[1].toLowerCase()); }  export function dashCaseToCamelCase(input: string): string {   return input.replace(DASH_CASE_REGEXP, (...m: string[]) => m[1].toUpperCase()); }  /**  * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if  * `name` is `'probe'`.  * @param name Name under which it will be exported. Keep in mind this will be a property of the  * global `ng` object.  * @param value The value to export.  */ export function exportNgVar(name: string, value: any): void {   if (typeof COMPILED === 'undefined' || !COMPILED) {     // Note: we can't export `ng` when using closure enhanced optimization as:     // - closure declares globals itself for minified names, which sometimes clobber our `ng` global     // - we can't declare a closure extern as the namespace `ng` is already used within Google     //   for typings for angularJS (via `goog.provide('ng....')`).     const ng = global['ng'] = (global['ng'] as {[key: string]: any} | undefined) || {};     ng[name] = value;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  const win = typeof window !== 'undefined' && window || <any>{}; export {win as window}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ApplicationRef, ComponentRef} from '@angular/core'; import {window} from './browser';  export class ChangeDetectionPerfRecord {   constructor(public msPerTick: number, public numTicks: number) {} }  /**  * Entry point for all Angular profiling-related debug tools. This object  * corresponds to the `ng.profiler` in the dev console.  */ export class AngularProfiler {   appRef: ApplicationRef;    constructor(ref: ComponentRef<any>) {     this.appRef = ref.injector.get(ApplicationRef);   }    // tslint:disable:no-console   /**    * Exercises change detection in a loop and then prints the average amount of    * time in milliseconds how long a single round of change detection takes for    * the current state of the UI. It runs a minimum of 5 rounds for a minimum    * of 500 milliseconds.    *    * Optionally, a user may pass a `config` parameter containing a map of    * options. Supported options are:    *    * `record` (boolean) - causes the profiler to record a CPU profile while    * it exercises the change detector. Example:    *    * ```    * ng.profiler.timeChangeDetection({record: true})    * ```    */   timeChangeDetection(config: any): ChangeDetectionPerfRecord {     const record = config && config['record'];     const profileName = 'Change Detection';     // Profiler is not available in Android browsers without dev tools opened     const isProfilerAvailable = window.console.profile != null;     if (record && isProfilerAvailable) {       window.console.profile(profileName);     }     const start = performanceNow();     let numTicks = 0;     while (numTicks < 5 || (performanceNow() - start) < 500) {       this.appRef.tick();       numTicks++;     }     const end = performanceNow();     if (record && isProfilerAvailable) {       window.console.profileEnd(profileName);     }     const msPerTick = (end - start) / numTicks;     window.console.log(`ran ${numTicks} change detection cycles`);     window.console.log(`${msPerTick.toFixed(2)} ms per check`);      return new ChangeDetectionPerfRecord(msPerTick, numTicks);   } }  function performanceNow() {   return window.performance && window.performance.now ? window.performance.now() :                                                         new Date().getTime(); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentRef} from '@angular/core'; import {exportNgVar} from '../../dom/util'; import {AngularProfiler} from './common_tools';  const PROFILER_GLOBAL_NAME = 'profiler';  /**  * Enabled Angular debug tools that are accessible via your browser's  * developer console.  *  * Usage:  *  * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)  * 1. Type `ng.` (usually the console will show auto-complete suggestion)  * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`  *    then hit Enter.  *  * @publicApi  */ export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {   exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));   return ref; }  /**  * Disables Angular tools.  *  * @publicApi  */ export function disableDebugTools(): void {   exportNgVar(PROFILER_GLOBAL_NAME, null); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {APP_ID, inject, Injectable, NgModule} from '@angular/core';  export function escapeHtml(text: string): string {   const escapedText: {[k: string]: string} = {     '&': '&a;',     '\"': '&q;',     '\\'': '&s;',     '<': '&l;',     '>': '&g;',   };   return text.replace(/[&\"'<>]/g, s => escapedText[s]); }  export function unescapeHtml(text: string): string {   const unescapedText: {[k: string]: string} = {     '&a;': '&',     '&q;': '\"',     '&s;': '\\'',     '&l;': '<',     '&g;': '>',   };   return text.replace(/&[^;]+;/g, s => unescapedText[s]); }  /**  * A type-safe key to use with `TransferState`.  *  * Example:  *  * ```  * const COUNTER_KEY = makeStateKey<number>('counter');  * let value = 10;  *  * transferState.set(COUNTER_KEY, value);  * ```  *  * @publicApi  */ export type StateKey<T> = string&{   __not_a_string: never,   __value_type?: T, };  /**  * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.  *  * Example:  *  * ```  * const COUNTER_KEY = makeStateKey<number>('counter');  * let value = 10;  *  * transferState.set(COUNTER_KEY, value);  * ```  *  * @publicApi  */ export function makeStateKey<T = void>(key: string): StateKey<T> {   return key as StateKey<T>; }  /**  * A key value store that is transferred from the application on the server side to the application  * on the client side.  *  * The `TransferState` is available as an injectable token.  * On the client, just inject this token using DI and use it, it will be lazily initialized.  * On the server it's already included if `renderApplication` function is used. Otherwise, import  * the `ServerTransferStateModule` module to make the `TransferState` available.  *  * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only  * boolean, number, string, null and non-class objects will be serialized and deserialized in a  * non-lossy manner.  *  * @publicApi  */ @Injectable({   providedIn: 'root',   useFactory: () => {     const doc = inject(DOCUMENT);     const appId = inject(APP_ID);     const state = new TransferState();     state.store = retrieveTransferredState(doc, appId);     return state;   } }) export class TransferState {   private store: {[k: string]: unknown|undefined} = {};   private onSerializeCallbacks: {[k: string]: () => unknown | undefined} = {};    /**    * Get the value corresponding to a key. Return `defaultValue` if key is not found.    */   get<T>(key: StateKey<T>, defaultValue: T): T {     return this.store[key] !== undefined ? this.store[key] as T : defaultValue;   }    /**    * Set the value corresponding to a key.    */   set<T>(key: StateKey<T>, value: T): void {     this.store[key] = value;   }    /**    * Remove a key from the store.    */   remove<T>(key: StateKey<T>): void {     delete this.store[key];   }    /**    * Test whether a key exists in the store.    */   hasKey<T>(key: StateKey<T>) {     return this.store.hasOwnProperty(key);   }    /**    * Indicates whether the state is empty.    */   get isEmpty(): boolean {     return Object.keys(this.store).length === 0;   }    /**    * Register a callback to provide the value for a key when `toJson` is called.    */   onSerialize<T>(key: StateKey<T>, callback: () => T): void {     this.onSerializeCallbacks[key] = callback;   }    /**    * Serialize the current state of the store to JSON.    */   toJson(): string {     // Call the onSerialize callbacks and put those values into the store.     for (const key in this.onSerializeCallbacks) {       if (this.onSerializeCallbacks.hasOwnProperty(key)) {         try {           this.store[key] = this.onSerializeCallbacks[key]();         } catch (e) {           console.warn('Exception in onSerialize callback: ', e);         }       }     }     return JSON.stringify(this.store);   } }  export function retrieveTransferredState(doc: Document, appId: string) {   // Locate the script tag with the JSON data transferred from the server.   // The id of the script tag is set to the Angular appId + 'state'.   const script = doc.getElementById(appId + '-state');   let initialState = {};   if (script && script.textContent) {     try {       // Avoid using any here as it triggers lint errors in google3 (any is not allowed).       initialState = JSON.parse(unescapeHtml(script.textContent)) as {};     } catch (e) {       console.warn('Exception while restoring TransferState for app ' + appId, e);     }   }   return initialState; }  /**  * NgModule to install on the client side while using the `TransferState` to transfer state from  * server to client.  *  * @publicApi  * @deprecated no longer needed, you can inject the `TransferState` in an app without providing  *     this module.  */ @NgModule({}) export class BrowserTransferStateModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {DebugElement, DebugNode, Predicate, Type} from '@angular/core';    /**  * Predicates for use with {@link DebugElement}'s query functions.  *  * @publicApi  */ export class By {   /**    * Match all nodes.    *    * @usageNotes    * ### Example    *    * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}    */   static all(): Predicate<DebugNode> {     return () => true;   }    /**    * Match elements by the given CSS selector.    *    * @usageNotes    * ### Example    *    * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}    */   static css(selector: string): Predicate<DebugElement> {     return (debugElement) => {       return debugElement.nativeElement != null ?           elementMatches(debugElement.nativeElement, selector) :           false;     };   }    /**    * Match nodes that have the given directive present.    *    * @usageNotes    * ### Example    *    * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}    */   static directive(type: Type<any>): Predicate<DebugNode> {     return (debugNode) => debugNode.providerTokens!.indexOf(type) !== -1;   } }  function elementMatches(n: any, selector: string): boolean {   if (getDOM().isElementNode(n)) {     return n.matches && n.matches(selector) ||         n.msMatchesSelector && n.msMatchesSelector(selector) ||         n.webkitMatchesSelector && n.webkitMatchesSelector(selector);   }    return false; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {Inject, Injectable, InjectionToken, NgModule, Optional, Provider, ɵConsole as Console} from '@angular/core';  import {EVENT_MANAGER_PLUGINS, EventManagerPlugin} from './event_manager';    /**  * Supported HammerJS recognizer event names.  */ const EVENT_NAMES = {   // pan   'pan': true,   'panstart': true,   'panmove': true,   'panend': true,   'pancancel': true,   'panleft': true,   'panright': true,   'panup': true,   'pandown': true,   // pinch   'pinch': true,   'pinchstart': true,   'pinchmove': true,   'pinchend': true,   'pinchcancel': true,   'pinchin': true,   'pinchout': true,   // press   'press': true,   'pressup': true,   // rotate   'rotate': true,   'rotatestart': true,   'rotatemove': true,   'rotateend': true,   'rotatecancel': true,   // swipe   'swipe': true,   'swipeleft': true,   'swiperight': true,   'swipeup': true,   'swipedown': true,   // tap   'tap': true,   'doubletap': true };  /**  * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.  * @see `HammerGestureConfig`  *  * @ngModule HammerModule  * @publicApi  */ export const HAMMER_GESTURE_CONFIG = new InjectionToken<HammerGestureConfig>('HammerGestureConfig');   /**  * Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded.  *  * @publicApi  */ export type HammerLoader = () => Promise<void>;  /**  * Injection token used to provide a {@link HammerLoader} to Angular.  *  * @publicApi  */ export const HAMMER_LOADER = new InjectionToken<HammerLoader>('HammerLoader');  export interface HammerInstance {   on(eventName: string, callback?: Function): void;   off(eventName: string, callback?: Function): void;   destroy?(): void; }  /**  * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)  * for gesture recognition. Configures specific event recognition.  * @publicApi  */ @Injectable() export class HammerGestureConfig {   /**    * A set of supported event names for gestures to be used in Angular.    * Angular supports all built-in recognizers, as listed in    * [HammerJS documentation](https://hammerjs.github.io/).    */   events: string[] = [];    /**    * Maps gesture event names to a set of configuration options    * that specify overrides to the default values for specific properties.    *    * The key is a supported event name to be configured,    * and the options object contains a set of properties, with override values    * to be applied to the named recognizer event.    * For example, to disable recognition of the rotate event, specify    *  `{\"rotate\": {\"enable\": false}}`.    *    * Properties that are not present take the HammerJS default values.    * For information about which properties are supported for which events,    * and their allowed and default values, see    * [HammerJS documentation](https://hammerjs.github.io/).    *    */   overrides: {[key: string]: Object} = {};    /**    * Properties whose default values can be overridden for a given event.    * Different sets of properties apply to different events.    * For information about which properties are supported for which events,    * and their allowed and default values, see    * [HammerJS documentation](https://hammerjs.github.io/).    */   options?: {     cssProps?: any;     domEvents?: boolean;     enable?: boolean | ((manager: any) => boolean);     preset?: any[];     touchAction?: string;     recognizers?: any[];     inputClass?: any;     inputTarget?: EventTarget;   };    /**    * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)    * and attaches it to a given HTML element.    * @param element The element that will recognize gestures.    * @returns A HammerJS event-manager object.    */   buildHammer(element: HTMLElement): HammerInstance {     const mc = new Hammer!(element, this.options);      mc.get('pinch').set({enable: true});     mc.get('rotate').set({enable: true});      for (const eventName in this.overrides) {       mc.get(eventName).set(this.overrides[eventName]);     }      return mc;   } }  /**  * Event plugin that adds Hammer support to an application.  *  * @ngModule HammerModule  */ @Injectable() export class HammerGesturesPlugin extends EventManagerPlugin {   private _loaderPromise: Promise<void>|null = null;    constructor(       @Inject(DOCUMENT) doc: any,       @Inject(HAMMER_GESTURE_CONFIG) private _config: HammerGestureConfig, private console: Console,       @Optional() @Inject(HAMMER_LOADER) private loader?: HammerLoader|null) {     super(doc);   }    override supports(eventName: string): boolean {     if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {       return false;     }      if (!(window as any).Hammer && !this.loader) {       if (typeof ngDevMode === 'undefined' || ngDevMode) {         this.console.warn(             `The \"${eventName}\" event cannot be bound because Hammer.JS is not ` +             `loaded and no custom loader has been specified.`);       }       return false;     }      return true;   }    override addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     const zone = this.manager.getZone();     eventName = eventName.toLowerCase();      // If Hammer is not present but a loader is specified, we defer adding the event listener     // until Hammer is loaded.     if (!(window as any).Hammer && this.loader) {       this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader!());       // This `addEventListener` method returns a function to remove the added listener.       // Until Hammer is loaded, the returned function needs to *cancel* the registration rather       // than remove anything.       let cancelRegistration = false;       let deregister: Function = () => {         cancelRegistration = true;       };        zone.runOutsideAngular(           () => this._loaderPromise!                     .then(() => {                       // If Hammer isn't actually loaded when the custom loader resolves, give up.                       if (!(window as any).Hammer) {                         if (typeof ngDevMode === 'undefined' || ngDevMode) {                           this.console.warn(                               `The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);                         }                         deregister = () => {};                         return;                       }                        if (!cancelRegistration) {                         // Now that Hammer is loaded and the listener is being loaded for real,                         // the deregistration function changes from canceling registration to                         // removal.                         deregister = this.addEventListener(element, eventName, handler);                       }                     })                     .catch(() => {                       if (typeof ngDevMode === 'undefined' || ngDevMode) {                         this.console.warn(                             `The \"${eventName}\" event cannot be bound because the custom ` +                             `Hammer.JS loader failed.`);                       }                       deregister = () => {};                     }));        // Return a function that *executes* `deregister` (and not `deregister` itself) so that we       // can change the behavior of `deregister` once the listener is added. Using a closure in       // this way allows us to avoid any additional data structures to track listener removal.       return () => {         deregister();       };     }      return zone.runOutsideAngular(() => {       // Creating the manager bind events, must be done outside of angular       const mc = this._config.buildHammer(element);       const callback = function(eventObj: HammerInput) {         zone.runGuarded(function() {           handler(eventObj);         });       };       mc.on(eventName, callback);       return () => {         mc.off(eventName, callback);         // destroy mc to prevent memory leak         if (typeof mc.destroy === 'function') {           mc.destroy();         }       };     });   }    isCustomEvent(eventName: string): boolean {     return this._config.events.indexOf(eventName) > -1;   } }  /**  * Adds support for HammerJS.  *  * Import this module at the root of your application so that Angular can work with  * HammerJS to detect gesture events.  *  * Note that applications still need to include the HammerJS script itself. This module  * simply sets up the coordination layer between HammerJS and Angular's EventManager.  *  * @publicApi  */ @NgModule({   providers: [     {       provide: EVENT_MANAGER_PLUGINS,       useClass: HammerGesturesPlugin,       multi: true,       deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Console, [new Optional(), HAMMER_LOADER]]     },     {provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: []},   ] }) export class HammerModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {forwardRef, Inject, Injectable, Injector, Sanitizer, SecurityContext, ɵ_sanitizeHtml as _sanitizeHtml, ɵ_sanitizeUrl as _sanitizeUrl, ɵallowSanitizationBypassAndThrow as allowSanitizationBypassOrThrow, ɵbypassSanitizationTrustHtml as bypassSanitizationTrustHtml, ɵbypassSanitizationTrustResourceUrl as bypassSanitizationTrustResourceUrl, ɵbypassSanitizationTrustScript as bypassSanitizationTrustScript, ɵbypassSanitizationTrustStyle as bypassSanitizationTrustStyle, ɵbypassSanitizationTrustUrl as bypassSanitizationTrustUrl, ɵBypassType as BypassType, ɵgetSanitizationBypassType as getSanitizationBypassType, ɵunwrapSafeValue as unwrapSafeValue, ɵXSS_SECURITY_URL as XSS_SECURITY_URL} from '@angular/core';  export {SecurityContext};    /**  * Marker interface for a value that's safe to use in a particular context.  *  * @publicApi  */ export interface SafeValue {}  /**  * Marker interface for a value that's safe to use as HTML.  *  * @publicApi  */ export interface SafeHtml extends SafeValue {}  /**  * Marker interface for a value that's safe to use as style (CSS).  *  * @publicApi  */ export interface SafeStyle extends SafeValue {}  /**  * Marker interface for a value that's safe to use as JavaScript.  *  * @publicApi  */ export interface SafeScript extends SafeValue {}  /**  * Marker interface for a value that's safe to use as a URL linking to a document.  *  * @publicApi  */ export interface SafeUrl extends SafeValue {}  /**  * Marker interface for a value that's safe to use as a URL to load executable code from.  *  * @publicApi  */ export interface SafeResourceUrl extends SafeValue {}  /**  * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing  * values to be safe to use in the different DOM contexts.  *  * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be  * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on  * the website.  *  * In specific situations, it might be necessary to disable sanitization, for example if the  * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.  * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`  * methods, and then binding to that value from the template.  *  * These situations should be very rare, and extraordinary care must be taken to avoid creating a  * Cross Site Scripting (XSS) security bug!  *  * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as  * close as possible to the source of the value, to make it easy to verify no security bug is  * created by its use.  *  * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that  * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous  * code. The sanitizer leaves safe values intact.  *  * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in  * sanitization for the value passed in. Carefully check and audit all values and code paths going  * into this call. Make sure any user data is appropriately escaped for this security context.  * For more detail, see the [Security Guide](https://g.co/ng/security).  *  * @publicApi  */ @Injectable({providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl)}) export abstract class DomSanitizer implements Sanitizer {   /**    * Gets a safe value from either a known safe value or a value with unknown safety.    *    * If the given value is already a `SafeValue`, this method returns the unwrapped value.    * If the security context is HTML and the given value is a plain string, this method    * sanitizes the string, removing any potentially unsafe content.    * For any other security context, this method throws an error if provided    * with a plain string.    */   abstract sanitize(context: SecurityContext, value: SafeValue|string|null): string|null;    /**    * Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML    * is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will    * leave safe HTML intact, so in most situations this method should not be used.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustHtml(value: string): SafeHtml;    /**    * Bypass security and trust the given value to be safe style value (CSS).    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustStyle(value: string): SafeStyle;    /**    * Bypass security and trust the given value to be safe JavaScript.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustScript(value: string): SafeScript;    /**    * Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used    * in hyperlinks or `<img src>`.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustUrl(value: string): SafeUrl;    /**    * Bypass security and trust the given value to be a safe resource URL, i.e. a location that may    * be used to load executable code from, like `<script src>`, or `<iframe src>`.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl; }  export function domSanitizerImplFactory(injector: Injector) {   return new DomSanitizerImpl(injector.get(DOCUMENT)); }  @Injectable({providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector]}) export class DomSanitizerImpl extends DomSanitizer {   constructor(@Inject(DOCUMENT) private _doc: any) {     super();   }    override sanitize(ctx: SecurityContext, value: SafeValue|string|null): string|null {     if (value == null) return null;     switch (ctx) {       case SecurityContext.NONE:         return value as string;       case SecurityContext.HTML:         if (allowSanitizationBypassOrThrow(value, BypassType.Html)) {           return unwrapSafeValue(value);         }         return _sanitizeHtml(this._doc, String(value)).toString();       case SecurityContext.STYLE:         if (allowSanitizationBypassOrThrow(value, BypassType.Style)) {           return unwrapSafeValue(value);         }         return value as string;       case SecurityContext.SCRIPT:         if (allowSanitizationBypassOrThrow(value, BypassType.Script)) {           return unwrapSafeValue(value);         }         throw new Error('unsafe value used in a script context');       case SecurityContext.URL:         if (allowSanitizationBypassOrThrow(value, BypassType.Url)) {           return unwrapSafeValue(value);         }         return _sanitizeUrl(String(value));       case SecurityContext.RESOURCE_URL:         if (allowSanitizationBypassOrThrow(value, BypassType.ResourceUrl)) {           return unwrapSafeValue(value);         }         throw new Error(`unsafe value used in a resource URL context (see ${XSS_SECURITY_URL})`);       default:         throw new Error(`Unexpected SecurityContext ${ctx} (see ${XSS_SECURITY_URL})`);     }   }    override bypassSecurityTrustHtml(value: string): SafeHtml {     return bypassSanitizationTrustHtml(value);   }   override bypassSecurityTrustStyle(value: string): SafeStyle {     return bypassSanitizationTrustStyle(value);   }   override bypassSecurityTrustScript(value: string): SafeScript {     return bypassSanitizationTrustScript(value);   }   override bypassSecurityTrustUrl(value: string): SafeUrl {     return bypassSanitizationTrustUrl(value);   }   override bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl {     return bypassSanitizationTrustResourceUrl(value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the platform-browser package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/platform-browser'; // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["DomAdapter","setRootDomAdapter","parseCookieValue","getDOM","global","NG_DEV_MODE","i1.EventManager","i2.DomSharedStylesHost","internalCreateApplication","PLATFORM_BROWSER_ID","TESTABILITY_GETTER","TESTABILITY","INJECTOR_SCOPE","window","Console","allowSanitizationBypassOrThrow","unwrapSafeValue","_sanitizeHtml","_sanitizeUrl","XSS_SECURITY_URL","bypassSan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SECTION 38 --------------------
{"version":3,"file":"platform-browser.mjs","sources":["../../../../../../packages/platform-browser/src/browser/generic_browser_adapter.ts","../../../../../../packages/platform-browser/src/browser/browser_adapter.ts","../../../../../../packages/platform-browser/src/browser/server-transition.ts","../../../../../../packages/platform-browser/src/browser/testability.ts","../../../../../../packages/platform-browser/src/browser/xhr.ts","../../../../../../packages/platform-browser/src/dom/events/event_manager.ts","../../../../../../packages/platform-browser/src/dom/shared_styles_host.ts","../../../../../../packages/platform-browser/src/dom/dom_renderer.ts","../../../../../../packages/platform-browser/src/dom/events/dom_events.ts","../../../../../../packages/platform-browser/src/dom/events/key_events.ts","../../../../../../packages/platform-browser/src/browser.ts","../../../../../../packages/platform-browser/src/browser/meta.ts","../../../../../../packages/platform-browser/src/browser/title.ts","../../../../../../packages/platform-browser/src/dom/util.ts","../../../../../../packages/platform-browser/src/browser/tools/browser.ts","../../../../../../packages/platform-browser/src/browser/tools/common_tools.ts","../../../../../../packages/platform-browser/src/browser/tools/tools.ts","../../../../../../packages/platform-browser/src/browser/transfer_state.ts","../../../../../../packages/platform-browser/src/dom/debug/by.ts","../../../../../../packages/platform-browser/src/dom/events/hammer_gestures.ts","../../../../../../packages/platform-browser/src/security/dom_sanitization_service.ts","../../../../../../packages/platform-browser/src/version.ts","../../../../../../packages/platform-browser/public_api.ts","../../../../../../packages/platform-browser/index.ts","../../../../../../packages/platform-browser/platform-browser.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵDomAdapter as DomAdapter} from '@angular/common';    /**  * Provides DOM operations in any browser environment.  *  * @security Tread carefully! Interacting with the DOM directly is dangerous and  * can introduce XSS risks.  */ export abstract class GenericBrowserDomAdapter extends DomAdapter {   readonly supportsDOMEvents: boolean = true; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵparseCookieValue as parseCookieValue, ɵsetRootDomAdapter as setRootDomAdapter} from '@angular/common';  import {GenericBrowserDomAdapter} from './generic_browser_adapter';  /**  * A `DomAdapter` powered by full browser DOM APIs.  *  * @security Tread carefully! Interacting with the DOM directly is dangerous and  * can introduce XSS risks.  */ /* tslint:disable:requireParameterType no-console */ export class BrowserDomAdapter extends GenericBrowserDomAdapter {   static makeCurrent() {     setRootDomAdapter(new BrowserDomAdapter());   }    onAndCancel(el: Node, evt: any, listener: any): Function {     el.addEventListener(evt, listener, false);     // Needed to follow Dart's subscription semantic, until fix of     // https://code.google.com/p/dart/issues/detail?id=17406     return () => {       el.removeEventListener(evt, listener, false);     };   }   dispatchEvent(el: Node, evt: any) {     el.dispatchEvent(evt);   }   remove(node: Node): void {     if (node.parentNode) {       node.parentNode.removeChild(node);     }   }   createElement(tagName: string, doc?: Document): HTMLElement {     doc = doc || this.getDefaultDocument();     return doc.createElement(tagName);   }   createHtmlDocument(): Document {     return document.implementation.createHTMLDocument('fakeTitle');   }   getDefaultDocument(): Document {     return document;   }    isElementNode(node: Node): boolean {     return node.nodeType === Node.ELEMENT_NODE;   }    isShadowRoot(node: any): boolean {     return node instanceof DocumentFragment;   }    /** @deprecated No longer being used in Ivy code. To be removed in version 14. */   getGlobalEventTarget(doc: Document, target: string): EventTarget|null {     if (target === 'window') {       return window;     }     if (target === 'document') {       return doc;     }     if (target === 'body') {       return doc.body;     }     return null;   }   getBaseHref(doc: Document): string|null {     const href = getBaseElementHref();     return href == null ? null : relativePath(href);   }   resetBaseElement(): void {     baseElement = null;   }   getUserAgent(): string {     return window.navigator.userAgent;   }   getCookie(name: string): string|null {     return parseCookieValue(document.cookie, name);   } }  let baseElement: HTMLElement|null = null; function getBaseElementHref(): string|null {   baseElement = baseElement || document.querySelector('base');   return baseElement ? baseElement.getAttribute('href') : null; }  // based on urlUtils.js in AngularJS 1 let urlParsingNode: HTMLAnchorElement|undefined; function relativePath(url: any): string {   urlParsingNode = urlParsingNode || document.createElement('a');   urlParsingNode.setAttribute('href', url);   const pathName = urlParsingNode.pathname;   return pathName.charAt(0) === '/' ? pathName : `/${pathName}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {APP_INITIALIZER, ApplicationInitStatus, InjectionToken, Injector, StaticProvider} from '@angular/core';  /**  * An id that identifies a particular application being bootstrapped, that should  * match across the client/server boundary.  */ export const TRANSITION_ID = new InjectionToken('TRANSITION_ID');  export function appInitializerFactory(transitionId: string, document: any, injector: Injector) {   return () => {     // Wait for all application initializers to be completed before removing the styles set by     // the server.     injector.get(ApplicationInitStatus).donePromise.then(() => {       const dom = getDOM();       const styles: HTMLCollectionOf<HTMLStyleElement> =           document.querySelectorAll(`style[ng-transition=\"${transitionId}\"]`);       for (let i = 0; i < styles.length; i++) {         dom.remove(styles[i]);       }     });   }; }  export const SERVER_TRANSITION_PROVIDERS: StaticProvider[] = [   {     provide: APP_INITIALIZER,     useFactory: appInitializerFactory,     deps: [TRANSITION_ID, DOCUMENT, Injector],     multi: true   }, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {GetTestability, Testability, TestabilityRegistry, ɵglobal as global} from '@angular/core';  export class BrowserGetTestability implements GetTestability {   addToWindow(registry: TestabilityRegistry): void {     global['getAngularTestability'] = (elem: any, findInAncestors: boolean = true) => {       const testability = registry.findTestabilityInTree(elem, findInAncestors);       if (testability == null) {         throw new Error('Could not find testability for element.');       }       return testability;     };      global['getAllAngularTestabilities'] = () => registry.getAllTestabilities();      global['getAllAngularRootElements'] = () => registry.getAllRootElements();      const whenAllStable = (callback: any /** TODO #9100 */) => {       const testabilities = global['getAllAngularTestabilities']();       let count = testabilities.length;       let didWork = false;       const decrement = function(didWork_: any /** TODO #9100 */) {         didWork = didWork || didWork_;         count--;         if (count == 0) {           callback(didWork);         }       };       testabilities.forEach(function(testability: any /** TODO #9100 */) {         testability.whenStable(decrement);       });     };      if (!global['frameworkStabilizers']) {       global['frameworkStabilizers'] = [];     }     global['frameworkStabilizers'].push(whenAllStable);   }    findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean):       Testability|null {     if (elem == null) {       return null;     }     const t = registry.getTestability(elem);     if (t != null) {       return t;     } else if (!findInAncestors) {       return null;     }     if (getDOM().isShadowRoot(elem)) {       return this.findTestabilityInTree(registry, (<any>elem).host, true);     }     return this.findTestabilityInTree(registry, elem.parentElement, true);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {XhrFactory} from '@angular/common'; import {Injectable} from '@angular/core';  /**  * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.  */ @Injectable() export class BrowserXhr implements XhrFactory {   build(): XMLHttpRequest {     return new XMLHttpRequest();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, InjectionToken, NgZone} from '@angular/core';  /**  * The injection token for the event-manager plug-in service.  *  * @publicApi  */ export const EVENT_MANAGER_PLUGINS =     new InjectionToken<EventManagerPlugin[]>('EventManagerPlugins');  /**  * An injectable service that provides event management for Angular  * through a browser plug-in.  *  * @publicApi  */ @Injectable() export class EventManager {   private _plugins: EventManagerPlugin[];   private _eventNameToPlugin = new Map<string, EventManagerPlugin>();    /**    * Initializes an instance of the event-manager service.    */   constructor(@Inject(EVENT_MANAGER_PLUGINS) plugins: EventManagerPlugin[], private _zone: NgZone) {     plugins.forEach(p => p.manager = this);     this._plugins = plugins.slice().reverse();   }    /**    * Registers a handler for a specific element and event.    *    * @param element The HTML element to receive event notifications.    * @param eventName The name of the event to listen for.    * @param handler A function to call when the notification occurs. Receives the    * event object as an argument.    * @returns  A callback function that can be used to remove the handler.    */   addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     const plugin = this._findPluginFor(eventName);     return plugin.addEventListener(element, eventName, handler);   }    /**    * Registers a global handler for an event in a target view.    *    * @param target A target for global event notifications. One of \"window\", \"document\", or \"body\".    * @param eventName The name of the event to listen for.    * @param handler A function to call when the notification occurs. Receives the    * event object as an argument.    * @returns A callback function that can be used to remove the handler.    * @deprecated No longer being used in Ivy code. To be removed in version 14.    */   addGlobalEventListener(target: string, eventName: string, handler: Function): Function {     const plugin = this._findPluginFor(eventName);     return plugin.addGlobalEventListener(target, eventName, handler);   }    /**    * Retrieves the compilation zone in which event listeners are registered.    */   getZone(): NgZone {     return this._zone;   }    /** @internal */   _findPluginFor(eventName: string): EventManagerPlugin {     const plugin = this._eventNameToPlugin.get(eventName);     if (plugin) {       return plugin;     }      const plugins = this._plugins;     for (let i = 0; i < plugins.length; i++) {       const plugin = plugins[i];       if (plugin.supports(eventName)) {         this._eventNameToPlugin.set(eventName, plugin);         return plugin;       }     }     throw new Error(`No event manager plugin found for event ${eventName}`);   } }  export abstract class EventManagerPlugin {   constructor(private _doc: any) {}    // TODO(issue/24571): remove '!'.   manager!: EventManager;    abstract supports(eventName: string): boolean;    abstract addEventListener(element: HTMLElement, eventName: string, handler: Function): Function;    addGlobalEventListener(element: string, eventName: string, handler: Function): Function {     const target: HTMLElement = getDOM().getGlobalEventTarget(this._doc, element);     if (!target) {       throw new Error(`Unsupported event target ${target} for event ${eventName}`);     }     return this.addEventListener(target, eventName, handler);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {Inject, Injectable, OnDestroy} from '@angular/core';  @Injectable() export class SharedStylesHost implements OnDestroy {   private readonly usageCount = new Map<string /** Style string */, number /** Usage count */>();    addStyles(styles: string[]): void {     for (const style of styles) {       const usageCount = this.changeUsageCount(style, 1);        if (usageCount === 1) {         this.onStyleAdded(style);       }     }   }    removeStyles(styles: string[]): void {     for (const style of styles) {       const usageCount = this.changeUsageCount(style, -1);        if (usageCount === 0) {         this.onStyleRemoved(style);       }     }   }    onStyleRemoved(style: string): void {}    onStyleAdded(style: string): void {}    getAllStyles(): IterableIterator<string> {     return this.usageCount.keys();   }    private changeUsageCount(style: string, delta: number): number {     const map = this.usageCount;     let usage = map.get(style) ?? 0;     usage += delta;      if (usage > 0) {       map.set(style, usage);     } else {       map.delete(style);     }      return usage;   }    ngOnDestroy(): void {     for (const style of this.getAllStyles()) {       this.onStyleRemoved(style);     }      this.usageCount.clear();   } }  @Injectable() export class DomSharedStylesHost extends SharedStylesHost implements OnDestroy {   // Maps all registered host nodes to a list of style nodes that have been added to the host node.   private readonly styleRef = new Map<string, HTMLStyleElement[]>();   private hostNodes = new Set<Node>();    constructor(@Inject(DOCUMENT) private readonly doc: any) {     super();     this.resetHostNodes();   }    override onStyleAdded(style: string): void {     for (const host of this.hostNodes) {       this.addStyleToHost(host, style);     }   }    override onStyleRemoved(style: string): void {     const styleRef = this.styleRef;     const styleElements = styleRef.get(style);     styleElements?.forEach(e => e.remove());     styleRef.delete(style);   }    override ngOnDestroy(): void {     super.ngOnDestroy();     this.styleRef.clear();     this.resetHostNodes();   }    addHost(hostNode: Node): void {     this.hostNodes.add(hostNode);      for (const style of this.getAllStyles()) {       this.addStyleToHost(hostNode, style);     }   }    removeHost(hostNode: Node): void {     this.hostNodes.delete(hostNode);   }    private addStyleToHost(host: Node, style: string): void {     const styleEl = this.doc.createElement('style');     styleEl.textContent = style;     host.appendChild(styleEl);      const styleElRef = this.styleRef.get(style);     if (styleElRef) {       styleElRef.push(styleEl);     } else {       this.styleRef.set(style, [styleEl]);     }   }    private resetHostNodes(): void {     const hostNodes = this.hostNodes;     hostNodes.clear();     // Re-add the head element back since this is the default host.     hostNodes.add(this.doc.head);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {APP_ID, Inject, Injectable, InjectionToken, OnDestroy, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, ViewEncapsulation} from '@angular/core';  import {EventManager} from './events/event_manager'; import {DomSharedStylesHost} from './shared_styles_host';  export const NAMESPACE_URIS: {[ns: string]: string} = {   'svg': 'http://www.w3.org/2000/svg',   'xhtml': 'http://www.w3.org/1999/xhtml',   'xlink': 'http://www.w3.org/1999/xlink',   'xml': 'http://www.w3.org/XML/1998/namespace',   'xmlns': 'http://www.w3.org/2000/xmlns/',   'math': 'http://www.w3.org/1998/MathML/', };  const COMPONENT_REGEX = /%COMP%/g; const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  export const COMPONENT_VARIABLE = '%COMP%'; export const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`; export const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;  /**  * The default value for the `REMOVE_STYLES_ON_COMPONENT_DESTROY` DI token.  */ const REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT = false;  /**  * A [DI token](guide/glossary#di-token \"DI token definition\") that indicates whether styles  * of destroyed components should be removed from DOM.  *  * By default, the value is set to `false`. This will be changed in the next major version.  * @publicApi  */ export const REMOVE_STYLES_ON_COMPONENT_DESTROY =     new InjectionToken<boolean>('RemoveStylesOnCompDestory', {       providedIn: 'root',       factory: () => REMOVE_STYLES_ON_COMPONENT_DESTROY_DEFAULT,     });  export function shimContentAttribute(componentShortId: string): string {   return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId); }  export function shimHostAttribute(componentShortId: string): string {   return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId); }  export function flattenStyles(compId: string, styles: Array<string|string[]>): string[] {   // Cannot use `Infinity` as depth as `infinity` is not a number literal in TypeScript.   // See: https://github.com/microsoft/TypeScript/issues/32277   return styles.flat(100).map(s => s.replace(COMPONENT_REGEX, compId)); }  function decoratePreventDefault(eventHandler: Function): Function {   // `DebugNode.triggerEventHandler` needs to know if the listener was created with   // decoratePreventDefault or is a listener added outside the Angular context so it can handle the   // two differently. In the first case, the special '__ngUnwrap__' token is passed to the unwrap   // the listener (see below).   return (event: any) => {     // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function     // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The debug_node     // can inspect the listener toString contents for the existence of this special token. Because     // the token is a string literal, it is ensured to not be modified by compiled code.     if (event === '__ngUnwrap__') {       return eventHandler;     }      const allowDefaultBehavior = eventHandler(event);     if (allowDefaultBehavior === false) {       // TODO(tbosch): move preventDefault into event plugins...       event.preventDefault();       event.returnValue = false;     }      return undefined;   }; }  @Injectable() export class DomRendererFactory2 implements RendererFactory2, OnDestroy {   private rendererByCompId =       new Map<string, EmulatedEncapsulationDomRenderer2|NoneEncapsulationDomRenderer>();   private defaultRenderer: Renderer2;    constructor(       private eventManager: EventManager, private sharedStylesHost: DomSharedStylesHost,       @Inject(APP_ID) private appId: string,       @Inject(REMOVE_STYLES_ON_COMPONENT_DESTROY) private removeStylesOnCompDestory: boolean) {     this.defaultRenderer = new DefaultDomRenderer2(eventManager);   }    createRenderer(element: any, type: RendererType2|null): Renderer2 {     if (!element || !type) {       return this.defaultRenderer;     }      const renderer = this.getOrCreateRenderer(element, type);      // Renderers have different logic due to different encapsulation behaviours.     // Ex: for emulated, an attribute is added to the element.     if (renderer instanceof EmulatedEncapsulationDomRenderer2) {       renderer.applyToHost(element);     } else if (renderer instanceof NoneEncapsulationDomRenderer) {       renderer.applyStyles();     }      return renderer;   }    private getOrCreateRenderer(element: any, type: RendererType2): Renderer2 {     const rendererByCompId = this.rendererByCompId;     let renderer = rendererByCompId.get(type.id);      if (!renderer) {       const eventManager = this.eventManager;       const sharedStylesHost = this.sharedStylesHost;       const removeStylesOnCompDestory = this.removeStylesOnCompDestory;        switch (type.encapsulation) {         case ViewEncapsulation.Emulated:           renderer = new EmulatedEncapsulationDomRenderer2(               eventManager, sharedStylesHost, type, this.appId, removeStylesOnCompDestory);           break;         case ViewEncapsulation.ShadowDom:           return new ShadowDomRenderer(eventManager, sharedStylesHost, element, type);         default:           renderer = new NoneEncapsulationDomRenderer(               eventManager, sharedStylesHost, type, removeStylesOnCompDestory);           break;       }        renderer.onDestroy = () => rendererByCompId.delete(type.id);       rendererByCompId.set(type.id, renderer);     }      return renderer;   }    ngOnDestroy() {     this.rendererByCompId.clear();   }    begin() {}   end() {} }  class DefaultDomRenderer2 implements Renderer2 {   data: {[key: string]: any} = Object.create(null);    constructor(private eventManager: EventManager) {}    destroy(): void {}    destroyNode = null;    createElement(name: string, namespace?: string): any {     if (namespace) {       // TODO: `|| namespace` was added in       // https://github.com/angular/angular/commit/2b9cc8503d48173492c29f5a271b61126104fbdb to       // support how Ivy passed around the namespace URI rather than short name at the time. It did       // not, however extend the support to other parts of the system (setAttribute, setAttribute,       // and the ServerRenderer). We should decide what exactly the semantics for dealing with       // namespaces should be and make it consistent.       // Related issues:       // https://github.com/angular/angular/issues/44028       // https://github.com/angular/angular/issues/44883       return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);     }      return document.createElement(name);   }    createComment(value: string): any {     return document.createComment(value);   }    createText(value: string): any {     return document.createTextNode(value);   }    appendChild(parent: any, newChild: any): void {     const targetParent = isTemplateNode(parent) ? parent.content : parent;     targetParent.appendChild(newChild);   }    insertBefore(parent: any, newChild: any, refChild: any): void {     if (parent) {       const targetParent = isTemplateNode(parent) ? parent.content : parent;       targetParent.insertBefore(newChild, refChild);     }   }    removeChild(parent: any, oldChild: any): void {     if (parent) {       parent.removeChild(oldChild);     }   }    selectRootElement(selectorOrNode: string|any, preserveContent?: boolean): any {     let el: any = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :                                                        selectorOrNode;     if (!el) {       throw new Error(`The selector \"${selectorOrNode}\" did not match any elements`);     }     if (!preserveContent) {       el.textContent = '';     }     return el;   }    parentNode(node: any): any {     return node.parentNode;   }    nextSibling(node: any): any {     return node.nextSibling;   }    setAttribute(el: any, name: string, value: string, namespace?: string): void {     if (namespace) {       name = namespace + ':' + name;       const namespaceUri = NAMESPACE_URIS[namespace];       if (namespaceUri) {         el.setAttributeNS(namespaceUri, name, value);       } else {         el.setAttribute(name, value);       }     } else {       el.setAttribute(name, value);     }   }    removeAttribute(el: any, name: string, namespace?: string): void {     if (namespace) {       const namespaceUri = NAMESPACE_URIS[namespace];       if (namespaceUri) {         el.removeAttributeNS(namespaceUri, name);       } else {         el.removeAttribute(`${namespace}:${name}`);       }     } else {       el.removeAttribute(name);     }   }    addClass(el: any, name: string): void {     el.classList.add(name);   }    removeClass(el: any, name: string): void {     el.classList.remove(name);   }    setStyle(el: any, style: string, value: any, flags: RendererStyleFlags2): void {     if (flags & (RendererStyleFlags2.DashCase | RendererStyleFlags2.Important)) {       el.style.setProperty(style, value, flags & RendererStyleFlags2.Important ? 'important' : '');     } else {       el.style[style] = value;     }   }    removeStyle(el: any, style: string, flags: RendererStyleFlags2): void {     if (flags & RendererStyleFlags2.DashCase) {       el.style.removeProperty(style);     } else {       // IE requires '' instead of null       // see https://github.com/angular/angular/issues/7916       el.style[style] = '';     }   }    setProperty(el: any, name: string, value: any): void {     NG_DEV_MODE && checkNoSyntheticProp(name, 'property');     el[name] = value;   }    setValue(node: any, value: string): void {     node.nodeValue = value;   }    listen(target: 'window'|'document'|'body'|any, event: string, callback: (event: any) => boolean):       () => void {     NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');     if (typeof target === 'string') {       return <() => void>this.eventManager.addGlobalEventListener(           target, event, decoratePreventDefault(callback));     }     return <() => void>this.eventManager.addEventListener(                target, event, decoratePreventDefault(callback)) as () => void;   } }  const AT_CHARCODE = (() => '@'.charCodeAt(0))(); function checkNoSyntheticProp(name: string, nameKind: string) {   if (name.charCodeAt(0) === AT_CHARCODE) {     throw new Error(`Unexpected synthetic ${nameKind} ${name} found. Please make sure that:   - Either \\`BrowserAnimationsModule\\` or \\`NoopAnimationsModule\\` are imported in your application.   - There is corresponding configuration for the animation named \\`${         name}\\` defined in the \\`animations\\` field of the \\`@Component\\` decorator (see https://angular.io/api/core/Component#animations).`);   } }   function isTemplateNode(node: any): node is HTMLTemplateElement {   return node.tagName === 'TEMPLATE' && node.content !== undefined; }  class ShadowDomRenderer extends DefaultDomRenderer2 {   private shadowRoot: any;    constructor(       eventManager: EventManager, private sharedStylesHost: DomSharedStylesHost,       private hostEl: any, component: RendererType2) {     super(eventManager);     this.shadowRoot = (hostEl as any).attachShadow({mode: 'open'});      this.sharedStylesHost.addHost(this.shadowRoot);     const styles = flattenStyles(component.id, component.styles);      for (const style of styles) {       const styleEl = document.createElement('style');       styleEl.textContent = style;       this.shadowRoot.appendChild(styleEl);     }   }    private nodeOrShadowRoot(node: any): any {     return node === this.hostEl ? this.shadowRoot : node;   }    override appendChild(parent: any, newChild: any): void {     return super.appendChild(this.nodeOrShadowRoot(parent), newChild);   }   override insertBefore(parent: any, newChild: any, refChild: any): void {     return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);   }   override removeChild(parent: any, oldChild: any): void {     return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);   }   override parentNode(node: any): any {     return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));   }    override destroy() {     this.sharedStylesHost.removeHost(this.shadowRoot);   } }  class NoneEncapsulationDomRenderer extends DefaultDomRenderer2 {   private readonly styles: string[];   private rendererUsageCount = 0;   onDestroy: VoidFunction|undefined;    constructor(       eventManager: EventManager,       private readonly sharedStylesHost: DomSharedStylesHost,       component: RendererType2,       private removeStylesOnCompDestory: boolean,       compId = component.id,   ) {     super(eventManager);     this.styles = flattenStyles(compId, component.styles);   }    applyStyles(): void {     this.sharedStylesHost.addStyles(this.styles);     this.rendererUsageCount++;   }    override destroy(): void {     if (!this.removeStylesOnCompDestory) {       return;     }      this.sharedStylesHost.removeStyles(this.styles);     this.rendererUsageCount--;     if (this.rendererUsageCount === 0) {       this.onDestroy?.();     }   } }  class EmulatedEncapsulationDomRenderer2 extends NoneEncapsulationDomRenderer {   private contentAttr: string;   private hostAttr: string;    constructor(       eventManager: EventManager, sharedStylesHost: DomSharedStylesHost, component: RendererType2,       appId: string, removeStylesOnCompDestory: boolean) {     const compId = appId + '-' + component.id;     super(eventManager, sharedStylesHost, component, removeStylesOnCompDestory, compId);     this.contentAttr = shimContentAttribute(compId);     this.hostAttr = shimHostAttribute(compId);   }    applyToHost(element: any): void {     this.applyStyles();     this.setAttribute(element, this.hostAttr, '');   }    override createElement(parent: any, name: string): Element {     const el = super.createElement(parent, name);     super.setAttribute(el, this.contentAttr, '');     return el;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {Inject, Injectable} from '@angular/core';  import {EventManagerPlugin} from './event_manager';  @Injectable() export class DomEventsPlugin extends EventManagerPlugin {   constructor(@Inject(DOCUMENT) doc: any) {     super(doc);   }    // This plugin should come last in the list of plugins, because it accepts all   // events.   override supports(eventName: string): boolean {     return true;   }    override addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     element.addEventListener(eventName, handler as EventListener, false);     return () => this.removeEventListener(element, eventName, handler as EventListener);   }    removeEventListener(target: any, eventName: string, callback: Function): void {     return target.removeEventListener(eventName, callback as EventListener);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, NgZone} from '@angular/core';  import {EventManagerPlugin} from './event_manager';  /**  * Defines supported modifiers for key events.  */ const MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];  // The following values are here for cross-browser compatibility and to match the W3C standard // cf https://www.w3.org/TR/DOM-Level-3-Events-key/ const _keyMap: {[k: string]: string} = {   '\\b': 'Backspace',   '\ ': 'Tab',   '\\x7F': 'Delete',   '\\x1B': 'Escape',   'Del': 'Delete',   'Esc': 'Escape',   'Left': 'ArrowLeft',   'Right': 'ArrowRight',   'Up': 'ArrowUp',   'Down': 'ArrowDown',   'Menu': 'ContextMenu',   'Scroll': 'ScrollLock',   'Win': 'OS' };  /**  * Retrieves modifiers from key-event objects.  */ const MODIFIER_KEY_GETTERS: {[key: string]: (event: KeyboardEvent) => boolean} = {   'alt': (event: KeyboardEvent) => event.altKey,   'control': (event: KeyboardEvent) => event.ctrlKey,   'meta': (event: KeyboardEvent) => event.metaKey,   'shift': (event: KeyboardEvent) => event.shiftKey };  /**  * @publicApi  * A browser plug-in that provides support for handling of key events in Angular.  */ @Injectable() export class KeyEventsPlugin extends EventManagerPlugin {   /**    * Initializes an instance of the browser plug-in.    * @param doc The document in which key events will be detected.    */   constructor(@Inject(DOCUMENT) doc: any) {     super(doc);   }    /**    * Reports whether a named key event is supported.    * @param eventName The event name to query.    * @return True if the named key event is supported.    */   override supports(eventName: string): boolean {     return KeyEventsPlugin.parseEventName(eventName) != null;   }    /**    * Registers a handler for a specific element and key event.    * @param element The HTML element to receive event notifications.    * @param eventName The name of the key event to listen for.    * @param handler A function to call when the notification occurs. Receives the    * event object as an argument.    * @returns The key event that was registered.    */   override addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     const parsedEvent = KeyEventsPlugin.parseEventName(eventName)!;      const outsideHandler =         KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());      return this.manager.getZone().runOutsideAngular(() => {       return getDOM().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);     });   }    /**    * Parses the user provided full keyboard event definition and normalizes it for    * later internal use. It ensures the string is all lowercase, converts special    * characters to a standard spelling, and orders all the values consistently.    *    * @param eventName The name of the key event to listen for.    * @returns an object with the full, normalized string, and the dom event name    * or null in the case when the event doesn't match a keyboard event.    */   static parseEventName(eventName: string): {fullKey: string, domEventName: string}|null {     const parts: string[] = eventName.toLowerCase().split('.');      const domEventName = parts.shift();     if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {       return null;     }      const key = KeyEventsPlugin._normalizeKey(parts.pop()!);      let fullKey = '';     let codeIX = parts.indexOf('code');     if (codeIX > -1) {       parts.splice(codeIX, 1);       fullKey = 'code.';     }     MODIFIER_KEYS.forEach(modifierName => {       const index: number = parts.indexOf(modifierName);       if (index > -1) {         parts.splice(index, 1);         fullKey += modifierName + '.';       }     });     fullKey += key;      if (parts.length != 0 || key.length === 0) {       // returning null instead of throwing to let another plugin process the event       return null;     }      // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.     //       The code must remain in the `result['domEventName']` form.     // return {domEventName, fullKey};     const result: {fullKey: string, domEventName: string} = {} as any;     result['domEventName'] = domEventName;     result['fullKey'] = fullKey;     return result;   }    /**    * Determines whether the actual keys pressed match the configured key code string.    * The `fullKeyCode` event is normalized in the `parseEventName` method when the    * event is attached to the DOM during the `addEventListener` call. This is unseen    * by the end user and is normalized for internal consistency and parsing.    *    * @param event The keyboard event.    * @param fullKeyCode The normalized user defined expected key event string    * @returns boolean.    */   static matchEventFullKeyCode(event: KeyboardEvent, fullKeyCode: string): boolean {     let keycode = _keyMap[event.key] || event.key;     let key = '';     if (fullKeyCode.indexOf('code.') > -1) {       keycode = event.code;       key = 'code.';     }     // the keycode could be unidentified so we have to check here     if (keycode == null || !keycode) return false;     keycode = keycode.toLowerCase();     if (keycode === ' ') {       keycode = 'space';  // for readability     } else if (keycode === '.') {       keycode = 'dot';  // because '.' is used as a separator in event names     }     MODIFIER_KEYS.forEach(modifierName => {       if (modifierName !== keycode) {         const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];         if (modifierGetter(event)) {           key += modifierName + '.';         }       }     });     key += keycode;     return key === fullKeyCode;   }    /**    * Configures a handler callback for a key event.    * @param fullKey The event name that combines all simultaneous keystrokes.    * @param handler The function that responds to the key event.    * @param zone The zone in which the event occurred.    * @returns A callback function.    */   static eventCallback(fullKey: string, handler: Function, zone: NgZone): Function {     return (event: KeyboardEvent) => {       if (KeyEventsPlugin.matchEventFullKeyCode(event, fullKey)) {         zone.runGuarded(() => handler(event));       }     };   }    /** @internal */   static _normalizeKey(keyName: string): string {     // TODO: switch to a Map if the mapping grows too much     switch (keyName) {       case 'esc':         return 'escape';       default:         return keyName;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {CommonModule, DOCUMENT, XhrFactory, ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common'; import {APP_ID, ApplicationModule, ApplicationRef, createPlatformFactory, EnvironmentProviders, ErrorHandler, Inject, InjectionToken, ModuleWithProviders, NgModule, NgZone, Optional, PLATFORM_ID, PLATFORM_INITIALIZER, platformCore, PlatformRef, Provider, RendererFactory2, SkipSelf, StaticProvider, Testability, TestabilityRegistry, Type, ɵINJECTOR_SCOPE as INJECTOR_SCOPE, ɵinternalCreateApplication as internalCreateApplication, ɵsetDocument, ɵTESTABILITY as TESTABILITY, ɵTESTABILITY_GETTER as TESTABILITY_GETTER} from '@angular/core';  import {BrowserDomAdapter} from './browser/browser_adapter'; import {SERVER_TRANSITION_PROVIDERS, TRANSITION_ID} from './browser/server-transition'; import {BrowserGetTestability} from './browser/testability'; import {BrowserXhr} from './browser/xhr'; import {DomRendererFactory2, REMOVE_STYLES_ON_COMPONENT_DESTROY} from './dom/dom_renderer'; import {DomEventsPlugin} from './dom/events/dom_events'; import {EVENT_MANAGER_PLUGINS, EventManager} from './dom/events/event_manager'; import {KeyEventsPlugin} from './dom/events/key_events'; import {DomSharedStylesHost, SharedStylesHost} from './dom/shared_styles_host';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * Set of config options available during the application bootstrap operation.  *  * @publicApi  */ export interface ApplicationConfig {   /**    * List of providers that should be available to the root component and all its children.    */   providers: Array<Provider|EnvironmentProviders>; }  /**  * Bootstraps an instance of an Angular application and renders a standalone component as the  * application's root component. More information about standalone components can be found in [this  * guide](guide/standalone-components).  *  * @usageNotes  * The root component passed into this function *must* be a standalone one (should have the  * `standalone: true` flag in the `@Component` decorator config).  *  * ```typescript  * @Component({  *   standalone: true,  *   template: 'Hello world!'  * })  * class RootComponent {}  *  * const appRef: ApplicationRef = await bootstrapApplication(RootComponent);  * ```  *  * You can add the list of providers that should be available in the application injector by  * specifying the `providers` field in an object passed as the second argument:  *  * ```typescript  * await bootstrapApplication(RootComponent, {  *   providers: [  *     {provide: BACKEND_URL, useValue: 'https://yourdomain.com/api'}  *   ]  * });  * ```  *  * The `importProvidersFrom` helper method can be used to collect all providers from any  * existing NgModule (and transitively from all NgModules that it imports):  *  * ```typescript  * await bootstrapApplication(RootComponent, {  *   providers: [  *     importProvidersFrom(SomeNgModule)  *   ]  * });  * ```  *  * Note: the `bootstrapApplication` method doesn't include [Testability](api/core/Testability) by  * default. You can add [Testability](api/core/Testability) by getting the list of necessary  * providers using `provideProtractorTestingSupport()` function and adding them into the `providers`  * array, for example:  *  * ```typescript  * import {provideProtractorTestingSupport} from '@angular/platform-browser';  *  * await bootstrapApplication(RootComponent, {providers: [provideProtractorTestingSupport()]});  * ```  *  * @param rootComponent A reference to a standalone component that should be rendered.  * @param options Extra configuration for the bootstrap operation, see `ApplicationConfig` for  *     additional info.  * @returns A promise that returns an `ApplicationRef` instance once resolved.  *  * @publicApi  */ export function bootstrapApplication(     rootComponent: Type<unknown>, options?: ApplicationConfig): Promise<ApplicationRef> {   return internalCreateApplication({rootComponent, ...createProvidersConfig(options)}); }  /**  * Create an instance of an Angular application without bootstrapping any components. This is useful  * for the situation where one wants to decouple application environment creation (a platform and  * associated injectors) from rendering components on a screen. Components can be subsequently  * bootstrapped on the returned `ApplicationRef`.  *  * @param options Extra configuration for the application environment, see `ApplicationConfig` for  *     additional info.  * @returns A promise that returns an `ApplicationRef` instance once resolved.  *  * @publicApi  */ export function createApplication(options?: ApplicationConfig) {   return internalCreateApplication(createProvidersConfig(options)); }  function createProvidersConfig(options?: ApplicationConfig) {   return {     appProviders: [       ...BROWSER_MODULE_PROVIDERS,       ...(options?.providers ?? []),     ],     platformProviders: INTERNAL_BROWSER_PLATFORM_PROVIDERS   }; }  /**  * Returns a set of providers required to setup [Testability](api/core/Testability) for an  * application bootstrapped using the `bootstrapApplication` function. The set of providers is  * needed to support testing an application with Protractor (which relies on the Testability APIs  * to be present).  *  * @returns An array of providers required to setup Testability for an application and make it  *     available for testing using Protractor.  *  * @publicApi  */ export function provideProtractorTestingSupport(): Provider[] {   // Return a copy to prevent changes to the original array in case any in-place   // alterations are performed to the `provideProtractorTestingSupport` call results in app code.   return [...TESTABILITY_PROVIDERS]; }  export function initDomAdapter() {   BrowserDomAdapter.makeCurrent(); }  export function errorHandler(): ErrorHandler {   return new ErrorHandler(); }  export function _document(): any {   // Tell ivy about the global document   ɵsetDocument(document);   return document; }  export const INTERNAL_BROWSER_PLATFORM_PROVIDERS: StaticProvider[] = [   {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},   {provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true},   {provide: DOCUMENT, useFactory: _document, deps: []}, ];  /**  * A factory function that returns a `PlatformRef` instance associated with browser service  * providers.  *  * @publicApi  */ export const platformBrowser: (extraProviders?: StaticProvider[]) => PlatformRef =     createPlatformFactory(platformCore, 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);  /**  * Internal marker to signal whether providers from the `BrowserModule` are already present in DI.  * This is needed to avoid loading `BrowserModule` providers twice. We can't rely on the  * `BrowserModule` presence itself, since the standalone-based bootstrap just imports  * `BrowserModule` providers without referencing the module itself.  */ const BROWSER_MODULE_PROVIDERS_MARKER =     new InjectionToken(NG_DEV_MODE ? 'BrowserModule Providers Marker' : '');  const TESTABILITY_PROVIDERS = [   {     provide: TESTABILITY_GETTER,     useClass: BrowserGetTestability,     deps: [],   },   {     provide: TESTABILITY,     useClass: Testability,     deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER]   },   {     provide: Testability,  // Also provide as `Testability` for backwards-compatibility.     useClass: Testability,     deps: [NgZone, TestabilityRegistry, TESTABILITY_GETTER]   } ];  const BROWSER_MODULE_PROVIDERS: Provider[] = [   {provide: INJECTOR_SCOPE, useValue: 'root'},   {provide: ErrorHandler, useFactory: errorHandler, deps: []}, {     provide: EVENT_MANAGER_PLUGINS,     useClass: DomEventsPlugin,     multi: true,     deps: [DOCUMENT, NgZone, PLATFORM_ID]   },   {provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [DOCUMENT]}, {     provide: DomRendererFactory2,     useClass: DomRendererFactory2,     deps: [EventManager, DomSharedStylesHost, APP_ID, REMOVE_STYLES_ON_COMPONENT_DESTROY]   },   {provide: RendererFactory2, useExisting: DomRendererFactory2},   {provide: SharedStylesHost, useExisting: DomSharedStylesHost},   {provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [DOCUMENT]},   {provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, NgZone]},   {provide: XhrFactory, useClass: BrowserXhr, deps: []},   NG_DEV_MODE ? {provide: BROWSER_MODULE_PROVIDERS_MARKER, useValue: true} : [] ];  /**  * Exports required infrastructure for all Angular apps.  * Included by default in all Angular apps created with the CLI  * `new` command.  * Re-exports `CommonModule` and `ApplicationModule`, making their  * exports and providers available to all apps.  *  * @publicApi  */ @NgModule({   providers: [     ...BROWSER_MODULE_PROVIDERS,  //     ...TESTABILITY_PROVIDERS   ],   exports: [CommonModule, ApplicationModule], }) export class BrowserModule {   constructor(@Optional() @SkipSelf() @Inject(BROWSER_MODULE_PROVIDERS_MARKER)               providersAlreadyPresent: boolean|null) {     if (NG_DEV_MODE && providersAlreadyPresent) {       throw new Error(           `Providers from the \\`BrowserModule\\` have already been loaded. If you need access ` +           `to common directives such as NgIf and NgFor, import the \\`CommonModule\\` instead.`);     }   }    /**    * Configures a browser-based app to transition from a server-rendered app, if    * one is present on the page.    *    * @param params An object containing an identifier for the app to transition.    * The ID must match between the client and server versions of the app.    * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.    */   static withServerTransition(params: {appId: string}): ModuleWithProviders<BrowserModule> {     return {       ngModule: BrowserModule,       providers: [         {provide: APP_ID, useValue: params.appId},         {provide: TRANSITION_ID, useExisting: APP_ID},         SERVER_TRANSITION_PROVIDERS,       ],     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵDomAdapter as DomAdapter, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, ɵɵinject} from '@angular/core';  /**  * Represents the attributes of an HTML `<meta>` element. The element itself is  * represented by the internal `HTMLMetaElement`.  *  * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)  * @see `Meta`  *  * @publicApi  */ export type MetaDefinition = {   charset?: string;   content?: string;   httpEquiv?: string;   id?: string;   itemprop?: string;   name?: string;   property?: string;   scheme?: string;   url?: string; }&{   // TODO(IgorMinar): this type looks wrong   [prop: string]: string; };  /**  * Factory to create a `Meta` service instance for the current DOM document.  */ export function createMeta() {   return new Meta(ɵɵinject(DOCUMENT)); }  /**  * A service for managing HTML `<meta>` tags.  *  * Properties of the `MetaDefinition` object match the attributes of the  * HTML `<meta>` tag. These tags define document metadata that is important for  * things like configuring a Content Security Policy, defining browser compatibility  * and security settings, setting HTTP Headers, defining rich content for social sharing,  * and Search Engine Optimization (SEO).  *  * To identify specific `<meta>` tags in a document, use an attribute selection  * string in the format `\"tag_attribute='value string'\"`.  * For example, an `attrSelector` value of `\"name='description'\"` matches a tag  * whose `name` attribute has the value `\"description\"`.  * Selectors are used with the `querySelector()` Document method,  * in the format `meta[{attrSelector}]`.  *  * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)  * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)  *  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: createMeta, deps: []}) export class Meta {   private _dom: DomAdapter;   constructor(@Inject(DOCUMENT) private _doc: any) {     this._dom = getDOM();   }   /**    * Retrieves or creates a specific `<meta>` tag element in the current HTML document.    * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute    * values in the provided tag definition, and verifies that all other attribute values are equal.    * If an existing element is found, it is returned and is not modified in any way.    * @param tag The definition of a `<meta>` element to match or create.    * @param forceCreation True to create a new element without checking whether one already exists.    * @returns The existing element with the same attributes and values if found,    * the new element if no match is found, or `null` if the tag parameter is not defined.    */   addTag(tag: MetaDefinition, forceCreation: boolean = false): HTMLMetaElement|null {     if (!tag) return null;     return this._getOrCreateElement(tag, forceCreation);   }    /**    * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.    * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute    * values in the provided tag definition, and verifies that all other attribute values are equal.    * @param tags An array of tag definitions to match or create.    * @param forceCreation True to create new elements without checking whether they already exist.    * @returns The matching elements if found, or the new elements.    */   addTags(tags: MetaDefinition[], forceCreation: boolean = false): HTMLMetaElement[] {     if (!tags) return [];     return tags.reduce((result: HTMLMetaElement[], tag: MetaDefinition) => {       if (tag) {         result.push(this._getOrCreateElement(tag, forceCreation));       }       return result;     }, []);   }    /**    * Retrieves a `<meta>` tag element in the current HTML document.    * @param attrSelector The tag attribute and value to match against, in the format    * `\"tag_attribute='value string'\"`.    * @returns The matching element, if any.    */   getTag(attrSelector: string): HTMLMetaElement|null {     if (!attrSelector) return null;     return this._doc.querySelector(`meta[${attrSelector}]`) || null;   }    /**    * Retrieves a set of `<meta>` tag elements in the current HTML document.    * @param attrSelector The tag attribute and value to match against, in the format    * `\"tag_attribute='value string'\"`.    * @returns The matching elements, if any.    */   getTags(attrSelector: string): HTMLMetaElement[] {     if (!attrSelector) return [];     const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);     return list ? [].slice.call(list) : [];   }    /**    * Modifies an existing `<meta>` tag element in the current HTML document.    * @param tag The tag description with which to replace the existing tag content.    * @param selector A tag attribute and value to match against, to identify    * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.    * If not supplied, matches a tag with the same `name` or `property` attribute value as the    * replacement tag.    * @return The modified element.    */   updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement|null {     if (!tag) return null;     selector = selector || this._parseSelector(tag);     const meta: HTMLMetaElement = this.getTag(selector)!;     if (meta) {       return this._setMetaElementAttributes(tag, meta);     }     return this._getOrCreateElement(tag, true);   }    /**    * Removes an existing `<meta>` tag element from the current HTML document.    * @param attrSelector A tag attribute and value to match against, to identify    * an existing tag. A string in the format `\"tag_attribute=`value string`\"`.    */   removeTag(attrSelector: string): void {     this.removeTagElement(this.getTag(attrSelector)!);   }    /**    * Removes an existing `<meta>` tag element from the current HTML document.    * @param meta The tag definition to match against to identify an existing tag.    */   removeTagElement(meta: HTMLMetaElement): void {     if (meta) {       this._dom.remove(meta);     }   }    private _getOrCreateElement(meta: MetaDefinition, forceCreation: boolean = false):       HTMLMetaElement {     if (!forceCreation) {       const selector: string = this._parseSelector(meta);       // It's allowed to have multiple elements with the same name so it's not enough to       // just check that element with the same name already present on the page. We also need to       // check if element has tag attributes       const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];       if (elem !== undefined) return elem;     }     const element: HTMLMetaElement = this._dom.createElement('meta') as HTMLMetaElement;     this._setMetaElementAttributes(meta, element);     const head = this._doc.getElementsByTagName('head')[0];     head.appendChild(element);     return element;   }    private _setMetaElementAttributes(tag: MetaDefinition, el: HTMLMetaElement): HTMLMetaElement {     Object.keys(tag).forEach(         (prop: string) => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));     return el;   }    private _parseSelector(tag: MetaDefinition): string {     const attr: string = tag.name ? 'name' : 'property';     return `${attr}=\"${tag[attr]}\"`;   }    private _containsAttributes(tag: MetaDefinition, elem: HTMLMetaElement): boolean {     return Object.keys(tag).every(         (key: string) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);   }    private _getMetaKeyMap(prop: string): string {     return META_KEYS_MAP[prop] || prop;   } }  /**  * Mapping for MetaDefinition properties with their correct meta attribute names  */ const META_KEYS_MAP: {[prop: string]: string;} = {   httpEquiv: 'http-equiv' }; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common'; import {Inject, Injectable, ɵɵinject} from '@angular/core';   /**  * Factory to create Title service.  */ export function createTitle() {   return new Title(ɵɵinject(DOCUMENT)); }  /**  * A service that can be used to get and set the title of a current HTML document.  *  * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)  * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements  * (representing the `<title>` tag). Instead, this service can be used to set and get the current  * title value.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: createTitle, deps: []}) export class Title {   constructor(@Inject(DOCUMENT) private _doc: any) {}   /**    * Get the title of the current HTML document.    */   getTitle(): string {     return this._doc.title;   }    /**    * Set the title of the current HTML document.    * @param newTitle    */   setTitle(newTitle: string) {     this._doc.title = newTitle || '';   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵglobal as global} from '@angular/core';  const CAMEL_CASE_REGEXP = /([A-Z])/g; const DASH_CASE_REGEXP = /-([a-z])/g;   export function camelCaseToDashCase(input: string): string {   return input.replace(CAMEL_CASE_REGEXP, (...m: string[]) => '-' + m[1].toLowerCase()); }  export function dashCaseToCamelCase(input: string): string {   return input.replace(DASH_CASE_REGEXP, (...m: string[]) => m[1].toUpperCase()); }  /**  * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if  * `name` is `'probe'`.  * @param name Name under which it will be exported. Keep in mind this will be a property of the  * global `ng` object.  * @param value The value to export.  */ export function exportNgVar(name: string, value: any): void {   if (typeof COMPILED === 'undefined' || !COMPILED) {     // Note: we can't export `ng` when using closure enhanced optimization as:     // - closure declares globals itself for minified names, which sometimes clobber our `ng` global     // - we can't declare a closure extern as the namespace `ng` is already used within Google     //   for typings for angularJS (via `goog.provide('ng....')`).     const ng = global['ng'] = (global['ng'] as {[key: string]: any} | undefined) || {};     ng[name] = value;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  const win = typeof window !== 'undefined' && window || <any>{}; export {win as window}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ApplicationRef, ComponentRef} from '@angular/core'; import {window} from './browser';  export class ChangeDetectionPerfRecord {   constructor(public msPerTick: number, public numTicks: number) {} }  /**  * Entry point for all Angular profiling-related debug tools. This object  * corresponds to the `ng.profiler` in the dev console.  */ export class AngularProfiler {   appRef: ApplicationRef;    constructor(ref: ComponentRef<any>) {     this.appRef = ref.injector.get(ApplicationRef);   }    // tslint:disable:no-console   /**    * Exercises change detection in a loop and then prints the average amount of    * time in milliseconds how long a single round of change detection takes for    * the current state of the UI. It runs a minimum of 5 rounds for a minimum    * of 500 milliseconds.    *    * Optionally, a user may pass a `config` parameter containing a map of    * options. Supported options are:    *    * `record` (boolean) - causes the profiler to record a CPU profile while    * it exercises the change detector. Example:    *    * ```    * ng.profiler.timeChangeDetection({record: true})    * ```    */   timeChangeDetection(config: any): ChangeDetectionPerfRecord {     const record = config && config['record'];     const profileName = 'Change Detection';     // Profiler is not available in Android browsers without dev tools opened     const isProfilerAvailable = window.console.profile != null;     if (record && isProfilerAvailable) {       window.console.profile(profileName);     }     const start = performanceNow();     let numTicks = 0;     while (numTicks < 5 || (performanceNow() - start) < 500) {       this.appRef.tick();       numTicks++;     }     const end = performanceNow();     if (record && isProfilerAvailable) {       window.console.profileEnd(profileName);     }     const msPerTick = (end - start) / numTicks;     window.console.log(`ran ${numTicks} change detection cycles`);     window.console.log(`${msPerTick.toFixed(2)} ms per check`);      return new ChangeDetectionPerfRecord(msPerTick, numTicks);   } }  function performanceNow() {   return window.performance && window.performance.now ? window.performance.now() :                                                         new Date().getTime(); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentRef} from '@angular/core'; import {exportNgVar} from '../../dom/util'; import {AngularProfiler} from './common_tools';  const PROFILER_GLOBAL_NAME = 'profiler';  /**  * Enabled Angular debug tools that are accessible via your browser's  * developer console.  *  * Usage:  *  * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)  * 1. Type `ng.` (usually the console will show auto-complete suggestion)  * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`  *    then hit Enter.  *  * @publicApi  */ export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {   exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));   return ref; }  /**  * Disables Angular tools.  *  * @publicApi  */ export function disableDebugTools(): void {   exportNgVar(PROFILER_GLOBAL_NAME, null); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {APP_ID, inject, Injectable, NgModule} from '@angular/core';  export function escapeHtml(text: string): string {   const escapedText: {[k: string]: string} = {     '&': '&a;',     '\"': '&q;',     '\\'': '&s;',     '<': '&l;',     '>': '&g;',   };   return text.replace(/[&\"'<>]/g, s => escapedText[s]); }  export function unescapeHtml(text: string): string {   const unescapedText: {[k: string]: string} = {     '&a;': '&',     '&q;': '\"',     '&s;': '\\'',     '&l;': '<',     '&g;': '>',   };   return text.replace(/&[^;]+;/g, s => unescapedText[s]); }  /**  * A type-safe key to use with `TransferState`.  *  * Example:  *  * ```  * const COUNTER_KEY = makeStateKey<number>('counter');  * let value = 10;  *  * transferState.set(COUNTER_KEY, value);  * ```  *  * @publicApi  */ export type StateKey<T> = string&{   __not_a_string: never,   __value_type?: T, };  /**  * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.  *  * Example:  *  * ```  * const COUNTER_KEY = makeStateKey<number>('counter');  * let value = 10;  *  * transferState.set(COUNTER_KEY, value);  * ```  *  * @publicApi  */ export function makeStateKey<T = void>(key: string): StateKey<T> {   return key as StateKey<T>; }  /**  * A key value store that is transferred from the application on the server side to the application  * on the client side.  *  * The `TransferState` is available as an injectable token.  * On the client, just inject this token using DI and use it, it will be lazily initialized.  * On the server it's already included if `renderApplication` function is used. Otherwise, import  * the `ServerTransferStateModule` module to make the `TransferState` available.  *  * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only  * boolean, number, string, null and non-class objects will be serialized and deserialized in a  * non-lossy manner.  *  * @publicApi  */ @Injectable({   providedIn: 'root',   useFactory: () => {     const doc = inject(DOCUMENT);     const appId = inject(APP_ID);     const state = new TransferState();     state.store = retrieveTransferredState(doc, appId);     return state;   } }) export class TransferState {   private store: {[k: string]: unknown|undefined} = {};   private onSerializeCallbacks: {[k: string]: () => unknown | undefined} = {};    /**    * Get the value corresponding to a key. Return `defaultValue` if key is not found.    */   get<T>(key: StateKey<T>, defaultValue: T): T {     return this.store[key] !== undefined ? this.store[key] as T : defaultValue;   }    /**    * Set the value corresponding to a key.    */   set<T>(key: StateKey<T>, value: T): void {     this.store[key] = value;   }    /**    * Remove a key from the store.    */   remove<T>(key: StateKey<T>): void {     delete this.store[key];   }    /**    * Test whether a key exists in the store.    */   hasKey<T>(key: StateKey<T>) {     return this.store.hasOwnProperty(key);   }    /**    * Indicates whether the state is empty.    */   get isEmpty(): boolean {     return Object.keys(this.store).length === 0;   }    /**    * Register a callback to provide the value for a key when `toJson` is called.    */   onSerialize<T>(key: StateKey<T>, callback: () => T): void {     this.onSerializeCallbacks[key] = callback;   }    /**    * Serialize the current state of the store to JSON.    */   toJson(): string {     // Call the onSerialize callbacks and put those values into the store.     for (const key in this.onSerializeCallbacks) {       if (this.onSerializeCallbacks.hasOwnProperty(key)) {         try {           this.store[key] = this.onSerializeCallbacks[key]();         } catch (e) {           console.warn('Exception in onSerialize callback: ', e);         }       }     }     return JSON.stringify(this.store);   } }  export function retrieveTransferredState(doc: Document, appId: string) {   // Locate the script tag with the JSON data transferred from the server.   // The id of the script tag is set to the Angular appId + 'state'.   const script = doc.getElementById(appId + '-state');   let initialState = {};   if (script && script.textContent) {     try {       // Avoid using any here as it triggers lint errors in google3 (any is not allowed).       initialState = JSON.parse(unescapeHtml(script.textContent)) as {};     } catch (e) {       console.warn('Exception while restoring TransferState for app ' + appId, e);     }   }   return initialState; }  /**  * NgModule to install on the client side while using the `TransferState` to transfer state from  * server to client.  *  * @publicApi  * @deprecated no longer needed, you can inject the `TransferState` in an app without providing  *     this module.  */ @NgModule({}) export class BrowserTransferStateModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {DebugElement, DebugNode, Predicate, Type} from '@angular/core';    /**  * Predicates for use with {@link DebugElement}'s query functions.  *  * @publicApi  */ export class By {   /**    * Match all nodes.    *    * @usageNotes    * ### Example    *    * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}    */   static all(): Predicate<DebugNode> {     return () => true;   }    /**    * Match elements by the given CSS selector.    *    * @usageNotes    * ### Example    *    * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}    */   static css(selector: string): Predicate<DebugElement> {     return (debugElement) => {       return debugElement.nativeElement != null ?           elementMatches(debugElement.nativeElement, selector) :           false;     };   }    /**    * Match nodes that have the given directive present.    *    * @usageNotes    * ### Example    *    * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}    */   static directive(type: Type<any>): Predicate<DebugNode> {     return (debugNode) => debugNode.providerTokens!.indexOf(type) !== -1;   } }  function elementMatches(n: any, selector: string): boolean {   if (getDOM().isElementNode(n)) {     return n.matches && n.matches(selector) ||         n.msMatchesSelector && n.msMatchesSelector(selector) ||         n.webkitMatchesSelector && n.webkitMatchesSelector(selector);   }    return false; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {Inject, Injectable, InjectionToken, NgModule, Optional, Provider, ɵConsole as Console} from '@angular/core';  import {EVENT_MANAGER_PLUGINS, EventManagerPlugin} from './event_manager';    /**  * Supported HammerJS recognizer event names.  */ const EVENT_NAMES = {   // pan   'pan': true,   'panstart': true,   'panmove': true,   'panend': true,   'pancancel': true,   'panleft': true,   'panright': true,   'panup': true,   'pandown': true,   // pinch   'pinch': true,   'pinchstart': true,   'pinchmove': true,   'pinchend': true,   'pinchcancel': true,   'pinchin': true,   'pinchout': true,   // press   'press': true,   'pressup': true,   // rotate   'rotate': true,   'rotatestart': true,   'rotatemove': true,   'rotateend': true,   'rotatecancel': true,   // swipe   'swipe': true,   'swipeleft': true,   'swiperight': true,   'swipeup': true,   'swipedown': true,   // tap   'tap': true,   'doubletap': true };  /**  * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.  * @see `HammerGestureConfig`  *  * @ngModule HammerModule  * @publicApi  */ export const HAMMER_GESTURE_CONFIG = new InjectionToken<HammerGestureConfig>('HammerGestureConfig');   /**  * Function that loads HammerJS, returning a promise that is resolved once HammerJs is loaded.  *  * @publicApi  */ export type HammerLoader = () => Promise<void>;  /**  * Injection token used to provide a {@link HammerLoader} to Angular.  *  * @publicApi  */ export const HAMMER_LOADER = new InjectionToken<HammerLoader>('HammerLoader');  export interface HammerInstance {   on(eventName: string, callback?: Function): void;   off(eventName: string, callback?: Function): void;   destroy?(): void; }  /**  * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)  * for gesture recognition. Configures specific event recognition.  * @publicApi  */ @Injectable() export class HammerGestureConfig {   /**    * A set of supported event names for gestures to be used in Angular.    * Angular supports all built-in recognizers, as listed in    * [HammerJS documentation](https://hammerjs.github.io/).    */   events: string[] = [];    /**    * Maps gesture event names to a set of configuration options    * that specify overrides to the default values for specific properties.    *    * The key is a supported event name to be configured,    * and the options object contains a set of properties, with override values    * to be applied to the named recognizer event.    * For example, to disable recognition of the rotate event, specify    *  `{\"rotate\": {\"enable\": false}}`.    *    * Properties that are not present take the HammerJS default values.    * For information about which properties are supported for which events,    * and their allowed and default values, see    * [HammerJS documentation](https://hammerjs.github.io/).    *    */   overrides: {[key: string]: Object} = {};    /**    * Properties whose default values can be overridden for a given event.    * Different sets of properties apply to different events.    * For information about which properties are supported for which events,    * and their allowed and default values, see    * [HammerJS documentation](https://hammerjs.github.io/).    */   options?: {     cssProps?: any;     domEvents?: boolean;     enable?: boolean | ((manager: any) => boolean);     preset?: any[];     touchAction?: string;     recognizers?: any[];     inputClass?: any;     inputTarget?: EventTarget;   };    /**    * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)    * and attaches it to a given HTML element.    * @param element The element that will recognize gestures.    * @returns A HammerJS event-manager object.    */   buildHammer(element: HTMLElement): HammerInstance {     const mc = new Hammer!(element, this.options);      mc.get('pinch').set({enable: true});     mc.get('rotate').set({enable: true});      for (const eventName in this.overrides) {       mc.get(eventName).set(this.overrides[eventName]);     }      return mc;   } }  /**  * Event plugin that adds Hammer support to an application.  *  * @ngModule HammerModule  */ @Injectable() export class HammerGesturesPlugin extends EventManagerPlugin {   private _loaderPromise: Promise<void>|null = null;    constructor(       @Inject(DOCUMENT) doc: any,       @Inject(HAMMER_GESTURE_CONFIG) private _config: HammerGestureConfig, private console: Console,       @Optional() @Inject(HAMMER_LOADER) private loader?: HammerLoader|null) {     super(doc);   }    override supports(eventName: string): boolean {     if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {       return false;     }      if (!(window as any).Hammer && !this.loader) {       if (typeof ngDevMode === 'undefined' || ngDevMode) {         this.console.warn(             `The \"${eventName}\" event cannot be bound because Hammer.JS is not ` +             `loaded and no custom loader has been specified.`);       }       return false;     }      return true;   }    override addEventListener(element: HTMLElement, eventName: string, handler: Function): Function {     const zone = this.manager.getZone();     eventName = eventName.toLowerCase();      // If Hammer is not present but a loader is specified, we defer adding the event listener     // until Hammer is loaded.     if (!(window as any).Hammer && this.loader) {       this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader!());       // This `addEventListener` method returns a function to remove the added listener.       // Until Hammer is loaded, the returned function needs to *cancel* the registration rather       // than remove anything.       let cancelRegistration = false;       let deregister: Function = () => {         cancelRegistration = true;       };        zone.runOutsideAngular(           () => this._loaderPromise!                     .then(() => {                       // If Hammer isn't actually loaded when the custom loader resolves, give up.                       if (!(window as any).Hammer) {                         if (typeof ngDevMode === 'undefined' || ngDevMode) {                           this.console.warn(                               `The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);                         }                         deregister = () => {};                         return;                       }                        if (!cancelRegistration) {                         // Now that Hammer is loaded and the listener is being loaded for real,                         // the deregistration function changes from canceling registration to                         // removal.                         deregister = this.addEventListener(element, eventName, handler);                       }                     })                     .catch(() => {                       if (typeof ngDevMode === 'undefined' || ngDevMode) {                         this.console.warn(                             `The \"${eventName}\" event cannot be bound because the custom ` +                             `Hammer.JS loader failed.`);                       }                       deregister = () => {};                     }));        // Return a function that *executes* `deregister` (and not `deregister` itself) so that we       // can change the behavior of `deregister` once the listener is added. Using a closure in       // this way allows us to avoid any additional data structures to track listener removal.       return () => {         deregister();       };     }      return zone.runOutsideAngular(() => {       // Creating the manager bind events, must be done outside of angular       const mc = this._config.buildHammer(element);       const callback = function(eventObj: HammerInput) {         zone.runGuarded(function() {           handler(eventObj);         });       };       mc.on(eventName, callback);       return () => {         mc.off(eventName, callback);         // destroy mc to prevent memory leak         if (typeof mc.destroy === 'function') {           mc.destroy();         }       };     });   }    isCustomEvent(eventName: string): boolean {     return this._config.events.indexOf(eventName) > -1;   } }  /**  * Adds support for HammerJS.  *  * Import this module at the root of your application so that Angular can work with  * HammerJS to detect gesture events.  *  * Note that applications still need to include the HammerJS script itself. This module  * simply sets up the coordination layer between HammerJS and Angular's EventManager.  *  * @publicApi  */ @NgModule({   providers: [     {       provide: EVENT_MANAGER_PLUGINS,       useClass: HammerGesturesPlugin,       multi: true,       deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Console, [new Optional(), HAMMER_LOADER]]     },     {provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: []},   ] }) export class HammerModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DOCUMENT} from '@angular/common'; import {forwardRef, Inject, Injectable, Injector, Sanitizer, SecurityContext, ɵ_sanitizeHtml as _sanitizeHtml, ɵ_sanitizeUrl as _sanitizeUrl, ɵallowSanitizationBypassAndThrow as allowSanitizationBypassOrThrow, ɵbypassSanitizationTrustHtml as bypassSanitizationTrustHtml, ɵbypassSanitizationTrustResourceUrl as bypassSanitizationTrustResourceUrl, ɵbypassSanitizationTrustScript as bypassSanitizationTrustScript, ɵbypassSanitizationTrustStyle as bypassSanitizationTrustStyle, ɵbypassSanitizationTrustUrl as bypassSanitizationTrustUrl, ɵBypassType as BypassType, ɵgetSanitizationBypassType as getSanitizationBypassType, ɵunwrapSafeValue as unwrapSafeValue, ɵXSS_SECURITY_URL as XSS_SECURITY_URL} from '@angular/core';  export {SecurityContext};    /**  * Marker interface for a value that's safe to use in a particular context.  *  * @publicApi  */ export interface SafeValue {}  /**  * Marker interface for a value that's safe to use as HTML.  *  * @publicApi  */ export interface SafeHtml extends SafeValue {}  /**  * Marker interface for a value that's safe to use as style (CSS).  *  * @publicApi  */ export interface SafeStyle extends SafeValue {}  /**  * Marker interface for a value that's safe to use as JavaScript.  *  * @publicApi  */ export interface SafeScript extends SafeValue {}  /**  * Marker interface for a value that's safe to use as a URL linking to a document.  *  * @publicApi  */ export interface SafeUrl extends SafeValue {}  /**  * Marker interface for a value that's safe to use as a URL to load executable code from.  *  * @publicApi  */ export interface SafeResourceUrl extends SafeValue {}  /**  * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing  * values to be safe to use in the different DOM contexts.  *  * For example, when binding a URL in an `<a [href]=\"someValue\">` hyperlink, `someValue` will be  * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on  * the website.  *  * In specific situations, it might be necessary to disable sanitization, for example if the  * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.  * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`  * methods, and then binding to that value from the template.  *  * These situations should be very rare, and extraordinary care must be taken to avoid creating a  * Cross Site Scripting (XSS) security bug!  *  * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as  * close as possible to the source of the value, to make it easy to verify no security bug is  * created by its use.  *  * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that  * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous  * code. The sanitizer leaves safe values intact.  *  * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in  * sanitization for the value passed in. Carefully check and audit all values and code paths going  * into this call. Make sure any user data is appropriately escaped for this security context.  * For more detail, see the [Security Guide](https://g.co/ng/security).  *  * @publicApi  */ @Injectable({providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl)}) export abstract class DomSanitizer implements Sanitizer {   /**    * Gets a safe value from either a known safe value or a value with unknown safety.    *    * If the given value is already a `SafeValue`, this method returns the unwrapped value.    * If the security context is HTML and the given value is a plain string, this method    * sanitizes the string, removing any potentially unsafe content.    * For any other security context, this method throws an error if provided    * with a plain string.    */   abstract sanitize(context: SecurityContext, value: SafeValue|string|null): string|null;    /**    * Bypass security and trust the given value to be safe HTML. Only use this when the bound HTML    * is unsafe (e.g. contains `<script>` tags) and the code should be executed. The sanitizer will    * leave safe HTML intact, so in most situations this method should not be used.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustHtml(value: string): SafeHtml;    /**    * Bypass security and trust the given value to be safe style value (CSS).    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustStyle(value: string): SafeStyle;    /**    * Bypass security and trust the given value to be safe JavaScript.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustScript(value: string): SafeScript;    /**    * Bypass security and trust the given value to be a safe style URL, i.e. a value that can be used    * in hyperlinks or `<img src>`.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustUrl(value: string): SafeUrl;    /**    * Bypass security and trust the given value to be a safe resource URL, i.e. a location that may    * be used to load executable code from, like `<script src>`, or `<iframe src>`.    *    * **WARNING:** calling this method with untrusted user data exposes your application to XSS    * security risks!    */   abstract bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl; }  export function domSanitizerImplFactory(injector: Injector) {   return new DomSanitizerImpl(injector.get(DOCUMENT)); }  @Injectable({providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector]}) export class DomSanitizerImpl extends DomSanitizer {   constructor(@Inject(DOCUMENT) private _doc: any) {     super();   }    override sanitize(ctx: SecurityContext, value: SafeValue|string|null): string|null {     if (value == null) return null;     switch (ctx) {       case SecurityContext.NONE:         return value as string;       case SecurityContext.HTML:         if (allowSanitizationBypassOrThrow(value, BypassType.Html)) {           return unwrapSafeValue(value);         }         return _sanitizeHtml(this._doc, String(value)).toString();       case SecurityContext.STYLE:         if (allowSanitizationBypassOrThrow(value, BypassType.Style)) {           return unwrapSafeValue(value);         }         return value as string;       case SecurityContext.SCRIPT:         if (allowSanitizationBypassOrThrow(value, BypassType.Script)) {           return unwrapSafeValue(value);         }         throw new Error('unsafe value used in a script context');       case SecurityContext.URL:         if (allowSanitizationBypassOrThrow(value, BypassType.Url)) {           return unwrapSafeValue(value);         }         return _sanitizeUrl(String(value));       case SecurityContext.RESOURCE_URL:         if (allowSanitizationBypassOrThrow(value, BypassType.ResourceUrl)) {           return unwrapSafeValue(value);         }         throw new Error(`unsafe value used in a resource URL context (see ${XSS_SECURITY_URL})`);       default:         throw new Error(`Unexpected SecurityContext ${ctx} (see ${XSS_SECURITY_URL})`);     }   }    override bypassSecurityTrustHtml(value: string): SafeHtml {     return bypassSanitizationTrustHtml(value);   }   override bypassSecurityTrustStyle(value: string): SafeStyle {     return bypassSanitizationTrustStyle(value);   }   override bypassSecurityTrustScript(value: string): SafeScript {     return bypassSanitizationTrustScript(value);   }   override bypassSecurityTrustUrl(value: string): SafeUrl {     return bypassSanitizationTrustUrl(value);   }   override bypassSecurityTrustResourceUrl(value: string): SafeResourceUrl {     return bypassSanitizationTrustResourceUrl(value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the platform-browser package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/platform-browser'; // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["DomAdapter","setRootDomAdapter","parseCookieValue","getDOM","global","NG_DEV_MODE","i1.EventManager","i2.DomSharedStylesHost","internalCreateApplication","PLATFORM_BROWSER_ID","TESTABILITY_GETTER","TESTABILITY","INJECTOR_SCOPE","window","Console","allowSanitizationBypassOrThrow","unwrapSafeValue","_sanitizeHtml","_sanitizeUrl","XSS_SECURITY_URL","bypassSanitizationTrustHtml","bypassSanitizationTrustStyle","bypassSanitizationTrustScript","bypassSanitizationTrustUrl","bypassSanitizationTrustResourceUrl"],"mappings":";;;;;;;;;;;AAYA;;;;;AAKG;AACG,MAAgB,wBAAyB,SAAQA,WAAU,CAAA;AAAjE,IAAA,WAAA,GAAA;;QACW,IAAiB,CAAA,iBAAA,GAAY,IAAI,CAAC;KAC5C;AAAA;;ACRD;;;;;AAKG;AACH;AACM,MAAO,iBAAkB,SAAQ,wBAAwB,CAAA;AAC7D,IAAA,OAAO,WAAW,GAAA;AAChB,QAAAC,kBAAiB,CAAC,IAAI,iBAAiB,EAAE,CAAC,CAAC;KAC5C;AAED,IAAA,WAAW,CAAC,EAAQ,EAAE,GAAQ,EAAE,QAAa,EAAA;QAC3C,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;;;AAG1C,QAAA,OAAO,MAAK;YACV,EAAE,CAAC,mBAAmB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC/C,SAAC,CAAC;KACH;IACD,aAAa,CAAC,EAAQ,EAAE,GAAQ,EAAA;AAC9B,QAAA,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;KACvB;AACD,IAAA,MAAM,CAAC,IAAU,EAAA;QACf,IAAI,IAAI,CAAC,UAAU,EAAE;AACnB,YAAA,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AACnC,SAAA;KACF;IACD,aAAa,CAAC,OAAe,EAAE,GAAc,EAAA;AAC3C,QAAA,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;AACvC,QAAA,OAAO,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KACnC;IACD,kBA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C;KAClD;;AAtDU,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,kBACP,QAAQ,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AADjB,gBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EADJ,UAAA,EAAA,MAAM,EAAc,UAAA,EAAA,uBAAuB,kBAAS,QAAQ,EAAA,CAAA,EAAA,CAAA,CAAA;sGACxE,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAD5B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA,EAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,uBAAuB,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAC,CAAA;;0BAExE,MAAM;2BAAC,QAAQ,CAAA;;;AChJ9B;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;AAIG;AAEH;;ACNA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 39 --------------------
{"version":3,"file":"platform-browser-dynamic.mjs","sources":["../../../../../../packages/platform-browser-dynamic/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/src/platform_core_dynamic.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_impl.ts","../../../../../../packages/platform-browser-dynamic/src/platform_providers.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_cache.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/platform-browser-dynamic.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {CompilerConfig} from '@angular/compiler'; import {Compiler, CompilerFactory, CompilerOptions, InjectionToken, Injector, MissingTranslationStrategy, PACKAGE_ROOT_URL, StaticProvider, ViewEncapsulation} from '@angular/core';  export const ERROR_COLLECTOR_TOKEN = new InjectionToken('ErrorCollector');  /**  * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.  */ export const DEFAULT_PACKAGE_URL_PROVIDER = {   provide: PACKAGE_ROOT_URL,   useValue: '/' };  export const COMPILER_PROVIDERS =     <StaticProvider[]>[{provide: Compiler, useFactory: () => new Compiler()}]; /**  * @publicApi  *  * @deprecated  * Ivy JIT mode doesn't require accessing this symbol.  * See [JIT API changes due to ViewEngine deprecation](guide/deprecations#jit-api-changes) for  * additional context.  */ export class JitCompilerFactory implements CompilerFactory {   private _defaultOptions: CompilerOptions[];    /* @internal */   constructor(defaultOptions: CompilerOptions[]) {     const compilerOptions: CompilerOptions = {       useJit: true,       defaultEncapsulation: ViewEncapsulation.Emulated,       missingTranslation: MissingTranslationStrategy.Warning,     };      this._defaultOptions = [compilerOptions, ...defaultOptions];   }   createCompiler(options: CompilerOptions[] = []): Compiler {     const opts = _mergeOptions(this._defaultOptions.concat(options));     const injector = Injector.create([       COMPILER_PROVIDERS, {         provide: CompilerConfig,         useFactory: () => {           return new CompilerConfig({             // let explicit values from the compiler options overwrite options             // from the app providers             useJit: opts.useJit,             // let explicit values from the compiler options overwrite options             // from the app providers             defaultEncapsulation: opts.defaultEncapsulation,             missingTranslation: opts.missingTranslation,             preserveWhitespaces: opts.preserveWhitespaces,           });         },         deps: []       },       opts.providers!     ]);     return injector.get(Compiler);   } }  function _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {   return {     useJit: _lastDefined(optionsArr.map(options => options.useJit)),     defaultEncapsulation: _lastDefined(optionsArr.map(options => options.defaultEncapsulation)),     providers: _mergeArrays(optionsArr.map(options => options.providers!)),     missingTranslation: _lastDefined(optionsArr.map(options => options.missingTranslation)),     preserveWhitespaces: _lastDefined(optionsArr.map(options => options.preserveWhitespaces)),   }; }  function _lastDefined<T>(args: T[]): T|undefined {   for (let i = args.length - 1; i >= 0; i--) {     if (args[i] !== undefined) {       return args[i];     }   }   return undefined; }  function _mergeArrays(parts: any[][]): any[] {   const result: any[] = [];   parts.forEach((part) => part && result.push(...part));   return result; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {COMPILER_OPTIONS, CompilerFactory, createPlatformFactory, platformCore, PlatformRef, StaticProvider} from '@angular/core';  import {JitCompilerFactory} from './compiler_factory';  /**  * A platform that included corePlatform and the compiler.  *  * @publicApi  */ export const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [   {provide: COMPILER_OPTIONS, useValue: {}, multi: true},   {provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS]}, ]); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {ResourceLoader} from '@angular/compiler'; import {Injectable} from '@angular/core';   @Injectable() export class ResourceLoaderImpl extends ResourceLoader {   override get(url: string): Promise<string> {     let resolve: (result: any) => void;     let reject: (error: any) => void;     const promise = new Promise<string>((res, rej) => {       resolve = res;       reject = rej;     });     const xhr = new XMLHttpRequest();     xhr.open('GET', url, true);     xhr.responseType = 'text';      xhr.onload = function() {       // responseText is the old-school way of retrieving response (supported by IE8 & 9)       // response/responseType properties were introduced in ResourceLoader Level2 spec (supported       // by IE10)       const response = xhr.response || xhr.responseText;        // normalize IE9 bug (https://bugs.jquery.com/ticket/1450)       let status = xhr.status === 1223 ? 204 : xhr.status;        // fix status code when it is 0 (0 status is undocumented).       // Occurs when accessing file resources or on Android 4.1 stock browser       // while retrieving files from application cache.       if (status === 0) {         status = response ? 200 : 0;       }        if (200 <= status && status <= 300) {         resolve(response);       } else {         reject(`Failed to load ${url}`);       }     };      xhr.onerror = function() {       reject(`Failed to load ${url}`);     };      xhr.send();     return promise;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common'; import {ResourceLoader} from '@angular/compiler'; import {COMPILER_OPTIONS, PLATFORM_ID, StaticProvider} from '@angular/core';  import {ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS} from '@angular/platform-browser';  import {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';  /**  * @publicApi  */ export const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [   INTERNAL_BROWSER_PLATFORM_PROVIDERS,   {     provide: COMPILER_OPTIONS,     useValue: {providers: [{provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: []}]},     multi: true   },   {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID}, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ResourceLoader} from '@angular/compiler'; import {ɵglobal as global} from '@angular/core';  /**  * An implementation of ResourceLoader that uses a template cache to avoid doing an actual  * ResourceLoader.  *  * The template cache needs to be built and loaded into window.$templateCache  * via a separate mechanism.  *  * @publicApi  *  * @deprecated This was previously necessary in some cases to test AOT-compiled components with View  *     Engine, but is no longer since Ivy.  */ export class CachedResourceLoader extends ResourceLoader {   private _cache: {[url: string]: string};    constructor() {     super();     this._cache = (<any>global).$templateCache;     if (this._cache == null) {       throw new Error('CachedResourceLoader: Template cache was not found in $templateCache.');     }   }    override get(url: string): Promise<string> {     if (this._cache.hasOwnProperty(url)) {       return Promise.resolve(this._cache[url]);     } else {       return <Promise<any>>Promise.reject(           'CachedResourceLoader: Did not find cached template for ' + url);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the platform-browser-dynamic package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ResourceLoader} from '@angular/compiler'; import {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';  import {platformCoreDynamic} from './platform_core_dynamic'; import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers'; import {CachedResourceLoader} from './resource_loader/resource_loader_cache';  export * from './private_export'; export {VERSION} from './version'; export {JitCompilerFactory} from './compiler_factory';  /**  * @publicApi  *  * @deprecated This was previously necessary in some cases to test AOT-compiled components with View  *     Engine, but is no longer since Ivy.   */ export const RESOURCE_CACHE_PROVIDER: Provider[] =     [{provide: ResourceLoader, useClass: CachedResourceLoader, deps: []}];  /**  * @publicApi  */ export const platformBrowserDynamic = createPlatformFactory(     platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/platform-browser-dynamic';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID","global"],"mappings":";;;;;;;;;;;;AAWO,MAAM,qBAAqB,GAAG,IAAI,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E;;AAEG;AACI,MAAM,4BAA4B,GAAG;AAC1C,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,QAAQ,EAAE,GAAG;CACd,CAAC;AAEK,MAAM,kBAAkB,GACT,CAAC,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC,CAAC,CAAC;AAC9E;;;;;;;AAOG;MACU,kBAAkB,CAAA;;AAI7B,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;AACvC,YAAA,MAAM,EAAE,IAAI;YACZ,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ;YAChD,kBAAkB,EAAE,0BAA0B,CAAC,OAAO;SACvD,CAAC;QAEF,IAAI,CAAC,eAAe,GAAG,CAAC,eAAe,EAAE,GAAG,cAAc,CAAC,CAAC;KAC7D;IACD,cAAc,CAAC,UAA6B,EAAE,EAAA;AAC5C,QAAA,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AACjE,QAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC/B,YAAA,kBAAkB,EAAE;AAClB,gBAAA,OAAO,EAAE,cAAc;gBACvB,UAAU,EAAE,MAAK;oBACf,OAAO,IAAI,cAAc,CAAC;;;wBAGxB,MAAM,EAAE,IAAI,CAAC,MAAM;;;wBAGnB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;wBAC/C,kBAAkB,EAAE,IAAI,CAAC,kB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I,IAAI,EAAE;AACvB,YAAA,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;AAC1F,SAAA;KACF;AAEQ,IAAA,GAAG,CAAC,GAAW,EAAA;QACtB,IAAI,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;YACnC,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1C,SAAA;AAAM,aAAA;YACL,OAAqB,OAAO,CAAC,MAAM,CAC/B,yDAAyD,GAAG,GAAG,CAAC,CAAC;AACtE,SAAA;KACF;AACF;;AClCD;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACAtD;;;;;;AAMG;AACU,MAAA,uBAAuB,GAChC,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,EAAC,EAAE;AAE1E;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACvD,mBAAmB,EAAE,gBAAgB,EAAE,2CAA2C;;ACzBtF;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 40 --------------------
{"version":3,"file":"common.mjs","sources":["../../../../../../packages/common/src/dom_adapter.ts","../../../../../../packages/common/src/dom_tokens.ts","../../../../../../packages/common/src/location/platform_location.ts","../../../../../../packages/common/src/location/util.ts","../../../../../../packages/common/src/location/location_strategy.ts","../../../../../../packages/common/src/location/hash_location_strategy.ts","../../../../../../packages/common/src/location/location.ts","../../../../../../packages/common/src/i18n/currencies.ts","../../../../../../packages/common/src/i18n/locale_data_api.ts","../../../../../../packages/common/src/i18n/format_date.ts","../../../../../../packages/common/src/i18n/format_number.ts","../../../../../../packages/common/src/i18n/localization.ts","../../../../../../packages/common/src/i18n/locale_data.ts","../../../../../../packages/common/src/cookie.ts","../../../../../../packages/common/src/directives/ng_class.ts","../../../../../../packages/common/src/directives/ng_component_outlet.ts","../../../../../../packages/common/src/directives/ng_for_of.ts","../../../../../../packages/common/src/directives/ng_if.ts","../../../../../../packages/common/src/directives/ng_switch.ts","../../../../../../packages/common/src/directives/ng_plural.ts","../../../../../../packages/common/src/directives/ng_style.ts","../../../../../../packages/common/src/directives/ng_template_outlet.ts","../../../../../../packages/common/src/directives/index.ts","../../../../../../packages/common/src/pipes/invalid_pipe_argument_error.ts","../../../../../../packages/common/src/pipes/async_pipe.ts","../../../../../../packages/common/src/pipes/case_conversion_pipes.ts","../../../../../../packages/common/src/pipes/date_pipe_config.ts","../../../../../../packages/common/src/pipes/date_pipe.ts","../../../../../../packages/common/src/pipes/i18n_plural_pipe.ts","../../../../../../packages/common/src/pipes/i18n_select_pipe.ts","../../../../../../packages/common/src/pipes/json_pipe.ts","../../../../../../packages/common/src/pipes/keyvalue_pipe.ts","../../../../../../packages/common/src/pipes/number_pipe.ts","../../../../../../packages/common/src/pipes/slice_pipe.ts","../../../../../../packages/common/src/pipes/index.ts","../../../../../../packages/common/src/common_module.ts","../../../../../../packages/common/src/platform_id.ts","../../../../../../packages/common/src/version.ts","../../../../../../packages/common/src/viewport_scroller.ts","../../../../../../packages/common/src/xhr.ts","../../../../../../packages/common/src/directives/ng_optimized_image/url.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/image_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/cloudflare_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/imagekit_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/imgix_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/error_helper.ts","../../../../../../packages/common/src/directives/ng_optimized_image/asserts.ts","../../../../../../packages/common/src/directives/ng_optimized_image/lcp_image_observer.ts","../../../../../../packages/common/src/directives/ng_optimized_image/preconnect_link_checker.ts","../../../../../../packages/common/src/directives/ng_optimized_image/tokens.ts","../../../../../../packages/common/src/directives/ng_optimized_image/preload-link-creator.ts","../../../../../../packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts","../../../../../../packages/common/src/directives/ng_optimized_image/index.ts","../../../../../../packages/common/src/common.ts","../../../../../../packages/common/public_api.ts","../../../../../../packages/common/index.ts","../../../../../../packages/common/common.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  let _DOM: DomAdapter = null!;  export function getDOM(): DomAdapter {   return _DOM; }  export function setRootDomAdapter(adapter: DomAdapter) {   if (!_DOM) {     _DOM = adapter;   } }  /* tslint:disable:requireParameterType */ /**  * Provides DOM operations in an environment-agnostic way.  *  * @security Tread carefully! Interacting with the DOM directly is dangerous and  * can introduce XSS risks.  */ export abstract class DomAdapter {   // Needs Domino-friendly test utility   abstract dispatchEvent(el: any, evt: any): any;   abstract readonly supportsDOMEvents: boolean;    // Used by Meta   abstract remove(el: any): void;   abstract createElement(tagName: any, doc?: any): HTMLElement;   abstract createHtmlDocument(): Document;   abstract getDefaultDocument(): Document;    // Used by By.css   abstract isElementNode(node: any): boolean;    // Used by Testability   abstract isShadowRoot(node: any): boolean;    // Used by KeyEventsPlugin   abstract onAndCancel(el: any, evt: any, listener: any): Function;    // Used by PlatformLocation and ServerEventManagerPlugin   abstract getGlobalEventTarget(doc: Document, target: string): any;    // Used by PlatformLocation   abstract getBaseHref(doc: Document): string|null;   abstract resetBaseElement(): void;    // TODO: remove dependency in DefaultValueAccessor   abstract getUserAgent(): string;    // Used in the legacy @angular/http package which has some usage in g3.   abstract getCookie(name: string): string|null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken} from '@angular/core';  /**  * A DI Token representing the main rendering context. In a browser this is the DOM Document.  *  * Note: Document might not be available in the Application Context when Application and Rendering  * Contexts are not the same (e.g. when running the application in a Web Worker).  *  * @publicApi  */ export const DOCUMENT = new InjectionToken<Document>('DocumentToken'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, Injectable, InjectionToken, ɵɵinject} from '@angular/core';  import {getDOM} from '../dom_adapter'; import {DOCUMENT} from '../dom_tokens';  /**  * This class should not be used directly by an application developer. Instead, use  * {@link Location}.  *  * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be  * platform-agnostic.  * This means that we can have different implementation of `PlatformLocation` for the different  * platforms that Angular supports. For example, `@angular/platform-browser` provides an  * implementation specific to the browser environment, while `@angular/platform-server` provides  * one suitable for use with server-side rendering.  *  * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}  * when they need to interact with the DOM APIs like pushState, popState, etc.  *  * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly  * by the {@link Router} in order to navigate between routes. Since all interactions between {@link  * Router} /  * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`  * class, they are all platform-agnostic.  *  * @publicApi  */ @Injectable({   providedIn: 'platform',   // See #23917   useFactory: useBrowserPlatformLocation }) export abstract class PlatformLocation {   abstract getBaseHrefFromDOM(): string;   abstract getState(): unknown;   /**    * Returns a function that, when executed, removes the `popstate` event handler.    */   abstract onPopState(fn: LocationChangeListener): VoidFunction;   /**    * Returns a function that, when executed, removes the `hashchange` event handler.    */   abstract onHashChange(fn: LocationChangeListener): VoidFunction;    abstract get href(): string;   abstract get protocol(): string;   abstract get hostname(): string;   abstract get port(): string;   abstract get pathname(): string;   abstract get search(): string;   abstract get hash(): string;    abstract replaceState(state: any, title: string, url: string): void;    abstract pushState(state: any, title: string, url: string): void;    abstract forward(): void;    abstract back(): void;    historyGo?(relativePosition: number): void {     throw new Error('Not implemented');   } }  export function useBrowserPlatformLocation() {   return ɵɵinject(BrowserPlatformLocation); }  /**  * @description  * Indicates when a location is initialized.  *  * @publicApi  */ export const LOCATION_INITIALIZED = new InjectionToken<Promise<any>>('Location Initialized');  /**  * @description  * A serializable version of the event from `onPopState` or `onHashChange`  *  * @publicApi  */ export interface LocationChangeEvent {   type: string;   state: any; }  /**  * @publicApi  */ export interface LocationChangeListener {   (event: LocationChangeEvent): any; }    /**  * `PlatformLocation` encapsulates all of the direct calls to platform APIs.  * This class should not be used directly by an application developer. Instead, use  * {@link Location}.  *  * @publicApi  */ @Injectable({   providedIn: 'platform',   // See #23917   useFactory: createBrowserPlatformLocation, }) export class BrowserPlatformLocation extends PlatformLocation {   private _location: Location;   private _history: History;    constructor(@Inject(DOCUMENT) private _doc: any) {     super();     this._location = window.location;     this._history = window.history;   }    override getBaseHrefFromDOM(): string {     return getDOM().getBaseHref(this._doc)!;   }    override onPopState(fn: LocationChangeListener): VoidFunction {     const window = getDOM().getGlobalEventTarget(this._doc, 'window');     window.addEventListener('popstate', fn, false);     return () => window.removeEventListener('popstate', fn);   }    override onHashChange(fn: LocationChangeListener): VoidFunction {     const window = getDOM().getGlobalEventTarget(this._doc, 'window');     window.addEventListener('hashchange', fn, false);     return () => window.removeEventListener('hashchange', fn);   }    override get href(): string {     return this._location.href;   }   override get protocol(): string {     return this._location.protocol;   }   override get hostname(): string {     return this._location.hostname;   }   override get port(): string {     return this._location.port;   }   override get pathname(): string {     return this._location.pathname;   }   override get search(): string {     return this._location.search;   }   override get hash(): string {     return this._location.hash;   }   override set pathname(newPath: string) {     this._location.pathname = newPath;   }    override pushState(state: any, title: string, url: string): void {     if (supportsState()) {       this._history.pushState(state, title, url);     } else {       this._location.hash = url;     }   }    override replaceState(state: any, title: string, url: string): void {     if (supportsState()) {       this._history.replaceState(state, title, url);     } else {       this._location.hash = url;     }   }    override forward(): void {     this._history.forward();   }    override back(): void {     this._history.back();   }    override historyGo(relativePosition: number = 0): void {     this._history.go(relativePosition);   }    override getState(): unknown {     return this._history.state;   } }  export function supportsState(): boolean {   return !!window.history.pushState; } export function createBrowserPlatformLocation() {   return new BrowserPlatformLocation(ɵɵinject(DOCUMENT)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */   /**  * Joins two parts of a URL with a slash if needed.  *  * @param start  URL string  * @param end    URL string  *  *  * @returns The joined URL string.  */ export function joinWithSlash(start: string, end: string): string {   if (start.length == 0) {     return end;   }   if (end.length == 0) {     return start;   }   let slashes = 0;   if (start.endsWith('/')) {     slashes++;   }   if (end.startsWith('/')) {     slashes++;   }   if (slashes == 2) {     return start + end.substring(1);   }   if (slashes == 1) {     return start + end;   }   return start + '/' + end; }  /**  * Removes a trailing slash from a URL string if needed.  * Looks for the first occurrence of either `#`, `?`, or the end of the  * line as `/` characters and removes the trailing slash if one exists.  *  * @param url URL string.  *  * @returns The URL string, modified if needed.  */ export function stripTrailingSlash(url: string): string {   const match = url.match(/#|\\?|$/);   const pathEndIdx = match && match.index || url.length;   const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);   return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx); }  /**  * Normalizes URL parameters by prepending with `?` if needed.  *  * @param  params String of URL parameters.  *  * @returns The normalized URL parameters string.  */ export function normalizeQueryParams(params: string): string {   return params && params[0] !== '?' ? '?' + params : params; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, inject, Injectable, InjectionToken, OnDestroy, Optional} from '@angular/core';  import {DOCUMENT} from '../dom_tokens';  import {LocationChangeListener, PlatformLocation} from './platform_location'; import {joinWithSlash, normalizeQueryParams} from './util';  /**  * Enables the `Location` service to read route state from the browser's URL.  * Angular provides two strategies:  * `HashLocationStrategy` and `PathLocationStrategy`.  *  * Applications should use the `Router` or `Location` services to  * interact with application route state.  *  * For instance, `HashLocationStrategy` produces URLs like  * <code class=\"no-auto-link\">http://example.com#/foo</code>,  * and `PathLocationStrategy` produces  * <code class=\"no-auto-link\">http://example.com/foo</code> as an equivalent URL.  *  * See these two classes for more.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => inject(PathLocationStrategy)}) export abstract class LocationStrategy {   abstract path(includeHash?: boolean): string;   abstract prepareExternalUrl(internal: string): string;   abstract getState(): unknown;   abstract pushState(state: any, title: string, url: string, queryParams: string): void;   abstract replaceState(state: any, title: string, url: string, queryParams: string): void;   abstract forward(): void;   abstract back(): void;   historyGo?(relativePosition: number): void {     throw new Error('Not implemented');   }   abstract onPopState(fn: LocationChangeListener): void;   abstract getBaseHref(): string; }  /**  * A predefined [DI token](guide/glossary#di-token) for the base href  * to be used with the `PathLocationStrategy`.  * The base href is the URL prefix that should be preserved when generating  * and recognizing URLs.  *  * @usageNotes  *  * The following example shows how to use this token to configure the root app injector  * with a base href value, so that the DI framework can supply the dependency anywhere in the app.  *  * ```typescript  * import {Component, NgModule} from '@angular/core';  * import {APP_BASE_HREF} from '@angular/common';  *  * @NgModule({  *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]  * })  * class AppModule {}  * ```  *  * @publicApi  */ export const APP_BASE_HREF = new InjectionToken<string>('appBaseHref');  /**  * @description  * A {@link LocationStrategy} used to configure the {@link Location} service to  * represent its state in the  * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the  * browser's URL.  *  * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}  * or add a `<base href>` element to the document to override the default.  *  * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call  * `location.go('/foo')`, the browser's URL will become  * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,  * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.  *  * Similarly, if you add `<base href='/my/app/'/>` to the document and call  * `location.go('/foo')`, the browser's URL will become  * `example.com/my/app/foo`.  *  * Note that when using `PathLocationStrategy`, neither the query nor  * the fragment in the `<base href>` will be preserved, as outlined  * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).  *  * @usageNotes  *  * ### Example  *  * {@example common/location/ts/path_location_component.ts region='LocationComponent'}  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class PathLocationStrategy extends LocationStrategy implements OnDestroy {   private _baseHref: string;   private _removeListenerFns: (() => void)[] = [];    constructor(       private _platformLocation: PlatformLocation,       @Optional() @Inject(APP_BASE_HREF) href?: string) {     super();      this._baseHref = href ?? this._platformLocation.getBaseHrefFromDOM() ??         inject(DOCUMENT).location?.origin ?? '';   }    /** @nodoc */   ngOnDestroy(): void {     while (this._removeListenerFns.length) {       this._removeListenerFns.pop()!();     }   }    override onPopState(fn: LocationChangeListener): void {     this._removeListenerFns.push(         this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));   }    override getBaseHref(): string {     return this._baseHref;   }    override prepareExternalUrl(internal: string): string {     return joinWithSlash(this._baseHref, internal);   }    override path(includeHash: boolean = false): string {     const pathname =         this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);     const hash = this._platformLocation.hash;     return hash && includeHash ? `${pathname}${hash}` : pathname;   }    override pushState(state: any, title: string, url: string, queryParams: string) {     const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));     this._platformLocation.pushState(state, title, externalUrl);   }    override replaceState(state: any, title: string, url: string, queryParams: string) {     const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));     this._platformLocation.replaceState(state, title, externalUrl);   }    override forward(): void {     this._platformLocation.forward();   }    override back(): void {     this._platformLocation.back();   }    override getState(): unknown {     return this._platformLocation.getState();   }    override historyGo(relativePosition: number = 0): void {     this._platformLocation.historyGo?.(relativePosition);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, Injectable, OnDestroy, Optional} from '@angular/core';  import {APP_BASE_HREF, LocationStrategy} from './location_strategy'; import {LocationChangeListener, PlatformLocation} from './platform_location'; import {joinWithSlash, normalizeQueryParams} from './util';    /**  * @description  * A {@link LocationStrategy} used to configure the {@link Location} service to  * represent its state in the  * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)  * of the browser's URL.  *  * For instance, if you call `location.go('/foo')`, the browser's URL will become  * `example.com#/foo`.  *  * @usageNotes  *  * ### Example  *  * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}  *  * @publicApi  */ @Injectable() export class HashLocationStrategy extends LocationStrategy implements OnDestroy {   private _baseHref: string = '';   private _removeListenerFns: (() => void)[] = [];    constructor(       private _platformLocation: PlatformLocation,       @Optional() @Inject(APP_BASE_HREF) _baseHref?: string) {     super();     if (_baseHref != null) {       this._baseHref = _baseHref;     }   }    /** @nodoc */   ngOnDestroy(): void {     while (this._removeListenerFns.length) {       this._removeListenerFns.pop()!();     }   }    override onPopState(fn: LocationChangeListener): void {     this._removeListenerFns.push(         this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));   }    override getBaseHref(): string {     return this._baseHref;   }    override path(includeHash: boolean = false): string {     // the hash value is always prefixed with a `#`     // and if it is empty then it will stay empty     let path = this._platformLocation.hash;     if (path == null) path = '#';      return path.length > 0 ? path.substring(1) : path;   }    override prepareExternalUrl(internal: string): string {     const url = joinWithSlash(this._baseHref, internal);     return url.length > 0 ? ('#' + url) : url;   }    override pushState(state: any, title: string, path: string, queryParams: string) {     let url: string|null = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));     if (url.length == 0) {       url = this._platformLocation.pathname;     }     this._platformLocation.pushState(state, title, url);   }    override replaceState(state: any, title: string, path: string, queryParams: string) {     let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));     if (url.length == 0) {       url = this._platformLocation.pathname;     }     this._platformLocation.replaceState(state, title, url);   }    override forward(): void {     this._platformLocation.forward();   }    override back(): void {     this._platformLocation.back();   }    override getState(): unknown {     return this._platformLocation.getState();   }    override historyGo(relativePosition: number = 0): void {     this._platformLocation.historyGo?.(relativePosition);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EventEmitter, Injectable, OnDestroy, ɵɵinject} from '@angular/core'; import {SubscriptionLike} from 'rxjs';  import {LocationStrategy} from './location_strategy'; import {joinWithSlash, normalizeQueryParams, stripTrailingSlash} from './util';  /** @publicApi */ export interface PopStateEvent {   pop?: boolean;   state?: any;   type?: string;   url?: string; }  /**  * @description  *  * A service that applications can use to interact with a browser's URL.  *  * Depending on the `LocationStrategy` used, `Location` persists  * to the URL's path or the URL's hash segment.  *  * @usageNotes  *  * It's better to use the `Router.navigate()` service to trigger route changes. Use  * `Location` only if you need to interact with or create normalized URLs outside of  * routing.  *  * `Location` is responsible for normalizing the URL against the application's base href.  * A normalized URL is absolute from the URL host, includes the application's base href, and has no  * trailing slash:  * - `/my/app/user/123` is normalized  * - `my/app/user/123` **is not** normalized  * - `/my/app/user/123/` **is not** normalized  *  * ### Example  *  * <code-example path='common/location/ts/path_location_component.ts'  * region='LocationComponent'></code-example>  *  * @publicApi  */ @Injectable({   providedIn: 'root',   // See #23917   useFactory: createLocation, }) export class Location implements OnDestroy {   /** @internal */   _subject: EventEmitter<any> = new EventEmitter();   /** @internal */   _basePath: string;   /** @internal */   _locationStrategy: LocationStrategy;   /** @internal */   _urlChangeListeners: ((url: string, state: unknown) => void)[] = [];   /** @internal */   _urlChangeSubscription: SubscriptionLike|null = null;    constructor(locationStrategy: LocationStrategy) {     this._locationStrategy = locationStrategy;     const baseHref = this._locationStrategy.getBaseHref();     // Note: This class's interaction with base HREF does not fully follow the rules     // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.     // Instead of trying to fix individual bugs with more and more code, we should     // investigate using the URL constructor and providing the base as a second     // argument.     // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters     this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));     this._locationStrategy.onPopState((ev) => {       this._subject.emit({         'url': this.path(true),         'pop': true,         'state': ev.state,         'type': ev.type,       });     });   }    /** @nodoc */   ngOnDestroy(): void {     this._urlChangeSubscription?.unsubscribe();     this._urlChangeListeners = [];   }    /**    * Normalizes the URL path for this location.    *    * @param includeHash True to include an anchor fragment in the path.    *    * @returns The normalized URL path.    */   // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is   // removed.   path(includeHash: boolean = false): string {     return this.normalize(this._locationStrategy.path(includeHash));   }    /**    * Reports the current state of the location history.    * @returns The current value of the `history.state` object.    */   getState(): unknown {     return this._locationStrategy.getState();   }    /**    * Normalizes the given path and compares to the current normalized path.    *    * @param path The given URL path.    * @param query Query parameters.    *    * @returns True if the given URL path is equal to the current normalized path, false    * otherwise.    */   isCurrentPathEqualTo(path: string, query: string = ''): boolean {     return this.path() == this.normalize(path + normalizeQueryParams(query));   }    /**    * Normalizes a URL path by stripping any trailing slashes.    *    * @param url String representing a URL.    *    * @returns The normalized URL string.    */   normalize(url: string): string {     return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));   }    /**    * Normalizes an external URL path.    * If the given URL doesn't begin with a leading slash (`'/'`), adds one    * before normalizing. Adds a hash if `HashLocationStrategy` is    * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.    *    * @param url String representing a URL.    *    * @returns  A normalized platform-specific URL.    */   prepareExternalUrl(url: string): string {     if (url && url[0] !== '/') {       url = '/' + url;     }     return this._locationStrategy.prepareExternalUrl(url);   }    // TODO: rename this method to pushState   /**    * Changes the browser's URL to a normalized version of a given URL, and pushes a    * new item onto the platform's history.    *    * @param path  URL path to normalize.    * @param query Query parameters.    * @param state Location history state.    *    */   go(path: string, query: string = '', state: any = null): void {     this._locationStrategy.pushState(state, '', path, query);     this._notifyUrlChangeListeners(         this.prepareExternalUrl(path + normalizeQueryParams(query)), state);   }    /**    * Changes the browser's URL to a normalized version of the given URL, and replaces    * the top item on the platform's history stack.    *    * @param path  URL path to normalize.    * @param query Query parameters.    * @param state Location history state.    */   replaceState(path: string, query: string = '', state: any = null): void {     this._locationStrategy.replaceState(state, '', path, query);     this._notifyUrlChangeListeners(         this.prepareExternalUrl(path + normalizeQueryParams(query)), state);   }    /**    * Navigates forward in the platform's history.    */   forward(): void {     this._locationStrategy.forward();   }    /**    * Navigates back in the platform's history.    */   back(): void {     this._locationStrategy.back();   }    /**    * Navigate to a specific page from session history, identified by its relative position to the    * current page.    *    * @param relativePosition  Position of the target page in the history relative to the current    *     page.    * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`    * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go    * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs    * when `relativePosition` equals 0.    * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history    */   historyGo(relativePosition: number = 0): void {     this._locationStrategy.historyGo?.(relativePosition);   }    /**    * Registers a URL change listener. Use to catch updates performed by the Angular    * framework that are not detectible through \"popstate\" or \"hashchange\" events.    *    * @param fn The change handler function, which take a URL and a location history state.    * @returns A function that, when executed, unregisters a URL change listener.    */   onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction {     this._urlChangeListeners.push(fn);      if (!this._urlChangeSubscription) {       this._urlChangeSubscription = this.subscribe(v => {         this._notifyUrlChangeListeners(v.url, v.state);       });     }      return () => {       const fnIndex = this._urlChangeListeners.indexOf(fn);       this._urlChangeListeners.splice(fnIndex, 1);        if (this._urlChangeListeners.length === 0) {         this._urlChangeSubscription?.unsubscribe();         this._urlChangeSubscription = null;       }     };   }    /** @internal */   _notifyUrlChangeListeners(url: string = '', state: unknown) {     this._urlChangeListeners.forEach(fn => fn(url, state));   }    /**    * Subscribes to the platform's `popState` events.    *    * Note: `Location.go()` does not trigger the `popState` event in the browser. Use    * `Location.onUrlChange()` to subscribe to URL changes instead.    *    * @param value Event that is triggered when the state history changes.    * @param exception The exception to throw.    *    * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)    *    * @returns Subscribed events.    */   subscribe(       onNext: (value: PopStateEvent) => void, onThrow?: ((exception: any) => void)|null,       onReturn?: (() => void)|null): SubscriptionLike {     return this._subject.subscribe({next: onNext, error: onThrow, complete: onReturn});   }    /**    * Normalizes URL parameters by prepending with `?` if needed.    *    * @param  params String of URL parameters.    *    * @returns The normalized URL parameters string.    */   public static normalizeQueryParams: (params: string) => string = normalizeQueryParams;    /**    * Joins two parts of a URL with a slash if needed.    *    * @param start  URL string    * @param end    URL string    *    *    * @returns The joined URL string.    */   public static joinWithSlash: (start: string, end: string) => string = joinWithSlash;    /**    * Removes a trailing slash from a URL string if needed.    * Looks for the first occurrence of either `#`, `?`, or the end of the    * line as `/` characters and removes the trailing slash if one exists.    *    * @param url URL string.    *    * @returns The URL string, modified if needed.    */   public static stripTrailingSlash: (url: string) => string = stripTrailingSlash; }  export function createLocation() {   return new Location(ɵɵinject(LocationStrategy as any)); }  function _stripBasePath(basePath: string, url: string): string {   return basePath && new RegExp(`^${basePath}([/;?#]|$)`).test(url) ?       url.substring(basePath.length) :       url; }  function _stripIndexHtml(url: string): string {   return url.replace(/\\/index.html$/, ''); }  function _stripOrigin(baseHref: string): string {   // DO NOT REFACTOR! Previously, this check looked like this:   // `/^(https?:)?\\/\\//.test(baseHref)`, but that resulted in   // syntactically incorrect code after Closure Compiler minification.   // This was likely caused by a bug in Closure Compiler, but   // for now, the check is rewritten to use `new RegExp` instead.   const isAbsoluteUrl = (new RegExp('^(https?:)?//')).test(baseHref);   if (isAbsoluteUrl) {     const [, pathname] = baseHref.split(/\\/\\/[^\\/]+/);     return pathname;   }   return baseHref; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // THIS CODE IS GENERATED - DO NOT MODIFY. export type CurrenciesSymbols = [string] | [string | undefined, string];  /** @internal */ export const CURRENCIES_EN: {[code: string]: CurrenciesSymbols | [string | undefined, string | undefined, number]} = {\"ADP\":[undefined,undefined,0],\"AFN\":[undefined,\"؋\",0],\"ALL\":[undefined,undefined,0],\"AMD\":[undefined,\"֏\",2],\"AOA\":[undefined,\"Kz\"],\"ARS\":[undefined,\"$\"],\"AUD\":[\"A$\",\"$\"],\"AZN\":[undefined,\"₼\"],\"BAM\":[undefined,\"KM\"],\"BBD\":[undefined,\"$\"],\"BDT\":[undefined,\"৳\"],\"BHD\":[undefined,undefined,3],\"BIF\":[undefined,undefined,0],\"BMD\":[undefined,\"$\"],\"BND\":[undefined,\"$\"],\"BOB\":[undefined,\"Bs\"],\"BRL\":[\"R$\"],\"BSD\":[undefined,\"$\"],\"BWP\":[undefined,\"P\"],\"BYN\":[undefined,undefined,2],\"BYR\":[undefined,undefined,0],\"BZD\":[undefined,\"$\"],\"CAD\":[\"CA$\",\"$\",2],\"CHF\":[undefined,undefined,2],\"CLF\":[undefined,undefined,4],\"CLP\":[undefined,\"$\",0],\"CNY\":[\"CN¥\",\"¥\"],\"COP\":[undefined,\"$\",2],\"CRC\":[undefined,\"₡\",2],\"CUC\":[undefined,\"$\"],\"CUP\":[undefined,\"$\"],\"CZK\":[undefined,\"Kč\",2],\"DJF\":[undefined,undefined,0],\"DKK\":[undefined,\"kr\",2],\"DOP\":[undefined,\"$\"],\"EGP\":[undefined,\"E£\"],\"ESP\":[undefined,\"₧\",0],\"EUR\":[\"€\"],\"FJD\":[undefined,\"$\"],\"FKP\":[undefined,\"£\"],\"GBP\":[\"£\"],\"GEL\":[undefined,\"₾\"],\"GHS\":[undefined,\"GH₵\"],\"GIP\":[undefined,\"£\"],\"GNF\":[undefined,\"FG\",0],\"GTQ\":[undefined,\"Q\"],\"GYD\":[undefined,\"$\",2],\"HKD\":[\"HK$\",\"$\"],\"HNL\":[undefined,\"L\"],\"HRK\":[undefined,\"kn\"],\"HUF\":[undefined,\"Ft\",2],\"IDR\":[undefined,\"Rp\",2],\"ILS\":[\"₪\"],\"INR\":[\"₹\"],\"IQD\":[undefined,undefined,0],\"IRR\":[undefined,undefined,0],\"ISK\":[undefined,\"kr\",0],\"ITL\":[undefined,undefined,0],\"JMD\":[undefined,\"$\"],\"JOD\":[undefined,undefined,3],\"JPY\":[\"¥\",undefined,0],\"KHR\":[undefined,\"៛\"],\"KMF\":[undefined,\"CF\",0],\"KPW\":[undefined,\"₩\",0],\"KRW\":[\"₩\",undefined,0],\"KWD\":[undefined,undefined,3],\"KYD\":[undefined,\"$\"],\"KZT\":[undefined,\"₸\"],\"LAK\":[undefined,\"₭\",0],\"LBP\":[undefined,\"L£\",0],\"LKR\":[undefined,\"Rs\"],\"LRD\":[undefined,\"$\"],\"LTL\":[undefined,\"Lt\"],\"LUF\":[undefined,undefined,0],\"LVL\":[undefined,\"Ls\"],\"LYD\":[undefined,undefined,3],\"MGA\":[undefined,\"Ar\",0],\"MGF\":[undefined,undefined,0],\"MMK\":[undefined,\"K\",0],\"MNT\":[undefined,\"₮\",2],\"MRO\":[undefined,undefined,0],\"MUR\":[undefined,\"Rs\",2],\"MXN\":[\"MX$\",\"$\"],\"MYR\":[undefined,\"RM\"],\"NAD\":[undefined,\"$\"],\"NGN\":[undefined,\"₦\"],\"NIO\":[undefined,\"C$\"],\"NOK\":[undefined,\"kr\",2],\"NPR\":[undefined,\"Rs\"],\"NZD\":[\"NZ$\",\"$\"],\"OMR\":[undefined,undefined,3],\"PHP\":[\"₱\"],\"PKR\":[undefined,\"Rs\",2],\"PLN\":[undefined,\"zł\"],\"PYG\":[undefined,\"₲\",0],\"RON\":[undefined,\"lei\"],\"RSD\":[undefined,undefined,0],\"RUB\":[undefined,\"₽\"],\"RWF\":[undefined,\"RF\",0],\"SBD\":[undefined,\"$\"],\"SEK\":[undefined,\"kr\",2],\"SGD\":[undefined,\"$\"],\"SHP\":[undefined,\"£\"],\"SLE\":[undefined,undefined,2],\"SLL\":[undefined,undefined,0],\"SOS\":[undefined,undefined,0],\"SRD\":[undefined,\"$\"],\"SSP\":[undefined,\"£\"],\"STD\":[undefined,undefined,0],\"STN\":[undefined,\"Db\"],\"SYP\":[undefined,\"£\",0],\"THB\":[undefined,\"฿\"],\"TMM\":[undefined,undefined,0],\"TND\":[undefined,undefined,3],\"TOP\":[undefined,\"T$\"],\"TRL\":[undefined,undefined,0],\"TRY\":[undefined,\"₺\"],\"TTD\":[undefined,\"$\"],\"TWD\":[\"NT$\",\"$\",2],\"TZS\":[undefined,undefined,2],\"UAH\":[undefined,\"₴\"],\"UGX\":[undefined,undefined,0],\"USD\":[\"$\"],\"UYI\":[undefined,undefined,0],\"UYU\":[undefined,\"$\"],\"UYW\":[undefined,undefined,4],\"UZS\":[undefined,undefined,2],\"VEF\":[undefined,\"Bs\",2],\"VND\":[\"₫\",undefined,0],\"VUV\":[undefined,undefined,0],\"XAF\":[\"FCFA\",undefined,0],\"XCD\":[\"EC$\",\"$\"],\"XOF\":[\"F CFA\",undefined,0],\"XPF\":[\"CFPF\",undefined,0],\"XXX\":[\"¤\"],\"YER\":[undefined,undefined,0],\"ZAR\":[undefined,\"R\"],\"ZMK\":[undefined,undefined,0],\"ZMW\":[undefined,\"ZK\"],\"ZWD\":[undefined,undefined,0]}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵCurrencyIndex, ɵExtraLocaleDataIndex, ɵfindLocaleData, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, ɵLocaleDataIndex} from '@angular/core';  import {CURRENCIES_EN, CurrenciesSymbols} from './currencies';   /**  * Format styles that can be used to represent numbers.  * @see `getLocaleNumberFormat()`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum NumberFormatStyle {   Decimal,   Percent,   Currency,   Scientific }  /**  * Plurality cases used for translating plurals to different languages.  *  * @see `NgPlural`  * @see `NgPluralCase`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum Plural {   Zero = 0,   One = 1,   Two = 2,   Few = 3,   Many = 4,   Other = 5, }  /**  * Context-dependant translation forms for strings.  * Typically the standalone version is for the nominative form of the word,  * and the format version is used for the genitive case.  * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum FormStyle {   Format,   Standalone }  /**  * String widths available for translations.  * The specific character widths are locale-specific.  * Examples are given for the word \"Sunday\" in English.  *  * @publicApi  */ export enum TranslationWidth {   /** 1 character for `en-US`. For example: 'S' */   Narrow,   /** 3 characters for `en-US`. For example: 'Sun' */   Abbreviated,   /** Full length for `en-US`. For example: \"Sunday\" */   Wide,   /** 2 characters for `en-US`, For example: \"Su\" */   Short }  /**  * String widths available for date-time formats.  * The specific character widths are locale-specific.  * Examples are given for `en-US`.  *  * @see `getLocaleDateFormat()`  * @see `getLocaleTimeFormat()`  * @see `getLocaleDateTimeFormat()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  * @publicApi  */ export enum FormatWidth {   /**    * For `en-US`, 'M/d/yy, h:mm a'`    * (Example: `6/15/15, 9:03 AM`)    */   Short,   /**    * For `en-US`, `'MMM d, y, h:mm:ss a'`    * (Example: `Jun 15, 2015, 9:03:01 AM`)    */   Medium,   /**    * For `en-US`, `'MMMM d, y, h:mm:ss a z'`    * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)    */   Long,   /**    * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`    * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)    */   Full }  /**  * Symbols that can be used to replace placeholders in number patterns.  * Examples are based on `en-US` values.  *  * @see `getLocaleNumberSymbol()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum NumberSymbol {   /**    * Decimal separator.    * For `en-US`, the dot character.    * Example: 2,345`.`67    */   Decimal,   /**    * Grouping separator, typically for thousands.    * For `en-US`, the comma character.    * Example: 2`,`345.67    */   Group,   /**    * List-item separator.    * Example: \"one, two, and three\"    */   List,   /**    * Sign for percentage (out of 100).    * Example: 23.4%    */   PercentSign,   /**    * Sign for positive numbers.    * Example: +23    */   PlusSign,   /**    * Sign for negative numbers.    * Example: -23    */   MinusSign,   /**    * Computer notation for exponential value (n times a power of 10).    * Example: 1.2E3    */   Exponential,   /**    * Human-readable format of exponential.    * Example: 1.2x103    */   SuperscriptingExponent,   /**    * Sign for permille (out of 1000).    * Example: 23.4‰    */   PerMille,   /**    * Infinity, can be used with plus and minus.    * Example: ∞, +∞, -∞    */   Infinity,   /**    * Not a number.    * Example: NaN    */   NaN,   /**    * Symbol used between time units.    * Example: 10:52    */   TimeSeparator,   /**    * Decimal separator for currency values (fallback to `Decimal`).    * Example: $2,345.67    */   CurrencyDecimal,   /**    * Group separator for currency values (fallback to `Group`).    * Example: $2,345.67    */   CurrencyGroup }  /**  * The value for each day of the week, based on the `en-US` locale  *  * @publicApi  */ export enum WeekDay {   Sunday = 0,   Monday,   Tuesday,   Wednesday,   Thursday,   Friday,   Saturday }  /**  * Retrieves the locale ID from the currently loaded locale.  * The loaded locale could be, for example, a global one rather than a regional one.  * @param locale A locale code, such as `fr-FR`.  * @returns The locale code. For example, `fr`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleId(locale: string): string {   return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId]; }  /**  * Retrieves day period strings for the given locale.  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDayPeriods(     locale: string, formStyle: FormStyle, width: TranslationWidth): Readonly<[string, string]> {   const data = ɵfindLocaleData(locale);   const amPmData = <[string, string][][]>[     data[ɵLocaleDataIndex.DayPeriodsFormat], data[ɵLocaleDataIndex.DayPeriodsStandalone]   ];   const amPm = getLastDefinedValue(amPmData, formStyle);   return getLastDefinedValue(amPm, width); }  /**  * Retrieves days of the week for the given locale, using the Gregorian calendar.  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns An array of localized name strings.  * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDayNames(     locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string> {   const data = ɵfindLocaleData(locale);   const daysData =       <string[][][]>[data[ɵLocaleDataIndex.DaysFormat], data[ɵLocaleDataIndex.DaysStandalone]];   const days = getLastDefinedValue(daysData, formStyle);   return getLastDefinedValue(days, width); }  /**  * Retrieves months of the year for the given locale, using the Gregorian calendar.  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns An array of localized name strings.  * For example,  `[January, February, ...]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleMonthNames(     locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string> {   const data = ɵfindLocaleData(locale);   const monthsData =       <string[][][]>[data[ɵLocaleDataIndex.MonthsFormat], data[ɵLocaleDataIndex.MonthsStandalone]];   const months = getLastDefinedValue(monthsData, formStyle);   return getLastDefinedValue(months, width); }  /**  * Retrieves Gregorian-calendar eras for the given locale.  * @param locale A locale code for the locale format rules to use.  * @param width The required character width.   * @returns An array of localized era strings.  * For example, `[AD, BC]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleEraNames(     locale: string, width: TranslationWidth): Readonly<[string, string]> {   const data = ɵfindLocaleData(locale);   const erasData = <[string, string][]>data[ɵLocaleDataIndex.Eras];   return getLastDefinedValue(erasData, width); }  /**  * Retrieves the first day of the week for the given locale.  *  * @param locale A locale code for the locale format rules to use.  * @returns A day index number, using the 0-based week-day index for `en-US`  * (Sunday = 0, Monday = 1, ...).  * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleFirstDayOfWeek(locale: string): WeekDay {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.FirstDayOfWeek]; }  /**  * Range of week days that are considered the week-end for the given locale.  *  * @param locale A locale code for the locale format rules to use.  * @returns The range of day values, `[startDay, endDay]`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay] {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.WeekendRange]; }  /**  * Retrieves a localized date-value formatting string.  *  * @param locale A locale code for the locale format rules to use.  * @param width The format type.  * @returns The localized formatting string.  * @see `FormatWidth`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDateFormat(locale: string, width: FormatWidth): string {   const data = ɵfindLocaleData(locale);   return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width); }  /**  * Retrieves a localized time-value formatting string.  *  * @param locale A locale code for the locale format rules to use.  * @param width The format type.  * @returns The localized formatting string.  * @see `FormatWidth`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)   * @publicApi  */ export function getLocaleTimeFormat(locale: string, width: FormatWidth): string {   const data = ɵfindLocaleData(locale);   return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width); }  /**  * Retrieves a localized date-time formatting string.  *  * @param locale A locale code for the locale format rules to use.  * @param width The format type.  * @returns The localized formatting string.  * @see `FormatWidth`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDateTimeFormat(locale: string, width: FormatWidth): string {   const data = ɵfindLocaleData(locale);   const dateTimeFormatData = <string[]>data[ɵLocaleDataIndex.DateTimeFormat];   return getLastDefinedValue(dateTimeFormatData, width); }  /**  * Retrieves a localized number symbol that can be used to replace placeholders in number formats.  * @param locale The locale code.  * @param symbol The symbol to localize.  * @returns The character for the localized symbol.  * @see `NumberSymbol`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleNumberSymbol(locale: string, symbol: NumberSymbol): string {   const data = ɵfindLocaleData(locale);   const res = data[ɵLocaleDataIndex.NumberSymbols][symbol];   if (typeof res === 'undefined') {     if (symbol === NumberSymbol.CurrencyDecimal) {       return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];     } else if (symbol === NumberSymbol.CurrencyGroup) {       return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Group];     }   }   return res; }  /**  * Retrieves a number format for a given locale.  *  * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`  * when used to format the number 12345.678 could result in \"12'345,678\". That would happen if the  * grouping separator for your language is an apostrophe, and the decimal separator is a comma.  *  * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders  * that stand for the decimal separator, and so on, and are NOT real characters.  * You must NOT \"translate\" the placeholders. For example, don't change `.` to `,` even though in  * your language the decimal point is written with a comma. The symbols should be replaced by the  * local equivalents, using the appropriate `NumberSymbol` for your language.  *  * Here are the special characters used in number patterns:  *  * | Symbol | Meaning |  * |--------|---------|  * | . | Replaced automatically by the character used for the decimal point. |  * | , | Replaced by the \"grouping\" (thousands) separator. |  * | 0 | Replaced by a digit (or zero if there aren't enough digits). |  * | # | Replaced by a digit (or nothing if there aren't enough). |  * | ¤ | Replaced by a currency symbol, such as $ or USD. |  * | % | Marks a percent format. The % symbol may change position, but must be retained. |  * | E | Marks a scientific format. The E symbol may change position, but must be retained. |  * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |  *  * @param locale A locale code for the locale format rules to use.  * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)  * @returns The localized format string.  * @see `NumberFormatStyle`  * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleNumberFormat(locale: string, type: NumberFormatStyle): string {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.NumberFormats][type]; }  /**  * Retrieves the symbol used to represent the currency for the main country  * corresponding to a given locale. For example, '$' for `en-US`.  *  * @param locale A locale code for the locale format rules to use.  * @returns The localized symbol character,  * or `null` if the main country cannot be determined.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleCurrencySymbol(locale: string): string|null {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.CurrencySymbol] || null; }  /**  * Retrieves the name of the currency for the main country corresponding  * to a given locale. For example, 'US Dollar' for `en-US`.  * @param locale A locale code for the locale format rules to use.  * @returns The currency name,  * or `null` if the main country cannot be determined.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleCurrencyName(locale: string): string|null {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.CurrencyName] || null; }  /**  * Retrieves the default currency code for the given locale.  *  * The default is defined as the first currency which is still in use.  *  * @param locale The code of the locale whose currency code we want.  * @returns The code of the default currency for the given locale.  *  * @publicApi  */ export function getLocaleCurrencyCode(locale: string): string|null {   return ɵgetLocaleCurrencyCode(locale); }  /**  * Retrieves the currency values for a given locale.  * @param locale A locale code for the locale format rules to use.  * @returns The currency values.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  */ function getLocaleCurrencies(locale: string): {[code: string]: CurrenciesSymbols} {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.Currencies]; }  /**  * @alias core/ɵgetLocalePluralCase  * @publicApi  */ export const getLocalePluralCase: (locale: string) => ((value: number) => Plural) =     ɵgetLocalePluralCase;  function checkFullData(data: any) {   if (!data[ɵLocaleDataIndex.ExtraData]) {     throw new Error(`Missing extra locale data for the locale \"${         data[ɵLocaleDataIndex                  .LocaleId]}\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more.`);   } }  /**  * Retrieves locale-specific rules used to determine which day period to use  * when more than one period is defined for a locale.  *  * There is a rule for each defined day period. The  * first rule is applied to the first day period and so on.  * Fall back to AM/PM when no rules are available.  *  * A rule can specify a period as time range, or as a single time value.  *  * This functionality is only available when you have loaded the full locale data.  * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).  *  * @param locale A locale code for the locale format rules to use.  * @returns The rules for the locale, a single time value or array of *from-time, to-time*,  * or null if no periods are available.  *  * @see `getLocaleExtraDayPeriods()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleExtraDayPeriodRules(locale: string): (Time|[Time, Time])[] {   const data = ɵfindLocaleData(locale);   checkFullData(data);   const rules = data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodsRules] || [];   return rules.map((rule: string|[string, string]) => {     if (typeof rule === 'string') {       return extractTime(rule);     }     return [extractTime(rule[0]), extractTime(rule[1])];   }); }  /**  * Retrieves locale-specific day periods, which indicate roughly how a day is broken up  * in different languages.  * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.  *  * This functionality is only available when you have loaded the full locale data.  * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns The translated day-period strings.  * @see `getLocaleExtraDayPeriodRules()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleExtraDayPeriods(     locale: string, formStyle: FormStyle, width: TranslationWidth): string[] {   const data = ɵfindLocaleData(locale);   checkFullData(data);   const dayPeriodsData = <string[][][]>[     data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodFormats],     data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone]   ];   const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];   return getLastDefinedValue(dayPeriods, width) || []; }  /**  * Retrieves the writing direction of a specified locale  * @param locale A locale code for the locale format rules to use.  * @publicApi  * @returns 'rtl' or 'ltr'  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  */ export function getLocaleDirection(locale: string): 'ltr'|'rtl' {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.Directionality]; }  /**  * Retrieves the first value that is defined in an array, going backwards from an index position.  *  * To avoid repeating the same data (as when the \"format\" and \"standalone\" forms are the same)  * add the first value to the locale data arrays, and add other values only if they are different.  *  * @param data The data array to retrieve from.  * @param index A 0-based index into the array to start from.  * @returns The value immediately before the given index position.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ function getLastDefinedValue<T>(data: T[], index: number): T {   for (let i = index; i > -1; i--) {     if (typeof data[i] !== 'undefined') {       return data[i];     }   }   throw new Error('Locale data API: locale data undefined'); }  /**  * Represents a time value with hours and minutes.  *  * @publicApi  */ export type Time = {   hours: number,   minutes: number };  /**  * Extracts the hours and minutes from a string like \"15:45\"  */ function extractTime(time: string): Time {   const [h, m] = time.split(':');   return {hours: +h, minutes: +m}; }    /**  * Retrieves the currency symbol for a given currency code.  *  * For example, for the default `en-US` locale, the code `USD` can  * be represented by the narrow symbol `$` or the wide symbol `US$`.  *  * @param code The currency code.  * @param format The format, `wide` or `narrow`.  * @param locale A locale code for the locale format rules to use.  *  * @returns The symbol, or the currency code if no symbol is available.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getCurrencySymbol(code: string, format: 'wide'|'narrow', locale = 'en'): string {   const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];   const symbolNarrow = currency[ɵCurrencyIndex.SymbolNarrow];    if (format === 'narrow' && typeof symbolNarrow === 'string') {     return symbolNarrow;   }    return currency[ɵCurrencyIndex.Symbol] || code; }  // Most currencies have cents, that's why the default is 2 const DEFAULT_NB_OF_CURRENCY_DIGITS = 2;  /**  * Reports the number of decimal digits for a given currency.  * The value depends upon the presence of cents in that particular currency.  *  * @param code The currency code.  * @returns The number of decimal digits, typically 0 or 2.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getNumberOfCurrencyDigits(code: string): number {   let digits;   const currency = CURRENCIES_EN[code];   if (currency) {     digits = currency[ɵCurrencyIndex.NbOfDigits];   }   return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {FormatWidth, FormStyle, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleId, getLocaleMonthNames, getLocaleNumberSymbol, getLocaleTimeFormat, NumberSymbol, Time, TranslationWidth} from './locale_data_api';  export const ISO8601_DATE_REGEX =     /^(\\d{4,})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/; //    1        2       3         4          5          6          7          8  9     10      11 const NAMED_FORMATS: {[localeId: string]: {[format: string]: string}} = {}; const DATE_FORMATS_SPLIT =     /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\\s\\S]*)/;  enum ZoneWidth {   Short,   ShortGMT,   Long,   Extended }  enum DateType {   FullYear,   Month,   Date,   Hours,   Minutes,   Seconds,   FractionalSeconds,   Day }  enum TranslationType {   DayPeriods,   Days,   Months,   Eras }  /**  * @ngModule CommonModule  * @description  *  * Formats a date according to locale rules.  *  * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)  * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).  * @param format The date-time components to include. See `DatePipe` for details.  * @param locale A locale code for the locale format rules to use.  * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),  * or a standard UTC/GMT or continental US time zone abbreviation.  * If not specified, uses host system settings.  *  * @returns The formatted date string.  *  * @see `DatePipe`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function formatDate(     value: string|number|Date, format: string, locale: string, timezone?: string): string {   let date = toDate(value);   const namedFormat = getNamedFormat(locale, format);   format = namedFormat || format;    let parts: string[] = [];   let match;   while (format) {     match = DATE_FORMATS_SPLIT.exec(format);     if (match) {       parts = parts.concat(match.slice(1));       const part = parts.pop();       if (!part) {         break;       }       format = part;     } else {       parts.push(format);       break;     }   }    let dateTimezoneOffset = date.getTimezoneOffset();   if (timezone) {     dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);     date = convertTimezoneToLocal(date, timezone, true);   }    let text = '';   parts.forEach(value => {     const dateFormatter = getDateFormatter(value);     text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) :         value === '\\'\\''  ? '\\'' :                             value.replace(/(^'|'$)/g, '').replace(/''/g, '\\'');   });    return text; }  /**  * Create a new Date object with the given date value, and the time set to midnight.  *  * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.  * See: https://github.com/angular/angular/issues/40377  *  * Note that this function returns a Date object whose time is midnight in the current locale's  * timezone. In the future we might want to change this to be midnight in UTC, but this would be a  * considerable breaking change.  */ function createDate(year: number, month: number, date: number): Date {   // The `newDate` is set to midnight (UTC) on January 1st 1970.   // - In PST this will be December 31st 1969 at 4pm.   // - In GMT this will be January 1st 1970 at 1am.   // Note that they even have different years, dates and months!   const newDate = new Date(0);    // `setFullYear()` allows years like 0001 to be set correctly. This function does not   // change the internal time of the date.   // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).   // - In PST this will now be September 20, 2019 at 4pm   // - In GMT this will now be September 20, 2019 at 1am    newDate.setFullYear(year, month, date);   // We want the final date to be at local midnight, so we reset the time.   // - In PST this will now be September 20, 2019 at 12am   // - In GMT this will now be September 20, 2019 at 12am   newDate.setHours(0, 0, 0);    return newDate; }  function getNamedFormat(locale: string, format: string): string {   const localeId = getLocaleId(locale);   NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {};    if (NAMED_FORMATS[localeId][format]) {     return NAMED_FORMATS[localeId][format];   }    let formatValue = '';   switch (format) {     case 'shortDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Short);       break;     case 'mediumDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);       break;     case 'longDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Long);       break;     case 'fullDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Full);       break;     case 'shortTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);       break;     case 'mediumTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);       break;     case 'longTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);       break;     case 'fullTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);       break;     case 'short':       const shortTime = getNamedFormat(locale, 'shortTime');       const shortDate = getNamedFormat(locale, 'shortDate');       formatValue = formatDateTime(           getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);       break;     case 'medium':       const mediumTime = getNamedFormat(locale, 'mediumTime');       const mediumDate = getNamedFormat(locale, 'mediumDate');       formatValue = formatDateTime(           getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);       break;     case 'long':       const longTime = getNamedFormat(locale, 'longTime');       const longDate = getNamedFormat(locale, 'longDate');       formatValue =           formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);       break;     case 'full':       const fullTime = getNamedFormat(locale, 'fullTime');       const fullDate = getNamedFormat(locale, 'fullDate');       formatValue =           formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);       break;   }   if (formatValue) {     NAMED_FORMATS[localeId][format] = formatValue;   }   return formatValue; }  function formatDateTime(str: string, opt_values: string[]) {   if (opt_values) {     str = str.replace(/\\{([^}]+)}/g, function(match, key) {       return (opt_values != null && key in opt_values) ? opt_values[key] : match;     });   }   return str; }  function padNumber(     num: number, digits: number, minusSign = '-', trim?: boolean, negWrap?: boolean): string {   let neg = '';   if (num < 0 || (negWrap && num <= 0)) {     if (negWrap) {       num = -num + 1;     } else {       num = -num;       neg = minusSign;     }   }   let strNum = String(num);   while (strNum.length < digits) {     strNum = '0' + strNum;   }   if (trim) {     strNum = strNum.slice(strNum.length - digits);   }   return neg + strNum; }  function formatFractionalSeconds(milliseconds: number, digits: number): string {   const strMs = padNumber(milliseconds, 3);   return strMs.substring(0, digits); }  /**  * Returns a date formatter that transforms a date into its locale digit representation  */ function dateGetter(     name: DateType, size: number, offset: number = 0, trim = false,     negWrap = false): DateFormatter {   return function(date: Date, locale: string): string {     let part = getDatePart(name, date);     if (offset > 0 || part > -offset) {       part += offset;     }      if (name === DateType.Hours) {       if (part === 0 && offset === -12) {         part = 12;       }     } else if (name === DateType.FractionalSeconds) {       return formatFractionalSeconds(part, size);     }      const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);     return padNumber(part, size, localeMinus, trim, negWrap);   }; }  function getDatePart(part: DateType, date: Date): number {   switch (part) {     case DateType.FullYear:       return date.getFullYear();     case DateType.Month:       return date.getMonth();     case DateType.Date:       return date.getDate();     case DateType.Hours:       return date.getHours();     case DateType.Minutes:       return date.getMinutes();     case DateType.Seconds:       return date.getSeconds();     case DateType.FractionalSeconds:       return date.getMilliseconds();     case DateType.Day:       return date.getDay();     default:       throw new Error(`Unknown DateType value \"${part}\".`);   } }  /**  * Returns a date formatter that transforms a date into its locale string representation  */ function dateStrGetter(     name: TranslationType, width: TranslationWidth, form: FormStyle = FormStyle.Format,     extended = false): DateFormatter {   return function(date: Date, locale: string): string {     return getDateTranslation(date, locale, name, width, form, extended);   }; }  /**  * Returns the locale translation of a date for a given form, type and width  */ function getDateTranslation(     date: Date, locale: string, name: TranslationType, width: TranslationWidth, form: FormStyle,     extended: boolean) {   switch (name) {     case TranslationType.Months:       return getLocaleMonthNames(locale, form, width)[date.getMonth()];     case TranslationType.Days:       return getLocaleDayNames(locale, form, width)[date.getDay()];     case TranslationType.DayPeriods:       const currentHours = date.getHours();       const currentMinutes = date.getMinutes();       if (extended) {         const rules = getLocaleExtraDayPeriodRules(locale);         const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);         const index = rules.findIndex(rule => {           if (Array.isArray(rule)) {             // morning, afternoon, evening, night             const [from, to] = rule;             const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;             const beforeTo =                 (currentHours < to.hours ||                  (currentHours === to.hours && currentMinutes < to.minutes));             // We must account for normal rules that span a period during the day (e.g. 6am-9am)             // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.             // 10pm - 5am) where `from` is greater (later!) than `to`.             //             // In the first case the current time must be BOTH after `from` AND before `to`             // (e.g. 8am is after 6am AND before 10am).             //             // In the second case the current time must be EITHER after `from` OR before `to`             // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is             // after 10pm).             if (from.hours < to.hours) {               if (afterFrom && beforeTo) {                 return true;               }             } else if (afterFrom || beforeTo) {               return true;             }           } else {  // noon or midnight             if (rule.hours === currentHours && rule.minutes === currentMinutes) {               return true;             }           }           return false;         });         if (index !== -1) {           return dayPeriods[index];         }       }       // if no rules for the day periods, we use am/pm by default       return getLocaleDayPeriods(locale, form, <TranslationWidth>width)[currentHours < 12 ? 0 : 1];     case TranslationType.Eras:       return getLocaleEraNames(locale, <TranslationWidth>width)[date.getFullYear() <= 0 ? 0 : 1];     default:       // This default case is not needed by TypeScript compiler, as the switch is exhaustive.       // However Closure Compiler does not understand that and reports an error in typed mode.       // The `throw new Error` below works around the problem, and the unexpected: never variable       // makes sure tsc still checks this code is unreachable.       const unexpected: never = name;       throw new Error(`unexpected translation type ${unexpected}`);   } }  /**  * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or  * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,  * extended = +04:30)  */ function timeZoneGetter(width: ZoneWidth): DateFormatter {   return function(date: Date, locale: string, offset: number) {     const zone = -1 * offset;     const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);     const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);     switch (width) {       case ZoneWidth.Short:         return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +             padNumber(Math.abs(zone % 60), 2, minusSign);       case ZoneWidth.ShortGMT:         return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);       case ZoneWidth.Long:         return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +             padNumber(Math.abs(zone % 60), 2, minusSign);       case ZoneWidth.Extended:         if (offset === 0) {           return 'Z';         } else {           return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +               padNumber(Math.abs(zone % 60), 2, minusSign);         }       default:         throw new Error(`Unknown zone width \"${width}\"`);     }   }; }  const JANUARY = 0; const THURSDAY = 4; function getFirstThursdayOfYear(year: number) {   const firstDayOfYear = createDate(year, JANUARY, 1).getDay();   return createDate(       year, 0, 1 + ((firstDayOfYear <= THURSDAY) ? THURSDAY : THURSDAY + 7) - firstDayOfYear); }  function getThursdayThisWeek(datetime: Date) {   return createDate(       datetime.getFullYear(), datetime.getMonth(),       datetime.getDate() + (THURSDAY - datetime.getDay())); }  function weekGetter(size: number, monthBased = false): DateFormatter {   return function(date: Date, locale: string) {     let result;     if (monthBased) {       const nbDaysBefore1stDayOfMonth =           new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;       const today = date.getDate();       result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);     } else {       const thisThurs = getThursdayThisWeek(date);       // Some days of a year are part of next year according to ISO 8601.       // Compute the firstThurs from the year of this week's Thursday       const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());       const diff = thisThurs.getTime() - firstThurs.getTime();       result = 1 + Math.round(diff / 6.048e8);  // 6.048e8 ms per week     }      return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));   }; }  /**  * Returns a date formatter that provides the week-numbering year for the input date.  */ function weekNumberingYearGetter(size: number, trim = false): DateFormatter {   return function(date: Date, locale: string) {     const thisThurs = getThursdayThisWeek(date);     const weekNumberingYear = thisThurs.getFullYear();     return padNumber(         weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);   }; }  type DateFormatter = (date: Date, locale: string, offset: number) => string;  const DATE_FORMATS: {[format: string]: DateFormatter} = {};  // Based on CLDR formats: // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table // See also explanations: http://cldr.unicode.org/translation/date-time // TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x function getDateFormatter(format: string): DateFormatter|null {   if (DATE_FORMATS[format]) {     return DATE_FORMATS[format];   }   let formatter;   switch (format) {     // Era name (AD/BC)     case 'G':     case 'GG':     case 'GGG':       formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);       break;     case 'GGGG':       formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);       break;     case 'GGGGG':       formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);       break;      // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)     case 'y':       formatter = dateGetter(DateType.FullYear, 1, 0, false, true);       break;     // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)     case 'yy':       formatter = dateGetter(DateType.FullYear, 2, 0, true, true);       break;     // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)     case 'yyy':       formatter = dateGetter(DateType.FullYear, 3, 0, false, true);       break;     // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)     case 'yyyy':       formatter = dateGetter(DateType.FullYear, 4, 0, false, true);       break;      // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)     case 'Y':       formatter = weekNumberingYearGetter(1);       break;     // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD     // 2010 => 10)     case 'YY':       formatter = weekNumberingYearGetter(2, true);       break;     // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD     // 2010 => 2010)     case 'YYY':       formatter = weekNumberingYearGetter(3);       break;     // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)     case 'YYYY':       formatter = weekNumberingYearGetter(4);       break;      // Month of the year (1-12), numeric     case 'M':     case 'L':       formatter = dateGetter(DateType.Month, 1, 1);       break;     case 'MM':     case 'LL':       formatter = dateGetter(DateType.Month, 2, 1);       break;      // Month of the year (January, ...), string, format     case 'MMM':       formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);       break;     case 'MMMM':       formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);       break;     case 'MMMMM':       formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);       break;      // Month of the year (January, ...), string, standalone     case 'LLL':       formatter =           dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);       break;     case 'LLLL':       formatter =           dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);       break;     case 'LLLLL':       formatter =           dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);       break;      // Week of the year (1, ... 52)     case 'w':       formatter = weekGetter(1);       break;     case 'ww':       formatter = weekGetter(2);       break;      // Week of the month (1, ...)     case 'W':       formatter = weekGetter(1, true);       break;      // Day of the month (1-31)     case 'd':       formatter = dateGetter(DateType.Date, 1);       break;     case 'dd':       formatter = dateGetter(DateType.Date, 2);       break;      // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)     case 'c':     case 'cc':       formatter = dateGetter(DateType.Day, 1);       break;     case 'ccc':       formatter =           dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);       break;     case 'cccc':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);       break;     case 'ccccc':       formatter =           dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);       break;     case 'cccccc':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short, FormStyle.Standalone);       break;      // Day of the Week     case 'E':     case 'EE':     case 'EEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);       break;     case 'EEEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);       break;     case 'EEEEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);       break;     case 'EEEEEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);       break;      // Generic period of the day (am-pm)     case 'a':     case 'aa':     case 'aaa':       formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);       break;     case 'aaaa':       formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);       break;     case 'aaaaa':       formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);       break;      // Extended period of the day (midnight, at night, ...), standalone     case 'b':     case 'bb':     case 'bbb':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);       break;     case 'bbbb':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);       break;     case 'bbbbb':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);       break;      // Extended period of the day (midnight, night, ...), standalone     case 'B':     case 'BB':     case 'BBB':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);       break;     case 'BBBB':       formatter =           dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);       break;     case 'BBBBB':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);       break;      // Hour in AM/PM, (1-12)     case 'h':       formatter = dateGetter(DateType.Hours, 1, -12);       break;     case 'hh':       formatter = dateGetter(DateType.Hours, 2, -12);       break;      // Hour of the day (0-23)     case 'H':       formatter = dateGetter(DateType.Hours, 1);       break;     // Hour in day, padded (00-23)     case 'HH':       formatter = dateGetter(DateType.Hours, 2);       break;      // Minute of the hour (0-59)     case 'm':       formatter = dateGetter(DateType.Minutes, 1);       break;     case 'mm':       formatter = dateGetter(DateType.Minutes, 2);       break;      // Second of the minute (0-59)     case 's':       formatter = dateGetter(DateType.Seconds, 1);       break;     case 'ss':       formatter = dateGetter(DateType.Seconds, 2);       break;      // Fractional second     case 'S':       formatter = dateGetter(DateType.FractionalSeconds, 1);       break;     case 'SS':       formatter = dateGetter(DateType.FractionalSeconds, 2);       break;     case 'SSS':       formatter = dateGetter(DateType.FractionalSeconds, 3);       break;       // Timezone ISO8601 short format (-0430)     case 'Z':     case 'ZZ':     case 'ZZZ':       formatter = timeZoneGetter(ZoneWidth.Short);       break;     // Timezone ISO8601 extended format (-04:30)     case 'ZZZZZ':       formatter = timeZoneGetter(ZoneWidth.Extended);       break;      // Timezone GMT short format (GMT+4)     case 'O':     case 'OO':     case 'OOO':     // Should be location, but fallback to format O instead because we don't have the data yet     case 'z':     case 'zz':     case 'zzz':       formatter = timeZoneGetter(ZoneWidth.ShortGMT);       break;     // Timezone GMT long format (GMT+0430)     case 'OOOO':     case 'ZZZZ':     // Should be location, but fallback to format O instead because we don't have the data yet     case 'zzzz':       formatter = timeZoneGetter(ZoneWidth.Long);       break;     default:       return null;   }   DATE_FORMATS[format] = formatter;   return formatter; }  function timezoneToOffset(timezone: string, fallback: number): number {   // Support: IE 11 only, Edge 13-15+   // IE/Edge do not \"understand\" colon (`:`) in timezone   timezone = timezone.replace(/:/g, '');   const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;   return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset; }  function addDateMinutes(date: Date, minutes: number) {   date = new Date(date.getTime());   date.setMinutes(date.getMinutes() + minutes);   return date; }  function convertTimezoneToLocal(date: Date, timezone: string, reverse: boolean): Date {   const reverseValue = reverse ? -1 : 1;   const dateTimezoneOffset = date.getTimezoneOffset();   const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);   return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset)); }  /**  * Converts a value to date.  *  * Supported input formats:  * - `Date`  * - number: timestamp  * - string: numeric (e.g. \"1234\"), ISO and date strings in a format supported by  *   [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).  *   Note: ISO strings without time return a date without timeoffset.  *  * Throws if unable to convert to a date.  */ export function toDate(value: string|number|Date): Date {   if (isDate(value)) {     return value;   }    if (typeof value === 'number' && !isNaN(value)) {     return new Date(value);   }    if (typeof value === 'string') {     value = value.trim();      if (/^(\\d{4}(-\\d{1,2}(-\\d{1,2})?)?)$/.test(value)) {       /* For ISO Strings without time the day, month and year must be extracted from the ISO String       before Date creation to avoid time offset and errors in the new Date.       If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new       date, some browsers (e.g. IE 9) will throw an invalid Date error.       If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset       is applied.       Note: ISO months are 0 for January, 1 for February, ... */       const [y, m = 1, d = 1] = value.split('-').map((val: string) => +val);       return createDate(y, m - 1, d);     }      const parsedNb = parseFloat(value);      // any string that only contains numbers, like \"1234\" but not like \"1234hello\"     if (!isNaN(value as any - parsedNb)) {       return new Date(parsedNb);     }      let match: RegExpMatchArray|null;     if (match = value.match(ISO8601_DATE_REGEX)) {       return isoStringToDate(match);     }   }    const date = new Date(value as any);   if (!isDate(date)) {     throw new Error(`Unable to convert \"${value}\" into a date`);   }   return date; }  /**  * Converts a date in ISO8601 to a Date.  * Used instead of `Date.parse` because of browser discrepancies.  */ export function isoStringToDate(match: RegExpMatchArray): Date {   const date = new Date(0);   let tzHour = 0;   let tzMin = 0;    // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"   const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;   const timeSetter = match[8] ? date.setUTCHours : date.setHours;    // if there is a timezone defined like \"+01:00\" or \"+0100\"   if (match[9]) {     tzHour = Number(match[9] + match[10]);     tzMin = Number(match[9] + match[11]);   }   dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));   const h = Number(match[4] || 0) - tzHour;   const m = Number(match[5] || 0) - tzMin;   const s = Number(match[6] || 0);   // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)   // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`   // becomes `999ms`.   const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);   timeSetter.call(date, h, m, s, ms);   return date; }  export function isDate(value: any): value is Date {   return value instanceof Date && !isNaN(value.valueOf()); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {getLocaleNumberFormat, getLocaleNumberSymbol, getNumberOfCurrencyDigits, NumberFormatStyle, NumberSymbol} from './locale_data_api';  export const NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/; const MAX_DIGITS = 22; const DECIMAL_SEP = '.'; const ZERO_CHAR = '0'; const PATTERN_SEP = ';'; const GROUP_SEP = ','; const DIGIT_CHAR = '#'; const CURRENCY_CHAR = '¤'; const PERCENT_CHAR = '%';  /**  * Transforms a number to a locale string based on a style and a format.  */ function formatNumberToLocaleString(     value: number, pattern: ParsedNumberFormat, locale: string, groupSymbol: NumberSymbol,     decimalSymbol: NumberSymbol, digitsInfo?: string, isPercent = false): string {   let formattedText = '';   let isZero = false;    if (!isFinite(value)) {     formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);   } else {     let parsedNumber = parseNumber(value);      if (isPercent) {       parsedNumber = toPercent(parsedNumber);     }      let minInt = pattern.minInt;     let minFraction = pattern.minFrac;     let maxFraction = pattern.maxFrac;      if (digitsInfo) {       const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);       if (parts === null) {         throw new Error(`${digitsInfo} is not a valid digit info`);       }       const minIntPart = parts[1];       const minFractionPart = parts[3];       const maxFractionPart = parts[5];       if (minIntPart != null) {         minInt = parseIntAutoRadix(minIntPart);       }       if (minFractionPart != null) {         minFraction = parseIntAutoRadix(minFractionPart);       }       if (maxFractionPart != null) {         maxFraction = parseIntAutoRadix(maxFractionPart);       } else if (minFractionPart != null && minFraction > maxFraction) {         maxFraction = minFraction;       }     }      roundNumber(parsedNumber, minFraction, maxFraction);      let digits = parsedNumber.digits;     let integerLen = parsedNumber.integerLen;     const exponent = parsedNumber.exponent;     let decimals = [];     isZero = digits.every(d => !d);      // pad zeros for small numbers     for (; integerLen < minInt; integerLen++) {       digits.unshift(0);     }      // pad zeros for small numbers     for (; integerLen < 0; integerLen++) {       digits.unshift(0);     }      // extract decimals digits     if (integerLen > 0) {       decimals = digits.splice(integerLen, digits.length);     } else {       decimals = digits;       digits = [0];     }      // format the integer digits with grouping separators     const groups = [];     if (digits.length >= pattern.lgSize) {       groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));     }      while (digits.length > pattern.gSize) {       groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));     }      if (digits.length) {       groups.unshift(digits.join(''));     }      formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));      // append the decimal digits     if (decimals.length) {       formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');     }      if (exponent) {       formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;     }   }    if (value < 0 && !isZero) {     formattedText = pattern.negPre + formattedText + pattern.negSuf;   } else {     formattedText = pattern.posPre + formattedText + pattern.posSuf;   }    return formattedText; }  /**  * @ngModule CommonModule  * @description  *  * Formats a number as currency using locale rules.  *  * @param value The number to format.  * @param locale A locale code for the locale format rules to use.  * @param currency A string containing the currency symbol or its name,  * such as \"$\" or \"Canadian Dollar\". Used in output string, but does not affect the operation  * of the function.  * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)  * currency code, such as `USD` for the US dollar and `EUR` for the euro.  * Used to determine the number of digits in the decimal part.  * @param digitsInfo Decimal representation options, specified by a string in the following format:  * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.  *  * @returns The formatted currency value.  *  * @see `formatNumber()`  * @see `DecimalPipe`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function formatCurrency(     value: number, locale: string, currency: string, currencyCode?: string,     digitsInfo?: string): string {   const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);   const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));    pattern.minFrac = getNumberOfCurrencyDigits(currencyCode!);   pattern.maxFrac = pattern.minFrac;    const res = formatNumberToLocaleString(       value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);   return res       .replace(CURRENCY_CHAR, currency)       // if we have 2 time the currency character, the second one is ignored       .replace(CURRENCY_CHAR, '')       // If there is a spacing between currency character and the value and       // the currency character is suppressed by passing an empty string, the       // spacing character would remain as part of the string. Then we       // should remove it.       .trim(); }  /**  * @ngModule CommonModule  * @description  *  * Formats a number as a percentage according to locale rules.  *  * @param value The number to format.  * @param locale A locale code for the locale format rules to use.  * @param digitsInfo Decimal representation options, specified by a string in the following format:  * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.  *  * @returns The formatted percentage value.  *  * @see `formatNumber()`  * @see `DecimalPipe`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  * @publicApi  *  */ export function formatPercent(value: number, locale: string, digitsInfo?: string): string {   const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);   const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));   const res = formatNumberToLocaleString(       value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);   return res.replace(       new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign)); }  /**  * @ngModule CommonModule  * @description  *  * Formats a number as text, with group sizing, separator, and other  * parameters based on the locale.  *  * @param value The number to format.  * @param locale A locale code for the locale format rules to use.  * @param digitsInfo Decimal representation options, specified by a string in the following format:  * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.  *  * @returns The formatted text string.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function formatNumber(value: number, locale: string, digitsInfo?: string): string {   const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);   const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));   return formatNumberToLocaleString(       value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo); }  interface ParsedNumberFormat {   minInt: number;   // the minimum number of digits required in the fraction part of the number   minFrac: number;   // the maximum number of digits required in the fraction part of the number   maxFrac: number;   // the prefix for a positive number   posPre: string;   // the suffix for a positive number   posSuf: string;   // the prefix for a negative number (e.g. `-` or `(`))   negPre: string;   // the suffix for a negative number (e.g. `)`)   negSuf: string;   // number of digits in each group of separated digits   gSize: number;   // number of digits in the last group of digits before the decimal separator   lgSize: number; }  function parseNumberFormat(format: string, minusSign = '-'): ParsedNumberFormat {   const p = {     minInt: 1,     minFrac: 0,     maxFrac: 0,     posPre: '',     posSuf: '',     negPre: '',     negSuf: '',     gSize: 0,     lgSize: 0   };    const patternParts = format.split(PATTERN_SEP);   const positive = patternParts[0];   const negative = patternParts[1];    const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ?       positive.split(DECIMAL_SEP) :       [         positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),         positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)       ],         integer = positiveParts[0], fraction = positiveParts[1] || '';    p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));    for (let i = 0; i < fraction.length; i++) {     const ch = fraction.charAt(i);     if (ch === ZERO_CHAR) {       p.minFrac = p.maxFrac = i + 1;     } else if (ch === DIGIT_CHAR) {       p.maxFrac = i + 1;     } else {       p.posSuf += ch;     }   }    const groups = integer.split(GROUP_SEP);   p.gSize = groups[1] ? groups[1].length : 0;   p.lgSize = (groups[2] || groups[1]) ? (groups[2] || groups[1]).length : 0;    if (negative) {     const trunkLen = positive.length - p.posPre.length - p.posSuf.length,           pos = negative.indexOf(DIGIT_CHAR);      p.negPre = negative.substring(0, pos).replace(/'/g, '');     p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');   } else {     p.negPre = minusSign + p.posPre;     p.negSuf = p.posSuf;   }    return p; }  interface ParsedNumber {   // an array of digits containing leading zeros as necessary   digits: number[];   // the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`   exponent: number;   // the number of the digits in `d` that are to the left of the decimal point   integerLen: number; }  // Transforms a parsed number into a percentage by multiplying it by 100 function toPercent(parsedNumber: ParsedNumber): ParsedNumber {   // if the number is 0, don't do anything   if (parsedNumber.digits[0] === 0) {     return parsedNumber;   }    // Getting the current number of decimals   const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;   if (parsedNumber.exponent) {     parsedNumber.exponent += 2;   } else {     if (fractionLen === 0) {       parsedNumber.digits.push(0, 0);     } else if (fractionLen === 1) {       parsedNumber.digits.push(0);     }     parsedNumber.integerLen += 2;   }    return parsedNumber; }  /**  * Parses a number.  * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/  */ function parseNumber(num: number): ParsedNumber {   let numStr = Math.abs(num) + '';   let exponent = 0, digits, integerLen;   let i, j, zeros;    // Decimal point?   if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {     numStr = numStr.replace(DECIMAL_SEP, '');   }    // Exponential form?   if ((i = numStr.search(/e/i)) > 0) {     // Work out the exponent.     if (integerLen < 0) integerLen = i;     integerLen += +numStr.slice(i + 1);     numStr = numStr.substring(0, i);   } else if (integerLen < 0) {     // There was no decimal point or exponent so it is an integer.     integerLen = numStr.length;   }    // Count the number of leading zeros.   for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */   }    if (i === (zeros = numStr.length)) {     // The digits are all zero.     digits = [0];     integerLen = 1;   } else {     // Count the number of trailing zeros     zeros--;     while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;      // Trailing zeros are insignificant so ignore them     integerLen -= i;     digits = [];     // Convert string to array of digits without leading/trailing zeros.     for (j = 0; i <= zeros; i++, j++) {       digits[j] = Number(numStr.charAt(i));     }   }    // If the number overflows the maximum allowed digits then use an exponent.   if (integerLen > MAX_DIGITS) {     digits = digits.splice(0, MAX_DIGITS - 1);     exponent = integerLen - 1;     integerLen = 1;   }    return {digits, exponent, integerLen}; }  /**  * Round the parsed number to the specified number of decimal places  * This function changes the parsedNumber in-place  */ function roundNumber(parsedNumber: ParsedNumber, minFrac: number, maxFrac: number) {   if (minFrac > maxFrac) {     throw new Error(`The minimum number of digits after fraction (${         minFrac}) is higher than the maximum (${maxFrac}).`);   }    let digits = parsedNumber.digits;   let fractionLen = digits.length - parsedNumber.integerLen;   const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);    // The index of the digit to where rounding is to occur   let roundAt = fractionSize + parsedNumber.integerLen;   let digit = digits[roundAt];    if (roundAt > 0) {     // Drop fractional digits beyond `roundAt`     digits.splice(Math.max(parsedNumber.integerLen, roundAt));      // Set non-fractional digits beyond `roundAt` to 0     for (let j = roundAt; j < digits.length; j++) {       digits[j] = 0;     }   } else {     // We rounded to zero so reset the parsedNumber     fractionLen = Math.max(0, fractionLen);     parsedNumber.integerLen = 1;     digits.length = Math.max(1, roundAt = fractionSize + 1);     digits[0] = 0;     for (let i = 1; i < roundAt; i++) digits[i] = 0;   }    if (digit >= 5) {     if (roundAt - 1 < 0) {       for (let k = 0; k > roundAt; k--) {         digits.unshift(0);         parsedNumber.integerLen++;       }       digits.unshift(1);       parsedNumber.integerLen++;     } else {       digits[roundAt - 1]++;     }   }    // Pad out with zeros to get the required fraction length   for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);    let dropTrailingZeros = fractionSize !== 0;   // Minimal length = nb of decimals required + current nb of integers   // Any number besides that is optional and can be removed if it's a trailing 0   const minLen = minFrac + parsedNumber.integerLen;   // Do any carrying, e.g. a digit was rounded up to 10   const carry = digits.reduceRight(function(carry, d, i, digits) {     d = d + carry;     digits[i] = d < 10 ? d : d - 10;  // d % 10     if (dropTrailingZeros) {       // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)       if (digits[i] === 0 && i >= minLen) {         digits.pop();       } else {         dropTrailingZeros = false;       }     }     return d >= 10 ? 1 : 0;  // Math.floor(d / 10);   }, 0);   if (carry) {     digits.unshift(carry);     parsedNumber.integerLen++;   } }  export function parseIntAutoRadix(text: string): number {   const result: number = parseInt(text);   if (isNaN(result)) {     throw new Error('Invalid integer literal when parsing ' + text);   }   return result; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, Injectable, LOCALE_ID} from '@angular/core';  import {getLocalePluralCase, Plural} from './locale_data_api';  /**  * @publicApi  */ @Injectable({   providedIn: 'root',   useFactory: (locale: string) => new NgLocaleLocalization(locale),   deps: [LOCALE_ID], }) export abstract class NgLocalization {   abstract getPluralCategory(value: any, locale?: string): string; }  /**  * Returns the plural category for a given value.  * - \"=value\" when the case exists,  * - the plural category otherwise  */ export function getPluralCategory(     value: number, cases: string[], ngLocalization: NgLocalization, locale?: string): string {   let key = `=${value}`;    if (cases.indexOf(key) > -1) {     return key;   }    key = ngLocalization.getPluralCategory(value, locale);    if (cases.indexOf(key) > -1) {     return key;   }    if (cases.indexOf('other') > -1) {     return 'other';   }    throw new Error(`No plural message found for value \"${value}\"`); }  /**  * Returns the plural case based on the locale  *  * @publicApi  */ @Injectable() export class NgLocaleLocalization extends NgLocalization {   constructor(@Inject(LOCALE_ID) protected locale: string) {     super();   }    override getPluralCategory(value: any, locale?: string): string {     const plural = getLocalePluralCase(locale || this.locale)(value);      switch (plural) {       case Plural.Zero:         return 'zero';       case Plural.One:         return 'one';       case Plural.Two:         return 'two';       case Plural.Few:         return 'few';       case Plural.Many:         return 'many';       default:         return 'other';     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵregisterLocaleData} from '@angular/core';  /**  * Register global data to be used internally by Angular. See the  * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale  * data.  *  * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1  *  * @publicApi  */ export function registerLocaleData(data: any, localeId?: string|any, extraData?: any): void {   return ɵregisterLocaleData(data, localeId, extraData); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export function parseCookieValue(cookieStr: string, name: string): string|null {   name = encodeURIComponent(name);   for (const cookie of cookieStr.split(';')) {     const eqIndex = cookie.indexOf('=');     const [cookieName, cookieValue]: string[] =         eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];     if (cookieName.trim() === name) {       return decodeURIComponent(cookieValue);     }   }   return null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {Directive, DoCheck, ElementRef, Input, IterableDiffers, KeyValueDiffers, Renderer2, ɵstringify as stringify} from '@angular/core';  type NgClassSupportedTypes = string[]|Set<string>|{[klass: string]: any}|null|undefined;  const WS_REGEXP = /\\s+/;  const EMPTY_ARRAY: string[] = [];  /**  * Represents internal object used to track state of each CSS class. There are 3 different (boolean)  * flags that, combined together, indicate state of a given CSS class:  * - enabled: indicates if a class should be present in the DOM (true) or not (false);  * - changed: tracks if a class was toggled (added or removed) during the custom dirty-checking  * process; changed classes must be synchronized with the DOM;  * - touched: tracks if a class is present in the current object bound to the class / ngClass input;  * classes that are not present any more can be removed from the internal data structures;  */ interface CssClassState {   // PERF: could use a bit mask to represent state as all fields are boolean flags   enabled: boolean;   changed: boolean;   touched: boolean; }  /**  * @ngModule CommonModule  *  * @usageNotes  * ```  *     <some-element [ngClass]=\"'first second'\">...</some-element>  *  *     <some-element [ngClass]=\"['first', 'second']\">...</some-element>  *  *     <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>  *  *     <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>  *  *     <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>  * ```  *  * @description  *  * Adds and removes CSS classes on an HTML element.  *  * The CSS classes are updated as follows, depending on the type of the expression evaluation:  * - `string` - the CSS classes listed in the string (space delimited) are added,  * - `Array` - the CSS classes declared as Array elements are added,  * - `Object` - keys are CSS classes that get added when the expression given in the value  *              evaluates to a truthy value, otherwise they are removed.  *  * @publicApi  */ @Directive({   selector: '[ngClass]',   standalone: true, }) export class NgClass implements DoCheck {   private initialClasses = EMPTY_ARRAY;   private rawClass: NgClassSupportedTypes;    private stateMap = new Map<string, CssClassState>();    constructor(       // leaving references to differs in place since flex layout is extending NgClass...       private _iterableDiffers: IterableDiffers, private _keyValueDiffers: KeyValueDiffers,       private _ngEl: ElementRef, private _renderer: Renderer2) {}    @Input('class')   set klass(value: string) {     this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;   }    @Input('ngClass')   set ngClass(value: string|string[]|Set<string>|{[klass: string]: any}|null|undefined) {     this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;   }    /*   The NgClass directive uses the custom change detection algorithm for its inputs. The custom   algorithm is necessary since inputs are represented as complex object or arrays that need to be   deeply-compared.    This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance   might negatively impact runtime performance of the entire change detection cycle. The design of   this algorithm is making sure that:   - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when   needed), even if references to bound objects change;   - there is no memory allocation if nothing changes (even relatively modest memory allocation   during the change detection cycle can result in GC pauses for some of the CD cycles).    The algorithm works by iterating over the set of bound classes, staring with [class] binding and   then going over [ngClass] binding. For each CSS class name:   - check if it was seen before (this information is tracked in the state map) and if its value   changed;   - mark it as \"touched\" - names that are not marked are not present in the latest set of binding   and we can remove such class name from the internal data structures;    After iteration over all the CSS class names we've got data structure with all the information   necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush   changes to the DOM and reset internal data structures so those are ready for the next change   detection cycle.    */   ngDoCheck(): void {     // classes from the [class] binding     for (const klass of this.initialClasses) {       this._updateState(klass, true);     }      // classes from the [ngClass] binding     const rawClass = this.rawClass;     if (Array.isArray(rawClass) || rawClass instanceof Set) {       for (const klass of rawClass) {         this._updateState(klass, true);       }     } else if (rawClass != null) {       for (const klass of Object.keys(rawClass)) {         this._updateState(klass, Boolean(rawClass[klass]));       }     }      this._applyStateDiff();   }    private _updateState(klass: string, nextEnabled: boolean) {     const state = this.stateMap.get(klass);     if (state !== undefined) {       if (state.enabled !== nextEnabled) {         state.changed = true;         state.enabled = nextEnabled;       }       state.touched = true;     } else {       this.stateMap.set(klass, {enabled: nextEnabled, changed: true, touched: true});     }   }    private _applyStateDiff() {     for (const stateEntry of this.stateMap) {       const klass = stateEntry[0];       const state = stateEntry[1];        if (state.changed) {         this._toggleClass(klass, state.enabled);         state.changed = false;       } else if (!state.touched) {         // A class that was previously active got removed from the new collection of classes -         // remove from the DOM as well.         if (state.enabled) {           this._toggleClass(klass, false);         }         this.stateMap.delete(klass);       }        state.touched = false;     }   }    private _toggleClass(klass: string, enabled: boolean): void {     if (ngDevMode) {       if (typeof klass !== 'string') {         throw new Error(             `NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`);       }     }     klass = klass.trim();     if (klass.length > 0) {       klass.split(WS_REGEXP).forEach(klass => {         if (enabled) {           this._renderer.addClass(this._ngEl.nativeElement, klass);         } else {           this._renderer.removeClass(this._ngEl.nativeElement, klass);         }       });     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentRef, createNgModule, Directive, Injector, Input, NgModuleFactory, NgModuleRef, OnChanges, OnDestroy, SimpleChanges, Type, ViewContainerRef} from '@angular/core';   /**  * Instantiates a {@link Component} type and inserts its Host View into the current View.  * `NgComponentOutlet` provides a declarative approach for dynamic component creation.  *  * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and  * any existing component will be destroyed.  *  * @usageNotes  *  * ### Fine tune control  *  * You can control the component creation process by using the following optional attributes:  *  * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for  * the Component. Defaults to the injector of the current view container.  *  * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content  * section of the component, if it exists.  *  * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another  * module dynamically, then loading a component from that module.  *  * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional  * NgModule factory to allow loading another module dynamically, then loading a component from that  * module. Use `ngComponentOutletNgModule` instead.  *  * ### Syntax  *  * Simple  * ```  * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>  * ```  *  * Customized injector/content  * ```  * <ng-container *ngComponentOutlet=\"componentTypeExpression;  *                                   injector: injectorExpression;  *                                   content: contentNodesExpression;\">  * </ng-container>  * ```  *  * Customized NgModule reference  * ```  * <ng-container *ngComponentOutlet=\"componentTypeExpression;  *                                   ngModule: ngModuleClass;\">  * </ng-container>  * ```  *  * ### A simple example  *  * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}  *  * A more complete example with additional options:  *  * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}  *  * @publicApi  * @ngModule CommonModule  */ @Directive({   selector: '[ngComponentOutlet]',   standalone: true, }) export class NgComponentOutlet implements OnChanges, OnDestroy {   @Input() ngComponentOutlet: Type<any>|null = null;    @Input() ngComponentOutletInjector?: Injector;   @Input() ngComponentOutletContent?: any[][];    @Input() ngComponentOutletNgModule?: Type<any>;   /**    * @deprecated This input is deprecated, use `ngComponentOutletNgModule` instead.    */   @Input() ngComponentOutletNgModuleFactory?: NgModuleFactory<any>;    private _componentRef: ComponentRef<any>|undefined;   private _moduleRef: NgModuleRef<any>|undefined;    constructor(private _viewContainerRef: ViewContainerRef) {}    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     const {       _viewContainerRef: viewContainerRef,       ngComponentOutletNgModule: ngModule,       ngComponentOutletNgModuleFactory: ngModuleFactory,     } = this;     viewContainerRef.clear();     this._componentRef = undefined;      if (this.ngComponentOutlet) {       const injector = this.ngComponentOutletInjector || viewContainerRef.parentInjector;        if (changes['ngComponentOutletNgModule'] || changes['ngComponentOutletNgModuleFactory']) {         if (this._moduleRef) this._moduleRef.destroy();          if (ngModule) {           this._moduleRef = createNgModule(ngModule, getParentInjector(injector));         } else if (ngModuleFactory) {           this._moduleRef = ngModuleFactory.create(getParentInjector(injector));         } else {           this._moduleRef = undefined;         }       }        this._componentRef = viewContainerRef.createComponent(this.ngComponentOutlet, {         index: viewContainerRef.length,         injector,         ngModuleRef: this._moduleRef,         projectableNodes: this.ngComponentOutletContent,       });     }   }    /** @nodoc */   ngOnDestroy() {     if (this._moduleRef) this._moduleRef.destroy();   } }  // Helper function that returns an Injector instance of a parent NgModule. function getParentInjector(injector: Injector): Injector {   const parentNgModule = injector.get(NgModuleRef);   return parentNgModule.injector; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, DoCheck, EmbeddedViewRef, Input, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, NgIterable, TemplateRef, TrackByFunction, ViewContainerRef, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * @publicApi  */ export class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {   constructor(public $implicit: T, public ngForOf: U, public index: number, public count: number) {}    get first(): boolean {     return this.index === 0;   }    get last(): boolean {     return this.index === this.count - 1;   }    get even(): boolean {     return this.index % 2 === 0;   }    get odd(): boolean {     return !this.even;   } }  /**  * A [structural directive](guide/structural-directives) that renders  * a template for each item in a collection.  * The directive is placed on an element, which becomes the parent  * of the cloned templates.  *  * The `ngForOf` directive is generally used in the  * [shorthand form](guide/structural-directives#asterisk) `*ngFor`.  * In this form, the template to be rendered for each iteration is the content  * of an anchor element containing the directive.  *  * The following example shows the shorthand syntax with some options,  * contained in an `<li>` element.  *  * ```  * <li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>  * ```  *  * The shorthand form expands into a long form that uses the `ngForOf` selector  * on an `<ng-template>` element.  * The content of the `<ng-template>` element is the `<li>` element that held the  * short-form directive.  *  * Here is the expanded version of the short-form example.  *  * ```  * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">  *   <li>...</li>  * </ng-template>  * ```  *  * Angular automatically expands the shorthand syntax as it compiles the template.  * The context for each embedded view is logically merged to the current component  * context according to its lexical position.  *  * When using the shorthand syntax, Angular allows only [one structural directive  * on an element](guide/structural-directives#one-per-element).  * If you want to iterate conditionally, for example,  * put the `*ngIf` on a container element that wraps the `*ngFor` element.  * For further discussion, see  * [Structural Directives](guide/structural-directives#one-per-element).  *  * @usageNotes  *  * ### Local variables  *  * `NgForOf` provides exported values that can be aliased to local variables.  * For example:  *  *  ```  * <li *ngFor=\"let user of users; index as i; first as isFirst\">  *    {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>  * </li>  * ```  *  * The following exported values can be aliased to local variables:  *  * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).  * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is  * more complex then a property access, for example when using the async pipe (`userStreams |  * async`).  * - `index: number`: The index of the current item in the iterable.  * - `count: number`: The length of the iterable.  * - `first: boolean`: True when the item is the first item in the iterable.  * - `last: boolean`: True when the item is the last item in the iterable.  * - `even: boolean`: True when the item has an even index in the iterable.  * - `odd: boolean`: True when the item has an odd index in the iterable.  *  * ### Change propagation  *  * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:  *  * * When an item is added, a new instance of the template is added to the DOM.  * * When an item is removed, its template instance is removed from the DOM.  * * When items are reordered, their respective templates are reordered in the DOM.  *  * Angular uses object identity to track insertions and deletions within the iterator and reproduce  * those changes in the DOM. This has important implications for animations and any stateful  * controls that are present, such as `<input>` elements that accept user input. Inserted rows can  * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state  * such as user input.  * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).  *  * The identities of elements in the iterator can change while the data does not.  * This can happen, for example, if the iterator is produced from an RPC to the server, and that  * RPC is re-run. Even if the data hasn't changed, the second response produces objects with  * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old  * elements were deleted and all new elements inserted).  *  * To avoid this expensive operation, you can customize the default tracking algorithm.  * by supplying the `trackBy` option to `NgForOf`.  * `trackBy` takes a function that has two arguments: `index` and `item`.  * If `trackBy` is given, Angular tracks changes by the return value of the function.  *  * @see [Structural Directives](guide/structural-directives)  * @ngModule CommonModule  * @publicApi  */ @Directive({   selector: '[ngFor][ngForOf]',   standalone: true, }) export class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {   /**    * The value of the iterable expression, which can be used as a    * [template input variable](guide/structural-directives#shorthand).    */   @Input()   set ngForOf(ngForOf: U&NgIterable<T>|undefined|null) {     this._ngForOf = ngForOf;     this._ngForOfDirty = true;   }   /**    * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.    *    * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object    * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)    * as the key.    *    * `NgForOf` uses the computed key to associate items in an iterable with DOM elements    * it produces for these items.    *    * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an    * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a    * primary key), and this iterable could be updated with new object instances that still    * represent the same underlying entity (for example, when data is re-fetched from the server,    * and the iterable is recreated and re-rendered, but most of the data is still the same).    *    * @see `TrackByFunction`    */   @Input()   set ngForTrackBy(fn: TrackByFunction<T>) {     if (NG_DEV_MODE && fn != null && typeof fn !== 'function') {       console.warn(           `trackBy must be a function, but received ${JSON.stringify(fn)}. ` +           `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);     }     this._trackByFn = fn;   }    get ngForTrackBy(): TrackByFunction<T> {     return this._trackByFn;   }    private _ngForOf: U|undefined|null = null;   private _ngForOfDirty: boolean = true;   private _differ: IterableDiffer<T>|null = null;   // TODO(issue/24571): remove '!'   // waiting for microsoft/typescript#43662 to allow the return type `TrackByFunction|undefined` for   // the getter   private _trackByFn!: TrackByFunction<T>;    constructor(       private _viewContainer: ViewContainerRef,       private _template: TemplateRef<NgForOfContext<T, U>>, private _differs: IterableDiffers) {}    /**    * A reference to the template that is stamped out for each item in the iterable.    * @see [template reference variable](guide/template-reference-variables)    */   @Input()   set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>) {     // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1     // The current type is too restrictive; a template that just uses index, for example,     // should be acceptable.     if (value) {       this._template = value;     }   }    /**    * Applies the changes when needed.    * @nodoc    */   ngDoCheck(): void {     if (this._ngForOfDirty) {       this._ngForOfDirty = false;       // React on ngForOf changes only once all inputs have been initialized       const value = this._ngForOf;       if (!this._differ && value) {         if (NG_DEV_MODE) {           try {             // CAUTION: this logic is duplicated for production mode below, as the try-catch             // is only present in development builds.             this._differ = this._differs.find(value).create(this.ngForTrackBy);           } catch {             let errorMessage = `Cannot find a differ supporting object '${value}' of type '` +                 `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;             if (typeof value === 'object') {               errorMessage += ' Did you mean to use the keyvalue pipe?';             }             throw new RuntimeError(RuntimeErrorCode.NG_FOR_MISSING_DIFFER, errorMessage);           }         } else {           // CAUTION: this logic is duplicated for development mode above, as the try-catch           // is only present in development builds.           this._differ = this._differs.find(value).create(this.ngForTrackBy);         }       }     }     if (this._differ) {       const changes = this._differ.diff(this._ngForOf);       if (changes) this._applyChanges(changes);     }   }    private _applyChanges(changes: IterableChanges<T>) {     const viewContainer = this._viewContainer;     changes.forEachOperation(         (item: IterableChangeRecord<T>, adjustedPreviousIndex: number|null,          currentIndex: number|null) => {           if (item.previousIndex == null) {             // NgForOf is never \"null\" or \"undefined\" here because the differ detected             // that a new item needs to be inserted from the iterable. This implies that             // there is an iterable value for \"_ngForOf\".             viewContainer.createEmbeddedView(                 this._template, new NgForOfContext<T, U>(item.item, this._ngForOf!, -1, -1),                 currentIndex === null ? undefined : currentIndex);           } else if (currentIndex == null) {             viewContainer.remove(                 adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);           } else if (adjustedPreviousIndex !== null) {             const view = viewContainer.get(adjustedPreviousIndex)!;             viewContainer.move(view, currentIndex);             applyViewChange(view as EmbeddedViewRef<NgForOfContext<T, U>>, item);           }         });      for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {       const viewRef = <EmbeddedViewRef<NgForOfContext<T, U>>>viewContainer.get(i);       const context = viewRef.context;       context.index = i;       context.count = ilen;       context.ngForOf = this._ngForOf!;     }      changes.forEachIdentityChange((record: any) => {       const viewRef = <EmbeddedViewRef<NgForOfContext<T, U>>>viewContainer.get(record.currentIndex);       applyViewChange(viewRef, record);     });   }    /**    * Asserts the correct type of the context for the template that `NgForOf` will render.    *    * The presence of this method is a signal to the Ivy template type-check compiler that the    * `NgForOf` structural directive renders its template with a specific context type.    */   static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any):       ctx is NgForOfContext<T, U> {     return true;   } }  // Also export the `NgForOf` class as `NgFor` to improve the DX for // cases when the directive is used as standalone, so the class name // matches the CSS selector (*ngFor). export {NgForOf as NgFor};  function applyViewChange<T>(     view: EmbeddedViewRef<NgForOfContext<T>>, record: IterableChangeRecord<T>) {   view.context.$implicit = record.item; }  function getTypeName(type: any): string {   return type['name'] || typeof type; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstringify as stringify} from '@angular/core';   /**  * A structural directive that conditionally includes a template based on the value of  * an expression coerced to Boolean.  * When the expression evaluates to true, Angular renders the template  * provided in a `then` clause, and when  false or null,  * Angular renders the template provided in an optional `else` clause. The default  * template for the `else` clause is blank.  *  * A [shorthand form](guide/structural-directives#asterisk) of the directive,  * `*ngIf=\"condition\"`, is generally used, provided  * as an attribute of the anchor element for the inserted template.  * Angular expands this into a more explicit version, in which the anchor element  * is contained in an `<ng-template>` element.  *  * Simple form with shorthand syntax:  *  * ```  * <div *ngIf=\"condition\">Content to render when condition is true.</div>  * ```  *  * Simple form with expanded syntax:  *  * ```  * <ng-template [ngIf]=\"condition\"><div>Content to render when condition is  * true.</div></ng-template>  * ```  *  * Form with an \"else\" block:  *  * ```  * <div *ngIf=\"condition; else elseBlock\">Content to render when condition is true.</div>  * <ng-template #elseBlock>Content to render when condition is false.</ng-template>  * ```  *  * Shorthand form with \"then\" and \"else\" blocks:  *  * ```  * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>  * <ng-template #thenBlock>Content to render when condition is true.</ng-template>  * <ng-template #elseBlock>Content to render when condition is false.</ng-template>  * ```  *  * Form with storing the value locally:  *  * ```  * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>  * <ng-template #elseBlock>Content to render when value is null.</ng-template>  * ```  *  * @usageNotes  *  * The `*ngIf` directive is most commonly used to conditionally show an inline template,  * as seen in the following  example.  * The default `else` template is blank.  *  * {@example common/ngIf/ts/module.ts region='NgIfSimple'}  *  * ### Showing an alternative template using `else`  *  * To display a template when `expression` evaluates to false, use an `else` template  * binding as shown in the following example.  * The `else` binding points to an `<ng-template>`  element labeled `#elseBlock`.  * The template can be defined anywhere in the component view, but is typically placed right after  * `ngIf` for readability.  *  * {@example common/ngIf/ts/module.ts region='NgIfElse'}  *  * ### Using an external `then` template  *  * In the previous example, the then-clause template is specified inline, as the content of the  * tag that contains the `ngIf` directive. You can also specify a template that is defined  * externally, by referencing a labeled `<ng-template>` element. When you do this, you can  * change which template to use at runtime, as shown in the following example.  *  * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}  *  * ### Storing a conditional result in a variable  *  * You might want to show a set of properties from the same object. If you are waiting  * for asynchronous data, the object can be undefined.  * In this case, you can use `ngIf` and store the result of the condition in a local  * variable as shown in the following example.  *  * {@example common/ngIf/ts/module.ts region='NgIfAs'}  *  * This code uses only one `AsyncPipe`, so only one subscription is created.  * The conditional statement stores the result of `userStream|async` in the local variable `user`.  * You can then bind the local `user` repeatedly.  *  * The conditional displays the data only if `userStream` returns a value,  * so you don't need to use the  * safe-navigation-operator (`?.`)  * to guard against null values when accessing properties.  * You can display an alternative template while waiting for the data.  *  * ### Shorthand syntax  *  * The shorthand syntax `*ngIf` expands into two separate template specifications  * for the \"then\" and \"else\" clauses. For example, consider the following shorthand statement,  * that is meant to show a loading page while waiting for data to be loaded.  *  * ```  * <div class=\"hero-list\" *ngIf=\"heroes else loading\">  *  ...  * </div>  *  * <ng-template #loading>  *  <div>Loading...</div>  * </ng-template>  * ```  *  * You can see that the \"else\" clause references the `<ng-template>`  * with the `#loading` label, and the template for the \"then\" clause  * is provided as the content of the anchor element.  *  * However, when Angular expands the shorthand syntax, it creates  * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.  * The anchor element containing the template for the \"then\" clause becomes  * the content of this unlabeled `<ng-template>` tag.  *  * ```  * <ng-template [ngIf]=\"heroes\" [ngIfElse]=\"loading\">  *  <div class=\"hero-list\">  *   ...  *  </div>  * </ng-template>  *  * <ng-template #loading>  *  <div>Loading...</div>  * </ng-template>  * ```  *  * The presence of the implicit template object has implications for the nesting of  * structural directives. For more on this subject, see  * [Structural Directives](guide/structural-directives#one-per-element).  *  * @ngModule CommonModule  * @publicApi  */ @Directive({   selector: '[ngIf]',   standalone: true, }) export class NgIf<T = unknown> {   private _context: NgIfContext<T> = new NgIfContext<T>();   private _thenTemplateRef: TemplateRef<NgIfContext<T>>|null = null;   private _elseTemplateRef: TemplateRef<NgIfContext<T>>|null = null;   private _thenViewRef: EmbeddedViewRef<NgIfContext<T>>|null = null;   private _elseViewRef: EmbeddedViewRef<NgIfContext<T>>|null = null;    constructor(private _viewContainer: ViewContainerRef, templateRef: TemplateRef<NgIfContext<T>>) {     this._thenTemplateRef = templateRef;   }    /**    * The Boolean expression to evaluate as the condition for showing a template.    */   @Input()   set ngIf(condition: T) {     this._context.$implicit = this._context.ngIf = condition;     this._updateView();   }    /**    * A template to show if the condition expression evaluates to true.    */   @Input()   set ngIfThen(templateRef: TemplateRef<NgIfContext<T>>|null) {     assertTemplate('ngIfThen', templateRef);     this._thenTemplateRef = templateRef;     this._thenViewRef = null;  // clear previous view if any.     this._updateView();   }    /**    * A template to show if the condition expression evaluates to false.    */   @Input()   set ngIfElse(templateRef: TemplateRef<NgIfContext<T>>|null) {     assertTemplate('ngIfElse', templateRef);     this._elseTemplateRef = templateRef;     this._elseViewRef = null;  // clear previous view if any.     this._updateView();   }    private _updateView() {     if (this._context.$implicit) {       if (!this._thenViewRef) {         this._viewContainer.clear();         this._elseViewRef = null;         if (this._thenTemplateRef) {           this._thenViewRef =               this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);         }       }     } else {       if (!this._elseViewRef) {         this._viewContainer.clear();         this._thenViewRef = null;         if (this._elseTemplateRef) {           this._elseViewRef =               this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);         }       }     }   }    /** @internal */   public static ngIfUseIfTypeGuard: void;    /**    * Assert the correct type of the expression bound to the `ngIf` input within the template.    *    * The presence of this static field is a signal to the Ivy template type check compiler that    * when the `NgIf` structural directive renders its template, the type of the expression bound    * to `ngIf` should be narrowed in some way. For `NgIf`, the binding expression itself is used to    * narrow its type, which allows the strictNullChecks feature of TypeScript to work with `NgIf`.    */   static ngTemplateGuard_ngIf: 'binding';    /**    * Asserts the correct type of the context for the template that `NgIf` will render.    *    * The presence of this method is a signal to the Ivy template type-check compiler that the    * `NgIf` structural directive renders its template with a specific context type.    */   static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any):       ctx is NgIfContext<Exclude<T, false|0|''|null|undefined>> {     return true;   } }  /**  * @publicApi  */ export class NgIfContext<T = unknown> {   public $implicit: T = null!;   public ngIf: T = null!; }  function assertTemplate(property: string, templateRef: TemplateRef<any>|null): void {   const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);   if (!isTemplateRefOrNull) {     throw new Error(`${property} must be a TemplateRef, but received '${stringify(templateRef)}'.`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, DoCheck, Host, Input, Optional, TemplateRef, ViewContainerRef, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  export class SwitchView {   private _created = false;    constructor(       private _viewContainerRef: ViewContainerRef, private _templateRef: TemplateRef<Object>) {}    create(): void {     this._created = true;     this._viewContainerRef.createEmbeddedView(this._templateRef);   }    destroy(): void {     this._created = false;     this._viewContainerRef.clear();   }    enforceState(created: boolean) {     if (created && !this._created) {       this.create();     } else if (!created && this._created) {       this.destroy();     }   } }  /**  * @ngModule CommonModule  *  * @description  * The `[ngSwitch]` directive on a container specifies an expression to match against.  * The expressions to match are provided by `ngSwitchCase` directives on views within the container.  * - Every view that matches is rendered.  * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.  * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`  * or `ngSwitchDefault` directive are preserved at the location.  *  * @usageNotes  * Define a container element for the directive, and specify the switch expression  * to match against as an attribute:  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  * ```  *  * Within the container, `*ngSwitchCase` statements specify the match expressions  * as attributes. Include `*ngSwitchDefault` as the final case.  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *    <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  * ...  *    <some-element *ngSwitchDefault>...</some-element>  * </container-element>  * ```  *  * ### Usage Examples  *  * The following example shows how to use more than one case to display the same view:  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *   <!-- the same view can be shown in more than one case -->  *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  *   <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>  *   <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>  *   <!--default case when there are no matches -->  *   <some-element *ngSwitchDefault>...</some-element>  * </container-element>  * ```  *  * The following example shows how cases can be nested:  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *       <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  *       <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>  *       <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>  *       <ng-container *ngSwitchCase=\"match_expression_3\">  *         <!-- use a ng-container to group multiple root nodes -->  *         <inner-element></inner-element>  *         <inner-other-element></inner-other-element>  *       </ng-container>  *       <some-element *ngSwitchDefault>...</some-element>  *     </container-element>  * ```  *  * @publicApi  * @see `NgSwitchCase`  * @see `NgSwitchDefault`  * @see [Structural Directives](guide/structural-directives)  *  */ @Directive({   selector: '[ngSwitch]',   standalone: true, }) export class NgSwitch {   private _defaultViews: SwitchView[] = [];   private _defaultUsed = false;   private _caseCount = 0;   private _lastCaseCheckIndex = 0;   private _lastCasesMatched = false;   private _ngSwitch: any;    @Input()   set ngSwitch(newValue: any) {     this._ngSwitch = newValue;     if (this._caseCount === 0) {       this._updateDefaultCases(true);     }   }    /** @internal */   _addCase(): number {     return this._caseCount++;   }    /** @internal */   _addDefault(view: SwitchView) {     this._defaultViews.push(view);   }    /** @internal */   _matchCase(value: any): boolean {     const matched = value == this._ngSwitch;     this._lastCasesMatched = this._lastCasesMatched || matched;     this._lastCaseCheckIndex++;     if (this._lastCaseCheckIndex === this._caseCount) {       this._updateDefaultCases(!this._lastCasesMatched);       this._lastCaseCheckIndex = 0;       this._lastCasesMatched = false;     }     return matched;   }    private _updateDefaultCases(useDefault: boolean) {     if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {       this._defaultUsed = useDefault;       for (const defaultView of this._defaultViews) {         defaultView.enforceState(useDefault);       }     }   } }  /**  * @ngModule CommonModule  *  * @description  * Provides a switch case expression to match against an enclosing `ngSwitch` expression.  * When the expressions match, the given `NgSwitchCase` template is rendered.  * If multiple match expressions match the switch expression value, all of them are displayed.  *  * @usageNotes  *  * Within a switch container, `*ngSwitchCase` statements specify the match expressions  * as attributes. Include `*ngSwitchDefault` as the final case.  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  *   ...  *   <some-element *ngSwitchDefault>...</some-element>  * </container-element>  * ```  *  * Each switch-case statement contains an in-line HTML template or template reference  * that defines the subtree to be selected if the value of the match expression  * matches the value of the switch expression.  *  * Unlike JavaScript, which uses strict equality, Angular uses loose equality.  * This means that the empty string, `\"\"` matches 0.  *  * @publicApi  * @see `NgSwitch`  * @see `NgSwitchDefault`  *  */ @Directive({   selector: '[ngSwitchCase]',   standalone: true, }) export class NgSwitchCase implements DoCheck {   private _view: SwitchView;   /**    * Stores the HTML template to be selected on match.    */   @Input() ngSwitchCase: any;    constructor(       viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>,       @Optional() @Host() private ngSwitch: NgSwitch) {     if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {       throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');     }      ngSwitch._addCase();     this._view = new SwitchView(viewContainer, templateRef);   }    /**    * Performs case matching. For internal use only.    * @nodoc    */   ngDoCheck() {     this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));   } }  /**  * @ngModule CommonModule  *  * @description  *  * Creates a view that is rendered when no `NgSwitchCase` expressions  * match the `NgSwitch` expression.  * This statement should be the final case in an `NgSwitch`.  *  * @publicApi  * @see `NgSwitch`  * @see `NgSwitchCase`  *  */ @Directive({   selector: '[ngSwitchDefault]',   standalone: true, }) export class NgSwitchDefault {   constructor(       viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>,       @Optional() @Host() ngSwitch: NgSwitch) {     if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {       throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');     }      ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));   } }  function throwNgSwitchProviderNotFoundError(attrName: string, directiveName: string): never {   throw new RuntimeError(       RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND,       `An element with the \"${attrName}\" attribute ` +           `(matching the \"${               directiveName}\" directive) must be located inside an element with the \"ngSwitch\" attribute ` +           `(matching \"NgSwitch\" directive)`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Attribute, Directive, Host, Input, TemplateRef, ViewContainerRef} from '@angular/core';  import {getPluralCategory, NgLocalization} from '../i18n/localization';  import {SwitchView} from './ng_switch';  /**  * @ngModule CommonModule  *  * @usageNotes  * ```  * <some-element [ngPlural]=\"value\">  *   <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>  *   <ng-template ngPluralCase=\"=1\">there is one</ng-template>  *   <ng-template ngPluralCase=\"few\">there are a few</ng-template>  * </some-element>  * ```  *  * @description  *  * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.  *  * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees  * that match the switch expression's pluralization category.  *  * To use this directive you must provide a container element that sets the `[ngPlural]` attribute  * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their  * expression:  * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value  *   matches the switch expression exactly,  * - otherwise, the view will be treated as a \"category match\", and will only display if exact  *   value matches aren't found and the value maps to its category for the defined locale.  *  * See http://cldr.unicode.org/index/cldr-spec/plural-rules  *  * @publicApi  */ @Directive({   selector: '[ngPlural]',   standalone: true, }) export class NgPlural {   private _activeView?: SwitchView;   private _caseViews: {[k: string]: SwitchView} = {};    constructor(private _localization: NgLocalization) {}    @Input()   set ngPlural(value: number) {     this._updateView(value);   }    addCase(value: string, switchView: SwitchView): void {     this._caseViews[value] = switchView;   }    private _updateView(switchValue: number): void {     this._clearViews();      const cases = Object.keys(this._caseViews);     const key = getPluralCategory(switchValue, cases, this._localization);     this._activateView(this._caseViews[key]);   }    private _clearViews() {     if (this._activeView) this._activeView.destroy();   }    private _activateView(view: SwitchView) {     if (view) {       this._activeView = view;       this._activeView.create();     }   } }  /**  * @ngModule CommonModule  *  * @description  *  * Creates a view that will be added/removed from the parent {@link NgPlural} when the  * given expression matches the plural expression according to CLDR rules.  *  * @usageNotes  * ```  * <some-element [ngPlural]=\"value\">  *   <ng-template ngPluralCase=\"=0\">...</ng-template>  *   <ng-template ngPluralCase=\"other\">...</ng-template>  * </some-element>  *```  *  * See {@link NgPlural} for more details and example.  *  * @publicApi  */ @Directive({   selector: '[ngPluralCase]',   standalone: true, }) export class NgPluralCase {   constructor(       @Attribute('ngPluralCase') public value: string, template: TemplateRef<Object>,       viewContainer: ViewContainerRef, @Host() ngPlural: NgPlural) {     const isANumber: boolean = !isNaN(Number(value));     ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {Directive, DoCheck, ElementRef, Input, KeyValueChanges, KeyValueDiffer, KeyValueDiffers, Renderer2, RendererStyleFlags2} from '@angular/core';   /**  * @ngModule CommonModule  *  * @usageNotes  *  * Set the font of the containing element to the result of an expression.  *  * ```  * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>  * ```  *  * Set the width of the containing element to a pixel value returned by an expression.  *  * ```  * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>  * ```  *  * Set a collection of style values using an expression that returns key-value pairs.  *  * ```  * <some-element [ngStyle]=\"objExp\">...</some-element>  * ```  *  * @description  *  * An attribute directive that updates styles for the containing HTML element.  * Sets one or more style properties, specified as colon-separated key-value pairs.  * The key is a style name, with an optional `.<unit>` suffix  * (such as 'top.px', 'font-style.em').  * The value is an expression to be evaluated.  * The resulting non-null value, expressed in the given unit,  * is assigned to the given style property.  * If the result of evaluation is null, the corresponding style is removed.  *  * @publicApi  */ @Directive({   selector: '[ngStyle]',   standalone: true, }) export class NgStyle implements DoCheck {   private _ngStyle: {[key: string]: string}|null|undefined = null;   private _differ: KeyValueDiffer<string, string|number>|null = null;    constructor(       private _ngEl: ElementRef, private _differs: KeyValueDiffers, private _renderer: Renderer2) {}    @Input('ngStyle')   set ngStyle(values: {[klass: string]: any}|null|undefined) {     this._ngStyle = values;     if (!this._differ && values) {       this._differ = this._differs.find(values).create();     }   }    ngDoCheck() {     if (this._differ) {       const changes = this._differ.diff(this._ngStyle!);       if (changes) {         this._applyChanges(changes);       }     }   }    private _setStyle(nameAndUnit: string, value: string|number|null|undefined): void {     const [name, unit] = nameAndUnit.split('.');     const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase as number;      if (value != null) {       this._renderer.setStyle(           this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);     } else {       this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);     }   }    private _applyChanges(changes: KeyValueChanges<string, string|number>): void {     changes.forEachRemovedItem((record) => this._setStyle(record.key, null));     changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));     changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EmbeddedViewRef, Injector, Input, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef} from '@angular/core';  /**  * @ngModule CommonModule  *  * @description  *  * Inserts an embedded view from a prepared `TemplateRef`.  *  * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.  * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding  * by the local template `let` declarations.  *  * @usageNotes  * ```  * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>  * ```  *  * Using the key `$implicit` in the context object will set its value as default.  *  * ### Example  *  * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}  *  * @publicApi  */ @Directive({   selector: '[ngTemplateOutlet]',   standalone: true, }) export class NgTemplateOutlet implements OnChanges {   private _viewRef: EmbeddedViewRef<any>|null = null;    /**    * A context object to attach to the {@link EmbeddedViewRef}. This should be an    * object, the object's keys will be available for binding by the local template `let`    * declarations.    * Using the key `$implicit` in the context object will set its value as default.    */   @Input() public ngTemplateOutletContext: Object|null = null;    /**    * A string defining the template reference and optionally the context object for the template.    */   @Input() public ngTemplateOutlet: TemplateRef<any>|null = null;    /** Injector to be used within the embedded view. */   @Input() public ngTemplateOutletInjector: Injector|null = null;    constructor(private _viewContainerRef: ViewContainerRef) {}    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (changes['ngTemplateOutlet'] || changes['ngTemplateOutletInjector']) {       const viewContainerRef = this._viewContainerRef;        if (this._viewRef) {         viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));       }        if (this.ngTemplateOutlet) {         const {           ngTemplateOutlet: template,           ngTemplateOutletContext: context,           ngTemplateOutletInjector: injector         } = this;         this._viewRef = viewContainerRef.createEmbeddedView(             template, context, injector ? {injector} : undefined);       } else {         this._viewRef = null;       }     } else if (         this._viewRef && changes['ngTemplateOutletContext'] && this.ngTemplateOutletContext) {       this._viewRef.context = this.ngTemplateOutletContext;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Provider} from '@angular/core';  import {NgClass} from './ng_class'; import {NgComponentOutlet} from './ng_component_outlet'; import {NgFor, NgForOf, NgForOfContext} from './ng_for_of'; import {NgIf, NgIfContext} from './ng_if'; import {NgPlural, NgPluralCase} from './ng_plural'; import {NgStyle} from './ng_style'; import {NgSwitch, NgSwitchCase, NgSwitchDefault} from './ng_switch'; import {NgTemplateOutlet} from './ng_template_outlet';  export {   NgClass,   NgComponentOutlet,   NgFor,   NgForOf,   NgForOfContext,   NgIf,   NgIfContext,   NgPlural,   NgPluralCase,   NgStyle,   NgSwitch,   NgSwitchCase,   NgSwitchDefault,   NgTemplateOutlet, };    /**  * A collection of Angular directives that are likely to be used in each and every Angular  * application.  */ export const COMMON_DIRECTIVES: Provider[] = [   NgClass,   NgComponentOutlet,   NgForOf,   NgIf,   NgTemplateOutlet,   NgStyle,   NgSwitch,   NgSwitchCase,   NgSwitchDefault,   NgPlural,   NgPluralCase, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Type, ɵRuntimeError as RuntimeError, ɵstringify as stringify} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  export function invalidPipeArgumentError(type: Type<any>, value: Object) {   return new RuntimeError(       RuntimeErrorCode.INVALID_PIPE_ARGUMENT,       ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${stringify(type)}'`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ChangeDetectorRef, EventEmitter, OnDestroy, Pipe, PipeTransform, ɵisPromise, ɵisSubscribable} from '@angular/core'; import {Observable, Subscribable, Unsubscribable} from 'rxjs';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  interface SubscriptionStrategy {   createSubscription(async: Subscribable<any>|Promise<any>, updateLatestValue: any): Unsubscribable       |Promise<any>;   dispose(subscription: Unsubscribable|Promise<any>): void; }  class SubscribableStrategy implements SubscriptionStrategy {   createSubscription(async: Subscribable<any>, updateLatestValue: any): Unsubscribable {     return async.subscribe({       next: updateLatestValue,       error: (e: any) => {         throw e;       }     });   }    dispose(subscription: Unsubscribable): void {     subscription.unsubscribe();   } }  class PromiseStrategy implements SubscriptionStrategy {   createSubscription(async: Promise<any>, updateLatestValue: (v: any) => any): Promise<any> {     return async.then(updateLatestValue, e => {       throw e;     });   }    dispose(subscription: Promise<any>): void {} }  const _promiseStrategy = new PromiseStrategy(); const _subscribableStrategy = new SubscribableStrategy();  /**  * @ngModule CommonModule  * @description  *  * Unwraps a value from an asynchronous primitive.  *  * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has  * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for  * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid  * potential memory leaks. When the reference of the expression changes, the `async` pipe  * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.  *  * @usageNotes  *  * ### Examples  *  * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the  * promise.  *  * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}  *  * It's also possible to use `async` with Observables. The example below binds the `time` Observable  * to the view. The Observable continuously updates the view with the current time.  *  * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}  *  * @publicApi  */ @Pipe({   name: 'async',   pure: false,   standalone: true, }) export class AsyncPipe implements OnDestroy, PipeTransform {   private _ref: ChangeDetectorRef|null;   private _latestValue: any = null;    private _subscription: Unsubscribable|Promise<any>|null = null;   private _obj: Subscribable<any>|Promise<any>|EventEmitter<any>|null = null;   private _strategy: SubscriptionStrategy|null = null;    constructor(ref: ChangeDetectorRef) {     // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor     // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.     this._ref = ref;   }    ngOnDestroy(): void {     if (this._subscription) {       this._dispose();     }     // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate     // potential memory leaks in Observables that could otherwise cause the view data to     // be retained.     // https://github.com/angular/angular/issues/17624     this._ref = null;   }    // NOTE(@benlesh): Because Observable has deprecated a few call patterns for `subscribe`,   // TypeScript has a hard time matching Observable to Subscribable, for more information   // see https://github.com/microsoft/TypeScript/issues/43643    transform<T>(obj: Observable<T>|Subscribable<T>|Promise<T>): T|null;   transform<T>(obj: null|undefined): null;   transform<T>(obj: Observable<T>|Subscribable<T>|Promise<T>|null|undefined): T|null;   transform<T>(obj: Observable<T>|Subscribable<T>|Promise<T>|null|undefined): T|null {     if (!this._obj) {       if (obj) {         this._subscribe(obj);       }       return this._latestValue;     }      if (obj !== this._obj) {       this._dispose();       return this.transform(obj);     }      return this._latestValue;   }    private _subscribe(obj: Subscribable<any>|Promise<any>|EventEmitter<any>): void {     this._obj = obj;     this._strategy = this._selectStrategy(obj);     this._subscription = this._strategy.createSubscription(         obj, (value: Object) => this._updateLatestValue(obj, value));   }    private _selectStrategy(obj: Subscribable<any>|Promise<any>|                           EventEmitter<any>): SubscriptionStrategy {     if (ɵisPromise(obj)) {       return _promiseStrategy;     }      if (ɵisSubscribable(obj)) {       return _subscribableStrategy;     }      throw invalidPipeArgumentError(AsyncPipe, obj);   }    private _dispose(): void {     // Note: `dispose` is only called if a subscription has been initialized before, indicating     // that `this._strategy` is also available.     this._strategy!.dispose(this._subscription!);     this._latestValue = null;     this._subscription = null;     this._obj = null;   }    private _updateLatestValue(async: any, value: Object): void {     if (async === this._obj) {       this._latestValue = value;       // Note: `this._ref` is only cleared in `ngOnDestroy` so is known to be available when a       // value is being updated.       this._ref!.markForCheck();     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * Transforms text to all lower case.  *  * @see `UpperCasePipe`  * @see `TitleCasePipe`  * @usageNotes  *  * The following example defines a view that allows the user to enter  * text, and then uses the pipe to convert the input text to all lower case.  *  * <code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region='LowerUpperPipe'></code-example>  *  * @ngModule CommonModule  * @publicApi  */ @Pipe({   name: 'lowercase',   standalone: true, }) export class LowerCasePipe implements PipeTransform {   /**    * @param value The string to transform to lower case.    */   transform(value: string): string;   transform(value: null|undefined): null;   transform(value: string|null|undefined): string|null;   transform(value: string|null|undefined): string|null {     if (value == null) return null;     if (typeof value !== 'string') {       throw invalidPipeArgumentError(LowerCasePipe, value);     }     return value.toLowerCase();   } }  // // Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result // can be achieved by using /[0-9\\p{L}]\\S*/gu and also known as Unicode Property Escapes // (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no // transpilation of this functionality down to ES5 without external tool, the only solution is // to use already transpiled form. Example can be found here - // https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1 //  const unicodeWordMatch =     /(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0A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\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uA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DD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDC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DEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])\\S*/g;  /**  * Transforms text to title case.  * Capitalizes the first letter of each word and transforms the  * rest of the word to lower case.  * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.  *  * @see `LowerCasePipe`  * @see `UpperCasePipe`  *  * @usageNotes  * The following example shows the result of transforming various strings into title case.  *  * <code-example path=\"common/pipes/ts/titlecase_pipe.ts\" region='TitleCasePipe'></code-example>  *  * @ngModule CommonModule  * @publicApi  */ @Pipe({   name: 'titlecase',   standalone: true, }) export class TitleCasePipe implements PipeTransform {   /**    * @param value The string to transform to title case.    */   transform(value: string): string;   transform(value: null|undefined): null;   transform(value: string|null|undefined): string|null;   transform(value: string|null|undefined): string|null {     if (value == null) return null;     if (typeof value !== 'string') {       throw invalidPipeArgumentError(TitleCasePipe, value);     }      return value.replace(         unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase()));   } }  /**  * Transforms text to all upper case.  * @see `LowerCasePipe`  * @see `TitleCasePipe`  *  * @ngModule CommonModule  * @publicApi  */ @Pipe({   name: 'uppercase',   standalone: true, }) export class UpperCasePipe implements PipeTransform {   /**    * @param value The string to transform to upper case.    */   transform(value: string): string;   transform(value: null|undefined): null;   transform(value: string|null|undefined): string|null;   transform(value: string|null|undefined): string|null {     if (value == null) return null;     if (typeof value !== 'string') {       throw invalidPipeArgumentError(UpperCasePipe, value);     }     return value.toUpperCase();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * An interface that describes the date pipe configuration, which can be provided using the  * `DATE_PIPE_DEFAULT_OPTIONS` token.  *  * @see `DATE_PIPE_DEFAULT_OPTIONS`  *  * @publicApi  */ export interface DatePipeConfig {   dateFormat: string;   timezone: string; }  /**  * The default date format of Angular date pipe, which corresponds to the following format:  * `'MMM d,y'` (e.g. `Jun 15, 2015`)  */ export const DEFAULT_DATE_FORMAT = 'mediumDate'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, InjectionToken, LOCALE_ID, Optional, Pipe, PipeTransform} from '@angular/core';  import {formatDate} from '../i18n/format_date';  import {DatePipeConfig, DEFAULT_DATE_FORMAT} from './date_pipe_config'; import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).  * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.  *  * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe  */ export const DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken<string>('DATE_PIPE_DEFAULT_TIMEZONE');  /**  * DI token that allows to provide default configuration for the `DatePipe` instances in an  * application. The value is an object which can include the following fields:  * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`  * will use the 'mediumDate' as a value.  * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will  * use the end-user's local system timezone.  *  * @see `DatePipeConfig`  *  * @usageNotes  *  * Various date pipe default values can be overwritten by providing this token with  * the value that has this interface.  *  * For example:  *  * Override the default date format by providing a value using the token:  * ```typescript  * providers: [  *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}  * ]  * ```  *  * Override the default timezone by providing a value using the token:  * ```typescript  * providers: [  *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}  * ]  * ```  */ export const DATE_PIPE_DEFAULT_OPTIONS =     new InjectionToken<DatePipeConfig>('DATE_PIPE_DEFAULT_OPTIONS');  // clang-format off /**  * @ngModule CommonModule  * @description  *  * Formats a date value according to locale rules.  *  * `DatePipe` is executed only when it detects a pure change to the input value.  * A pure change is either a change to a primitive input value  * (such as `String`, `Number`, `Boolean`, or `Symbol`),  * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).  *  * Note that mutating a `Date` object does not cause the pipe to be rendered again.  * To ensure that the pipe is executed, you must create a new `Date` object.  *  * Only the `en-US` locale data comes with Angular. To localize dates  * in another language, you must import the corresponding locale data.  * See the [I18n guide](guide/i18n-common-format-data-locale) for more information.  *  * The time zone of the formatted value can be specified either by passing it in as the second  * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`  * injection token. The value that is passed in as the second parameter takes precedence over  * the one defined using the injection token.  *  * @see `formatDate()`  *  *  * @usageNotes  *  * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to  * reformat the date on every change-detection cycle, treat the date as an immutable object  * and change the reference when the pipe needs to run again.  *  * ### Pre-defined format options  *  * | Option        | Equivalent to                       | Examples (given in `en-US` locale)              |  * |---------------|-------------------------------------|-------------------------------------------------|  * | `'short'`     | `'M/d/yy, h:mm a'`                  | `6/15/15, 9:03 AM`                              |  * | `'medium'`    | `'MMM d, y, h:mm:ss a'`             | `Jun 15, 2015, 9:03:01 AM`                      |  * | `'long'`      | `'MMMM d, y, h:mm:ss a z'`          | `June 15, 2015 at 9:03:01 AM GMT+1`             |  * | `'full'`      | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |  * | `'shortDate'` | `'M/d/yy'`                          | `6/15/15`                                       |  * | `'mediumDate'`| `'MMM d, y'`                        | `Jun 15, 2015`                                  |  * | `'longDate'`  | `'MMMM d, y'`                       | `June 15, 2015`                                 |  * | `'fullDate'`  | `'EEEE, MMMM d, y'`                 | `Monday, June 15, 2015`                         |  * | `'shortTime'` | `'h:mm a'`                          | `9:03 AM`                                       |  * | `'mediumTime'`| `'h:mm:ss a'`                       | `9:03:01 AM`                                    |  * | `'longTime'`  | `'h:mm:ss a z'`                     | `9:03:01 AM GMT+1`                              |  * | `'fullTime'`  | `'h:mm:ss a zzzz'`                  | `9:03:01 AM GMT+01:00`                          |  *  * ### Custom format options  *  * You can construct a format string using symbols to specify the components  * of a date-time value, as described in the following table.  * Format details depend on the locale.  * Fields marked with (*) are only available in the extra data set for the given locale.  *  *  | Field type          | Format      | Description                                                   | Example Value                                              |  *  |-------------------- |-------------|---------------------------------------------------------------|------------------------------------------------------------|  *  | Era                 | G, GG & GGG | Abbreviated                                                   | AD                                                         |  *  |                     | GGGG        | Wide                                                          | Anno Domini                                                |  *  |                     | GGGGG       | Narrow                                                        | A                                                          |  *  | Year                | y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |  *  |                     | yy          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |  *  |                     | yyy         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |  *  |                     | yyyy        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |  *  | Week-numbering year | Y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |  *  |                     | YY          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |  *  |                     | YYY         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |  *  |                     | YYYY        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |  *  | Month               | M           | Numeric: 1 digit                                              | 9, 12                                                      |  *  |                     | MM          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |  *  |                     | MMM         | Abbreviated                                                   | Sep                                                        |  *  |                     | MMMM        | Wide                                                          | September                                                  |  *  |                     | MMMMM       | Narrow                                                        | S                                                          |  *  | Month standalone    | L           | Numeric: 1 digit                                              | 9, 12                                                      |  *  |                     | LL          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |  *  |                     | LLL         | Abbreviated                                                   | Sep                                                        |  *  |                     | LLLL        | Wide                                                          | September                                                  |  *  |                     | LLLLL       | Narrow                                                        | S                                                          |  *  | Week of year        | w           | Numeric: minimum digits                                       | 1... 53                                                    |  *  |                     | ww          | Numeric: 2 digits + zero padded                               | 01... 53                                                   |  *  | Week of month       | W           | Numeric: 1 digit                                              | 1... 5                                                     |  *  | Day of month        | d           | Numeric: minimum digits                                       | 1                                                          |  *  |                     | dd          | Numeric: 2 digits + zero padded                               | 01                                                         |  *  | Week day            | E, EE & EEE | Abbreviated                                                   | Tue                                                        |  *  |                     | EEEE        | Wide                                                          | Tuesday                                                    |  *  |                     | EEEEE       | Narrow                                                        | T                                                          |  *  |                     | EEEEEE      | Short                                                         | Tu                                                         |  *  | Week day standalone | c, cc       | Numeric: 1 digit                                              | 2                                                          |  *  |                     | ccc         | Abbreviated                                                   | Tue                                                        |  *  |                     | cccc        | Wide                                                          | Tuesday                                                    |  *  |                     | ccccc       | Narrow                                                        | T                                                          |  *  |                     | cccccc      | Short                                                         | Tu                                                         |  *  | Period              | a, aa & aaa | Abbreviated                                                   | am/pm or AM/PM                                             |  *  |                     | aaaa        | Wide (fallback to `a` when missing)                           | ante meridiem/post meridiem                                |  *  |                     | aaaaa       | Narrow                                                        | a/p                                                        |  *  | Period*             | B, BB & BBB | Abbreviated                                                   | mid.                                                       |  *  |                     | BBBB        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |  *  |                     | BBBBB       | Narrow                                                        | md                                                         |  *  | Period standalone*  | b, bb & bbb | Abbreviated                                                   | mid.                                                       |  *  |                     | bbbb        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |  *  |                     | bbbbb       | Narrow                                                        | md                                                         |  *  | Hour 1-12           | h           | Numeric: minimum digits                                       | 1, 12                                                      |  *  |                     | hh          | Numeric: 2 digits + zero padded                               | 01, 12                                                     |  *  | Hour 0-23           | H           | Numeric: minimum digits                                       | 0, 23                                                      |  *  |                     | HH          | Numeric: 2 digits + zero padded                               | 00, 23                                                     |  *  | Minute              | m           | Numeric: minimum digits                                       | 8, 59                                                      |  *  |                     | mm          | Numeric: 2 digits + zero padded                               | 08, 59                                                     |  *  | Second              | s           | Numeric: minimum digits                                       | 0... 59                                                    |  *  |                     | ss          | Numeric: 2 digits + zero padded                               | 00... 59                                                   |  *  | Fractional seconds  | S           | Numeric: 1 digit                                              | 0... 9                                                     |  *  |                     | SS          | Numeric: 2 digits + zero padded                               | 00... 99                                                   |  *  |                     | SSS         | Numeric: 3 digits + zero padded (= milliseconds)              | 000... 999                                                 |  *  | Zone                | z, zz & zzz | Short specific non location format (fallback to O)            | GMT-8                                                      |  *  |                     | zzzz        | Long specific non location format (fallback to OOOO)          | GMT-08:00                                                  |  *  |                     | Z, ZZ & ZZZ | ISO8601 basic format                                          | -0800                                                      |  *  |                     | ZZZZ        | Long localized GMT format                                     | GMT-8:00                                                   |  *  |                     | ZZZZZ       | ISO8601 extended format + Z indicator for offset 0 (= XXXXX)  | -08:00                                                     |  *  |                     | O, OO & OOO | Short localized GMT format                                    | GMT-8                                                      |  *  |                     | OOOO        | Long localized GMT format                                     | GMT-08:00                                                  |  *  *  * ### Format examples  *  * These examples transform a date into various formats,  * assuming that `dateObj` is a JavaScript `Date` object for  * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,  * given in the local time for the `en-US` locale.  *  * ```  * {{ dateObj | date }}               // output is 'Jun 15, 2015'  * {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'  * {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'  * {{ dateObj | date:'mm:ss' }}       // output is '43:11'  * ```  *  * ### Usage example  *  * The following component uses a date pipe to display the current date in different formats.  *  * ```  * @Component({  *  selector: 'date-pipe',  *  template: `<div>  *    <p>Today is {{today | date}}</p>  *    <p>Or if you prefer, {{today | date:'fullDate'}}</p>  *    <p>The time is {{today | date:'h:mm a z'}}</p>  *  </div>`  * })  * // Get the current date and time as a date-time value.  * export class DatePipeComponent {  *   today: number = Date.now();  * }  * ```  *  * @publicApi  */ // clang-format on @Pipe({   name: 'date',   pure: true,   standalone: true, }) export class DatePipe implements PipeTransform {   constructor(       @Inject(LOCALE_ID) private locale: string,       @Inject(DATE_PIPE_DEFAULT_TIMEZONE) @Optional() private defaultTimezone?: string|null,       @Inject(DATE_PIPE_DEFAULT_OPTIONS) @Optional() private defaultOptions?: DatePipeConfig|null,   ) {}    /**    * @param value The date expression: a `Date` object,  a number    * (milliseconds since UTC epoch), or an ISO string (https://www.w3.org/TR/NOTE-datetime).    * @param format The date/time components to include, using predefined options or a    * custom format string.  When not provided, the `DatePipe` looks for the value using the    * `DATE_PIPE_DEFAULT_OPTIONS` injection token (and reads the `dateFormat` property).    * If the token is not configured, the `mediumDate` is used as a value.    * @param timezone A timezone offset (such as `'+0430'`), or a standard UTC/GMT, or continental US    * timezone abbreviation. When not provided, the `DatePipe` looks for the value using the    * `DATE_PIPE_DEFAULT_OPTIONS` injection token (and reads the `timezone` property). If the token    * is not configured, the end-user's local system timezone is used as a value.    * @param locale A locale code for the locale format rules to use.    * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.    * See [Setting your app locale](guide/i18n-common-locale-id).    *    * @see `DATE_PIPE_DEFAULT_OPTIONS`    *    * @returns A date string in the desired format.    */   transform(value: Date|string|number, format?: string, timezone?: string, locale?: string): string       |null;   transform(value: null|undefined, format?: string, timezone?: string, locale?: string): null;   transform(       value: Date|string|number|null|undefined, format?: string, timezone?: string,       locale?: string): string|null;   transform(       value: Date|string|number|null|undefined, format?: string, timezone?: string,       locale?: string): string|null {     if (value == null || value === '' || value !== value) return null;      try {       const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;       const _timezone =           timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;       return formatDate(value, _format, locale || this.locale, _timezone);     } catch (error) {       throw invalidPipeArgumentError(DatePipe, (error as Error).message);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {getPluralCategory, NgLocalization} from '../i18n/localization';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  const _INTERPOLATION_REGEXP: RegExp = /#/g;  /**  * @ngModule CommonModule  * @description  *  * Maps a value to a string that pluralizes the value according to locale rules.  *  * @usageNotes  *  * ### Example  *  * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}  *  * @publicApi  */ @Pipe({   name: 'i18nPlural',   pure: true,   standalone: true, }) export class I18nPluralPipe implements PipeTransform {   constructor(private _localization: NgLocalization) {}    /**    * @param value the number to be formatted    * @param pluralMap an object that mimics the ICU format, see    * https://unicode-org.github.io/icu/userguide/format_parse/messages/.    * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by    * default).    */   transform(value: number|null|undefined, pluralMap: {[count: string]: string}, locale?: string):       string {     if (value == null) return '';      if (typeof pluralMap !== 'object' || pluralMap === null) {       throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);     }      const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);      return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * @ngModule CommonModule  * @description  *  * Generic selector that displays the string that matches the current value.  *  * If none of the keys of the `mapping` match the `value`, then the content  * of the `other` key is returned when present, otherwise an empty string is returned.  *  * @usageNotes  *  * ### Example  *  * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}  *  * @publicApi  */ @Pipe({   name: 'i18nSelect',   pure: true,   standalone: true, }) export class I18nSelectPipe implements PipeTransform {   /**    * @param value a string to be internationalized.    * @param mapping an object that indicates the text that should be displayed    * for different values of the provided `value`.    */   transform(value: string|null|undefined, mapping: {[key: string]: string}): string {     if (value == null) return '';      if (typeof mapping !== 'object' || typeof value !== 'string') {       throw invalidPipeArgumentError(I18nSelectPipe, mapping);     }      if (mapping.hasOwnProperty(value)) {       return mapping[value];     }      if (mapping.hasOwnProperty('other')) {       return mapping['other'];     }      return '';   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  /**  * @ngModule CommonModule  * @description  *  * Converts a value into its JSON-format representation.  Useful for debugging.  *  * @usageNotes  *  * The following component uses a JSON pipe to convert an object  * to JSON format, and displays the string in both formats for comparison.  *  * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}  *  * @publicApi  */ @Pipe({   name: 'json',   pure: false,   standalone: true, }) export class JsonPipe implements PipeTransform {   /**    * @param value A value of any type to convert into a JSON-format string.    */   transform(value: any): string {     return JSON.stringify(value, null, 2);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {KeyValueChangeRecord, KeyValueChanges, KeyValueDiffer, KeyValueDiffers, Pipe, PipeTransform} from '@angular/core';  function makeKeyValuePair<K, V>(key: K, value: V): KeyValue<K, V> {   return {key: key, value: value}; }  /**  * A key value pair.  * Usually used to represent the key value pairs from a Map or Object.  *  * @publicApi  */ export interface KeyValue<K, V> {   key: K;   value: V; }  /**  * @ngModule CommonModule  * @description  *  * Transforms Object or Map into an array of key value pairs.  *  * The output array will be ordered by keys.  * By default the comparator will be by Unicode point value.  * You can optionally pass a compareFn if your keys are complex types.  *  * @usageNotes  * ### Examples  *  * This examples show how an Object or a Map can be iterated by ngFor with the use of this  * keyvalue pipe.  *  * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}  *  * @publicApi  */ @Pipe({   name: 'keyvalue',   pure: false,   standalone: true, }) export class KeyValuePipe implements PipeTransform {   constructor(private readonly differs: KeyValueDiffers) {}    private differ!: KeyValueDiffer<any, any>;   private keyValues: Array<KeyValue<any, any>> = [];   private compareFn: (a: KeyValue<any, any>, b: KeyValue<any, any>) => number = defaultComparator;    /*    * NOTE: when the `input` value is a simple Record<K, V> object, the keys are extracted with    * Object.keys(). This means that even if the `input` type is Record<number, V> the keys are    * compared/returned as `string`s.    */   transform<K, V>(       input: ReadonlyMap<K, V>,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>;   transform<K extends number, V>(       input: Record<K, V>, compareFn?: (a: KeyValue<string, V>, b: KeyValue<string, V>) => number):       Array<KeyValue<string, V>>;   transform<K extends string, V>(       input: Record<K, V>|ReadonlyMap<K, V>,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>;   transform(       input: null|undefined,       compareFn?: (a: KeyValue<unknown, unknown>, b: KeyValue<unknown, unknown>) => number): null;   transform<K, V>(       input: ReadonlyMap<K, V>|null|undefined,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>|null;   transform<K extends number, V>(       input: Record<K, V>|null|undefined,       compareFn?: (a: KeyValue<string, V>, b: KeyValue<string, V>) => number):       Array<KeyValue<string, V>>|null;   transform<K extends string, V>(       input: Record<K, V>|ReadonlyMap<K, V>|null|undefined,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>|null;   transform<K, V>(       input: undefined|null|{[key: string]: V, [key: number]: V}|ReadonlyMap<K, V>,       compareFn: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number = defaultComparator):       Array<KeyValue<K, V>>|null {     if (!input || (!(input instanceof Map) && typeof input !== 'object')) {       return null;     }      if (!this.differ) {       // make a differ for whatever type we've been passed in       this.differ = this.differs.find(input).create();     }      const differChanges: KeyValueChanges<K, V>|null = this.differ.diff(input as any);     const compareFnChanged = compareFn !== this.compareFn;      if (differChanges) {       this.keyValues = [];       differChanges.forEachItem((r: KeyValueChangeRecord<K, V>) => {         this.keyValues.push(makeKeyValuePair(r.key, r.currentValue!));       });     }     if (differChanges || compareFnChanged) {       this.keyValues.sort(compareFn);       this.compareFn = compareFn;     }     return this.keyValues;   } }  export function defaultComparator<K, V>(     keyValueA: KeyValue<K, V>, keyValueB: KeyValue<K, V>): number {   const a = keyValueA.key;   const b = keyValueB.key;   // if same exit with 0;   if (a === b) return 0;   // make sure that undefined are at the end of the sort.   if (a === undefined) return 1;   if (b === undefined) return -1;   // make sure that nulls are at the end of the sort.   if (a === null) return 1;   if (b === null) return -1;   if (typeof a == 'string' && typeof b == 'string') {     return a < b ? -1 : 1;   }   if (typeof a == 'number' && typeof b == 'number') {     return a - b;   }   if (typeof a == 'boolean' && typeof b == 'boolean') {     return a < b ? -1 : 1;   }   // `a` and `b` are of different types. Compare their string values.   const aString = String(a);   const bString = String(b);   return aString == bString ? 0 : aString < bString ? -1 : 1; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DEFAULT_CURRENCY_CODE, Inject, LOCALE_ID, Pipe, PipeTransform} from '@angular/core';  import {formatCurrency, formatNumber, formatPercent} from '../i18n/format_number'; import {getCurrencySymbol} from '../i18n/locale_data_api';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';   /**  * @ngModule CommonModule  * @description  *  * Formats a value according to digit options and locale rules.  * Locale determines group sizing and separator,  * decimal point character, and other locale-specific configurations.  *  * @see `formatNumber()`  *  * @usageNotes  *  * ### digitsInfo  *  * The value's decimal representation is specified by the `digitsInfo`  * parameter, written in the following format:<br>  *  * ```  * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}  * ```  *  *  - `minIntegerDigits`:  * The minimum number of integer digits before the decimal point.  * Default is 1.  *  * - `minFractionDigits`:  * The minimum number of digits after the decimal point.  * Default is 0.  *  *  - `maxFractionDigits`:  * The maximum number of digits after the decimal point.  * Default is 3.  *  * If the formatted value is truncated it will be rounded using the \"to-nearest\" method:  *  * ```  * {{3.6 | number: '1.0-0'}}  * <!--will output '4'-->  *  * {{-3.6 | number:'1.0-0'}}  * <!--will output '-4'-->  * ```  *  * ### locale  *  * `locale` will format a value according to locale rules.  * Locale determines group sizing and separator,  * decimal point character, and other locale-specific configurations.  *  * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.  *  * See [Setting your app locale](guide/i18n-common-locale-id).  *  * ### Example  *  * The following code shows how the pipe transforms values  * according to various format specifications,  * where the caller's default locale is `en-US`.  *  * <code-example path=\"common/pipes/ts/number_pipe.ts\" region='NumberPipe'></code-example>  *  * @publicApi  */ @Pipe({   name: 'number',   standalone: true, }) export class DecimalPipe implements PipeTransform {   constructor(@Inject(LOCALE_ID) private _locale: string) {}    transform(value: number|string, digitsInfo?: string, locale?: string): string|null;   transform(value: null|undefined, digitsInfo?: string, locale?: string): null;   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string|null;   /**    * @param value The value to be formatted.    * @param digitsInfo Sets digit and decimal representation.    * [See more](#digitsinfo).    * @param locale Specifies what locale format rules to use.    * [See more](#locale).    */   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string       |null {     if (!isValue(value)) return null;      locale = locale || this._locale;      try {       const num = strToNumber(value);       return formatNumber(num, locale, digitsInfo);     } catch (error) {       throw invalidPipeArgumentError(DecimalPipe, (error as Error).message);     }   } }  /**  * @ngModule CommonModule  * @description  *  * Transforms a number to a percentage  * string, formatted according to locale rules that determine group sizing and  * separator, decimal-point character, and other locale-specific  * configurations.  *  * @see `formatPercent()`  *  * @usageNotes  * The following code shows how the pipe transforms numbers  * into text strings, according to various format specifications,  * where the caller's default locale is `en-US`.  *  * <code-example path=\"common/pipes/ts/percent_pipe.ts\" region='PercentPipe'></code-example>  *  * @publicApi  */ @Pipe({   name: 'percent',   standalone: true, }) export class PercentPipe implements PipeTransform {   constructor(@Inject(LOCALE_ID) private _locale: string) {}    transform(value: number|string, digitsInfo?: string, locale?: string): string|null;   transform(value: null|undefined, digitsInfo?: string, locale?: string): null;   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string|null;   /**    *    * @param value The number to be formatted as a percentage.    * @param digitsInfo Decimal representation options, specified by a string    * in the following format:<br>    * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.    *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.    * Default is `1`.    *   - `minFractionDigits`: The minimum number of digits after the decimal point.    * Default is `0`.    *   - `maxFractionDigits`: The maximum number of digits after the decimal point.    * Default is `0`.    * @param locale A locale code for the locale format rules to use.    * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.    * See [Setting your app locale](guide/i18n-common-locale-id).    */   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string       |null {     if (!isValue(value)) return null;     locale = locale || this._locale;     try {       const num = strToNumber(value);       return formatPercent(num, locale, digitsInfo);     } catch (error) {       throw invalidPipeArgumentError(PercentPipe, (error as Error).message);     }   } }  /**  * @ngModule CommonModule  * @description  *  * Transforms a number to a currency string, formatted according to locale rules  * that determine group sizing and separator, decimal-point character,  * and other locale-specific configurations.  *  *  * @see `getCurrencySymbol()`  * @see `formatCurrency()`  *  * @usageNotes  * The following code shows how the pipe transforms numbers  * into text strings, according to various format specifications,  * where the caller's default locale is `en-US`.  *  * <code-example path=\"common/pipes/ts/currency_pipe.ts\" region='CurrencyPipe'></code-example>  *  * @publicApi  */ @Pipe({   name: 'currency',   standalone: true, }) export class CurrencyPipe implements PipeTransform {   constructor(       @Inject(LOCALE_ID) private _locale: string,       @Inject(DEFAULT_CURRENCY_CODE) private _defaultCurrencyCode: string = 'USD') {}    transform(       value: number|string, currencyCode?: string,       display?: 'code'|'symbol'|'symbol-narrow'|string|boolean, digitsInfo?: string,       locale?: string): string|null;   transform(       value: null|undefined, currencyCode?: string,       display?: 'code'|'symbol'|'symbol-narrow'|string|boolean, digitsInfo?: string,       locale?: string): null;   transform(       value: number|string|null|undefined, currencyCode?: string,       display?: 'code'|'symbol'|'symbol-narrow'|string|boolean, digitsInfo?: string,       locale?: string): string|null;   /**    *    * @param value The number to be formatted as currency.    * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,    * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be    * configured using the `DEFAULT_CURRENCY_CODE` injection token.    * @param display The format for the currency indicator. One of the following:    *   - `code`: Show the code (such as `USD`).    *   - `symbol`(default): Show the symbol (such as `$`).    *   - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their    * currency.    * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the    * locale has no narrow symbol, uses the standard symbol for the locale.    *   - String: Use the given string value instead of a code or a symbol.    * For example, an empty string will suppress the currency & symbol.    *   - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.    *    * @param digitsInfo Decimal representation options, specified by a string    * in the following format:<br>    * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.    *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.    * Default is `1`.    *   - `minFractionDigits`: The minimum number of digits after the decimal point.    * Default is `2`.    *   - `maxFractionDigits`: The maximum number of digits after the decimal point.    * Default is `2`.    * If not provided, the number will be formatted with the proper amount of digits,    * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.    * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.    * @param locale A locale code for the locale format rules to use.    * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.    * See [Setting your app locale](guide/i18n-common-locale-id).    */   transform(       value: number|string|null|undefined, currencyCode: string = this._defaultCurrencyCode,       display: 'code'|'symbol'|'symbol-narrow'|string|boolean = 'symbol', digitsInfo?: string,       locale?: string): string|null {     if (!isValue(value)) return null;      locale = locale || this._locale;      if (typeof display === 'boolean') {       if ((typeof ngDevMode === 'undefined' || ngDevMode) && <any>console && <any>console.warn) {         console.warn(             `Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".`);       }       display = display ? 'symbol' : 'code';     }      let currency: string = currencyCode || this._defaultCurrencyCode;     if (display !== 'code') {       if (display === 'symbol' || display === 'symbol-narrow') {         currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);       } else {         currency = display;       }     }      try {       const num = strToNumber(value);       return formatCurrency(num, locale, currency, currencyCode, digitsInfo);     } catch (error) {       throw invalidPipeArgumentError(CurrencyPipe, (error as Error).message);     }   } }  function isValue(value: number|string|null|undefined): value is number|string {   return !(value == null || value === '' || value !== value); }  /**  * Transforms a string into a number (if needed).  */ function strToNumber(value: number|string): number {   // Convert strings to numbers   if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {     return Number(value);   }   if (typeof value !== 'number') {     throw new Error(`${value} is not a number`);   }   return value; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * @ngModule CommonModule  * @description  *  * Creates a new `Array` or `String` containing a subset (slice) of the elements.  *  * @usageNotes  *  * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`  * and `String.prototype.slice()`.  *  * When operating on an `Array`, the returned `Array` is always a copy even when all  * the elements are being returned.  *  * When operating on a blank value, the pipe returns the blank value.  *  * ### List Example  *  * This `ngFor` example:  *  * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}  *  * produces the following:  *  * ```html  * <li>b</li>  * <li>c</li>  * ```  *  * ### String Examples  *  * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}  *  * @publicApi  */ @Pipe({   name: 'slice',   pure: false,   standalone: true, }) export class SlicePipe implements PipeTransform {   /**    * @param value a list or a string to be sliced.    * @param start the starting index of the subset to return:    *   - **a positive integer**: return the item at `start` index and all items after    *     in the list or string expression.    *   - **a negative integer**: return the item at `start` index from the end and all items after    *     in the list or string expression.    *   - **if positive and greater than the size of the expression**: return an empty list or    * string.    *   - **if negative and greater than the size of the expression**: return entire list or string.    * @param end the ending index of the subset to return:    *   - **omitted**: return all items until the end.    *   - **if positive**: return all items before `end` index of the list or string.    *   - **if negative**: return all items before `end` index from the end of the list or string.    */   transform<T>(value: ReadonlyArray<T>, start: number, end?: number): Array<T>;   transform(value: null|undefined, start: number, end?: number): null;   transform<T>(value: ReadonlyArray<T>|null|undefined, start: number, end?: number): Array<T>|null;   transform(value: string, start: number, end?: number): string;   transform(value: string|null|undefined, start: number, end?: number): string|null;   transform<T>(value: ReadonlyArray<T>|string|null|undefined, start: number, end?: number):       Array<T>|string|null {     if (value == null) return null;      if (!this.supports(value)) {       throw invalidPipeArgumentError(SlicePipe, value);     }      return value.slice(start, end);   }    private supports(obj: any): boolean {     return typeof obj === 'string' || Array.isArray(obj);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * This module provides a set of common Pipes.  */ import {AsyncPipe} from './async_pipe'; import {LowerCasePipe, TitleCasePipe, UpperCasePipe} from './case_conversion_pipes'; import {DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe} from './date_pipe'; import {DatePipeConfig} from './date_pipe_config'; import {I18nPluralPipe} from './i18n_plural_pipe'; import {I18nSelectPipe} from './i18n_select_pipe'; import {JsonPipe} from './json_pipe'; import {KeyValue, KeyValuePipe} from './keyvalue_pipe'; import {CurrencyPipe, DecimalPipe, PercentPipe} from './number_pipe'; import {SlicePipe} from './slice_pipe';  export {   AsyncPipe,   CurrencyPipe,   DATE_PIPE_DEFAULT_OPTIONS,   DATE_PIPE_DEFAULT_TIMEZONE,   DatePipe,   DatePipeConfig,   DecimalPipe,   I18nPluralPipe,   I18nSelectPipe,   JsonPipe,   KeyValue,   KeyValuePipe,   LowerCasePipe,   PercentPipe,   SlicePipe,   TitleCasePipe,   UpperCasePipe, };   /**  * A collection of Angular pipes that are likely to be used in each and every application.  */ export const COMMON_PIPES = [   AsyncPipe,   UpperCasePipe,   LowerCasePipe,   JsonPipe,   SlicePipe,   DecimalPipe,   PercentPipe,   TitleCasePipe,   CurrencyPipe,   DatePipe,   I18nPluralPipe,   I18nSelectPipe,   KeyValuePipe, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {NgModule} from '@angular/core';  import {COMMON_DIRECTIVES} from './directives/index'; import {COMMON_PIPES} from './pipes/index';    // Note: This does not contain the location providers, // as they need some platform specific implementations to work. /**  * Exports all the basic Angular directives and pipes,  * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.  * Re-exported by `BrowserModule`, which is included automatically in the root  * `AppModule` when you create a new app with the CLI `new` command.  *  * @publicApi  */ @NgModule({   imports: [COMMON_DIRECTIVES, COMMON_PIPES],   exports: [COMMON_DIRECTIVES, COMMON_PIPES], }) export class CommonModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export const PLATFORM_BROWSER_ID = 'browser'; export const PLATFORM_SERVER_ID = 'server'; export const PLATFORM_WORKER_APP_ID = 'browserWorkerApp'; export const PLATFORM_WORKER_UI_ID = 'browserWorkerUi';  /**  * Returns whether a platform id represents a browser platform.  * @publicApi  */ export function isPlatformBrowser(platformId: Object): boolean {   return platformId === PLATFORM_BROWSER_ID; }  /**  * Returns whether a platform id represents a server platform.  * @publicApi  */ export function isPlatformServer(platformId: Object): boolean {   return platformId === PLATFORM_SERVER_ID; }  /**  * Returns whether a platform id represents a web worker app platform.  * @publicApi  */ export function isPlatformWorkerApp(platformId: Object): boolean {   return platformId === PLATFORM_WORKER_APP_ID; }  /**  * Returns whether a platform id represents a web worker UI platform.  * @publicApi  */ export function isPlatformWorkerUi(platformId: Object): boolean {   return platformId === PLATFORM_WORKER_UI_ID; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the common package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵɵdefineInjectable, ɵɵinject} from '@angular/core';  import {DOCUMENT} from './dom_tokens';    /**  * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.  *  * @publicApi  */ export abstract class ViewportScroller {   // De-sugared tree-shakable injection   // See #23917   /** @nocollapse */   static ɵprov = /** @pureOrBreakMyCode */ ɵɵdefineInjectable({     token: ViewportScroller,     providedIn: 'root',     factory: () => new BrowserViewportScroller(ɵɵinject(DOCUMENT), window)   });    /**    * Configures the top offset used when scrolling to an anchor.    * @param offset A position in screen coordinates (a tuple with x and y values)    * or a function that returns the top offset position.    *    */   abstract setOffset(offset: [number, number]|(() => [number, number])): void;    /**    * Retrieves the current scroll position.    * @returns A position in screen coordinates (a tuple with x and y values).    */   abstract getScrollPosition(): [number, number];    /**    * Scrolls to a specified position.    * @param position A position in screen coordinates (a tuple with x and y values).    */   abstract scrollToPosition(position: [number, number]): void;    /**    * Scrolls to an anchor element.    * @param anchor The ID of the anchor element.    */   abstract scrollToAnchor(anchor: string): void;    /**    * Disables automatic scroll restoration provided by the browser.    * See also [window.history.scrollRestoration    * info](https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration).    */   abstract setHistoryScrollRestoration(scrollRestoration: 'auto'|'manual'): void; }  /**  * Manages the scroll position for a browser window.  */ export class BrowserViewportScroller implements ViewportScroller {   private offset: () => [number, number] = () => [0, 0];    constructor(private document: Document, private window: Window) {}    /**    * Configures the top offset used when scrolling to an anchor.    * @param offset A position in screen coordinates (a tuple with x and y values)    * or a function that returns the top offset position.    *    */   setOffset(offset: [number, number]|(() => [number, number])): void {     if (Array.isArray(offset)) {       this.offset = () => offset;     } else {       this.offset = offset;     }   }    /**    * Retrieves the current scroll position.    * @returns The position in screen coordinates.    */   getScrollPosition(): [number, number] {     if (this.supportsScrolling()) {       return [this.window.pageXOffset, this.window.pageYOffset];     } else {       return [0, 0];     }   }    /**    * Sets the scroll position.    * @param position The new position in screen coordinates.    */   scrollToPosition(position: [number, number]): void {     if (this.supportsScrolling()) {       this.window.scrollTo(position[0], position[1]);     }   }    /**    * Scrolls to an element and attempts to focus the element.    *    * Note that the function name here is misleading in that the target string may be an ID for a    * non-anchor element.    *    * @param target The ID of an element or name of the anchor.    *    * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document    * @see https://html.spec.whatwg.org/#scroll-to-fragid    */   scrollToAnchor(target: string): void {     if (!this.supportsScrolling()) {       return;     }      const elSelected = findAnchorFromDocument(this.document, target);      if (elSelected) {       this.scrollToElement(elSelected);       // After scrolling to the element, the spec dictates that we follow the focus steps for the       // target. Rather than following the robust steps, simply attempt focus.       //       // @see https://html.spec.whatwg.org/#get-the-focusable-area       // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus       // @see https://html.spec.whatwg.org/#focusable-area       elSelected.focus();     }   }    /**    * Disables automatic scroll restoration provided by the browser.    */   setHistoryScrollRestoration(scrollRestoration: 'auto'|'manual'): void {     if (this.supportScrollRestoration()) {       const history = this.window.history;       if (history && history.scrollRestoration) {         history.scrollRestoration = scrollRestoration;       }     }   }    /**    * Scrolls to an element using the native offset and the specified offset set on this scroller.    *    * The offset can be used when we know that there is a floating header and scrolling naively to an    * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.    */   private scrollToElement(el: HTMLElement): void {     const rect = el.getBoundingClientRect();     const left = rect.left + this.window.pageXOffset;     const top = rect.top + this.window.pageYOffset;     const offset = this.offset();     this.window.scrollTo(left - offset[0], top - offset[1]);   }    /**    * We only support scroll restoration when we can get a hold of window.    * This means that we do not support this behavior when running in a web worker.    *    * Lifting this restriction right now would require more changes in the dom adapter.    * Since webworkers aren't widely used, we will lift it once RouterScroller is    * battle-tested.    */   private supportScrollRestoration(): boolean {     try {       if (!this.supportsScrolling()) {         return false;       }       // The `scrollRestoration` property could be on the `history` instance or its prototype.       const scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) ||           getScrollRestorationProperty(Object.getPrototypeOf(this.window.history));       // We can write to the `scrollRestoration` property if it is a writable data field or it has a       // setter function.       return !!scrollRestorationDescriptor &&           !!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);     } catch {       return false;     }   }    private supportsScrolling(): boolean {     try {       return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;     } catch {       return false;     }   } }  function getScrollRestorationProperty(obj: any): PropertyDescriptor|undefined {   return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration'); }  function findAnchorFromDocument(document: Document, target: string): HTMLElement|null {   const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];    if (documentResult) {     return documentResult;   }    // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we   // have to traverse the DOM manually and do the lookup through the shadow roots.   if (typeof document.createTreeWalker === 'function' && document.body &&       ((document.body as any).createShadowRoot || document.body.attachShadow)) {     const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);     let currentNode = treeWalker.currentNode as HTMLElement | null;      while (currentNode) {       const shadowRoot = currentNode.shadowRoot;        if (shadowRoot) {         // Note that `ShadowRoot` doesn't support `getElementsByName`         // so we have to fall back to `querySelector`.         const result =             shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name=\"${target}\"]`);         if (result) {           return result;         }       }        currentNode = treeWalker.nextNode() as HTMLElement | null;     }   }    return null; }  /**  * Provides an empty implementation of the viewport scroller.  */ export class NullViewportScroller implements ViewportScroller {   /**    * Empty implementation    */   setOffset(offset: [number, number]|(() => [number, number])): void {}    /**    * Empty implementation    */   getScrollPosition(): [number, number] {     return [0, 0];   }    /**    * Empty implementation    */   scrollToPosition(position: [number, number]): void {}    /**    * Empty implementation    */   scrollToAnchor(anchor: string): void {}    /**    * Empty implementation    */   setHistoryScrollRestoration(scrollRestoration: 'auto'|'manual'): void {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A wrapper around the `XMLHttpRequest` constructor.  *  * @publicApi  */ export abstract class XhrFactory {   abstract build(): XMLHttpRequest; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // Converts a string that represents a URL into a URL class instance. export function getUrl(src: string, win: Window): URL {   // Don't use a base URL is the URL is absolute.   return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href); }  // Checks whether a URL is absolute (i.e. starts with `http://` or `https://`). export function isAbsoluteUrl(src: string): boolean {   return /^https?:\\/\\//.test(src); }  // Given a URL, extract the hostname part. // If a URL is a relative one - the URL is returned as is. export function extractHostname(url: string): string {   return isAbsoluteUrl(url) ? (new URL(url)).hostname : url; }  export function isValidPath(path: unknown): boolean {   const isString = typeof path === 'string';    if (!isString || path.trim() === '') {     return false;   }    // Calling new URL() will throw if the path string is malformed   try {     const url = new URL(path);     return true;   } catch {     return false;   } }  export function normalizePath(path: string): string {   return path.endsWith('/') ? path.slice(0, -1) : path; }  export function normalizeSrc(src: string): string {   return src.startsWith('/') ? src.slice(1) : src; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken, Provider, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../../../errors'; import {isAbsoluteUrl, isValidPath, normalizePath, normalizeSrc} from '../url';  /**  * Config options recognized by the image loader function.  *  * @see `ImageLoader`  * @see `NgOptimizedImage`  * @publicApi  */ export interface ImageLoaderConfig {   /**    * Image file name to be added to the image request URL.    */   src: string;   /**    * Width of the requested image (to be used when generating srcset).    */   width?: number;   /**    * Additional user-provided parameters for use by the ImageLoader.    */   loaderParams?: {[key: string]: any;}; }  /**  * Represents an image loader function. Image loader functions are used by the  * NgOptimizedImage directive to produce full image URL based on the image name and its width.  *  * @publicApi  */ export type ImageLoader = (config: ImageLoaderConfig) => string;  /**  * Noop image loader that does no transformation to the original src and just returns it as is.  * This loader is used as a default one if more specific logic is not provided in an app config.  *  * @see `ImageLoader`  * @see `NgOptimizedImage`  */ export const noopImageLoader = (config: ImageLoaderConfig) => config.src;  /**  * Metadata about the image loader.  */ export type ImageLoaderInfo = {   name: string,   testUrl: (url: string) => boolean };  /**  * Injection token that configures the image loader function.  *  * @see `ImageLoader`  * @see `NgOptimizedImage`  * @publicApi  */ export const IMAGE_LOADER = new InjectionToken<ImageLoader>('ImageLoader', {   providedIn: 'root',   factory: () => noopImageLoader, });  /**  * Internal helper function that makes it easier to introduce custom image loaders for the  * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI  * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI  * tokens managing preconnect check functionality.  * @param buildUrlFn a function returning a full URL based on loader's configuration  * @param exampleUrls example of full URLs for a given loader (used in error messages)  * @returns a set of DI providers corresponding to the configured image loader  */ export function createImageLoader(     buildUrlFn: (path: string, config: ImageLoaderConfig) => string, exampleUrls?: string[]) {   return function provideImageLoader(path: string) {     if (!isValidPath(path)) {       throwInvalidPathError(path, exampleUrls || []);     }      // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in     // the individual loader functions.     path = normalizePath(path);      const loaderFn = (config: ImageLoaderConfig) => {       if (isAbsoluteUrl(config.src)) {         // Image loader functions expect an image file name (e.g. `my-image.png`)         // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,         // so the final absolute URL can be constructed.         // When an absolute URL is provided instead - the loader can not         // build a final URL, thus the error is thrown to indicate that.         throwUnexpectedAbsoluteUrlError(path, config.src);       }        return buildUrlFn(path, {...config, src: normalizeSrc(config.src)});     };      const providers: Provider[] = [{provide: IMAGE_LOADER, useValue: loaderFn}];     return providers;   }; }  function throwInvalidPathError(path: unknown, exampleUrls: string[]): never {   throw new RuntimeError(       RuntimeErrorCode.INVALID_LOADER_ARGUMENTS,       ngDevMode &&           `Image loader has detected an invalid path (\\`${path}\\`). ` +               `To fix this, supply a path using one of the following formats: ${                   exampleUrls.join(' or ')}`); }  function throwUnexpectedAbsoluteUrlError(path: string, url: string): never {   throw new RuntimeError(       RuntimeErrorCode.INVALID_LOADER_ARGUMENTS,       ngDevMode &&           `Image loader has detected a \\`<img>\\` tag with an invalid \\`ngSrc\\` attribute: ${               url}. ` +               `This image loader expects \\`ngSrc\\` to be a relative URL - ` +               `however the provided value is an absolute URL. ` +               `To fix this, provide \\`ngSrc\\` as a path relative to the base URL ` +               `configured for this loader (\\`${path}\\`).`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig} from './image_loader';  /**  * Function that generates an ImageLoader for [Cloudflare Image  * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular  * provider. Note: Cloudflare has multiple image products - this provider is specifically for  * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.  *  * @param path Your domain name, e.g. https://mysite.com  * @returns Provider that provides an ImageLoader function  *  * @publicApi  */ export const provideCloudflareLoader = createImageLoader(     createCloudflareUrl,     ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);  function createCloudflareUrl(path: string, config: ImageLoaderConfig) {   let params = `format=auto`;   if (config.width) {     params += `,width=${config.width}`;   }   // Cloudflare image URLs format:   // https://developers.cloudflare.com/images/image-resizing/url-format/   return `${path}/cdn-cgi/image/${params}/${config.src}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig, ImageLoaderInfo} from './image_loader';  /**  * Name and URL tester for Cloudinary.  */ export const cloudinaryLoaderInfo: ImageLoaderInfo = {   name: 'Cloudinary',   testUrl: isCloudinaryUrl };  const CLOUDINARY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.cloudinary\\.com\\/.+/; /**  * Tests whether a URL is from Cloudinary CDN.  */ function isCloudinaryUrl(url: string): boolean {   return CLOUDINARY_LOADER_REGEX.test(url); }  /**  * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.  *  * @param path Base URL of your Cloudinary images  * This URL should match one of the following formats:  * https://res.cloudinary.com/mysite  * https://mysite.cloudinary.com  * https://subdomain.mysite.com  * @returns Set of providers to configure the Cloudinary loader.  *  * @publicApi  */ export const provideCloudinaryLoader = createImageLoader(     createCloudinaryUrl,     ngDevMode ?         [           'https://res.cloudinary.com/mysite', 'https://mysite.cloudinary.com',           'https://subdomain.mysite.com'         ] :         undefined);  function createCloudinaryUrl(path: string, config: ImageLoaderConfig) {   // Cloudinary image URLformat:   // https://cloudinary.com/documentation/image_transformations#transformation_url_structure   // Example of a Cloudinary image URL:   // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png   let params = `f_auto,q_auto`;  // sets image format and quality to \"auto\"   if (config.width) {     params += `,w_${config.width}`;   }   return `${path}/image/upload/${params}/${config.src}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig, ImageLoaderInfo} from './image_loader';  /**  * Name and URL tester for ImageKit.  */ export const imageKitLoaderInfo: ImageLoaderInfo = {   name: 'ImageKit',   testUrl: isImageKitUrl };  const IMAGE_KIT_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imagekit\\.io\\/.+/; /**  * Tests whether a URL is from ImageKit CDN.  */ function isImageKitUrl(url: string): boolean {   return IMAGE_KIT_LOADER_REGEX.test(url); }  /**  * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.  *  * @param path Base URL of your ImageKit images  * This URL should match one of the following formats:  * https://ik.imagekit.io/myaccount  * https://subdomain.mysite.com  * @returns Set of providers to configure the ImageKit loader.  *  * @publicApi  */ export const provideImageKitLoader = createImageLoader(     createImagekitUrl,     ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);  export function createImagekitUrl(path: string, config: ImageLoaderConfig) {   // Example of an ImageKit image URL:   // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg   let params = `tr:q-auto`;  // applies the \"auto quality\" transformation   if (config.width) {     params += `,w-${config.width}`;   }   return `${path}/${params}/${config.src}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig, ImageLoaderInfo} from './image_loader';  /**  * Name and URL tester for Imgix.  */ export const imgixLoaderInfo: ImageLoaderInfo = {   name: 'Imgix',   testUrl: isImgixUrl };  const IMGIX_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imgix\\.net\\/.+/; /**  * Tests whether a URL is from Imgix CDN.  */ function isImgixUrl(url: string): boolean {   return IMGIX_LOADER_REGEX.test(url); }  /**  * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.  *  * @param path path to the desired Imgix origin,  * e.g. https://somepath.imgix.net or https://images.mysite.com  * @returns Set of providers to configure the Imgix loader.  *  * @publicApi  */ export const provideImgixLoader =     createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);  function createImgixUrl(path: string, config: ImageLoaderConfig) {   const url = new URL(`${path}/${config.src}`);   // This setting ensures the smallest allowable format is set.   url.searchParams.set('auto', 'format');   if (config.width) {     url.searchParams.set('w', config.width.toString());   }   return url.href; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // Assembles directive details string, useful for error messages. export function imgDirectiveDetails(ngSrc: string, includeNgSrc = true) {   const ngSrcInfo =       includeNgSrc ? `(activated on an <img> element with the \\`ngSrc=\"${ngSrc}\"\\`) ` : '';   return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../../errors';  /**  * Asserts that the application is in development mode. Throws an error if the application is in  * production mode. This assert can be used to make sure that there is no dev-mode code invoked in  * the prod mode accidentally.  */ export function assertDevMode(checkName: string) {   if (!ngDevMode) {     throw new RuntimeError(         RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE,         `Unexpected invocation of the ${checkName} in the prod mode. ` +             `Please make sure that the prod mode is enabled for production builds.`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable, OnDestroy, ɵformatRuntimeError as formatRuntimeError} from '@angular/core';  import {DOCUMENT} from '../../dom_tokens'; import {RuntimeErrorCode} from '../../errors';  import {assertDevMode} from './asserts'; import {imgDirectiveDetails} from './error_helper'; import {getUrl} from './url';  /**  * Observer that detects whether an image with `NgOptimizedImage`  * is treated as a Largest Contentful Paint (LCP) element. If so,  * asserts that the image has the `priority` attribute.  *  * Note: this is a dev-mode only class and it does not appear in prod bundles,  * thus there is no `ngDevMode` use in the code.  *  * Based on https://web.dev/lcp/#measure-lcp-in-javascript.  */ @Injectable({providedIn: 'root'}) export class LCPImageObserver implements OnDestroy {   // Map of full image URLs -> original `ngSrc` values.   private images = new Map<string, string>();   // Keep track of images for which `console.warn` was produced.   private alreadyWarned = new Set<string>();    private window: Window|null = null;   private observer: PerformanceObserver|null = null;    constructor() {     assertDevMode('LCP checker');     const win = inject(DOCUMENT).defaultView;     if (typeof win !== 'undefined' && typeof PerformanceObserver !== 'undefined') {       this.window = win;       this.observer = this.initPerformanceObserver();     }   }    /**    * Inits PerformanceObserver and subscribes to LCP events.    * Based on https://web.dev/lcp/#measure-lcp-in-javascript    */   private initPerformanceObserver(): PerformanceObserver {     const observer = new PerformanceObserver((entryList) => {       const entries = entryList.getEntries();       if (entries.length === 0) return;       // We use the latest entry produced by the `PerformanceObserver` as the best       // signal on which element is actually an LCP one. As an example, the first image to load on       // a page, by virtue of being the only thing on the page so far, is often a LCP candidate       // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.       const lcpElement = entries[entries.length - 1];        // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.       // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint       const imgSrc = (lcpElement as any).element?.src ?? '';        // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.       if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:')) return;        const imgNgSrc = this.images.get(imgSrc);       if (imgNgSrc && !this.alreadyWarned.has(imgSrc)) {         this.alreadyWarned.add(imgSrc);         logMissingPriorityWarning(imgSrc);       }     });     observer.observe({type: 'largest-contentful-paint', buffered: true});     return observer;   }    registerImage(rewrittenSrc: string, originalNgSrc: string) {     if (!this.observer) return;     this.images.set(getUrl(rewrittenSrc, this.window!).href, originalNgSrc);   }    unregisterImage(rewrittenSrc: string) {     if (!this.observer) return;     this.images.delete(getUrl(rewrittenSrc, this.window!).href);   }    ngOnDestroy() {     if (!this.observer) return;     this.observer.disconnect();     this.images.clear();     this.alreadyWarned.clear();   } }  function logMissingPriorityWarning(ngSrc: string) {   const directiveDetails = imgDirectiveDetails(ngSrc);   console.warn(formatRuntimeError(       RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY,       `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +           `element but was not marked \"priority\". This image should be marked ` +           `\"priority\" in order to prioritize its loading. ` +           `To fix this, add the \"priority\" attribute.`)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable, InjectionToken, ɵformatRuntimeError as formatRuntimeError, ɵRuntimeError as RuntimeError} from '@angular/core';  import {DOCUMENT} from '../../dom_tokens'; import {RuntimeErrorCode} from '../../errors';  import {assertDevMode} from './asserts'; import {imgDirectiveDetails} from './error_helper'; import {extractHostname, getUrl} from './url';  // Set of origins that are always excluded from the preconnect checks. const INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);  /**  * Injection token to configure which origins should be excluded  * from the preconnect checks. It can either be a single string or an array of strings  * to represent a group of origins, for example:  *  * ```typescript  *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}  * ```  *  * or:  *  * ```typescript  *  {provide: PRECONNECT_CHECK_BLOCKLIST,  *   useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}  * ```  *  * @publicApi  */ export const PRECONNECT_CHECK_BLOCKLIST =     new InjectionToken<Array<string|string[]>>('PRECONNECT_CHECK_BLOCKLIST');  /**  * Contains the logic to detect whether an image, marked with the \"priority\" attribute  * has a corresponding `<link rel=\"preconnect\">` tag in the `document.head`.  *  * Note: this is a dev-mode only class, which should not appear in prod bundles,  * thus there is no `ngDevMode` use in the code.  */ @Injectable({providedIn: 'root'}) export class PreconnectLinkChecker {   private document = inject(DOCUMENT);    /**    * Set of <link rel=\"preconnect\"> tags found on this page.    * The `null` value indicates that there was no DOM query operation performed.    */   private preconnectLinks: Set<string>|null = null;    /*    * Keep track of all already seen origin URLs to avoid repeating the same check.    */   private alreadySeen = new Set<string>();    private window: Window|null = null;    private blocklist = new Set<string>(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);    constructor() {     assertDevMode('preconnect link checker');     const win = this.document.defaultView;     if (typeof win !== 'undefined') {       this.window = win;     }     const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, {optional: true});     if (blocklist) {       this.populateBlocklist(blocklist);     }   }    private populateBlocklist(origins: Array<string|string[]>|string) {     if (Array.isArray(origins)) {       deepForEach(origins, origin => {         this.blocklist.add(extractHostname(origin));       });     } else {       this.blocklist.add(extractHostname(origins));     }   }    /**    * Checks that a preconnect resource hint exists in the head for the    * given src.    *    * @param rewrittenSrc src formatted with loader    * @param originalNgSrc ngSrc value    */   assertPreconnect(rewrittenSrc: string, originalNgSrc: string): void {     if (!this.window) return;      const imgUrl = getUrl(rewrittenSrc, this.window);     if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin)) return;      // Register this origin as seen, so we don't check it again later.     this.alreadySeen.add(imgUrl.origin);      if (!this.preconnectLinks) {       // Note: we query for preconnect links only *once* and cache the results       // for the entire lifespan of an application, since it's unlikely that the       // list would change frequently. This allows to make sure there are no       // performance implications of making extra DOM lookups for each image.       this.preconnectLinks = this.queryPreconnectLinks();     }      if (!this.preconnectLinks.has(imgUrl.origin)) {       console.warn(formatRuntimeError(           RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG,           `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` +               `image. Preconnecting to the origin(s) that serve priority images ensures that these ` +               `images are delivered as soon as possible. To fix this, please add the following ` +               `element into the <head> of the document:\ ` +               `  <link rel=\"preconnect\" href=\"${imgUrl.origin}\">`));     }   }    private queryPreconnectLinks(): Set<string> {     const preconnectUrls = new Set<string>();     const selector = 'link[rel=preconnect]';     const links: HTMLLinkElement[] = Array.from(this.document.querySelectorAll(selector));     for (let link of links) {       const url = getUrl(link.href, this.window!);       preconnectUrls.add(url.origin);     }     return preconnectUrls;   }    ngOnDestroy() {     this.preconnectLinks?.clear();     this.alreadySeen.clear();   } }  /**  * Invokes a callback for each element in the array. Also invokes a callback  * recursively for each nested array.  */ function deepForEach<T>(input: (T|any[])[], fn: (value: T) => void): void {   for (let value of input) {     Array.isArray(value) ? deepForEach(value, fn) : fn(value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken} from '@angular/core';  /**  * In SSR scenarios, a preload `<link>` element is generated for priority images.  * Having a large number of preload tags may negatively affect the performance,  * so we warn developers (by throwing an error) if the number of preloaded images  * is above a certain threshold. This const specifies this threshold.  */ export const DEFAULT_PRELOADED_IMAGES_LIMIT = 5;  /**  * Helps to keep track of priority images that already have a corresponding  * preload tag (to avoid generating multiple preload tags with the same URL).  *  * This Set tracks the original src passed into the `ngSrc` input not the src after it has been  * run through the specified `IMAGE_LOADER`.  */ export const PRELOADED_IMAGES = new InjectionToken<Set<string>>(     'NG_OPTIMIZED_PRELOADED_IMAGES', {providedIn: 'root', factory: () => new Set<string>()}); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {DOCUMENT} from '../../dom_tokens'; import {RuntimeErrorCode} from '../../errors';  import {DEFAULT_PRELOADED_IMAGES_LIMIT, PRELOADED_IMAGES} from './tokens';  /**  * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It  * will also track what images have already had preload link tags added so as to not duplicate link  * tags.  *  * In dev mode this service will validate that the number of preloaded images does not exceed the  * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.  */ @Injectable({providedIn: 'root'}) export class PreloadLinkCreator {   private readonly preloadedImages = inject(PRELOADED_IMAGES);   private readonly document = inject(DOCUMENT);    /**    * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the    * server while using Angular Universal and SSR to kick off image loads for high priority images.    *    * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)    * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`    * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from    * the CDN.    *    * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}    *    * @param renderer The `Renderer2` passed in from the directive    * @param src The original src of the image that is set on the `ngSrc` input.    * @param srcset The parsed and formatted srcset created from the `ngSrcset` input    * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag    */   createPreloadLinkTag(renderer: Renderer2, src: string, srcset?: string, sizes?: string): void {     if (ngDevMode) {       if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {         throw new RuntimeError(             RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES,             ngDevMode &&                 `The \\`NgOptimizedImage\\` directive has detected that more than ` +                     `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +                     `This might negatively affect an overall performance of the page. ` +                     `To fix this, remove the \"priority\" attribute from images with less priority.`);       }     }      if (this.preloadedImages.has(src)) {       return;     }      this.preloadedImages.add(src);      const preload = renderer.createElement('link');     renderer.setAttribute(preload, 'as', 'image');     renderer.setAttribute(preload, 'href', src);     renderer.setAttribute(preload, 'rel', 'preload');     renderer.setAttribute(preload, 'fetchpriority', 'high');      if (sizes) {       renderer.setAttribute(preload, 'imageSizes', sizes);     }      if (srcset) {       renderer.setAttribute(preload, 'imageSrcset', srcset);     }      renderer.appendChild(this.document.head, preload);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, inject, InjectionToken, Injector, Input, NgZone, OnChanges, OnDestroy, OnInit, PLATFORM_ID, Renderer2, SimpleChanges, ɵformatRuntimeError as formatRuntimeError, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../../errors'; import {isPlatformServer} from '../../platform_id';  import {imgDirectiveDetails} from './error_helper'; import {cloudinaryLoaderInfo} from './image_loaders/cloudinary_loader'; import {IMAGE_LOADER, ImageLoader, ImageLoaderConfig, noopImageLoader} from './image_loaders/image_loader'; import {imageKitLoaderInfo} from './image_loaders/imagekit_loader'; import {imgixLoaderInfo} from './image_loaders/imgix_loader'; import {LCPImageObserver} from './lcp_image_observer'; import {PreconnectLinkChecker} from './preconnect_link_checker'; import {PreloadLinkCreator} from './preload-link-creator';  /**  * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,  * an error is thrown. The image content (as a string) might be very long, thus making  * it hard to read an error message if the entire string is included. This const defines  * the number of characters that should be included into the error message. The rest  * of the content is truncated.  */ const BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;  /**  * RegExpr to determine whether a src in a srcset is using width descriptors.  * Should match something like: \"100w, 200w\".  */ const VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\\s*\\d+w\\s*(,|$)){1,})$/;  /**  * RegExpr to determine whether a src in a srcset is using density descriptors.  * Should match something like: \"1x, 2x, 50x\". Also supports decimals like \"1.5x, 1.50x\".  */ const VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\\s*\\d+(\\.\\d+)?x\\s*(,|$)){1,})$/;  /**  * Srcset values with a density descriptor higher than this value will actively  * throw an error. Such densities are not permitted as they cause image sizes  * to be unreasonably large and slow down LCP.  */ export const ABSOLUTE_SRCSET_DENSITY_CAP = 3;  /**  * Used only in error message text to communicate best practices, as we will  * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.  */ export const RECOMMENDED_SRCSET_DENSITY_CAP = 2;  /**  * Used in generating automatic density-based srcsets  */ const DENSITY_SRCSET_MULTIPLIERS = [1, 2];  /**  * Used to determine which breakpoints to use on full-width images  */ const VIEWPORT_BREAKPOINT_CUTOFF = 640; /**  * Used to determine whether two aspect ratios are similar in value.  */ const ASPECT_RATIO_TOLERANCE = .1;  /**  * Used to determine whether the image has been requested at an overly  * large size compared to the actual rendered image size (after taking  * into account a typical device pixel ratio). In pixels.  */ const OVERSIZED_IMAGE_TOLERANCE = 1000;  /**  * Used to limit automatic srcset generation of very large sources for  * fixed-size images. In pixels.  */ const FIXED_SRCSET_WIDTH_LIMIT = 1920; const FIXED_SRCSET_HEIGHT_LIMIT = 1080;   /** Info about built-in loaders we can test for. */ export const BUILT_IN_LOADERS = [imgixLoaderInfo, imageKitLoaderInfo, cloudinaryLoaderInfo];  /**  * A configuration object for the NgOptimizedImage directive. Contains:  * - breakpoints: An array of integer breakpoints used to generate  *      srcsets for responsive images.  *  * Learn more about the responsive image configuration in [the NgOptimizedImage  * guide](guide/image-directive).  * @publicApi  * @developerPreview  */ export type ImageConfig = {   breakpoints?: number[] };  const defaultConfig: ImageConfig = {   breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840], };  /**  * Injection token that configures the image optimized image functionality.  *  * @see `NgOptimizedImage`  * @publicApi  * @developerPreview  */ export const IMAGE_CONFIG = new InjectionToken<ImageConfig>(     'ImageConfig', {providedIn: 'root', factory: () => defaultConfig});  /**  * Directive that improves image loading performance by enforcing best practices.  *  * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is  * prioritized by:  * - Automatically setting the `fetchpriority` attribute on the `<img>` tag  * - Lazy loading non-priority images by default  * - Asserting that there is a corresponding preconnect link tag in the document head  *  * In addition, the directive:  * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided  * - Automatically generates a srcset  * - Requires that `width` and `height` are set  * - Warns if `width` or `height` have been set incorrectly  * - Warns if the image will be visually distorted when rendered  *  * @usageNotes  * The `NgOptimizedImage` directive is marked as [standalone](guide/standalone-components) and can  * be imported directly.  *  * Follow the steps below to enable and use the directive:  * 1. Import it into the necessary NgModule or a standalone Component.  * 2. Optionally provide an `ImageLoader` if you use an image hosting service.  * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.  * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image  * download.  *  * Step 1: import the `NgOptimizedImage` directive.  *  * ```typescript  * import { NgOptimizedImage } from '@angular/common';  *  * // Include it into the necessary NgModule  * @NgModule({  *   imports: [NgOptimizedImage],  * })  * class AppModule {}  *  * // ... or a standalone Component  * @Component({  *   standalone: true  *   imports: [NgOptimizedImage],  * })  * class MyStandaloneComponent {}  * ```  *  * Step 2: configure a loader.  *  * To use the **default loader**: no additional code changes are necessary. The URL returned by the  * generic loader will always match the value of \"src\". In other words, this loader applies no  * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.  *  * To use an existing loader for a **third-party image service**: add the provider factory for your  * chosen service to the `providers` array. In the example below, the Imgix loader is used:  *  * ```typescript  * import {provideImgixLoader} from '@angular/common';  *  * // Call the function and add the result to the `providers` array:  * providers: [  *   provideImgixLoader(\"https://my.base.url/\"),  * ],  * ```  *  * The `NgOptimizedImage` directive provides the following functions:  * - `provideCloudflareLoader`  * - `provideCloudinaryLoader`  * - `provideImageKitLoader`  * - `provideImgixLoader`  *  * If you use a different image provider, you can create a custom loader function as described  * below.  *  * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI  * token.  *  * ```typescript  * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';  *  * // Configure the loader using the `IMAGE_LOADER` token.  * providers: [  *   {  *      provide: IMAGE_LOADER,  *      useValue: (config: ImageLoaderConfig) => {  *        return `https://example.com/${config.src}-${config.width}.jpg}`;  *      }  *   },  * ],  * ```  *  * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.  *  * ```  * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">  * ```  *  * @publicApi  */ @Directive({   standalone: true,   selector: 'img[ngSrc]',   host: {     '[style.position]': 'fill ? \"absolute\" : null',     '[style.width]': 'fill ? \"100%\" : null',     '[style.height]': 'fill ? \"100%\" : null',     '[style.inset]': 'fill ? \"0px\" : null'   } }) export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {   private imageLoader = inject(IMAGE_LOADER);   private config: ImageConfig = processConfig(inject(IMAGE_CONFIG));   private renderer = inject(Renderer2);   private imgElement: HTMLImageElement = inject(ElementRef).nativeElement;   private injector = inject(Injector);   private readonly isServer = isPlatformServer(inject(PLATFORM_ID));   private readonly preloadLinkChecker = inject(PreloadLinkCreator);    // a LCP image observer - should be injected only in the dev mode   private lcpObserver = ngDevMode ? this.injector.get(LCPImageObserver) : null;    /**    * Calculate the rewritten `src` once and store it.    * This is needed to avoid repetitive calculations and make sure the directive cleanup in the    * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other    * instance that might be already destroyed).    */   private _renderedSrc: string|null = null;    /**    * Name of the source image.    * Image name will be processed by the image loader and the final URL will be applied as the `src`    * property of the image.    */   @Input() ngSrc!: string;    /**    * A comma separated list of width or density descriptors.    * The image name will be taken from `ngSrc` and combined with the list of width or density    * descriptors to generate the final `srcset` property of the image.    *    * Example:    * ```    * <img ngSrc=\"hello.jpg\" ngSrcset=\"100w, 200w\" />  =>    * <img src=\"path/hello.jpg\" srcset=\"path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w\" />    * ```    */   @Input() ngSrcset!: string;    /**    * The base `sizes` attribute passed through to the `<img>` element.    * Providing sizes causes the image to create an automatic responsive srcset.    */   @Input() sizes?: string;    /**    * For responsive images: the intrinsic width of the image in pixels.    * For fixed size images: the desired rendered width of the image in pixels.    */   @Input()   set width(value: string|number|undefined) {     ngDevMode && assertGreaterThanZero(this, value, 'width');     this._width = inputToInteger(value);   }   get width(): number|undefined {     return this._width;   }   private _width?: number;    /**    * For responsive images: the intrinsic height of the image in pixels.    * For fixed size images: the desired rendered height of the image in pixels.* The intrinsic    * height of the image in pixels.    */   @Input()   set height(value: string|number|undefined) {     ngDevMode && assertGreaterThanZero(this, value, 'height');     this._height = inputToInteger(value);   }   get height(): number|undefined {     return this._height;   }   private _height?: number;    /**    * The desired loading behavior (lazy, eager, or auto).    *    * Setting images as loading='eager' or loading='auto' marks them    * as non-priority images. Avoid changing this input for priority images.    */   @Input() loading?: 'lazy'|'eager'|'auto';    /**    * Indicates whether this image should have a high priority.    */   @Input()   set priority(value: string|boolean|undefined) {     this._priority = inputToBoolean(value);   }   get priority(): boolean {     return this._priority;   }   private _priority = false;    /**    * Data to pass through to custom loaders.    */   @Input() loaderParams?: {[key: string]: any};    /**    * Disables automatic srcset generation for this image.    */   @Input()   set disableOptimizedSrcset(value: string|boolean|undefined) {     this._disableOptimizedSrcset = inputToBoolean(value);   }   get disableOptimizedSrcset(): boolean {     return this._disableOptimizedSrcset;   }   private _disableOptimizedSrcset = false;    /**    * Sets the image to \"fill mode\", which eliminates the height/width requirement and adds    * styles such that the image fills its containing element.    *    * @developerPreview    */   @Input()   set fill(value: string|boolean|undefined) {     this._fill = inputToBoolean(value);   }   get fill(): boolean {     return this._fill;   }   private _fill = false;    /**    * Value of the `src` attribute if set on the host `<img>` element.    * This input is exclusively read to assert that `src` is not set in conflict    * with `ngSrc` and that images don't start to load until a lazy loading strategy is set.    * @internal    */   @Input() src?: string;    /**    * Value of the `srcset` attribute if set on the host `<img>` element.    * This input is exclusively read to assert that `srcset` is not set in conflict    * with `ngSrcset` and that images don't start to load until a lazy loading strategy is set.    * @internal    */   @Input() srcset?: string;    /** @nodoc */   ngOnInit() {     if (ngDevMode) {       assertNonEmptyInput(this, 'ngSrc', this.ngSrc);       assertValidNgSrcset(this, this.ngSrcset);       assertNoConflictingSrc(this);       if (this.ngSrcset) {         assertNoConflictingSrcset(this);       }       assertNotBase64Image(this);       assertNotBlobUrl(this);       if (this.fill) {         assertEmptyWidthAndHeight(this);         assertNonZeroRenderedHeight(this, this.imgElement, this.renderer);       } else {         assertNonEmptyWidthAndHeight(this);         // Only check for distorted images when not in fill mode, where         // images may be intentionally stretched, cropped or letterboxed.         assertNoImageDistortion(this, this.imgElement, this.renderer);       }       assertValidLoadingInput(this);       if (!this.ngSrcset) {         assertNoComplexSizes(this);       }       assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);       assertNoNgSrcsetWithoutLoader(this, this.imageLoader);       assertNoLoaderParamsWithoutLoader(this, this.imageLoader);       if (this.priority) {         const checker = this.injector.get(PreconnectLinkChecker);         checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);       } else {         // Monitor whether an image is an LCP element only in case         // the `priority` attribute is missing. Otherwise, an image         // has the necessary settings and no extra checks are required.         if (this.lcpObserver !== null) {           const ngZone = this.injector.get(NgZone);           ngZone.runOutsideAngular(() => {             this.lcpObserver!.registerImage(this.getRewrittenSrc(), this.ngSrc);           });         }       }     }     this.setHostAttributes();   }    private setHostAttributes() {     // Must set width/height explicitly in case they are bound (in which case they will     // only be reflected and not found by the browser)     if (this.fill) {       if (!this.sizes) {         this.sizes = '100vw';       }     } else {       this.setHostAttribute('width', this.width!.toString());       this.setHostAttribute('height', this.height!.toString());     }      this.setHostAttribute('loading', this.getLoadingBehavior());     this.setHostAttribute('fetchpriority', this.getFetchPriority());      // The `data-ng-img` attribute flags an image as using the directive, to allow     // for analysis of the directive's performance.     this.setHostAttribute('ng-img', 'true');      // The `src` and `srcset` attributes should be set last since other attributes     // could affect the image's loading behavior.     const rewrittenSrc = this.getRewrittenSrc();     this.setHostAttribute('src', rewrittenSrc);      let rewrittenSrcset: string|undefined = undefined;      if (this.sizes) {       this.setHostAttribute('sizes', this.sizes);     }      if (this.ngSrcset) {       rewrittenSrcset = this.getRewrittenSrcset();     } else if (this.shouldGenerateAutomaticSrcset()) {       rewrittenSrcset = this.getAutomaticSrcset();     }      if (rewrittenSrcset) {       this.setHostAttribute('srcset', rewrittenSrcset);     }      if (this.isServer && this.priority) {       this.preloadLinkChecker.createPreloadLinkTag(           this.renderer, rewrittenSrc, rewrittenSrcset, this.sizes);     }   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (ngDevMode) {       assertNoPostInitInputChange(this, changes, [         'ngSrc',         'ngSrcset',         'width',         'height',         'priority',         'fill',         'loading',         'sizes',         'loaderParams',         'disableOptimizedSrcset',       ]);     }   }    private callImageLoader(configWithoutCustomParams: Omit<ImageLoaderConfig, 'loaderParams'>):       string {     let augmentedConfig: ImageLoaderConfig = configWithoutCustomParams;     if (this.loaderParams) {       augmentedConfig.loaderParams = this.loaderParams;     }     return this.imageLoader(augmentedConfig);   }    private getLoadingBehavior(): string {     if (!this.priority && this.loading !== undefined) {       return this.loading;     }     return this.priority ? 'eager' : 'lazy';   }    private getFetchPriority(): string {     return this.priority ? 'high' : 'auto';   }    private getRewrittenSrc(): string {     // ImageLoaderConfig supports setting a width property. However, we're not setting width here     // because if the developer uses rendered width instead of intrinsic width in the HTML width     // attribute, the image requested may be too small for 2x+ screens.     if (!this._renderedSrc) {       const imgConfig = {src: this.ngSrc};       // Cache calculated image src to reuse it later in the code.       this._renderedSrc = this.callImageLoader(imgConfig);     }     return this._renderedSrc;   }    private getRewrittenSrcset(): string {     const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);     const finalSrcs = this.ngSrcset.split(',').filter(src => src !== '').map(srcStr => {       srcStr = srcStr.trim();       const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width!;       return `${this.callImageLoader({src: this.ngSrc, width})} ${srcStr}`;     });     return finalSrcs.join(', ');   }    private getAutomaticSrcset(): string {     if (this.sizes) {       return this.getResponsiveSrcset();     } else {       return this.getFixedSrcset();     }   }    private getResponsiveSrcset(): string {     const {breakpoints} = this.config;      let filteredBreakpoints = breakpoints!;     if (this.sizes?.trim() === '100vw') {       // Since this is a full-screen-width image, our srcset only needs to include       // breakpoints with full viewport widths.       filteredBreakpoints = breakpoints!.filter(bp => bp >= VIEWPORT_BREAKPOINT_CUTOFF);     }      const finalSrcs = filteredBreakpoints.map(         bp => `${this.callImageLoader({src: this.ngSrc, width: bp})} ${bp}w`);     return finalSrcs.join(', ');   }    private getFixedSrcset(): string {     const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map(multiplier => `${this.callImageLoader({                                                        src: this.ngSrc,                                                        width: this.width! * multiplier                                                      })} ${multiplier}x`);     return finalSrcs.join(', ');   }    private shouldGenerateAutomaticSrcset(): boolean {     return !this._disableOptimizedSrcset && !this.srcset && this.imageLoader !== noopImageLoader &&         !(this.width! > FIXED_SRCSET_WIDTH_LIMIT || this.height! > FIXED_SRCSET_HEIGHT_LIMIT);   }    /** @nodoc */   ngOnDestroy() {     if (ngDevMode) {       if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {         this.lcpObserver.unregisterImage(this._renderedSrc);       }     }   }    private setHostAttribute(name: string, value: string): void {     this.renderer.setAttribute(this.imgElement, name, value);   } }  /***** Helpers *****/  /**  * Convert input value to integer.  */ function inputToInteger(value: string|number|undefined): number|undefined {   return typeof value === 'string' ? parseInt(value, 10) : value; }  /**  * Convert input value to boolean.  */ function inputToBoolean(value: unknown): boolean {   return value != null && `${value}` !== 'false'; }  /**  * Sorts provided config breakpoints and uses defaults.  */ function processConfig(config: ImageConfig): ImageConfig {   let sortedBreakpoints: {breakpoints?: number[]} = {};   if (config.breakpoints) {     sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);   }   return Object.assign({}, defaultConfig, config, sortedBreakpoints); }  /***** Assert functions *****/  /**  * Verifies that there is no `src` set on a host element.  */ function assertNoConflictingSrc(dir: NgOptimizedImage) {   if (dir.src) {     throw new RuntimeError(         RuntimeErrorCode.UNEXPECTED_SRC_ATTR,         `${imgDirectiveDetails(dir.ngSrc)} both \\`src\\` and \\`ngSrc\\` have been set. ` +             `Supplying both of these attributes breaks lazy loading. ` +             `The NgOptimizedImage directive sets \\`src\\` itself based on the value of \\`ngSrc\\`. ` +             `To fix this, please remove the \\`src\\` attribute.`);   } }  /**  * Verifies that there is no `srcset` set on a host element.  */ function assertNoConflictingSrcset(dir: NgOptimizedImage) {   if (dir.srcset) {     throw new RuntimeError(         RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR,         `${imgDirectiveDetails(dir.ngSrc)} both \\`srcset\\` and \\`ngSrcset\\` have been set. ` +             `Supplying both of these attributes breaks lazy loading. ` +             `The NgOptimizedImage directive sets \\`srcset\\` itself based on the value of ` +             `\\`ngSrcset\\`. To fix this, please remove the \\`srcset\\` attribute.`);   } }  /**  * Verifies that the `ngSrc` is not a Base64-encoded image.  */ function assertNotBase64Image(dir: NgOptimizedImage) {   let ngSrc = dir.ngSrc.trim();   if (ngSrc.startsWith('data:')) {     if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {       ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';     }     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc, false)} \\`ngSrc\\` is a Base64-encoded string ` +             `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` +             `To fix this, disable the NgOptimizedImage directive for this element ` +             `by removing \\`ngSrc\\` and using a standard \\`src\\` attribute instead.`);   } }  /**  * Verifies that the 'sizes' only includes responsive values.  */ function assertNoComplexSizes(dir: NgOptimizedImage) {   let sizes = dir.sizes;   if (sizes?.match(/((\\)|,)\\s|^)\\d+px/)) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc, false)} \\`sizes\\` was set to a string including ` +             `pixel values. For automatic \\`srcset\\` generation, \\`sizes\\` must only include responsive ` +             `values, such as \\`sizes=\"50vw\"\\` or \\`sizes=\"(min-width: 768px) 50vw, 100vw\"\\`. ` +             `To fix this, modify the \\`sizes\\` attribute, or provide your own \\`ngSrcset\\` value directly.`);   } }  /**  * Verifies that the `ngSrc` is not a Blob URL.  */ function assertNotBlobUrl(dir: NgOptimizedImage) {   const ngSrc = dir.ngSrc.trim();   if (ngSrc.startsWith('blob:')) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrc\\` was set to a blob URL (${ngSrc}). ` +             `Blob URLs are not supported by the NgOptimizedImage directive. ` +             `To fix this, disable the NgOptimizedImage directive for this element ` +             `by removing \\`ngSrc\\` and using a regular \\`src\\` attribute instead.`);   } }  /**  * Verifies that the input is set to a non-empty string.  */ function assertNonEmptyInput(dir: NgOptimizedImage, name: string, value: unknown) {   const isString = typeof value === 'string';   const isEmptyString = isString && value.trim() === '';   if (!isString || isEmptyString) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`${name}\\` has an invalid value ` +             `(\\`${value}\\`). To fix this, change the value to a non-empty string.`);   } }  /**  * Verifies that the `ngSrcset` is in a valid format, e.g. \"100w, 200w\" or \"1x, 2x\".  */ export function assertValidNgSrcset(dir: NgOptimizedImage, value: unknown) {   if (value == null) return;   assertNonEmptyInput(dir, 'ngSrcset', value);   const stringVal = value as string;   const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);   const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);    if (isValidDensityDescriptor) {     assertUnderDensityCap(dir, stringVal);   }    const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;   if (!isValidSrcset) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrcset\\` has an invalid value (\\`${value}\\`). ` +             `To fix this, supply \\`ngSrcset\\` using a comma-separated list of one or more width ` +             `descriptors (e.g. \"100w, 200w\") or density descriptors (e.g. \"1x, 2x\").`);   } }  function assertUnderDensityCap(dir: NgOptimizedImage, value: string) {   const underDensityCap =       value.split(',').every(num => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);   if (!underDensityCap) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${             imgDirectiveDetails(                 dir.ngSrc)} the \\`ngSrcset\\` contains an unsupported image density:` +             `\\`${value}\\`. NgOptimizedImage generally recommends a max image density of ` +             `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` +             `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` +             `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` +             `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` +             `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);   } }  /**  * Creates a `RuntimeError` instance to represent a situation when an input is set after  * the directive has initialized.  */ function postInitInputChangeError(dir: NgOptimizedImage, inputName: string): {} {   let reason!: string;   if (inputName === 'width' || inputName === 'height') {     reason = `Changing \\`${inputName}\\` may result in different attribute value ` +         `applied to the underlying image element and cause layout shifts on a page.`;   } else {     reason = `Changing the \\`${inputName}\\` would have no effect on the underlying ` +         `image element, because the resource loading has already occurred.`;   }   return new RuntimeError(       RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE,       `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` was updated after initialization. ` +           `The NgOptimizedImage directive will not react to this input change. ${reason} ` +           `To fix this, either switch \\`${inputName}\\` to a static value ` +           `or wrap the image element in an *ngIf that is gated on the necessary value.`); }  /**  * Verify that none of the listed inputs has changed.  */ function assertNoPostInitInputChange(     dir: NgOptimizedImage, changes: SimpleChanges, inputs: string[]) {   inputs.forEach(input => {     const isUpdated = changes.hasOwnProperty(input);     if (isUpdated && !changes[input].isFirstChange()) {       if (input === 'ngSrc') {         // When the `ngSrc` input changes, we detect that only in the         // `ngOnChanges` hook, thus the `ngSrc` is already set. We use         // `ngSrc` in the error message, so we use a previous value, but         // not the updated one in it.         dir = {ngSrc: changes[input].previousValue} as NgOptimizedImage;       }       throw postInitInputChangeError(dir, input);     }   }); }  /**  * Verifies that a specified input is a number greater than 0.  */ function assertGreaterThanZero(dir: NgOptimizedImage, inputValue: unknown, inputName: string) {   const validNumber = typeof inputValue === 'number' && inputValue > 0;   const validString =       typeof inputValue === 'string' && /^\\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;   if (!validNumber && !validString) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` has an invalid value ` +             `(\\`${inputValue}\\`). To fix this, provide \\`${inputName}\\` ` +             `as a number greater than 0.`);   } }  /**  * Verifies that the rendered image is not visually distorted. Effectively this is checking:  * - Whether the \"width\" and \"height\" attributes reflect the actual dimensions of the image.  * - Whether image styling is \"correct\" (see below for a longer explanation).  */ function assertNoImageDistortion(     dir: NgOptimizedImage, img: HTMLImageElement, renderer: Renderer2) {   const removeListenerFn = renderer.listen(img, 'load', () => {     removeListenerFn();     const renderedWidth = img.clientWidth;     const renderedHeight = img.clientHeight;     const renderedAspectRatio = renderedWidth / renderedHeight;     const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;      const intrinsicWidth = img.naturalWidth;     const intrinsicHeight = img.naturalHeight;     const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;      const suppliedWidth = dir.width!;     const suppliedHeight = dir.height!;     const suppliedAspectRatio = suppliedWidth / suppliedHeight;      // Tolerance is used to account for the impact of subpixel rendering.     // Due to subpixel rendering, the rendered, intrinsic, and supplied     // aspect ratios of a correctly configured image may not exactly match.     // For example, a `width=4030 height=3020` image might have a rendered     // size of \"1062w, 796.48h\". (An aspect ratio of 1.334... vs. 1.333...)     const inaccurateDimensions =         Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;     const stylingDistortion = nonZeroRenderedDimensions &&         Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;      if (inaccurateDimensions) {       console.warn(formatRuntimeError(           RuntimeErrorCode.INVALID_INPUT,           `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` +               `the aspect ratio indicated by the width and height attributes. ` +               `\ Intrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +               `(aspect-ratio: ${intrinsicAspectRatio}). \ Supplied width and height attributes: ` +               `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${suppliedAspectRatio}). ` +               `\ To fix this, update the width and height attributes.`));     } else if (stylingDistortion) {       console.warn(formatRuntimeError(           RuntimeErrorCode.INVALID_INPUT,           `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` +               `does not match the image's intrinsic aspect ratio. ` +               `\ Intrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +               `(aspect-ratio: ${intrinsicAspectRatio}). \ Rendered image size: ` +               `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` +               `${renderedAspectRatio}). \ This issue can occur if \"width\" and \"height\" ` +               `attributes are added to an image without updating the corresponding ` +               `image styling. To fix this, adjust image styling. In most cases, ` +               `adding \"height: auto\" or \"width: auto\" to the image styling will fix ` +               `this issue.`));     } else if (!dir.ngSrcset && nonZeroRenderedDimensions) {       // If `ngSrcset` hasn't been set, sanity check the intrinsic size.       const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;       const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;       const oversizedWidth = (intrinsicWidth - recommendedWidth) >= OVERSIZED_IMAGE_TOLERANCE;       const oversizedHeight = (intrinsicHeight - recommendedHeight) >= OVERSIZED_IMAGE_TOLERANCE;       if (oversizedWidth || oversizedHeight) {         console.warn(formatRuntimeError(             RuntimeErrorCode.OVERSIZED_IMAGE,             `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` +                 `larger than necessary. ` +                 `\ Rendered image size: ${renderedWidth}w x ${renderedHeight}h. ` +                 `\ Intrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` +                 `\ Recommended intrinsic image size: ${recommendedWidth}w x ${                     recommendedHeight}h. ` +                 `\ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of ` +                 `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` +                 `or consider using the \"ngSrcset\" and \"sizes\" attributes.`));       }     }   }); }  /**  * Verifies that a specified input is set.  */ function assertNonEmptyWidthAndHeight(dir: NgOptimizedImage) {   let missingAttributes = [];   if (dir.width === undefined) missingAttributes.push('width');   if (dir.height === undefined) missingAttributes.push('height');   if (missingAttributes.length > 0) {     throw new RuntimeError(         RuntimeErrorCode.REQUIRED_INPUT_MISSING,         `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` +             `are missing: ${missingAttributes.map(attr => `\"${attr}\"`).join(', ')}. ` +             `Including \"width\" and \"height\" attributes will prevent image-related layout shifts. ` +             `To fix this, include \"width\" and \"height\" attributes on the image tag or turn on ` +             `\"fill\" mode with the \\`fill\\` attribute.`);   } }  /**  * Verifies that width and height are not set. Used in fill mode, where those attributes don't make  * sense.  */ function assertEmptyWidthAndHeight(dir: NgOptimizedImage) {   if (dir.width || dir.height) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${             imgDirectiveDetails(                 dir.ngSrc)} the attributes \\`height\\` and/or \\`width\\` are present ` +             `along with the \\`fill\\` attribute. Because \\`fill\\` mode causes an image to fill its containing ` +             `element, the size attributes have no effect and should be removed.`);   } }  /**  * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides  * guidance that this can be caused by the containing element's CSS position property.  */ function assertNonZeroRenderedHeight(     dir: NgOptimizedImage, img: HTMLImageElement, renderer: Renderer2) {   const removeListenerFn = renderer.listen(img, 'load', () => {     removeListenerFn();     const renderedHeight = img.clientHeight;     if (dir.fill && renderedHeight === 0) {       console.warn(formatRuntimeError(           RuntimeErrorCode.INVALID_INPUT,           `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` +               `This is likely because the containing element does not have the CSS 'position' ` +               `property set to one of the following: \"relative\", \"fixed\", or \"absolute\". ` +               `To fix this problem, make sure the container element has the CSS 'position' ` +               `property defined and the height of the element is not zero.`));     }   }); }  /**  * Verifies that the `loading` attribute is set to a valid input &  * is not used on priority images.  */ function assertValidLoadingInput(dir: NgOptimizedImage) {   if (dir.loading && dir.priority) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +             `was used on an image that was marked \"priority\". ` +             `Setting \\`loading\\` on priority images is not allowed ` +             `because these images will always be eagerly loaded. ` +             `To fix this, remove the “loading” attribute from the priority image.`);   }   const validInputs = ['auto', 'eager', 'lazy'];   if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +             `has an invalid value (\\`${dir.loading}\\`). ` +             `To fix this, provide a valid value (\"lazy\", \"eager\", or \"auto\").`);   } }  /**  * Warns if NOT using a loader (falling back to the generic loader) and  * the image appears to be hosted on one of the image CDNs for which  * we do have a built-in image loader. Suggests switching to the  * built-in loader.  *  * @param ngSrc Value of the ngSrc attribute  * @param imageLoader ImageLoader provided  */ function assertNotMissingBuiltInLoader(ngSrc: string, imageLoader: ImageLoader) {   if (imageLoader === noopImageLoader) {     let builtInLoaderName = '';     for (const loader of BUILT_IN_LOADERS) {       if (loader.testUrl(ngSrc)) {         builtInLoaderName = loader.name;         break;       }     }     if (builtInLoaderName) {       console.warn(formatRuntimeError(           RuntimeErrorCode.MISSING_BUILTIN_LOADER,           `NgOptimizedImage: It looks like your images may be hosted on the ` +               `${builtInLoaderName} CDN, but your app is not using Angular's ` +               `built-in loader for that CDN. We recommend switching to use ` +               `the built-in by calling \\`provide${builtInLoaderName}Loader()\\` ` +               `in your \\`providers\\` and passing it your instance's base URL. ` +               `If you don't want to use the built-in loader, define a custom ` +               `loader function using IMAGE_LOADER to silence this warning.`));     }   } }  /**  * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).  */ function assertNoNgSrcsetWithoutLoader(dir: NgOptimizedImage, imageLoader: ImageLoader) {   if (dir.ngSrcset && imageLoader === noopImageLoader) {     console.warn(formatRuntimeError(         RuntimeErrorCode.MISSING_NECESSARY_LOADER,         `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` attribute is present but ` +             `no image loader is configured (i.e. the default one is being used), ` +             `which would result in the same image being used for all configured sizes. ` +             `To fix this, provide a loader or remove the \\`ngSrcset\\` attribute from the image.`));   } }  /**  * Warns if loaderParams is present and no loader is configured (i.e. the default one is being  * used).  */ function assertNoLoaderParamsWithoutLoader(dir: NgOptimizedImage, imageLoader: ImageLoader) {   if (dir.loaderParams && imageLoader === noopImageLoader) {     console.warn(formatRuntimeError(         RuntimeErrorCode.MISSING_NECESSARY_LOADER,         `${imgDirectiveDetails(dir.ngSrc)} the \\`loaderParams\\` attribute is present but ` +             `no image loader is configured (i.e. the default one is being used), ` +             `which means that the loaderParams data will not be consumed and will not affect the URL. ` +             `To fix this, provide a custom loader or remove the \\`loaderParams\\` attribute from the image.`));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // These exports represent the set of symbols exposed as a public API. export {provideCloudflareLoader} from './image_loaders/cloudflare_loader'; export {provideCloudinaryLoader} from './image_loaders/cloudinary_loader'; export {IMAGE_LOADER, ImageLoader, ImageLoaderConfig} from './image_loaders/image_loader'; export {provideImageKitLoader} from './image_loaders/imagekit_loader'; export {provideImgixLoader} from './image_loaders/imgix_loader'; export {IMAGE_CONFIG, ImageConfig, NgOptimizedImage} from './ng_optimized_image'; export {PRECONNECT_CHECK_BLOCKLIST} from './preconnect_link_checker'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the common package.  */ export * from './private_export'; export * from './location/index'; export {formatDate} from './i18n/format_date'; export {formatCurrency, formatNumber, formatPercent} from './i18n/format_number'; export {NgLocaleLocalization, NgLocalization} from './i18n/localization'; export {registerLocaleData} from './i18n/locale_data'; export {Plural, NumberFormatStyle, FormStyle, Time, TranslationWidth, FormatWidth, NumberSymbol, WeekDay, getNumberOfCurrencyDigits, getCurrencySymbol, getLocaleDayPeriods, getLocaleDayNames, getLocaleMonthNames, getLocaleId, getLocaleEraNames, getLocaleWeekEndRange, getLocaleFirstDayOfWeek, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocalePluralCase, getLocaleTimeFormat, getLocaleNumberSymbol, getLocaleNumberFormat, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDirection} from './i18n/locale_data_api'; export {parseCookieValue as ɵparseCookieValue} from './cookie'; export {CommonModule} from './common_module'; export {NgClass, NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NgComponentOutlet} from './directives/index'; export {DOCUMENT} from './dom_tokens'; export {AsyncPipe, DatePipe, DatePipeConfig, DATE_PIPE_DEFAULT_TIMEZONE, DATE_PIPE_DEFAULT_OPTIONS, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe, TitleCasePipe, KeyValuePipe, KeyValue} from './pipes/index'; export {PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi} from './platform_id'; export {VERSION} from './version'; export {ViewportScroller, NullViewportScroller as ɵNullViewportScroller} from './viewport_scroller'; export {XhrFactory} from './xhr'; export {IMAGE_CONFIG, ImageConfig, IMAGE_LOADER, ImageLoader, ImageLoaderConfig, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader} from './directives/ng_optimized_image'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/common';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["i1.LocationStrategy","stringify","RuntimeError","i1.NgLocalization","i1.NgClass","i2.NgComponentOutlet","i3.NgForOf","i4.NgIf","i5.NgTemplateOutlet","i6.NgStyle","i7.NgSwitch","i7.NgSwitchCase","i7.NgSwitchDefault","i8.NgPlural","i8.NgPluralCase","i9.AsyncPipe","i10.UpperCasePipe","i10.LowerCasePipe","i11.JsonPipe","i12.SlicePipe","i13.DecimalPipe","i13.PercentPipe","i10.TitleCasePipe","i13.CurrencyPipe","i14.DatePipe","i15.I18nPluralPipe","i16.I18nSelectPipe","i17.KeyValuePipe","formatRuntimeError"],"mappings":";;;;;;;;;AAQA,IAAI,IAAI,GAAe,IAAK,CAAC;SAEb,MAAM,GAAA;AACpB,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAEK,SAAU,iBAAiB,CAAC,OAAmB,EAAA;IACnD,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,OAAO,CAAC;AAChB,KAAA;AACH,CAAC;AAED;AACA;;;;;AAKG;MACmB,UAAU,CAAA;AAgC/B;;ACjDD;;;;;;;AAOG;MACU,QAAQ,GAAG,IAAI,cAAc,CAAW,eAAe;;ACLpE;;;;;;;;;;;;;;;;;;;;;AAqBG;MAMmB,gBAAgB,CAAA;AA4BpC,IAAA,SAAS,CAAE,gBAAwB,EAAA;AACjC,QAAA,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACpC;;wHA9BmB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA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EAAE,WAAwB,EAAA;AACpF,IAAA,IAAI,GAAG,CAAC,QAAQ,IAAI,WAAW,KAAK,eAAe,EAAE;AACnD,QAAA,OAAO,CAAC,IAAI,CAACA,mBAAkB,CAE3B,IAAA,kDAAA,CAAA,EAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAA6C,2CAAA,CAAA;YAC1E,CAAsE,oEAAA,CAAA;YACtE,CAA4E,0EAAA,CAAA;YAC5E,CAAoF,kFAAA,CAAA,CAAC,CAAC,CAAC;AAChG,KAAA;AACH,CAAC;AAED;;;AAGG;AACH,SAAS,iCAAiC,CAAC,GAAqB,EAAE,WAAwB,EAAA;AACxF,IAAA,IAAI,GAAG,CAAC,YAAY,IAAI,WAAW,KAAK,eAAe,EAAE;AACvD,QAAA,OAAO,CAAC,IAAI,CAACA,mBAAkB,CAE3B,IAAA,kDAAA,CAAA,EAAG,mBAAmB,CAAC,GAAG,CAAC,KAAK,CAAC,CAAiD,+CAAA,CAAA;YAC9E,CAAsE,oEAAA,CAAA;YACtE,CAA2F,yFAAA,CAAA;YAC3F,CAA+F,6FAAA,CAAA,CAAC,CAAC,CAAC;AAC3G,KAAA;AACH;;ACj+BA;;ACAA;;;;AAIG;;ACJH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 41 --------------------
{"version":3,"file":"common.mjs","sources":["../../../../../../packages/common/src/dom_adapter.ts","../../../../../../packages/common/src/dom_tokens.ts","../../../../../../packages/common/src/location/platform_location.ts","../../../../../../packages/common/src/location/util.ts","../../../../../../packages/common/src/location/location_strategy.ts","../../../../../../packages/common/src/location/hash_location_strategy.ts","../../../../../../packages/common/src/location/location.ts","../../../../../../packages/common/src/i18n/currencies.ts","../../../../../../packages/common/src/i18n/locale_data_api.ts","../../../../../../packages/common/src/i18n/format_date.ts","../../../../../../packages/common/src/i18n/format_number.ts","../../../../../../packages/common/src/i18n/localization.ts","../../../../../../packages/common/src/i18n/locale_data.ts","../../../../../../packages/common/src/cookie.ts","../../../../../../packages/common/src/directives/ng_class.ts","../../../../../../packages/common/src/directives/ng_component_outlet.ts","../../../../../../packages/common/src/directives/ng_for_of.ts","../../../../../../packages/common/src/directives/ng_if.ts","../../../../../../packages/common/src/directives/ng_switch.ts","../../../../../../packages/common/src/directives/ng_plural.ts","../../../../../../packages/common/src/directives/ng_style.ts","../../../../../../packages/common/src/directives/ng_template_outlet.ts","../../../../../../packages/common/src/directives/index.ts","../../../../../../packages/common/src/pipes/invalid_pipe_argument_error.ts","../../../../../../packages/common/src/pipes/async_pipe.ts","../../../../../../packages/common/src/pipes/case_conversion_pipes.ts","../../../../../../packages/common/src/pipes/date_pipe_config.ts","../../../../../../packages/common/src/pipes/date_pipe.ts","../../../../../../packages/common/src/pipes/i18n_plural_pipe.ts","../../../../../../packages/common/src/pipes/i18n_select_pipe.ts","../../../../../../packages/common/src/pipes/json_pipe.ts","../../../../../../packages/common/src/pipes/keyvalue_pipe.ts","../../../../../../packages/common/src/pipes/number_pipe.ts","../../../../../../packages/common/src/pipes/slice_pipe.ts","../../../../../../packages/common/src/pipes/index.ts","../../../../../../packages/common/src/common_module.ts","../../../../../../packages/common/src/platform_id.ts","../../../../../../packages/common/src/version.ts","../../../../../../packages/common/src/viewport_scroller.ts","../../../../../../packages/common/src/xhr.ts","../../../../../../packages/common/src/directives/ng_optimized_image/url.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/image_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/cloudflare_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/imagekit_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/image_loaders/imgix_loader.ts","../../../../../../packages/common/src/directives/ng_optimized_image/error_helper.ts","../../../../../../packages/common/src/directives/ng_optimized_image/asserts.ts","../../../../../../packages/common/src/directives/ng_optimized_image/lcp_image_observer.ts","../../../../../../packages/common/src/directives/ng_optimized_image/preconnect_link_checker.ts","../../../../../../packages/common/src/directives/ng_optimized_image/tokens.ts","../../../../../../packages/common/src/directives/ng_optimized_image/preload-link-creator.ts","../../../../../../packages/common/src/directives/ng_optimized_image/ng_optimized_image.ts","../../../../../../packages/common/src/directives/ng_optimized_image/index.ts","../../../../../../packages/common/src/common.ts","../../../../../../packages/common/public_api.ts","../../../../../../packages/common/index.ts","../../../../../../packages/common/common.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  let _DOM: DomAdapter = null!;  export function getDOM(): DomAdapter {   return _DOM; }  export function setRootDomAdapter(adapter: DomAdapter) {   if (!_DOM) {     _DOM = adapter;   } }  /* tslint:disable:requireParameterType */ /**  * Provides DOM operations in an environment-agnostic way.  *  * @security Tread carefully! Interacting with the DOM directly is dangerous and  * can introduce XSS risks.  */ export abstract class DomAdapter {   // Needs Domino-friendly test utility   abstract dispatchEvent(el: any, evt: any): any;   abstract readonly supportsDOMEvents: boolean;    // Used by Meta   abstract remove(el: any): void;   abstract createElement(tagName: any, doc?: any): HTMLElement;   abstract createHtmlDocument(): Document;   abstract getDefaultDocument(): Document;    // Used by By.css   abstract isElementNode(node: any): boolean;    // Used by Testability   abstract isShadowRoot(node: any): boolean;    // Used by KeyEventsPlugin   abstract onAndCancel(el: any, evt: any, listener: any): Function;    // Used by PlatformLocation and ServerEventManagerPlugin   abstract getGlobalEventTarget(doc: Document, target: string): any;    // Used by PlatformLocation   abstract getBaseHref(doc: Document): string|null;   abstract resetBaseElement(): void;    // TODO: remove dependency in DefaultValueAccessor   abstract getUserAgent(): string;    // Used in the legacy @angular/http package which has some usage in g3.   abstract getCookie(name: string): string|null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken} from '@angular/core';  /**  * A DI Token representing the main rendering context. In a browser this is the DOM Document.  *  * Note: Document might not be available in the Application Context when Application and Rendering  * Contexts are not the same (e.g. when running the application in a Web Worker).  *  * @publicApi  */ export const DOCUMENT = new InjectionToken<Document>('DocumentToken'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, Injectable, InjectionToken, ɵɵinject} from '@angular/core';  import {getDOM} from '../dom_adapter'; import {DOCUMENT} from '../dom_tokens';  /**  * This class should not be used directly by an application developer. Instead, use  * {@link Location}.  *  * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be  * platform-agnostic.  * This means that we can have different implementation of `PlatformLocation` for the different  * platforms that Angular supports. For example, `@angular/platform-browser` provides an  * implementation specific to the browser environment, while `@angular/platform-server` provides  * one suitable for use with server-side rendering.  *  * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}  * when they need to interact with the DOM APIs like pushState, popState, etc.  *  * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly  * by the {@link Router} in order to navigate between routes. Since all interactions between {@link  * Router} /  * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`  * class, they are all platform-agnostic.  *  * @publicApi  */ @Injectable({   providedIn: 'platform',   // See #23917   useFactory: useBrowserPlatformLocation }) export abstract class PlatformLocation {   abstract getBaseHrefFromDOM(): string;   abstract getState(): unknown;   /**    * Returns a function that, when executed, removes the `popstate` event handler.    */   abstract onPopState(fn: LocationChangeListener): VoidFunction;   /**    * Returns a function that, when executed, removes the `hashchange` event handler.    */   abstract onHashChange(fn: LocationChangeListener): VoidFunction;    abstract get href(): string;   abstract get protocol(): string;   abstract get hostname(): string;   abstract get port(): string;   abstract get pathname(): string;   abstract get search(): string;   abstract get hash(): string;    abstract replaceState(state: any, title: string, url: string): void;    abstract pushState(state: any, title: string, url: string): void;    abstract forward(): void;    abstract back(): void;    historyGo?(relativePosition: number): void {     throw new Error('Not implemented');   } }  export function useBrowserPlatformLocation() {   return ɵɵinject(BrowserPlatformLocation); }  /**  * @description  * Indicates when a location is initialized.  *  * @publicApi  */ export const LOCATION_INITIALIZED = new InjectionToken<Promise<any>>('Location Initialized');  /**  * @description  * A serializable version of the event from `onPopState` or `onHashChange`  *  * @publicApi  */ export interface LocationChangeEvent {   type: string;   state: any; }  /**  * @publicApi  */ export interface LocationChangeListener {   (event: LocationChangeEvent): any; }    /**  * `PlatformLocation` encapsulates all of the direct calls to platform APIs.  * This class should not be used directly by an application developer. Instead, use  * {@link Location}.  *  * @publicApi  */ @Injectable({   providedIn: 'platform',   // See #23917   useFactory: createBrowserPlatformLocation, }) export class BrowserPlatformLocation extends PlatformLocation {   private _location: Location;   private _history: History;    constructor(@Inject(DOCUMENT) private _doc: any) {     super();     this._location = window.location;     this._history = window.history;   }    override getBaseHrefFromDOM(): string {     return getDOM().getBaseHref(this._doc)!;   }    override onPopState(fn: LocationChangeListener): VoidFunction {     const window = getDOM().getGlobalEventTarget(this._doc, 'window');     window.addEventListener('popstate', fn, false);     return () => window.removeEventListener('popstate', fn);   }    override onHashChange(fn: LocationChangeListener): VoidFunction {     const window = getDOM().getGlobalEventTarget(this._doc, 'window');     window.addEventListener('hashchange', fn, false);     return () => window.removeEventListener('hashchange', fn);   }    override get href(): string {     return this._location.href;   }   override get protocol(): string {     return this._location.protocol;   }   override get hostname(): string {     return this._location.hostname;   }   override get port(): string {     return this._location.port;   }   override get pathname(): string {     return this._location.pathname;   }   override get search(): string {     return this._location.search;   }   override get hash(): string {     return this._location.hash;   }   override set pathname(newPath: string) {     this._location.pathname = newPath;   }    override pushState(state: any, title: string, url: string): void {     if (supportsState()) {       this._history.pushState(state, title, url);     } else {       this._location.hash = url;     }   }    override replaceState(state: any, title: string, url: string): void {     if (supportsState()) {       this._history.replaceState(state, title, url);     } else {       this._location.hash = url;     }   }    override forward(): void {     this._history.forward();   }    override back(): void {     this._history.back();   }    override historyGo(relativePosition: number = 0): void {     this._history.go(relativePosition);   }    override getState(): unknown {     return this._history.state;   } }  export function supportsState(): boolean {   return !!window.history.pushState; } export function createBrowserPlatformLocation() {   return new BrowserPlatformLocation(ɵɵinject(DOCUMENT)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */   /**  * Joins two parts of a URL with a slash if needed.  *  * @param start  URL string  * @param end    URL string  *  *  * @returns The joined URL string.  */ export function joinWithSlash(start: string, end: string): string {   if (start.length == 0) {     return end;   }   if (end.length == 0) {     return start;   }   let slashes = 0;   if (start.endsWith('/')) {     slashes++;   }   if (end.startsWith('/')) {     slashes++;   }   if (slashes == 2) {     return start + end.substring(1);   }   if (slashes == 1) {     return start + end;   }   return start + '/' + end; }  /**  * Removes a trailing slash from a URL string if needed.  * Looks for the first occurrence of either `#`, `?`, or the end of the  * line as `/` characters and removes the trailing slash if one exists.  *  * @param url URL string.  *  * @returns The URL string, modified if needed.  */ export function stripTrailingSlash(url: string): string {   const match = url.match(/#|\\?|$/);   const pathEndIdx = match && match.index || url.length;   const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);   return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx); }  /**  * Normalizes URL parameters by prepending with `?` if needed.  *  * @param  params String of URL parameters.  *  * @returns The normalized URL parameters string.  */ export function normalizeQueryParams(params: string): string {   return params && params[0] !== '?' ? '?' + params : params; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, inject, Injectable, InjectionToken, OnDestroy, Optional} from '@angular/core';  import {DOCUMENT} from '../dom_tokens';  import {LocationChangeListener, PlatformLocation} from './platform_location'; import {joinWithSlash, normalizeQueryParams} from './util';  /**  * Enables the `Location` service to read route state from the browser's URL.  * Angular provides two strategies:  * `HashLocationStrategy` and `PathLocationStrategy`.  *  * Applications should use the `Router` or `Location` services to  * interact with application route state.  *  * For instance, `HashLocationStrategy` produces URLs like  * <code class=\"no-auto-link\">http://example.com#/foo</code>,  * and `PathLocationStrategy` produces  * <code class=\"no-auto-link\">http://example.com/foo</code> as an equivalent URL.  *  * See these two classes for more.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => inject(PathLocationStrategy)}) export abstract class LocationStrategy {   abstract path(includeHash?: boolean): string;   abstract prepareExternalUrl(internal: string): string;   abstract getState(): unknown;   abstract pushState(state: any, title: string, url: string, queryParams: string): void;   abstract replaceState(state: any, title: string, url: string, queryParams: string): void;   abstract forward(): void;   abstract back(): void;   historyGo?(relativePosition: number): void {     throw new Error('Not implemented');   }   abstract onPopState(fn: LocationChangeListener): void;   abstract getBaseHref(): string; }  /**  * A predefined [DI token](guide/glossary#di-token) for the base href  * to be used with the `PathLocationStrategy`.  * The base href is the URL prefix that should be preserved when generating  * and recognizing URLs.  *  * @usageNotes  *  * The following example shows how to use this token to configure the root app injector  * with a base href value, so that the DI framework can supply the dependency anywhere in the app.  *  * ```typescript  * import {Component, NgModule} from '@angular/core';  * import {APP_BASE_HREF} from '@angular/common';  *  * @NgModule({  *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]  * })  * class AppModule {}  * ```  *  * @publicApi  */ export const APP_BASE_HREF = new InjectionToken<string>('appBaseHref');  /**  * @description  * A {@link LocationStrategy} used to configure the {@link Location} service to  * represent its state in the  * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the  * browser's URL.  *  * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}  * or add a `<base href>` element to the document to override the default.  *  * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call  * `location.go('/foo')`, the browser's URL will become  * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,  * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.  *  * Similarly, if you add `<base href='/my/app/'/>` to the document and call  * `location.go('/foo')`, the browser's URL will become  * `example.com/my/app/foo`.  *  * Note that when using `PathLocationStrategy`, neither the query nor  * the fragment in the `<base href>` will be preserved, as outlined  * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).  *  * @usageNotes  *  * ### Example  *  * {@example common/location/ts/path_location_component.ts region='LocationComponent'}  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class PathLocationStrategy extends LocationStrategy implements OnDestroy {   private _baseHref: string;   private _removeListenerFns: (() => void)[] = [];    constructor(       private _platformLocation: PlatformLocation,       @Optional() @Inject(APP_BASE_HREF) href?: string) {     super();      this._baseHref = href ?? this._platformLocation.getBaseHrefFromDOM() ??         inject(DOCUMENT).location?.origin ?? '';   }    /** @nodoc */   ngOnDestroy(): void {     while (this._removeListenerFns.length) {       this._removeListenerFns.pop()!();     }   }    override onPopState(fn: LocationChangeListener): void {     this._removeListenerFns.push(         this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));   }    override getBaseHref(): string {     return this._baseHref;   }    override prepareExternalUrl(internal: string): string {     return joinWithSlash(this._baseHref, internal);   }    override path(includeHash: boolean = false): string {     const pathname =         this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);     const hash = this._platformLocation.hash;     return hash && includeHash ? `${pathname}${hash}` : pathname;   }    override pushState(state: any, title: string, url: string, queryParams: string) {     const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));     this._platformLocation.pushState(state, title, externalUrl);   }    override replaceState(state: any, title: string, url: string, queryParams: string) {     const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));     this._platformLocation.replaceState(state, title, externalUrl);   }    override forward(): void {     this._platformLocation.forward();   }    override back(): void {     this._platformLocation.back();   }    override getState(): unknown {     return this._platformLocation.getState();   }    override historyGo(relativePosition: number = 0): void {     this._platformLocation.historyGo?.(relativePosition);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, Injectable, OnDestroy, Optional} from '@angular/core';  import {APP_BASE_HREF, LocationStrategy} from './location_strategy'; import {LocationChangeListener, PlatformLocation} from './platform_location'; import {joinWithSlash, normalizeQueryParams} from './util';    /**  * @description  * A {@link LocationStrategy} used to configure the {@link Location} service to  * represent its state in the  * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)  * of the browser's URL.  *  * For instance, if you call `location.go('/foo')`, the browser's URL will become  * `example.com#/foo`.  *  * @usageNotes  *  * ### Example  *  * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}  *  * @publicApi  */ @Injectable() export class HashLocationStrategy extends LocationStrategy implements OnDestroy {   private _baseHref: string = '';   private _removeListenerFns: (() => void)[] = [];    constructor(       private _platformLocation: PlatformLocation,       @Optional() @Inject(APP_BASE_HREF) _baseHref?: string) {     super();     if (_baseHref != null) {       this._baseHref = _baseHref;     }   }    /** @nodoc */   ngOnDestroy(): void {     while (this._removeListenerFns.length) {       this._removeListenerFns.pop()!();     }   }    override onPopState(fn: LocationChangeListener): void {     this._removeListenerFns.push(         this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));   }    override getBaseHref(): string {     return this._baseHref;   }    override path(includeHash: boolean = false): string {     // the hash value is always prefixed with a `#`     // and if it is empty then it will stay empty     let path = this._platformLocation.hash;     if (path == null) path = '#';      return path.length > 0 ? path.substring(1) : path;   }    override prepareExternalUrl(internal: string): string {     const url = joinWithSlash(this._baseHref, internal);     return url.length > 0 ? ('#' + url) : url;   }    override pushState(state: any, title: string, path: string, queryParams: string) {     let url: string|null = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));     if (url.length == 0) {       url = this._platformLocation.pathname;     }     this._platformLocation.pushState(state, title, url);   }    override replaceState(state: any, title: string, path: string, queryParams: string) {     let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));     if (url.length == 0) {       url = this._platformLocation.pathname;     }     this._platformLocation.replaceState(state, title, url);   }    override forward(): void {     this._platformLocation.forward();   }    override back(): void {     this._platformLocation.back();   }    override getState(): unknown {     return this._platformLocation.getState();   }    override historyGo(relativePosition: number = 0): void {     this._platformLocation.historyGo?.(relativePosition);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EventEmitter, Injectable, OnDestroy, ɵɵinject} from '@angular/core'; import {SubscriptionLike} from 'rxjs';  import {LocationStrategy} from './location_strategy'; import {joinWithSlash, normalizeQueryParams, stripTrailingSlash} from './util';  /** @publicApi */ export interface PopStateEvent {   pop?: boolean;   state?: any;   type?: string;   url?: string; }  /**  * @description  *  * A service that applications can use to interact with a browser's URL.  *  * Depending on the `LocationStrategy` used, `Location` persists  * to the URL's path or the URL's hash segment.  *  * @usageNotes  *  * It's better to use the `Router.navigate()` service to trigger route changes. Use  * `Location` only if you need to interact with or create normalized URLs outside of  * routing.  *  * `Location` is responsible for normalizing the URL against the application's base href.  * A normalized URL is absolute from the URL host, includes the application's base href, and has no  * trailing slash:  * - `/my/app/user/123` is normalized  * - `my/app/user/123` **is not** normalized  * - `/my/app/user/123/` **is not** normalized  *  * ### Example  *  * <code-example path='common/location/ts/path_location_component.ts'  * region='LocationComponent'></code-example>  *  * @publicApi  */ @Injectable({   providedIn: 'root',   // See #23917   useFactory: createLocation, }) export class Location implements OnDestroy {   /** @internal */   _subject: EventEmitter<any> = new EventEmitter();   /** @internal */   _basePath: string;   /** @internal */   _locationStrategy: LocationStrategy;   /** @internal */   _urlChangeListeners: ((url: string, state: unknown) => void)[] = [];   /** @internal */   _urlChangeSubscription: SubscriptionLike|null = null;    constructor(locationStrategy: LocationStrategy) {     this._locationStrategy = locationStrategy;     const baseHref = this._locationStrategy.getBaseHref();     // Note: This class's interaction with base HREF does not fully follow the rules     // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.     // Instead of trying to fix individual bugs with more and more code, we should     // investigate using the URL constructor and providing the base as a second     // argument.     // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters     this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));     this._locationStrategy.onPopState((ev) => {       this._subject.emit({         'url': this.path(true),         'pop': true,         'state': ev.state,         'type': ev.type,       });     });   }    /** @nodoc */   ngOnDestroy(): void {     this._urlChangeSubscription?.unsubscribe();     this._urlChangeListeners = [];   }    /**    * Normalizes the URL path for this location.    *    * @param includeHash True to include an anchor fragment in the path.    *    * @returns The normalized URL path.    */   // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is   // removed.   path(includeHash: boolean = false): string {     return this.normalize(this._locationStrategy.path(includeHash));   }    /**    * Reports the current state of the location history.    * @returns The current value of the `history.state` object.    */   getState(): unknown {     return this._locationStrategy.getState();   }    /**    * Normalizes the given path and compares to the current normalized path.    *    * @param path The given URL path.    * @param query Query parameters.    *    * @returns True if the given URL path is equal to the current normalized path, false    * otherwise.    */   isCurrentPathEqualTo(path: string, query: string = ''): boolean {     return this.path() == this.normalize(path + normalizeQueryParams(query));   }    /**    * Normalizes a URL path by stripping any trailing slashes.    *    * @param url String representing a URL.    *    * @returns The normalized URL string.    */   normalize(url: string): string {     return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));   }    /**    * Normalizes an external URL path.    * If the given URL doesn't begin with a leading slash (`'/'`), adds one    * before normalizing. Adds a hash if `HashLocationStrategy` is    * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.    *    * @param url String representing a URL.    *    * @returns  A normalized platform-specific URL.    */   prepareExternalUrl(url: string): string {     if (url && url[0] !== '/') {       url = '/' + url;     }     return this._locationStrategy.prepareExternalUrl(url);   }    // TODO: rename this method to pushState   /**    * Changes the browser's URL to a normalized version of a given URL, and pushes a    * new item onto the platform's history.    *    * @param path  URL path to normalize.    * @param query Query parameters.    * @param state Location history state.    *    */   go(path: string, query: string = '', state: any = null): void {     this._locationStrategy.pushState(state, '', path, query);     this._notifyUrlChangeListeners(         this.prepareExternalUrl(path + normalizeQueryParams(query)), state);   }    /**    * Changes the browser's URL to a normalized version of the given URL, and replaces    * the top item on the platform's history stack.    *    * @param path  URL path to normalize.    * @param query Query parameters.    * @param state Location history state.    */   replaceState(path: string, query: string = '', state: any = null): void {     this._locationStrategy.replaceState(state, '', path, query);     this._notifyUrlChangeListeners(         this.prepareExternalUrl(path + normalizeQueryParams(query)), state);   }    /**    * Navigates forward in the platform's history.    */   forward(): void {     this._locationStrategy.forward();   }    /**    * Navigates back in the platform's history.    */   back(): void {     this._locationStrategy.back();   }    /**    * Navigate to a specific page from session history, identified by its relative position to the    * current page.    *    * @param relativePosition  Position of the target page in the history relative to the current    *     page.    * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`    * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go    * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs    * when `relativePosition` equals 0.    * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history    */   historyGo(relativePosition: number = 0): void {     this._locationStrategy.historyGo?.(relativePosition);   }    /**    * Registers a URL change listener. Use to catch updates performed by the Angular    * framework that are not detectible through \"popstate\" or \"hashchange\" events.    *    * @param fn The change handler function, which take a URL and a location history state.    * @returns A function that, when executed, unregisters a URL change listener.    */   onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction {     this._urlChangeListeners.push(fn);      if (!this._urlChangeSubscription) {       this._urlChangeSubscription = this.subscribe(v => {         this._notifyUrlChangeListeners(v.url, v.state);       });     }      return () => {       const fnIndex = this._urlChangeListeners.indexOf(fn);       this._urlChangeListeners.splice(fnIndex, 1);        if (this._urlChangeListeners.length === 0) {         this._urlChangeSubscription?.unsubscribe();         this._urlChangeSubscription = null;       }     };   }    /** @internal */   _notifyUrlChangeListeners(url: string = '', state: unknown) {     this._urlChangeListeners.forEach(fn => fn(url, state));   }    /**    * Subscribes to the platform's `popState` events.    *    * Note: `Location.go()` does not trigger the `popState` event in the browser. Use    * `Location.onUrlChange()` to subscribe to URL changes instead.    *    * @param value Event that is triggered when the state history changes.    * @param exception The exception to throw.    *    * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)    *    * @returns Subscribed events.    */   subscribe(       onNext: (value: PopStateEvent) => void, onThrow?: ((exception: any) => void)|null,       onReturn?: (() => void)|null): SubscriptionLike {     return this._subject.subscribe({next: onNext, error: onThrow, complete: onReturn});   }    /**    * Normalizes URL parameters by prepending with `?` if needed.    *    * @param  params String of URL parameters.    *    * @returns The normalized URL parameters string.    */   public static normalizeQueryParams: (params: string) => string = normalizeQueryParams;    /**    * Joins two parts of a URL with a slash if needed.    *    * @param start  URL string    * @param end    URL string    *    *    * @returns The joined URL string.    */   public static joinWithSlash: (start: string, end: string) => string = joinWithSlash;    /**    * Removes a trailing slash from a URL string if needed.    * Looks for the first occurrence of either `#`, `?`, or the end of the    * line as `/` characters and removes the trailing slash if one exists.    *    * @param url URL string.    *    * @returns The URL string, modified if needed.    */   public static stripTrailingSlash: (url: string) => string = stripTrailingSlash; }  export function createLocation() {   return new Location(ɵɵinject(LocationStrategy as any)); }  function _stripBasePath(basePath: string, url: string): string {   return basePath && new RegExp(`^${basePath}([/;?#]|$)`).test(url) ?       url.substring(basePath.length) :       url; }  function _stripIndexHtml(url: string): string {   return url.replace(/\\/index.html$/, ''); }  function _stripOrigin(baseHref: string): string {   // DO NOT REFACTOR! Previously, this check looked like this:   // `/^(https?:)?\\/\\//.test(baseHref)`, but that resulted in   // syntactically incorrect code after Closure Compiler minification.   // This was likely caused by a bug in Closure Compiler, but   // for now, the check is rewritten to use `new RegExp` instead.   const isAbsoluteUrl = (new RegExp('^(https?:)?//')).test(baseHref);   if (isAbsoluteUrl) {     const [, pathname] = baseHref.split(/\\/\\/[^\\/]+/);     return pathname;   }   return baseHref; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // THIS CODE IS GENERATED - DO NOT MODIFY. export type CurrenciesSymbols = [string] | [string | undefined, string];  /** @internal */ export const CURRENCIES_EN: {[code: string]: CurrenciesSymbols | [string | undefined, string | undefined, number]} = {\"ADP\":[undefined,undefined,0],\"AFN\":[undefined,\"؋\",0],\"ALL\":[undefined,undefined,0],\"AMD\":[undefined,\"֏\",2],\"AOA\":[undefined,\"Kz\"],\"ARS\":[undefined,\"$\"],\"AUD\":[\"A$\",\"$\"],\"AZN\":[undefined,\"₼\"],\"BAM\":[undefined,\"KM\"],\"BBD\":[undefined,\"$\"],\"BDT\":[undefined,\"৳\"],\"BHD\":[undefined,undefined,3],\"BIF\":[undefined,undefined,0],\"BMD\":[undefined,\"$\"],\"BND\":[undefined,\"$\"],\"BOB\":[undefined,\"Bs\"],\"BRL\":[\"R$\"],\"BSD\":[undefined,\"$\"],\"BWP\":[undefined,\"P\"],\"BYN\":[undefined,undefined,2],\"BYR\":[undefined,undefined,0],\"BZD\":[undefined,\"$\"],\"CAD\":[\"CA$\",\"$\",2],\"CHF\":[undefined,undefined,2],\"CLF\":[undefined,undefined,4],\"CLP\":[undefined,\"$\",0],\"CNY\":[\"CN¥\",\"¥\"],\"COP\":[undefined,\"$\",2],\"CRC\":[undefined,\"₡\",2],\"CUC\":[undefined,\"$\"],\"CUP\":[undefined,\"$\"],\"CZK\":[undefined,\"Kč\",2],\"DJF\":[undefined,undefined,0],\"DKK\":[undefined,\"kr\",2],\"DOP\":[undefined,\"$\"],\"EGP\":[undefined,\"E£\"],\"ESP\":[undefined,\"₧\",0],\"EUR\":[\"€\"],\"FJD\":[undefined,\"$\"],\"FKP\":[undefined,\"£\"],\"GBP\":[\"£\"],\"GEL\":[undefined,\"₾\"],\"GHS\":[undefined,\"GH₵\"],\"GIP\":[undefined,\"£\"],\"GNF\":[undefined,\"FG\",0],\"GTQ\":[undefined,\"Q\"],\"GYD\":[undefined,\"$\",2],\"HKD\":[\"HK$\",\"$\"],\"HNL\":[undefined,\"L\"],\"HRK\":[undefined,\"kn\"],\"HUF\":[undefined,\"Ft\",2],\"IDR\":[undefined,\"Rp\",2],\"ILS\":[\"₪\"],\"INR\":[\"₹\"],\"IQD\":[undefined,undefined,0],\"IRR\":[undefined,undefined,0],\"ISK\":[undefined,\"kr\",0],\"ITL\":[undefined,undefined,0],\"JMD\":[undefined,\"$\"],\"JOD\":[undefined,undefined,3],\"JPY\":[\"¥\",undefined,0],\"KHR\":[undefined,\"៛\"],\"KMF\":[undefined,\"CF\",0],\"KPW\":[undefined,\"₩\",0],\"KRW\":[\"₩\",undefined,0],\"KWD\":[undefined,undefined,3],\"KYD\":[undefined,\"$\"],\"KZT\":[undefined,\"₸\"],\"LAK\":[undefined,\"₭\",0],\"LBP\":[undefined,\"L£\",0],\"LKR\":[undefined,\"Rs\"],\"LRD\":[undefined,\"$\"],\"LTL\":[undefined,\"Lt\"],\"LUF\":[undefined,undefined,0],\"LVL\":[undefined,\"Ls\"],\"LYD\":[undefined,undefined,3],\"MGA\":[undefined,\"Ar\",0],\"MGF\":[undefined,undefined,0],\"MMK\":[undefined,\"K\",0],\"MNT\":[undefined,\"₮\",2],\"MRO\":[undefined,undefined,0],\"MUR\":[undefined,\"Rs\",2],\"MXN\":[\"MX$\",\"$\"],\"MYR\":[undefined,\"RM\"],\"NAD\":[undefined,\"$\"],\"NGN\":[undefined,\"₦\"],\"NIO\":[undefined,\"C$\"],\"NOK\":[undefined,\"kr\",2],\"NPR\":[undefined,\"Rs\"],\"NZD\":[\"NZ$\",\"$\"],\"OMR\":[undefined,undefined,3],\"PHP\":[\"₱\"],\"PKR\":[undefined,\"Rs\",2],\"PLN\":[undefined,\"zł\"],\"PYG\":[undefined,\"₲\",0],\"RON\":[undefined,\"lei\"],\"RSD\":[undefined,undefined,0],\"RUB\":[undefined,\"₽\"],\"RWF\":[undefined,\"RF\",0],\"SBD\":[undefined,\"$\"],\"SEK\":[undefined,\"kr\",2],\"SGD\":[undefined,\"$\"],\"SHP\":[undefined,\"£\"],\"SLE\":[undefined,undefined,2],\"SLL\":[undefined,undefined,0],\"SOS\":[undefined,undefined,0],\"SRD\":[undefined,\"$\"],\"SSP\":[undefined,\"£\"],\"STD\":[undefined,undefined,0],\"STN\":[undefined,\"Db\"],\"SYP\":[undefined,\"£\",0],\"THB\":[undefined,\"฿\"],\"TMM\":[undefined,undefined,0],\"TND\":[undefined,undefined,3],\"TOP\":[undefined,\"T$\"],\"TRL\":[undefined,undefined,0],\"TRY\":[undefined,\"₺\"],\"TTD\":[undefined,\"$\"],\"TWD\":[\"NT$\",\"$\",2],\"TZS\":[undefined,undefined,2],\"UAH\":[undefined,\"₴\"],\"UGX\":[undefined,undefined,0],\"USD\":[\"$\"],\"UYI\":[undefined,undefined,0],\"UYU\":[undefined,\"$\"],\"UYW\":[undefined,undefined,4],\"UZS\":[undefined,undefined,2],\"VEF\":[undefined,\"Bs\",2],\"VND\":[\"₫\",undefined,0],\"VUV\":[undefined,undefined,0],\"XAF\":[\"FCFA\",undefined,0],\"XCD\":[\"EC$\",\"$\"],\"XOF\":[\"F CFA\",undefined,0],\"XPF\":[\"CFPF\",undefined,0],\"XXX\":[\"¤\"],\"YER\":[undefined,undefined,0],\"ZAR\":[undefined,\"R\"],\"ZMK\":[undefined,undefined,0],\"ZMW\":[undefined,\"ZK\"],\"ZWD\":[undefined,undefined,0]}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵCurrencyIndex, ɵExtraLocaleDataIndex, ɵfindLocaleData, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, ɵLocaleDataIndex} from '@angular/core';  import {CURRENCIES_EN, CurrenciesSymbols} from './currencies';   /**  * Format styles that can be used to represent numbers.  * @see `getLocaleNumberFormat()`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum NumberFormatStyle {   Decimal,   Percent,   Currency,   Scientific }  /**  * Plurality cases used for translating plurals to different languages.  *  * @see `NgPlural`  * @see `NgPluralCase`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum Plural {   Zero = 0,   One = 1,   Two = 2,   Few = 3,   Many = 4,   Other = 5, }  /**  * Context-dependant translation forms for strings.  * Typically the standalone version is for the nominative form of the word,  * and the format version is used for the genitive case.  * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum FormStyle {   Format,   Standalone }  /**  * String widths available for translations.  * The specific character widths are locale-specific.  * Examples are given for the word \"Sunday\" in English.  *  * @publicApi  */ export enum TranslationWidth {   /** 1 character for `en-US`. For example: 'S' */   Narrow,   /** 3 characters for `en-US`. For example: 'Sun' */   Abbreviated,   /** Full length for `en-US`. For example: \"Sunday\" */   Wide,   /** 2 characters for `en-US`, For example: \"Su\" */   Short }  /**  * String widths available for date-time formats.  * The specific character widths are locale-specific.  * Examples are given for `en-US`.  *  * @see `getLocaleDateFormat()`  * @see `getLocaleTimeFormat()`  * @see `getLocaleDateTimeFormat()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  * @publicApi  */ export enum FormatWidth {   /**    * For `en-US`, 'M/d/yy, h:mm a'`    * (Example: `6/15/15, 9:03 AM`)    */   Short,   /**    * For `en-US`, `'MMM d, y, h:mm:ss a'`    * (Example: `Jun 15, 2015, 9:03:01 AM`)    */   Medium,   /**    * For `en-US`, `'MMMM d, y, h:mm:ss a z'`    * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)    */   Long,   /**    * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`    * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)    */   Full }  /**  * Symbols that can be used to replace placeholders in number patterns.  * Examples are based on `en-US` values.  *  * @see `getLocaleNumberSymbol()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export enum NumberSymbol {   /**    * Decimal separator.    * For `en-US`, the dot character.    * Example: 2,345`.`67    */   Decimal,   /**    * Grouping separator, typically for thousands.    * For `en-US`, the comma character.    * Example: 2`,`345.67    */   Group,   /**    * List-item separator.    * Example: \"one, two, and three\"    */   List,   /**    * Sign for percentage (out of 100).    * Example: 23.4%    */   PercentSign,   /**    * Sign for positive numbers.    * Example: +23    */   PlusSign,   /**    * Sign for negative numbers.    * Example: -23    */   MinusSign,   /**    * Computer notation for exponential value (n times a power of 10).    * Example: 1.2E3    */   Exponential,   /**    * Human-readable format of exponential.    * Example: 1.2x103    */   SuperscriptingExponent,   /**    * Sign for permille (out of 1000).    * Example: 23.4‰    */   PerMille,   /**    * Infinity, can be used with plus and minus.    * Example: ∞, +∞, -∞    */   Infinity,   /**    * Not a number.    * Example: NaN    */   NaN,   /**    * Symbol used between time units.    * Example: 10:52    */   TimeSeparator,   /**    * Decimal separator for currency values (fallback to `Decimal`).    * Example: $2,345.67    */   CurrencyDecimal,   /**    * Group separator for currency values (fallback to `Group`).    * Example: $2,345.67    */   CurrencyGroup }  /**  * The value for each day of the week, based on the `en-US` locale  *  * @publicApi  */ export enum WeekDay {   Sunday = 0,   Monday,   Tuesday,   Wednesday,   Thursday,   Friday,   Saturday }  /**  * Retrieves the locale ID from the currently loaded locale.  * The loaded locale could be, for example, a global one rather than a regional one.  * @param locale A locale code, such as `fr-FR`.  * @returns The locale code. For example, `fr`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleId(locale: string): string {   return ɵfindLocaleData(locale)[ɵLocaleDataIndex.LocaleId]; }  /**  * Retrieves day period strings for the given locale.  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDayPeriods(     locale: string, formStyle: FormStyle, width: TranslationWidth): Readonly<[string, string]> {   const data = ɵfindLocaleData(locale);   const amPmData = <[string, string][][]>[     data[ɵLocaleDataIndex.DayPeriodsFormat], data[ɵLocaleDataIndex.DayPeriodsStandalone]   ];   const amPm = getLastDefinedValue(amPmData, formStyle);   return getLastDefinedValue(amPm, width); }  /**  * Retrieves days of the week for the given locale, using the Gregorian calendar.  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns An array of localized name strings.  * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDayNames(     locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string> {   const data = ɵfindLocaleData(locale);   const daysData =       <string[][][]>[data[ɵLocaleDataIndex.DaysFormat], data[ɵLocaleDataIndex.DaysStandalone]];   const days = getLastDefinedValue(daysData, formStyle);   return getLastDefinedValue(days, width); }  /**  * Retrieves months of the year for the given locale, using the Gregorian calendar.  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns An array of localized name strings.  * For example,  `[January, February, ...]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleMonthNames(     locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string> {   const data = ɵfindLocaleData(locale);   const monthsData =       <string[][][]>[data[ɵLocaleDataIndex.MonthsFormat], data[ɵLocaleDataIndex.MonthsStandalone]];   const months = getLastDefinedValue(monthsData, formStyle);   return getLastDefinedValue(months, width); }  /**  * Retrieves Gregorian-calendar eras for the given locale.  * @param locale A locale code for the locale format rules to use.  * @param width The required character width.   * @returns An array of localized era strings.  * For example, `[AD, BC]` for `en-US`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleEraNames(     locale: string, width: TranslationWidth): Readonly<[string, string]> {   const data = ɵfindLocaleData(locale);   const erasData = <[string, string][]>data[ɵLocaleDataIndex.Eras];   return getLastDefinedValue(erasData, width); }  /**  * Retrieves the first day of the week for the given locale.  *  * @param locale A locale code for the locale format rules to use.  * @returns A day index number, using the 0-based week-day index for `en-US`  * (Sunday = 0, Monday = 1, ...).  * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleFirstDayOfWeek(locale: string): WeekDay {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.FirstDayOfWeek]; }  /**  * Range of week days that are considered the week-end for the given locale.  *  * @param locale A locale code for the locale format rules to use.  * @returns The range of day values, `[startDay, endDay]`.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay] {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.WeekendRange]; }  /**  * Retrieves a localized date-value formatting string.  *  * @param locale A locale code for the locale format rules to use.  * @param width The format type.  * @returns The localized formatting string.  * @see `FormatWidth`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDateFormat(locale: string, width: FormatWidth): string {   const data = ɵfindLocaleData(locale);   return getLastDefinedValue(data[ɵLocaleDataIndex.DateFormat], width); }  /**  * Retrieves a localized time-value formatting string.  *  * @param locale A locale code for the locale format rules to use.  * @param width The format type.  * @returns The localized formatting string.  * @see `FormatWidth`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)   * @publicApi  */ export function getLocaleTimeFormat(locale: string, width: FormatWidth): string {   const data = ɵfindLocaleData(locale);   return getLastDefinedValue(data[ɵLocaleDataIndex.TimeFormat], width); }  /**  * Retrieves a localized date-time formatting string.  *  * @param locale A locale code for the locale format rules to use.  * @param width The format type.  * @returns The localized formatting string.  * @see `FormatWidth`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleDateTimeFormat(locale: string, width: FormatWidth): string {   const data = ɵfindLocaleData(locale);   const dateTimeFormatData = <string[]>data[ɵLocaleDataIndex.DateTimeFormat];   return getLastDefinedValue(dateTimeFormatData, width); }  /**  * Retrieves a localized number symbol that can be used to replace placeholders in number formats.  * @param locale The locale code.  * @param symbol The symbol to localize.  * @returns The character for the localized symbol.  * @see `NumberSymbol`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleNumberSymbol(locale: string, symbol: NumberSymbol): string {   const data = ɵfindLocaleData(locale);   const res = data[ɵLocaleDataIndex.NumberSymbols][symbol];   if (typeof res === 'undefined') {     if (symbol === NumberSymbol.CurrencyDecimal) {       return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Decimal];     } else if (symbol === NumberSymbol.CurrencyGroup) {       return data[ɵLocaleDataIndex.NumberSymbols][NumberSymbol.Group];     }   }   return res; }  /**  * Retrieves a number format for a given locale.  *  * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`  * when used to format the number 12345.678 could result in \"12'345,678\". That would happen if the  * grouping separator for your language is an apostrophe, and the decimal separator is a comma.  *  * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders  * that stand for the decimal separator, and so on, and are NOT real characters.  * You must NOT \"translate\" the placeholders. For example, don't change `.` to `,` even though in  * your language the decimal point is written with a comma. The symbols should be replaced by the  * local equivalents, using the appropriate `NumberSymbol` for your language.  *  * Here are the special characters used in number patterns:  *  * | Symbol | Meaning |  * |--------|---------|  * | . | Replaced automatically by the character used for the decimal point. |  * | , | Replaced by the \"grouping\" (thousands) separator. |  * | 0 | Replaced by a digit (or zero if there aren't enough digits). |  * | # | Replaced by a digit (or nothing if there aren't enough). |  * | ¤ | Replaced by a currency symbol, such as $ or USD. |  * | % | Marks a percent format. The % symbol may change position, but must be retained. |  * | E | Marks a scientific format. The E symbol may change position, but must be retained. |  * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |  *  * @param locale A locale code for the locale format rules to use.  * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)  * @returns The localized format string.  * @see `NumberFormatStyle`  * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleNumberFormat(locale: string, type: NumberFormatStyle): string {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.NumberFormats][type]; }  /**  * Retrieves the symbol used to represent the currency for the main country  * corresponding to a given locale. For example, '$' for `en-US`.  *  * @param locale A locale code for the locale format rules to use.  * @returns The localized symbol character,  * or `null` if the main country cannot be determined.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleCurrencySymbol(locale: string): string|null {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.CurrencySymbol] || null; }  /**  * Retrieves the name of the currency for the main country corresponding  * to a given locale. For example, 'US Dollar' for `en-US`.  * @param locale A locale code for the locale format rules to use.  * @returns The currency name,  * or `null` if the main country cannot be determined.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleCurrencyName(locale: string): string|null {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.CurrencyName] || null; }  /**  * Retrieves the default currency code for the given locale.  *  * The default is defined as the first currency which is still in use.  *  * @param locale The code of the locale whose currency code we want.  * @returns The code of the default currency for the given locale.  *  * @publicApi  */ export function getLocaleCurrencyCode(locale: string): string|null {   return ɵgetLocaleCurrencyCode(locale); }  /**  * Retrieves the currency values for a given locale.  * @param locale A locale code for the locale format rules to use.  * @returns The currency values.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  */ function getLocaleCurrencies(locale: string): {[code: string]: CurrenciesSymbols} {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.Currencies]; }  /**  * @alias core/ɵgetLocalePluralCase  * @publicApi  */ export const getLocalePluralCase: (locale: string) => ((value: number) => Plural) =     ɵgetLocalePluralCase;  function checkFullData(data: any) {   if (!data[ɵLocaleDataIndex.ExtraData]) {     throw new Error(`Missing extra locale data for the locale \"${         data[ɵLocaleDataIndex                  .LocaleId]}\". Use \"registerLocaleData\" to load new data. See the \"I18n guide\" on angular.io to know more.`);   } }  /**  * Retrieves locale-specific rules used to determine which day period to use  * when more than one period is defined for a locale.  *  * There is a rule for each defined day period. The  * first rule is applied to the first day period and so on.  * Fall back to AM/PM when no rules are available.  *  * A rule can specify a period as time range, or as a single time value.  *  * This functionality is only available when you have loaded the full locale data.  * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).  *  * @param locale A locale code for the locale format rules to use.  * @returns The rules for the locale, a single time value or array of *from-time, to-time*,  * or null if no periods are available.  *  * @see `getLocaleExtraDayPeriods()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleExtraDayPeriodRules(locale: string): (Time|[Time, Time])[] {   const data = ɵfindLocaleData(locale);   checkFullData(data);   const rules = data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodsRules] || [];   return rules.map((rule: string|[string, string]) => {     if (typeof rule === 'string') {       return extractTime(rule);     }     return [extractTime(rule[0]), extractTime(rule[1])];   }); }  /**  * Retrieves locale-specific day periods, which indicate roughly how a day is broken up  * in different languages.  * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.  *  * This functionality is only available when you have loaded the full locale data.  * See the [\"I18n guide\"](guide/i18n-common-format-data-locale).  *  * @param locale A locale code for the locale format rules to use.  * @param formStyle The required grammatical form.  * @param width The required character width.  * @returns The translated day-period strings.  * @see `getLocaleExtraDayPeriodRules()`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getLocaleExtraDayPeriods(     locale: string, formStyle: FormStyle, width: TranslationWidth): string[] {   const data = ɵfindLocaleData(locale);   checkFullData(data);   const dayPeriodsData = <string[][][]>[     data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodFormats],     data[ɵLocaleDataIndex.ExtraData][ɵExtraLocaleDataIndex.ExtraDayPeriodStandalone]   ];   const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];   return getLastDefinedValue(dayPeriods, width) || []; }  /**  * Retrieves the writing direction of a specified locale  * @param locale A locale code for the locale format rules to use.  * @publicApi  * @returns 'rtl' or 'ltr'  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  */ export function getLocaleDirection(locale: string): 'ltr'|'rtl' {   const data = ɵfindLocaleData(locale);   return data[ɵLocaleDataIndex.Directionality]; }  /**  * Retrieves the first value that is defined in an array, going backwards from an index position.  *  * To avoid repeating the same data (as when the \"format\" and \"standalone\" forms are the same)  * add the first value to the locale data arrays, and add other values only if they are different.  *  * @param data The data array to retrieve from.  * @param index A 0-based index into the array to start from.  * @returns The value immediately before the given index position.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ function getLastDefinedValue<T>(data: T[], index: number): T {   for (let i = index; i > -1; i--) {     if (typeof data[i] !== 'undefined') {       return data[i];     }   }   throw new Error('Locale data API: locale data undefined'); }  /**  * Represents a time value with hours and minutes.  *  * @publicApi  */ export type Time = {   hours: number,   minutes: number };  /**  * Extracts the hours and minutes from a string like \"15:45\"  */ function extractTime(time: string): Time {   const [h, m] = time.split(':');   return {hours: +h, minutes: +m}; }    /**  * Retrieves the currency symbol for a given currency code.  *  * For example, for the default `en-US` locale, the code `USD` can  * be represented by the narrow symbol `$` or the wide symbol `US$`.  *  * @param code The currency code.  * @param format The format, `wide` or `narrow`.  * @param locale A locale code for the locale format rules to use.  *  * @returns The symbol, or the currency code if no symbol is available.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getCurrencySymbol(code: string, format: 'wide'|'narrow', locale = 'en'): string {   const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];   const symbolNarrow = currency[ɵCurrencyIndex.SymbolNarrow];    if (format === 'narrow' && typeof symbolNarrow === 'string') {     return symbolNarrow;   }    return currency[ɵCurrencyIndex.Symbol] || code; }  // Most currencies have cents, that's why the default is 2 const DEFAULT_NB_OF_CURRENCY_DIGITS = 2;  /**  * Reports the number of decimal digits for a given currency.  * The value depends upon the presence of cents in that particular currency.  *  * @param code The currency code.  * @returns The number of decimal digits, typically 0 or 2.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function getNumberOfCurrencyDigits(code: string): number {   let digits;   const currency = CURRENCIES_EN[code];   if (currency) {     digits = currency[ɵCurrencyIndex.NbOfDigits];   }   return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {FormatWidth, FormStyle, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleId, getLocaleMonthNames, getLocaleNumberSymbol, getLocaleTimeFormat, NumberSymbol, Time, TranslationWidth} from './locale_data_api';  export const ISO8601_DATE_REGEX =     /^(\\d{4,})-?(\\d\\d)-?(\\d\\d)(?:T(\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:\\.(\\d+))?)?)?(Z|([+-])(\\d\\d):?(\\d\\d))?)?$/; //    1        2       3         4          5          6          7          8  9     10      11 const NAMED_FORMATS: {[localeId: string]: {[format: string]: string}} = {}; const DATE_FORMATS_SPLIT =     /((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\\s\\S]*)/;  enum ZoneWidth {   Short,   ShortGMT,   Long,   Extended }  enum DateType {   FullYear,   Month,   Date,   Hours,   Minutes,   Seconds,   FractionalSeconds,   Day }  enum TranslationType {   DayPeriods,   Days,   Months,   Eras }  /**  * @ngModule CommonModule  * @description  *  * Formats a date according to locale rules.  *  * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)  * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).  * @param format The date-time components to include. See `DatePipe` for details.  * @param locale A locale code for the locale format rules to use.  * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),  * or a standard UTC/GMT or continental US time zone abbreviation.  * If not specified, uses host system settings.  *  * @returns The formatted date string.  *  * @see `DatePipe`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function formatDate(     value: string|number|Date, format: string, locale: string, timezone?: string): string {   let date = toDate(value);   const namedFormat = getNamedFormat(locale, format);   format = namedFormat || format;    let parts: string[] = [];   let match;   while (format) {     match = DATE_FORMATS_SPLIT.exec(format);     if (match) {       parts = parts.concat(match.slice(1));       const part = parts.pop();       if (!part) {         break;       }       format = part;     } else {       parts.push(format);       break;     }   }    let dateTimezoneOffset = date.getTimezoneOffset();   if (timezone) {     dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);     date = convertTimezoneToLocal(date, timezone, true);   }    let text = '';   parts.forEach(value => {     const dateFormatter = getDateFormatter(value);     text += dateFormatter ? dateFormatter(date, locale, dateTimezoneOffset) :         value === '\\'\\''  ? '\\'' :                             value.replace(/(^'|'$)/g, '').replace(/''/g, '\\'');   });    return text; }  /**  * Create a new Date object with the given date value, and the time set to midnight.  *  * We cannot use `new Date(year, month, date)` because it maps years between 0 and 99 to 1900-1999.  * See: https://github.com/angular/angular/issues/40377  *  * Note that this function returns a Date object whose time is midnight in the current locale's  * timezone. In the future we might want to change this to be midnight in UTC, but this would be a  * considerable breaking change.  */ function createDate(year: number, month: number, date: number): Date {   // The `newDate` is set to midnight (UTC) on January 1st 1970.   // - In PST this will be December 31st 1969 at 4pm.   // - In GMT this will be January 1st 1970 at 1am.   // Note that they even have different years, dates and months!   const newDate = new Date(0);    // `setFullYear()` allows years like 0001 to be set correctly. This function does not   // change the internal time of the date.   // Consider calling `setFullYear(2019, 8, 20)` (September 20, 2019).   // - In PST this will now be September 20, 2019 at 4pm   // - In GMT this will now be September 20, 2019 at 1am    newDate.setFullYear(year, month, date);   // We want the final date to be at local midnight, so we reset the time.   // - In PST this will now be September 20, 2019 at 12am   // - In GMT this will now be September 20, 2019 at 12am   newDate.setHours(0, 0, 0);    return newDate; }  function getNamedFormat(locale: string, format: string): string {   const localeId = getLocaleId(locale);   NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {};    if (NAMED_FORMATS[localeId][format]) {     return NAMED_FORMATS[localeId][format];   }    let formatValue = '';   switch (format) {     case 'shortDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Short);       break;     case 'mediumDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);       break;     case 'longDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Long);       break;     case 'fullDate':       formatValue = getLocaleDateFormat(locale, FormatWidth.Full);       break;     case 'shortTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);       break;     case 'mediumTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);       break;     case 'longTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);       break;     case 'fullTime':       formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);       break;     case 'short':       const shortTime = getNamedFormat(locale, 'shortTime');       const shortDate = getNamedFormat(locale, 'shortDate');       formatValue = formatDateTime(           getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);       break;     case 'medium':       const mediumTime = getNamedFormat(locale, 'mediumTime');       const mediumDate = getNamedFormat(locale, 'mediumDate');       formatValue = formatDateTime(           getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);       break;     case 'long':       const longTime = getNamedFormat(locale, 'longTime');       const longDate = getNamedFormat(locale, 'longDate');       formatValue =           formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);       break;     case 'full':       const fullTime = getNamedFormat(locale, 'fullTime');       const fullDate = getNamedFormat(locale, 'fullDate');       formatValue =           formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);       break;   }   if (formatValue) {     NAMED_FORMATS[localeId][format] = formatValue;   }   return formatValue; }  function formatDateTime(str: string, opt_values: string[]) {   if (opt_values) {     str = str.replace(/\\{([^}]+)}/g, function(match, key) {       return (opt_values != null && key in opt_values) ? opt_values[key] : match;     });   }   return str; }  function padNumber(     num: number, digits: number, minusSign = '-', trim?: boolean, negWrap?: boolean): string {   let neg = '';   if (num < 0 || (negWrap && num <= 0)) {     if (negWrap) {       num = -num + 1;     } else {       num = -num;       neg = minusSign;     }   }   let strNum = String(num);   while (strNum.length < digits) {     strNum = '0' + strNum;   }   if (trim) {     strNum = strNum.slice(strNum.length - digits);   }   return neg + strNum; }  function formatFractionalSeconds(milliseconds: number, digits: number): string {   const strMs = padNumber(milliseconds, 3);   return strMs.substring(0, digits); }  /**  * Returns a date formatter that transforms a date into its locale digit representation  */ function dateGetter(     name: DateType, size: number, offset: number = 0, trim = false,     negWrap = false): DateFormatter {   return function(date: Date, locale: string): string {     let part = getDatePart(name, date);     if (offset > 0 || part > -offset) {       part += offset;     }      if (name === DateType.Hours) {       if (part === 0 && offset === -12) {         part = 12;       }     } else if (name === DateType.FractionalSeconds) {       return formatFractionalSeconds(part, size);     }      const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);     return padNumber(part, size, localeMinus, trim, negWrap);   }; }  function getDatePart(part: DateType, date: Date): number {   switch (part) {     case DateType.FullYear:       return date.getFullYear();     case DateType.Month:       return date.getMonth();     case DateType.Date:       return date.getDate();     case DateType.Hours:       return date.getHours();     case DateType.Minutes:       return date.getMinutes();     case DateType.Seconds:       return date.getSeconds();     case DateType.FractionalSeconds:       return date.getMilliseconds();     case DateType.Day:       return date.getDay();     default:       throw new Error(`Unknown DateType value \"${part}\".`);   } }  /**  * Returns a date formatter that transforms a date into its locale string representation  */ function dateStrGetter(     name: TranslationType, width: TranslationWidth, form: FormStyle = FormStyle.Format,     extended = false): DateFormatter {   return function(date: Date, locale: string): string {     return getDateTranslation(date, locale, name, width, form, extended);   }; }  /**  * Returns the locale translation of a date for a given form, type and width  */ function getDateTranslation(     date: Date, locale: string, name: TranslationType, width: TranslationWidth, form: FormStyle,     extended: boolean) {   switch (name) {     case TranslationType.Months:       return getLocaleMonthNames(locale, form, width)[date.getMonth()];     case TranslationType.Days:       return getLocaleDayNames(locale, form, width)[date.getDay()];     case TranslationType.DayPeriods:       const currentHours = date.getHours();       const currentMinutes = date.getMinutes();       if (extended) {         const rules = getLocaleExtraDayPeriodRules(locale);         const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);         const index = rules.findIndex(rule => {           if (Array.isArray(rule)) {             // morning, afternoon, evening, night             const [from, to] = rule;             const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;             const beforeTo =                 (currentHours < to.hours ||                  (currentHours === to.hours && currentMinutes < to.minutes));             // We must account for normal rules that span a period during the day (e.g. 6am-9am)             // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.             // 10pm - 5am) where `from` is greater (later!) than `to`.             //             // In the first case the current time must be BOTH after `from` AND before `to`             // (e.g. 8am is after 6am AND before 10am).             //             // In the second case the current time must be EITHER after `from` OR before `to`             // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is             // after 10pm).             if (from.hours < to.hours) {               if (afterFrom && beforeTo) {                 return true;               }             } else if (afterFrom || beforeTo) {               return true;             }           } else {  // noon or midnight             if (rule.hours === currentHours && rule.minutes === currentMinutes) {               return true;             }           }           return false;         });         if (index !== -1) {           return dayPeriods[index];         }       }       // if no rules for the day periods, we use am/pm by default       return getLocaleDayPeriods(locale, form, <TranslationWidth>width)[currentHours < 12 ? 0 : 1];     case TranslationType.Eras:       return getLocaleEraNames(locale, <TranslationWidth>width)[date.getFullYear() <= 0 ? 0 : 1];     default:       // This default case is not needed by TypeScript compiler, as the switch is exhaustive.       // However Closure Compiler does not understand that and reports an error in typed mode.       // The `throw new Error` below works around the problem, and the unexpected: never variable       // makes sure tsc still checks this code is unreachable.       const unexpected: never = name;       throw new Error(`unexpected translation type ${unexpected}`);   } }  /**  * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or  * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,  * extended = +04:30)  */ function timeZoneGetter(width: ZoneWidth): DateFormatter {   return function(date: Date, locale: string, offset: number) {     const zone = -1 * offset;     const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);     const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);     switch (width) {       case ZoneWidth.Short:         return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +             padNumber(Math.abs(zone % 60), 2, minusSign);       case ZoneWidth.ShortGMT:         return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);       case ZoneWidth.Long:         return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +             padNumber(Math.abs(zone % 60), 2, minusSign);       case ZoneWidth.Extended:         if (offset === 0) {           return 'Z';         } else {           return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +               padNumber(Math.abs(zone % 60), 2, minusSign);         }       default:         throw new Error(`Unknown zone width \"${width}\"`);     }   }; }  const JANUARY = 0; const THURSDAY = 4; function getFirstThursdayOfYear(year: number) {   const firstDayOfYear = createDate(year, JANUARY, 1).getDay();   return createDate(       year, 0, 1 + ((firstDayOfYear <= THURSDAY) ? THURSDAY : THURSDAY + 7) - firstDayOfYear); }  function getThursdayThisWeek(datetime: Date) {   return createDate(       datetime.getFullYear(), datetime.getMonth(),       datetime.getDate() + (THURSDAY - datetime.getDay())); }  function weekGetter(size: number, monthBased = false): DateFormatter {   return function(date: Date, locale: string) {     let result;     if (monthBased) {       const nbDaysBefore1stDayOfMonth =           new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;       const today = date.getDate();       result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);     } else {       const thisThurs = getThursdayThisWeek(date);       // Some days of a year are part of next year according to ISO 8601.       // Compute the firstThurs from the year of this week's Thursday       const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());       const diff = thisThurs.getTime() - firstThurs.getTime();       result = 1 + Math.round(diff / 6.048e8);  // 6.048e8 ms per week     }      return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));   }; }  /**  * Returns a date formatter that provides the week-numbering year for the input date.  */ function weekNumberingYearGetter(size: number, trim = false): DateFormatter {   return function(date: Date, locale: string) {     const thisThurs = getThursdayThisWeek(date);     const weekNumberingYear = thisThurs.getFullYear();     return padNumber(         weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);   }; }  type DateFormatter = (date: Date, locale: string, offset: number) => string;  const DATE_FORMATS: {[format: string]: DateFormatter} = {};  // Based on CLDR formats: // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table // See also explanations: http://cldr.unicode.org/translation/date-time // TODO(ocombe): support all missing cldr formats: U, Q, D, F, e, j, J, C, A, v, V, X, x function getDateFormatter(format: string): DateFormatter|null {   if (DATE_FORMATS[format]) {     return DATE_FORMATS[format];   }   let formatter;   switch (format) {     // Era name (AD/BC)     case 'G':     case 'GG':     case 'GGG':       formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);       break;     case 'GGGG':       formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);       break;     case 'GGGGG':       formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);       break;      // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)     case 'y':       formatter = dateGetter(DateType.FullYear, 1, 0, false, true);       break;     // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)     case 'yy':       formatter = dateGetter(DateType.FullYear, 2, 0, true, true);       break;     // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)     case 'yyy':       formatter = dateGetter(DateType.FullYear, 3, 0, false, true);       break;     // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)     case 'yyyy':       formatter = dateGetter(DateType.FullYear, 4, 0, false, true);       break;      // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)     case 'Y':       formatter = weekNumberingYearGetter(1);       break;     // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD     // 2010 => 10)     case 'YY':       formatter = weekNumberingYearGetter(2, true);       break;     // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD     // 2010 => 2010)     case 'YYY':       formatter = weekNumberingYearGetter(3);       break;     // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)     case 'YYYY':       formatter = weekNumberingYearGetter(4);       break;      // Month of the year (1-12), numeric     case 'M':     case 'L':       formatter = dateGetter(DateType.Month, 1, 1);       break;     case 'MM':     case 'LL':       formatter = dateGetter(DateType.Month, 2, 1);       break;      // Month of the year (January, ...), string, format     case 'MMM':       formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);       break;     case 'MMMM':       formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);       break;     case 'MMMMM':       formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);       break;      // Month of the year (January, ...), string, standalone     case 'LLL':       formatter =           dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);       break;     case 'LLLL':       formatter =           dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);       break;     case 'LLLLL':       formatter =           dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);       break;      // Week of the year (1, ... 52)     case 'w':       formatter = weekGetter(1);       break;     case 'ww':       formatter = weekGetter(2);       break;      // Week of the month (1, ...)     case 'W':       formatter = weekGetter(1, true);       break;      // Day of the month (1-31)     case 'd':       formatter = dateGetter(DateType.Date, 1);       break;     case 'dd':       formatter = dateGetter(DateType.Date, 2);       break;      // Day of the Week StandAlone (1, 1, Mon, Monday, M, Mo)     case 'c':     case 'cc':       formatter = dateGetter(DateType.Day, 1);       break;     case 'ccc':       formatter =           dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated, FormStyle.Standalone);       break;     case 'cccc':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide, FormStyle.Standalone);       break;     case 'ccccc':       formatter =           dateStrGetter(TranslationType.Days, TranslationWidth.Narrow, FormStyle.Standalone);       break;     case 'cccccc':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short, FormStyle.Standalone);       break;      // Day of the Week     case 'E':     case 'EE':     case 'EEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);       break;     case 'EEEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);       break;     case 'EEEEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);       break;     case 'EEEEEE':       formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);       break;      // Generic period of the day (am-pm)     case 'a':     case 'aa':     case 'aaa':       formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);       break;     case 'aaaa':       formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);       break;     case 'aaaaa':       formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);       break;      // Extended period of the day (midnight, at night, ...), standalone     case 'b':     case 'bb':     case 'bbb':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);       break;     case 'bbbb':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);       break;     case 'bbbbb':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);       break;      // Extended period of the day (midnight, night, ...), standalone     case 'B':     case 'BB':     case 'BBB':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);       break;     case 'BBBB':       formatter =           dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);       break;     case 'BBBBB':       formatter = dateStrGetter(           TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);       break;      // Hour in AM/PM, (1-12)     case 'h':       formatter = dateGetter(DateType.Hours, 1, -12);       break;     case 'hh':       formatter = dateGetter(DateType.Hours, 2, -12);       break;      // Hour of the day (0-23)     case 'H':       formatter = dateGetter(DateType.Hours, 1);       break;     // Hour in day, padded (00-23)     case 'HH':       formatter = dateGetter(DateType.Hours, 2);       break;      // Minute of the hour (0-59)     case 'm':       formatter = dateGetter(DateType.Minutes, 1);       break;     case 'mm':       formatter = dateGetter(DateType.Minutes, 2);       break;      // Second of the minute (0-59)     case 's':       formatter = dateGetter(DateType.Seconds, 1);       break;     case 'ss':       formatter = dateGetter(DateType.Seconds, 2);       break;      // Fractional second     case 'S':       formatter = dateGetter(DateType.FractionalSeconds, 1);       break;     case 'SS':       formatter = dateGetter(DateType.FractionalSeconds, 2);       break;     case 'SSS':       formatter = dateGetter(DateType.FractionalSeconds, 3);       break;       // Timezone ISO8601 short format (-0430)     case 'Z':     case 'ZZ':     case 'ZZZ':       formatter = timeZoneGetter(ZoneWidth.Short);       break;     // Timezone ISO8601 extended format (-04:30)     case 'ZZZZZ':       formatter = timeZoneGetter(ZoneWidth.Extended);       break;      // Timezone GMT short format (GMT+4)     case 'O':     case 'OO':     case 'OOO':     // Should be location, but fallback to format O instead because we don't have the data yet     case 'z':     case 'zz':     case 'zzz':       formatter = timeZoneGetter(ZoneWidth.ShortGMT);       break;     // Timezone GMT long format (GMT+0430)     case 'OOOO':     case 'ZZZZ':     // Should be location, but fallback to format O instead because we don't have the data yet     case 'zzzz':       formatter = timeZoneGetter(ZoneWidth.Long);       break;     default:       return null;   }   DATE_FORMATS[format] = formatter;   return formatter; }  function timezoneToOffset(timezone: string, fallback: number): number {   // Support: IE 11 only, Edge 13-15+   // IE/Edge do not \"understand\" colon (`:`) in timezone   timezone = timezone.replace(/:/g, '');   const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;   return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset; }  function addDateMinutes(date: Date, minutes: number) {   date = new Date(date.getTime());   date.setMinutes(date.getMinutes() + minutes);   return date; }  function convertTimezoneToLocal(date: Date, timezone: string, reverse: boolean): Date {   const reverseValue = reverse ? -1 : 1;   const dateTimezoneOffset = date.getTimezoneOffset();   const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);   return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset)); }  /**  * Converts a value to date.  *  * Supported input formats:  * - `Date`  * - number: timestamp  * - string: numeric (e.g. \"1234\"), ISO and date strings in a format supported by  *   [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).  *   Note: ISO strings without time return a date without timeoffset.  *  * Throws if unable to convert to a date.  */ export function toDate(value: string|number|Date): Date {   if (isDate(value)) {     return value;   }    if (typeof value === 'number' && !isNaN(value)) {     return new Date(value);   }    if (typeof value === 'string') {     value = value.trim();      if (/^(\\d{4}(-\\d{1,2}(-\\d{1,2})?)?)$/.test(value)) {       /* For ISO Strings without time the day, month and year must be extracted from the ISO String       before Date creation to avoid time offset and errors in the new Date.       If we only replace '-' with ',' in the ISO String (\"2015,01,01\"), and try to create a new       date, some browsers (e.g. IE 9) will throw an invalid Date error.       If we leave the '-' (\"2015-01-01\") and try to create a new Date(\"2015-01-01\") the timeoffset       is applied.       Note: ISO months are 0 for January, 1 for February, ... */       const [y, m = 1, d = 1] = value.split('-').map((val: string) => +val);       return createDate(y, m - 1, d);     }      const parsedNb = parseFloat(value);      // any string that only contains numbers, like \"1234\" but not like \"1234hello\"     if (!isNaN(value as any - parsedNb)) {       return new Date(parsedNb);     }      let match: RegExpMatchArray|null;     if (match = value.match(ISO8601_DATE_REGEX)) {       return isoStringToDate(match);     }   }    const date = new Date(value as any);   if (!isDate(date)) {     throw new Error(`Unable to convert \"${value}\" into a date`);   }   return date; }  /**  * Converts a date in ISO8601 to a Date.  * Used instead of `Date.parse` because of browser discrepancies.  */ export function isoStringToDate(match: RegExpMatchArray): Date {   const date = new Date(0);   let tzHour = 0;   let tzMin = 0;    // match[8] means that the string contains \"Z\" (UTC) or a timezone like \"+01:00\" or \"+0100\"   const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;   const timeSetter = match[8] ? date.setUTCHours : date.setHours;    // if there is a timezone defined like \"+01:00\" or \"+0100\"   if (match[9]) {     tzHour = Number(match[9] + match[10]);     tzMin = Number(match[9] + match[11]);   }   dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));   const h = Number(match[4] || 0) - tzHour;   const m = Number(match[5] || 0) - tzMin;   const s = Number(match[6] || 0);   // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)   // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`   // becomes `999ms`.   const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);   timeSetter.call(date, h, m, s, ms);   return date; }  export function isDate(value: any): value is Date {   return value instanceof Date && !isNaN(value.valueOf()); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {getLocaleNumberFormat, getLocaleNumberSymbol, getNumberOfCurrencyDigits, NumberFormatStyle, NumberSymbol} from './locale_data_api';  export const NUMBER_FORMAT_REGEXP = /^(\\d+)?\\.((\\d+)(-(\\d+))?)?$/; const MAX_DIGITS = 22; const DECIMAL_SEP = '.'; const ZERO_CHAR = '0'; const PATTERN_SEP = ';'; const GROUP_SEP = ','; const DIGIT_CHAR = '#'; const CURRENCY_CHAR = '¤'; const PERCENT_CHAR = '%';  /**  * Transforms a number to a locale string based on a style and a format.  */ function formatNumberToLocaleString(     value: number, pattern: ParsedNumberFormat, locale: string, groupSymbol: NumberSymbol,     decimalSymbol: NumberSymbol, digitsInfo?: string, isPercent = false): string {   let formattedText = '';   let isZero = false;    if (!isFinite(value)) {     formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);   } else {     let parsedNumber = parseNumber(value);      if (isPercent) {       parsedNumber = toPercent(parsedNumber);     }      let minInt = pattern.minInt;     let minFraction = pattern.minFrac;     let maxFraction = pattern.maxFrac;      if (digitsInfo) {       const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);       if (parts === null) {         throw new Error(`${digitsInfo} is not a valid digit info`);       }       const minIntPart = parts[1];       const minFractionPart = parts[3];       const maxFractionPart = parts[5];       if (minIntPart != null) {         minInt = parseIntAutoRadix(minIntPart);       }       if (minFractionPart != null) {         minFraction = parseIntAutoRadix(minFractionPart);       }       if (maxFractionPart != null) {         maxFraction = parseIntAutoRadix(maxFractionPart);       } else if (minFractionPart != null && minFraction > maxFraction) {         maxFraction = minFraction;       }     }      roundNumber(parsedNumber, minFraction, maxFraction);      let digits = parsedNumber.digits;     let integerLen = parsedNumber.integerLen;     const exponent = parsedNumber.exponent;     let decimals = [];     isZero = digits.every(d => !d);      // pad zeros for small numbers     for (; integerLen < minInt; integerLen++) {       digits.unshift(0);     }      // pad zeros for small numbers     for (; integerLen < 0; integerLen++) {       digits.unshift(0);     }      // extract decimals digits     if (integerLen > 0) {       decimals = digits.splice(integerLen, digits.length);     } else {       decimals = digits;       digits = [0];     }      // format the integer digits with grouping separators     const groups = [];     if (digits.length >= pattern.lgSize) {       groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));     }      while (digits.length > pattern.gSize) {       groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));     }      if (digits.length) {       groups.unshift(digits.join(''));     }      formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));      // append the decimal digits     if (decimals.length) {       formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');     }      if (exponent) {       formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;     }   }    if (value < 0 && !isZero) {     formattedText = pattern.negPre + formattedText + pattern.negSuf;   } else {     formattedText = pattern.posPre + formattedText + pattern.posSuf;   }    return formattedText; }  /**  * @ngModule CommonModule  * @description  *  * Formats a number as currency using locale rules.  *  * @param value The number to format.  * @param locale A locale code for the locale format rules to use.  * @param currency A string containing the currency symbol or its name,  * such as \"$\" or \"Canadian Dollar\". Used in output string, but does not affect the operation  * of the function.  * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)  * currency code, such as `USD` for the US dollar and `EUR` for the euro.  * Used to determine the number of digits in the decimal part.  * @param digitsInfo Decimal representation options, specified by a string in the following format:  * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.  *  * @returns The formatted currency value.  *  * @see `formatNumber()`  * @see `DecimalPipe`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function formatCurrency(     value: number, locale: string, currency: string, currencyCode?: string,     digitsInfo?: string): string {   const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);   const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));    pattern.minFrac = getNumberOfCurrencyDigits(currencyCode!);   pattern.maxFrac = pattern.minFrac;    const res = formatNumberToLocaleString(       value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);   return res       .replace(CURRENCY_CHAR, currency)       // if we have 2 time the currency character, the second one is ignored       .replace(CURRENCY_CHAR, '')       // If there is a spacing between currency character and the value and       // the currency character is suppressed by passing an empty string, the       // spacing character would remain as part of the string. Then we       // should remove it.       .trim(); }  /**  * @ngModule CommonModule  * @description  *  * Formats a number as a percentage according to locale rules.  *  * @param value The number to format.  * @param locale A locale code for the locale format rules to use.  * @param digitsInfo Decimal representation options, specified by a string in the following format:  * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.  *  * @returns The formatted percentage value.  *  * @see `formatNumber()`  * @see `DecimalPipe`  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  * @publicApi  *  */ export function formatPercent(value: number, locale: string, digitsInfo?: string): string {   const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);   const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));   const res = formatNumberToLocaleString(       value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);   return res.replace(       new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign)); }  /**  * @ngModule CommonModule  * @description  *  * Formats a number as text, with group sizing, separator, and other  * parameters based on the locale.  *  * @param value The number to format.  * @param locale A locale code for the locale format rules to use.  * @param digitsInfo Decimal representation options, specified by a string in the following format:  * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.  *  * @returns The formatted text string.  * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n-overview)  *  * @publicApi  */ export function formatNumber(value: number, locale: string, digitsInfo?: string): string {   const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);   const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));   return formatNumberToLocaleString(       value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo); }  interface ParsedNumberFormat {   minInt: number;   // the minimum number of digits required in the fraction part of the number   minFrac: number;   // the maximum number of digits required in the fraction part of the number   maxFrac: number;   // the prefix for a positive number   posPre: string;   // the suffix for a positive number   posSuf: string;   // the prefix for a negative number (e.g. `-` or `(`))   negPre: string;   // the suffix for a negative number (e.g. `)`)   negSuf: string;   // number of digits in each group of separated digits   gSize: number;   // number of digits in the last group of digits before the decimal separator   lgSize: number; }  function parseNumberFormat(format: string, minusSign = '-'): ParsedNumberFormat {   const p = {     minInt: 1,     minFrac: 0,     maxFrac: 0,     posPre: '',     posSuf: '',     negPre: '',     negSuf: '',     gSize: 0,     lgSize: 0   };    const patternParts = format.split(PATTERN_SEP);   const positive = patternParts[0];   const negative = patternParts[1];    const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ?       positive.split(DECIMAL_SEP) :       [         positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),         positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)       ],         integer = positiveParts[0], fraction = positiveParts[1] || '';    p.posPre = integer.substring(0, integer.indexOf(DIGIT_CHAR));    for (let i = 0; i < fraction.length; i++) {     const ch = fraction.charAt(i);     if (ch === ZERO_CHAR) {       p.minFrac = p.maxFrac = i + 1;     } else if (ch === DIGIT_CHAR) {       p.maxFrac = i + 1;     } else {       p.posSuf += ch;     }   }    const groups = integer.split(GROUP_SEP);   p.gSize = groups[1] ? groups[1].length : 0;   p.lgSize = (groups[2] || groups[1]) ? (groups[2] || groups[1]).length : 0;    if (negative) {     const trunkLen = positive.length - p.posPre.length - p.posSuf.length,           pos = negative.indexOf(DIGIT_CHAR);      p.negPre = negative.substring(0, pos).replace(/'/g, '');     p.negSuf = negative.slice(pos + trunkLen).replace(/'/g, '');   } else {     p.negPre = minusSign + p.posPre;     p.negSuf = p.posSuf;   }    return p; }  interface ParsedNumber {   // an array of digits containing leading zeros as necessary   digits: number[];   // the exponent for numbers that would need more than `MAX_DIGITS` digits in `d`   exponent: number;   // the number of the digits in `d` that are to the left of the decimal point   integerLen: number; }  // Transforms a parsed number into a percentage by multiplying it by 100 function toPercent(parsedNumber: ParsedNumber): ParsedNumber {   // if the number is 0, don't do anything   if (parsedNumber.digits[0] === 0) {     return parsedNumber;   }    // Getting the current number of decimals   const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;   if (parsedNumber.exponent) {     parsedNumber.exponent += 2;   } else {     if (fractionLen === 0) {       parsedNumber.digits.push(0, 0);     } else if (fractionLen === 1) {       parsedNumber.digits.push(0);     }     parsedNumber.integerLen += 2;   }    return parsedNumber; }  /**  * Parses a number.  * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/  */ function parseNumber(num: number): ParsedNumber {   let numStr = Math.abs(num) + '';   let exponent = 0, digits, integerLen;   let i, j, zeros;    // Decimal point?   if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {     numStr = numStr.replace(DECIMAL_SEP, '');   }    // Exponential form?   if ((i = numStr.search(/e/i)) > 0) {     // Work out the exponent.     if (integerLen < 0) integerLen = i;     integerLen += +numStr.slice(i + 1);     numStr = numStr.substring(0, i);   } else if (integerLen < 0) {     // There was no decimal point or exponent so it is an integer.     integerLen = numStr.length;   }    // Count the number of leading zeros.   for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */   }    if (i === (zeros = numStr.length)) {     // The digits are all zero.     digits = [0];     integerLen = 1;   } else {     // Count the number of trailing zeros     zeros--;     while (numStr.charAt(zeros) === ZERO_CHAR) zeros--;      // Trailing zeros are insignificant so ignore them     integerLen -= i;     digits = [];     // Convert string to array of digits without leading/trailing zeros.     for (j = 0; i <= zeros; i++, j++) {       digits[j] = Number(numStr.charAt(i));     }   }    // If the number overflows the maximum allowed digits then use an exponent.   if (integerLen > MAX_DIGITS) {     digits = digits.splice(0, MAX_DIGITS - 1);     exponent = integerLen - 1;     integerLen = 1;   }    return {digits, exponent, integerLen}; }  /**  * Round the parsed number to the specified number of decimal places  * This function changes the parsedNumber in-place  */ function roundNumber(parsedNumber: ParsedNumber, minFrac: number, maxFrac: number) {   if (minFrac > maxFrac) {     throw new Error(`The minimum number of digits after fraction (${         minFrac}) is higher than the maximum (${maxFrac}).`);   }    let digits = parsedNumber.digits;   let fractionLen = digits.length - parsedNumber.integerLen;   const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);    // The index of the digit to where rounding is to occur   let roundAt = fractionSize + parsedNumber.integerLen;   let digit = digits[roundAt];    if (roundAt > 0) {     // Drop fractional digits beyond `roundAt`     digits.splice(Math.max(parsedNumber.integerLen, roundAt));      // Set non-fractional digits beyond `roundAt` to 0     for (let j = roundAt; j < digits.length; j++) {       digits[j] = 0;     }   } else {     // We rounded to zero so reset the parsedNumber     fractionLen = Math.max(0, fractionLen);     parsedNumber.integerLen = 1;     digits.length = Math.max(1, roundAt = fractionSize + 1);     digits[0] = 0;     for (let i = 1; i < roundAt; i++) digits[i] = 0;   }    if (digit >= 5) {     if (roundAt - 1 < 0) {       for (let k = 0; k > roundAt; k--) {         digits.unshift(0);         parsedNumber.integerLen++;       }       digits.unshift(1);       parsedNumber.integerLen++;     } else {       digits[roundAt - 1]++;     }   }    // Pad out with zeros to get the required fraction length   for (; fractionLen < Math.max(0, fractionSize); fractionLen++) digits.push(0);    let dropTrailingZeros = fractionSize !== 0;   // Minimal length = nb of decimals required + current nb of integers   // Any number besides that is optional and can be removed if it's a trailing 0   const minLen = minFrac + parsedNumber.integerLen;   // Do any carrying, e.g. a digit was rounded up to 10   const carry = digits.reduceRight(function(carry, d, i, digits) {     d = d + carry;     digits[i] = d < 10 ? d : d - 10;  // d % 10     if (dropTrailingZeros) {       // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)       if (digits[i] === 0 && i >= minLen) {         digits.pop();       } else {         dropTrailingZeros = false;       }     }     return d >= 10 ? 1 : 0;  // Math.floor(d / 10);   }, 0);   if (carry) {     digits.unshift(carry);     parsedNumber.integerLen++;   } }  export function parseIntAutoRadix(text: string): number {   const result: number = parseInt(text);   if (isNaN(result)) {     throw new Error('Invalid integer literal when parsing ' + text);   }   return result; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, Injectable, LOCALE_ID} from '@angular/core';  import {getLocalePluralCase, Plural} from './locale_data_api';  /**  * @publicApi  */ @Injectable({   providedIn: 'root',   useFactory: (locale: string) => new NgLocaleLocalization(locale),   deps: [LOCALE_ID], }) export abstract class NgLocalization {   abstract getPluralCategory(value: any, locale?: string): string; }  /**  * Returns the plural category for a given value.  * - \"=value\" when the case exists,  * - the plural category otherwise  */ export function getPluralCategory(     value: number, cases: string[], ngLocalization: NgLocalization, locale?: string): string {   let key = `=${value}`;    if (cases.indexOf(key) > -1) {     return key;   }    key = ngLocalization.getPluralCategory(value, locale);    if (cases.indexOf(key) > -1) {     return key;   }    if (cases.indexOf('other') > -1) {     return 'other';   }    throw new Error(`No plural message found for value \"${value}\"`); }  /**  * Returns the plural case based on the locale  *  * @publicApi  */ @Injectable() export class NgLocaleLocalization extends NgLocalization {   constructor(@Inject(LOCALE_ID) protected locale: string) {     super();   }    override getPluralCategory(value: any, locale?: string): string {     const plural = getLocalePluralCase(locale || this.locale)(value);      switch (plural) {       case Plural.Zero:         return 'zero';       case Plural.One:         return 'one';       case Plural.Two:         return 'two';       case Plural.Few:         return 'few';       case Plural.Many:         return 'many';       default:         return 'other';     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵregisterLocaleData} from '@angular/core';  /**  * Register global data to be used internally by Angular. See the  * [\"I18n guide\"](guide/i18n-common-format-data-locale) to know how to import additional locale  * data.  *  * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1  *  * @publicApi  */ export function registerLocaleData(data: any, localeId?: string|any, extraData?: any): void {   return ɵregisterLocaleData(data, localeId, extraData); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export function parseCookieValue(cookieStr: string, name: string): string|null {   name = encodeURIComponent(name);   for (const cookie of cookieStr.split(';')) {     const eqIndex = cookie.indexOf('=');     const [cookieName, cookieValue]: string[] =         eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];     if (cookieName.trim() === name) {       return decodeURIComponent(cookieValue);     }   }   return null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {Directive, DoCheck, ElementRef, Input, IterableDiffers, KeyValueDiffers, Renderer2, ɵstringify as stringify} from '@angular/core';  type NgClassSupportedTypes = string[]|Set<string>|{[klass: string]: any}|null|undefined;  const WS_REGEXP = /\\s+/;  const EMPTY_ARRAY: string[] = [];  /**  * Represents internal object used to track state of each CSS class. There are 3 different (boolean)  * flags that, combined together, indicate state of a given CSS class:  * - enabled: indicates if a class should be present in the DOM (true) or not (false);  * - changed: tracks if a class was toggled (added or removed) during the custom dirty-checking  * process; changed classes must be synchronized with the DOM;  * - touched: tracks if a class is present in the current object bound to the class / ngClass input;  * classes that are not present any more can be removed from the internal data structures;  */ interface CssClassState {   // PERF: could use a bit mask to represent state as all fields are boolean flags   enabled: boolean;   changed: boolean;   touched: boolean; }  /**  * @ngModule CommonModule  *  * @usageNotes  * ```  *     <some-element [ngClass]=\"'first second'\">...</some-element>  *  *     <some-element [ngClass]=\"['first', 'second']\">...</some-element>  *  *     <some-element [ngClass]=\"{'first': true, 'second': true, 'third': false}\">...</some-element>  *  *     <some-element [ngClass]=\"stringExp|arrayExp|objExp\">...</some-element>  *  *     <some-element [ngClass]=\"{'class1 class2 class3' : true}\">...</some-element>  * ```  *  * @description  *  * Adds and removes CSS classes on an HTML element.  *  * The CSS classes are updated as follows, depending on the type of the expression evaluation:  * - `string` - the CSS classes listed in the string (space delimited) are added,  * - `Array` - the CSS classes declared as Array elements are added,  * - `Object` - keys are CSS classes that get added when the expression given in the value  *              evaluates to a truthy value, otherwise they are removed.  *  * @publicApi  */ @Directive({   selector: '[ngClass]',   standalone: true, }) export class NgClass implements DoCheck {   private initialClasses = EMPTY_ARRAY;   private rawClass: NgClassSupportedTypes;    private stateMap = new Map<string, CssClassState>();    constructor(       // leaving references to differs in place since flex layout is extending NgClass...       private _iterableDiffers: IterableDiffers, private _keyValueDiffers: KeyValueDiffers,       private _ngEl: ElementRef, private _renderer: Renderer2) {}    @Input('class')   set klass(value: string) {     this.initialClasses = value != null ? value.trim().split(WS_REGEXP) : EMPTY_ARRAY;   }    @Input('ngClass')   set ngClass(value: string|string[]|Set<string>|{[klass: string]: any}|null|undefined) {     this.rawClass = typeof value === 'string' ? value.trim().split(WS_REGEXP) : value;   }    /*   The NgClass directive uses the custom change detection algorithm for its inputs. The custom   algorithm is necessary since inputs are represented as complex object or arrays that need to be   deeply-compared.    This algorithm is perf-sensitive since NgClass is used very frequently and its poor performance   might negatively impact runtime performance of the entire change detection cycle. The design of   this algorithm is making sure that:   - there is no unnecessary DOM manipulation (CSS classes are added / removed from the DOM only when   needed), even if references to bound objects change;   - there is no memory allocation if nothing changes (even relatively modest memory allocation   during the change detection cycle can result in GC pauses for some of the CD cycles).    The algorithm works by iterating over the set of bound classes, staring with [class] binding and   then going over [ngClass] binding. For each CSS class name:   - check if it was seen before (this information is tracked in the state map) and if its value   changed;   - mark it as \"touched\" - names that are not marked are not present in the latest set of binding   and we can remove such class name from the internal data structures;    After iteration over all the CSS class names we've got data structure with all the information   necessary to synchronize changes to the DOM - it is enough to iterate over the state map, flush   changes to the DOM and reset internal data structures so those are ready for the next change   detection cycle.    */   ngDoCheck(): void {     // classes from the [class] binding     for (const klass of this.initialClasses) {       this._updateState(klass, true);     }      // classes from the [ngClass] binding     const rawClass = this.rawClass;     if (Array.isArray(rawClass) || rawClass instanceof Set) {       for (const klass of rawClass) {         this._updateState(klass, true);       }     } else if (rawClass != null) {       for (const klass of Object.keys(rawClass)) {         this._updateState(klass, Boolean(rawClass[klass]));       }     }      this._applyStateDiff();   }    private _updateState(klass: string, nextEnabled: boolean) {     const state = this.stateMap.get(klass);     if (state !== undefined) {       if (state.enabled !== nextEnabled) {         state.changed = true;         state.enabled = nextEnabled;       }       state.touched = true;     } else {       this.stateMap.set(klass, {enabled: nextEnabled, changed: true, touched: true});     }   }    private _applyStateDiff() {     for (const stateEntry of this.stateMap) {       const klass = stateEntry[0];       const state = stateEntry[1];        if (state.changed) {         this._toggleClass(klass, state.enabled);         state.changed = false;       } else if (!state.touched) {         // A class that was previously active got removed from the new collection of classes -         // remove from the DOM as well.         if (state.enabled) {           this._toggleClass(klass, false);         }         this.stateMap.delete(klass);       }        state.touched = false;     }   }    private _toggleClass(klass: string, enabled: boolean): void {     if (ngDevMode) {       if (typeof klass !== 'string') {         throw new Error(             `NgClass can only toggle CSS classes expressed as strings, got ${stringify(klass)}`);       }     }     klass = klass.trim();     if (klass.length > 0) {       klass.split(WS_REGEXP).forEach(klass => {         if (enabled) {           this._renderer.addClass(this._ngEl.nativeElement, klass);         } else {           this._renderer.removeClass(this._ngEl.nativeElement, klass);         }       });     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentRef, createNgModule, Directive, Injector, Input, NgModuleFactory, NgModuleRef, OnChanges, OnDestroy, SimpleChanges, Type, ViewContainerRef} from '@angular/core';   /**  * Instantiates a {@link Component} type and inserts its Host View into the current View.  * `NgComponentOutlet` provides a declarative approach for dynamic component creation.  *  * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and  * any existing component will be destroyed.  *  * @usageNotes  *  * ### Fine tune control  *  * You can control the component creation process by using the following optional attributes:  *  * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for  * the Component. Defaults to the injector of the current view container.  *  * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content  * section of the component, if it exists.  *  * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another  * module dynamically, then loading a component from that module.  *  * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional  * NgModule factory to allow loading another module dynamically, then loading a component from that  * module. Use `ngComponentOutletNgModule` instead.  *  * ### Syntax  *  * Simple  * ```  * <ng-container *ngComponentOutlet=\"componentTypeExpression\"></ng-container>  * ```  *  * Customized injector/content  * ```  * <ng-container *ngComponentOutlet=\"componentTypeExpression;  *                                   injector: injectorExpression;  *                                   content: contentNodesExpression;\">  * </ng-container>  * ```  *  * Customized NgModule reference  * ```  * <ng-container *ngComponentOutlet=\"componentTypeExpression;  *                                   ngModule: ngModuleClass;\">  * </ng-container>  * ```  *  * ### A simple example  *  * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}  *  * A more complete example with additional options:  *  * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}  *  * @publicApi  * @ngModule CommonModule  */ @Directive({   selector: '[ngComponentOutlet]',   standalone: true, }) export class NgComponentOutlet implements OnChanges, OnDestroy {   @Input() ngComponentOutlet: Type<any>|null = null;    @Input() ngComponentOutletInjector?: Injector;   @Input() ngComponentOutletContent?: any[][];    @Input() ngComponentOutletNgModule?: Type<any>;   /**    * @deprecated This input is deprecated, use `ngComponentOutletNgModule` instead.    */   @Input() ngComponentOutletNgModuleFactory?: NgModuleFactory<any>;    private _componentRef: ComponentRef<any>|undefined;   private _moduleRef: NgModuleRef<any>|undefined;    constructor(private _viewContainerRef: ViewContainerRef) {}    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     const {       _viewContainerRef: viewContainerRef,       ngComponentOutletNgModule: ngModule,       ngComponentOutletNgModuleFactory: ngModuleFactory,     } = this;     viewContainerRef.clear();     this._componentRef = undefined;      if (this.ngComponentOutlet) {       const injector = this.ngComponentOutletInjector || viewContainerRef.parentInjector;        if (changes['ngComponentOutletNgModule'] || changes['ngComponentOutletNgModuleFactory']) {         if (this._moduleRef) this._moduleRef.destroy();          if (ngModule) {           this._moduleRef = createNgModule(ngModule, getParentInjector(injector));         } else if (ngModuleFactory) {           this._moduleRef = ngModuleFactory.create(getParentInjector(injector));         } else {           this._moduleRef = undefined;         }       }        this._componentRef = viewContainerRef.createComponent(this.ngComponentOutlet, {         index: viewContainerRef.length,         injector,         ngModuleRef: this._moduleRef,         projectableNodes: this.ngComponentOutletContent,       });     }   }    /** @nodoc */   ngOnDestroy() {     if (this._moduleRef) this._moduleRef.destroy();   } }  // Helper function that returns an Injector instance of a parent NgModule. function getParentInjector(injector: Injector): Injector {   const parentNgModule = injector.get(NgModuleRef);   return parentNgModule.injector; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, DoCheck, EmbeddedViewRef, Input, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, NgIterable, TemplateRef, TrackByFunction, ViewContainerRef, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * @publicApi  */ export class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {   constructor(public $implicit: T, public ngForOf: U, public index: number, public count: number) {}    get first(): boolean {     return this.index === 0;   }    get last(): boolean {     return this.index === this.count - 1;   }    get even(): boolean {     return this.index % 2 === 0;   }    get odd(): boolean {     return !this.even;   } }  /**  * A [structural directive](guide/structural-directives) that renders  * a template for each item in a collection.  * The directive is placed on an element, which becomes the parent  * of the cloned templates.  *  * The `ngForOf` directive is generally used in the  * [shorthand form](guide/structural-directives#asterisk) `*ngFor`.  * In this form, the template to be rendered for each iteration is the content  * of an anchor element containing the directive.  *  * The following example shows the shorthand syntax with some options,  * contained in an `<li>` element.  *  * ```  * <li *ngFor=\"let item of items; index as i; trackBy: trackByFn\">...</li>  * ```  *  * The shorthand form expands into a long form that uses the `ngForOf` selector  * on an `<ng-template>` element.  * The content of the `<ng-template>` element is the `<li>` element that held the  * short-form directive.  *  * Here is the expanded version of the short-form example.  *  * ```  * <ng-template ngFor let-item [ngForOf]=\"items\" let-i=\"index\" [ngForTrackBy]=\"trackByFn\">  *   <li>...</li>  * </ng-template>  * ```  *  * Angular automatically expands the shorthand syntax as it compiles the template.  * The context for each embedded view is logically merged to the current component  * context according to its lexical position.  *  * When using the shorthand syntax, Angular allows only [one structural directive  * on an element](guide/structural-directives#one-per-element).  * If you want to iterate conditionally, for example,  * put the `*ngIf` on a container element that wraps the `*ngFor` element.  * For further discussion, see  * [Structural Directives](guide/structural-directives#one-per-element).  *  * @usageNotes  *  * ### Local variables  *  * `NgForOf` provides exported values that can be aliased to local variables.  * For example:  *  *  ```  * <li *ngFor=\"let user of users; index as i; first as isFirst\">  *    {{i}}/{{users.length}}. {{user}} <span *ngIf=\"isFirst\">default</span>  * </li>  * ```  *  * The following exported values can be aliased to local variables:  *  * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).  * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is  * more complex then a property access, for example when using the async pipe (`userStreams |  * async`).  * - `index: number`: The index of the current item in the iterable.  * - `count: number`: The length of the iterable.  * - `first: boolean`: True when the item is the first item in the iterable.  * - `last: boolean`: True when the item is the last item in the iterable.  * - `even: boolean`: True when the item has an even index in the iterable.  * - `odd: boolean`: True when the item has an odd index in the iterable.  *  * ### Change propagation  *  * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:  *  * * When an item is added, a new instance of the template is added to the DOM.  * * When an item is removed, its template instance is removed from the DOM.  * * When items are reordered, their respective templates are reordered in the DOM.  *  * Angular uses object identity to track insertions and deletions within the iterator and reproduce  * those changes in the DOM. This has important implications for animations and any stateful  * controls that are present, such as `<input>` elements that accept user input. Inserted rows can  * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state  * such as user input.  * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).  *  * The identities of elements in the iterator can change while the data does not.  * This can happen, for example, if the iterator is produced from an RPC to the server, and that  * RPC is re-run. Even if the data hasn't changed, the second response produces objects with  * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old  * elements were deleted and all new elements inserted).  *  * To avoid this expensive operation, you can customize the default tracking algorithm.  * by supplying the `trackBy` option to `NgForOf`.  * `trackBy` takes a function that has two arguments: `index` and `item`.  * If `trackBy` is given, Angular tracks changes by the return value of the function.  *  * @see [Structural Directives](guide/structural-directives)  * @ngModule CommonModule  * @publicApi  */ @Directive({   selector: '[ngFor][ngForOf]',   standalone: true, }) export class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {   /**    * The value of the iterable expression, which can be used as a    * [template input variable](guide/structural-directives#shorthand).    */   @Input()   set ngForOf(ngForOf: U&NgIterable<T>|undefined|null) {     this._ngForOf = ngForOf;     this._ngForOfDirty = true;   }   /**    * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.    *    * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object    * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)    * as the key.    *    * `NgForOf` uses the computed key to associate items in an iterable with DOM elements    * it produces for these items.    *    * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an    * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a    * primary key), and this iterable could be updated with new object instances that still    * represent the same underlying entity (for example, when data is re-fetched from the server,    * and the iterable is recreated and re-rendered, but most of the data is still the same).    *    * @see `TrackByFunction`    */   @Input()   set ngForTrackBy(fn: TrackByFunction<T>) {     if (NG_DEV_MODE && fn != null && typeof fn !== 'function') {       console.warn(           `trackBy must be a function, but received ${JSON.stringify(fn)}. ` +           `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);     }     this._trackByFn = fn;   }    get ngForTrackBy(): TrackByFunction<T> {     return this._trackByFn;   }    private _ngForOf: U|undefined|null = null;   private _ngForOfDirty: boolean = true;   private _differ: IterableDiffer<T>|null = null;   // TODO(issue/24571): remove '!'   // waiting for microsoft/typescript#43662 to allow the return type `TrackByFunction|undefined` for   // the getter   private _trackByFn!: TrackByFunction<T>;    constructor(       private _viewContainer: ViewContainerRef,       private _template: TemplateRef<NgForOfContext<T, U>>, private _differs: IterableDiffers) {}    /**    * A reference to the template that is stamped out for each item in the iterable.    * @see [template reference variable](guide/template-reference-variables)    */   @Input()   set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>) {     // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1     // The current type is too restrictive; a template that just uses index, for example,     // should be acceptable.     if (value) {       this._template = value;     }   }    /**    * Applies the changes when needed.    * @nodoc    */   ngDoCheck(): void {     if (this._ngForOfDirty) {       this._ngForOfDirty = false;       // React on ngForOf changes only once all inputs have been initialized       const value = this._ngForOf;       if (!this._differ && value) {         if (NG_DEV_MODE) {           try {             // CAUTION: this logic is duplicated for production mode below, as the try-catch             // is only present in development builds.             this._differ = this._differs.find(value).create(this.ngForTrackBy);           } catch {             let errorMessage = `Cannot find a differ supporting object '${value}' of type '` +                 `${getTypeName(value)}'. NgFor only supports binding to Iterables, such as Arrays.`;             if (typeof value === 'object') {               errorMessage += ' Did you mean to use the keyvalue pipe?';             }             throw new RuntimeError(RuntimeErrorCode.NG_FOR_MISSING_DIFFER, errorMessage);           }         } else {           // CAUTION: this logic is duplicated for development mode above, as the try-catch           // is only present in development builds.           this._differ = this._differs.find(value).create(this.ngForTrackBy);         }       }     }     if (this._differ) {       const changes = this._differ.diff(this._ngForOf);       if (changes) this._applyChanges(changes);     }   }    private _applyChanges(changes: IterableChanges<T>) {     const viewContainer = this._viewContainer;     changes.forEachOperation(         (item: IterableChangeRecord<T>, adjustedPreviousIndex: number|null,          currentIndex: number|null) => {           if (item.previousIndex == null) {             // NgForOf is never \"null\" or \"undefined\" here because the differ detected             // that a new item needs to be inserted from the iterable. This implies that             // there is an iterable value for \"_ngForOf\".             viewContainer.createEmbeddedView(                 this._template, new NgForOfContext<T, U>(item.item, this._ngForOf!, -1, -1),                 currentIndex === null ? undefined : currentIndex);           } else if (currentIndex == null) {             viewContainer.remove(                 adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);           } else if (adjustedPreviousIndex !== null) {             const view = viewContainer.get(adjustedPreviousIndex)!;             viewContainer.move(view, currentIndex);             applyViewChange(view as EmbeddedViewRef<NgForOfContext<T, U>>, item);           }         });      for (let i = 0, ilen = viewContainer.length; i < ilen; i++) {       const viewRef = <EmbeddedViewRef<NgForOfContext<T, U>>>viewContainer.get(i);       const context = viewRef.context;       context.index = i;       context.count = ilen;       context.ngForOf = this._ngForOf!;     }      changes.forEachIdentityChange((record: any) => {       const viewRef = <EmbeddedViewRef<NgForOfContext<T, U>>>viewContainer.get(record.currentIndex);       applyViewChange(viewRef, record);     });   }    /**    * Asserts the correct type of the context for the template that `NgForOf` will render.    *    * The presence of this method is a signal to the Ivy template type-check compiler that the    * `NgForOf` structural directive renders its template with a specific context type.    */   static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any):       ctx is NgForOfContext<T, U> {     return true;   } }  // Also export the `NgForOf` class as `NgFor` to improve the DX for // cases when the directive is used as standalone, so the class name // matches the CSS selector (*ngFor). export {NgForOf as NgFor};  function applyViewChange<T>(     view: EmbeddedViewRef<NgForOfContext<T>>, record: IterableChangeRecord<T>) {   view.context.$implicit = record.item; }  function getTypeName(type: any): string {   return type['name'] || typeof type; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstringify as stringify} from '@angular/core';   /**  * A structural directive that conditionally includes a template based on the value of  * an expression coerced to Boolean.  * When the expression evaluates to true, Angular renders the template  * provided in a `then` clause, and when  false or null,  * Angular renders the template provided in an optional `else` clause. The default  * template for the `else` clause is blank.  *  * A [shorthand form](guide/structural-directives#asterisk) of the directive,  * `*ngIf=\"condition\"`, is generally used, provided  * as an attribute of the anchor element for the inserted template.  * Angular expands this into a more explicit version, in which the anchor element  * is contained in an `<ng-template>` element.  *  * Simple form with shorthand syntax:  *  * ```  * <div *ngIf=\"condition\">Content to render when condition is true.</div>  * ```  *  * Simple form with expanded syntax:  *  * ```  * <ng-template [ngIf]=\"condition\"><div>Content to render when condition is  * true.</div></ng-template>  * ```  *  * Form with an \"else\" block:  *  * ```  * <div *ngIf=\"condition; else elseBlock\">Content to render when condition is true.</div>  * <ng-template #elseBlock>Content to render when condition is false.</ng-template>  * ```  *  * Shorthand form with \"then\" and \"else\" blocks:  *  * ```  * <div *ngIf=\"condition; then thenBlock else elseBlock\"></div>  * <ng-template #thenBlock>Content to render when condition is true.</ng-template>  * <ng-template #elseBlock>Content to render when condition is false.</ng-template>  * ```  *  * Form with storing the value locally:  *  * ```  * <div *ngIf=\"condition as value; else elseBlock\">{{value}}</div>  * <ng-template #elseBlock>Content to render when value is null.</ng-template>  * ```  *  * @usageNotes  *  * The `*ngIf` directive is most commonly used to conditionally show an inline template,  * as seen in the following  example.  * The default `else` template is blank.  *  * {@example common/ngIf/ts/module.ts region='NgIfSimple'}  *  * ### Showing an alternative template using `else`  *  * To display a template when `expression` evaluates to false, use an `else` template  * binding as shown in the following example.  * The `else` binding points to an `<ng-template>`  element labeled `#elseBlock`.  * The template can be defined anywhere in the component view, but is typically placed right after  * `ngIf` for readability.  *  * {@example common/ngIf/ts/module.ts region='NgIfElse'}  *  * ### Using an external `then` template  *  * In the previous example, the then-clause template is specified inline, as the content of the  * tag that contains the `ngIf` directive. You can also specify a template that is defined  * externally, by referencing a labeled `<ng-template>` element. When you do this, you can  * change which template to use at runtime, as shown in the following example.  *  * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}  *  * ### Storing a conditional result in a variable  *  * You might want to show a set of properties from the same object. If you are waiting  * for asynchronous data, the object can be undefined.  * In this case, you can use `ngIf` and store the result of the condition in a local  * variable as shown in the following example.  *  * {@example common/ngIf/ts/module.ts region='NgIfAs'}  *  * This code uses only one `AsyncPipe`, so only one subscription is created.  * The conditional statement stores the result of `userStream|async` in the local variable `user`.  * You can then bind the local `user` repeatedly.  *  * The conditional displays the data only if `userStream` returns a value,  * so you don't need to use the  * safe-navigation-operator (`?.`)  * to guard against null values when accessing properties.  * You can display an alternative template while waiting for the data.  *  * ### Shorthand syntax  *  * The shorthand syntax `*ngIf` expands into two separate template specifications  * for the \"then\" and \"else\" clauses. For example, consider the following shorthand statement,  * that is meant to show a loading page while waiting for data to be loaded.  *  * ```  * <div class=\"hero-list\" *ngIf=\"heroes else loading\">  *  ...  * </div>  *  * <ng-template #loading>  *  <div>Loading...</div>  * </ng-template>  * ```  *  * You can see that the \"else\" clause references the `<ng-template>`  * with the `#loading` label, and the template for the \"then\" clause  * is provided as the content of the anchor element.  *  * However, when Angular expands the shorthand syntax, it creates  * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.  * The anchor element containing the template for the \"then\" clause becomes  * the content of this unlabeled `<ng-template>` tag.  *  * ```  * <ng-template [ngIf]=\"heroes\" [ngIfElse]=\"loading\">  *  <div class=\"hero-list\">  *   ...  *  </div>  * </ng-template>  *  * <ng-template #loading>  *  <div>Loading...</div>  * </ng-template>  * ```  *  * The presence of the implicit template object has implications for the nesting of  * structural directives. For more on this subject, see  * [Structural Directives](guide/structural-directives#one-per-element).  *  * @ngModule CommonModule  * @publicApi  */ @Directive({   selector: '[ngIf]',   standalone: true, }) export class NgIf<T = unknown> {   private _context: NgIfContext<T> = new NgIfContext<T>();   private _thenTemplateRef: TemplateRef<NgIfContext<T>>|null = null;   private _elseTemplateRef: TemplateRef<NgIfContext<T>>|null = null;   private _thenViewRef: EmbeddedViewRef<NgIfContext<T>>|null = null;   private _elseViewRef: EmbeddedViewRef<NgIfContext<T>>|null = null;    constructor(private _viewContainer: ViewContainerRef, templateRef: TemplateRef<NgIfContext<T>>) {     this._thenTemplateRef = templateRef;   }    /**    * The Boolean expression to evaluate as the condition for showing a template.    */   @Input()   set ngIf(condition: T) {     this._context.$implicit = this._context.ngIf = condition;     this._updateView();   }    /**    * A template to show if the condition expression evaluates to true.    */   @Input()   set ngIfThen(templateRef: TemplateRef<NgIfContext<T>>|null) {     assertTemplate('ngIfThen', templateRef);     this._thenTemplateRef = templateRef;     this._thenViewRef = null;  // clear previous view if any.     this._updateView();   }    /**    * A template to show if the condition expression evaluates to false.    */   @Input()   set ngIfElse(templateRef: TemplateRef<NgIfContext<T>>|null) {     assertTemplate('ngIfElse', templateRef);     this._elseTemplateRef = templateRef;     this._elseViewRef = null;  // clear previous view if any.     this._updateView();   }    private _updateView() {     if (this._context.$implicit) {       if (!this._thenViewRef) {         this._viewContainer.clear();         this._elseViewRef = null;         if (this._thenTemplateRef) {           this._thenViewRef =               this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);         }       }     } else {       if (!this._elseViewRef) {         this._viewContainer.clear();         this._thenViewRef = null;         if (this._elseTemplateRef) {           this._elseViewRef =               this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);         }       }     }   }    /** @internal */   public static ngIfUseIfTypeGuard: void;    /**    * Assert the correct type of the expression bound to the `ngIf` input within the template.    *    * The presence of this static field is a signal to the Ivy template type check compiler that    * when the `NgIf` structural directive renders its template, the type of the expression bound    * to `ngIf` should be narrowed in some way. For `NgIf`, the binding expression itself is used to    * narrow its type, which allows the strictNullChecks feature of TypeScript to work with `NgIf`.    */   static ngTemplateGuard_ngIf: 'binding';    /**    * Asserts the correct type of the context for the template that `NgIf` will render.    *    * The presence of this method is a signal to the Ivy template type-check compiler that the    * `NgIf` structural directive renders its template with a specific context type.    */   static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any):       ctx is NgIfContext<Exclude<T, false|0|''|null|undefined>> {     return true;   } }  /**  * @publicApi  */ export class NgIfContext<T = unknown> {   public $implicit: T = null!;   public ngIf: T = null!; }  function assertTemplate(property: string, templateRef: TemplateRef<any>|null): void {   const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);   if (!isTemplateRefOrNull) {     throw new Error(`${property} must be a TemplateRef, but received '${stringify(templateRef)}'.`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, DoCheck, Host, Input, Optional, TemplateRef, ViewContainerRef, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  export class SwitchView {   private _created = false;    constructor(       private _viewContainerRef: ViewContainerRef, private _templateRef: TemplateRef<Object>) {}    create(): void {     this._created = true;     this._viewContainerRef.createEmbeddedView(this._templateRef);   }    destroy(): void {     this._created = false;     this._viewContainerRef.clear();   }    enforceState(created: boolean) {     if (created && !this._created) {       this.create();     } else if (!created && this._created) {       this.destroy();     }   } }  /**  * @ngModule CommonModule  *  * @description  * The `[ngSwitch]` directive on a container specifies an expression to match against.  * The expressions to match are provided by `ngSwitchCase` directives on views within the container.  * - Every view that matches is rendered.  * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.  * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`  * or `ngSwitchDefault` directive are preserved at the location.  *  * @usageNotes  * Define a container element for the directive, and specify the switch expression  * to match against as an attribute:  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  * ```  *  * Within the container, `*ngSwitchCase` statements specify the match expressions  * as attributes. Include `*ngSwitchDefault` as the final case.  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *    <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  * ...  *    <some-element *ngSwitchDefault>...</some-element>  * </container-element>  * ```  *  * ### Usage Examples  *  * The following example shows how to use more than one case to display the same view:  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *   <!-- the same view can be shown in more than one case -->  *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  *   <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>  *   <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>  *   <!--default case when there are no matches -->  *   <some-element *ngSwitchDefault>...</some-element>  * </container-element>  * ```  *  * The following example shows how cases can be nested:  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *       <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  *       <some-element *ngSwitchCase=\"match_expression_2\">...</some-element>  *       <some-other-element *ngSwitchCase=\"match_expression_3\">...</some-other-element>  *       <ng-container *ngSwitchCase=\"match_expression_3\">  *         <!-- use a ng-container to group multiple root nodes -->  *         <inner-element></inner-element>  *         <inner-other-element></inner-other-element>  *       </ng-container>  *       <some-element *ngSwitchDefault>...</some-element>  *     </container-element>  * ```  *  * @publicApi  * @see `NgSwitchCase`  * @see `NgSwitchDefault`  * @see [Structural Directives](guide/structural-directives)  *  */ @Directive({   selector: '[ngSwitch]',   standalone: true, }) export class NgSwitch {   private _defaultViews: SwitchView[] = [];   private _defaultUsed = false;   private _caseCount = 0;   private _lastCaseCheckIndex = 0;   private _lastCasesMatched = false;   private _ngSwitch: any;    @Input()   set ngSwitch(newValue: any) {     this._ngSwitch = newValue;     if (this._caseCount === 0) {       this._updateDefaultCases(true);     }   }    /** @internal */   _addCase(): number {     return this._caseCount++;   }    /** @internal */   _addDefault(view: SwitchView) {     this._defaultViews.push(view);   }    /** @internal */   _matchCase(value: any): boolean {     const matched = value == this._ngSwitch;     this._lastCasesMatched = this._lastCasesMatched || matched;     this._lastCaseCheckIndex++;     if (this._lastCaseCheckIndex === this._caseCount) {       this._updateDefaultCases(!this._lastCasesMatched);       this._lastCaseCheckIndex = 0;       this._lastCasesMatched = false;     }     return matched;   }    private _updateDefaultCases(useDefault: boolean) {     if (this._defaultViews.length > 0 && useDefault !== this._defaultUsed) {       this._defaultUsed = useDefault;       for (const defaultView of this._defaultViews) {         defaultView.enforceState(useDefault);       }     }   } }  /**  * @ngModule CommonModule  *  * @description  * Provides a switch case expression to match against an enclosing `ngSwitch` expression.  * When the expressions match, the given `NgSwitchCase` template is rendered.  * If multiple match expressions match the switch expression value, all of them are displayed.  *  * @usageNotes  *  * Within a switch container, `*ngSwitchCase` statements specify the match expressions  * as attributes. Include `*ngSwitchDefault` as the final case.  *  * ```  * <container-element [ngSwitch]=\"switch_expression\">  *   <some-element *ngSwitchCase=\"match_expression_1\">...</some-element>  *   ...  *   <some-element *ngSwitchDefault>...</some-element>  * </container-element>  * ```  *  * Each switch-case statement contains an in-line HTML template or template reference  * that defines the subtree to be selected if the value of the match expression  * matches the value of the switch expression.  *  * Unlike JavaScript, which uses strict equality, Angular uses loose equality.  * This means that the empty string, `\"\"` matches 0.  *  * @publicApi  * @see `NgSwitch`  * @see `NgSwitchDefault`  *  */ @Directive({   selector: '[ngSwitchCase]',   standalone: true, }) export class NgSwitchCase implements DoCheck {   private _view: SwitchView;   /**    * Stores the HTML template to be selected on match.    */   @Input() ngSwitchCase: any;    constructor(       viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>,       @Optional() @Host() private ngSwitch: NgSwitch) {     if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {       throwNgSwitchProviderNotFoundError('ngSwitchCase', 'NgSwitchCase');     }      ngSwitch._addCase();     this._view = new SwitchView(viewContainer, templateRef);   }    /**    * Performs case matching. For internal use only.    * @nodoc    */   ngDoCheck() {     this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));   } }  /**  * @ngModule CommonModule  *  * @description  *  * Creates a view that is rendered when no `NgSwitchCase` expressions  * match the `NgSwitch` expression.  * This statement should be the final case in an `NgSwitch`.  *  * @publicApi  * @see `NgSwitch`  * @see `NgSwitchCase`  *  */ @Directive({   selector: '[ngSwitchDefault]',   standalone: true, }) export class NgSwitchDefault {   constructor(       viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>,       @Optional() @Host() ngSwitch: NgSwitch) {     if ((typeof ngDevMode === 'undefined' || ngDevMode) && !ngSwitch) {       throwNgSwitchProviderNotFoundError('ngSwitchDefault', 'NgSwitchDefault');     }      ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));   } }  function throwNgSwitchProviderNotFoundError(attrName: string, directiveName: string): never {   throw new RuntimeError(       RuntimeErrorCode.PARENT_NG_SWITCH_NOT_FOUND,       `An element with the \"${attrName}\" attribute ` +           `(matching the \"${               directiveName}\" directive) must be located inside an element with the \"ngSwitch\" attribute ` +           `(matching \"NgSwitch\" directive)`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Attribute, Directive, Host, Input, TemplateRef, ViewContainerRef} from '@angular/core';  import {getPluralCategory, NgLocalization} from '../i18n/localization';  import {SwitchView} from './ng_switch';  /**  * @ngModule CommonModule  *  * @usageNotes  * ```  * <some-element [ngPlural]=\"value\">  *   <ng-template ngPluralCase=\"=0\">there is nothing</ng-template>  *   <ng-template ngPluralCase=\"=1\">there is one</ng-template>  *   <ng-template ngPluralCase=\"few\">there are a few</ng-template>  * </some-element>  * ```  *  * @description  *  * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.  *  * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees  * that match the switch expression's pluralization category.  *  * To use this directive you must provide a container element that sets the `[ngPlural]` attribute  * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their  * expression:  * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value  *   matches the switch expression exactly,  * - otherwise, the view will be treated as a \"category match\", and will only display if exact  *   value matches aren't found and the value maps to its category for the defined locale.  *  * See http://cldr.unicode.org/index/cldr-spec/plural-rules  *  * @publicApi  */ @Directive({   selector: '[ngPlural]',   standalone: true, }) export class NgPlural {   private _activeView?: SwitchView;   private _caseViews: {[k: string]: SwitchView} = {};    constructor(private _localization: NgLocalization) {}    @Input()   set ngPlural(value: number) {     this._updateView(value);   }    addCase(value: string, switchView: SwitchView): void {     this._caseViews[value] = switchView;   }    private _updateView(switchValue: number): void {     this._clearViews();      const cases = Object.keys(this._caseViews);     const key = getPluralCategory(switchValue, cases, this._localization);     this._activateView(this._caseViews[key]);   }    private _clearViews() {     if (this._activeView) this._activeView.destroy();   }    private _activateView(view: SwitchView) {     if (view) {       this._activeView = view;       this._activeView.create();     }   } }  /**  * @ngModule CommonModule  *  * @description  *  * Creates a view that will be added/removed from the parent {@link NgPlural} when the  * given expression matches the plural expression according to CLDR rules.  *  * @usageNotes  * ```  * <some-element [ngPlural]=\"value\">  *   <ng-template ngPluralCase=\"=0\">...</ng-template>  *   <ng-template ngPluralCase=\"other\">...</ng-template>  * </some-element>  *```  *  * See {@link NgPlural} for more details and example.  *  * @publicApi  */ @Directive({   selector: '[ngPluralCase]',   standalone: true, }) export class NgPluralCase {   constructor(       @Attribute('ngPluralCase') public value: string, template: TemplateRef<Object>,       viewContainer: ViewContainerRef, @Host() ngPlural: NgPlural) {     const isANumber: boolean = !isNaN(Number(value));     ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */ import {Directive, DoCheck, ElementRef, Input, KeyValueChanges, KeyValueDiffer, KeyValueDiffers, Renderer2, RendererStyleFlags2} from '@angular/core';   /**  * @ngModule CommonModule  *  * @usageNotes  *  * Set the font of the containing element to the result of an expression.  *  * ```  * <some-element [ngStyle]=\"{'font-style': styleExp}\">...</some-element>  * ```  *  * Set the width of the containing element to a pixel value returned by an expression.  *  * ```  * <some-element [ngStyle]=\"{'max-width.px': widthExp}\">...</some-element>  * ```  *  * Set a collection of style values using an expression that returns key-value pairs.  *  * ```  * <some-element [ngStyle]=\"objExp\">...</some-element>  * ```  *  * @description  *  * An attribute directive that updates styles for the containing HTML element.  * Sets one or more style properties, specified as colon-separated key-value pairs.  * The key is a style name, with an optional `.<unit>` suffix  * (such as 'top.px', 'font-style.em').  * The value is an expression to be evaluated.  * The resulting non-null value, expressed in the given unit,  * is assigned to the given style property.  * If the result of evaluation is null, the corresponding style is removed.  *  * @publicApi  */ @Directive({   selector: '[ngStyle]',   standalone: true, }) export class NgStyle implements DoCheck {   private _ngStyle: {[key: string]: string}|null|undefined = null;   private _differ: KeyValueDiffer<string, string|number>|null = null;    constructor(       private _ngEl: ElementRef, private _differs: KeyValueDiffers, private _renderer: Renderer2) {}    @Input('ngStyle')   set ngStyle(values: {[klass: string]: any}|null|undefined) {     this._ngStyle = values;     if (!this._differ && values) {       this._differ = this._differs.find(values).create();     }   }    ngDoCheck() {     if (this._differ) {       const changes = this._differ.diff(this._ngStyle!);       if (changes) {         this._applyChanges(changes);       }     }   }    private _setStyle(nameAndUnit: string, value: string|number|null|undefined): void {     const [name, unit] = nameAndUnit.split('.');     const flags = name.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase as number;      if (value != null) {       this._renderer.setStyle(           this._ngEl.nativeElement, name, unit ? `${value}${unit}` : value, flags);     } else {       this._renderer.removeStyle(this._ngEl.nativeElement, name, flags);     }   }    private _applyChanges(changes: KeyValueChanges<string, string|number>): void {     changes.forEachRemovedItem((record) => this._setStyle(record.key, null));     changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));     changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EmbeddedViewRef, Injector, Input, OnChanges, SimpleChanges, TemplateRef, ViewContainerRef} from '@angular/core';  /**  * @ngModule CommonModule  *  * @description  *  * Inserts an embedded view from a prepared `TemplateRef`.  *  * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.  * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding  * by the local template `let` declarations.  *  * @usageNotes  * ```  * <ng-container *ngTemplateOutlet=\"templateRefExp; context: contextExp\"></ng-container>  * ```  *  * Using the key `$implicit` in the context object will set its value as default.  *  * ### Example  *  * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}  *  * @publicApi  */ @Directive({   selector: '[ngTemplateOutlet]',   standalone: true, }) export class NgTemplateOutlet implements OnChanges {   private _viewRef: EmbeddedViewRef<any>|null = null;    /**    * A context object to attach to the {@link EmbeddedViewRef}. This should be an    * object, the object's keys will be available for binding by the local template `let`    * declarations.    * Using the key `$implicit` in the context object will set its value as default.    */   @Input() public ngTemplateOutletContext: Object|null = null;    /**    * A string defining the template reference and optionally the context object for the template.    */   @Input() public ngTemplateOutlet: TemplateRef<any>|null = null;    /** Injector to be used within the embedded view. */   @Input() public ngTemplateOutletInjector: Injector|null = null;    constructor(private _viewContainerRef: ViewContainerRef) {}    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (changes['ngTemplateOutlet'] || changes['ngTemplateOutletInjector']) {       const viewContainerRef = this._viewContainerRef;        if (this._viewRef) {         viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));       }        if (this.ngTemplateOutlet) {         const {           ngTemplateOutlet: template,           ngTemplateOutletContext: context,           ngTemplateOutletInjector: injector         } = this;         this._viewRef = viewContainerRef.createEmbeddedView(             template, context, injector ? {injector} : undefined);       } else {         this._viewRef = null;       }     } else if (         this._viewRef && changes['ngTemplateOutletContext'] && this.ngTemplateOutletContext) {       this._viewRef.context = this.ngTemplateOutletContext;     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Provider} from '@angular/core';  import {NgClass} from './ng_class'; import {NgComponentOutlet} from './ng_component_outlet'; import {NgFor, NgForOf, NgForOfContext} from './ng_for_of'; import {NgIf, NgIfContext} from './ng_if'; import {NgPlural, NgPluralCase} from './ng_plural'; import {NgStyle} from './ng_style'; import {NgSwitch, NgSwitchCase, NgSwitchDefault} from './ng_switch'; import {NgTemplateOutlet} from './ng_template_outlet';  export {   NgClass,   NgComponentOutlet,   NgFor,   NgForOf,   NgForOfContext,   NgIf,   NgIfContext,   NgPlural,   NgPluralCase,   NgStyle,   NgSwitch,   NgSwitchCase,   NgSwitchDefault,   NgTemplateOutlet, };    /**  * A collection of Angular directives that are likely to be used in each and every Angular  * application.  */ export const COMMON_DIRECTIVES: Provider[] = [   NgClass,   NgComponentOutlet,   NgForOf,   NgIf,   NgTemplateOutlet,   NgStyle,   NgSwitch,   NgSwitchCase,   NgSwitchDefault,   NgPlural,   NgPluralCase, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Type, ɵRuntimeError as RuntimeError, ɵstringify as stringify} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  export function invalidPipeArgumentError(type: Type<any>, value: Object) {   return new RuntimeError(       RuntimeErrorCode.INVALID_PIPE_ARGUMENT,       ngDevMode && `InvalidPipeArgument: '${value}' for pipe '${stringify(type)}'`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ChangeDetectorRef, EventEmitter, OnDestroy, Pipe, PipeTransform, ɵisPromise, ɵisSubscribable} from '@angular/core'; import {Observable, Subscribable, Unsubscribable} from 'rxjs';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  interface SubscriptionStrategy {   createSubscription(async: Subscribable<any>|Promise<any>, updateLatestValue: any): Unsubscribable       |Promise<any>;   dispose(subscription: Unsubscribable|Promise<any>): void; }  class SubscribableStrategy implements SubscriptionStrategy {   createSubscription(async: Subscribable<any>, updateLatestValue: any): Unsubscribable {     return async.subscribe({       next: updateLatestValue,       error: (e: any) => {         throw e;       }     });   }    dispose(subscription: Unsubscribable): void {     subscription.unsubscribe();   } }  class PromiseStrategy implements SubscriptionStrategy {   createSubscription(async: Promise<any>, updateLatestValue: (v: any) => any): Promise<any> {     return async.then(updateLatestValue, e => {       throw e;     });   }    dispose(subscription: Promise<any>): void {} }  const _promiseStrategy = new PromiseStrategy(); const _subscribableStrategy = new SubscribableStrategy();  /**  * @ngModule CommonModule  * @description  *  * Unwraps a value from an asynchronous primitive.  *  * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has  * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for  * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid  * potential memory leaks. When the reference of the expression changes, the `async` pipe  * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.  *  * @usageNotes  *  * ### Examples  *  * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the  * promise.  *  * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}  *  * It's also possible to use `async` with Observables. The example below binds the `time` Observable  * to the view. The Observable continuously updates the view with the current time.  *  * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}  *  * @publicApi  */ @Pipe({   name: 'async',   pure: false,   standalone: true, }) export class AsyncPipe implements OnDestroy, PipeTransform {   private _ref: ChangeDetectorRef|null;   private _latestValue: any = null;    private _subscription: Unsubscribable|Promise<any>|null = null;   private _obj: Subscribable<any>|Promise<any>|EventEmitter<any>|null = null;   private _strategy: SubscriptionStrategy|null = null;    constructor(ref: ChangeDetectorRef) {     // Assign `ref` into `this._ref` manually instead of declaring `_ref` in the constructor     // parameter list, as the type of `this._ref` includes `null` unlike the type of `ref`.     this._ref = ref;   }    ngOnDestroy(): void {     if (this._subscription) {       this._dispose();     }     // Clear the `ChangeDetectorRef` and its association with the view data, to mitigate     // potential memory leaks in Observables that could otherwise cause the view data to     // be retained.     // https://github.com/angular/angular/issues/17624     this._ref = null;   }    // NOTE(@benlesh): Because Observable has deprecated a few call patterns for `subscribe`,   // TypeScript has a hard time matching Observable to Subscribable, for more information   // see https://github.com/microsoft/TypeScript/issues/43643    transform<T>(obj: Observable<T>|Subscribable<T>|Promise<T>): T|null;   transform<T>(obj: null|undefined): null;   transform<T>(obj: Observable<T>|Subscribable<T>|Promise<T>|null|undefined): T|null;   transform<T>(obj: Observable<T>|Subscribable<T>|Promise<T>|null|undefined): T|null {     if (!this._obj) {       if (obj) {         this._subscribe(obj);       }       return this._latestValue;     }      if (obj !== this._obj) {       this._dispose();       return this.transform(obj);     }      return this._latestValue;   }    private _subscribe(obj: Subscribable<any>|Promise<any>|EventEmitter<any>): void {     this._obj = obj;     this._strategy = this._selectStrategy(obj);     this._subscription = this._strategy.createSubscription(         obj, (value: Object) => this._updateLatestValue(obj, value));   }    private _selectStrategy(obj: Subscribable<any>|Promise<any>|                           EventEmitter<any>): SubscriptionStrategy {     if (ɵisPromise(obj)) {       return _promiseStrategy;     }      if (ɵisSubscribable(obj)) {       return _subscribableStrategy;     }      throw invalidPipeArgumentError(AsyncPipe, obj);   }    private _dispose(): void {     // Note: `dispose` is only called if a subscription has been initialized before, indicating     // that `this._strategy` is also available.     this._strategy!.dispose(this._subscription!);     this._latestValue = null;     this._subscription = null;     this._obj = null;   }    private _updateLatestValue(async: any, value: Object): void {     if (async === this._obj) {       this._latestValue = value;       // Note: `this._ref` is only cleared in `ngOnDestroy` so is known to be available when a       // value is being updated.       this._ref!.markForCheck();     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * Transforms text to all lower case.  *  * @see `UpperCasePipe`  * @see `TitleCasePipe`  * @usageNotes  *  * The following example defines a view that allows the user to enter  * text, and then uses the pipe to convert the input text to all lower case.  *  * <code-example path=\"common/pipes/ts/lowerupper_pipe.ts\" region='LowerUpperPipe'></code-example>  *  * @ngModule CommonModule  * @publicApi  */ @Pipe({   name: 'lowercase',   standalone: true, }) export class LowerCasePipe implements PipeTransform {   /**    * @param value The string to transform to lower case.    */   transform(value: string): string;   transform(value: null|undefined): null;   transform(value: string|null|undefined): string|null;   transform(value: string|null|undefined): string|null {     if (value == null) return null;     if (typeof value !== 'string') {       throw invalidPipeArgumentError(LowerCasePipe, value);     }     return value.toLowerCase();   } }  // // Regex below matches any Unicode word and number compatible with ES5. In ES2018 the same result // can be achieved by using /[0-9\\p{L}]\\S*/gu and also known as Unicode Property Escapes // (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no // transpilation of this functionality down to ES5 without external tool, the only solution is // to use already transpiled form. Example can be found here - // https://mothereff.in/regexpu#input=var+regex+%3D+%2F%5B0-9%5Cp%7BL%7D%5D%5CS*%2Fgu%3B%0A%0A&unicodePropertyEscape=1 //  const unicodeWordMatch =     /(?:[0-9A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\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\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C88\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uA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A0-\\uDCDF\\uDCFF-\\uDD06\\uDD09\\uDD0C-\\uDD13\\uDD15\\uDD16\\uDD18-\\uDD2F\\uDD3F\\uDD41\\uDDA0-\\uDDA7\\uDDAA-\\uDDD0\\uDDE1\\uDDE3\\uDE00\\uDE0B-\\uDE32\\uDE3A\\uDE50\\uDE5C-\\uDE89\\uDE9D\\uDEB0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC2E\\uDC40\\uDC72-\\uDC8F\\uDD00-\\uDD06\\uDD08\\uDD09\\uDD0B-\\uDD30\\uDD46\\uDD60-\\uDD65\\uDD67\\uDD68\\uDD6A-\\uDD89\\uDD98\\uDEE0-\\uDEF2\\uDFB0]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC80-\\uDD43]|\\uD80B[\\uDF90-\\uDFF0]|[\\uD80C\\uD81C-\\uD820\\uD822\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879\\uD880-\\uD883][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE70-\\uDEBE\\uDED0-\\uDEED\\uDF00-\\uDF2F\\uDF40-\\uDF43\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDE40-\\uDE7F\\uDF00-\\uDF4A\\uDF50\\uDF93-\\uDF9F\\uDFE0\\uDFE1\\uDFE3]|\\uD821[\\uDC00-\\uDFF7]|\\uD823[\\uDC00-\\uDCD5\\uDD00-\\uDD08]|\\uD82B[\\uDFF0-\\uDFF3\\uDFF5-\\uDFFB\\uDFFD\\uDFFE]|\\uD82C[\\uDC00-\\uDD22\\uDD50-\\uDD52\\uDD64-\\uDD67\\uDD70-\\uDEFB]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99]|\\uD835[\\uDC00-\\uDC54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-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0]|\\uD87E[\\uDC00-\\uDE1D]|\\uD884[\\uDC00-\\uDF4A])\\S*/g;  /**  * Transforms text to title case.  * Capitalizes the first letter of each word and transforms the  * rest of the word to lower case.  * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.  *  * @see `LowerCasePipe`  * @see `UpperCasePipe`  *  * @usageNotes  * The following example shows the result of transforming various strings into title case.  *  * <code-example path=\"common/pipes/ts/titlecase_pipe.ts\" region='TitleCasePipe'></code-example>  *  * @ngModule CommonModule  * @publicApi  */ @Pipe({   name: 'titlecase',   standalone: true, }) export class TitleCasePipe implements PipeTransform {   /**    * @param value The string to transform to title case.    */   transform(value: string): string;   transform(value: null|undefined): null;   transform(value: string|null|undefined): string|null;   transform(value: string|null|undefined): string|null {     if (value == null) return null;     if (typeof value !== 'string') {       throw invalidPipeArgumentError(TitleCasePipe, value);     }      return value.replace(         unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.slice(1).toLowerCase()));   } }  /**  * Transforms text to all upper case.  * @see `LowerCasePipe`  * @see `TitleCasePipe`  *  * @ngModule CommonModule  * @publicApi  */ @Pipe({   name: 'uppercase',   standalone: true, }) export class UpperCasePipe implements PipeTransform {   /**    * @param value The string to transform to upper case.    */   transform(value: string): string;   transform(value: null|undefined): null;   transform(value: string|null|undefined): string|null;   transform(value: string|null|undefined): string|null {     if (value == null) return null;     if (typeof value !== 'string') {       throw invalidPipeArgumentError(UpperCasePipe, value);     }     return value.toUpperCase();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * An interface that describes the date pipe configuration, which can be provided using the  * `DATE_PIPE_DEFAULT_OPTIONS` token.  *  * @see `DATE_PIPE_DEFAULT_OPTIONS`  *  * @publicApi  */ export interface DatePipeConfig {   dateFormat: string;   timezone: string; }  /**  * The default date format of Angular date pipe, which corresponds to the following format:  * `'MMM d,y'` (e.g. `Jun 15, 2015`)  */ export const DEFAULT_DATE_FORMAT = 'mediumDate'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, InjectionToken, LOCALE_ID, Optional, Pipe, PipeTransform} from '@angular/core';  import {formatDate} from '../i18n/format_date';  import {DatePipeConfig, DEFAULT_DATE_FORMAT} from './date_pipe_config'; import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).  * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.  *  * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe  */ export const DATE_PIPE_DEFAULT_TIMEZONE = new InjectionToken<string>('DATE_PIPE_DEFAULT_TIMEZONE');  /**  * DI token that allows to provide default configuration for the `DatePipe` instances in an  * application. The value is an object which can include the following fields:  * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`  * will use the 'mediumDate' as a value.  * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will  * use the end-user's local system timezone.  *  * @see `DatePipeConfig`  *  * @usageNotes  *  * Various date pipe default values can be overwritten by providing this token with  * the value that has this interface.  *  * For example:  *  * Override the default date format by providing a value using the token:  * ```typescript  * providers: [  *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}  * ]  * ```  *  * Override the default timezone by providing a value using the token:  * ```typescript  * providers: [  *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}  * ]  * ```  */ export const DATE_PIPE_DEFAULT_OPTIONS =     new InjectionToken<DatePipeConfig>('DATE_PIPE_DEFAULT_OPTIONS');  // clang-format off /**  * @ngModule CommonModule  * @description  *  * Formats a date value according to locale rules.  *  * `DatePipe` is executed only when it detects a pure change to the input value.  * A pure change is either a change to a primitive input value  * (such as `String`, `Number`, `Boolean`, or `Symbol`),  * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).  *  * Note that mutating a `Date` object does not cause the pipe to be rendered again.  * To ensure that the pipe is executed, you must create a new `Date` object.  *  * Only the `en-US` locale data comes with Angular. To localize dates  * in another language, you must import the corresponding locale data.  * See the [I18n guide](guide/i18n-common-format-data-locale) for more information.  *  * The time zone of the formatted value can be specified either by passing it in as the second  * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`  * injection token. The value that is passed in as the second parameter takes precedence over  * the one defined using the injection token.  *  * @see `formatDate()`  *  *  * @usageNotes  *  * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to  * reformat the date on every change-detection cycle, treat the date as an immutable object  * and change the reference when the pipe needs to run again.  *  * ### Pre-defined format options  *  * | Option        | Equivalent to                       | Examples (given in `en-US` locale)              |  * |---------------|-------------------------------------|-------------------------------------------------|  * | `'short'`     | `'M/d/yy, h:mm a'`                  | `6/15/15, 9:03 AM`                              |  * | `'medium'`    | `'MMM d, y, h:mm:ss a'`             | `Jun 15, 2015, 9:03:01 AM`                      |  * | `'long'`      | `'MMMM d, y, h:mm:ss a z'`          | `June 15, 2015 at 9:03:01 AM GMT+1`             |  * | `'full'`      | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |  * | `'shortDate'` | `'M/d/yy'`                          | `6/15/15`                                       |  * | `'mediumDate'`| `'MMM d, y'`                        | `Jun 15, 2015`                                  |  * | `'longDate'`  | `'MMMM d, y'`                       | `June 15, 2015`                                 |  * | `'fullDate'`  | `'EEEE, MMMM d, y'`                 | `Monday, June 15, 2015`                         |  * | `'shortTime'` | `'h:mm a'`                          | `9:03 AM`                                       |  * | `'mediumTime'`| `'h:mm:ss a'`                       | `9:03:01 AM`                                    |  * | `'longTime'`  | `'h:mm:ss a z'`                     | `9:03:01 AM GMT+1`                              |  * | `'fullTime'`  | `'h:mm:ss a zzzz'`                  | `9:03:01 AM GMT+01:00`                          |  *  * ### Custom format options  *  * You can construct a format string using symbols to specify the components  * of a date-time value, as described in the following table.  * Format details depend on the locale.  * Fields marked with (*) are only available in the extra data set for the given locale.  *  *  | Field type          | Format      | Description                                                   | Example Value                                              |  *  |-------------------- |-------------|---------------------------------------------------------------|------------------------------------------------------------|  *  | Era                 | G, GG & GGG | Abbreviated                                                   | AD                                                         |  *  |                     | GGGG        | Wide                                                          | Anno Domini                                                |  *  |                     | GGGGG       | Narrow                                                        | A                                                          |  *  | Year                | y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |  *  |                     | yy          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |  *  |                     | yyy         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |  *  |                     | yyyy        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |  *  | Week-numbering year | Y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |  *  |                     | YY          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |  *  |                     | YYY         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |  *  |                     | YYYY        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |  *  | Month               | M           | Numeric: 1 digit                                              | 9, 12                                                      |  *  |                     | MM          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |  *  |                     | MMM         | Abbreviated                                                   | Sep                                                        |  *  |                     | MMMM        | Wide                                                          | September                                                  |  *  |                     | MMMMM       | Narrow                                                        | S                                                          |  *  | Month standalone    | L           | Numeric: 1 digit                                              | 9, 12                                                      |  *  |                     | LL          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |  *  |                     | LLL         | Abbreviated                                                   | Sep                                                        |  *  |                     | LLLL        | Wide                                                          | September                                                  |  *  |                     | LLLLL       | Narrow                                                        | S                                                          |  *  | Week of year        | w           | Numeric: minimum digits                                       | 1... 53                                                    |  *  |                     | ww          | Numeric: 2 digits + zero padded                               | 01... 53                                                   |  *  | Week of month       | W           | Numeric: 1 digit                                              | 1... 5                                                     |  *  | Day of month        | d           | Numeric: minimum digits                                       | 1                                                          |  *  |                     | dd          | Numeric: 2 digits + zero padded                               | 01                                                         |  *  | Week day            | E, EE & EEE | Abbreviated                                                   | Tue                                                        |  *  |                     | EEEE        | Wide                                                          | Tuesday                                                    |  *  |                     | EEEEE       | Narrow                                                        | T                                                          |  *  |                     | EEEEEE      | Short                                                         | Tu                                                         |  *  | Week day standalone | c, cc       | Numeric: 1 digit                                              | 2                                                          |  *  |                     | ccc         | Abbreviated                                                   | Tue                                                        |  *  |                     | cccc        | Wide                                                          | Tuesday                                                    |  *  |                     | ccccc       | Narrow                                                        | T                                                          |  *  |                     | cccccc      | Short                                                         | Tu                                                         |  *  | Period              | a, aa & aaa | Abbreviated                                                   | am/pm or AM/PM                                             |  *  |                     | aaaa        | Wide (fallback to `a` when missing)                           | ante meridiem/post meridiem                                |  *  |                     | aaaaa       | Narrow                                                        | a/p                                                        |  *  | Period*             | B, BB & BBB | Abbreviated                                                   | mid.                                                       |  *  |                     | BBBB        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |  *  |                     | BBBBB       | Narrow                                                        | md                                                         |  *  | Period standalone*  | b, bb & bbb | Abbreviated                                                   | mid.                                                       |  *  |                     | bbbb        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |  *  |                     | bbbbb       | Narrow                                                        | md                                                         |  *  | Hour 1-12           | h           | Numeric: minimum digits                                       | 1, 12                                                      |  *  |                     | hh          | Numeric: 2 digits + zero padded                               | 01, 12                                                     |  *  | Hour 0-23           | H           | Numeric: minimum digits                                       | 0, 23                                                      |  *  |                     | HH          | Numeric: 2 digits + zero padded                               | 00, 23                                                     |  *  | Minute              | m           | Numeric: minimum digits                                       | 8, 59                                                      |  *  |                     | mm          | Numeric: 2 digits + zero padded                               | 08, 59                                                     |  *  | Second              | s           | Numeric: minimum digits                                       | 0... 59                                                    |  *  |                     | ss          | Numeric: 2 digits + zero padded                               | 00... 59                                                   |  *  | Fractional seconds  | S           | Numeric: 1 digit                                              | 0... 9                                                     |  *  |                     | SS          | Numeric: 2 digits + zero padded                               | 00... 99                                                   |  *  |                     | SSS         | Numeric: 3 digits + zero padded (= milliseconds)              | 000... 999                                                 |  *  | Zone                | z, zz & zzz | Short specific non location format (fallback to O)            | GMT-8                                                      |  *  |                     | zzzz        | Long specific non location format (fallback to OOOO)          | GMT-08:00                                                  |  *  |                     | Z, ZZ & ZZZ | ISO8601 basic format                                          | -0800                                                      |  *  |                     | ZZZZ        | Long localized GMT format                                     | GMT-8:00                                                   |  *  |                     | ZZZZZ       | ISO8601 extended format + Z indicator for offset 0 (= XXXXX)  | -08:00                                                     |  *  |                     | O, OO & OOO | Short localized GMT format                                    | GMT-8                                                      |  *  |                     | OOOO        | Long localized GMT format                                     | GMT-08:00                                                  |  *  *  * ### Format examples  *  * These examples transform a date into various formats,  * assuming that `dateObj` is a JavaScript `Date` object for  * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,  * given in the local time for the `en-US` locale.  *  * ```  * {{ dateObj | date }}               // output is 'Jun 15, 2015'  * {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'  * {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'  * {{ dateObj | date:'mm:ss' }}       // output is '43:11'  * ```  *  * ### Usage example  *  * The following component uses a date pipe to display the current date in different formats.  *  * ```  * @Component({  *  selector: 'date-pipe',  *  template: `<div>  *    <p>Today is {{today | date}}</p>  *    <p>Or if you prefer, {{today | date:'fullDate'}}</p>  *    <p>The time is {{today | date:'h:mm a z'}}</p>  *  </div>`  * })  * // Get the current date and time as a date-time value.  * export class DatePipeComponent {  *   today: number = Date.now();  * }  * ```  *  * @publicApi  */ // clang-format on @Pipe({   name: 'date',   pure: true,   standalone: true, }) export class DatePipe implements PipeTransform {   constructor(       @Inject(LOCALE_ID) private locale: string,       @Inject(DATE_PIPE_DEFAULT_TIMEZONE) @Optional() private defaultTimezone?: string|null,       @Inject(DATE_PIPE_DEFAULT_OPTIONS) @Optional() private defaultOptions?: DatePipeConfig|null,   ) {}    /**    * @param value The date expression: a `Date` object,  a number    * (milliseconds since UTC epoch), or an ISO string (https://www.w3.org/TR/NOTE-datetime).    * @param format The date/time components to include, using predefined options or a    * custom format string.  When not provided, the `DatePipe` looks for the value using the    * `DATE_PIPE_DEFAULT_OPTIONS` injection token (and reads the `dateFormat` property).    * If the token is not configured, the `mediumDate` is used as a value.    * @param timezone A timezone offset (such as `'+0430'`), or a standard UTC/GMT, or continental US    * timezone abbreviation. When not provided, the `DatePipe` looks for the value using the    * `DATE_PIPE_DEFAULT_OPTIONS` injection token (and reads the `timezone` property). If the token    * is not configured, the end-user's local system timezone is used as a value.    * @param locale A locale code for the locale format rules to use.    * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.    * See [Setting your app locale](guide/i18n-common-locale-id).    *    * @see `DATE_PIPE_DEFAULT_OPTIONS`    *    * @returns A date string in the desired format.    */   transform(value: Date|string|number, format?: string, timezone?: string, locale?: string): string       |null;   transform(value: null|undefined, format?: string, timezone?: string, locale?: string): null;   transform(       value: Date|string|number|null|undefined, format?: string, timezone?: string,       locale?: string): string|null;   transform(       value: Date|string|number|null|undefined, format?: string, timezone?: string,       locale?: string): string|null {     if (value == null || value === '' || value !== value) return null;      try {       const _format = format ?? this.defaultOptions?.dateFormat ?? DEFAULT_DATE_FORMAT;       const _timezone =           timezone ?? this.defaultOptions?.timezone ?? this.defaultTimezone ?? undefined;       return formatDate(value, _format, locale || this.locale, _timezone);     } catch (error) {       throw invalidPipeArgumentError(DatePipe, (error as Error).message);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {getPluralCategory, NgLocalization} from '../i18n/localization';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  const _INTERPOLATION_REGEXP: RegExp = /#/g;  /**  * @ngModule CommonModule  * @description  *  * Maps a value to a string that pluralizes the value according to locale rules.  *  * @usageNotes  *  * ### Example  *  * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}  *  * @publicApi  */ @Pipe({   name: 'i18nPlural',   pure: true,   standalone: true, }) export class I18nPluralPipe implements PipeTransform {   constructor(private _localization: NgLocalization) {}    /**    * @param value the number to be formatted    * @param pluralMap an object that mimics the ICU format, see    * https://unicode-org.github.io/icu/userguide/format_parse/messages/.    * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by    * default).    */   transform(value: number|null|undefined, pluralMap: {[count: string]: string}, locale?: string):       string {     if (value == null) return '';      if (typeof pluralMap !== 'object' || pluralMap === null) {       throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);     }      const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);      return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * @ngModule CommonModule  * @description  *  * Generic selector that displays the string that matches the current value.  *  * If none of the keys of the `mapping` match the `value`, then the content  * of the `other` key is returned when present, otherwise an empty string is returned.  *  * @usageNotes  *  * ### Example  *  * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}  *  * @publicApi  */ @Pipe({   name: 'i18nSelect',   pure: true,   standalone: true, }) export class I18nSelectPipe implements PipeTransform {   /**    * @param value a string to be internationalized.    * @param mapping an object that indicates the text that should be displayed    * for different values of the provided `value`.    */   transform(value: string|null|undefined, mapping: {[key: string]: string}): string {     if (value == null) return '';      if (typeof mapping !== 'object' || typeof value !== 'string') {       throw invalidPipeArgumentError(I18nSelectPipe, mapping);     }      if (mapping.hasOwnProperty(value)) {       return mapping[value];     }      if (mapping.hasOwnProperty('other')) {       return mapping['other'];     }      return '';   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  /**  * @ngModule CommonModule  * @description  *  * Converts a value into its JSON-format representation.  Useful for debugging.  *  * @usageNotes  *  * The following component uses a JSON pipe to convert an object  * to JSON format, and displays the string in both formats for comparison.  *  * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}  *  * @publicApi  */ @Pipe({   name: 'json',   pure: false,   standalone: true, }) export class JsonPipe implements PipeTransform {   /**    * @param value A value of any type to convert into a JSON-format string.    */   transform(value: any): string {     return JSON.stringify(value, null, 2);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {KeyValueChangeRecord, KeyValueChanges, KeyValueDiffer, KeyValueDiffers, Pipe, PipeTransform} from '@angular/core';  function makeKeyValuePair<K, V>(key: K, value: V): KeyValue<K, V> {   return {key: key, value: value}; }  /**  * A key value pair.  * Usually used to represent the key value pairs from a Map or Object.  *  * @publicApi  */ export interface KeyValue<K, V> {   key: K;   value: V; }  /**  * @ngModule CommonModule  * @description  *  * Transforms Object or Map into an array of key value pairs.  *  * The output array will be ordered by keys.  * By default the comparator will be by Unicode point value.  * You can optionally pass a compareFn if your keys are complex types.  *  * @usageNotes  * ### Examples  *  * This examples show how an Object or a Map can be iterated by ngFor with the use of this  * keyvalue pipe.  *  * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}  *  * @publicApi  */ @Pipe({   name: 'keyvalue',   pure: false,   standalone: true, }) export class KeyValuePipe implements PipeTransform {   constructor(private readonly differs: KeyValueDiffers) {}    private differ!: KeyValueDiffer<any, any>;   private keyValues: Array<KeyValue<any, any>> = [];   private compareFn: (a: KeyValue<any, any>, b: KeyValue<any, any>) => number = defaultComparator;    /*    * NOTE: when the `input` value is a simple Record<K, V> object, the keys are extracted with    * Object.keys(). This means that even if the `input` type is Record<number, V> the keys are    * compared/returned as `string`s.    */   transform<K, V>(       input: ReadonlyMap<K, V>,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>;   transform<K extends number, V>(       input: Record<K, V>, compareFn?: (a: KeyValue<string, V>, b: KeyValue<string, V>) => number):       Array<KeyValue<string, V>>;   transform<K extends string, V>(       input: Record<K, V>|ReadonlyMap<K, V>,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>;   transform(       input: null|undefined,       compareFn?: (a: KeyValue<unknown, unknown>, b: KeyValue<unknown, unknown>) => number): null;   transform<K, V>(       input: ReadonlyMap<K, V>|null|undefined,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>|null;   transform<K extends number, V>(       input: Record<K, V>|null|undefined,       compareFn?: (a: KeyValue<string, V>, b: KeyValue<string, V>) => number):       Array<KeyValue<string, V>>|null;   transform<K extends string, V>(       input: Record<K, V>|ReadonlyMap<K, V>|null|undefined,       compareFn?: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number): Array<KeyValue<K, V>>|null;   transform<K, V>(       input: undefined|null|{[key: string]: V, [key: number]: V}|ReadonlyMap<K, V>,       compareFn: (a: KeyValue<K, V>, b: KeyValue<K, V>) => number = defaultComparator):       Array<KeyValue<K, V>>|null {     if (!input || (!(input instanceof Map) && typeof input !== 'object')) {       return null;     }      if (!this.differ) {       // make a differ for whatever type we've been passed in       this.differ = this.differs.find(input).create();     }      const differChanges: KeyValueChanges<K, V>|null = this.differ.diff(input as any);     const compareFnChanged = compareFn !== this.compareFn;      if (differChanges) {       this.keyValues = [];       differChanges.forEachItem((r: KeyValueChangeRecord<K, V>) => {         this.keyValues.push(makeKeyValuePair(r.key, r.currentValue!));       });     }     if (differChanges || compareFnChanged) {       this.keyValues.sort(compareFn);       this.compareFn = compareFn;     }     return this.keyValues;   } }  export function defaultComparator<K, V>(     keyValueA: KeyValue<K, V>, keyValueB: KeyValue<K, V>): number {   const a = keyValueA.key;   const b = keyValueB.key;   // if same exit with 0;   if (a === b) return 0;   // make sure that undefined are at the end of the sort.   if (a === undefined) return 1;   if (b === undefined) return -1;   // make sure that nulls are at the end of the sort.   if (a === null) return 1;   if (b === null) return -1;   if (typeof a == 'string' && typeof b == 'string') {     return a < b ? -1 : 1;   }   if (typeof a == 'number' && typeof b == 'number') {     return a - b;   }   if (typeof a == 'boolean' && typeof b == 'boolean') {     return a < b ? -1 : 1;   }   // `a` and `b` are of different types. Compare their string values.   const aString = String(a);   const bString = String(b);   return aString == bString ? 0 : aString < bString ? -1 : 1; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {DEFAULT_CURRENCY_CODE, Inject, LOCALE_ID, Pipe, PipeTransform} from '@angular/core';  import {formatCurrency, formatNumber, formatPercent} from '../i18n/format_number'; import {getCurrencySymbol} from '../i18n/locale_data_api';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';   /**  * @ngModule CommonModule  * @description  *  * Formats a value according to digit options and locale rules.  * Locale determines group sizing and separator,  * decimal point character, and other locale-specific configurations.  *  * @see `formatNumber()`  *  * @usageNotes  *  * ### digitsInfo  *  * The value's decimal representation is specified by the `digitsInfo`  * parameter, written in the following format:<br>  *  * ```  * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}  * ```  *  *  - `minIntegerDigits`:  * The minimum number of integer digits before the decimal point.  * Default is 1.  *  * - `minFractionDigits`:  * The minimum number of digits after the decimal point.  * Default is 0.  *  *  - `maxFractionDigits`:  * The maximum number of digits after the decimal point.  * Default is 3.  *  * If the formatted value is truncated it will be rounded using the \"to-nearest\" method:  *  * ```  * {{3.6 | number: '1.0-0'}}  * <!--will output '4'-->  *  * {{-3.6 | number:'1.0-0'}}  * <!--will output '-4'-->  * ```  *  * ### locale  *  * `locale` will format a value according to locale rules.  * Locale determines group sizing and separator,  * decimal point character, and other locale-specific configurations.  *  * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.  *  * See [Setting your app locale](guide/i18n-common-locale-id).  *  * ### Example  *  * The following code shows how the pipe transforms values  * according to various format specifications,  * where the caller's default locale is `en-US`.  *  * <code-example path=\"common/pipes/ts/number_pipe.ts\" region='NumberPipe'></code-example>  *  * @publicApi  */ @Pipe({   name: 'number',   standalone: true, }) export class DecimalPipe implements PipeTransform {   constructor(@Inject(LOCALE_ID) private _locale: string) {}    transform(value: number|string, digitsInfo?: string, locale?: string): string|null;   transform(value: null|undefined, digitsInfo?: string, locale?: string): null;   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string|null;   /**    * @param value The value to be formatted.    * @param digitsInfo Sets digit and decimal representation.    * [See more](#digitsinfo).    * @param locale Specifies what locale format rules to use.    * [See more](#locale).    */   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string       |null {     if (!isValue(value)) return null;      locale = locale || this._locale;      try {       const num = strToNumber(value);       return formatNumber(num, locale, digitsInfo);     } catch (error) {       throw invalidPipeArgumentError(DecimalPipe, (error as Error).message);     }   } }  /**  * @ngModule CommonModule  * @description  *  * Transforms a number to a percentage  * string, formatted according to locale rules that determine group sizing and  * separator, decimal-point character, and other locale-specific  * configurations.  *  * @see `formatPercent()`  *  * @usageNotes  * The following code shows how the pipe transforms numbers  * into text strings, according to various format specifications,  * where the caller's default locale is `en-US`.  *  * <code-example path=\"common/pipes/ts/percent_pipe.ts\" region='PercentPipe'></code-example>  *  * @publicApi  */ @Pipe({   name: 'percent',   standalone: true, }) export class PercentPipe implements PipeTransform {   constructor(@Inject(LOCALE_ID) private _locale: string) {}    transform(value: number|string, digitsInfo?: string, locale?: string): string|null;   transform(value: null|undefined, digitsInfo?: string, locale?: string): null;   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string|null;   /**    *    * @param value The number to be formatted as a percentage.    * @param digitsInfo Decimal representation options, specified by a string    * in the following format:<br>    * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.    *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.    * Default is `1`.    *   - `minFractionDigits`: The minimum number of digits after the decimal point.    * Default is `0`.    *   - `maxFractionDigits`: The maximum number of digits after the decimal point.    * Default is `0`.    * @param locale A locale code for the locale format rules to use.    * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.    * See [Setting your app locale](guide/i18n-common-locale-id).    */   transform(value: number|string|null|undefined, digitsInfo?: string, locale?: string): string       |null {     if (!isValue(value)) return null;     locale = locale || this._locale;     try {       const num = strToNumber(value);       return formatPercent(num, locale, digitsInfo);     } catch (error) {       throw invalidPipeArgumentError(PercentPipe, (error as Error).message);     }   } }  /**  * @ngModule CommonModule  * @description  *  * Transforms a number to a currency string, formatted according to locale rules  * that determine group sizing and separator, decimal-point character,  * and other locale-specific configurations.  *  *  * @see `getCurrencySymbol()`  * @see `formatCurrency()`  *  * @usageNotes  * The following code shows how the pipe transforms numbers  * into text strings, according to various format specifications,  * where the caller's default locale is `en-US`.  *  * <code-example path=\"common/pipes/ts/currency_pipe.ts\" region='CurrencyPipe'></code-example>  *  * @publicApi  */ @Pipe({   name: 'currency',   standalone: true, }) export class CurrencyPipe implements PipeTransform {   constructor(       @Inject(LOCALE_ID) private _locale: string,       @Inject(DEFAULT_CURRENCY_CODE) private _defaultCurrencyCode: string = 'USD') {}    transform(       value: number|string, currencyCode?: string,       display?: 'code'|'symbol'|'symbol-narrow'|string|boolean, digitsInfo?: string,       locale?: string): string|null;   transform(       value: null|undefined, currencyCode?: string,       display?: 'code'|'symbol'|'symbol-narrow'|string|boolean, digitsInfo?: string,       locale?: string): null;   transform(       value: number|string|null|undefined, currencyCode?: string,       display?: 'code'|'symbol'|'symbol-narrow'|string|boolean, digitsInfo?: string,       locale?: string): string|null;   /**    *    * @param value The number to be formatted as currency.    * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,    * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be    * configured using the `DEFAULT_CURRENCY_CODE` injection token.    * @param display The format for the currency indicator. One of the following:    *   - `code`: Show the code (such as `USD`).    *   - `symbol`(default): Show the symbol (such as `$`).    *   - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their    * currency.    * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the    * locale has no narrow symbol, uses the standard symbol for the locale.    *   - String: Use the given string value instead of a code or a symbol.    * For example, an empty string will suppress the currency & symbol.    *   - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.    *    * @param digitsInfo Decimal representation options, specified by a string    * in the following format:<br>    * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.    *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.    * Default is `1`.    *   - `minFractionDigits`: The minimum number of digits after the decimal point.    * Default is `2`.    *   - `maxFractionDigits`: The maximum number of digits after the decimal point.    * Default is `2`.    * If not provided, the number will be formatted with the proper amount of digits,    * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.    * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.    * @param locale A locale code for the locale format rules to use.    * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.    * See [Setting your app locale](guide/i18n-common-locale-id).    */   transform(       value: number|string|null|undefined, currencyCode: string = this._defaultCurrencyCode,       display: 'code'|'symbol'|'symbol-narrow'|string|boolean = 'symbol', digitsInfo?: string,       locale?: string): string|null {     if (!isValue(value)) return null;      locale = locale || this._locale;      if (typeof display === 'boolean') {       if ((typeof ngDevMode === 'undefined' || ngDevMode) && <any>console && <any>console.warn) {         console.warn(             `Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are \"code\", \"symbol\" or \"symbol-narrow\".`);       }       display = display ? 'symbol' : 'code';     }      let currency: string = currencyCode || this._defaultCurrencyCode;     if (display !== 'code') {       if (display === 'symbol' || display === 'symbol-narrow') {         currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);       } else {         currency = display;       }     }      try {       const num = strToNumber(value);       return formatCurrency(num, locale, currency, currencyCode, digitsInfo);     } catch (error) {       throw invalidPipeArgumentError(CurrencyPipe, (error as Error).message);     }   } }  function isValue(value: number|string|null|undefined): value is number|string {   return !(value == null || value === '' || value !== value); }  /**  * Transforms a string into a number (if needed).  */ function strToNumber(value: number|string): number {   // Convert strings to numbers   if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {     return Number(value);   }   if (typeof value !== 'number') {     throw new Error(`${value} is not a number`);   }   return value; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Pipe, PipeTransform} from '@angular/core';  import {invalidPipeArgumentError} from './invalid_pipe_argument_error';  /**  * @ngModule CommonModule  * @description  *  * Creates a new `Array` or `String` containing a subset (slice) of the elements.  *  * @usageNotes  *  * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`  * and `String.prototype.slice()`.  *  * When operating on an `Array`, the returned `Array` is always a copy even when all  * the elements are being returned.  *  * When operating on a blank value, the pipe returns the blank value.  *  * ### List Example  *  * This `ngFor` example:  *  * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}  *  * produces the following:  *  * ```html  * <li>b</li>  * <li>c</li>  * ```  *  * ### String Examples  *  * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}  *  * @publicApi  */ @Pipe({   name: 'slice',   pure: false,   standalone: true, }) export class SlicePipe implements PipeTransform {   /**    * @param value a list or a string to be sliced.    * @param start the starting index of the subset to return:    *   - **a positive integer**: return the item at `start` index and all items after    *     in the list or string expression.    *   - **a negative integer**: return the item at `start` index from the end and all items after    *     in the list or string expression.    *   - **if positive and greater than the size of the expression**: return an empty list or    * string.    *   - **if negative and greater than the size of the expression**: return entire list or string.    * @param end the ending index of the subset to return:    *   - **omitted**: return all items until the end.    *   - **if positive**: return all items before `end` index of the list or string.    *   - **if negative**: return all items before `end` index from the end of the list or string.    */   transform<T>(value: ReadonlyArray<T>, start: number, end?: number): Array<T>;   transform(value: null|undefined, start: number, end?: number): null;   transform<T>(value: ReadonlyArray<T>|null|undefined, start: number, end?: number): Array<T>|null;   transform(value: string, start: number, end?: number): string;   transform(value: string|null|undefined, start: number, end?: number): string|null;   transform<T>(value: ReadonlyArray<T>|string|null|undefined, start: number, end?: number):       Array<T>|string|null {     if (value == null) return null;      if (!this.supports(value)) {       throw invalidPipeArgumentError(SlicePipe, value);     }      return value.slice(start, end);   }    private supports(obj: any): boolean {     return typeof obj === 'string' || Array.isArray(obj);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * This module provides a set of common Pipes.  */ import {AsyncPipe} from './async_pipe'; import {LowerCasePipe, TitleCasePipe, UpperCasePipe} from './case_conversion_pipes'; import {DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe} from './date_pipe'; import {DatePipeConfig} from './date_pipe_config'; import {I18nPluralPipe} from './i18n_plural_pipe'; import {I18nSelectPipe} from './i18n_select_pipe'; import {JsonPipe} from './json_pipe'; import {KeyValue, KeyValuePipe} from './keyvalue_pipe'; import {CurrencyPipe, DecimalPipe, PercentPipe} from './number_pipe'; import {SlicePipe} from './slice_pipe';  export {   AsyncPipe,   CurrencyPipe,   DATE_PIPE_DEFAULT_OPTIONS,   DATE_PIPE_DEFAULT_TIMEZONE,   DatePipe,   DatePipeConfig,   DecimalPipe,   I18nPluralPipe,   I18nSelectPipe,   JsonPipe,   KeyValue,   KeyValuePipe,   LowerCasePipe,   PercentPipe,   SlicePipe,   TitleCasePipe,   UpperCasePipe, };   /**  * A collection of Angular pipes that are likely to be used in each and every application.  */ export const COMMON_PIPES = [   AsyncPipe,   UpperCasePipe,   LowerCasePipe,   JsonPipe,   SlicePipe,   DecimalPipe,   PercentPipe,   TitleCasePipe,   CurrencyPipe,   DatePipe,   I18nPluralPipe,   I18nSelectPipe,   KeyValuePipe, ]; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {NgModule} from '@angular/core';  import {COMMON_DIRECTIVES} from './directives/index'; import {COMMON_PIPES} from './pipes/index';    // Note: This does not contain the location providers, // as they need some platform specific implementations to work. /**  * Exports all the basic Angular directives and pipes,  * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.  * Re-exported by `BrowserModule`, which is included automatically in the root  * `AppModule` when you create a new app with the CLI `new` command.  *  * @publicApi  */ @NgModule({   imports: [COMMON_DIRECTIVES, COMMON_PIPES],   exports: [COMMON_DIRECTIVES, COMMON_PIPES], }) export class CommonModule { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export const PLATFORM_BROWSER_ID = 'browser'; export const PLATFORM_SERVER_ID = 'server'; export const PLATFORM_WORKER_APP_ID = 'browserWorkerApp'; export const PLATFORM_WORKER_UI_ID = 'browserWorkerUi';  /**  * Returns whether a platform id represents a browser platform.  * @publicApi  */ export function isPlatformBrowser(platformId: Object): boolean {   return platformId === PLATFORM_BROWSER_ID; }  /**  * Returns whether a platform id represents a server platform.  * @publicApi  */ export function isPlatformServer(platformId: Object): boolean {   return platformId === PLATFORM_SERVER_ID; }  /**  * Returns whether a platform id represents a web worker app platform.  * @publicApi  */ export function isPlatformWorkerApp(platformId: Object): boolean {   return platformId === PLATFORM_WORKER_APP_ID; }  /**  * Returns whether a platform id represents a web worker UI platform.  * @publicApi  */ export function isPlatformWorkerUi(platformId: Object): boolean {   return platformId === PLATFORM_WORKER_UI_ID; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the common package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵɵdefineInjectable, ɵɵinject} from '@angular/core';  import {DOCUMENT} from './dom_tokens';    /**  * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.  *  * @publicApi  */ export abstract class ViewportScroller {   // De-sugared tree-shakable injection   // See #23917   /** @nocollapse */   static ɵprov = /** @pureOrBreakMyCode */ ɵɵdefineInjectable({     token: ViewportScroller,     providedIn: 'root',     factory: () => new BrowserViewportScroller(ɵɵinject(DOCUMENT), window)   });    /**    * Configures the top offset used when scrolling to an anchor.    * @param offset A position in screen coordinates (a tuple with x and y values)    * or a function that returns the top offset position.    *    */   abstract setOffset(offset: [number, number]|(() => [number, number])): void;    /**    * Retrieves the current scroll position.    * @returns A position in screen coordinates (a tuple with x and y values).    */   abstract getScrollPosition(): [number, number];    /**    * Scrolls to a specified position.    * @param position A position in screen coordinates (a tuple with x and y values).    */   abstract scrollToPosition(position: [number, number]): void;    /**    * Scrolls to an anchor element.    * @param anchor The ID of the anchor element.    */   abstract scrollToAnchor(anchor: string): void;    /**    * Disables automatic scroll restoration provided by the browser.    * See also [window.history.scrollRestoration    * info](https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration).    */   abstract setHistoryScrollRestoration(scrollRestoration: 'auto'|'manual'): void; }  /**  * Manages the scroll position for a browser window.  */ export class BrowserViewportScroller implements ViewportScroller {   private offset: () => [number, number] = () => [0, 0];    constructor(private document: Document, private window: Window) {}    /**    * Configures the top offset used when scrolling to an anchor.    * @param offset A position in screen coordinates (a tuple with x and y values)    * or a function that returns the top offset position.    *    */   setOffset(offset: [number, number]|(() => [number, number])): void {     if (Array.isArray(offset)) {       this.offset = () => offset;     } else {       this.offset = offset;     }   }    /**    * Retrieves the current scroll position.    * @returns The position in screen coordinates.    */   getScrollPosition(): [number, number] {     if (this.supportsScrolling()) {       return [this.window.pageXOffset, this.window.pageYOffset];     } else {       return [0, 0];     }   }    /**    * Sets the scroll position.    * @param position The new position in screen coordinates.    */   scrollToPosition(position: [number, number]): void {     if (this.supportsScrolling()) {       this.window.scrollTo(position[0], position[1]);     }   }    /**    * Scrolls to an element and attempts to focus the element.    *    * Note that the function name here is misleading in that the target string may be an ID for a    * non-anchor element.    *    * @param target The ID of an element or name of the anchor.    *    * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document    * @see https://html.spec.whatwg.org/#scroll-to-fragid    */   scrollToAnchor(target: string): void {     if (!this.supportsScrolling()) {       return;     }      const elSelected = findAnchorFromDocument(this.document, target);      if (elSelected) {       this.scrollToElement(elSelected);       // After scrolling to the element, the spec dictates that we follow the focus steps for the       // target. Rather than following the robust steps, simply attempt focus.       //       // @see https://html.spec.whatwg.org/#get-the-focusable-area       // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus       // @see https://html.spec.whatwg.org/#focusable-area       elSelected.focus();     }   }    /**    * Disables automatic scroll restoration provided by the browser.    */   setHistoryScrollRestoration(scrollRestoration: 'auto'|'manual'): void {     if (this.supportScrollRestoration()) {       const history = this.window.history;       if (history && history.scrollRestoration) {         history.scrollRestoration = scrollRestoration;       }     }   }    /**    * Scrolls to an element using the native offset and the specified offset set on this scroller.    *    * The offset can be used when we know that there is a floating header and scrolling naively to an    * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.    */   private scrollToElement(el: HTMLElement): void {     const rect = el.getBoundingClientRect();     const left = rect.left + this.window.pageXOffset;     const top = rect.top + this.window.pageYOffset;     const offset = this.offset();     this.window.scrollTo(left - offset[0], top - offset[1]);   }    /**    * We only support scroll restoration when we can get a hold of window.    * This means that we do not support this behavior when running in a web worker.    *    * Lifting this restriction right now would require more changes in the dom adapter.    * Since webworkers aren't widely used, we will lift it once RouterScroller is    * battle-tested.    */   private supportScrollRestoration(): boolean {     try {       if (!this.supportsScrolling()) {         return false;       }       // The `scrollRestoration` property could be on the `history` instance or its prototype.       const scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) ||           getScrollRestorationProperty(Object.getPrototypeOf(this.window.history));       // We can write to the `scrollRestoration` property if it is a writable data field or it has a       // setter function.       return !!scrollRestorationDescriptor &&           !!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);     } catch {       return false;     }   }    private supportsScrolling(): boolean {     try {       return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;     } catch {       return false;     }   } }  function getScrollRestorationProperty(obj: any): PropertyDescriptor|undefined {   return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration'); }  function findAnchorFromDocument(document: Document, target: string): HTMLElement|null {   const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];    if (documentResult) {     return documentResult;   }    // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we   // have to traverse the DOM manually and do the lookup through the shadow roots.   if (typeof document.createTreeWalker === 'function' && document.body &&       ((document.body as any).createShadowRoot || document.body.attachShadow)) {     const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);     let currentNode = treeWalker.currentNode as HTMLElement | null;      while (currentNode) {       const shadowRoot = currentNode.shadowRoot;        if (shadowRoot) {         // Note that `ShadowRoot` doesn't support `getElementsByName`         // so we have to fall back to `querySelector`.         const result =             shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name=\"${target}\"]`);         if (result) {           return result;         }       }        currentNode = treeWalker.nextNode() as HTMLElement | null;     }   }    return null; }  /**  * Provides an empty implementation of the viewport scroller.  */ export class NullViewportScroller implements ViewportScroller {   /**    * Empty implementation    */   setOffset(offset: [number, number]|(() => [number, number])): void {}    /**    * Empty implementation    */   getScrollPosition(): [number, number] {     return [0, 0];   }    /**    * Empty implementation    */   scrollToPosition(position: [number, number]): void {}    /**    * Empty implementation    */   scrollToAnchor(anchor: string): void {}    /**    * Empty implementation    */   setHistoryScrollRestoration(scrollRestoration: 'auto'|'manual'): void {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A wrapper around the `XMLHttpRequest` constructor.  *  * @publicApi  */ export abstract class XhrFactory {   abstract build(): XMLHttpRequest; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // Converts a string that represents a URL into a URL class instance. export function getUrl(src: string, win: Window): URL {   // Don't use a base URL is the URL is absolute.   return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href); }  // Checks whether a URL is absolute (i.e. starts with `http://` or `https://`). export function isAbsoluteUrl(src: string): boolean {   return /^https?:\\/\\//.test(src); }  // Given a URL, extract the hostname part. // If a URL is a relative one - the URL is returned as is. export function extractHostname(url: string): string {   return isAbsoluteUrl(url) ? (new URL(url)).hostname : url; }  export function isValidPath(path: unknown): boolean {   const isString = typeof path === 'string';    if (!isString || path.trim() === '') {     return false;   }    // Calling new URL() will throw if the path string is malformed   try {     const url = new URL(path);     return true;   } catch {     return false;   } }  export function normalizePath(path: string): string {   return path.endsWith('/') ? path.slice(0, -1) : path; }  export function normalizeSrc(src: string): string {   return src.startsWith('/') ? src.slice(1) : src; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken, Provider, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../../../errors'; import {isAbsoluteUrl, isValidPath, normalizePath, normalizeSrc} from '../url';  /**  * Config options recognized by the image loader function.  *  * @see `ImageLoader`  * @see `NgOptimizedImage`  * @publicApi  */ export interface ImageLoaderConfig {   /**    * Image file name to be added to the image request URL.    */   src: string;   /**    * Width of the requested image (to be used when generating srcset).    */   width?: number;   /**    * Additional user-provided parameters for use by the ImageLoader.    */   loaderParams?: {[key: string]: any;}; }  /**  * Represents an image loader function. Image loader functions are used by the  * NgOptimizedImage directive to produce full image URL based on the image name and its width.  *  * @publicApi  */ export type ImageLoader = (config: ImageLoaderConfig) => string;  /**  * Noop image loader that does no transformation to the original src and just returns it as is.  * This loader is used as a default one if more specific logic is not provided in an app config.  *  * @see `ImageLoader`  * @see `NgOptimizedImage`  */ export const noopImageLoader = (config: ImageLoaderConfig) => config.src;  /**  * Metadata about the image loader.  */ export type ImageLoaderInfo = {   name: string,   testUrl: (url: string) => boolean };  /**  * Injection token that configures the image loader function.  *  * @see `ImageLoader`  * @see `NgOptimizedImage`  * @publicApi  */ export const IMAGE_LOADER = new InjectionToken<ImageLoader>('ImageLoader', {   providedIn: 'root',   factory: () => noopImageLoader, });  /**  * Internal helper function that makes it easier to introduce custom image loaders for the  * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI  * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI  * tokens managing preconnect check functionality.  * @param buildUrlFn a function returning a full URL based on loader's configuration  * @param exampleUrls example of full URLs for a given loader (used in error messages)  * @returns a set of DI providers corresponding to the configured image loader  */ export function createImageLoader(     buildUrlFn: (path: string, config: ImageLoaderConfig) => string, exampleUrls?: string[]) {   return function provideImageLoader(path: string) {     if (!isValidPath(path)) {       throwInvalidPathError(path, exampleUrls || []);     }      // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in     // the individual loader functions.     path = normalizePath(path);      const loaderFn = (config: ImageLoaderConfig) => {       if (isAbsoluteUrl(config.src)) {         // Image loader functions expect an image file name (e.g. `my-image.png`)         // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,         // so the final absolute URL can be constructed.         // When an absolute URL is provided instead - the loader can not         // build a final URL, thus the error is thrown to indicate that.         throwUnexpectedAbsoluteUrlError(path, config.src);       }        return buildUrlFn(path, {...config, src: normalizeSrc(config.src)});     };      const providers: Provider[] = [{provide: IMAGE_LOADER, useValue: loaderFn}];     return providers;   }; }  function throwInvalidPathError(path: unknown, exampleUrls: string[]): never {   throw new RuntimeError(       RuntimeErrorCode.INVALID_LOADER_ARGUMENTS,       ngDevMode &&           `Image loader has detected an invalid path (\\`${path}\\`). ` +               `To fix this, supply a path using one of the following formats: ${                   exampleUrls.join(' or ')}`); }  function throwUnexpectedAbsoluteUrlError(path: string, url: string): never {   throw new RuntimeError(       RuntimeErrorCode.INVALID_LOADER_ARGUMENTS,       ngDevMode &&           `Image loader has detected a \\`<img>\\` tag with an invalid \\`ngSrc\\` attribute: ${               url}. ` +               `This image loader expects \\`ngSrc\\` to be a relative URL - ` +               `however the provided value is an absolute URL. ` +               `To fix this, provide \\`ngSrc\\` as a path relative to the base URL ` +               `configured for this loader (\\`${path}\\`).`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig} from './image_loader';  /**  * Function that generates an ImageLoader for [Cloudflare Image  * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular  * provider. Note: Cloudflare has multiple image products - this provider is specifically for  * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.  *  * @param path Your domain name, e.g. https://mysite.com  * @returns Provider that provides an ImageLoader function  *  * @publicApi  */ export const provideCloudflareLoader = createImageLoader(     createCloudflareUrl,     ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);  function createCloudflareUrl(path: string, config: ImageLoaderConfig) {   let params = `format=auto`;   if (config.width) {     params += `,width=${config.width}`;   }   // Cloudflare image URLs format:   // https://developers.cloudflare.com/images/image-resizing/url-format/   return `${path}/cdn-cgi/image/${params}/${config.src}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig, ImageLoaderInfo} from './image_loader';  /**  * Name and URL tester for Cloudinary.  */ export const cloudinaryLoaderInfo: ImageLoaderInfo = {   name: 'Cloudinary',   testUrl: isCloudinaryUrl };  const CLOUDINARY_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.cloudinary\\.com\\/.+/; /**  * Tests whether a URL is from Cloudinary CDN.  */ function isCloudinaryUrl(url: string): boolean {   return CLOUDINARY_LOADER_REGEX.test(url); }  /**  * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.  *  * @param path Base URL of your Cloudinary images  * This URL should match one of the following formats:  * https://res.cloudinary.com/mysite  * https://mysite.cloudinary.com  * https://subdomain.mysite.com  * @returns Set of providers to configure the Cloudinary loader.  *  * @publicApi  */ export const provideCloudinaryLoader = createImageLoader(     createCloudinaryUrl,     ngDevMode ?         [           'https://res.cloudinary.com/mysite', 'https://mysite.cloudinary.com',           'https://subdomain.mysite.com'         ] :         undefined);  function createCloudinaryUrl(path: string, config: ImageLoaderConfig) {   // Cloudinary image URLformat:   // https://cloudinary.com/documentation/image_transformations#transformation_url_structure   // Example of a Cloudinary image URL:   // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png   let params = `f_auto,q_auto`;  // sets image format and quality to \"auto\"   if (config.width) {     params += `,w_${config.width}`;   }   return `${path}/image/upload/${params}/${config.src}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig, ImageLoaderInfo} from './image_loader';  /**  * Name and URL tester for ImageKit.  */ export const imageKitLoaderInfo: ImageLoaderInfo = {   name: 'ImageKit',   testUrl: isImageKitUrl };  const IMAGE_KIT_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imagekit\\.io\\/.+/; /**  * Tests whether a URL is from ImageKit CDN.  */ function isImageKitUrl(url: string): boolean {   return IMAGE_KIT_LOADER_REGEX.test(url); }  /**  * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.  *  * @param path Base URL of your ImageKit images  * This URL should match one of the following formats:  * https://ik.imagekit.io/myaccount  * https://subdomain.mysite.com  * @returns Set of providers to configure the ImageKit loader.  *  * @publicApi  */ export const provideImageKitLoader = createImageLoader(     createImagekitUrl,     ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);  export function createImagekitUrl(path: string, config: ImageLoaderConfig) {   // Example of an ImageKit image URL:   // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg   let params = `tr:q-auto`;  // applies the \"auto quality\" transformation   if (config.width) {     params += `,w-${config.width}`;   }   return `${path}/${params}/${config.src}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createImageLoader, ImageLoaderConfig, ImageLoaderInfo} from './image_loader';  /**  * Name and URL tester for Imgix.  */ export const imgixLoaderInfo: ImageLoaderInfo = {   name: 'Imgix',   testUrl: isImgixUrl };  const IMGIX_LOADER_REGEX = /https?\\:\\/\\/[^\\/]+\\.imgix\\.net\\/.+/; /**  * Tests whether a URL is from Imgix CDN.  */ function isImgixUrl(url: string): boolean {   return IMGIX_LOADER_REGEX.test(url); }  /**  * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.  *  * @param path path to the desired Imgix origin,  * e.g. https://somepath.imgix.net or https://images.mysite.com  * @returns Set of providers to configure the Imgix loader.  *  * @publicApi  */ export const provideImgixLoader =     createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);  function createImgixUrl(path: string, config: ImageLoaderConfig) {   const url = new URL(`${path}/${config.src}`);   // This setting ensures the smallest allowable format is set.   url.searchParams.set('auto', 'format');   if (config.width) {     url.searchParams.set('w', config.width.toString());   }   return url.href; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // Assembles directive details string, useful for error messages. export function imgDirectiveDetails(ngSrc: string, includeNgSrc = true) {   const ngSrcInfo =       includeNgSrc ? `(activated on an <img> element with the \\`ngSrc=\"${ngSrc}\"\\`) ` : '';   return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../../errors';  /**  * Asserts that the application is in development mode. Throws an error if the application is in  * production mode. This assert can be used to make sure that there is no dev-mode code invoked in  * the prod mode accidentally.  */ export function assertDevMode(checkName: string) {   if (!ngDevMode) {     throw new RuntimeError(         RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE,         `Unexpected invocation of the ${checkName} in the prod mode. ` +             `Please make sure that the prod mode is enabled for production builds.`);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable, OnDestroy, ɵformatRuntimeError as formatRuntimeError} from '@angular/core';  import {DOCUMENT} from '../../dom_tokens'; import {RuntimeErrorCode} from '../../errors';  import {assertDevMode} from './asserts'; import {imgDirectiveDetails} from './error_helper'; import {getUrl} from './url';  /**  * Observer that detects whether an image with `NgOptimizedImage`  * is treated as a Largest Contentful Paint (LCP) element. If so,  * asserts that the image has the `priority` attribute.  *  * Note: this is a dev-mode only class and it does not appear in prod bundles,  * thus there is no `ngDevMode` use in the code.  *  * Based on https://web.dev/lcp/#measure-lcp-in-javascript.  */ @Injectable({providedIn: 'root'}) export class LCPImageObserver implements OnDestroy {   // Map of full image URLs -> original `ngSrc` values.   private images = new Map<string, string>();   // Keep track of images for which `console.warn` was produced.   private alreadyWarned = new Set<string>();    private window: Window|null = null;   private observer: PerformanceObserver|null = null;    constructor() {     assertDevMode('LCP checker');     const win = inject(DOCUMENT).defaultView;     if (typeof win !== 'undefined' && typeof PerformanceObserver !== 'undefined') {       this.window = win;       this.observer = this.initPerformanceObserver();     }   }    /**    * Inits PerformanceObserver and subscribes to LCP events.    * Based on https://web.dev/lcp/#measure-lcp-in-javascript    */   private initPerformanceObserver(): PerformanceObserver {     const observer = new PerformanceObserver((entryList) => {       const entries = entryList.getEntries();       if (entries.length === 0) return;       // We use the latest entry produced by the `PerformanceObserver` as the best       // signal on which element is actually an LCP one. As an example, the first image to load on       // a page, by virtue of being the only thing on the page so far, is often a LCP candidate       // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.       const lcpElement = entries[entries.length - 1];        // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.       // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint       const imgSrc = (lcpElement as any).element?.src ?? '';        // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.       if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:')) return;        const imgNgSrc = this.images.get(imgSrc);       if (imgNgSrc && !this.alreadyWarned.has(imgSrc)) {         this.alreadyWarned.add(imgSrc);         logMissingPriorityWarning(imgSrc);       }     });     observer.observe({type: 'largest-contentful-paint', buffered: true});     return observer;   }    registerImage(rewrittenSrc: string, originalNgSrc: string) {     if (!this.observer) return;     this.images.set(getUrl(rewrittenSrc, this.window!).href, originalNgSrc);   }    unregisterImage(rewrittenSrc: string) {     if (!this.observer) return;     this.images.delete(getUrl(rewrittenSrc, this.window!).href);   }    ngOnDestroy() {     if (!this.observer) return;     this.observer.disconnect();     this.images.clear();     this.alreadyWarned.clear();   } }  function logMissingPriorityWarning(ngSrc: string) {   const directiveDetails = imgDirectiveDetails(ngSrc);   console.warn(formatRuntimeError(       RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY,       `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +           `element but was not marked \"priority\". This image should be marked ` +           `\"priority\" in order to prioritize its loading. ` +           `To fix this, add the \"priority\" attribute.`)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable, InjectionToken, ɵformatRuntimeError as formatRuntimeError, ɵRuntimeError as RuntimeError} from '@angular/core';  import {DOCUMENT} from '../../dom_tokens'; import {RuntimeErrorCode} from '../../errors';  import {assertDevMode} from './asserts'; import {imgDirectiveDetails} from './error_helper'; import {extractHostname, getUrl} from './url';  // Set of origins that are always excluded from the preconnect checks. const INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);  /**  * Injection token to configure which origins should be excluded  * from the preconnect checks. It can either be a single string or an array of strings  * to represent a group of origins, for example:  *  * ```typescript  *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}  * ```  *  * or:  *  * ```typescript  *  {provide: PRECONNECT_CHECK_BLOCKLIST,  *   useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}  * ```  *  * @publicApi  */ export const PRECONNECT_CHECK_BLOCKLIST =     new InjectionToken<Array<string|string[]>>('PRECONNECT_CHECK_BLOCKLIST');  /**  * Contains the logic to detect whether an image, marked with the \"priority\" attribute  * has a corresponding `<link rel=\"preconnect\">` tag in the `document.head`.  *  * Note: this is a dev-mode only class, which should not appear in prod bundles,  * thus there is no `ngDevMode` use in the code.  */ @Injectable({providedIn: 'root'}) export class PreconnectLinkChecker {   private document = inject(DOCUMENT);    /**    * Set of <link rel=\"preconnect\"> tags found on this page.    * The `null` value indicates that there was no DOM query operation performed.    */   private preconnectLinks: Set<string>|null = null;    /*    * Keep track of all already seen origin URLs to avoid repeating the same check.    */   private alreadySeen = new Set<string>();    private window: Window|null = null;    private blocklist = new Set<string>(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);    constructor() {     assertDevMode('preconnect link checker');     const win = this.document.defaultView;     if (typeof win !== 'undefined') {       this.window = win;     }     const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, {optional: true});     if (blocklist) {       this.populateBlocklist(blocklist);     }   }    private populateBlocklist(origins: Array<string|string[]>|string) {     if (Array.isArray(origins)) {       deepForEach(origins, origin => {         this.blocklist.add(extractHostname(origin));       });     } else {       this.blocklist.add(extractHostname(origins));     }   }    /**    * Checks that a preconnect resource hint exists in the head for the    * given src.    *    * @param rewrittenSrc src formatted with loader    * @param originalNgSrc ngSrc value    */   assertPreconnect(rewrittenSrc: string, originalNgSrc: string): void {     if (!this.window) return;      const imgUrl = getUrl(rewrittenSrc, this.window);     if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin)) return;      // Register this origin as seen, so we don't check it again later.     this.alreadySeen.add(imgUrl.origin);      if (!this.preconnectLinks) {       // Note: we query for preconnect links only *once* and cache the results       // for the entire lifespan of an application, since it's unlikely that the       // list would change frequently. This allows to make sure there are no       // performance implications of making extra DOM lookups for each image.       this.preconnectLinks = this.queryPreconnectLinks();     }      if (!this.preconnectLinks.has(imgUrl.origin)) {       console.warn(formatRuntimeError(           RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG,           `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` +               `image. Preconnecting to the origin(s) that serve priority images ensures that these ` +               `images are delivered as soon as possible. To fix this, please add the following ` +               `element into the <head> of the document:\ ` +               `  <link rel=\"preconnect\" href=\"${imgUrl.origin}\">`));     }   }    private queryPreconnectLinks(): Set<string> {     const preconnectUrls = new Set<string>();     const selector = 'link[rel=preconnect]';     const links: HTMLLinkElement[] = Array.from(this.document.querySelectorAll(selector));     for (let link of links) {       const url = getUrl(link.href, this.window!);       preconnectUrls.add(url.origin);     }     return preconnectUrls;   }    ngOnDestroy() {     this.preconnectLinks?.clear();     this.alreadySeen.clear();   } }  /**  * Invokes a callback for each element in the array. Also invokes a callback  * recursively for each nested array.  */ function deepForEach<T>(input: (T|any[])[], fn: (value: T) => void): void {   for (let value of input) {     Array.isArray(value) ? deepForEach(value, fn) : fn(value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken} from '@angular/core';  /**  * In SSR scenarios, a preload `<link>` element is generated for priority images.  * Having a large number of preload tags may negatively affect the performance,  * so we warn developers (by throwing an error) if the number of preloaded images  * is above a certain threshold. This const specifies this threshold.  */ export const DEFAULT_PRELOADED_IMAGES_LIMIT = 5;  /**  * Helps to keep track of priority images that already have a corresponding  * preload tag (to avoid generating multiple preload tags with the same URL).  *  * This Set tracks the original src passed into the `ngSrc` input not the src after it has been  * run through the specified `IMAGE_LOADER`.  */ export const PRELOADED_IMAGES = new InjectionToken<Set<string>>(     'NG_OPTIMIZED_PRELOADED_IMAGES', {providedIn: 'root', factory: () => new Set<string>()}); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {DOCUMENT} from '../../dom_tokens'; import {RuntimeErrorCode} from '../../errors';  import {DEFAULT_PRELOADED_IMAGES_LIMIT, PRELOADED_IMAGES} from './tokens';  /**  * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It  * will also track what images have already had preload link tags added so as to not duplicate link  * tags.  *  * In dev mode this service will validate that the number of preloaded images does not exceed the  * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.  */ @Injectable({providedIn: 'root'}) export class PreloadLinkCreator {   private readonly preloadedImages = inject(PRELOADED_IMAGES);   private readonly document = inject(DOCUMENT);    /**    * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the    * server while using Angular Universal and SSR to kick off image loads for high priority images.    *    * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)    * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`    * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from    * the CDN.    *    * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}    *    * @param renderer The `Renderer2` passed in from the directive    * @param src The original src of the image that is set on the `ngSrc` input.    * @param srcset The parsed and formatted srcset created from the `ngSrcset` input    * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag    */   createPreloadLinkTag(renderer: Renderer2, src: string, srcset?: string, sizes?: string): void {     if (ngDevMode) {       if (this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {         throw new RuntimeError(             RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES,             ngDevMode &&                 `The \\`NgOptimizedImage\\` directive has detected that more than ` +                     `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +                     `This might negatively affect an overall performance of the page. ` +                     `To fix this, remove the \"priority\" attribute from images with less priority.`);       }     }      if (this.preloadedImages.has(src)) {       return;     }      this.preloadedImages.add(src);      const preload = renderer.createElement('link');     renderer.setAttribute(preload, 'as', 'image');     renderer.setAttribute(preload, 'href', src);     renderer.setAttribute(preload, 'rel', 'preload');     renderer.setAttribute(preload, 'fetchpriority', 'high');      if (sizes) {       renderer.setAttribute(preload, 'imageSizes', sizes);     }      if (srcset) {       renderer.setAttribute(preload, 'imageSrcset', srcset);     }      renderer.appendChild(this.document.head, preload);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, inject, InjectionToken, Injector, Input, NgZone, OnChanges, OnDestroy, OnInit, PLATFORM_ID, Renderer2, SimpleChanges, ɵformatRuntimeError as formatRuntimeError, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../../errors'; import {isPlatformServer} from '../../platform_id';  import {imgDirectiveDetails} from './error_helper'; import {cloudinaryLoaderInfo} from './image_loaders/cloudinary_loader'; import {IMAGE_LOADER, ImageLoader, ImageLoaderConfig, noopImageLoader} from './image_loaders/image_loader'; import {imageKitLoaderInfo} from './image_loaders/imagekit_loader'; import {imgixLoaderInfo} from './image_loaders/imgix_loader'; import {LCPImageObserver} from './lcp_image_observer'; import {PreconnectLinkChecker} from './preconnect_link_checker'; import {PreloadLinkCreator} from './preload-link-creator';  /**  * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,  * an error is thrown. The image content (as a string) might be very long, thus making  * it hard to read an error message if the entire string is included. This const defines  * the number of characters that should be included into the error message. The rest  * of the content is truncated.  */ const BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;  /**  * RegExpr to determine whether a src in a srcset is using width descriptors.  * Should match something like: \"100w, 200w\".  */ const VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\\s*\\d+w\\s*(,|$)){1,})$/;  /**  * RegExpr to determine whether a src in a srcset is using density descriptors.  * Should match something like: \"1x, 2x, 50x\". Also supports decimals like \"1.5x, 1.50x\".  */ const VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\\s*\\d+(\\.\\d+)?x\\s*(,|$)){1,})$/;  /**  * Srcset values with a density descriptor higher than this value will actively  * throw an error. Such densities are not permitted as they cause image sizes  * to be unreasonably large and slow down LCP.  */ export const ABSOLUTE_SRCSET_DENSITY_CAP = 3;  /**  * Used only in error message text to communicate best practices, as we will  * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.  */ export const RECOMMENDED_SRCSET_DENSITY_CAP = 2;  /**  * Used in generating automatic density-based srcsets  */ const DENSITY_SRCSET_MULTIPLIERS = [1, 2];  /**  * Used to determine which breakpoints to use on full-width images  */ const VIEWPORT_BREAKPOINT_CUTOFF = 640; /**  * Used to determine whether two aspect ratios are similar in value.  */ const ASPECT_RATIO_TOLERANCE = .1;  /**  * Used to determine whether the image has been requested at an overly  * large size compared to the actual rendered image size (after taking  * into account a typical device pixel ratio). In pixels.  */ const OVERSIZED_IMAGE_TOLERANCE = 1000;  /**  * Used to limit automatic srcset generation of very large sources for  * fixed-size images. In pixels.  */ const FIXED_SRCSET_WIDTH_LIMIT = 1920; const FIXED_SRCSET_HEIGHT_LIMIT = 1080;   /** Info about built-in loaders we can test for. */ export const BUILT_IN_LOADERS = [imgixLoaderInfo, imageKitLoaderInfo, cloudinaryLoaderInfo];  /**  * A configuration object for the NgOptimizedImage directive. Contains:  * - breakpoints: An array of integer breakpoints used to generate  *      srcsets for responsive images.  *  * Learn more about the responsive image configuration in [the NgOptimizedImage  * guide](guide/image-directive).  * @publicApi  * @developerPreview  */ export type ImageConfig = {   breakpoints?: number[] };  const defaultConfig: ImageConfig = {   breakpoints: [16, 32, 48, 64, 96, 128, 256, 384, 640, 750, 828, 1080, 1200, 1920, 2048, 3840], };  /**  * Injection token that configures the image optimized image functionality.  *  * @see `NgOptimizedImage`  * @publicApi  * @developerPreview  */ export const IMAGE_CONFIG = new InjectionToken<ImageConfig>(     'ImageConfig', {providedIn: 'root', factory: () => defaultConfig});  /**  * Directive that improves image loading performance by enforcing best practices.  *  * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is  * prioritized by:  * - Automatically setting the `fetchpriority` attribute on the `<img>` tag  * - Lazy loading non-priority images by default  * - Asserting that there is a corresponding preconnect link tag in the document head  *  * In addition, the directive:  * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided  * - Automatically generates a srcset  * - Requires that `width` and `height` are set  * - Warns if `width` or `height` have been set incorrectly  * - Warns if the image will be visually distorted when rendered  *  * @usageNotes  * The `NgOptimizedImage` directive is marked as [standalone](guide/standalone-components) and can  * be imported directly.  *  * Follow the steps below to enable and use the directive:  * 1. Import it into the necessary NgModule or a standalone Component.  * 2. Optionally provide an `ImageLoader` if you use an image hosting service.  * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.  * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image  * download.  *  * Step 1: import the `NgOptimizedImage` directive.  *  * ```typescript  * import { NgOptimizedImage } from '@angular/common';  *  * // Include it into the necessary NgModule  * @NgModule({  *   imports: [NgOptimizedImage],  * })  * class AppModule {}  *  * // ... or a standalone Component  * @Component({  *   standalone: true  *   imports: [NgOptimizedImage],  * })  * class MyStandaloneComponent {}  * ```  *  * Step 2: configure a loader.  *  * To use the **default loader**: no additional code changes are necessary. The URL returned by the  * generic loader will always match the value of \"src\". In other words, this loader applies no  * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.  *  * To use an existing loader for a **third-party image service**: add the provider factory for your  * chosen service to the `providers` array. In the example below, the Imgix loader is used:  *  * ```typescript  * import {provideImgixLoader} from '@angular/common';  *  * // Call the function and add the result to the `providers` array:  * providers: [  *   provideImgixLoader(\"https://my.base.url/\"),  * ],  * ```  *  * The `NgOptimizedImage` directive provides the following functions:  * - `provideCloudflareLoader`  * - `provideCloudinaryLoader`  * - `provideImageKitLoader`  * - `provideImgixLoader`  *  * If you use a different image provider, you can create a custom loader function as described  * below.  *  * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI  * token.  *  * ```typescript  * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';  *  * // Configure the loader using the `IMAGE_LOADER` token.  * providers: [  *   {  *      provide: IMAGE_LOADER,  *      useValue: (config: ImageLoaderConfig) => {  *        return `https://example.com/${config.src}-${config.width}.jpg}`;  *      }  *   },  * ],  * ```  *  * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.  *  * ```  * <img ngSrc=\"logo.png\" width=\"200\" height=\"100\">  * ```  *  * @publicApi  */ @Directive({   standalone: true,   selector: 'img[ngSrc]',   host: {     '[style.position]': 'fill ? \"absolute\" : null',     '[style.width]': 'fill ? \"100%\" : null',     '[style.height]': 'fill ? \"100%\" : null',     '[style.inset]': 'fill ? \"0px\" : null'   } }) export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {   private imageLoader = inject(IMAGE_LOADER);   private config: ImageConfig = processConfig(inject(IMAGE_CONFIG));   private renderer = inject(Renderer2);   private imgElement: HTMLImageElement = inject(ElementRef).nativeElement;   private injector = inject(Injector);   private readonly isServer = isPlatformServer(inject(PLATFORM_ID));   private readonly preloadLinkChecker = inject(PreloadLinkCreator);    // a LCP image observer - should be injected only in the dev mode   private lcpObserver = ngDevMode ? this.injector.get(LCPImageObserver) : null;    /**    * Calculate the rewritten `src` once and store it.    * This is needed to avoid repetitive calculations and make sure the directive cleanup in the    * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other    * instance that might be already destroyed).    */   private _renderedSrc: string|null = null;    /**    * Name of the source image.    * Image name will be processed by the image loader and the final URL will be applied as the `src`    * property of the image.    */   @Input() ngSrc!: string;    /**    * A comma separated list of width or density descriptors.    * The image name will be taken from `ngSrc` and combined with the list of width or density    * descriptors to generate the final `srcset` property of the image.    *    * Example:    * ```    * <img ngSrc=\"hello.jpg\" ngSrcset=\"100w, 200w\" />  =>    * <img src=\"path/hello.jpg\" srcset=\"path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w\" />    * ```    */   @Input() ngSrcset!: string;    /**    * The base `sizes` attribute passed through to the `<img>` element.    * Providing sizes causes the image to create an automatic responsive srcset.    */   @Input() sizes?: string;    /**    * For responsive images: the intrinsic width of the image in pixels.    * For fixed size images: the desired rendered width of the image in pixels.    */   @Input()   set width(value: string|number|undefined) {     ngDevMode && assertGreaterThanZero(this, value, 'width');     this._width = inputToInteger(value);   }   get width(): number|undefined {     return this._width;   }   private _width?: number;    /**    * For responsive images: the intrinsic height of the image in pixels.    * For fixed size images: the desired rendered height of the image in pixels.* The intrinsic    * height of the image in pixels.    */   @Input()   set height(value: string|number|undefined) {     ngDevMode && assertGreaterThanZero(this, value, 'height');     this._height = inputToInteger(value);   }   get height(): number|undefined {     return this._height;   }   private _height?: number;    /**    * The desired loading behavior (lazy, eager, or auto).    *    * Setting images as loading='eager' or loading='auto' marks them    * as non-priority images. Avoid changing this input for priority images.    */   @Input() loading?: 'lazy'|'eager'|'auto';    /**    * Indicates whether this image should have a high priority.    */   @Input()   set priority(value: string|boolean|undefined) {     this._priority = inputToBoolean(value);   }   get priority(): boolean {     return this._priority;   }   private _priority = false;    /**    * Data to pass through to custom loaders.    */   @Input() loaderParams?: {[key: string]: any};    /**    * Disables automatic srcset generation for this image.    */   @Input()   set disableOptimizedSrcset(value: string|boolean|undefined) {     this._disableOptimizedSrcset = inputToBoolean(value);   }   get disableOptimizedSrcset(): boolean {     return this._disableOptimizedSrcset;   }   private _disableOptimizedSrcset = false;    /**    * Sets the image to \"fill mode\", which eliminates the height/width requirement and adds    * styles such that the image fills its containing element.    *    * @developerPreview    */   @Input()   set fill(value: string|boolean|undefined) {     this._fill = inputToBoolean(value);   }   get fill(): boolean {     return this._fill;   }   private _fill = false;    /**    * Value of the `src` attribute if set on the host `<img>` element.    * This input is exclusively read to assert that `src` is not set in conflict    * with `ngSrc` and that images don't start to load until a lazy loading strategy is set.    * @internal    */   @Input() src?: string;    /**    * Value of the `srcset` attribute if set on the host `<img>` element.    * This input is exclusively read to assert that `srcset` is not set in conflict    * with `ngSrcset` and that images don't start to load until a lazy loading strategy is set.    * @internal    */   @Input() srcset?: string;    /** @nodoc */   ngOnInit() {     if (ngDevMode) {       assertNonEmptyInput(this, 'ngSrc', this.ngSrc);       assertValidNgSrcset(this, this.ngSrcset);       assertNoConflictingSrc(this);       if (this.ngSrcset) {         assertNoConflictingSrcset(this);       }       assertNotBase64Image(this);       assertNotBlobUrl(this);       if (this.fill) {         assertEmptyWidthAndHeight(this);         assertNonZeroRenderedHeight(this, this.imgElement, this.renderer);       } else {         assertNonEmptyWidthAndHeight(this);         // Only check for distorted images when not in fill mode, where         // images may be intentionally stretched, cropped or letterboxed.         assertNoImageDistortion(this, this.imgElement, this.renderer);       }       assertValidLoadingInput(this);       if (!this.ngSrcset) {         assertNoComplexSizes(this);       }       assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);       assertNoNgSrcsetWithoutLoader(this, this.imageLoader);       assertNoLoaderParamsWithoutLoader(this, this.imageLoader);       if (this.priority) {         const checker = this.injector.get(PreconnectLinkChecker);         checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);       } else {         // Monitor whether an image is an LCP element only in case         // the `priority` attribute is missing. Otherwise, an image         // has the necessary settings and no extra checks are required.         if (this.lcpObserver !== null) {           const ngZone = this.injector.get(NgZone);           ngZone.runOutsideAngular(() => {             this.lcpObserver!.registerImage(this.getRewrittenSrc(), this.ngSrc);           });         }       }     }     this.setHostAttributes();   }    private setHostAttributes() {     // Must set width/height explicitly in case they are bound (in which case they will     // only be reflected and not found by the browser)     if (this.fill) {       if (!this.sizes) {         this.sizes = '100vw';       }     } else {       this.setHostAttribute('width', this.width!.toString());       this.setHostAttribute('height', this.height!.toString());     }      this.setHostAttribute('loading', this.getLoadingBehavior());     this.setHostAttribute('fetchpriority', this.getFetchPriority());      // The `data-ng-img` attribute flags an image as using the directive, to allow     // for analysis of the directive's performance.     this.setHostAttribute('ng-img', 'true');      // The `src` and `srcset` attributes should be set last since other attributes     // could affect the image's loading behavior.     const rewrittenSrc = this.getRewrittenSrc();     this.setHostAttribute('src', rewrittenSrc);      let rewrittenSrcset: string|undefined = undefined;      if (this.sizes) {       this.setHostAttribute('sizes', this.sizes);     }      if (this.ngSrcset) {       rewrittenSrcset = this.getRewrittenSrcset();     } else if (this.shouldGenerateAutomaticSrcset()) {       rewrittenSrcset = this.getAutomaticSrcset();     }      if (rewrittenSrcset) {       this.setHostAttribute('srcset', rewrittenSrcset);     }      if (this.isServer && this.priority) {       this.preloadLinkChecker.createPreloadLinkTag(           this.renderer, rewrittenSrc, rewrittenSrcset, this.sizes);     }   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (ngDevMode) {       assertNoPostInitInputChange(this, changes, [         'ngSrc',         'ngSrcset',         'width',         'height',         'priority',         'fill',         'loading',         'sizes',         'loaderParams',         'disableOptimizedSrcset',       ]);     }   }    private callImageLoader(configWithoutCustomParams: Omit<ImageLoaderConfig, 'loaderParams'>):       string {     let augmentedConfig: ImageLoaderConfig = configWithoutCustomParams;     if (this.loaderParams) {       augmentedConfig.loaderParams = this.loaderParams;     }     return this.imageLoader(augmentedConfig);   }    private getLoadingBehavior(): string {     if (!this.priority && this.loading !== undefined) {       return this.loading;     }     return this.priority ? 'eager' : 'lazy';   }    private getFetchPriority(): string {     return this.priority ? 'high' : 'auto';   }    private getRewrittenSrc(): string {     // ImageLoaderConfig supports setting a width property. However, we're not setting width here     // because if the developer uses rendered width instead of intrinsic width in the HTML width     // attribute, the image requested may be too small for 2x+ screens.     if (!this._renderedSrc) {       const imgConfig = {src: this.ngSrc};       // Cache calculated image src to reuse it later in the code.       this._renderedSrc = this.callImageLoader(imgConfig);     }     return this._renderedSrc;   }    private getRewrittenSrcset(): string {     const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);     const finalSrcs = this.ngSrcset.split(',').filter(src => src !== '').map(srcStr => {       srcStr = srcStr.trim();       const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width!;       return `${this.callImageLoader({src: this.ngSrc, width})} ${srcStr}`;     });     return finalSrcs.join(', ');   }    private getAutomaticSrcset(): string {     if (this.sizes) {       return this.getResponsiveSrcset();     } else {       return this.getFixedSrcset();     }   }    private getResponsiveSrcset(): string {     const {breakpoints} = this.config;      let filteredBreakpoints = breakpoints!;     if (this.sizes?.trim() === '100vw') {       // Since this is a full-screen-width image, our srcset only needs to include       // breakpoints with full viewport widths.       filteredBreakpoints = breakpoints!.filter(bp => bp >= VIEWPORT_BREAKPOINT_CUTOFF);     }      const finalSrcs = filteredBreakpoints.map(         bp => `${this.callImageLoader({src: this.ngSrc, width: bp})} ${bp}w`);     return finalSrcs.join(', ');   }    private getFixedSrcset(): string {     const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map(multiplier => `${this.callImageLoader({                                                        src: this.ngSrc,                                                        width: this.width! * multiplier                                                      })} ${multiplier}x`);     return finalSrcs.join(', ');   }    private shouldGenerateAutomaticSrcset(): boolean {     return !this._disableOptimizedSrcset && !this.srcset && this.imageLoader !== noopImageLoader &&         !(this.width! > FIXED_SRCSET_WIDTH_LIMIT || this.height! > FIXED_SRCSET_HEIGHT_LIMIT);   }    /** @nodoc */   ngOnDestroy() {     if (ngDevMode) {       if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {         this.lcpObserver.unregisterImage(this._renderedSrc);       }     }   }    private setHostAttribute(name: string, value: string): void {     this.renderer.setAttribute(this.imgElement, name, value);   } }  /***** Helpers *****/  /**  * Convert input value to integer.  */ function inputToInteger(value: string|number|undefined): number|undefined {   return typeof value === 'string' ? parseInt(value, 10) : value; }  /**  * Convert input value to boolean.  */ function inputToBoolean(value: unknown): boolean {   return value != null && `${value}` !== 'false'; }  /**  * Sorts provided config breakpoints and uses defaults.  */ function processConfig(config: ImageConfig): ImageConfig {   let sortedBreakpoints: {breakpoints?: number[]} = {};   if (config.breakpoints) {     sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);   }   return Object.assign({}, defaultConfig, config, sortedBreakpoints); }  /***** Assert functions *****/  /**  * Verifies that there is no `src` set on a host element.  */ function assertNoConflictingSrc(dir: NgOptimizedImage) {   if (dir.src) {     throw new RuntimeError(         RuntimeErrorCode.UNEXPECTED_SRC_ATTR,         `${imgDirectiveDetails(dir.ngSrc)} both \\`src\\` and \\`ngSrc\\` have been set. ` +             `Supplying both of these attributes breaks lazy loading. ` +             `The NgOptimizedImage directive sets \\`src\\` itself based on the value of \\`ngSrc\\`. ` +             `To fix this, please remove the \\`src\\` attribute.`);   } }  /**  * Verifies that there is no `srcset` set on a host element.  */ function assertNoConflictingSrcset(dir: NgOptimizedImage) {   if (dir.srcset) {     throw new RuntimeError(         RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR,         `${imgDirectiveDetails(dir.ngSrc)} both \\`srcset\\` and \\`ngSrcset\\` have been set. ` +             `Supplying both of these attributes breaks lazy loading. ` +             `The NgOptimizedImage directive sets \\`srcset\\` itself based on the value of ` +             `\\`ngSrcset\\`. To fix this, please remove the \\`srcset\\` attribute.`);   } }  /**  * Verifies that the `ngSrc` is not a Base64-encoded image.  */ function assertNotBase64Image(dir: NgOptimizedImage) {   let ngSrc = dir.ngSrc.trim();   if (ngSrc.startsWith('data:')) {     if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {       ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';     }     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc, false)} \\`ngSrc\\` is a Base64-encoded string ` +             `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` +             `To fix this, disable the NgOptimizedImage directive for this element ` +             `by removing \\`ngSrc\\` and using a standard \\`src\\` attribute instead.`);   } }  /**  * Verifies that the 'sizes' only includes responsive values.  */ function assertNoComplexSizes(dir: NgOptimizedImage) {   let sizes = dir.sizes;   if (sizes?.match(/((\\)|,)\\s|^)\\d+px/)) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc, false)} \\`sizes\\` was set to a string including ` +             `pixel values. For automatic \\`srcset\\` generation, \\`sizes\\` must only include responsive ` +             `values, such as \\`sizes=\"50vw\"\\` or \\`sizes=\"(min-width: 768px) 50vw, 100vw\"\\`. ` +             `To fix this, modify the \\`sizes\\` attribute, or provide your own \\`ngSrcset\\` value directly.`);   } }  /**  * Verifies that the `ngSrc` is not a Blob URL.  */ function assertNotBlobUrl(dir: NgOptimizedImage) {   const ngSrc = dir.ngSrc.trim();   if (ngSrc.startsWith('blob:')) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrc\\` was set to a blob URL (${ngSrc}). ` +             `Blob URLs are not supported by the NgOptimizedImage directive. ` +             `To fix this, disable the NgOptimizedImage directive for this element ` +             `by removing \\`ngSrc\\` and using a regular \\`src\\` attribute instead.`);   } }  /**  * Verifies that the input is set to a non-empty string.  */ function assertNonEmptyInput(dir: NgOptimizedImage, name: string, value: unknown) {   const isString = typeof value === 'string';   const isEmptyString = isString && value.trim() === '';   if (!isString || isEmptyString) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`${name}\\` has an invalid value ` +             `(\\`${value}\\`). To fix this, change the value to a non-empty string.`);   } }  /**  * Verifies that the `ngSrcset` is in a valid format, e.g. \"100w, 200w\" or \"1x, 2x\".  */ export function assertValidNgSrcset(dir: NgOptimizedImage, value: unknown) {   if (value == null) return;   assertNonEmptyInput(dir, 'ngSrcset', value);   const stringVal = value as string;   const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);   const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);    if (isValidDensityDescriptor) {     assertUnderDensityCap(dir, stringVal);   }    const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;   if (!isValidSrcset) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`ngSrcset\\` has an invalid value (\\`${value}\\`). ` +             `To fix this, supply \\`ngSrcset\\` using a comma-separated list of one or more width ` +             `descriptors (e.g. \"100w, 200w\") or density descriptors (e.g. \"1x, 2x\").`);   } }  function assertUnderDensityCap(dir: NgOptimizedImage, value: string) {   const underDensityCap =       value.split(',').every(num => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);   if (!underDensityCap) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${             imgDirectiveDetails(                 dir.ngSrc)} the \\`ngSrcset\\` contains an unsupported image density:` +             `\\`${value}\\`. NgOptimizedImage generally recommends a max image density of ` +             `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` +             `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` +             `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` +             `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` +             `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);   } }  /**  * Creates a `RuntimeError` instance to represent a situation when an input is set after  * the directive has initialized.  */ function postInitInputChangeError(dir: NgOptimizedImage, inputName: string): {} {   let reason!: string;   if (inputName === 'width' || inputName === 'height') {     reason = `Changing \\`${inputName}\\` may result in different attribute value ` +         `applied to the underlying image element and cause layout shifts on a page.`;   } else {     reason = `Changing the \\`${inputName}\\` would have no effect on the underlying ` +         `image element, because the resource loading has already occurred.`;   }   return new RuntimeError(       RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE,       `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` was updated after initialization. ` +           `The NgOptimizedImage directive will not react to this input change. ${reason} ` +           `To fix this, either switch \\`${inputName}\\` to a static value ` +           `or wrap the image element in an *ngIf that is gated on the necessary value.`); }  /**  * Verify that none of the listed inputs has changed.  */ function assertNoPostInitInputChange(     dir: NgOptimizedImage, changes: SimpleChanges, inputs: string[]) {   inputs.forEach(input => {     const isUpdated = changes.hasOwnProperty(input);     if (isUpdated && !changes[input].isFirstChange()) {       if (input === 'ngSrc') {         // When the `ngSrc` input changes, we detect that only in the         // `ngOnChanges` hook, thus the `ngSrc` is already set. We use         // `ngSrc` in the error message, so we use a previous value, but         // not the updated one in it.         dir = {ngSrc: changes[input].previousValue} as NgOptimizedImage;       }       throw postInitInputChangeError(dir, input);     }   }); }  /**  * Verifies that a specified input is a number greater than 0.  */ function assertGreaterThanZero(dir: NgOptimizedImage, inputValue: unknown, inputName: string) {   const validNumber = typeof inputValue === 'number' && inputValue > 0;   const validString =       typeof inputValue === 'string' && /^\\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;   if (!validNumber && !validString) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} \\`${inputName}\\` has an invalid value ` +             `(\\`${inputValue}\\`). To fix this, provide \\`${inputName}\\` ` +             `as a number greater than 0.`);   } }  /**  * Verifies that the rendered image is not visually distorted. Effectively this is checking:  * - Whether the \"width\" and \"height\" attributes reflect the actual dimensions of the image.  * - Whether image styling is \"correct\" (see below for a longer explanation).  */ function assertNoImageDistortion(     dir: NgOptimizedImage, img: HTMLImageElement, renderer: Renderer2) {   const removeListenerFn = renderer.listen(img, 'load', () => {     removeListenerFn();     const renderedWidth = img.clientWidth;     const renderedHeight = img.clientHeight;     const renderedAspectRatio = renderedWidth / renderedHeight;     const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;      const intrinsicWidth = img.naturalWidth;     const intrinsicHeight = img.naturalHeight;     const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;      const suppliedWidth = dir.width!;     const suppliedHeight = dir.height!;     const suppliedAspectRatio = suppliedWidth / suppliedHeight;      // Tolerance is used to account for the impact of subpixel rendering.     // Due to subpixel rendering, the rendered, intrinsic, and supplied     // aspect ratios of a correctly configured image may not exactly match.     // For example, a `width=4030 height=3020` image might have a rendered     // size of \"1062w, 796.48h\". (An aspect ratio of 1.334... vs. 1.333...)     const inaccurateDimensions =         Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;     const stylingDistortion = nonZeroRenderedDimensions &&         Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;      if (inaccurateDimensions) {       console.warn(formatRuntimeError(           RuntimeErrorCode.INVALID_INPUT,           `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` +               `the aspect ratio indicated by the width and height attributes. ` +               `\ Intrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +               `(aspect-ratio: ${intrinsicAspectRatio}). \ Supplied width and height attributes: ` +               `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${suppliedAspectRatio}). ` +               `\ To fix this, update the width and height attributes.`));     } else if (stylingDistortion) {       console.warn(formatRuntimeError(           RuntimeErrorCode.INVALID_INPUT,           `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` +               `does not match the image's intrinsic aspect ratio. ` +               `\ Intrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +               `(aspect-ratio: ${intrinsicAspectRatio}). \ Rendered image size: ` +               `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` +               `${renderedAspectRatio}). \ This issue can occur if \"width\" and \"height\" ` +               `attributes are added to an image without updating the corresponding ` +               `image styling. To fix this, adjust image styling. In most cases, ` +               `adding \"height: auto\" or \"width: auto\" to the image styling will fix ` +               `this issue.`));     } else if (!dir.ngSrcset && nonZeroRenderedDimensions) {       // If `ngSrcset` hasn't been set, sanity check the intrinsic size.       const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;       const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;       const oversizedWidth = (intrinsicWidth - recommendedWidth) >= OVERSIZED_IMAGE_TOLERANCE;       const oversizedHeight = (intrinsicHeight - recommendedHeight) >= OVERSIZED_IMAGE_TOLERANCE;       if (oversizedWidth || oversizedHeight) {         console.warn(formatRuntimeError(             RuntimeErrorCode.OVERSIZED_IMAGE,             `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` +                 `larger than necessary. ` +                 `\ Rendered image size: ${renderedWidth}w x ${renderedHeight}h. ` +                 `\ Intrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` +                 `\ Recommended intrinsic image size: ${recommendedWidth}w x ${                     recommendedHeight}h. ` +                 `\ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of ` +                 `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` +                 `or consider using the \"ngSrcset\" and \"sizes\" attributes.`));       }     }   }); }  /**  * Verifies that a specified input is set.  */ function assertNonEmptyWidthAndHeight(dir: NgOptimizedImage) {   let missingAttributes = [];   if (dir.width === undefined) missingAttributes.push('width');   if (dir.height === undefined) missingAttributes.push('height');   if (missingAttributes.length > 0) {     throw new RuntimeError(         RuntimeErrorCode.REQUIRED_INPUT_MISSING,         `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` +             `are missing: ${missingAttributes.map(attr => `\"${attr}\"`).join(', ')}. ` +             `Including \"width\" and \"height\" attributes will prevent image-related layout shifts. ` +             `To fix this, include \"width\" and \"height\" attributes on the image tag or turn on ` +             `\"fill\" mode with the \\`fill\\` attribute.`);   } }  /**  * Verifies that width and height are not set. Used in fill mode, where those attributes don't make  * sense.  */ function assertEmptyWidthAndHeight(dir: NgOptimizedImage) {   if (dir.width || dir.height) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${             imgDirectiveDetails(                 dir.ngSrc)} the attributes \\`height\\` and/or \\`width\\` are present ` +             `along with the \\`fill\\` attribute. Because \\`fill\\` mode causes an image to fill its containing ` +             `element, the size attributes have no effect and should be removed.`);   } }  /**  * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides  * guidance that this can be caused by the containing element's CSS position property.  */ function assertNonZeroRenderedHeight(     dir: NgOptimizedImage, img: HTMLImageElement, renderer: Renderer2) {   const removeListenerFn = renderer.listen(img, 'load', () => {     removeListenerFn();     const renderedHeight = img.clientHeight;     if (dir.fill && renderedHeight === 0) {       console.warn(formatRuntimeError(           RuntimeErrorCode.INVALID_INPUT,           `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` +               `This is likely because the containing element does not have the CSS 'position' ` +               `property set to one of the following: \"relative\", \"fixed\", or \"absolute\". ` +               `To fix this problem, make sure the container element has the CSS 'position' ` +               `property defined and the height of the element is not zero.`));     }   }); }  /**  * Verifies that the `loading` attribute is set to a valid input &  * is not used on priority images.  */ function assertValidLoadingInput(dir: NgOptimizedImage) {   if (dir.loading && dir.priority) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +             `was used on an image that was marked \"priority\". ` +             `Setting \\`loading\\` on priority images is not allowed ` +             `because these images will always be eagerly loaded. ` +             `To fix this, remove the “loading” attribute from the priority image.`);   }   const validInputs = ['auto', 'eager', 'lazy'];   if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_INPUT,         `${imgDirectiveDetails(dir.ngSrc)} the \\`loading\\` attribute ` +             `has an invalid value (\\`${dir.loading}\\`). ` +             `To fix this, provide a valid value (\"lazy\", \"eager\", or \"auto\").`);   } }  /**  * Warns if NOT using a loader (falling back to the generic loader) and  * the image appears to be hosted on one of the image CDNs for which  * we do have a built-in image loader. Suggests switching to the  * built-in loader.  *  * @param ngSrc Value of the ngSrc attribute  * @param imageLoader ImageLoader provided  */ function assertNotMissingBuiltInLoader(ngSrc: string, imageLoader: ImageLoader) {   if (imageLoader === noopImageLoader) {     let builtInLoaderName = '';     for (const loader of BUILT_IN_LOADERS) {       if (loader.testUrl(ngSrc)) {         builtInLoaderName = loader.name;         break;       }     }     if (builtInLoaderName) {       console.warn(formatRuntimeError(           RuntimeErrorCode.MISSING_BUILTIN_LOADER,           `NgOptimizedImage: It looks like your images may be hosted on the ` +               `${builtInLoaderName} CDN, but your app is not using Angular's ` +               `built-in loader for that CDN. We recommend switching to use ` +               `the built-in by calling \\`provide${builtInLoaderName}Loader()\\` ` +               `in your \\`providers\\` and passing it your instance's base URL. ` +               `If you don't want to use the built-in loader, define a custom ` +               `loader function using IMAGE_LOADER to silence this warning.`));     }   } }  /**  * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).  */ function assertNoNgSrcsetWithoutLoader(dir: NgOptimizedImage, imageLoader: ImageLoader) {   if (dir.ngSrcset && imageLoader === noopImageLoader) {     console.warn(formatRuntimeError(         RuntimeErrorCode.MISSING_NECESSARY_LOADER,         `${imgDirectiveDetails(dir.ngSrc)} the \\`ngSrcset\\` attribute is present but ` +             `no image loader is configured (i.e. the default one is being used), ` +             `which would result in the same image being used for all configured sizes. ` +             `To fix this, provide a loader or remove the \\`ngSrcset\\` attribute from the image.`));   } }  /**  * Warns if loaderParams is present and no loader is configured (i.e. the default one is being  * used).  */ function assertNoLoaderParamsWithoutLoader(dir: NgOptimizedImage, imageLoader: ImageLoader) {   if (dir.loaderParams && imageLoader === noopImageLoader) {     console.warn(formatRuntimeError(         RuntimeErrorCode.MISSING_NECESSARY_LOADER,         `${imgDirectiveDetails(dir.ngSrc)} the \\`loaderParams\\` attribute is present but ` +             `no image loader is configured (i.e. the default one is being used), ` +             `which means that the loaderParams data will not be consumed and will not affect the URL. ` +             `To fix this, provide a custom loader or remove the \\`loaderParams\\` attribute from the image.`));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // These exports represent the set of symbols exposed as a public API. export {provideCloudflareLoader} from './image_loaders/cloudflare_loader'; export {provideCloudinaryLoader} from './image_loaders/cloudinary_loader'; export {IMAGE_LOADER, ImageLoader, ImageLoaderConfig} from './image_loaders/image_loader'; export {provideImageKitLoader} from './image_loaders/imagekit_loader'; export {provideImgixLoader} from './image_loaders/imgix_loader'; export {IMAGE_CONFIG, ImageConfig, NgOptimizedImage} from './ng_optimized_image'; export {PRECONNECT_CHECK_BLOCKLIST} from './preconnect_link_checker'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the common package.  */ export * from './private_export'; export * from './location/index'; export {formatDate} from './i18n/format_date'; export {formatCurrency, formatNumber, formatPercent} from './i18n/format_number'; export {NgLocaleLocalization, NgLocalization} from './i18n/localization'; export {registerLocaleData} from './i18n/locale_data'; export {Plural, NumberFormatStyle, FormStyle, Time, TranslationWidth, FormatWidth, NumberSymbol, WeekDay, getNumberOfCurrencyDigits, getCurrencySymbol, getLocaleDayPeriods, getLocaleDayNames, getLocaleMonthNames, getLocaleId, getLocaleEraNames, getLocaleWeekEndRange, getLocaleFirstDayOfWeek, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocalePluralCase, getLocaleTimeFormat, getLocaleNumberSymbol, getLocaleNumberFormat, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDirection} from './i18n/locale_data_api'; export {parseCookieValue as ɵparseCookieValue} from './cookie'; export {CommonModule} from './common_module'; export {NgClass, NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NgComponentOutlet} from './directives/index'; export {DOCUMENT} from './dom_tokens'; export {AsyncPipe, DatePipe, DatePipeConfig, DATE_PIPE_DEFAULT_TIMEZONE, DATE_PIPE_DEFAULT_OPTIONS, I18nPluralPipe, I18nSelectPipe, JsonPipe, LowerCasePipe, CurrencyPipe, DecimalPipe, PercentPipe, SlicePipe, UpperCasePipe, TitleCasePipe, KeyValuePipe, KeyValue} from './pipes/index'; export {PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PLATFORM_WORKER_APP_ID as ɵPLATFORM_WORKER_APP_ID, PLATFORM_WORKER_UI_ID as ɵPLATFORM_WORKER_UI_ID, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi} from './platform_id'; export {VERSION} from './version'; export {ViewportScroller, NullViewportScroller as ɵNullViewportScroller} from './viewport_scroller'; export {XhrFactory} from './xhr'; export {IMAGE_CONFIG, ImageConfig, IMAGE_LOADER, ImageLoader, ImageLoaderConfig, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader} from './directives/ng_optimized_image'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/common';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["i1.LocationStrategy","stringify","RuntimeError","i1.NgLocalization","i1.NgClass","i2.NgComponentOutlet","i3.NgForOf","i4.NgIf","i5.NgTemplateOutlet","i6.NgStyle","i7.NgSwitch","i7.NgSwitchCase","i7.NgSwitchDefault","i8.NgPlural","i8.NgPluralCase","i9.AsyncPipe","i10.UpperCasePipe","i10.LowerCasePipe","i11.JsonPipe","i12.SlicePipe","i13.DecimalPipe","i13.PercentPipe","i10.TitleCasePipe","i13.CurrencyPipe","i14.DatePipe","i15.I18nPluralPipe","i16.I18nSelectPipe","i17.KeyValuePipe","formatRuntimeError"],"mappings":";;;;;;;;;AAQA,IAAI,IAAI,GAAe,IAAK,CAAC;SAEb,MAAM,GAAA;AACpB,IAAA,OAAO,IAAI,CAAC;AACd,CAAC;AAEK,SAAU,iBAAiB,CAAC,OAAmB,EAAA;IACnD,IAAI,CAAC,IAAI,EAAE;QACT,IAAI,GAAG,OAAO,CAAC;AAChB,KAAA;AACH,CAAC;AAED;AACA;;;;;AAKG;MACmB,UAAU,CAAA;AAgC/B;;ACjDD;;;;;;;AAOG;MACU,QAAQ,GAAG,IAAI,cAAc,CAAW,eAAe;;ACLpE;;;;;;;;;;;;;;;;;;;;;AAqBG;MAMmB,gBAAgB,CAAA;AA4BpC,IAAA,SAAS,CAAE,gBAAwB,EAAA;AACjC,QAAA,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;KACpC;;wHA9BmB,gBAAgB,EAAA,IAAA,EAAA,EA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CAAC,CAAC;AAC3G,KAAA;AACH;;ACj+BA;;ACAA;;;;AAIG;;ACJH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 42 --------------------
{"version":3,"file":"upgrade.mjs","sources":["../../../../../../packages/common/upgrade/src/utils.ts","../../../../../../packages/common/upgrade/src/location_shim.ts","../../../../../../packages/common/upgrade/src/params.ts","../../../../../../packages/common/upgrade/src/location_upgrade_module.ts","../../../../../../packages/common/upgrade/public_api.ts","../../../../../../packages/common/upgrade/index.ts","../../../../../../packages/common/upgrade/upgrade.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export function stripPrefix(val: string, prefix: string): string {   return val.startsWith(prefix) ? val.substring(prefix.length) : val; }  export function deepEqual(a: any, b: any): boolean {   if (a === b) {     return true;   } else if (!a || !b) {     return false;   } else {     try {       if ((a.prototype !== b.prototype) || (Array.isArray(a) && Array.isArray(b))) {         return false;       }       return JSON.stringify(a) === JSON.stringify(b);     } catch (e) {       return false;     }   } }  export function isAnchor(el: (Node&ParentNode)|Element|null): el is HTMLAnchorElement {   return (<HTMLAnchorElement>el).href !== undefined; }  export function isPromise<T = any>(obj: any): obj is Promise<T> {   // allow any Promise/A+ compliant thenable.   // It's up to the caller to ensure that obj.then conforms to the spec   return !!obj && typeof obj.then === 'function'; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location, LocationStrategy, PlatformLocation} from '@angular/common'; import {UpgradeModule} from '@angular/upgrade/static'; import {ReplaySubject} from 'rxjs';  import {UrlCodec} from './params'; import {deepEqual, isAnchor, isPromise} from './utils';  const PATH_MATCH = /^([^?#]*)(\\?([^#]*))?(#(.*))?$/; const DOUBLE_SLASH_REGEX = /^\\s*[\\\\/]{2,}/; const IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i; const DEFAULT_PORTS: {[key: string]: number} = {   'http:': 80,   'https:': 443,   'ftp:': 21 };  /**  * Location service that provides a drop-in replacement for the $location service  * provided in AngularJS.  *  * @see [Using the Angular Unified Location Service](guide/upgrade#using-the-unified-angular-location-service)  *  * @publicApi  */ export class $locationShim {   private initializing = true;   private updateBrowser = false;   private $$absUrl: string = '';   private $$url: string = '';   private $$protocol: string;   private $$host: string = '';   private $$port: number|null;   private $$replace: boolean = false;   private $$path: string = '';   private $$search: any = '';   private $$hash: string = '';   private $$state: unknown;   private $$changeListeners: [     ((url: string, state: unknown, oldUrl: string, oldState: unknown, err?: (e: Error) => void) =>          void),     (e: Error) => void   ][] = [];    private cachedState: unknown = null;    private urlChanges = new ReplaySubject<{newUrl: string, newState: unknown}>(1);    constructor(       $injector: any, private location: Location, private platformLocation: PlatformLocation,       private urlCodec: UrlCodec, private locationStrategy: LocationStrategy) {     const initialUrl = this.browserUrl();      let parsedUrl = this.urlCodec.parse(initialUrl);      if (typeof parsedUrl === 'string') {       throw 'Invalid URL';     }      this.$$protocol = parsedUrl.protocol;     this.$$host = parsedUrl.hostname;     this.$$port = parseInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;      this.$$parseLinkUrl(initialUrl, initialUrl);     this.cacheState();     this.$$state = this.browserState();      this.location.onUrlChange((newUrl, newState) => {       this.urlChanges.next({newUrl, newState});     });      if (isPromise($injector)) {       $injector.then($i => this.initialize($i));     } else {       this.initialize($injector);     }   }    private initialize($injector: any) {     const $rootScope = $injector.get('$rootScope');     const $rootElement = $injector.get('$rootElement');      $rootElement.on('click', (event: any) => {       if (event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 ||           event.button === 2) {         return;       }        let elm: (Node&ParentNode)|null = event.target;        // traverse the DOM up to find first A tag       while (elm && elm.nodeName.toLowerCase() !== 'a') {         // ignore rewriting if no A tag (reached root element, or no parent - removed from document)         if (elm === $rootElement[0] || !(elm = elm.parentNode)) {           return;         }       }        if (!isAnchor(elm)) {         return;       }        const absHref = elm.href;       const relHref = elm.getAttribute('href');        // Ignore when url is started with javascript: or mailto:       if (IGNORE_URI_REGEXP.test(absHref)) {         return;       }        if (absHref && !elm.getAttribute('target') && !event.isDefaultPrevented()) {         if (this.$$parseLinkUrl(absHref, relHref)) {           // We do a preventDefault for all urls that are part of the AngularJS application,           // in html5mode and also without, so that we are able to abort navigation without           // getting double entries in the location history.           event.preventDefault();           // update location manually           if (this.absUrl() !== this.browserUrl()) {             $rootScope.$apply();           }         }       }     });      this.urlChanges.subscribe(({newUrl, newState}) => {       const oldUrl = this.absUrl();       const oldState = this.$$state;       this.$$parse(newUrl);       newUrl = this.absUrl();       this.$$state = newState;       const defaultPrevented =           $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, newState, oldState)               .defaultPrevented;        // if the location was changed by a `$locationChangeStart` handler then stop       // processing this location change       if (this.absUrl() !== newUrl) return;        // If default was prevented, set back to old state. This is the state that was locally       // cached in the $location service.       if (defaultPrevented) {         this.$$parse(oldUrl);         this.state(oldState);         this.setBrowserUrlWithFallback(oldUrl, false, oldState);         this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);       } else {         this.initializing = false;         $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);         this.resetBrowserUpdate();       }       if (!$rootScope.$$phase) {         $rootScope.$digest();       }     });      // update browser     $rootScope.$watch(() => {       if (this.initializing || this.updateBrowser) {         this.updateBrowser = false;          const oldUrl = this.browserUrl();         const newUrl = this.absUrl();         const oldState = this.browserState();         let currentReplace = this.$$replace;          const urlOrStateChanged =             !this.urlCodec.areEqual(oldUrl, newUrl) || oldState !== this.$$state;          // Fire location changes one time to on initialization. This must be done on the         // next tick (thus inside $evalAsync()) in order for listeners to be registered         // before the event fires. Mimicing behavior from $locationWatch:         // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983         if (this.initializing || urlOrStateChanged) {           this.initializing = false;            $rootScope.$evalAsync(() => {             // Get the new URL again since it could have changed due to async update             const newUrl = this.absUrl();             const defaultPrevented =                 $rootScope                     .$broadcast('$locationChangeStart', newUrl, oldUrl, this.$$state, oldState)                     .defaultPrevented;              // if the location was changed by a `$locationChangeStart` handler then stop             // processing this location change             if (this.absUrl() !== newUrl) return;              if (defaultPrevented) {               this.$$parse(oldUrl);               this.$$state = oldState;             } else {               // This block doesn't run when initializing because it's going to perform the update               // to the URL which shouldn't be needed when initializing.               if (urlOrStateChanged) {                 this.setBrowserUrlWithFallback(                     newUrl, currentReplace, oldState === this.$$state ? null : this.$$state);                 this.$$replace = false;               }               $rootScope.$broadcast(                   '$locationChangeSuccess', newUrl, oldUrl, this.$$state, oldState);               if (urlOrStateChanged) {                 this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);               }             }           });         }       }       this.$$replace = false;     });   }    private resetBrowserUpdate() {     this.$$replace = false;     this.$$state = this.browserState();     this.updateBrowser = false;     this.lastBrowserUrl = this.browserUrl();   }    private lastHistoryState: unknown;   private lastBrowserUrl: string = '';   private browserUrl(): string;   private browserUrl(url: string, replace?: boolean, state?: unknown): this;   private browserUrl(url?: string, replace?: boolean, state?: unknown) {     // In modern browsers `history.state` is `null` by default; treating it separately     // from `undefined` would cause `$browser.url('/foo')` to change `history.state`     // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.     if (typeof state === 'undefined') {       state = null;     }      // setter     if (url) {       let sameState = this.lastHistoryState === state;        // Normalize the inputted URL       url = this.urlCodec.parse(url).href;        // Don't change anything if previous and current URLs and states match.       if (this.lastBrowserUrl === url && sameState) {         return this;       }       this.lastBrowserUrl = url;       this.lastHistoryState = state;        // Remove server base from URL as the Angular APIs for updating URL require       // it to be the path+.       url = this.stripBaseUrl(this.getServerBase(), url) || url;        // Set the URL       if (replace) {         this.locationStrategy.replaceState(state, '', url, '');       } else {         this.locationStrategy.pushState(state, '', url, '');       }        this.cacheState();        return this;       // getter     } else {       return this.platformLocation.href;     }   }    // This variable should be used *only* inside the cacheState function.   private lastCachedState: unknown = null;   private cacheState() {     // This should be the only place in $browser where `history.state` is read.     this.cachedState = this.platformLocation.getState();     if (typeof this.cachedState === 'undefined') {       this.cachedState = null;     }      // Prevent callbacks fo fire twice if both hashchange & popstate were fired.     if (deepEqual(this.cachedState, this.lastCachedState)) {       this.cachedState = this.lastCachedState;     }      this.lastCachedState = this.cachedState;     this.lastHistoryState = this.cachedState;   }    /**    * This function emulates the $browser.state() function from AngularJS. It will cause    * history.state to be cached unless changed with deep equality check.    */   private browserState(): unknown {     return this.cachedState;   }    private stripBaseUrl(base: string, url: string) {     if (url.startsWith(base)) {       return url.slice(base.length);     }     return undefined;   }    private getServerBase() {     const {protocol, hostname, port} = this.platformLocation;     const baseHref = this.locationStrategy.getBaseHref();     let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;     return url.endsWith('/') ? url : url + '/';   }    private parseAppUrl(url: string) {     if (DOUBLE_SLASH_REGEX.test(url)) {       throw new Error(`Bad Path - URL cannot start with double slashes: ${url}`);     }      let prefixed = (url.charAt(0) !== '/');     if (prefixed) {       url = '/' + url;     }     let match = this.urlCodec.parse(url, this.getServerBase());     if (typeof match === 'string') {       throw new Error(`Bad URL - Cannot parse URL: ${url}`);     }     let path =         prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;     this.$$path = this.urlCodec.decodePath(path);     this.$$search = this.urlCodec.decodeSearch(match.search);     this.$$hash = this.urlCodec.decodeHash(match.hash);      // make sure path starts with '/';     if (this.$$path && this.$$path.charAt(0) !== '/') {       this.$$path = '/' + this.$$path;     }   }    /**    * Registers listeners for URL changes. This API is used to catch updates performed by the    * AngularJS framework. These changes are a subset of the `$locationChangeStart` and    * `$locationChangeSuccess` events which fire when AngularJS updates its internally-referenced    * version of the browser URL.    *    * It's possible for `$locationChange` events to happen, but for the browser URL    * (window.location) to remain unchanged. This `onChange` callback will fire only when AngularJS    * actually updates the browser URL (window.location).    *    * @param fn The callback function that is triggered for the listener when the URL changes.    * @param err The callback function that is triggered when an error occurs.    */   onChange(       fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void,       err: (e: Error) => void = (e: Error) => {}) {     this.$$changeListeners.push([fn, err]);   }    /** @internal */   $$notifyChangeListeners(       url: string = '', state: unknown, oldUrl: string = '', oldState: unknown) {     this.$$changeListeners.forEach(([fn, err]) => {       try {         fn(url, state, oldUrl, oldState);       } catch (e) {         err(e as Error);       }     });   }    /**    * Parses the provided URL, and sets the current URL to the parsed result.    *    * @param url The URL string.    */   $$parse(url: string) {     let pathUrl: string|undefined;     if (url.startsWith('/')) {       pathUrl = url;     } else {       // Remove protocol & hostname if URL starts with it       pathUrl = this.stripBaseUrl(this.getServerBase(), url);     }     if (typeof pathUrl === 'undefined') {       throw new Error(`Invalid url \"${url}\", missing path prefix \"${this.getServerBase()}\".`);     }      this.parseAppUrl(pathUrl);      if (!this.$$path) {       this.$$path = '/';     }     this.composeUrls();   }    /**    * Parses the provided URL and its relative URL.    *    * @param url The full URL string.    * @param relHref A URL string relative to the full URL string.    */   $$parseLinkUrl(url: string, relHref?: string|null): boolean {     // When relHref is passed, it should be a hash and is handled separately     if (relHref && relHref[0] === '#') {       this.hash(relHref.slice(1));       return true;     }     let rewrittenUrl;     let appUrl = this.stripBaseUrl(this.getServerBase(), url);     if (typeof appUrl !== 'undefined') {       rewrittenUrl = this.getServerBase() + appUrl;     } else if (this.getServerBase() === url + '/') {       rewrittenUrl = this.getServerBase();     }     // Set the URL     if (rewrittenUrl) {       this.$$parse(rewrittenUrl);     }     return !!rewrittenUrl;   }    private setBrowserUrlWithFallback(url: string, replace: boolean, state: unknown) {     const oldUrl = this.url();     const oldState = this.$$state;     try {       this.browserUrl(url, replace, state);        // Make sure $location.state() returns referentially identical (not just deeply equal)       // state object; this makes possible quick checking if the state changed in the digest       // loop. Checking deep equality would be too expensive.       this.$$state = this.browserState();     } catch (e) {       // Restore old values if pushState fails       this.url(oldUrl);       this.$$state = oldState;        throw e;     }   }    private composeUrls() {     this.$$url = this.urlCodec.normalize(this.$$path, this.$$search, this.$$hash);     this.$$absUrl = this.getServerBase() + this.$$url.slice(1);  // remove '/' from front of URL     this.updateBrowser = true;   }    /**    * Retrieves the full URL representation with all segments encoded according to    * rules specified in    * [RFC 3986](https://tools.ietf.org/html/rfc3986).    *    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let absUrl = $location.absUrl();    * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"    * ```    */   absUrl(): string {     return this.$$absUrl;   }    /**    * Retrieves the current URL, or sets a new URL. When setting a URL,    * changes the path, search, and hash, and returns a reference to its own instance.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let url = $location.url();    * // => \"/some/path?foo=bar&baz=xoxo\"    * ```    */   url(): string;   url(url: string): this;   url(url?: string): string|this {     if (typeof url === 'string') {       if (!url.length) {         url = '/';       }        const match = PATH_MATCH.exec(url);       if (!match) return this;       if (match[1] || url === '') this.path(this.urlCodec.decodePath(match[1]));       if (match[2] || match[1] || url === '') this.search(match[3] || '');       this.hash(match[5] || '');        // Chainable method       return this;     }      return this.$$url;   }    /**    * Retrieves the protocol of the current URL.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let protocol = $location.protocol();    * // => \"http\"    * ```    */   protocol(): string {     return this.$$protocol;   }    /**    * Retrieves the protocol of the current URL.    *    * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this    * returns the `hostname` portion only.    *    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let host = $location.host();    * // => \"example.com\"    *    * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo    * host = $location.host();    * // => \"example.com\"    * host = location.host;    * // => \"example.com:8080\"    * ```    */   host(): string {     return this.$$host;   }    /**    * Retrieves the port of the current URL.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let port = $location.port();    * // => 80    * ```    */   port(): number|null {     return this.$$port;   }    /**    * Retrieves the path of the current URL, or changes the path and returns a reference to its own    * instance.    *    * Paths should always begin with forward slash (/). This method adds the forward slash    * if it is missing.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let path = $location.path();    * // => \"/some/path\"    * ```    */   path(): string;   path(path: string|number|null): this;   path(path?: string|number|null): string|this {     if (typeof path === 'undefined') {       return this.$$path;     }      // null path converts to empty string. Prepend with \"/\" if needed.     path = path !== null ? path.toString() : '';     path = path.charAt(0) === '/' ? path : '/' + path;      this.$$path = path;      this.composeUrls();     return this;   }    /**    * Retrieves a map of the search parameters of the current URL, or changes a search    * part and returns a reference to its own instance.    *    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let searchObject = $location.search();    * // => {foo: 'bar', baz: 'xoxo'}    *    * // set foo to 'yipee'    * $location.search('foo', 'yipee');    * // $location.search() => {foo: 'yipee', baz: 'xoxo'}    * ```    *    * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or    * hash object.    *    * When called with a single argument the method acts as a setter, setting the `search` component    * of `$location` to the specified value.    *    * If the argument is a hash object containing an array of values, these values will be encoded    * as duplicate search parameters in the URL.    *    * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number,    *     then `paramValue`    * will override only a single search property.    *    * If `paramValue` is an array, it will override the property of the `search` component of    * `$location` specified via the first argument.    *    * If `paramValue` is `null`, the property specified via the first argument will be deleted.    *    * If `paramValue` is `true`, the property specified via the first argument will be added with no    * value nor trailing equal sign.    *    * @return {Object} The parsed `search` object of the current URL, or the changed `search` object.    */   search(): {[key: string]: unknown};   search(search: string|number|{[key: string]: unknown}): this;   search(       search: string|number|{[key: string]: unknown},       paramValue: null|undefined|string|number|boolean|string[]): this;   search(       search?: string|number|{[key: string]: unknown},       paramValue?: null|undefined|string|number|boolean|string[]): {[key: string]: unknown}|this {     switch (arguments.length) {       case 0:         return this.$$search;       case 1:         if (typeof search === 'string' || typeof search === 'number') {           this.$$search = this.urlCodec.decodeSearch(search.toString());         } else if (typeof search === 'object' && search !== null) {           // Copy the object so it's never mutated           search = {...search};           // remove object undefined or null properties           for (const key in search) {             if (search[key] == null) delete search[key];           }            this.$$search = search;         } else {           throw new Error(               'LocationProvider.search(): First argument must be a string or an object.');         }         break;       default:         if (typeof search === 'string') {           const currentSearch = this.search();           if (typeof paramValue === 'undefined' || paramValue === null) {             delete currentSearch[search];             return this.search(currentSearch);           } else {             currentSearch[search] = paramValue;             return this.search(currentSearch);           }         }     }     this.composeUrls();     return this;   }    /**    * Retrieves the current hash fragment, or changes the hash fragment and returns a reference to    * its own instance.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue    * let hash = $location.hash();    * // => \"hashValue\"    * ```    */   hash(): string;   hash(hash: string|number|null): this;   hash(hash?: string|number|null): string|this {     if (typeof hash === 'undefined') {       return this.$$hash;     }      this.$$hash = hash !== null ? hash.toString() : '';      this.composeUrls();     return this;   }    /**    * Changes to `$location` during the current `$digest` will replace the current    * history record, instead of adding a new one.    */   replace(): this {     this.$$replace = true;     return this;   }    /**    * Retrieves the history state object when called without any parameter.    *    * Change the history state object when called with one parameter and return `$location`.    * The state object is later passed to `pushState` or `replaceState`.    *    * This method is supported only in HTML5 mode and only in browsers supporting    * the HTML5 History API methods such as `pushState` and `replaceState`. If you need to support    * older browsers (like Android < 4.0), don't use this method.    *    */   state(): unknown;   state(state: unknown): this;   state(state?: unknown): unknown|this {     if (typeof state === 'undefined') {       return this.$$state;     }      this.$$state = state;     return this;   } }  /**  * The factory function used to create an instance of the `$locationShim` in Angular,  * and provides an API-compatible `$locationProvider` for AngularJS.  *  * @publicApi  */ export class $locationShimProvider {   constructor(       private ngUpgrade: UpgradeModule, private location: Location,       private platformLocation: PlatformLocation, private urlCodec: UrlCodec,       private locationStrategy: LocationStrategy) {}    /**    * Factory method that returns an instance of the $locationShim    */   $get() {     return new $locationShim(         this.ngUpgrade.$injector, this.location, this.platformLocation, this.urlCodec,         this.locationStrategy);   }    /**    * Stub method used to keep API compatible with AngularJS. This setting is configured through    * the LocationUpgradeModule's `config` method in your Angular app.    */   hashPrefix(prefix?: string) {     throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');   }    /**    * Stub method used to keep API compatible with AngularJS. This setting is configured through    * the LocationUpgradeModule's `config` method in your Angular app.    */   html5Mode(mode?: any) {     throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A codec for encoding and decoding URL parts.  *  * @publicApi  **/ export abstract class UrlCodec {   /**    * Encodes the path from the provided string    *    * @param path The path string    */   abstract encodePath(path: string): string;    /**    * Decodes the path from the provided string    *    * @param path The path string    */   abstract decodePath(path: string): string;    /**    * Encodes the search string from the provided string or object    *    * @param path The path string or object    */   abstract encodeSearch(search: string|{[k: string]: unknown}): string;    /**    * Decodes the search objects from the provided string    *    * @param path The path string    */   abstract decodeSearch(search: string): {[k: string]: unknown};    /**    * Encodes the hash from the provided string    *    * @param path The hash string    */   abstract encodeHash(hash: string): string;    /**    * Decodes the hash from the provided string    *    * @param path The hash string    */   abstract decodeHash(hash: string): string;    /**    * Normalizes the URL from the provided string    *    * @param path The URL string    */   abstract normalize(href: string): string;     /**    * Normalizes the URL from the provided string, search, hash, and base URL parameters    *    * @param path The URL path    * @param search The search object    * @param hash The has string    * @param baseUrl The base URL for the URL    */   abstract normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string):       string;    /**    * Checks whether the two strings are equal    * @param valA First string for comparison    * @param valB Second string for comparison    */   abstract areEqual(valA: string, valB: string): boolean;    /**    * Parses the URL string based on the base URL    *    * @param url The full URL string    * @param base The base for the URL    */   abstract parse(url: string, base?: string): {     href: string,     protocol: string,     host: string,     search: string,     hash: string,     hostname: string,     port: string,     pathname: string   }; }  /**  * A `UrlCodec` that uses logic from AngularJS to serialize and parse URLs  * and URL parameters.  *  * @publicApi  */ export class AngularJSUrlCodec implements UrlCodec {   // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L15   encodePath(path: string): string {     const segments = path.split('/');     let i = segments.length;      while (i--) {       // decode forward slashes to prevent them from being double encoded       segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));     }      path = segments.join('/');     return _stripIndexHtml((path && path[0] !== '/' && '/' || '') + path);   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42   encodeSearch(search: string|{[k: string]: unknown}): string {     if (typeof search === 'string') {       search = parseKeyValue(search);     }      search = toKeyValue(search);     return search ? '?' + search : '';   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L44   encodeHash(hash: string) {     hash = encodeUriSegment(hash);     return hash ? '#' + hash : '';   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L27   decodePath(path: string, html5Mode = true): string {     const segments = path.split('/');     let i = segments.length;      while (i--) {       segments[i] = decodeURIComponent(segments[i]);       if (html5Mode) {         // encode forward slashes to prevent them from being mistaken for path separators         segments[i] = segments[i].replace(/\\//g, '%2F');       }     }      return segments.join('/');   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72   decodeSearch(search: string) {     return parseKeyValue(search);   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73   decodeHash(hash: string) {     hash = decodeURIComponent(hash);     return hash[0] === '#' ? hash.substring(1) : hash;   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L149   // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42   normalize(href: string): string;   normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string): string;   normalize(pathOrHref: string, search?: {[k: string]: unknown}, hash?: string, baseUrl?: string):       string {     if (arguments.length === 1) {       const parsed = this.parse(pathOrHref, baseUrl);        if (typeof parsed === 'string') {         return parsed;       }        const serverUrl =           `${parsed.protocol}://${parsed.hostname}${parsed.port ? ':' + parsed.port : ''}`;        return this.normalize(           this.decodePath(parsed.pathname), this.decodeSearch(parsed.search),           this.decodeHash(parsed.hash), serverUrl);     } else {       const encPath = this.encodePath(pathOrHref);       const encSearch = search && this.encodeSearch(search) || '';       const encHash = hash && this.encodeHash(hash) || '';        let joinedPath = (baseUrl || '') + encPath;        if (!joinedPath.length || joinedPath[0] !== '/') {         joinedPath = '/' + joinedPath;       }       return joinedPath + encSearch + encHash;     }   }    areEqual(valA: string, valB: string) {     return this.normalize(valA) === this.normalize(valB);   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60   parse(url: string, base?: string) {     try {       // Safari 12 throws an error when the URL constructor is called with an undefined base.       const parsed = !base ? new URL(url) : new URL(url, base);       return {         href: parsed.href,         protocol: parsed.protocol ? parsed.protocol.replace(/:$/, '') : '',         host: parsed.host,         search: parsed.search ? parsed.search.replace(/^\\?/, '') : '',         hash: parsed.hash ? parsed.hash.replace(/^#/, '') : '',         hostname: parsed.hostname,         port: parsed.port,         pathname: (parsed.pathname.charAt(0) === '/') ? parsed.pathname : '/' + parsed.pathname       };     } catch (e) {       throw new Error(`Invalid URL (${url}) with base (${base})`);     }   } }  function _stripIndexHtml(url: string): string {   return url.replace(/\\/index.html$/, ''); }  /**  * Tries to decode the URI component without throwing an exception.  *  * @param str value potential URI component to check.  * @returns the decoded URI if it can be decoded or else `undefined`.  */ function tryDecodeURIComponent(value: string): string|undefined {   try {     return decodeURIComponent(value);   } catch (e) {     // Ignore any invalid uri component.     return undefined;   } }   /**  * Parses an escaped url query string into key-value pairs. Logic taken from  * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382  */ function parseKeyValue(keyValue: string): {[k: string]: unknown} {   const obj: {[k: string]: unknown} = {};   (keyValue || '').split('&').forEach((keyValue) => {     let splitPoint, key, val;     if (keyValue) {       key = keyValue = keyValue.replace(/\\+/g, '%20');       splitPoint = keyValue.indexOf('=');       if (splitPoint !== -1) {         key = keyValue.substring(0, splitPoint);         val = keyValue.substring(splitPoint + 1);       }       key = tryDecodeURIComponent(key);       if (typeof key !== 'undefined') {         val = typeof val !== 'undefined' ? tryDecodeURIComponent(val) : true;         if (!obj.hasOwnProperty(key)) {           obj[key] = val;         } else if (Array.isArray(obj[key])) {           (obj[key] as unknown[]).push(val);         } else {           obj[key] = [obj[key], val];         }       }     }   });   return obj; }  /**  * Serializes into key-value pairs. Logic taken from  * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1409  */ function toKeyValue(obj: {[k: string]: unknown}) {   const parts: unknown[] = [];   for (const key in obj) {     let value = obj[key];     if (Array.isArray(value)) {       value.forEach((arrayValue) => {         parts.push(             encodeUriQuery(key, true) +             (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));       });     } else {       parts.push(           encodeUriQuery(key, true) +           (value === true ? '' : '=' + encodeUriQuery(value as any, true)));     }   }   return parts.length ? parts.join('&') : ''; }   /**  * We need our custom method because encodeURIComponent is too aggressive and doesn't follow  * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path  * segments:  *    segment       = *pchar  *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"  *    pct-encoded   = \"%\" HEXDIG HEXDIG  *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"  *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"  *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"  *  * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437  */ function encodeUriSegment(val: string) {   return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+'); }   /**  * This method is intended for encoding *key* or *value* parts of query component. We need a custom  * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be  * encoded per https://tools.ietf.org/html/rfc3986:  *    query         = *( pchar / \"/\" / \"?\" )  *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"  *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"  *    pct-encoded   = \"%\" HEXDIG HEXDIG  *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"  *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"  *  * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1456  */ function encodeUriQuery(val: string, pctEncodeSpaces: boolean = false) {   return encodeURIComponent(val)       .replace(/%40/g, '@')       .replace(/%3A/gi, ':')       .replace(/%24/g, '$')       .replace(/%2C/gi, ',')       .replace(/%3B/gi, ';')       .replace(/%20/g, (pctEncodeSpaces ? '%20' : '+')); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {APP_BASE_HREF, CommonModule, HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, PlatformLocation} from '@angular/common'; import {Inject, InjectionToken, ModuleWithProviders, NgModule, Optional} from '@angular/core'; import {UpgradeModule} from '@angular/upgrade/static';  import {$locationShim, $locationShimProvider} from './location_shim'; import {AngularJSUrlCodec, UrlCodec} from './params';   /**  * Configuration options for LocationUpgrade.  *  * @publicApi  */ export interface LocationUpgradeConfig {   /**    * Configures whether the location upgrade module should use the `HashLocationStrategy`    * or the `PathLocationStrategy`    */   useHash?: boolean;   /**    * Configures the hash prefix used in the URL when using the `HashLocationStrategy`    */   hashPrefix?: string;   /**    * Configures the URL codec for encoding and decoding URLs. Default is the `AngularJSCodec`    */   urlCodec?: typeof UrlCodec;   /**    * Configures the base href when used in server-side rendered applications    */   serverBaseHref?: string;   /**    * Configures the base href when used in client-side rendered applications    */   appBaseHref?: string; }  /**  * A provider token used to configure the location upgrade module.  *  * @publicApi  */ export const LOCATION_UPGRADE_CONFIGURATION =     new InjectionToken<LocationUpgradeConfig>('LOCATION_UPGRADE_CONFIGURATION');  const APP_BASE_HREF_RESOLVED = new InjectionToken<string>('APP_BASE_HREF_RESOLVED');  /**  * `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.  *  * @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)  *  * @publicApi  */ @NgModule({imports: [CommonModule]}) export class LocationUpgradeModule {   static config(config?: LocationUpgradeConfig): ModuleWithProviders<LocationUpgradeModule> {     return {       ngModule: LocationUpgradeModule,       providers: [         Location,         {           provide: $locationShim,           useFactory: provide$location,           deps: [UpgradeModule, Location, PlatformLocation, UrlCodec, LocationStrategy]         },         {provide: LOCATION_UPGRADE_CONFIGURATION, useValue: config ? config : {}},         {provide: UrlCodec, useFactory: provideUrlCodec, deps: [LOCATION_UPGRADE_CONFIGURATION]},         {           provide: APP_BASE_HREF_RESOLVED,           useFactory: provideAppBaseHref,           deps: [LOCATION_UPGRADE_CONFIGURATION, [new Inject(APP_BASE_HREF), new Optional()]]         },         {           provide: LocationStrategy,           useFactory: provideLocationStrategy,           deps: [             PlatformLocation,             APP_BASE_HREF_RESOLVED,             LOCATION_UPGRADE_CONFIGURATION,           ]         },       ],     };   } }  export function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?: string) {   if (config && config.appBaseHref != null) {     return config.appBaseHref;   } else if (appBaseHref != null) {     return appBaseHref;   }   return ''; }  export function provideUrlCodec(config: LocationUpgradeConfig) {   const codec = config && config.urlCodec || AngularJSUrlCodec;   return new (codec as any)(); }  export function provideLocationStrategy(     platformLocation: PlatformLocation, baseHref: string, options: LocationUpgradeConfig = {}) {   return options.useHash ? new HashLocationStrategy(platformLocation, baseHref) :                            new PathLocationStrategy(platformLocation, baseHref); }  export function provide$location(     ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation,     urlCodec: UrlCodec, locationStrategy: LocationStrategy) {   const $locationProvider =       new $locationShimProvider(ngUpgrade, location, platformLocation, urlCodec, locationStrategy);    return $locationProvider.$get(); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/index';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;;AAQgB,SAAA,WAAW,CAAC,GAAW,EAAE,MAAc,EAAA;IACrD,OAAO,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AACrE,CAAC;AAEe,SAAA,SAAS,CAAC,CAAM,EAAE,CAAM,EAAA;IACtC,IAAI,CAAC,KAAK,CAAC,EAAE;AACX,QAAA,OAAO,IAAI,CAAC;AACb,KAAA;AAAM,SAAA,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;AACnB,QAAA,OAAO,KAAK,CAAC;AACd,KAAA;AAAM,SAAA;QACL,IAAI;YACF,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;AAC3E,gBAAA,OAAO,KAAK,CAAC;AACd,aAAA;AACD,YAAA,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAChD,SAAA;AAAC,QAAA,OAAO,CAAC,EAAE;AACV,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;AACF,KAAA;AACH,CAAC;AAEK,SAAU,QAAQ,CAAC,EAAkC,EAAA;AACzD,IAAA,OAA2B,EAAG,CAAC,IAAI,KAAK,SAAS,C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AkB,EAAE,gBAAkC,EAAA;AACxD,IAAA,MAAM,iBAAiB,GACnB,IAAI,qBAAqB,CAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAEjG,IAAA,OAAO,iBAAiB,CAAC,IAAI,EAAE,CAAC;AAClC;;AClHA;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 43 --------------------
{"version":3,"file":"upgrade.mjs","sources":["../../../../../../packages/common/upgrade/src/utils.ts","../../../../../../packages/common/upgrade/src/location_shim.ts","../../../../../../packages/common/upgrade/src/params.ts","../../../../../../packages/common/upgrade/src/location_upgrade_module.ts","../../../../../../packages/common/upgrade/public_api.ts","../../../../../../packages/common/upgrade/index.ts","../../../../../../packages/common/upgrade/upgrade.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export function stripPrefix(val: string, prefix: string): string {   return val.startsWith(prefix) ? val.substring(prefix.length) : val; }  export function deepEqual(a: any, b: any): boolean {   if (a === b) {     return true;   } else if (!a || !b) {     return false;   } else {     try {       if ((a.prototype !== b.prototype) || (Array.isArray(a) && Array.isArray(b))) {         return false;       }       return JSON.stringify(a) === JSON.stringify(b);     } catch (e) {       return false;     }   } }  export function isAnchor(el: (Node&ParentNode)|Element|null): el is HTMLAnchorElement {   return (<HTMLAnchorElement>el).href !== undefined; }  export function isPromise<T = any>(obj: any): obj is Promise<T> {   // allow any Promise/A+ compliant thenable.   // It's up to the caller to ensure that obj.then conforms to the spec   return !!obj && typeof obj.then === 'function'; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location, LocationStrategy, PlatformLocation} from '@angular/common'; import {UpgradeModule} from '@angular/upgrade/static'; import {ReplaySubject} from 'rxjs';  import {UrlCodec} from './params'; import {deepEqual, isAnchor, isPromise} from './utils';  const PATH_MATCH = /^([^?#]*)(\\?([^#]*))?(#(.*))?$/; const DOUBLE_SLASH_REGEX = /^\\s*[\\\\/]{2,}/; const IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i; const DEFAULT_PORTS: {[key: string]: number} = {   'http:': 80,   'https:': 443,   'ftp:': 21 };  /**  * Location service that provides a drop-in replacement for the $location service  * provided in AngularJS.  *  * @see [Using the Angular Unified Location Service](guide/upgrade#using-the-unified-angular-location-service)  *  * @publicApi  */ export class $locationShim {   private initializing = true;   private updateBrowser = false;   private $$absUrl: string = '';   private $$url: string = '';   private $$protocol: string;   private $$host: string = '';   private $$port: number|null;   private $$replace: boolean = false;   private $$path: string = '';   private $$search: any = '';   private $$hash: string = '';   private $$state: unknown;   private $$changeListeners: [     ((url: string, state: unknown, oldUrl: string, oldState: unknown, err?: (e: Error) => void) =>          void),     (e: Error) => void   ][] = [];    private cachedState: unknown = null;    private urlChanges = new ReplaySubject<{newUrl: string, newState: unknown}>(1);    constructor(       $injector: any, private location: Location, private platformLocation: PlatformLocation,       private urlCodec: UrlCodec, private locationStrategy: LocationStrategy) {     const initialUrl = this.browserUrl();      let parsedUrl = this.urlCodec.parse(initialUrl);      if (typeof parsedUrl === 'string') {       throw 'Invalid URL';     }      this.$$protocol = parsedUrl.protocol;     this.$$host = parsedUrl.hostname;     this.$$port = parseInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;      this.$$parseLinkUrl(initialUrl, initialUrl);     this.cacheState();     this.$$state = this.browserState();      this.location.onUrlChange((newUrl, newState) => {       this.urlChanges.next({newUrl, newState});     });      if (isPromise($injector)) {       $injector.then($i => this.initialize($i));     } else {       this.initialize($injector);     }   }    private initialize($injector: any) {     const $rootScope = $injector.get('$rootScope');     const $rootElement = $injector.get('$rootElement');      $rootElement.on('click', (event: any) => {       if (event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 ||           event.button === 2) {         return;       }        let elm: (Node&ParentNode)|null = event.target;        // traverse the DOM up to find first A tag       while (elm && elm.nodeName.toLowerCase() !== 'a') {         // ignore rewriting if no A tag (reached root element, or no parent - removed from document)         if (elm === $rootElement[0] || !(elm = elm.parentNode)) {           return;         }       }        if (!isAnchor(elm)) {         return;       }        const absHref = elm.href;       const relHref = elm.getAttribute('href');        // Ignore when url is started with javascript: or mailto:       if (IGNORE_URI_REGEXP.test(absHref)) {         return;       }        if (absHref && !elm.getAttribute('target') && !event.isDefaultPrevented()) {         if (this.$$parseLinkUrl(absHref, relHref)) {           // We do a preventDefault for all urls that are part of the AngularJS application,           // in html5mode and also without, so that we are able to abort navigation without           // getting double entries in the location history.           event.preventDefault();           // update location manually           if (this.absUrl() !== this.browserUrl()) {             $rootScope.$apply();           }         }       }     });      this.urlChanges.subscribe(({newUrl, newState}) => {       const oldUrl = this.absUrl();       const oldState = this.$$state;       this.$$parse(newUrl);       newUrl = this.absUrl();       this.$$state = newState;       const defaultPrevented =           $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, newState, oldState)               .defaultPrevented;        // if the location was changed by a `$locationChangeStart` handler then stop       // processing this location change       if (this.absUrl() !== newUrl) return;        // If default was prevented, set back to old state. This is the state that was locally       // cached in the $location service.       if (defaultPrevented) {         this.$$parse(oldUrl);         this.state(oldState);         this.setBrowserUrlWithFallback(oldUrl, false, oldState);         this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);       } else {         this.initializing = false;         $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);         this.resetBrowserUpdate();       }       if (!$rootScope.$$phase) {         $rootScope.$digest();       }     });      // update browser     $rootScope.$watch(() => {       if (this.initializing || this.updateBrowser) {         this.updateBrowser = false;          const oldUrl = this.browserUrl();         const newUrl = this.absUrl();         const oldState = this.browserState();         let currentReplace = this.$$replace;          const urlOrStateChanged =             !this.urlCodec.areEqual(oldUrl, newUrl) || oldState !== this.$$state;          // Fire location changes one time to on initialization. This must be done on the         // next tick (thus inside $evalAsync()) in order for listeners to be registered         // before the event fires. Mimicing behavior from $locationWatch:         // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983         if (this.initializing || urlOrStateChanged) {           this.initializing = false;            $rootScope.$evalAsync(() => {             // Get the new URL again since it could have changed due to async update             const newUrl = this.absUrl();             const defaultPrevented =                 $rootScope                     .$broadcast('$locationChangeStart', newUrl, oldUrl, this.$$state, oldState)                     .defaultPrevented;              // if the location was changed by a `$locationChangeStart` handler then stop             // processing this location change             if (this.absUrl() !== newUrl) return;              if (defaultPrevented) {               this.$$parse(oldUrl);               this.$$state = oldState;             } else {               // This block doesn't run when initializing because it's going to perform the update               // to the URL which shouldn't be needed when initializing.               if (urlOrStateChanged) {                 this.setBrowserUrlWithFallback(                     newUrl, currentReplace, oldState === this.$$state ? null : this.$$state);                 this.$$replace = false;               }               $rootScope.$broadcast(                   '$locationChangeSuccess', newUrl, oldUrl, this.$$state, oldState);               if (urlOrStateChanged) {                 this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);               }             }           });         }       }       this.$$replace = false;     });   }    private resetBrowserUpdate() {     this.$$replace = false;     this.$$state = this.browserState();     this.updateBrowser = false;     this.lastBrowserUrl = this.browserUrl();   }    private lastHistoryState: unknown;   private lastBrowserUrl: string = '';   private browserUrl(): string;   private browserUrl(url: string, replace?: boolean, state?: unknown): this;   private browserUrl(url?: string, replace?: boolean, state?: unknown) {     // In modern browsers `history.state` is `null` by default; treating it separately     // from `undefined` would cause `$browser.url('/foo')` to change `history.state`     // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.     if (typeof state === 'undefined') {       state = null;     }      // setter     if (url) {       let sameState = this.lastHistoryState === state;        // Normalize the inputted URL       url = this.urlCodec.parse(url).href;        // Don't change anything if previous and current URLs and states match.       if (this.lastBrowserUrl === url && sameState) {         return this;       }       this.lastBrowserUrl = url;       this.lastHistoryState = state;        // Remove server base from URL as the Angular APIs for updating URL require       // it to be the path+.       url = this.stripBaseUrl(this.getServerBase(), url) || url;        // Set the URL       if (replace) {         this.locationStrategy.replaceState(state, '', url, '');       } else {         this.locationStrategy.pushState(state, '', url, '');       }        this.cacheState();        return this;       // getter     } else {       return this.platformLocation.href;     }   }    // This variable should be used *only* inside the cacheState function.   private lastCachedState: unknown = null;   private cacheState() {     // This should be the only place in $browser where `history.state` is read.     this.cachedState = this.platformLocation.getState();     if (typeof this.cachedState === 'undefined') {       this.cachedState = null;     }      // Prevent callbacks fo fire twice if both hashchange & popstate were fired.     if (deepEqual(this.cachedState, this.lastCachedState)) {       this.cachedState = this.lastCachedState;     }      this.lastCachedState = this.cachedState;     this.lastHistoryState = this.cachedState;   }    /**    * This function emulates the $browser.state() function from AngularJS. It will cause    * history.state to be cached unless changed with deep equality check.    */   private browserState(): unknown {     return this.cachedState;   }    private stripBaseUrl(base: string, url: string) {     if (url.startsWith(base)) {       return url.slice(base.length);     }     return undefined;   }    private getServerBase() {     const {protocol, hostname, port} = this.platformLocation;     const baseHref = this.locationStrategy.getBaseHref();     let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;     return url.endsWith('/') ? url : url + '/';   }    private parseAppUrl(url: string) {     if (DOUBLE_SLASH_REGEX.test(url)) {       throw new Error(`Bad Path - URL cannot start with double slashes: ${url}`);     }      let prefixed = (url.charAt(0) !== '/');     if (prefixed) {       url = '/' + url;     }     let match = this.urlCodec.parse(url, this.getServerBase());     if (typeof match === 'string') {       throw new Error(`Bad URL - Cannot parse URL: ${url}`);     }     let path =         prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;     this.$$path = this.urlCodec.decodePath(path);     this.$$search = this.urlCodec.decodeSearch(match.search);     this.$$hash = this.urlCodec.decodeHash(match.hash);      // make sure path starts with '/';     if (this.$$path && this.$$path.charAt(0) !== '/') {       this.$$path = '/' + this.$$path;     }   }    /**    * Registers listeners for URL changes. This API is used to catch updates performed by the    * AngularJS framework. These changes are a subset of the `$locationChangeStart` and    * `$locationChangeSuccess` events which fire when AngularJS updates its internally-referenced    * version of the browser URL.    *    * It's possible for `$locationChange` events to happen, but for the browser URL    * (window.location) to remain unchanged. This `onChange` callback will fire only when AngularJS    * actually updates the browser URL (window.location).    *    * @param fn The callback function that is triggered for the listener when the URL changes.    * @param err The callback function that is triggered when an error occurs.    */   onChange(       fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void,       err: (e: Error) => void = (e: Error) => {}) {     this.$$changeListeners.push([fn, err]);   }    /** @internal */   $$notifyChangeListeners(       url: string = '', state: unknown, oldUrl: string = '', oldState: unknown) {     this.$$changeListeners.forEach(([fn, err]) => {       try {         fn(url, state, oldUrl, oldState);       } catch (e) {         err(e as Error);       }     });   }    /**    * Parses the provided URL, and sets the current URL to the parsed result.    *    * @param url The URL string.    */   $$parse(url: string) {     let pathUrl: string|undefined;     if (url.startsWith('/')) {       pathUrl = url;     } else {       // Remove protocol & hostname if URL starts with it       pathUrl = this.stripBaseUrl(this.getServerBase(), url);     }     if (typeof pathUrl === 'undefined') {       throw new Error(`Invalid url \"${url}\", missing path prefix \"${this.getServerBase()}\".`);     }      this.parseAppUrl(pathUrl);      if (!this.$$path) {       this.$$path = '/';     }     this.composeUrls();   }    /**    * Parses the provided URL and its relative URL.    *    * @param url The full URL string.    * @param relHref A URL string relative to the full URL string.    */   $$parseLinkUrl(url: string, relHref?: string|null): boolean {     // When relHref is passed, it should be a hash and is handled separately     if (relHref && relHref[0] === '#') {       this.hash(relHref.slice(1));       return true;     }     let rewrittenUrl;     let appUrl = this.stripBaseUrl(this.getServerBase(), url);     if (typeof appUrl !== 'undefined') {       rewrittenUrl = this.getServerBase() + appUrl;     } else if (this.getServerBase() === url + '/') {       rewrittenUrl = this.getServerBase();     }     // Set the URL     if (rewrittenUrl) {       this.$$parse(rewrittenUrl);     }     return !!rewrittenUrl;   }    private setBrowserUrlWithFallback(url: string, replace: boolean, state: unknown) {     const oldUrl = this.url();     const oldState = this.$$state;     try {       this.browserUrl(url, replace, state);        // Make sure $location.state() returns referentially identical (not just deeply equal)       // state object; this makes possible quick checking if the state changed in the digest       // loop. Checking deep equality would be too expensive.       this.$$state = this.browserState();     } catch (e) {       // Restore old values if pushState fails       this.url(oldUrl);       this.$$state = oldState;        throw e;     }   }    private composeUrls() {     this.$$url = this.urlCodec.normalize(this.$$path, this.$$search, this.$$hash);     this.$$absUrl = this.getServerBase() + this.$$url.slice(1);  // remove '/' from front of URL     this.updateBrowser = true;   }    /**    * Retrieves the full URL representation with all segments encoded according to    * rules specified in    * [RFC 3986](https://tools.ietf.org/html/rfc3986).    *    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let absUrl = $location.absUrl();    * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"    * ```    */   absUrl(): string {     return this.$$absUrl;   }    /**    * Retrieves the current URL, or sets a new URL. When setting a URL,    * changes the path, search, and hash, and returns a reference to its own instance.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let url = $location.url();    * // => \"/some/path?foo=bar&baz=xoxo\"    * ```    */   url(): string;   url(url: string): this;   url(url?: string): string|this {     if (typeof url === 'string') {       if (!url.length) {         url = '/';       }        const match = PATH_MATCH.exec(url);       if (!match) return this;       if (match[1] || url === '') this.path(this.urlCodec.decodePath(match[1]));       if (match[2] || match[1] || url === '') this.search(match[3] || '');       this.hash(match[5] || '');        // Chainable method       return this;     }      return this.$$url;   }    /**    * Retrieves the protocol of the current URL.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let protocol = $location.protocol();    * // => \"http\"    * ```    */   protocol(): string {     return this.$$protocol;   }    /**    * Retrieves the protocol of the current URL.    *    * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this    * returns the `hostname` portion only.    *    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let host = $location.host();    * // => \"example.com\"    *    * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo    * host = $location.host();    * // => \"example.com\"    * host = location.host;    * // => \"example.com:8080\"    * ```    */   host(): string {     return this.$$host;   }    /**    * Retrieves the port of the current URL.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let port = $location.port();    * // => 80    * ```    */   port(): number|null {     return this.$$port;   }    /**    * Retrieves the path of the current URL, or changes the path and returns a reference to its own    * instance.    *    * Paths should always begin with forward slash (/). This method adds the forward slash    * if it is missing.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let path = $location.path();    * // => \"/some/path\"    * ```    */   path(): string;   path(path: string|number|null): this;   path(path?: string|number|null): string|this {     if (typeof path === 'undefined') {       return this.$$path;     }      // null path converts to empty string. Prepend with \"/\" if needed.     path = path !== null ? path.toString() : '';     path = path.charAt(0) === '/' ? path : '/' + path;      this.$$path = path;      this.composeUrls();     return this;   }    /**    * Retrieves a map of the search parameters of the current URL, or changes a search    * part and returns a reference to its own instance.    *    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo    * let searchObject = $location.search();    * // => {foo: 'bar', baz: 'xoxo'}    *    * // set foo to 'yipee'    * $location.search('foo', 'yipee');    * // $location.search() => {foo: 'yipee', baz: 'xoxo'}    * ```    *    * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or    * hash object.    *    * When called with a single argument the method acts as a setter, setting the `search` component    * of `$location` to the specified value.    *    * If the argument is a hash object containing an array of values, these values will be encoded    * as duplicate search parameters in the URL.    *    * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number,    *     then `paramValue`    * will override only a single search property.    *    * If `paramValue` is an array, it will override the property of the `search` component of    * `$location` specified via the first argument.    *    * If `paramValue` is `null`, the property specified via the first argument will be deleted.    *    * If `paramValue` is `true`, the property specified via the first argument will be added with no    * value nor trailing equal sign.    *    * @return {Object} The parsed `search` object of the current URL, or the changed `search` object.    */   search(): {[key: string]: unknown};   search(search: string|number|{[key: string]: unknown}): this;   search(       search: string|number|{[key: string]: unknown},       paramValue: null|undefined|string|number|boolean|string[]): this;   search(       search?: string|number|{[key: string]: unknown},       paramValue?: null|undefined|string|number|boolean|string[]): {[key: string]: unknown}|this {     switch (arguments.length) {       case 0:         return this.$$search;       case 1:         if (typeof search === 'string' || typeof search === 'number') {           this.$$search = this.urlCodec.decodeSearch(search.toString());         } else if (typeof search === 'object' && search !== null) {           // Copy the object so it's never mutated           search = {...search};           // remove object undefined or null properties           for (const key in search) {             if (search[key] == null) delete search[key];           }            this.$$search = search;         } else {           throw new Error(               'LocationProvider.search(): First argument must be a string or an object.');         }         break;       default:         if (typeof search === 'string') {           const currentSearch = this.search();           if (typeof paramValue === 'undefined' || paramValue === null) {             delete currentSearch[search];             return this.search(currentSearch);           } else {             currentSearch[search] = paramValue;             return this.search(currentSearch);           }         }     }     this.composeUrls();     return this;   }    /**    * Retrieves the current hash fragment, or changes the hash fragment and returns a reference to    * its own instance.    *    * ```js    * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue    * let hash = $location.hash();    * // => \"hashValue\"    * ```    */   hash(): string;   hash(hash: string|number|null): this;   hash(hash?: string|number|null): string|this {     if (typeof hash === 'undefined') {       return this.$$hash;     }      this.$$hash = hash !== null ? hash.toString() : '';      this.composeUrls();     return this;   }    /**    * Changes to `$location` during the current `$digest` will replace the current    * history record, instead of adding a new one.    */   replace(): this {     this.$$replace = true;     return this;   }    /**    * Retrieves the history state object when called without any parameter.    *    * Change the history state object when called with one parameter and return `$location`.    * The state object is later passed to `pushState` or `replaceState`.    *    * This method is supported only in HTML5 mode and only in browsers supporting    * the HTML5 History API methods such as `pushState` and `replaceState`. If you need to support    * older browsers (like Android < 4.0), don't use this method.    *    */   state(): unknown;   state(state: unknown): this;   state(state?: unknown): unknown|this {     if (typeof state === 'undefined') {       return this.$$state;     }      this.$$state = state;     return this;   } }  /**  * The factory function used to create an instance of the `$locationShim` in Angular,  * and provides an API-compatible `$locationProvider` for AngularJS.  *  * @publicApi  */ export class $locationShimProvider {   constructor(       private ngUpgrade: UpgradeModule, private location: Location,       private platformLocation: PlatformLocation, private urlCodec: UrlCodec,       private locationStrategy: LocationStrategy) {}    /**    * Factory method that returns an instance of the $locationShim    */   $get() {     return new $locationShim(         this.ngUpgrade.$injector, this.location, this.platformLocation, this.urlCodec,         this.locationStrategy);   }    /**    * Stub method used to keep API compatible with AngularJS. This setting is configured through    * the LocationUpgradeModule's `config` method in your Angular app.    */   hashPrefix(prefix?: string) {     throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');   }    /**    * Stub method used to keep API compatible with AngularJS. This setting is configured through    * the LocationUpgradeModule's `config` method in your Angular app.    */   html5Mode(mode?: any) {     throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * A codec for encoding and decoding URL parts.  *  * @publicApi  **/ export abstract class UrlCodec {   /**    * Encodes the path from the provided string    *    * @param path The path string    */   abstract encodePath(path: string): string;    /**    * Decodes the path from the provided string    *    * @param path The path string    */   abstract decodePath(path: string): string;    /**    * Encodes the search string from the provided string or object    *    * @param path The path string or object    */   abstract encodeSearch(search: string|{[k: string]: unknown}): string;    /**    * Decodes the search objects from the provided string    *    * @param path The path string    */   abstract decodeSearch(search: string): {[k: string]: unknown};    /**    * Encodes the hash from the provided string    *    * @param path The hash string    */   abstract encodeHash(hash: string): string;    /**    * Decodes the hash from the provided string    *    * @param path The hash string    */   abstract decodeHash(hash: string): string;    /**    * Normalizes the URL from the provided string    *    * @param path The URL string    */   abstract normalize(href: string): string;     /**    * Normalizes the URL from the provided string, search, hash, and base URL parameters    *    * @param path The URL path    * @param search The search object    * @param hash The has string    * @param baseUrl The base URL for the URL    */   abstract normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string):       string;    /**    * Checks whether the two strings are equal    * @param valA First string for comparison    * @param valB Second string for comparison    */   abstract areEqual(valA: string, valB: string): boolean;    /**    * Parses the URL string based on the base URL    *    * @param url The full URL string    * @param base The base for the URL    */   abstract parse(url: string, base?: string): {     href: string,     protocol: string,     host: string,     search: string,     hash: string,     hostname: string,     port: string,     pathname: string   }; }  /**  * A `UrlCodec` that uses logic from AngularJS to serialize and parse URLs  * and URL parameters.  *  * @publicApi  */ export class AngularJSUrlCodec implements UrlCodec {   // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L15   encodePath(path: string): string {     const segments = path.split('/');     let i = segments.length;      while (i--) {       // decode forward slashes to prevent them from being double encoded       segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));     }      path = segments.join('/');     return _stripIndexHtml((path && path[0] !== '/' && '/' || '') + path);   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42   encodeSearch(search: string|{[k: string]: unknown}): string {     if (typeof search === 'string') {       search = parseKeyValue(search);     }      search = toKeyValue(search);     return search ? '?' + search : '';   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L44   encodeHash(hash: string) {     hash = encodeUriSegment(hash);     return hash ? '#' + hash : '';   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L27   decodePath(path: string, html5Mode = true): string {     const segments = path.split('/');     let i = segments.length;      while (i--) {       segments[i] = decodeURIComponent(segments[i]);       if (html5Mode) {         // encode forward slashes to prevent them from being mistaken for path separators         segments[i] = segments[i].replace(/\\//g, '%2F');       }     }      return segments.join('/');   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72   decodeSearch(search: string) {     return parseKeyValue(search);   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73   decodeHash(hash: string) {     hash = decodeURIComponent(hash);     return hash[0] === '#' ? hash.substring(1) : hash;   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L149   // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42   normalize(href: string): string;   normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string): string;   normalize(pathOrHref: string, search?: {[k: string]: unknown}, hash?: string, baseUrl?: string):       string {     if (arguments.length === 1) {       const parsed = this.parse(pathOrHref, baseUrl);        if (typeof parsed === 'string') {         return parsed;       }        const serverUrl =           `${parsed.protocol}://${parsed.hostname}${parsed.port ? ':' + parsed.port : ''}`;        return this.normalize(           this.decodePath(parsed.pathname), this.decodeSearch(parsed.search),           this.decodeHash(parsed.hash), serverUrl);     } else {       const encPath = this.encodePath(pathOrHref);       const encSearch = search && this.encodeSearch(search) || '';       const encHash = hash && this.encodeHash(hash) || '';        let joinedPath = (baseUrl || '') + encPath;        if (!joinedPath.length || joinedPath[0] !== '/') {         joinedPath = '/' + joinedPath;       }       return joinedPath + encSearch + encHash;     }   }    areEqual(valA: string, valB: string) {     return this.normalize(valA) === this.normalize(valB);   }    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60   parse(url: string, base?: string) {     try {       // Safari 12 throws an error when the URL constructor is called with an undefined base.       const parsed = !base ? new URL(url) : new URL(url, base);       return {         href: parsed.href,         protocol: parsed.protocol ? parsed.protocol.replace(/:$/, '') : '',         host: parsed.host,         search: parsed.search ? parsed.search.replace(/^\\?/, '') : '',         hash: parsed.hash ? parsed.hash.replace(/^#/, '') : '',         hostname: parsed.hostname,         port: parsed.port,         pathname: (parsed.pathname.charAt(0) === '/') ? parsed.pathname : '/' + parsed.pathname       };     } catch (e) {       throw new Error(`Invalid URL (${url}) with base (${base})`);     }   } }  function _stripIndexHtml(url: string): string {   return url.replace(/\\/index.html$/, ''); }  /**  * Tries to decode the URI component without throwing an exception.  *  * @param str value potential URI component to check.  * @returns the decoded URI if it can be decoded or else `undefined`.  */ function tryDecodeURIComponent(value: string): string|undefined {   try {     return decodeURIComponent(value);   } catch (e) {     // Ignore any invalid uri component.     return undefined;   } }   /**  * Parses an escaped url query string into key-value pairs. Logic taken from  * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382  */ function parseKeyValue(keyValue: string): {[k: string]: unknown} {   const obj: {[k: string]: unknown} = {};   (keyValue || '').split('&').forEach((keyValue) => {     let splitPoint, key, val;     if (keyValue) {       key = keyValue = keyValue.replace(/\\+/g, '%20');       splitPoint = keyValue.indexOf('=');       if (splitPoint !== -1) {         key = keyValue.substring(0, splitPoint);         val = keyValue.substring(splitPoint + 1);       }       key = tryDecodeURIComponent(key);       if (typeof key !== 'undefined') {         val = typeof val !== 'undefined' ? tryDecodeURIComponent(val) : true;         if (!obj.hasOwnProperty(key)) {           obj[key] = val;         } else if (Array.isArray(obj[key])) {           (obj[key] as unknown[]).push(val);         } else {           obj[key] = [obj[key], val];         }       }     }   });   return obj; }  /**  * Serializes into key-value pairs. Logic taken from  * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1409  */ function toKeyValue(obj: {[k: string]: unknown}) {   const parts: unknown[] = [];   for (const key in obj) {     let value = obj[key];     if (Array.isArray(value)) {       value.forEach((arrayValue) => {         parts.push(             encodeUriQuery(key, true) +             (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));       });     } else {       parts.push(           encodeUriQuery(key, true) +           (value === true ? '' : '=' + encodeUriQuery(value as any, true)));     }   }   return parts.length ? parts.join('&') : ''; }   /**  * We need our custom method because encodeURIComponent is too aggressive and doesn't follow  * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path  * segments:  *    segment       = *pchar  *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"  *    pct-encoded   = \"%\" HEXDIG HEXDIG  *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"  *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"  *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"  *  * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437  */ function encodeUriSegment(val: string) {   return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+'); }   /**  * This method is intended for encoding *key* or *value* parts of query component. We need a custom  * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be  * encoded per https://tools.ietf.org/html/rfc3986:  *    query         = *( pchar / \"/\" / \"?\" )  *    pchar         = unreserved / pct-encoded / sub-delims / \":\" / \"@\"  *    unreserved    = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"  *    pct-encoded   = \"%\" HEXDIG HEXDIG  *    sub-delims    = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"  *                     / \"*\" / \"+\" / \",\" / \";\" / \"=\"  *  * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1456  */ function encodeUriQuery(val: string, pctEncodeSpaces: boolean = false) {   return encodeURIComponent(val)       .replace(/%40/g, '@')       .replace(/%3A/gi, ':')       .replace(/%24/g, '$')       .replace(/%2C/gi, ',')       .replace(/%3B/gi, ';')       .replace(/%20/g, (pctEncodeSpaces ? '%20' : '+')); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {APP_BASE_HREF, CommonModule, HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, PlatformLocation} from '@angular/common'; import {Inject, InjectionToken, ModuleWithProviders, NgModule, Optional} from '@angular/core'; import {UpgradeModule} from '@angular/upgrade/static';  import {$locationShim, $locationShimProvider} from './location_shim'; import {AngularJSUrlCodec, UrlCodec} from './params';   /**  * Configuration options for LocationUpgrade.  *  * @publicApi  */ export interface LocationUpgradeConfig {   /**    * Configures whether the location upgrade module should use the `HashLocationStrategy`    * or the `PathLocationStrategy`    */   useHash?: boolean;   /**    * Configures the hash prefix used in the URL when using the `HashLocationStrategy`    */   hashPrefix?: string;   /**    * Configures the URL codec for encoding and decoding URLs. Default is the `AngularJSCodec`    */   urlCodec?: typeof UrlCodec;   /**    * Configures the base href when used in server-side rendered applications    */   serverBaseHref?: string;   /**    * Configures the base href when used in client-side rendered applications    */   appBaseHref?: string; }  /**  * A provider token used to configure the location upgrade module.  *  * @publicApi  */ export const LOCATION_UPGRADE_CONFIGURATION =     new InjectionToken<LocationUpgradeConfig>('LOCATION_UPGRADE_CONFIGURATION');  const APP_BASE_HREF_RESOLVED = new InjectionToken<string>('APP_BASE_HREF_RESOLVED');  /**  * `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.  *  * @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)  *  * @publicApi  */ @NgModule({imports: [CommonModule]}) export class LocationUpgradeModule {   static config(config?: LocationUpgradeConfig): ModuleWithProviders<LocationUpgradeModule> {     return {       ngModule: LocationUpgradeModule,       providers: [         Location,         {           provide: $locationShim,           useFactory: provide$location,           deps: [UpgradeModule, Location, PlatformLocation, UrlCodec, LocationStrategy]         },         {provide: LOCATION_UPGRADE_CONFIGURATION, useValue: config ? config : {}},         {provide: UrlCodec, useFactory: provideUrlCodec, deps: [LOCATION_UPGRADE_CONFIGURATION]},         {           provide: APP_BASE_HREF_RESOLVED,           useFactory: provideAppBaseHref,           deps: [LOCATION_UPGRADE_CONFIGURATION, [new Inject(APP_BASE_HREF), new Optional()]]         },         {           provide: LocationStrategy,           useFactory: provideLocationStrategy,           deps: [             PlatformLocation,             APP_BASE_HREF_RESOLVED,             LOCATION_UPGRADE_CONFIGURATION,           ]         },       ],     };   } }  export function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?: string) {   if (config && config.appBaseHref != null) {     return config.appBaseHref;   } else if (appBaseHref != null) {     return appBaseHref;   }   return ''; }  export function provideUrlCodec(config: LocationUpgradeConfig) {   const codec = config && config.urlCodec || AngularJSUrlCodec;   return new (codec as any)(); }  export function provideLocationStrategy(     platformLocation: PlatformLocation, baseHref: string, options: LocationUpgradeConfig = {}) {   return options.useHash ? new HashLocationStrategy(platformLocation, baseHref) :                            new PathLocationStrategy(platformLocation, baseHref); }  export function provide$location(     ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation,     urlCodec: UrlCodec, locationStrategy: LocationStrategy) {   const $locationProvider =       new $locationShimProvider(ngUpgrade, location, platformLocation, urlCodec, locationStrategy);    return $locationProvider.$get(); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/index';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":[],"mappings":";;;;;;;;;;;;AAQgB,SAAA,WAAW,CAAC,GAAW,EAAE,MAAc,EAAA;IACrD,OAAO,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AACrE,CAAC;AAEe,SAAA,SAAS,CAAC,CAAM,EAAE,CAAM,EAAA;IACtC,IAAI,CAAC,KAAK,CAAC,EAAE;AACX,QAAA,OAAO,IAAI,CAAC;AACb,KAAA;AAAM,SAAA,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;AACnB,QAAA,OAAO,KAAK,CAAC;AACd,KAAA;AAAM,SAAA;QACL,IAAI;YACF,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;AAC3E,gBAAA,OAAO,KAAK,CAAC;AACd,aAAA;AACD,YAAA,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAChD,SAAA;AAAC,QAAA,OAAO,CAAC,EAA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nC,gBAAkC,EAAE,QAAgB,EAAE,UAAiC,EAAE,EAAA;AAC3F,IAAA,OAAO,OAAO,CAAC,OAAO,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,QAAQ,CAAC;AACpD,QAAA,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AAChF,CAAC;AAEK,SAAU,gBAAgB,CAC5B,SAAwB,EAAE,QAAkB,EAAE,gBAAkC,EAChF,QAAkB,EAAE,gBAAkC,EAAA;AACxD,IAAA,MAAM,iBAAiB,GACnB,IAAI,qBAAqB,CAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAEjG,IAAA,OAAO,iBAAiB,CAAC,IAAI,EAAE,CAAC;AAClC;;AClHA;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 44 --------------------
{"version":3,"file":"router.mjs","sources":["../../../../../../packages/router/src/shared.ts","../../../../../../packages/router/src/utils/collection.ts","../../../../../../packages/router/src/url_tree.ts","../../../../../../packages/router/src/create_url_tree.ts","../../../../../../packages/router/src/events.ts","../../../../../../packages/router/src/create_url_tree_strategy.ts","../../../../../../packages/router/src/utils/tree.ts","../../../../../../packages/router/src/router_state.ts","../../../../../../packages/router/src/create_router_state.ts","../../../../../../packages/router/src/navigation_canceling_error.ts","../../../../../../packages/router/src/router_outlet_context.ts","../../../../../../packages/router/src/directives/router_outlet.ts","../../../../../../packages/router/src/components/empty_outlet.ts","../../../../../../packages/router/src/utils/config.ts","../../../../../../packages/router/src/operators/activate_routes.ts","../../../../../../packages/router/src/utils/preactivation.ts","../../../../../../packages/router/src/utils/type_guards.ts","../../../../../../packages/router/src/operators/prioritized_guard_value.ts","../../../../../../packages/router/src/operators/check_guards.ts","../../../../../../packages/router/src/utils/config_matching.ts","../../../../../../packages/router/src/apply_redirects.ts","../../../../../../packages/router/src/operators/apply_redirects.ts","../../../../../../packages/router/src/recognize.ts","../../../../../../packages/router/src/operators/recognize.ts","../../../../../../packages/router/src/operators/resolve_data.ts","../../../../../../packages/router/src/operators/switch_tap.ts","../../../../../../packages/router/src/deprecated_load_children.ts","../../../../../../packages/router/src/router_config_loader.ts","../../../../../../packages/router/src/navigation_transition.ts","../../../../../../packages/router/src/page_title_strategy.ts","../../../../../../packages/router/src/route_reuse_strategy.ts","../../../../../../packages/router/src/router_config.ts","../../../../../../packages/router/src/url_handling_strategy.ts","../../../../../../packages/router/src/router.ts","../../../../../../packages/router/src/directives/router_link.ts","../../../../../../packages/router/src/directives/router_link_active.ts","../../../../../../packages/router/src/router_preloader.ts","../../../../../../packages/router/src/router_scroller.ts","../../../../../../packages/router/src/utils/navigations.ts","../../../../../../packages/router/src/provide_router.ts","../../../../../../packages/router/src/router_module.ts","../../../../../../packages/router/src/version.ts","../../../../../../packages/router/public_api.ts","../../../../../../packages/router/index.ts","../../../../../../packages/router/router.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Route, UrlMatchResult} from './models'; import {UrlSegment, UrlSegmentGroup} from './url_tree';   /**  * The primary routing outlet.  *  * @publicApi  */ export const PRIMARY_OUTLET = 'primary';  /**  * A private symbol used to store the value of `Route.title` inside the `Route.data` if it is a  * static string or `Route.resolve` if anything else. This allows us to reuse the existing route  * data/resolvers to support the title feature without new instrumentation in the `Router` pipeline.  */ export const RouteTitleKey = Symbol('RouteTitle');  /**  * A collection of matrix and query URL parameters.  * @see `convertToParamMap()`  * @see `ParamMap`  *  * @publicApi  */ export type Params = {   [key: string]: any; };  /**  * A map that provides access to the required and optional parameters  * specific to a route.  * The map supports retrieving a single value with `get()`  * or multiple values with `getAll()`.  *  * @see [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)  *  * @publicApi  */ export interface ParamMap {   /**    * Reports whether the map contains a given parameter.    * @param name The parameter name.    * @returns True if the map contains the given parameter, false otherwise.    */   has(name: string): boolean;   /**    * Retrieves a single value for a parameter.    * @param name The parameter name.    * @return The parameter's single value,    * or the first value if the parameter has multiple values,    * or `null` when there is no such parameter.    */   get(name: string): string|null;   /**    * Retrieves multiple values for a parameter.    * @param name The parameter name.    * @return An array containing one or more values,    * or an empty array if there is no such parameter.    *    */   getAll(name: string): string[];    /** Names of the parameters in the map. */   readonly keys: string[]; }  class ParamsAsMap implements ParamMap {   private params: Params;    constructor(params: Params) {     this.params = params || {};   }    has(name: string): boolean {     return Object.prototype.hasOwnProperty.call(this.params, name);   }    get(name: string): string|null {     if (this.has(name)) {       const v = this.params[name];       return Array.isArray(v) ? v[0] : v;     }      return null;   }    getAll(name: string): string[] {     if (this.has(name)) {       const v = this.params[name];       return Array.isArray(v) ? v : [v];     }      return [];   }    get keys(): string[] {     return Object.keys(this.params);   } }  /**  * Converts a `Params` instance to a `ParamMap`.  * @param params The instance to convert.  * @returns The new map instance.  *  * @publicApi  */ export function convertToParamMap(params: Params): ParamMap {   return new ParamsAsMap(params); }  /**  * Matches the route configuration (`route`) against the actual URL (`segments`).  *  * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.  *  * @param segments The remaining unmatched segments in the current navigation  * @param segmentGroup The current segment group being matched  * @param route The `Route` to match against.  *  * @see UrlMatchResult  * @see Route  *  * @returns The resulting match information or `null` if the `route` should not match.  * @publicApi  */ export function defaultUrlMatcher(     segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult|null {   const parts = route.path!.split('/');    if (parts.length > segments.length) {     // The actual URL is shorter than the config, no match     return null;   }    if (route.pathMatch === 'full' &&       (segmentGroup.hasChildren() || parts.length < segments.length)) {     // The config is longer than the actual URL but we are looking for a full match, return null     return null;   }    const posParams: {[key: string]: UrlSegment} = {};    // Check each config part against the actual URL   for (let index = 0; index < parts.length; index++) {     const part = parts[index];     const segment = segments[index];     const isParameter = part.startsWith(':');     if (isParameter) {       posParams[part.substring(1)] = segment;     } else if (part !== segment.path) {       // The actual URL part does not match the config, no match       return null;     }   }    return {consumed: segments.slice(0, parts.length), posParams}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵisObservable as isObservable, ɵisPromise as isPromise} from '@angular/core'; import {from, Observable, of} from 'rxjs';  import {Params} from '../shared';  export function shallowEqualArrays(a: any[], b: any[]): boolean {   if (a.length !== b.length) return false;   for (let i = 0; i < a.length; ++i) {     if (!shallowEqual(a[i], b[i])) return false;   }   return true; }  export function shallowEqual(a: Params, b: Params): boolean {   // While `undefined` should never be possible, it would sometimes be the case in IE 11   // and pre-chromium Edge. The check below accounts for this edge case.   const k1 = a ? Object.keys(a) : undefined;   const k2 = b ? Object.keys(b) : undefined;   if (!k1 || !k2 || k1.length != k2.length) {     return false;   }   let key: string;   for (let i = 0; i < k1.length; i++) {     key = k1[i];     if (!equalArraysOrString(a[key], b[key])) {       return false;     }   }   return true; }  /**  * Test equality for arrays of strings or a string.  */ export function equalArraysOrString(a: string|string[], b: string|string[]) {   if (Array.isArray(a) && Array.isArray(b)) {     if (a.length !== b.length) return false;     const aSorted = [...a].sort();     const bSorted = [...b].sort();     return aSorted.every((val, index) => bSorted[index] === val);   } else {     return a === b;   } }  /**  * Flattens single-level nested arrays.  */ export function flatten<T>(arr: T[][]): T[] {   return Array.prototype.concat.apply([], arr); }  /**  * Return the last element of an array.  */ export function last<T>(a: T[]): T|null {   return a.length > 0 ? a[a.length - 1] : null; }  /**  * Verifys all booleans in an array are `true`.  */ export function and(bools: boolean[]): boolean {   return !bools.some(v => !v); }  export function forEach<K, V>(map: {[key: string]: V}, callback: (v: V, k: string) => void): void {   for (const prop in map) {     if (map.hasOwnProperty(prop)) {       callback(map[prop], prop);     }   } }  export function wrapIntoObservable<T>(value: T|Promise<T>|Observable<T>): Observable<T> {   if (isObservable(value)) {     return value;   }    if (isPromise(value)) {     // Use `Promise.resolve()` to wrap promise-like instances.     // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the     // change detection.     return from(Promise.resolve(value));   }    return of(value); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injectable, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors'; import {convertToParamMap, ParamMap, Params, PRIMARY_OUTLET} from './shared'; import {equalArraysOrString, forEach, shallowEqual} from './utils/collection';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * A set of options which specify how to determine if a `UrlTree` is active, given the `UrlTree`  * for the current router state.  *  * @publicApi  * @see Router.isActive  */ export interface IsActiveMatchOptions {   /**    * Defines the strategy for comparing the matrix parameters of two `UrlTree`s.    *    * The matrix parameter matching is dependent on the strategy for matching the    * segments. That is, if the `paths` option is set to `'subset'`, only    * the matrix parameters of the matching segments will be compared.    *    * - `'exact'`: Requires that matching segments also have exact matrix parameter    * matches.    * - `'subset'`: The matching segments in the router's active `UrlTree` may contain    * extra matrix parameters, but those that exist in the `UrlTree` in question must match.    * - `'ignored'`: When comparing `UrlTree`s, matrix params will be ignored.    */   matrixParams: 'exact'|'subset'|'ignored';   /**    * Defines the strategy for comparing the query parameters of two `UrlTree`s.    *    * - `'exact'`: the query parameters must match exactly.    * - `'subset'`: the active `UrlTree` may contain extra parameters,    * but must match the key and value of any that exist in the `UrlTree` in question.    * - `'ignored'`: When comparing `UrlTree`s, query params will be ignored.    */   queryParams: 'exact'|'subset'|'ignored';   /**    * Defines the strategy for comparing the `UrlSegment`s of the `UrlTree`s.    *    * - `'exact'`: all segments in each `UrlTree` must match.    * - `'subset'`: a `UrlTree` will be determined to be active if it    * is a subtree of the active route. That is, the active route may contain extra    * segments, but must at least have all the segments of the `UrlTree` in question.    */   paths: 'exact'|'subset';   /**    * - `'exact'`: indicates that the `UrlTree` fragments must be equal.    * - `'ignored'`: the fragments will not be compared when determining if a    * `UrlTree` is active.    */   fragment: 'exact'|'ignored'; }  type ParamMatchOptions = 'exact'|'subset'|'ignored';  type PathCompareFn =     (container: UrlSegmentGroup, containee: UrlSegmentGroup, matrixParams: ParamMatchOptions) =>         boolean; type ParamCompareFn = (container: Params, containee: Params) => boolean;  const pathCompareMap: Record<IsActiveMatchOptions['paths'], PathCompareFn> = {   'exact': equalSegmentGroups,   'subset': containsSegmentGroup, }; const paramCompareMap: Record<ParamMatchOptions, ParamCompareFn> = {   'exact': equalParams,   'subset': containsParams,   'ignored': () => true, };  export function containsTree(     container: UrlTree, containee: UrlTree, options: IsActiveMatchOptions): boolean {   return pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) &&       paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) &&       !(options.fragment === 'exact' && container.fragment !== containee.fragment); }  function equalParams(container: Params, containee: Params): boolean {   // TODO: This does not handle array params correctly.   return shallowEqual(container, containee); }  function equalSegmentGroups(     container: UrlSegmentGroup, containee: UrlSegmentGroup,     matrixParams: ParamMatchOptions): boolean {   if (!equalPath(container.segments, containee.segments)) return false;   if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {     return false;   }   if (container.numberOfChildren !== containee.numberOfChildren) return false;   for (const c in containee.children) {     if (!container.children[c]) return false;     if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams))       return false;   }   return true; }  function containsParams(container: Params, containee: Params): boolean {   return Object.keys(containee).length <= Object.keys(container).length &&       Object.keys(containee).every(key => equalArraysOrString(container[key], containee[key])); }  function containsSegmentGroup(     container: UrlSegmentGroup, containee: UrlSegmentGroup,     matrixParams: ParamMatchOptions): boolean {   return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams); }  function containsSegmentGroupHelper(     container: UrlSegmentGroup, containee: UrlSegmentGroup, containeePaths: UrlSegment[],     matrixParams: ParamMatchOptions): boolean {   if (container.segments.length > containeePaths.length) {     const current = container.segments.slice(0, containeePaths.length);     if (!equalPath(current, containeePaths)) return false;     if (containee.hasChildren()) return false;     if (!matrixParamsMatch(current, containeePaths, matrixParams)) return false;     return true;    } else if (container.segments.length === containeePaths.length) {     if (!equalPath(container.segments, containeePaths)) return false;     if (!matrixParamsMatch(container.segments, containeePaths, matrixParams)) return false;     for (const c in containee.children) {       if (!container.children[c]) return false;       if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {         return false;       }     }     return true;    } else {     const current = containeePaths.slice(0, container.segments.length);     const next = containeePaths.slice(container.segments.length);     if (!equalPath(container.segments, current)) return false;     if (!matrixParamsMatch(container.segments, current, matrixParams)) return false;     if (!container.children[PRIMARY_OUTLET]) return false;     return containsSegmentGroupHelper(         container.children[PRIMARY_OUTLET], containee, next, matrixParams);   } }  function matrixParamsMatch(     containerPaths: UrlSegment[], containeePaths: UrlSegment[], options: ParamMatchOptions) {   return containeePaths.every((containeeSegment, i) => {     return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);   }); }  /**  * @description  *  * Represents the parsed URL.  *  * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a  * serialized tree.  * UrlTree is a data structure that provides a lot of affordances in dealing with URLs  *  * @usageNotes  * ### Example  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const tree: UrlTree =  *       router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');  *     const f = tree.fragment; // return 'fragment'  *     const q = tree.queryParams; // returns {debug: 'true'}  *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];  *     const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'  *     g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'  *     g.children['support'].segments; // return 1 segment 'help'  *   }  * }  * ```  *  * @publicApi  */ export class UrlTree {   /** @internal */   _queryParamMap?: ParamMap;   /** @internal */   _warnIfUsedForNavigation?: string;    constructor(       /** The root segment group of the URL tree */       public root: UrlSegmentGroup = new UrlSegmentGroup([], {}),       /** The query params of the URL */       public queryParams: Params = {},       /** The fragment of the URL */       public fragment: string|null = null) {     if (NG_DEV_MODE) {       if (root.segments.length > 0) {         throw new RuntimeError(             RuntimeErrorCode.INVALID_ROOT_URL_SEGMENT,             'The root `UrlSegmentGroup` should not contain `segments`. ' +                 'Instead, these segments belong in the `children` so they can be associated with a named outlet.');       }     }   }    get queryParamMap(): ParamMap {     if (!this._queryParamMap) {       this._queryParamMap = convertToParamMap(this.queryParams);     }     return this._queryParamMap;   }    /** @docsNotRequired */   toString(): string {     return DEFAULT_SERIALIZER.serialize(this);   } }  /**  * @description  *  * Represents the parsed URL segment group.  *  * See `UrlTree` for more information.  *  * @publicApi  */ export class UrlSegmentGroup {   /** @internal */   _sourceSegment?: UrlSegmentGroup;   /** @internal */   _segmentIndexShift?: number;   /**    * @internal    *    * Used only in dev mode to detect if application relies on `relativeLinkResolution: 'legacy'`    * Should be removed in when `relativeLinkResolution` is removed.    */   _segmentIndexShiftCorrected?: number;   /** The parent node in the url tree */   parent: UrlSegmentGroup|null = null;    constructor(       /** The URL segments of this group. See `UrlSegment` for more information */       public segments: UrlSegment[],       /** The list of children of this group */       public children: {[key: string]: UrlSegmentGroup}) {     forEach(children, (v: any, k: any) => v.parent = this);   }    /** Whether the segment has child segments */   hasChildren(): boolean {     return this.numberOfChildren > 0;   }    /** Number of child segments */   get numberOfChildren(): number {     return Object.keys(this.children).length;   }    /** @docsNotRequired */   toString(): string {     return serializePaths(this);   } }   /**  * @description  *  * Represents a single URL segment.  *  * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix  * parameters associated with the segment.  *  * @usageNotes  * ### Example  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const tree: UrlTree = router.parseUrl('/team;id=33');  *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];  *     const s: UrlSegment[] = g.segments;  *     s[0].path; // returns 'team'  *     s[0].parameters; // returns {id: 33}  *   }  * }  * ```  *  * @publicApi  */ export class UrlSegment {   /** @internal */   _parameterMap?: ParamMap;    constructor(       /** The path part of a URL segment */       public path: string,        /** The matrix parameters associated with a segment */       public parameters: {[name: string]: string}) {}    get parameterMap(): ParamMap {     if (!this._parameterMap) {       this._parameterMap = convertToParamMap(this.parameters);     }     return this._parameterMap;   }    /** @docsNotRequired */   toString(): string {     return serializePath(this);   } }  export function equalSegments(as: UrlSegment[], bs: UrlSegment[]): boolean {   return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters)); }  export function equalPath(as: UrlSegment[], bs: UrlSegment[]): boolean {   if (as.length !== bs.length) return false;   return as.every((a, i) => a.path === bs[i].path); }  export function mapChildrenIntoArray<T>(     segment: UrlSegmentGroup, fn: (v: UrlSegmentGroup, k: string) => T[]): T[] {   let res: T[] = [];   forEach(segment.children, (child: UrlSegmentGroup, childOutlet: string) => {     if (childOutlet === PRIMARY_OUTLET) {       res = res.concat(fn(child, childOutlet));     }   });   forEach(segment.children, (child: UrlSegmentGroup, childOutlet: string) => {     if (childOutlet !== PRIMARY_OUTLET) {       res = res.concat(fn(child, childOutlet));     }   });   return res; }   /**  * @description  *  * Serializes and deserializes a URL string into a URL tree.  *  * The url serialization strategy is customizable. You can  * make all URLs case insensitive by providing a custom UrlSerializer.  *  * See `DefaultUrlSerializer` for an example of a URL serializer.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => new DefaultUrlSerializer()}) export abstract class UrlSerializer {   /** Parse a url into a `UrlTree` */   abstract parse(url: string): UrlTree;    /** Converts a `UrlTree` into a url */   abstract serialize(tree: UrlTree): string; }  /**  * @description  *  * A default implementation of the `UrlSerializer`.  *  * Example URLs:  *  * ```  * /inbox/33(popup:compose)  * /inbox/33;open=true/messages/44  * ```  *  * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the  * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to  * specify route specific parameters.  *  * @publicApi  */ export class DefaultUrlSerializer implements UrlSerializer {   /** Parses a url into a `UrlTree` */   parse(url: string): UrlTree {     const p = new UrlParser(url);     return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());   }    /** Converts a `UrlTree` into a url */   serialize(tree: UrlTree): string {     const segment = `/${serializeSegment(tree.root, true)}`;     const query = serializeQueryParams(tree.queryParams);     const fragment =         typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';      return `${segment}${query}${fragment}`;   } }  const DEFAULT_SERIALIZER = new DefaultUrlSerializer();  export function serializePaths(segment: UrlSegmentGroup): string {   return segment.segments.map(p => serializePath(p)).join('/'); }  function serializeSegment(segment: UrlSegmentGroup, root: boolean): string {   if (!segment.hasChildren()) {     return serializePaths(segment);   }    if (root) {     const primary = segment.children[PRIMARY_OUTLET] ?         serializeSegment(segment.children[PRIMARY_OUTLET], false) :         '';     const children: string[] = [];      forEach(segment.children, (v: UrlSegmentGroup, k: string) => {       if (k !== PRIMARY_OUTLET) {         children.push(`${k}:${serializeSegment(v, false)}`);       }     });      return children.length > 0 ? `${primary}(${children.join('//')})` : primary;    } else {     const children = mapChildrenIntoArray(segment, (v: UrlSegmentGroup, k: string) => {       if (k === PRIMARY_OUTLET) {         return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];       }        return [`${k}:${serializeSegment(v, false)}`];     });      // use no parenthesis if the only child is a primary outlet route     if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {       return `${serializePaths(segment)}/${children[0]}`;     }      return `${serializePaths(segment)}/(${children.join('//')})`;   } }  /**  * Encodes a URI string with the default encoding. This function will only ever be called from  * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need  * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't  * have to be encoded per https://url.spec.whatwg.org.  */ function encodeUriString(s: string): string {   return encodeURIComponent(s)       .replace(/%40/g, '@')       .replace(/%3A/gi, ':')       .replace(/%24/g, '$')       .replace(/%2C/gi, ','); }  /**  * This function should be used to encode both keys and values in a query string key/value. In  * the following URL, you need to call encodeUriQuery on \"k\" and \"v\":  *  * http://www.site.org/html;mk=mv?k=v#f  */ export function encodeUriQuery(s: string): string {   return encodeUriString(s).replace(/%3B/gi, ';'); }  /**  * This function should be used to encode a URL fragment. In the following URL, you need to call  * encodeUriFragment on \"f\":  *  * http://www.site.org/html;mk=mv?k=v#f  */ export function encodeUriFragment(s: string): string {   return encodeURI(s); }  /**  * This function should be run on any URI segment as well as the key and value in a key/value  * pair for matrix params. In the following URL, you need to call encodeUriSegment on \"html\",  * \"mk\", and \"mv\":  *  * http://www.site.org/html;mk=mv?k=v#f  */ export function encodeUriSegment(s: string): string {   return encodeUriString(s).replace(/\\(/g, '%28').replace(/\\)/g, '%29').replace(/%26/gi, '&'); }  export function decode(s: string): string {   return decodeURIComponent(s); }  // Query keys/values should have the \"+\" replaced first, as \"+\" in a query string is \" \". // decodeURIComponent function will not decode \"+\" as a space. export function decodeQuery(s: string): string {   return decode(s.replace(/\\+/g, '%20')); }  export function serializePath(path: UrlSegment): string {   return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`; }  function serializeMatrixParams(params: {[key: string]: string}): string {   return Object.keys(params)       .map(key => `;${encodeUriSegment(key)}=${encodeUriSegment(params[key])}`)       .join(''); }  function serializeQueryParams(params: {[key: string]: any}): string {   const strParams: string[] =       Object.keys(params)           .map((name) => {             const value = params[name];             return Array.isArray(value) ?                 value.map(v => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&') :                 `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;           })           .filter(s => !!s);    return strParams.length ? `?${strParams.join('&')}` : ''; }  const SEGMENT_RE = /^[^\\/()?;=#]+/; function matchSegments(str: string): string {   const match = str.match(SEGMENT_RE);   return match ? match[0] : ''; }  const QUERY_PARAM_RE = /^[^=?&#]+/; // Return the name of the query param at the start of the string or an empty string function matchQueryParams(str: string): string {   const match = str.match(QUERY_PARAM_RE);   return match ? match[0] : ''; }  const QUERY_PARAM_VALUE_RE = /^[^&#]+/; // Return the value of the query param at the start of the string or an empty string function matchUrlQueryParamValue(str: string): string {   const match = str.match(QUERY_PARAM_VALUE_RE);   return match ? match[0] : ''; }  class UrlParser {   private remaining: string;    constructor(private url: string) {     this.remaining = url;   }    parseRootSegment(): UrlSegmentGroup {     this.consumeOptional('/');      if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {       return new UrlSegmentGroup([], {});     }      // The root segment group never has segments     return new UrlSegmentGroup([], this.parseChildren());   }    parseQueryParams(): Params {     const params: Params = {};     if (this.consumeOptional('?')) {       do {         this.parseQueryParam(params);       } while (this.consumeOptional('&'));     }     return params;   }    parseFragment(): string|null {     return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;   }    private parseChildren(): {[outlet: string]: UrlSegmentGroup} {     if (this.remaining === '') {       return {};     }      this.consumeOptional('/');      const segments: UrlSegment[] = [];     if (!this.peekStartsWith('(')) {       segments.push(this.parseSegment());     }      while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {       this.capture('/');       segments.push(this.parseSegment());     }      let children: {[outlet: string]: UrlSegmentGroup} = {};     if (this.peekStartsWith('/(')) {       this.capture('/');       children = this.parseParens(true);     }      let res: {[outlet: string]: UrlSegmentGroup} = {};     if (this.peekStartsWith('(')) {       res = this.parseParens(false);     }      if (segments.length > 0 || Object.keys(children).length > 0) {       res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);     }      return res;   }    // parse a segment with its matrix parameters   // ie `name;k1=v1;k2`   private parseSegment(): UrlSegment {     const path = matchSegments(this.remaining);     if (path === '' && this.peekStartsWith(';')) {       throw new RuntimeError(           RuntimeErrorCode.EMPTY_PATH_WITH_PARAMS,           NG_DEV_MODE && `Empty path url segment cannot have parameters: '${this.remaining}'.`);     }      this.capture(path);     return new UrlSegment(decode(path), this.parseMatrixParams());   }    private parseMatrixParams(): {[key: string]: string} {     const params: {[key: string]: string} = {};     while (this.consumeOptional(';')) {       this.parseParam(params);     }     return params;   }    private parseParam(params: {[key: string]: string}): void {     const key = matchSegments(this.remaining);     if (!key) {       return;     }     this.capture(key);     let value: any = '';     if (this.consumeOptional('=')) {       const valueMatch = matchSegments(this.remaining);       if (valueMatch) {         value = valueMatch;         this.capture(value);       }     }      params[decode(key)] = decode(value);   }    // Parse a single query parameter `name[=value]`   private parseQueryParam(params: Params): void {     const key = matchQueryParams(this.remaining);     if (!key) {       return;     }     this.capture(key);     let value: any = '';     if (this.consumeOptional('=')) {       const valueMatch = matchUrlQueryParamValue(this.remaining);       if (valueMatch) {         value = valueMatch;         this.capture(value);       }     }      const decodedKey = decodeQuery(key);     const decodedVal = decodeQuery(value);      if (params.hasOwnProperty(decodedKey)) {       // Append to existing values       let currentVal = params[decodedKey];       if (!Array.isArray(currentVal)) {         currentVal = [currentVal];         params[decodedKey] = currentVal;       }       currentVal.push(decodedVal);     } else {       // Create a new value       params[decodedKey] = decodedVal;     }   }    // parse `(a/b//outlet_name:c/d)`   private parseParens(allowPrimary: boolean): {[outlet: string]: UrlSegmentGroup} {     const segments: {[key: string]: UrlSegmentGroup} = {};     this.capture('(');      while (!this.consumeOptional(')') && this.remaining.length > 0) {       const path = matchSegments(this.remaining);        const next = this.remaining[path.length];        // if is is not one of these characters, then the segment was unescaped       // or the group was not closed       if (next !== '/' && next !== ')' && next !== ';') {         throw new RuntimeError(             RuntimeErrorCode.UNPARSABLE_URL, NG_DEV_MODE && `Cannot parse url '${this.url}'`);       }        let outletName: string = undefined!;       if (path.indexOf(':') > -1) {         outletName = path.slice(0, path.indexOf(':'));         this.capture(outletName);         this.capture(':');       } else if (allowPrimary) {         outletName = PRIMARY_OUTLET;       }        const children = this.parseChildren();       segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] :                                                                   new UrlSegmentGroup([], children);       this.consumeOptional('//');     }      return segments;   }    private peekStartsWith(str: string): boolean {     return this.remaining.startsWith(str);   }    // Consumes the prefix when it is present and returns whether it has been consumed   private consumeOptional(str: string): boolean {     if (this.peekStartsWith(str)) {       this.remaining = this.remaining.substring(str.length);       return true;     }     return false;   }    private capture(str: string): void {     if (!this.consumeOptional(str)) {       throw new RuntimeError(           RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL, NG_DEV_MODE && `Expected \"${str}\".`);     }   } }  export function createRoot(rootCandidate: UrlSegmentGroup) {   return rootCandidate.segments.length > 0 ?       new UrlSegmentGroup([], {[PRIMARY_OUTLET]: rootCandidate}) :       rootCandidate; }  /**  * Recursively merges primary segment children into their parents and also drops empty children  * (those which have no segments and no children themselves). The latter prevents serializing a  * group into something like `/a(aux:)`, where `aux` is an empty child segment.  */ export function squashSegmentGroup(segmentGroup: UrlSegmentGroup): UrlSegmentGroup {   const newChildren: Record<string, UrlSegmentGroup> = {};   for (const childOutlet of Object.keys(segmentGroup.children)) {     const child = segmentGroup.children[childOutlet];     const childCandidate = squashSegmentGroup(child);     // don't add empty children     if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {       newChildren[childOutlet] = childCandidate;     }   }   const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);   return mergeTrivialChildren(s); }  /**  * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.  *  * When a segment group has only one child which is a primary outlet, merges that child into the  * parent. That is, the child segment group's segments are merged into the `s` and the child's  * children become the children of `s`. Think of this like a 'squash', merging the child segment  * group into the parent.  */ function mergeTrivialChildren(s: UrlSegmentGroup): UrlSegmentGroup {   if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {     const c = s.children[PRIMARY_OUTLET];     return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);   }    return s; }  export function isUrlTree(v: any): v is UrlTree {   return v instanceof UrlTree; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors'; import {ActivatedRoute, ActivatedRouteSnapshot} from './router_state'; import {Params, PRIMARY_OUTLET} from './shared'; import {createRoot, squashSegmentGroup, UrlSegment, UrlSegmentGroup, UrlTree} from './url_tree'; import {forEach, last, shallowEqual} from './utils/collection';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * Creates a `UrlTree` relative to an `ActivatedRouteSnapshot`.  *  * @publicApi  *  *  * @param relativeTo The `ActivatedRouteSnapshot` to apply the commands to  * @param commands An array of URL fragments with which to construct the new URL tree.  * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path  * segments, followed by the parameters for each segment.  * The fragments are applied to the one provided in the `relativeTo` parameter.  * @param queryParams The query parameters for the `UrlTree`. `null` if the `UrlTree` does not have  *     any query parameters.  * @param fragment The fragment for the `UrlTree`. `null` if the `UrlTree` does not have a fragment.  *  * @usageNotes  *  * ```  * // create /team/33/user/11  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, 'user', 11]);  *  * // create /team/33;expand=true/user/11  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {expand: true}, 'user', 11]);  *  * // you can collapse static segments like this (this works only with the first passed-in value):  * createUrlTreeFromSnapshot(snapshot, ['/team/33/user', userId]);  *  * // If the first segment can contain slashes, and you do not want the router to split it,  * // you can do the following:  * createUrlTreeFromSnapshot(snapshot, [{segmentPath: '/one/two'}]);  *  * // create /team/33/(user/11//right:chat)  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right:  * 'chat'}}], null, null);  *  * // remove the right secondary node  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right: null}}]);  *  * // For the examples below, assume the current URL is for the `/team/33/user/11` and the  * `ActivatedRouteSnapshot` points to `user/11`:  *  * // navigate to /team/33/user/11/details  * createUrlTreeFromSnapshot(snapshot, ['details']);  *  * // navigate to /team/33/user/22  * createUrlTreeFromSnapshot(snapshot, ['../22']);  *  * // navigate to /team/44/user/22  * createUrlTreeFromSnapshot(snapshot, ['../../team/44/user/22']);  * ```  */ export function createUrlTreeFromSnapshot(     relativeTo: ActivatedRouteSnapshot, commands: any[], queryParams: Params|null = null,     fragment: string|null = null): UrlTree {   const relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeTo);   return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment); }  export function createSegmentGroupFromRoute(route: ActivatedRouteSnapshot): UrlSegmentGroup {   let targetGroup: UrlSegmentGroup|undefined;    function createSegmentGroupFromRouteRecursive(currentRoute: ActivatedRouteSnapshot):       UrlSegmentGroup {     const childOutlets: {[outlet: string]: UrlSegmentGroup} = {};     for (const childSnapshot of currentRoute.children) {       const root = createSegmentGroupFromRouteRecursive(childSnapshot);       childOutlets[childSnapshot.outlet] = root;     }     const segmentGroup = new UrlSegmentGroup(currentRoute.url, childOutlets);     if (currentRoute === route) {       targetGroup = segmentGroup;     }     return segmentGroup;   }   const rootCandidate = createSegmentGroupFromRouteRecursive(route.root);   const rootSegmentGroup = createRoot(rootCandidate);    return targetGroup ?? rootSegmentGroup; }  export function createUrlTreeFromSegmentGroup(     relativeTo: UrlSegmentGroup, commands: any[], queryParams: Params|null,     fragment: string|null): UrlTree {   let root = relativeTo;   while (root.parent) {     root = root.parent;   }   // There are no commands so the `UrlTree` goes to the same path as the one created from the   // `UrlSegmentGroup`. All we need to do is update the `queryParams` and `fragment` without   // applying any other logic.   if (commands.length === 0) {     return tree(root, root, root, queryParams, fragment);   }    const nav = computeNavigation(commands);    if (nav.toRoot()) {     return tree(root, root, new UrlSegmentGroup([], {}), queryParams, fragment);   }    const position = findStartingPositionForTargetGroup(nav, root, relativeTo);   const newSegmentGroup = position.processChildren ?       updateSegmentGroupChildren(position.segmentGroup, position.index, nav.commands) :       updateSegmentGroup(position.segmentGroup, position.index, nav.commands);   return tree(root, position.segmentGroup, newSegmentGroup, queryParams, fragment); }  export function createUrlTree(     route: ActivatedRoute, urlTree: UrlTree, commands: any[], queryParams: Params|null,     fragment: string|null): UrlTree {   if (commands.length === 0) {     return tree(urlTree.root, urlTree.root, urlTree.root, queryParams, fragment);   }    const nav = computeNavigation(commands);    if (nav.toRoot()) {     return tree(urlTree.root, urlTree.root, new UrlSegmentGroup([], {}), queryParams, fragment);   }    function createTreeUsingPathIndex(lastPathIndex: number) {     const startingPosition =         findStartingPosition(nav, urlTree, route.snapshot?._urlSegment, lastPathIndex);      const segmentGroup = startingPosition.processChildren ?         updateSegmentGroupChildren(             startingPosition.segmentGroup, startingPosition.index, nav.commands) :         updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);     return tree(urlTree.root, startingPosition.segmentGroup, segmentGroup, queryParams, fragment);   }   // Note: The types should disallow `snapshot` from being `undefined` but due to test mocks, this   // may be the case. Since we try to access it at an earlier point before the refactor to add the   // warning for `relativeLinkResolution: 'legacy'`, this may cause failures in tests where it   // didn't before.   const result = createTreeUsingPathIndex(route.snapshot?._lastPathIndex);    return result; }  function isMatrixParams(command: any): boolean {   return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath; }  /**  * Determines if a given command has an `outlets` map. When we encounter a command  * with an outlets k/v map, we need to apply each outlet individually to the existing segment.  */ function isCommandWithOutlets(command: any): command is {outlets: {[key: string]: any}} {   return typeof command === 'object' && command != null && command.outlets; }  function tree(     oldRoot: UrlSegmentGroup, oldSegmentGroup: UrlSegmentGroup, newSegmentGroup: UrlSegmentGroup,     queryParams: Params|null, fragment: string|null): UrlTree {   let qp: any = {};   if (queryParams) {     forEach(queryParams, (value: any, name: any) => {       qp[name] = Array.isArray(value) ? value.map((v: any) => `${v}`) : `${value}`;     });   }    let rootCandidate: UrlSegmentGroup;   if (oldRoot === oldSegmentGroup) {     rootCandidate = newSegmentGroup;   } else {     rootCandidate = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);   }    const newRoot = createRoot(squashSegmentGroup(rootCandidate));   return new UrlTree(newRoot, qp, fragment); }  /**  * Replaces the `oldSegment` which is located in some child of the `current` with the `newSegment`.  * This also has the effect of creating new `UrlSegmentGroup` copies to update references. This  * shouldn't be necessary but the fallback logic for an invalid ActivatedRoute in the creation uses  * the Router's current url tree. If we don't create new segment groups, we end up modifying that  * value.  */ function replaceSegment(     current: UrlSegmentGroup, oldSegment: UrlSegmentGroup,     newSegment: UrlSegmentGroup): UrlSegmentGroup {   const children: {[key: string]: UrlSegmentGroup} = {};   forEach(current.children, (c: UrlSegmentGroup, outletName: string) => {     if (c === oldSegment) {       children[outletName] = newSegment;     } else {       children[outletName] = replaceSegment(c, oldSegment, newSegment);     }   });   return new UrlSegmentGroup(current.segments, children); }  class Navigation {   constructor(       public isAbsolute: boolean, public numberOfDoubleDots: number, public commands: any[]) {     if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {       throw new RuntimeError(           RuntimeErrorCode.ROOT_SEGMENT_MATRIX_PARAMS,           NG_DEV_MODE && 'Root segment cannot have matrix parameters');     }      const cmdWithOutlet = commands.find(isCommandWithOutlets);     if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {       throw new RuntimeError(           RuntimeErrorCode.MISPLACED_OUTLETS_COMMAND,           NG_DEV_MODE && '{outlets:{}} has to be the last command');     }   }    public toRoot(): boolean {     return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';   } }  /** Transforms commands to a normalized `Navigation` */ function computeNavigation(commands: any[]): Navigation {   if ((typeof commands[0] === 'string') && commands.length === 1 && commands[0] === '/') {     return new Navigation(true, 0, commands);   }    let numberOfDoubleDots = 0;   let isAbsolute = false;    const res: any[] = commands.reduce((res, cmd, cmdIdx) => {     if (typeof cmd === 'object' && cmd != null) {       if (cmd.outlets) {         const outlets: {[k: string]: any} = {};         forEach(cmd.outlets, (commands: any, name: string) => {           outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;         });         return [...res, {outlets}];       }        if (cmd.segmentPath) {         return [...res, cmd.segmentPath];       }     }      if (!(typeof cmd === 'string')) {       return [...res, cmd];     }      if (cmdIdx === 0) {       cmd.split('/').forEach((urlPart, partIndex) => {         if (partIndex == 0 && urlPart === '.') {           // skip './a'         } else if (partIndex == 0 && urlPart === '') {  //  '/a'           isAbsolute = true;         } else if (urlPart === '..') {  //  '../a'           numberOfDoubleDots++;         } else if (urlPart != '') {           res.push(urlPart);         }       });        return res;     }      return [...res, cmd];   }, []);    return new Navigation(isAbsolute, numberOfDoubleDots, res); }  class Position {   constructor(       public segmentGroup: UrlSegmentGroup, public processChildren: boolean, public index: number) {   } }  function findStartingPositionForTargetGroup(     nav: Navigation, root: UrlSegmentGroup, target: UrlSegmentGroup): Position {   if (nav.isAbsolute) {     return new Position(root, true, 0);   }    if (!target) {     // `NaN` is used only to maintain backwards compatibility with incorrectly mocked     // `ActivatedRouteSnapshot` in tests. In prior versions of this code, the position here was     // determined based on an internal property that was rarely mocked, resulting in `NaN`. In     // reality, this code path should _never_ be touched since `target` is not allowed to be falsey.     return new Position(root, false, NaN);   }   if (target.parent === null) {     return new Position(target, true, 0);   }    const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;   const index = target.segments.length - 1 + modifier;   return createPositionApplyingDoubleDots(target, index, nav.numberOfDoubleDots); }  function findStartingPosition(     nav: Navigation, tree: UrlTree, segmentGroup: UrlSegmentGroup,     lastPathIndex: number): Position {   if (nav.isAbsolute) {     return new Position(tree.root, true, 0);   }    if (lastPathIndex === -1) {     // Pathless ActivatedRoute has _lastPathIndex === -1 but should not process children     // see issue #26224, #13011, #35687     // However, if the ActivatedRoute is the root we should process children like above.     const processChildren = segmentGroup === tree.root;     return new Position(segmentGroup, processChildren, 0);   }    const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;   const index = lastPathIndex + modifier;   return createPositionApplyingDoubleDots(segmentGroup, index, nav.numberOfDoubleDots); }  function createPositionApplyingDoubleDots(     group: UrlSegmentGroup, index: number, numberOfDoubleDots: number): Position {   let g = group;   let ci = index;   let dd = numberOfDoubleDots;   while (dd > ci) {     dd -= ci;     g = g.parent!;     if (!g) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_DOUBLE_DOTS, NG_DEV_MODE && 'Invalid number of \\'../\\'');     }     ci = g.segments.length;   }   return new Position(g, false, ci - dd); }  function getOutlets(commands: unknown[]): {[k: string]: unknown[]|string} {   if (isCommandWithOutlets(commands[0])) {     return commands[0].outlets;   }    return {[PRIMARY_OUTLET]: commands}; }  function updateSegmentGroup(     segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]): UrlSegmentGroup {   if (!segmentGroup) {     segmentGroup = new UrlSegmentGroup([], {});   }   if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {     return updateSegmentGroupChildren(segmentGroup, startIndex, commands);   }    const m = prefixedWith(segmentGroup, startIndex, commands);   const slicedCommands = commands.slice(m.commandIndex);   if (m.match && m.pathIndex < segmentGroup.segments.length) {     const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});     g.children[PRIMARY_OUTLET] =         new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);     return updateSegmentGroupChildren(g, 0, slicedCommands);   } else if (m.match && slicedCommands.length === 0) {     return new UrlSegmentGroup(segmentGroup.segments, {});   } else if (m.match && !segmentGroup.hasChildren()) {     return createNewSegmentGroup(segmentGroup, startIndex, commands);   } else if (m.match) {     return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);   } else {     return createNewSegmentGroup(segmentGroup, startIndex, commands);   } }  function updateSegmentGroupChildren(     segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]): UrlSegmentGroup {   if (commands.length === 0) {     return new UrlSegmentGroup(segmentGroup.segments, {});   } else {     const outlets = getOutlets(commands);     const children: {[key: string]: UrlSegmentGroup} = {};     // If the set of commands does not apply anything to the primary outlet and the child segment is     // an empty path primary segment on its own, we want to skip applying the commands at this     // level. Imagine the following config:     //     // {path: '', children: [{path: '**', outlet: 'popup'}]}.     //     // Navigation to /(popup:a) will activate the child outlet correctly Given a follow-up     // navigation with commands     // ['/', {outlets: {'popup': 'b'}}], we _would not_ want to apply the outlet commands to the     // root segment because that would result in     // //(popup:a)(popup:b) since the outlet command got applied one level above where it appears in     // the `ActivatedRoute` rather than updating the existing one.     //     // Because empty paths do not appear in the URL segments and the fact that the segments used in     // the output `UrlTree` are squashed to eliminate these empty paths where possible     // https://github.com/angular/angular/blob/13f10de40e25c6900ca55bd83b36bd533dacfa9e/packages/router/src/url_tree.ts#L755     // it can be hard to determine what is the right thing to do when applying commands to a     // `UrlSegmentGroup` that is created from an \"unsquashed\"/expanded `ActivatedRoute` tree.     // This code effectively \"squashes\" empty path primary routes when they have no siblings on     // the same level of the tree.     if (!outlets[PRIMARY_OUTLET] && segmentGroup.children[PRIMARY_OUTLET] &&         segmentGroup.numberOfChildren === 1 &&         segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {       return updateSegmentGroupChildren(           segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);     }      forEach(outlets, (commands, outlet) => {       if (typeof commands === 'string') {         commands = [commands];       }       if (commands !== null) {         children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);       }     });      forEach(segmentGroup.children, (child: UrlSegmentGroup, childOutlet: string) => {       if (outlets[childOutlet] === undefined) {         children[childOutlet] = child;       }     });     return new UrlSegmentGroup(segmentGroup.segments, children);   } }  function prefixedWith(segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]) {   let currentCommandIndex = 0;   let currentPathIndex = startIndex;    const noMatch = {match: false, pathIndex: 0, commandIndex: 0};   while (currentPathIndex < segmentGroup.segments.length) {     if (currentCommandIndex >= commands.length) return noMatch;     const path = segmentGroup.segments[currentPathIndex];     const command = commands[currentCommandIndex];     // Do not try to consume command as part of the prefixing if it has outlets because it can     // contain outlets other than the one being processed. Consuming the outlets command would     // result in other outlets being ignored.     if (isCommandWithOutlets(command)) {       break;     }     const curr = `${command}`;     const next =         currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;      if (currentPathIndex > 0 && curr === undefined) break;      if (curr && next && (typeof next === 'object') && next.outlets === undefined) {       if (!compare(curr, next, path)) return noMatch;       currentCommandIndex += 2;     } else {       if (!compare(curr, {}, path)) return noMatch;       currentCommandIndex++;     }     currentPathIndex++;   }    return {match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex}; }  function createNewSegmentGroup(     segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]): UrlSegmentGroup {   const paths = segmentGroup.segments.slice(0, startIndex);    let i = 0;   while (i < commands.length) {     const command = commands[i];     if (isCommandWithOutlets(command)) {       const children = createNewSegmentChildren(command.outlets);       return new UrlSegmentGroup(paths, children);     }      // if we start with an object literal, we need to reuse the path part from the segment     if (i === 0 && isMatrixParams(commands[0])) {       const p = segmentGroup.segments[startIndex];       paths.push(new UrlSegment(p.path, stringify(commands[0])));       i++;       continue;     }      const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;     const next = (i < commands.length - 1) ? commands[i + 1] : null;     if (curr && next && isMatrixParams(next)) {       paths.push(new UrlSegment(curr, stringify(next)));       i += 2;     } else {       paths.push(new UrlSegment(curr, {}));       i++;     }   }   return new UrlSegmentGroup(paths, {}); }  function createNewSegmentChildren(outlets: {[name: string]: unknown[]|string}):     {[outlet: string]: UrlSegmentGroup} {   const children: {[outlet: string]: UrlSegmentGroup} = {};   forEach(outlets, (commands, outlet) => {     if (typeof commands === 'string') {       commands = [commands];     }     if (commands !== null) {       children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);     }   });   return children; }  function stringify(params: {[key: string]: any}): {[key: string]: string} {   const res: {[key: string]: string} = {};   forEach(params, (v: any, k: string) => res[k] = `${v}`);   return res; }  function compare(path: string, params: {[key: string]: any}, segment: UrlSegment): boolean {   return path == segment.path && shallowEqual(params, segment.parameters); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Route} from './models'; import {ActivatedRouteSnapshot, RouterStateSnapshot} from './router_state';  /**  * Identifies the call or event that triggered a navigation.  *  * * 'imperative': Triggered by `router.navigateByUrl()` or `router.navigate()`.  * * 'popstate' : Triggered by a `popstate` event.  * * 'hashchange'-: Triggered by a `hashchange` event.  *  * @publicApi  */ export type NavigationTrigger = 'imperative'|'popstate'|'hashchange'; export const IMPERATIVE_NAVIGATION = 'imperative';  /**  * Identifies the type of a router event.  *  * @publicApi  */ export const enum EventType {   NavigationStart,   NavigationEnd,   NavigationCancel,   NavigationError,   RoutesRecognized,   ResolveStart,   ResolveEnd,   GuardsCheckStart,   GuardsCheckEnd,   RouteConfigLoadStart,   RouteConfigLoadEnd,   ChildActivationStart,   ChildActivationEnd,   ActivationStart,   ActivationEnd,   Scroll,   NavigationSkipped, }  /**  * Base for events the router goes through, as opposed to events tied to a specific  * route. Fired one time for any given navigation.  *  * The following code shows how a class subscribes to router events.  *  * ```ts  * import {Event, RouterEvent, Router} from '@angular/router';  *  * class MyService {  *   constructor(public router: Router) {  *     router.events.pipe(  *        filter((e: Event): e is RouterEvent => e instanceof RouterEvent)  *     ).subscribe((e: RouterEvent) => {  *       // Do something  *     });  *   }  * }  * ```  *  * @see `Event`  * @see [Router events summary](guide/router-reference#router-events)  * @publicApi  */ export class RouterEvent {   constructor(       /** A unique ID that the router assigns to every router navigation. */       public id: number,       /** The URL that is the destination for this navigation. */       public url: string) {} }  /**  * An event triggered when a navigation starts.  *  * @publicApi  */ export class NavigationStart extends RouterEvent {   readonly type = EventType.NavigationStart;    /**    * Identifies the call or event that triggered the navigation.    * An `imperative` trigger is a call to `router.navigateByUrl()` or `router.navigate()`.    *    * @see `NavigationEnd`    * @see `NavigationCancel`    * @see `NavigationError`    */   navigationTrigger?: NavigationTrigger;    /**    * The navigation state that was previously supplied to the `pushState` call,    * when the navigation is triggered by a `popstate` event. Otherwise null.    *    * The state object is defined by `NavigationExtras`, and contains any    * developer-defined state value, as well as a unique ID that    * the router assigns to every router transition/navigation.    *    * From the perspective of the router, the router never \"goes back\".    * When the user clicks on the back button in the browser,    * a new navigation ID is created.    *    * Use the ID in this previous-state object to differentiate between a newly created    * state and one returned to by a `popstate` event, so that you can restore some    * remembered state, such as scroll position.    *    */   restoredState?: {[k: string]: any, navigationId: number}|null;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       navigationTrigger: NavigationTrigger = 'imperative',       /** @docsNotRequired */       restoredState: {[k: string]: any, navigationId: number}|null = null) {     super(id, url);     this.navigationTrigger = navigationTrigger;     this.restoredState = restoredState;   }    /** @docsNotRequired */   override toString(): string {     return `NavigationStart(id: ${this.id}, url: '${this.url}')`;   } }  /**  * An event triggered when a navigation ends successfully.  *  * @see `NavigationStart`  * @see `NavigationCancel`  * @see `NavigationError`  *  * @publicApi  */ export class NavigationEnd extends RouterEvent {   readonly type = EventType.NavigationEnd;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}')`;   } }  /**  * A code for the `NavigationCancel` event of the `Router` to indicate the  * reason a navigation failed.  *  * @publicApi  */ export const enum NavigationCancellationCode {   /**    * A navigation failed because a guard returned a `UrlTree` to redirect.    */   Redirect,   /**    * A navigation failed because a more recent navigation started.    */   SupersededByNewNavigation,   /**    * A navigation failed because one of the resolvers completed without emiting a value.    */   NoDataFromResolver,   /**    * A navigation failed because a guard returned `false`.    */   GuardRejected, }  /**  * A code for the `NavigationSkipped` event of the `Router` to indicate the  * reason a navigation was skipped.  *  * @publicApi  */ export const enum NavigationSkippedCode {   /**    * A navigation was skipped because the navigation URL was the same as the current Router URL.    */   IgnoredSameUrlNavigation,   /**    * A navigation was skipped because the configured `UrlHandlingStrategy` return `false` for both    * the current Router URL and the target of the navigation.    *    * @see UrlHandlingStrategy    */   IgnoredByUrlHandlingStrategy, }  /**  * An event triggered when a navigation is canceled, directly or indirectly.  * This can happen for several reasons including when a route guard  * returns `false` or initiates a redirect by returning a `UrlTree`.  *  * @see `NavigationStart`  * @see `NavigationEnd`  * @see `NavigationError`  *  * @publicApi  */ export class NavigationCancel extends RouterEvent {   readonly type = EventType.NavigationCancel;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /**        * A description of why the navigation was cancelled. For debug purposes only. Use `code`        * instead for a stable cancellation reason that can be used in production.        */       public reason: string,       /**        * A code to indicate why the navigation was canceled. This cancellation code is stable for        * the reason and can be relied on whereas the `reason` string could change and should not be        * used in production.        */       readonly code?: NavigationCancellationCode) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;   } }  /**  * An event triggered when a navigation is skipped.  * This can happen for a couple reasons including onSameUrlHandling  * is set to `ignore` and the navigation URL is not different than the  * current state.  *  * @publicApi  */ export class NavigationSkipped extends RouterEvent {   readonly type = EventType.NavigationSkipped;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /**        * A description of why the navigation was skipped. For debug purposes only. Use `code`        * instead for a stable skipped reason that can be used in production.        */       public reason: string,       /**        * A code to indicate why the navigation was skipped. This code is stable for        * the reason and can be relied on whereas the `reason` string could change and should not be        * used in production.        */       readonly code?: NavigationSkippedCode) {     super(id, url);   } }  /**  * An event triggered when a navigation fails due to an unexpected error.  *  * @see `NavigationStart`  * @see `NavigationEnd`  * @see `NavigationCancel`  *  * @publicApi  */ export class NavigationError extends RouterEvent {   readonly type = EventType.NavigationError;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public error: any,       /**        * The target of the navigation when the error occurred.        *        * Note that this can be `undefined` because an error could have occurred before the        * `RouterStateSnapshot` was created for the navigation.        */       readonly target?: RouterStateSnapshot) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;   } }  /**  * An event triggered when routes are recognized.  *  * @publicApi  */ export class RoutesRecognized extends RouterEvent {   readonly type = EventType.RoutesRecognized;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered at the start of the Guard phase of routing.  *  * @see `GuardsCheckEnd`  *  * @publicApi  */ export class GuardsCheckStart extends RouterEvent {   readonly type = EventType.GuardsCheckStart;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    override toString(): string {     return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered at the end of the Guard phase of routing.  *  * @see `GuardsCheckStart`  *  * @publicApi  */ export class GuardsCheckEnd extends RouterEvent {   readonly type = EventType.GuardsCheckEnd;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot,       /** @docsNotRequired */       public shouldActivate: boolean) {     super(id, url);   }    override toString(): string {     return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;   } }  /**  * An event triggered at the start of the Resolve phase of routing.  *  * Runs in the \"resolve\" phase whether or not there is anything to resolve.  * In future, may change to only run when there are things to be resolved.  *  * @see `ResolveEnd`  *  * @publicApi  */ export class ResolveStart extends RouterEvent {   readonly type = EventType.ResolveStart;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    override toString(): string {     return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered at the end of the Resolve phase of routing.  * @see `ResolveStart`.  *  * @publicApi  */ export class ResolveEnd extends RouterEvent {   readonly type = EventType.ResolveEnd;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    override toString(): string {     return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered before lazy loading a route configuration.  *  * @see `RouteConfigLoadEnd`  *  * @publicApi  */ export class RouteConfigLoadStart {   readonly type = EventType.RouteConfigLoadStart;    constructor(       /** @docsNotRequired */       public route: Route) {}   toString(): string {     return `RouteConfigLoadStart(path: ${this.route.path})`;   } }  /**  * An event triggered when a route has been lazy loaded.  *  * @see `RouteConfigLoadStart`  *  * @publicApi  */ export class RouteConfigLoadEnd {   readonly type = EventType.RouteConfigLoadEnd;    constructor(       /** @docsNotRequired */       public route: Route) {}   toString(): string {     return `RouteConfigLoadEnd(path: ${this.route.path})`;   } }  /**  * An event triggered at the start of the child-activation  * part of the Resolve phase of routing.  * @see  `ChildActivationEnd`  * @see `ResolveStart`  *  * @publicApi  */ export class ChildActivationStart {   readonly type = EventType.ChildActivationStart;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ChildActivationStart(path: '${path}')`;   } }  /**  * An event triggered at the end of the child-activation part  * of the Resolve phase of routing.  * @see `ChildActivationStart`  * @see `ResolveStart`  * @publicApi  */ export class ChildActivationEnd {   readonly type = EventType.ChildActivationEnd;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ChildActivationEnd(path: '${path}')`;   } }  /**  * An event triggered at the start of the activation part  * of the Resolve phase of routing.  * @see `ActivationEnd`  * @see `ResolveStart`  *  * @publicApi  */ export class ActivationStart {   readonly type = EventType.ActivationStart;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ActivationStart(path: '${path}')`;   } }  /**  * An event triggered at the end of the activation part  * of the Resolve phase of routing.  * @see `ActivationStart`  * @see `ResolveStart`  *  * @publicApi  */ export class ActivationEnd {   readonly type = EventType.ActivationEnd;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ActivationEnd(path: '${path}')`;   } }  /**  * An event triggered by scrolling.  *  * @publicApi  */ export class Scroll {   readonly type = EventType.Scroll;    constructor(       /** @docsNotRequired */       readonly routerEvent: NavigationEnd,        /** @docsNotRequired */       readonly position: [number, number]|null,        /** @docsNotRequired */       readonly anchor: string|null) {}    toString(): string {     const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;     return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;   } }  /**  * Router events that allow you to track the lifecycle of the router.  *  * The events occur in the following sequence:  *  * * [NavigationStart](api/router/NavigationStart): Navigation starts.  * * [RouteConfigLoadStart](api/router/RouteConfigLoadStart): Before  * the router [lazy loads](/guide/router#lazy-loading) a route configuration.  * * [RouteConfigLoadEnd](api/router/RouteConfigLoadEnd): After a route has been lazy loaded.  * * [RoutesRecognized](api/router/RoutesRecognized): When the router parses the URL  * and the routes are recognized.  * * [GuardsCheckStart](api/router/GuardsCheckStart): When the router begins the *guards*  * phase of routing.  * * [ChildActivationStart](api/router/ChildActivationStart): When the router  * begins activating a route's children.  * * [ActivationStart](api/router/ActivationStart): When the router begins activating a route.  * * [GuardsCheckEnd](api/router/GuardsCheckEnd): When the router finishes the *guards*  * phase of routing successfully.  * * [ResolveStart](api/router/ResolveStart): When the router begins the *resolve*  * phase of routing.  * * [ResolveEnd](api/router/ResolveEnd): When the router finishes the *resolve*  * phase of routing successfully.  * * [ChildActivationEnd](api/router/ChildActivationEnd): When the router finishes  * activating a route's children.  * * [ActivationEnd](api/router/ActivationEnd): When the router finishes activating a route.  * * [NavigationEnd](api/router/NavigationEnd): When navigation ends successfully.  * * [NavigationCancel](api/router/NavigationCancel): When navigation is canceled.  * * [NavigationError](api/router/NavigationError): When navigation fails  * due to an unexpected error.  * * [Scroll](api/router/Scroll): When the user scrolls.  *  * @publicApi  */ export type Event = RouterEvent|NavigationStart|NavigationEnd|NavigationCancel|NavigationError|     RoutesRecognized|GuardsCheckStart|GuardsCheckEnd|RouteConfigLoadStart|RouteConfigLoadEnd|     ChildActivationStart|ChildActivationEnd|ActivationStart|ActivationEnd|Scroll|ResolveStart|     ResolveEnd|NavigationSkipped;   export function stringifyEvent(routerEvent: Event): string {   if (!('type' in routerEvent)) {     return `Unknown Router Event: ${routerEvent.constructor.name}`;   }   switch (routerEvent.type) {     case EventType.ActivationEnd:       return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.ActivationStart:       return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.ChildActivationEnd:       return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.ChildActivationStart:       return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.GuardsCheckEnd:       return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${           routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${           routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;     case EventType.GuardsCheckStart:       return `GuardsCheckStart(id: ${routerEvent.id}, url: '${           routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${           routerEvent.state})`;     case EventType.NavigationCancel:       return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;     case EventType.NavigationSkipped:       return `NavigationSkipped(id: ${routerEvent.id}, url: '${routerEvent.url}')`;     case EventType.NavigationEnd:       return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${           routerEvent.urlAfterRedirects}')`;     case EventType.NavigationError:       return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${           routerEvent.error})`;     case EventType.NavigationStart:       return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;     case EventType.ResolveEnd:       return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${           routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;     case EventType.ResolveStart:       return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${           routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;     case EventType.RouteConfigLoadEnd:       return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;     case EventType.RouteConfigLoadStart:       return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;     case EventType.RoutesRecognized:       return `RoutesRecognized(id: ${routerEvent.id}, url: '${           routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${           routerEvent.state})`;     case EventType.Scroll:       const pos =           routerEvent.position ? `${routerEvent.position[0]}, ${routerEvent.position[1]}` : null;       return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injectable} from '@angular/core';  import {createSegmentGroupFromRoute, createUrlTree, createUrlTreeFromSegmentGroup} from './create_url_tree'; import {ActivatedRoute, RouterState} from './router_state'; import {Params} from './shared'; import {UrlSegmentGroup, UrlTree} from './url_tree';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  @Injectable() export class LegacyCreateUrlTree implements CreateUrlTreeStrategy {   createUrlTree(       relativeTo: ActivatedRoute|null|undefined, currentState: RouterState, currentUrlTree: UrlTree,       commands: any[], queryParams: Params|null, fragment: string|null): UrlTree {     const a = relativeTo || currentState.root;     const tree = createUrlTree(a, currentUrlTree, commands, queryParams, fragment);     if (NG_DEV_MODE) {       const treeFromSnapshotStrategy = new CreateUrlTreeUsingSnapshot().createUrlTree(           relativeTo, currentState, currentUrlTree, commands, queryParams, fragment);       if (treeFromSnapshotStrategy.toString() !== tree.toString()) {         let warningString = `The navigation to ${tree.toString()} will instead go to ${             treeFromSnapshotStrategy.toString()} in an upcoming version of Angular.`;         if (!!relativeTo) {           warningString += ' `relativeTo` might need to be removed from the `UrlCreationOptions`.';         }         tree._warnIfUsedForNavigation = warningString;       }     }     return tree;   } }  @Injectable() export class CreateUrlTreeUsingSnapshot implements CreateUrlTreeStrategy {   createUrlTree(       relativeTo: ActivatedRoute|null|undefined, currentState: RouterState, currentUrlTree: UrlTree,       commands: any[], queryParams: Params|null, fragment: string|null): UrlTree {     let relativeToUrlSegmentGroup: UrlSegmentGroup|undefined;     try {       const relativeToSnapshot = relativeTo ? relativeTo.snapshot : currentState.snapshot.root;       relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeToSnapshot);     } catch (e: unknown) {       // This is strictly for backwards compatibility with tests that create       // invalid `ActivatedRoute` mocks.       // Note: the difference between having this fallback for invalid `ActivatedRoute` setups and       // just throwing is ~500 test failures. Fixing all of those tests by hand is not feasible at       // the moment.       if (typeof commands[0] !== 'string' || !commands[0].startsWith('/')) {         // Navigations that were absolute in the old way of creating UrlTrees         // would still work because they wouldn't attempt to match the         // segments in the `ActivatedRoute` to the `currentUrlTree` but         // instead just replace the root segment with the navigation result.         // Non-absolute navigations would fail to apply the commands because         // the logic could not find the segment to replace (so they'd act like there were no         // commands).         commands = [];       }       relativeToUrlSegmentGroup = currentUrlTree.root;     }     return createUrlTreeFromSegmentGroup(         relativeToUrlSegmentGroup, commands, queryParams, fragment);   } }  @Injectable({providedIn: 'root', useClass: LegacyCreateUrlTree}) export abstract class CreateUrlTreeStrategy {   abstract createUrlTree(       relativeTo: ActivatedRoute|null|undefined, currentState: RouterState, currentUrlTree: UrlTree,       commands: any[], queryParams: Params|null, fragment: string|null): UrlTree; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export class Tree<T> {   /** @internal */   _root: TreeNode<T>;    constructor(root: TreeNode<T>) {     this._root = root;   }    get root(): T {     return this._root.value;   }    /**    * @internal    */   parent(t: T): T|null {     const p = this.pathFromRoot(t);     return p.length > 1 ? p[p.length - 2] : null;   }    /**    * @internal    */   children(t: T): T[] {     const n = findNode(t, this._root);     return n ? n.children.map(t => t.value) : [];   }    /**    * @internal    */   firstChild(t: T): T|null {     const n = findNode(t, this._root);     return n && n.children.length > 0 ? n.children[0].value : null;   }    /**    * @internal    */   siblings(t: T): T[] {     const p = findPath(t, this._root);     if (p.length < 2) return [];      const c = p[p.length - 2].children.map(c => c.value);     return c.filter(cc => cc !== t);   }    /**    * @internal    */   pathFromRoot(t: T): T[] {     return findPath(t, this._root).map(s => s.value);   } }   // DFS for the node matching the value function findNode<T>(value: T, node: TreeNode<T>): TreeNode<T>|null {   if (value === node.value) return node;    for (const child of node.children) {     const node = findNode(value, child);     if (node) return node;   }    return null; }  // Return the path to the node with the given value using DFS function findPath<T>(value: T, node: TreeNode<T>): TreeNode<T>[] {   if (value === node.value) return [node];    for (const child of node.children) {     const path = findPath(value, child);     if (path.length) {       path.unshift(node);       return path;     }   }    return []; }  export class TreeNode<T> {   constructor(public value: T, public children: TreeNode<T>[]) {}    toString(): string {     return `TreeNode(${this.value})`;   } }  // Return the list of T indexed by outlet name export function nodeChildrenAsMap<T extends {outlet: string}>(node: TreeNode<T>|null) {   const map: {[outlet: string]: TreeNode<T>} = {};    if (node) {     node.children.forEach(child => map[child.value.outlet] = child);   }    return map; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Type} from '@angular/core'; import {BehaviorSubject, Observable, of} from 'rxjs'; import {map} from 'rxjs/operators';  import {Data, ResolveData, Route} from './models'; import {convertToParamMap, ParamMap, Params, PRIMARY_OUTLET, RouteTitleKey} from './shared'; import {equalSegments, UrlSegment, UrlSegmentGroup, UrlTree} from './url_tree'; import {shallowEqual, shallowEqualArrays} from './utils/collection'; import {Tree, TreeNode} from './utils/tree';  /**  * Represents the state of the router as a tree of activated routes.  *  * @usageNotes  *  * Every node in the route tree is an `ActivatedRoute` instance  * that knows about the \"consumed\" URL segments, the extracted parameters,  * and the resolved data.  * Use the `ActivatedRoute` properties to traverse the tree from any node.  *  * The following fragment shows how a component gets the root node  * of the current state to establish its own route tree:  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const state: RouterState = router.routerState;  *     const root: ActivatedRoute = state.root;  *     const child = root.firstChild;  *     const id: Observable<string> = child.params.map(p => p.id);  *     //...  *   }  * }  * ```  *  * @see `ActivatedRoute`  * @see [Getting route information](guide/router#getting-route-information)  *  * @publicApi  */ export class RouterState extends Tree<ActivatedRoute> {   /** @internal */   constructor(       root: TreeNode<ActivatedRoute>,       /** The current snapshot of the router state */       public snapshot: RouterStateSnapshot) {     super(root);     setRouterState(<RouterState>this, root);   }    override toString(): string {     return this.snapshot.toString();   } }  export function createEmptyState(urlTree: UrlTree, rootComponent: Type<any>|null): RouterState {   const snapshot = createEmptyStateSnapshot(urlTree, rootComponent);   const emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);   const emptyParams = new BehaviorSubject({});   const emptyData = new BehaviorSubject({});   const emptyQueryParams = new BehaviorSubject({});   const fragment = new BehaviorSubject('');   const activated = new ActivatedRoute(       emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent,       snapshot.root);   activated.snapshot = snapshot.root;   return new RouterState(new TreeNode<ActivatedRoute>(activated, []), snapshot); }  export function createEmptyStateSnapshot(     urlTree: UrlTree, rootComponent: Type<any>|null): RouterStateSnapshot {   const emptyParams = {};   const emptyData = {};   const emptyQueryParams = {};   const fragment = '';   const activated = new ActivatedRouteSnapshot(       [], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null,       urlTree.root, -1, {});   return new RouterStateSnapshot('', new TreeNode<ActivatedRouteSnapshot>(activated, [])); }  /**  * Provides access to information about a route associated with a component  * that is loaded in an outlet.  * Use to traverse the `RouterState` tree and extract information from nodes.  *  * The following example shows how to construct a component using information from a  * currently activated route.  *  * Note: the observables in this class only emit when the current and previous values differ based  * on shallow equality. For example, changing deeply nested properties in resolved `data` will not  * cause the `ActivatedRoute.data` `Observable` to emit a new value.  *  * {@example router/activated-route/module.ts region=\"activated-route\"  *     header=\"activated-route.component.ts\"}  *  * @see [Getting route information](guide/router#getting-route-information)  *  * @publicApi  */ export class ActivatedRoute {   /** The current snapshot of this route */   snapshot!: ActivatedRouteSnapshot;   /** @internal */   _futureSnapshot: ActivatedRouteSnapshot;   /** @internal */   _routerState!: RouterState;   /** @internal */   _paramMap?: Observable<ParamMap>;   /** @internal */   _queryParamMap?: Observable<ParamMap>;    /** An Observable of the resolved route title */   readonly title: Observable<string|undefined> =       this.data?.pipe(map((d: Data) => d[RouteTitleKey])) ?? of(undefined);    /** @internal */   constructor(       /** An observable of the URL segments matched by this route. */       public url: Observable<UrlSegment[]>,       /** An observable of the matrix parameters scoped to this route. */       public params: Observable<Params>,       /** An observable of the query parameters shared by all the routes. */       public queryParams: Observable<Params>,       /** An observable of the URL fragment shared by all the routes. */       public fragment: Observable<string|null>,       /** An observable of the static and resolved data of this route. */       public data: Observable<Data>,       /** The outlet name of the route, a constant. */       public outlet: string,       /** The component of the route, a constant. */       public component: Type<any>|null, futureSnapshot: ActivatedRouteSnapshot) {     this._futureSnapshot = futureSnapshot;   }    /** The configuration used to match this route. */   get routeConfig(): Route|null {     return this._futureSnapshot.routeConfig;   }    /** The root of the router state. */   get root(): ActivatedRoute {     return this._routerState.root;   }    /** The parent of this route in the router state tree. */   get parent(): ActivatedRoute|null {     return this._routerState.parent(this);   }    /** The first child of this route in the router state tree. */   get firstChild(): ActivatedRoute|null {     return this._routerState.firstChild(this);   }    /** The children of this route in the router state tree. */   get children(): ActivatedRoute[] {     return this._routerState.children(this);   }    /** The path from the root of the router state tree to this route. */   get pathFromRoot(): ActivatedRoute[] {     return this._routerState.pathFromRoot(this);   }    /**    * An Observable that contains a map of the required and optional parameters    * specific to the route.    * The map supports retrieving single and multiple values from the same parameter.    */   get paramMap(): Observable<ParamMap> {     if (!this._paramMap) {       this._paramMap = this.params.pipe(map((p: Params): ParamMap => convertToParamMap(p)));     }     return this._paramMap;   }    /**    * An Observable that contains a map of the query parameters available to all routes.    * The map supports retrieving single and multiple values from the query parameter.    */   get queryParamMap(): Observable<ParamMap> {     if (!this._queryParamMap) {       this._queryParamMap =           this.queryParams.pipe(map((p: Params): ParamMap => convertToParamMap(p)));     }     return this._queryParamMap;   }    toString(): string {     return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;   } }  export type ParamsInheritanceStrategy = 'emptyOnly'|'always';  /** @internal */ export type Inherited = {   params: Params,   data: Data,   resolve: Data, };  /**  * Returns the inherited params, data, and resolve for a given route.  * By default, this only inherits values up to the nearest path-less or component-less route.  * @internal  */ export function inheritedParamsDataResolve(     route: ActivatedRouteSnapshot,     paramsInheritanceStrategy: ParamsInheritanceStrategy = 'emptyOnly'): Inherited {   const pathFromRoot = route.pathFromRoot;    let inheritingStartingFrom = 0;   if (paramsInheritanceStrategy !== 'always') {     inheritingStartingFrom = pathFromRoot.length - 1;      while (inheritingStartingFrom >= 1) {       const current = pathFromRoot[inheritingStartingFrom];       const parent = pathFromRoot[inheritingStartingFrom - 1];       // current route is an empty path => inherits its parent's params and data       if (current.routeConfig && current.routeConfig.path === '') {         inheritingStartingFrom--;          // parent is componentless => current route should inherit its params and data       } else if (!parent.component) {         inheritingStartingFrom--;        } else {         break;       }     }   }    return flattenInherited(pathFromRoot.slice(inheritingStartingFrom)); }  /** @internal */ function flattenInherited(pathFromRoot: ActivatedRouteSnapshot[]): Inherited {   return pathFromRoot.reduce((res, curr) => {     const params = {...res.params, ...curr.params};     const data = {...res.data, ...curr.data};     const resolve =         {...curr.data, ...res.resolve, ...curr.routeConfig?.data, ...curr._resolvedData};     return {params, data, resolve};   }, {params: {}, data: {}, resolve: {}}); }  /**  * @description  *  * Contains the information about a route associated with a component loaded in an  * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to  * traverse the router state tree.  *  * The following example initializes a component with route information extracted  * from the snapshot of the root node at the time of creation.  *  * ```  * @Component({templateUrl:'./my-component.html'})  * class MyComponent {  *   constructor(route: ActivatedRoute) {  *     const id: string = route.snapshot.params.id;  *     const url: string = route.snapshot.url.join('');  *     const user = route.snapshot.data.user;  *   }  * }  * ```  *  * @publicApi  */ export class ActivatedRouteSnapshot {   /** The configuration used to match this route **/   public readonly routeConfig: Route|null;   /** @internal **/   _urlSegment: UrlSegmentGroup;   /** @internal */   _lastPathIndex: number;   /** @internal */   _resolve: ResolveData;   /** @internal */   _resolvedData?: Data;   /** @internal */   _routerState!: RouterStateSnapshot;   /** @internal */   _paramMap?: ParamMap;   /** @internal */   _queryParamMap?: ParamMap;    /** The resolved route title */   get title(): string|undefined {     // Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be     // available at the time of class instantiation.     return this.data?.[RouteTitleKey];   }    /** @internal */   constructor(       /** The URL segments matched by this route */       public url: UrlSegment[],       /**        *  The matrix parameters scoped to this route.        *        *  You can compute all params (or data) in the router state or to get params outside        *  of an activated component by traversing the `RouterState` tree as in the following        *  example:        *  ```        *  collectRouteParams(router: Router) {        *    let params = {};        *    let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];        *    while (stack.length > 0) {        *      const route = stack.pop()!;        *      params = {...params, ...route.params};        *      stack.push(...route.children);        *    }        *    return params;        *  }        *  ```        */       public params: Params,       /** The query parameters shared by all the routes */       public queryParams: Params,       /** The URL fragment shared by all the routes */       public fragment: string|null,       /** The static and resolved data of this route */       public data: Data,       /** The outlet name of the route */       public outlet: string,       /** The component of the route */       public component: Type<any>|null, routeConfig: Route|null, urlSegment: UrlSegmentGroup,       lastPathIndex: number, resolve: ResolveData) {     this.routeConfig = routeConfig;     this._urlSegment = urlSegment;     this._lastPathIndex = lastPathIndex;     this._resolve = resolve;   }    /** The root of the router state */   get root(): ActivatedRouteSnapshot {     return this._routerState.root;   }    /** The parent of this route in the router state tree */   get parent(): ActivatedRouteSnapshot|null {     return this._routerState.parent(this);   }    /** The first child of this route in the router state tree */   get firstChild(): ActivatedRouteSnapshot|null {     return this._routerState.firstChild(this);   }    /** The children of this route in the router state tree */   get children(): ActivatedRouteSnapshot[] {     return this._routerState.children(this);   }    /** The path from the root of the router state tree to this route */   get pathFromRoot(): ActivatedRouteSnapshot[] {     return this._routerState.pathFromRoot(this);   }    get paramMap(): ParamMap {     if (!this._paramMap) {       this._paramMap = convertToParamMap(this.params);     }     return this._paramMap;   }    get queryParamMap(): ParamMap {     if (!this._queryParamMap) {       this._queryParamMap = convertToParamMap(this.queryParams);     }     return this._queryParamMap;   }    toString(): string {     const url = this.url.map(segment => segment.toString()).join('/');     const matched = this.routeConfig ? this.routeConfig.path : '';     return `Route(url:'${url}', path:'${matched}')`;   } }  /**  * @description  *  * Represents the state of the router at a moment in time.  *  * This is a tree of activated route snapshots. Every node in this tree knows about  * the \"consumed\" URL segments, the extracted parameters, and the resolved data.  *  * The following example shows how a component is initialized with information  * from the snapshot of the root node's state at the time of creation.  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const state: RouterState = router.routerState;  *     const snapshot: RouterStateSnapshot = state.snapshot;  *     const root: ActivatedRouteSnapshot = snapshot.root;  *     const child = root.firstChild;  *     const id: Observable<string> = child.params.map(p => p.id);  *     //...  *   }  * }  * ```  *  * @publicApi  */ export class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {   /** @internal */   constructor(       /** The url from which this snapshot was created */       public url: string, root: TreeNode<ActivatedRouteSnapshot>) {     super(root);     setRouterState(<RouterStateSnapshot>this, root);   }    override toString(): string {     return serializeNode(this._root);   } }  function setRouterState<U, T extends {_routerState: U}>(state: U, node: TreeNode<T>): void {   node.value._routerState = state;   node.children.forEach(c => setRouterState(state, c)); }  function serializeNode(node: TreeNode<ActivatedRouteSnapshot>): string {   const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';   return `${node.value}${c}`; }  /**  * The expectation is that the activate route is created with the right set of parameters.  * So we push new values into the observables only when they are not the initial values.  * And we detect that by checking if the snapshot field is set.  */ export function advanceActivatedRoute(route: ActivatedRoute): void {   if (route.snapshot) {     const currentSnapshot = route.snapshot;     const nextSnapshot = route._futureSnapshot;     route.snapshot = nextSnapshot;     if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {       (<any>route.queryParams).next(nextSnapshot.queryParams);     }     if (currentSnapshot.fragment !== nextSnapshot.fragment) {       (<any>route.fragment).next(nextSnapshot.fragment);     }     if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {       (<any>route.params).next(nextSnapshot.params);     }     if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {       (<any>route.url).next(nextSnapshot.url);     }     if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {       (<any>route.data).next(nextSnapshot.data);     }   } else {     route.snapshot = route._futureSnapshot;      // this is for resolved data     (<any>route.data).next(route._futureSnapshot.data);   } }   export function equalParamsAndUrlSegments(     a: ActivatedRouteSnapshot, b: ActivatedRouteSnapshot): boolean {   const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);   const parentsMismatch = !a.parent !== !b.parent;    return equalUrlParams && !parentsMismatch &&       (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent!)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {BehaviorSubject} from 'rxjs';  import {DetachedRouteHandleInternal, RouteReuseStrategy} from './route_reuse_strategy'; import {ActivatedRoute, ActivatedRouteSnapshot, RouterState, RouterStateSnapshot} from './router_state'; import {TreeNode} from './utils/tree';  export function createRouterState(     routeReuseStrategy: RouteReuseStrategy, curr: RouterStateSnapshot,     prevState: RouterState): RouterState {   const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);   return new RouterState(root, curr); }  function createNode(     routeReuseStrategy: RouteReuseStrategy, curr: TreeNode<ActivatedRouteSnapshot>,     prevState?: TreeNode<ActivatedRoute>): TreeNode<ActivatedRoute> {   // reuse an activated route that is currently displayed on the screen   if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {     const value = prevState.value;     value._futureSnapshot = curr.value;     const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);     return new TreeNode<ActivatedRoute>(value, children);   } else {     if (routeReuseStrategy.shouldAttach(curr.value)) {       // retrieve an activated route that is used to be displayed, but is not currently displayed       const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);       if (detachedRouteHandle !== null) {         const tree = (detachedRouteHandle as DetachedRouteHandleInternal).route;         tree.value._futureSnapshot = curr.value;         tree.children = curr.children.map(c => createNode(routeReuseStrategy, c));         return tree;       }     }      const value = createActivatedRoute(curr.value);     const children = curr.children.map(c => createNode(routeReuseStrategy, c));     return new TreeNode<ActivatedRoute>(value, children);   } }  function createOrReuseChildren(     routeReuseStrategy: RouteReuseStrategy, curr: TreeNode<ActivatedRouteSnapshot>,     prevState: TreeNode<ActivatedRoute>) {   return curr.children.map(child => {     for (const p of prevState.children) {       if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {         return createNode(routeReuseStrategy, child, p);       }     }     return createNode(routeReuseStrategy, child);   }); }  function createActivatedRoute(c: ActivatedRouteSnapshot) {   return new ActivatedRoute(       new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams),       new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {NavigationCancellationCode} from './events'; import {NavigationBehaviorOptions} from './models'; import {isUrlTree, UrlSerializer, UrlTree} from './url_tree';  export const NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';  export type NavigationCancelingError =     Error&{[NAVIGATION_CANCELING_ERROR]: true, cancellationCode: NavigationCancellationCode}; export type RedirectingNavigationCancelingError = NavigationCancelingError&{   url: UrlTree;   navigationBehaviorOptions?: NavigationBehaviorOptions;   cancellationCode: NavigationCancellationCode.Redirect; };  export function redirectingNavigationError(     urlSerializer: UrlSerializer, redirect: UrlTree): RedirectingNavigationCancelingError {   const {redirectTo, navigationBehaviorOptions} =       isUrlTree(redirect) ? {redirectTo: redirect, navigationBehaviorOptions: undefined} : redirect;   const error =       navigationCancelingError(           ngDevMode && `Redirecting to \"${urlSerializer.serialize(redirectTo)}\"`,           NavigationCancellationCode.Redirect, redirect) as RedirectingNavigationCancelingError;   error.url = redirectTo;   error.navigationBehaviorOptions = navigationBehaviorOptions;   return error; }  export function navigationCancelingError(     message: string|null|false, code: NavigationCancellationCode, redirectUrl?: UrlTree) {   const error =       new Error('NavigationCancelingError: ' + (message || '')) as NavigationCancelingError;   error[NAVIGATION_CANCELING_ERROR] = true;   error.cancellationCode = code;   if (redirectUrl) {     (error as RedirectingNavigationCancelingError).url = redirectUrl;   }   return error; }  export function isRedirectingNavigationCancelingError(     error: unknown|     RedirectingNavigationCancelingError): error is RedirectingNavigationCancelingError {   return isNavigationCancelingError(error) && isUrlTree((error as any).url); } export function isNavigationCancelingError(error: unknown): error is NavigationCancelingError {   return error && (error as any)[NAVIGATION_CANCELING_ERROR]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentFactoryResolver, ComponentRef, EnvironmentInjector, Injectable} from '@angular/core';  import {RouterOutletContract} from './directives/router_outlet'; import {ActivatedRoute} from './router_state';   /**  * Store contextual information about a `RouterOutlet`  *  * @publicApi  */ export class OutletContext {   outlet: RouterOutletContract|null = null;   route: ActivatedRoute|null = null;   /**    * @deprecated Passing a resolver to retrieve a component factory is not required and is    *     deprecated since v14.    */   resolver: ComponentFactoryResolver|null = null;   injector: EnvironmentInjector|null = null;   children = new ChildrenOutletContexts();   attachRef: ComponentRef<any>|null = null; }  /**  * Store contextual information about the children (= nested) `RouterOutlet`  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class ChildrenOutletContexts {   // contexts for child outlets, by name.   private contexts = new Map<string, OutletContext>();    /** Called when a `RouterOutlet` directive is instantiated */   onChildOutletCreated(childName: string, outlet: RouterOutletContract): void {     const context = this.getOrCreateContext(childName);     context.outlet = outlet;     this.contexts.set(childName, context);   }    /**    * Called when a `RouterOutlet` directive is destroyed.    * We need to keep the context as the outlet could be destroyed inside a NgIf and might be    * re-created later.    */   onChildOutletDestroyed(childName: string): void {     const context = this.getContext(childName);     if (context) {       context.outlet = null;       context.attachRef = null;     }   }    /**    * Called when the corresponding route is deactivated during navigation.    * Because the component get destroyed, all children outlet are destroyed.    */   onOutletDeactivated(): Map<string, OutletContext> {     const contexts = this.contexts;     this.contexts = new Map();     return contexts;   }    onOutletReAttached(contexts: Map<string, OutletContext>) {     this.contexts = contexts;   }    getOrCreateContext(childName: string): OutletContext {     let context = this.getContext(childName);      if (!context) {       context = new OutletContext();       this.contexts.set(childName, context);     }      return context;   }    getContext(childName: string): OutletContext|null {     return this.contexts.get(childName) || null;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, Directive, EnvironmentInjector, EventEmitter, inject, Injector, Input, OnDestroy, OnInit, Output, SimpleChanges, ViewContainerRef, ɵRuntimeError as RuntimeError,} from '@angular/core';  import {RuntimeErrorCode} from '../errors'; import {Data} from '../models'; import {ChildrenOutletContexts} from '../router_outlet_context'; import {ActivatedRoute} from '../router_state'; import {PRIMARY_OUTLET} from '../shared';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * An interface that defines the contract for developing a component outlet for the `Router`.  *  * An outlet acts as a placeholder that Angular dynamically fills based on the current router state.  *  * A router outlet should register itself with the `Router` via  * `ChildrenOutletContexts#onChildOutletCreated` and unregister with  * `ChildrenOutletContexts#onChildOutletDestroyed`. When the `Router` identifies a matched `Route`,  * it looks for a registered outlet in the `ChildrenOutletContexts` and activates it.  *  * @see `ChildrenOutletContexts`  * @publicApi  */ export interface RouterOutletContract {   /**    * Whether the given outlet is activated.    *    * An outlet is considered \"activated\" if it has an active component.    */   isActivated: boolean;    /** The instance of the activated component or `null` if the outlet is not activated. */   component: Object|null;    /**    * The `Data` of the `ActivatedRoute` snapshot.    */   activatedRouteData: Data;    /**    * The `ActivatedRoute` for the outlet or `null` if the outlet is not activated.    */   activatedRoute: ActivatedRoute|null;    /**    * Called by the `Router` when the outlet should activate (create a component).    */   activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector|null): void;   /**    * Called by the `Router` when the outlet should activate (create a component).    *    * @deprecated Passing a resolver to retrieve a component factory is not required and is    *     deprecated since v14.    */   activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver|null): void;    /**    * A request to destroy the currently activated component.    *    * When a `RouteReuseStrategy` indicates that an `ActivatedRoute` should be removed but stored for    * later re-use rather than destroyed, the `Router` will call `detach` instead.    */   deactivate(): void;    /**    * Called when the `RouteReuseStrategy` instructs to detach the subtree.    *    * This is similar to `deactivate`, but the activated component should _not_ be destroyed.    * Instead, it is returned so that it can be reattached later via the `attach` method.    */   detach(): ComponentRef<unknown>;    /**    * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree.    */   attach(ref: ComponentRef<unknown>, activatedRoute: ActivatedRoute): void;    /**    * Emits an activate event when a new component is instantiated    **/   activateEvents?: EventEmitter<unknown>;    /**    * Emits a deactivate event when a component is destroyed.    */   deactivateEvents?: EventEmitter<unknown>;    /**    * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a    * previously detached subtree.    **/   attachEvents?: EventEmitter<unknown>;    /**    * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the    * subtree.    */   detachEvents?: EventEmitter<unknown>; }  /**  * @description  *  * Acts as a placeholder that Angular dynamically fills based on the current router state.  *  * Each outlet can have a unique name, determined by the optional `name` attribute.  * The name cannot be set or changed dynamically. If not set, default value is \"primary\".  *  * ```  * <router-outlet></router-outlet>  * <router-outlet name='left'></router-outlet>  * <router-outlet name='right'></router-outlet>  * ```  *  * Named outlets can be the targets of secondary routes.  * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:  *  * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`  *  * Using named outlets and secondary routes, you can target multiple outlets in  * the same `RouterLink` directive.  *  * The router keeps track of separate branches in a navigation tree for each named outlet and  * generates a representation of that tree in the URL.  * The URL for a secondary route uses the following syntax to specify both the primary and secondary  * routes at the same time:  *  * `http://base-path/primary-route-path(outlet-name:route-path)`  *  * A router outlet emits an activate event when a new component is instantiated,  * deactivate event when a component is destroyed.  * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the  * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to  * detach the subtree.  *  * ```  * <router-outlet  *   (activate)='onActivate($event)'  *   (deactivate)='onDeactivate($event)'  *   (attach)='onAttach($event)'  *   (detach)='onDetach($event)'></router-outlet>  * ```  *  * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets \"Example of a named  * outlet and secondary route configuration\").  * @see `RouterLink`  * @see `Route`  * @ngModule RouterModule  *  * @publicApi  */ @Directive({   selector: 'router-outlet',   exportAs: 'outlet',   standalone: true, }) export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract {   private activated: ComponentRef<any>|null = null;   private _activatedRoute: ActivatedRoute|null = null;   /**    * The name of the outlet    *    * @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)    */   @Input() name = PRIMARY_OUTLET;    @Output('activate') activateEvents = new EventEmitter<any>();   @Output('deactivate') deactivateEvents = new EventEmitter<any>();   /**    * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a    * previously detached subtree.    **/   @Output('attach') attachEvents = new EventEmitter<unknown>();   /**    * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the    * subtree.    */   @Output('detach') detachEvents = new EventEmitter<unknown>();    private parentContexts = inject(ChildrenOutletContexts);   private location = inject(ViewContainerRef);   private changeDetector = inject(ChangeDetectorRef);   private environmentInjector = inject(EnvironmentInjector);    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (changes['name']) {       const {firstChange, previousValue} = changes['name'];       if (firstChange) {         // The first change is handled by ngOnInit. Because ngOnChanges doesn't get called when no         // input is set at all, we need to centrally handle the first change there.         return;       }        // unregister with the old name       if (this.isTrackedInParentContexts(previousValue)) {         this.deactivate();         this.parentContexts.onChildOutletDestroyed(previousValue);       }       // register the new name       this.initializeOutletWithName();     }   }    /** @nodoc */   ngOnDestroy(): void {     // Ensure that the registered outlet is this one before removing it on the context.     if (this.isTrackedInParentContexts(this.name)) {       this.parentContexts.onChildOutletDestroyed(this.name);     }   }    private isTrackedInParentContexts(outletName: string) {     return this.parentContexts.getContext(outletName)?.outlet === this;   }    /** @nodoc */   ngOnInit(): void {     this.initializeOutletWithName();   }    private initializeOutletWithName() {     this.parentContexts.onChildOutletCreated(this.name, this);     if (this.activated) {       return;     }      // If the outlet was not instantiated at the time the route got activated we need to populate     // the outlet when it is initialized (ie inside a NgIf)     const context = this.parentContexts.getContext(this.name);     if (context?.route) {       if (context.attachRef) {         // `attachRef` is populated when there is an existing component to mount         this.attach(context.attachRef, context.route);       } else {         // otherwise the component defined in the configuration is created         this.activateWith(context.route, context.injector);       }     }   }    get isActivated(): boolean {     return !!this.activated;   }    /**    * @returns The currently activated component instance.    * @throws An error if the outlet is not activated.    */   get component(): Object {     if (!this.activated)       throw new RuntimeError(           RuntimeErrorCode.OUTLET_NOT_ACTIVATED, NG_DEV_MODE && 'Outlet is not activated');     return this.activated.instance;   }    get activatedRoute(): ActivatedRoute {     if (!this.activated)       throw new RuntimeError(           RuntimeErrorCode.OUTLET_NOT_ACTIVATED, NG_DEV_MODE && 'Outlet is not activated');     return this._activatedRoute as ActivatedRoute;   }    get activatedRouteData(): Data {     if (this._activatedRoute) {       return this._activatedRoute.snapshot.data;     }     return {};   }    /**    * Called when the `RouteReuseStrategy` instructs to detach the subtree    */   detach(): ComponentRef<any> {     if (!this.activated)       throw new RuntimeError(           RuntimeErrorCode.OUTLET_NOT_ACTIVATED, NG_DEV_MODE && 'Outlet is not activated');     this.location.detach();     const cmp = this.activated;     this.activated = null;     this._activatedRoute = null;     this.detachEvents.emit(cmp.instance);     return cmp;   }    /**    * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree    */   attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute) {     this.activated = ref;     this._activatedRoute = activatedRoute;     this.location.insert(ref.hostView);     this.attachEvents.emit(ref.instance);   }    deactivate(): void {     if (this.activated) {       const c = this.component;       this.activated.destroy();       this.activated = null;       this._activatedRoute = null;       this.deactivateEvents.emit(c);     }   }    activateWith(       activatedRoute: ActivatedRoute,       resolverOrInjector?: ComponentFactoryResolver|EnvironmentInjector|null) {     if (this.isActivated) {       throw new RuntimeError(           RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED,           NG_DEV_MODE && 'Cannot activate an already activated outlet');     }     this._activatedRoute = activatedRoute;     const location = this.location;     const snapshot = activatedRoute.snapshot;     const component = snapshot.component!;     const childContexts = this.parentContexts.getOrCreateContext(this.name).children;     const injector = new OutletInjector(activatedRoute, childContexts, location.injector);      if (resolverOrInjector && isComponentFactoryResolver(resolverOrInjector)) {       const factory = resolverOrInjector.resolveComponentFactory(component);       this.activated = location.createComponent(factory, location.length, injector);     } else {       const environmentInjector = resolverOrInjector ?? this.environmentInjector;       this.activated = location.createComponent(           component, {index: location.length, injector, environmentInjector});     }     // Calling `markForCheck` to make sure we will run the change detection when the     // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.     this.changeDetector.markForCheck();     this.activateEvents.emit(this.activated.instance);   } }  class OutletInjector implements Injector {   constructor(       private route: ActivatedRoute, private childContexts: ChildrenOutletContexts,       private parent: Injector) {}    get(token: any, notFoundValue?: any): any {     if (token === ActivatedRoute) {       return this.route;     }      if (token === ChildrenOutletContexts) {       return this.childContexts;     }      return this.parent.get(token, notFoundValue);   } }  function isComponentFactoryResolver(item: any): item is ComponentFactoryResolver {   return !!item.resolveComponentFactory; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Component} from '@angular/core';  import {RouterOutlet} from '../directives/router_outlet';  /**  * This component is used internally within the router to be a placeholder when an empty  * router-outlet is needed. For example, with a config such as:  *  * `{path: 'parent', outlet: 'nav', children: [...]}`  *  * In order to render, there needs to be a component on this config, which will default  * to this `EmptyOutletComponent`.  */ @Component({   template: `<router-outlet></router-outlet>`,   imports: [RouterOutlet],   standalone: true, }) export class ɵEmptyOutletComponent { }  export {ɵEmptyOutletComponent as EmptyOutletComponent}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createEnvironmentInjector, EnvironmentInjector, isStandalone, Type, ɵRuntimeError as RuntimeError} from '@angular/core';  import {EmptyOutletComponent} from '../components/empty_outlet'; import {RuntimeErrorCode} from '../errors'; import {Route, Routes} from '../models'; import {ActivatedRouteSnapshot} from '../router_state'; import {PRIMARY_OUTLET} from '../shared';  /**  * Creates an `EnvironmentInjector` if the `Route` has providers and one does not already exist  * and returns the injector. Otherwise, if the `Route` does not have `providers`, returns the  * `currentInjector`.  *  * @param route The route that might have providers  * @param currentInjector The parent injector of the `Route`  */ export function getOrCreateRouteInjectorIfNeeded(     route: Route, currentInjector: EnvironmentInjector) {   if (route.providers && !route._injector) {     route._injector =         createEnvironmentInjector(route.providers, currentInjector, `Route: ${route.path}`);   }   return route._injector ?? currentInjector; }  export function getLoadedRoutes(route: Route): Route[]|undefined {   return route._loadedRoutes; }  export function getLoadedInjector(route: Route): EnvironmentInjector|undefined {   return route._loadedInjector; } export function getLoadedComponent(route: Route): Type<unknown>|undefined {   return route._loadedComponent; }  export function getProvidersInjector(route: Route): EnvironmentInjector|undefined {   return route._injector; }  export function validateConfig(     config: Routes, parentPath: string = '', requireStandaloneComponents = false): void {   // forEach doesn't iterate undefined values   for (let i = 0; i < config.length; i++) {     const route: Route = config[i];     const fullPath: string = getFullPath(parentPath, route);     validateNode(route, fullPath, requireStandaloneComponents);   } }  export function assertStandalone(fullPath: string, component: Type<unknown>|undefined) {   if (component && !isStandalone(component)) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_ROUTE_CONFIG,         `Invalid configuration of route '${fullPath}'. The component must be standalone.`);   } }  function validateNode(route: Route, fullPath: string, requireStandaloneComponents: boolean): void {   if (typeof ngDevMode === 'undefined' || ngDevMode) {     if (!route) {       throw new RuntimeError(RuntimeErrorCode.INVALID_ROUTE_CONFIG, `       Invalid configuration of route '${fullPath}': Encountered undefined route.       The reason might be an extra comma.        Example:       const routes: Routes = [         { path: '', redirectTo: '/dashboard', pathMatch: 'full' },         { path: 'dashboard',  component: DashboardComponent },, << two commas         { path: 'detail/:id', component: HeroDetailComponent }       ];     `);     }     if (Array.isArray(route)) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${fullPath}': Array cannot be specified`);     }     if (!route.redirectTo && !route.component && !route.loadComponent && !route.children &&         !route.loadChildren && (route.outlet && route.outlet !== PRIMARY_OUTLET)) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);     }     if (route.redirectTo && route.children) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and children cannot be used together`);     }     if (route.redirectTo && route.loadChildren) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and loadChildren cannot be used together`);     }     if (route.children && route.loadChildren) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': children and loadChildren cannot be used together`);     }     if (route.redirectTo && (route.component || route.loadComponent)) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and component/loadComponent cannot be used together`);     }     if (route.component && route.loadComponent) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': component and loadComponent cannot be used together`);     }     if (route.redirectTo && route.canActivate) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` +               `so canActivate will never be executed.`);     }     if (route.path && route.matcher) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);     }     if (route.redirectTo === void 0 && !route.component && !route.loadComponent &&         !route.children && !route.loadChildren) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);     }     if (route.path === void 0 && route.matcher === void 0) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': routes must have either a path or a matcher specified`);     }     if (typeof route.path === 'string' && route.path.charAt(0) === '/') {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${fullPath}': path cannot start with a slash`);     }     if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {       const exp =           `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '{path: \"${fullPath}\", redirectTo: \"${               route.redirectTo}\"}': please provide 'pathMatch'. ${exp}`);     }     if (requireStandaloneComponents) {       assertStandalone(fullPath, route.component);     }   }   if (route.children) {     validateConfig(route.children, fullPath, requireStandaloneComponents);   } }  function getFullPath(parentPath: string, currentRoute: Route): string {   if (!currentRoute) {     return parentPath;   }   if (!parentPath && !currentRoute.path) {     return '';   } else if (parentPath && !currentRoute.path) {     return `${parentPath}/`;   } else if (!parentPath && currentRoute.path) {     return currentRoute.path;   } else {     return `${parentPath}/${currentRoute.path}`;   } }  /**  * Makes a copy of the config and adds any default required properties.  */ export function standardizeConfig(r: Route): Route {   const children = r.children && r.children.map(standardizeConfig);   const c = children ? {...r, children} : {...r};   if ((!c.component && !c.loadComponent) && (children || c.loadChildren) &&       (c.outlet && c.outlet !== PRIMARY_OUTLET)) {     c.component = EmptyOutletComponent;   }   return c; }  /** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */ export function getOutlet(route: Route): string {   return route.outlet || PRIMARY_OUTLET; }  /**  * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.  * The order of the configs is otherwise preserved.  */ export function sortByMatchingOutlets(routes: Routes, outletName: string): Routes {   const sortedConfig = routes.filter(r => getOutlet(r) === outletName);   sortedConfig.push(...routes.filter(r => getOutlet(r) !== outletName));   return sortedConfig; }  /**  * Gets the first injector in the snapshot's parent tree.  *  * If the `Route` has a static list of providers, the returned injector will be the one created from  * those. If it does not exist, the returned injector may come from the parents, which may be from a  * loaded config or their static providers.  *  * Returns `null` if there is neither this nor any parents have a stored injector.  *  * Generally used for retrieving the injector to use for getting tokens for guards/resolvers and  * also used for getting the correct injector to use for creating components.  */ export function getClosestRouteInjector(snapshot: ActivatedRouteSnapshot): EnvironmentInjector|     null {   if (!snapshot) return null;    // If the current route has its own injector, which is created from the static providers on the   // route itself, we should use that. Otherwise, we start at the parent since we do not want to   // include the lazy loaded injector from this route.   if (snapshot.routeConfig?._injector) {     return snapshot.routeConfig._injector;   }    for (let s = snapshot.parent; s; s = s.parent) {     const route = s.routeConfig;     // Note that the order here is important. `_loadedInjector` stored on the route with     // `loadChildren: () => NgModule` so it applies to child routes with priority. The `_injector`     // is created from the static providers on that parent route, so it applies to the children as     // well, but only if there is no lazy loaded NgModuleRef injector.     if (route?._loadedInjector) return route._loadedInjector;     if (route?._injector) return route._injector;   }    return null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentFactoryResolver, EnvironmentInjector, NgModuleRef} from '@angular/core'; import {MonoTypeOperatorFunction} from 'rxjs'; import {map} from 'rxjs/operators';  import {ActivationEnd, ChildActivationEnd, Event} from '../events'; import {NavigationTransition} from '../navigation_transition'; import {DetachedRouteHandleInternal, RouteReuseStrategy} from '../route_reuse_strategy'; import {ChildrenOutletContexts} from '../router_outlet_context'; import {ActivatedRoute, advanceActivatedRoute, RouterState} from '../router_state'; import {forEach} from '../utils/collection'; import {getClosestRouteInjector} from '../utils/config'; import {nodeChildrenAsMap, TreeNode} from '../utils/tree';  export const activateRoutes =     (rootContexts: ChildrenOutletContexts, routeReuseStrategy: RouteReuseStrategy,      forwardEvent: (evt: Event) => void): MonoTypeOperatorFunction<NavigationTransition> =>         map(t => {           new ActivateRoutes(               routeReuseStrategy, t.targetRouterState!, t.currentRouterState, forwardEvent)               .activate(rootContexts);           return t;         });  export class ActivateRoutes {   constructor(       private routeReuseStrategy: RouteReuseStrategy, private futureState: RouterState,       private currState: RouterState, private forwardEvent: (evt: Event) => void) {}    activate(parentContexts: ChildrenOutletContexts): void {     const futureRoot = this.futureState._root;     const currRoot = this.currState ? this.currState._root : null;      this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);     advanceActivatedRoute(this.futureState.root);     this.activateChildRoutes(futureRoot, currRoot, parentContexts);   }    // De-activate the child route that are not re-used for the future state   private deactivateChildRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>|null,       contexts: ChildrenOutletContexts): void {     const children: {[outletName: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(currNode);      // Recurse on the routes active in the future state to de-activate deeper children     futureNode.children.forEach(futureChild => {       const childOutletName = futureChild.value.outlet;       this.deactivateRoutes(futureChild, children[childOutletName], contexts);       delete children[childOutletName];     });      // De-activate the routes that will not be re-used     forEach(children, (v: TreeNode<ActivatedRoute>, childName: string) => {       this.deactivateRouteAndItsChildren(v, contexts);     });   }    private deactivateRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>,       parentContext: ChildrenOutletContexts): void {     const future = futureNode.value;     const curr = currNode ? currNode.value : null;      if (future === curr) {       // Reusing the node, check to see if the children need to be de-activated       if (future.component) {         // If we have a normal route, we need to go through an outlet.         const context = parentContext.getContext(future.outlet);         if (context) {           this.deactivateChildRoutes(futureNode, currNode, context.children);         }       } else {         // if we have a componentless route, we recurse but keep the same outlet map.         this.deactivateChildRoutes(futureNode, currNode, parentContext);       }     } else {       if (curr) {         // Deactivate the current route which will not be re-used         this.deactivateRouteAndItsChildren(currNode, parentContext);       }     }   }    private deactivateRouteAndItsChildren(       route: TreeNode<ActivatedRoute>, parentContexts: ChildrenOutletContexts): void {     // If there is no component, the Route is never attached to an outlet (because there is no     // component to attach).     if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {       this.detachAndStoreRouteSubtree(route, parentContexts);     } else {       this.deactivateRouteAndOutlet(route, parentContexts);     }   }    private detachAndStoreRouteSubtree(       route: TreeNode<ActivatedRoute>, parentContexts: ChildrenOutletContexts): void {     const context = parentContexts.getContext(route.value.outlet);     const contexts = context && route.value.component ? context.children : parentContexts;     const children: {[outletName: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(route);      for (const childOutlet of Object.keys(children)) {       this.deactivateRouteAndItsChildren(children[childOutlet], contexts);     }      if (context && context.outlet) {       const componentRef = context.outlet.detach();       const contexts = context.children.onOutletDeactivated();       this.routeReuseStrategy.store(route.value.snapshot, {componentRef, route, contexts});     }   }    private deactivateRouteAndOutlet(       route: TreeNode<ActivatedRoute>, parentContexts: ChildrenOutletContexts): void {     const context = parentContexts.getContext(route.value.outlet);     // The context could be `null` if we are on a componentless route but there may still be     // children that need deactivating.     const contexts = context && route.value.component ? context.children : parentContexts;     const children: {[outletName: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(route);      for (const childOutlet of Object.keys(children)) {       this.deactivateRouteAndItsChildren(children[childOutlet], contexts);     }      if (context && context.outlet) {       // Destroy the component       context.outlet.deactivate();       // Destroy the contexts for all the outlets that were in the component       context.children.onOutletDeactivated();       // Clear the information about the attached component on the context but keep the reference to       // the outlet.       context.attachRef = null;       context.resolver = null;       context.route = null;     }   }    private activateChildRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>|null,       contexts: ChildrenOutletContexts): void {     const children: {[outlet: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(currNode);     futureNode.children.forEach(c => {       this.activateRoutes(c, children[c.value.outlet], contexts);       this.forwardEvent(new ActivationEnd(c.value.snapshot));     });     if (futureNode.children.length) {       this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));     }   }    private activateRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>,       parentContexts: ChildrenOutletContexts): void {     const future = futureNode.value;     const curr = currNode ? currNode.value : null;      advanceActivatedRoute(future);      // reusing the node     if (future === curr) {       if (future.component) {         // If we have a normal route, we need to go through an outlet.         const context = parentContexts.getOrCreateContext(future.outlet);         this.activateChildRoutes(futureNode, currNode, context.children);       } else {         // if we have a componentless route, we recurse but keep the same outlet map.         this.activateChildRoutes(futureNode, currNode, parentContexts);       }     } else {       if (future.component) {         // if we have a normal route, we need to place the component into the outlet and recurse.         const context = parentContexts.getOrCreateContext(future.outlet);          if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {           const stored =               (<DetachedRouteHandleInternal>this.routeReuseStrategy.retrieve(future.snapshot));           this.routeReuseStrategy.store(future.snapshot, null);           context.children.onOutletReAttached(stored.contexts);           context.attachRef = stored.componentRef;           context.route = stored.route.value;           if (context.outlet) {             // Attach right away when the outlet has already been instantiated             // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated             context.outlet.attach(stored.componentRef, stored.route.value);           }            advanceActivatedRoute(stored.route.value);           this.activateChildRoutes(futureNode, null, context.children);         } else {           const injector = getClosestRouteInjector(future.snapshot);           const cmpFactoryResolver = injector?.get(ComponentFactoryResolver) ?? null;           context.attachRef = null;           context.route = future;           context.resolver = cmpFactoryResolver;           context.injector = injector;           if (context.outlet) {             // Activate the outlet when it has already been instantiated             // Otherwise it will get activated from its `ngOnInit` when instantiated             context.outlet.activateWith(future, context.injector);           }            this.activateChildRoutes(futureNode, null, context.children);         }       } else {         // if we have a componentless route, we recurse but keep the same outlet map.         this.activateChildRoutes(futureNode, null, parentContexts);       }     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injector, ProviderToken, ɵisInjectable as isInjectable} from '@angular/core';  import {RunGuardsAndResolvers} from '../models'; import {ChildrenOutletContexts, OutletContext} from '../router_outlet_context'; import {ActivatedRouteSnapshot, equalParamsAndUrlSegments, RouterStateSnapshot} from '../router_state'; import {equalPath} from '../url_tree'; import {forEach, shallowEqual} from '../utils/collection'; import {nodeChildrenAsMap, TreeNode} from '../utils/tree';  export class CanActivate {   readonly route: ActivatedRouteSnapshot;   constructor(public path: ActivatedRouteSnapshot[]) {     this.route = this.path[this.path.length - 1];   } }  export class CanDeactivate {   constructor(public component: Object|null, public route: ActivatedRouteSnapshot) {} }  export declare type Checks = {   canDeactivateChecks: CanDeactivate[],   canActivateChecks: CanActivate[], };  export function getAllRouteGuards(     future: RouterStateSnapshot, curr: RouterStateSnapshot,     parentContexts: ChildrenOutletContexts) {   const futureRoot = future._root;   const currRoot = curr ? curr._root : null;    return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]); }  export function getCanActivateChild(p: ActivatedRouteSnapshot):     {node: ActivatedRouteSnapshot, guards: any[]}|null {   const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;   if (!canActivateChild || canActivateChild.length === 0) return null;   return {node: p, guards: canActivateChild}; }  export function getTokenOrFunctionIdentity<T>(     tokenOrFunction: Function|ProviderToken<T>, injector: Injector): Function|T {   const NOT_FOUND = Symbol();   const result = injector.get<T|Symbol>(tokenOrFunction, NOT_FOUND);   if (result === NOT_FOUND) {     if (typeof tokenOrFunction === 'function' && !isInjectable(tokenOrFunction)) {       // We think the token is just a function so return it as-is       return tokenOrFunction;     } else {       // This will throw the not found error       return injector.get<T>(tokenOrFunction);     }   }   return result as T; }  function getChildRouteGuards(     futureNode: TreeNode<ActivatedRouteSnapshot>, currNode: TreeNode<ActivatedRouteSnapshot>|null,     contexts: ChildrenOutletContexts|null, futurePath: ActivatedRouteSnapshot[], checks: Checks = {       canDeactivateChecks: [],       canActivateChecks: []     }): Checks {   const prevChildren = nodeChildrenAsMap(currNode);    // Process the children of the future route   futureNode.children.forEach(c => {     getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);     delete prevChildren[c.value.outlet];   });    // Process any children left from the current route (not active for the future route)   forEach(       prevChildren,       (v: TreeNode<ActivatedRouteSnapshot>, k: string) =>           deactivateRouteAndItsChildren(v, contexts!.getContext(k), checks));    return checks; }  function getRouteGuards(     futureNode: TreeNode<ActivatedRouteSnapshot>, currNode: TreeNode<ActivatedRouteSnapshot>,     parentContexts: ChildrenOutletContexts|null, futurePath: ActivatedRouteSnapshot[],     checks: Checks = {       canDeactivateChecks: [],       canActivateChecks: []     }): Checks {   const future = futureNode.value;   const curr = currNode ? currNode.value : null;   const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;    // reusing the node   if (curr && future.routeConfig === curr.routeConfig) {     const shouldRun =         shouldRunGuardsAndResolvers(curr, future, future.routeConfig!.runGuardsAndResolvers);     if (shouldRun) {       checks.canActivateChecks.push(new CanActivate(futurePath));     } else {       // we need to set the data       future.data = curr.data;       future._resolvedData = curr._resolvedData;     }      // If we have a component, we need to go through an outlet.     if (future.component) {       getChildRouteGuards(           futureNode, currNode, context ? context.children : null, futurePath, checks);        // if we have a componentless route, we recurse but keep the same outlet map.     } else {       getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);     }      if (shouldRun && context && context.outlet && context.outlet.isActivated) {       checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));     }   } else {     if (curr) {       deactivateRouteAndItsChildren(currNode, context, checks);     }      checks.canActivateChecks.push(new CanActivate(futurePath));     // If we have a component, we need to go through an outlet.     if (future.component) {       getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);        // if we have a componentless route, we recurse but keep the same outlet map.     } else {       getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);     }   }    return checks; }  function shouldRunGuardsAndResolvers(     curr: ActivatedRouteSnapshot, future: ActivatedRouteSnapshot,     mode: RunGuardsAndResolvers|undefined): boolean {   if (typeof mode === 'function') {     return mode(curr, future);   }   switch (mode) {     case 'pathParamsChange':       return !equalPath(curr.url, future.url);      case 'pathParamsOrQueryParamsChange':       return !equalPath(curr.url, future.url) ||           !shallowEqual(curr.queryParams, future.queryParams);      case 'always':       return true;      case 'paramsOrQueryParamsChange':       return !equalParamsAndUrlSegments(curr, future) ||           !shallowEqual(curr.queryParams, future.queryParams);      case 'paramsChange':     default:       return !equalParamsAndUrlSegments(curr, future);   } }  function deactivateRouteAndItsChildren(     route: TreeNode<ActivatedRouteSnapshot>, context: OutletContext|null, checks: Checks): void {   const children = nodeChildrenAsMap(route);   const r = route.value;    forEach(children, (node: TreeNode<ActivatedRouteSnapshot>, childName: string) => {     if (!r.component) {       deactivateRouteAndItsChildren(node, context, checks);     } else if (context) {       deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);     } else {       deactivateRouteAndItsChildren(node, null, checks);     }   });    if (!r.component) {     checks.canDeactivateChecks.push(new CanDeactivate(null, r));   } else if (context && context.outlet && context.outlet.isActivated) {     checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));   } else {     checks.canDeactivateChecks.push(new CanDeactivate(null, r));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EmptyError} from 'rxjs';  import {CanActivate, CanActivateChild, CanDeactivate, CanLoad, CanMatch} from '../models'; import {NAVIGATION_CANCELING_ERROR, NavigationCancelingError, RedirectingNavigationCancelingError} from '../navigation_canceling_error'; import {isUrlTree} from '../url_tree';  /**  * Simple function check, but generic so type inference will flow. Example:  *  * function product(a: number, b: number) {  *   return a * b;  * }  *  * if (isFunction<product>(fn)) {  *   return fn(1, 2);  * } else {  *   throw \"Must provide the `product` function\";  * }  */ export function isFunction<T>(v: any): v is T {   return typeof v === 'function'; }  export function isBoolean(v: any): v is boolean {   return typeof v === 'boolean'; }  export function isCanLoad(guard: any): guard is CanLoad {   return guard && isFunction<CanLoad>(guard.canLoad); }  export function isCanActivate(guard: any): guard is CanActivate {   return guard && isFunction<CanActivate>(guard.canActivate); }  export function isCanActivateChild(guard: any): guard is CanActivateChild {   return guard && isFunction<CanActivateChild>(guard.canActivateChild); }  export function isCanDeactivate<T>(guard: any): guard is CanDeactivate<T> {   return guard && isFunction<CanDeactivate<T>>(guard.canDeactivate); } export function isCanMatch(guard: any): guard is CanMatch {   return guard && isFunction<CanMatch>(guard.canMatch); }  export function isRedirectingNavigationCancelingError(     error: unknown|     RedirectingNavigationCancelingError): error is RedirectingNavigationCancelingError {   return isNavigationCancelingError(error) && isUrlTree((error as any).url); }  export function isNavigationCancelingError(error: unknown): error is NavigationCancelingError {   return error && (error as any)[NAVIGATION_CANCELING_ERROR]; }  export function isEmptyError(e: Error): e is EmptyError {   return e instanceof EmptyError || e?.name === 'EmptyError'; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {combineLatest, Observable, OperatorFunction} from 'rxjs'; import {filter, map, scan, startWith, switchMap, take} from 'rxjs/operators';  import {isUrlTree, UrlTree} from '../url_tree';  const INITIAL_VALUE = Symbol('INITIAL_VALUE'); declare type INTERIM_VALUES = typeof INITIAL_VALUE | boolean | UrlTree;  export function prioritizedGuardValue():     OperatorFunction<Observable<boolean|UrlTree>[], boolean|UrlTree> {   return switchMap(obs => {     return combineLatest(obs.map(o => o.pipe(take(1), startWith(INITIAL_VALUE as INTERIM_VALUES))))         .pipe(             map((results: INTERIM_VALUES[]) => {               for (const result of results) {                 if (result === true) {                   // If result is true, check the next one                   continue;                 } else if (result === INITIAL_VALUE) {                   // If guard has not finished, we need to stop processing.                   return INITIAL_VALUE;                 } else if (result === false || result instanceof UrlTree) {                   // Result finished and was not true. Return the result.                   // Note that we only allow false/UrlTree. Other values are considered invalid and                   // ignored.                   return result;                 }               }               // Everything resolved to true. Return true.               return true;             }),             filter((item): item is boolean|UrlTree => item !== INITIAL_VALUE),             take(1),         );   }); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, ProviderToken} from '@angular/core'; import {concat, defer, from, MonoTypeOperatorFunction, Observable, of, OperatorFunction, pipe} from 'rxjs'; import {concatMap, first, map, mergeMap, tap} from 'rxjs/operators';  import {ActivationStart, ChildActivationStart, Event} from '../events'; import {CanActivateChild, CanActivateChildFn, CanActivateFn, CanDeactivateFn, CanLoadFn, CanMatchFn, Route} from '../models'; import {redirectingNavigationError} from '../navigation_canceling_error'; import {NavigationTransition} from '../navigation_transition'; import {ActivatedRouteSnapshot, RouterStateSnapshot} from '../router_state'; import {isUrlTree, UrlSegment, UrlSerializer, UrlTree} from '../url_tree'; import {wrapIntoObservable} from '../utils/collection'; import {getClosestRouteInjector} from '../utils/config'; import {CanActivate, CanDeactivate, getCanActivateChild, getTokenOrFunctionIdentity} from '../utils/preactivation'; import {isBoolean, isCanActivate, isCanActivateChild, isCanDeactivate, isCanLoad, isCanMatch} from '../utils/type_guards';  import {prioritizedGuardValue} from './prioritized_guard_value';  export function checkGuards(injector: EnvironmentInjector, forwardEvent?: (evt: Event) => void):     MonoTypeOperatorFunction<NavigationTransition> {   return mergeMap(t => {     const {targetSnapshot, currentSnapshot, guards: {canActivateChecks, canDeactivateChecks}} = t;     if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {       return of({...t, guardsResult: true});     }      return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot!, currentSnapshot, injector)         .pipe(             mergeMap(canDeactivate => {               return canDeactivate && isBoolean(canDeactivate) ?                   runCanActivateChecks(targetSnapshot!, canActivateChecks, injector, forwardEvent) :                   of(canDeactivate);             }),             map(guardsResult => ({...t, guardsResult})));   }); }  function runCanDeactivateChecks(     checks: CanDeactivate[], futureRSS: RouterStateSnapshot, currRSS: RouterStateSnapshot,     injector: EnvironmentInjector) {   return from(checks).pipe(       mergeMap(           check => runCanDeactivate(check.component, check.route, currRSS, futureRSS, injector)),       first(result => {         return result !== true;       }, true as boolean | UrlTree)); }  function runCanActivateChecks(     futureSnapshot: RouterStateSnapshot, checks: CanActivate[], injector: EnvironmentInjector,     forwardEvent?: (evt: Event) => void) {   return from(checks).pipe(       concatMap((check: CanActivate) => {         return concat(             fireChildActivationStart(check.route.parent, forwardEvent),             fireActivationStart(check.route, forwardEvent),             runCanActivateChild(futureSnapshot, check.path, injector),             runCanActivate(futureSnapshot, check.route, injector));       }),       first(result => {         return result !== true;       }, true as boolean | UrlTree)); }  /**  * This should fire off `ActivationStart` events for each route being activated at this  * level.  * In other words, if you're activating `a` and `b` below, `path` will contain the  * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always  * return  * `true` so checks continue to run.  */ function fireActivationStart(     snapshot: ActivatedRouteSnapshot|null,     forwardEvent?: (evt: Event) => void): Observable<boolean> {   if (snapshot !== null && forwardEvent) {     forwardEvent(new ActivationStart(snapshot));   }   return of(true); }  /**  * This should fire off `ChildActivationStart` events for each route being activated at this  * level.  * In other words, if you're activating `a` and `b` below, `path` will contain the  * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always  * return  * `true` so checks continue to run.  */ function fireChildActivationStart(     snapshot: ActivatedRouteSnapshot|null,     forwardEvent?: (evt: Event) => void): Observable<boolean> {   if (snapshot !== null && forwardEvent) {     forwardEvent(new ChildActivationStart(snapshot));   }   return of(true); }  function runCanActivate(     futureRSS: RouterStateSnapshot, futureARS: ActivatedRouteSnapshot,     injector: EnvironmentInjector): Observable<boolean|UrlTree> {   const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;   if (!canActivate || canActivate.length === 0) return of(true);    const canActivateObservables =       canActivate.map((canActivate: CanActivateFn|ProviderToken<unknown>) => {         return defer(() => {           const closestInjector = getClosestRouteInjector(futureARS) ?? injector;           const guard = getTokenOrFunctionIdentity<CanActivate>(canActivate, closestInjector);           const guardVal = isCanActivate(guard) ?               guard.canActivate(futureARS, futureRSS) :               closestInjector.runInContext(() => (guard as CanActivateFn)(futureARS, futureRSS));           return wrapIntoObservable(guardVal).pipe(first());         });       });   return of(canActivateObservables).pipe(prioritizedGuardValue()); }  function runCanActivateChild(     futureRSS: RouterStateSnapshot, path: ActivatedRouteSnapshot[],     injector: EnvironmentInjector): Observable<boolean|UrlTree> {   const futureARS = path[path.length - 1];    const canActivateChildGuards = path.slice(0, path.length - 1)                                      .reverse()                                      .map(p => getCanActivateChild(p))                                      .filter(_ => _ !== null);    const canActivateChildGuardsMapped = canActivateChildGuards.map((d: any) => {     return defer(() => {       const guardsMapped =           d.guards.map((canActivateChild: CanActivateChildFn|ProviderToken<unknown>) => {             const closestInjector = getClosestRouteInjector(d.node) ?? injector;             const guard =                 getTokenOrFunctionIdentity<CanActivateChild>(canActivateChild, closestInjector);             const guardVal = isCanActivateChild(guard) ?                 guard.canActivateChild(futureARS, futureRSS) :                 closestInjector.runInContext(                     () => (guard as CanActivateChildFn)(futureARS, futureRSS));             return wrapIntoObservable(guardVal).pipe(first());           });       return of(guardsMapped).pipe(prioritizedGuardValue());     });   });   return of(canActivateChildGuardsMapped).pipe(prioritizedGuardValue()); }  function runCanDeactivate(     component: Object|null, currARS: ActivatedRouteSnapshot, currRSS: RouterStateSnapshot,     futureRSS: RouterStateSnapshot, injector: EnvironmentInjector): Observable<boolean|UrlTree> {   const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;   if (!canDeactivate || canDeactivate.length === 0) return of(true);   const canDeactivateObservables = canDeactivate.map((c: any) => {     const closestInjector = getClosestRouteInjector(currARS) ?? injector;     const guard = getTokenOrFunctionIdentity<any>(c, closestInjector);     const guardVal = isCanDeactivate(guard) ?         guard.canDeactivate(component, currARS, currRSS, futureRSS) :         closestInjector.runInContext(             () => (guard as CanDeactivateFn<any>)(component, currARS, currRSS, futureRSS));     return wrapIntoObservable(guardVal).pipe(first());   });   return of(canDeactivateObservables).pipe(prioritizedGuardValue()); }  export function runCanLoadGuards(     injector: EnvironmentInjector, route: Route, segments: UrlSegment[],     urlSerializer: UrlSerializer): Observable<boolean> {   const canLoad = route.canLoad;   if (canLoad === undefined || canLoad.length === 0) {     return of(true);   }    const canLoadObservables = canLoad.map((injectionToken: any) => {     const guard = getTokenOrFunctionIdentity<any>(injectionToken, injector);     const guardVal = isCanLoad(guard) ?         guard.canLoad(route, segments) :         injector.runInContext(() => (guard as CanLoadFn)(route, segments));     return wrapIntoObservable(guardVal);   });    return of(canLoadObservables)       .pipe(           prioritizedGuardValue(),           redirectIfUrlTree(urlSerializer),       ); }  function redirectIfUrlTree(urlSerializer: UrlSerializer):     OperatorFunction<UrlTree|boolean, boolean> {   return pipe(       tap((result: UrlTree|boolean) => {         if (!isUrlTree(result)) return;          throw redirectingNavigationError(urlSerializer, result);       }),       map(result => result === true),   ); }  export function runCanMatchGuards(     injector: EnvironmentInjector, route: Route, segments: UrlSegment[],     urlSerializer: UrlSerializer): Observable<boolean> {   const canMatch = route.canMatch;   if (!canMatch || canMatch.length === 0) return of(true);    const canMatchObservables = canMatch.map(injectionToken => {     const guard = getTokenOrFunctionIdentity(injectionToken, injector);     const guardVal = isCanMatch(guard) ?         guard.canMatch(route, segments) :         injector.runInContext(() => (guard as CanMatchFn)(route, segments));     return wrapIntoObservable(guardVal);   });    return of(canMatchObservables)       .pipe(           prioritizedGuardValue(),           redirectIfUrlTree(urlSerializer),       ); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, Injector} from '@angular/core'; import {Observable, of} from 'rxjs'; import {map} from 'rxjs/operators';  import {Route} from '../models'; import {runCanMatchGuards} from '../operators/check_guards'; import {defaultUrlMatcher, PRIMARY_OUTLET} from '../shared'; import {UrlSegment, UrlSegmentGroup, UrlSerializer} from '../url_tree';  import {forEach} from './collection'; import {getOrCreateRouteInjectorIfNeeded, getOutlet} from './config';  export interface MatchResult {   matched: boolean;   consumedSegments: UrlSegment[];   remainingSegments: UrlSegment[];   parameters: {[k: string]: string};   positionalParamSegments: {[k: string]: UrlSegment}; }  const noMatch: MatchResult = {   matched: false,   consumedSegments: [],   remainingSegments: [],   parameters: {},   positionalParamSegments: {} };  export function matchWithChecks(     segmentGroup: UrlSegmentGroup, route: Route, segments: UrlSegment[],     injector: EnvironmentInjector, urlSerializer: UrlSerializer): Observable<MatchResult> {   const result = match(segmentGroup, route, segments);   if (!result.matched) {     return of(result);   }    // Only create the Route's `EnvironmentInjector` if it matches the attempted   // navigation   injector = getOrCreateRouteInjectorIfNeeded(route, injector);   return runCanMatchGuards(injector, route, segments, urlSerializer)       .pipe(           map((v) => v === true ? result : {...noMatch}),       ); }  export function match(     segmentGroup: UrlSegmentGroup, route: Route, segments: UrlSegment[]): MatchResult {   if (route.path === '') {     if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {       return {...noMatch};     }      return {       matched: true,       consumedSegments: [],       remainingSegments: segments,       parameters: {},       positionalParamSegments: {}     };   }    const matcher = route.matcher || defaultUrlMatcher;   const res = matcher(segments, segmentGroup, route);   if (!res) return {...noMatch};    const posParams: {[n: string]: string} = {};   forEach(res.posParams!, (v: UrlSegment, k: string) => {     posParams[k] = v.path;   });   const parameters = res.consumed.length > 0 ?       {...posParams, ...res.consumed[res.consumed.length - 1].parameters} :       posParams;    return {     matched: true,     consumedSegments: res.consumed,     remainingSegments: segments.slice(res.consumed.length),     // TODO(atscott): investigate combining parameters and positionalParamSegments     parameters,     positionalParamSegments: res.posParams ?? {}   }; }  export function split(     segmentGroup: UrlSegmentGroup, consumedSegments: UrlSegment[], slicedSegments: UrlSegment[],     config: Route[]) {   if (slicedSegments.length > 0 &&       containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {     const s = new UrlSegmentGroup(         consumedSegments,         createChildrenForEmptyPaths(             segmentGroup, consumedSegments, config,             new UrlSegmentGroup(slicedSegments, segmentGroup.children)));     s._sourceSegment = segmentGroup;     s._segmentIndexShift = consumedSegments.length;     return {segmentGroup: s, slicedSegments: []};   }    if (slicedSegments.length === 0 &&       containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {     const s = new UrlSegmentGroup(         segmentGroup.segments,         addEmptyPathsToChildrenIfNeeded(             segmentGroup, consumedSegments, slicedSegments, config, segmentGroup.children));     s._sourceSegment = segmentGroup;     s._segmentIndexShift = consumedSegments.length;     return {segmentGroup: s, slicedSegments};   }    const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);   s._sourceSegment = segmentGroup;   s._segmentIndexShift = consumedSegments.length;   return {segmentGroup: s, slicedSegments}; }  function addEmptyPathsToChildrenIfNeeded(     segmentGroup: UrlSegmentGroup, consumedSegments: UrlSegment[], slicedSegments: UrlSegment[],     routes: Route[],     children: {[name: string]: UrlSegmentGroup}): {[name: string]: UrlSegmentGroup} {   const res: {[name: string]: UrlSegmentGroup} = {};   for (const r of routes) {     if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {       const s = new UrlSegmentGroup([], {});       s._sourceSegment = segmentGroup;       s._segmentIndexShift = consumedSegments.length;       res[getOutlet(r)] = s;     }   }   return {...children, ...res}; }  function createChildrenForEmptyPaths(     segmentGroup: UrlSegmentGroup, consumedSegments: UrlSegment[], routes: Route[],     primarySegment: UrlSegmentGroup): {[name: string]: UrlSegmentGroup} {   const res: {[name: string]: UrlSegmentGroup} = {};   res[PRIMARY_OUTLET] = primarySegment;   primarySegment._sourceSegment = segmentGroup;   primarySegment._segmentIndexShift = consumedSegments.length;    for (const r of routes) {     if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {       const s = new UrlSegmentGroup([], {});       s._sourceSegment = segmentGroup;       s._segmentIndexShift = consumedSegments.length;       res[getOutlet(r)] = s;     }   }   return res; }  function containsEmptyPathMatchesWithNamedOutlets(     segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], routes: Route[]): boolean {   return routes.some(       r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET); }  function containsEmptyPathMatches(     segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], routes: Route[]): boolean {   return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r)); }  function emptyPathMatch(     segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], r: Route): boolean {   if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {     return false;   }    return r.path === ''; }  /**  * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without  * verifying that its children are a full match for the remainder of the `rawSegment` children as  * well.  */ export function isImmediateMatch(     route: Route, rawSegment: UrlSegmentGroup, segments: UrlSegment[], outlet: string): boolean {   // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to   // a config like   // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`   // or even   // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`   //   // The exception here is when the segment outlet is for the primary outlet. This would   // result in a match inside the named outlet because all children there are written as primary   // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like   // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`   // This should only match if the url is `/(x:b)`.   if (getOutlet(route) !== outlet &&       (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {     return false;   }   if (route.path === '**') {     return true;   }   return match(rawSegment, route, segments).matched; }  export function noLeftoversInUrl(     segmentGroup: UrlSegmentGroup, segments: UrlSegment[], outlet: string): boolean {   return segments.length === 0 && !segmentGroup.children[outlet]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, ɵRuntimeError as RuntimeError} from '@angular/core'; import {from, Observable, of, throwError} from 'rxjs'; import {catchError, concatMap, first, last, map, mergeMap, scan, switchMap, tap} from 'rxjs/operators';  import {RuntimeErrorCode} from './errors'; import {NavigationCancellationCode} from './events'; import {LoadedRouterConfig, Route, Routes} from './models'; import {navigationCancelingError} from './navigation_canceling_error'; import {runCanLoadGuards} from './operators/check_guards'; import {RouterConfigLoader} from './router_config_loader'; import {Params, PRIMARY_OUTLET} from './shared'; import {createRoot, squashSegmentGroup, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree} from './url_tree'; import {forEach} from './utils/collection'; import {getOrCreateRouteInjectorIfNeeded, getOutlet, sortByMatchingOutlets} from './utils/config'; import {isImmediateMatch, match, matchWithChecks, noLeftoversInUrl, split} from './utils/config_matching'; import {isEmptyError} from './utils/type_guards';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  class NoMatch {   public segmentGroup: UrlSegmentGroup|null;    constructor(segmentGroup?: UrlSegmentGroup) {     this.segmentGroup = segmentGroup || null;   } }  class AbsoluteRedirect {   constructor(public urlTree: UrlTree) {} }  function noMatch(segmentGroup: UrlSegmentGroup): Observable<UrlSegmentGroup> {   return throwError(new NoMatch(segmentGroup)); }  function absoluteRedirect(newTree: UrlTree): Observable<any> {   return throwError(new AbsoluteRedirect(newTree)); }  function namedOutletsRedirect(redirectTo: string): Observable<any> {   return throwError(new RuntimeError(       RuntimeErrorCode.NAMED_OUTLET_REDIRECT,       NG_DEV_MODE &&           `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`)); }  function canLoadFails(route: Route): Observable<LoadedRouterConfig> {   return throwError(navigationCancelingError(       NG_DEV_MODE &&           `Cannot load children because the guard of the route \"path: '${               route.path}'\" returned false`,       NavigationCancellationCode.GuardRejected)); }  /**  * Returns the `UrlTree` with the redirection applied.  *  * Lazy modules are loaded along the way.  */ export function applyRedirects(     injector: EnvironmentInjector, configLoader: RouterConfigLoader, urlSerializer: UrlSerializer,     urlTree: UrlTree, config: Routes): Observable<UrlTree> {   return new ApplyRedirects(injector, configLoader, urlSerializer, urlTree, config).apply(); }  class ApplyRedirects {   private allowRedirects: boolean = true;    constructor(       private injector: EnvironmentInjector, private configLoader: RouterConfigLoader,       private urlSerializer: UrlSerializer, private urlTree: UrlTree, private config: Routes) {}    apply(): Observable<UrlTree> {     const splitGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;     // TODO(atscott): creating a new segment removes the _sourceSegment _segmentIndexShift, which is     // only necessary to prevent failures in tests which assert exact object matches. The `split` is     // now shared between `applyRedirects` and `recognize` but only the `recognize` step needs these     // properties. Before the implementations were merged, the `applyRedirects` would not assign     // them. We should be able to remove this logic as a \"breaking change\" but should do some more     // investigation into the failures first.     const rootSegmentGroup = new UrlSegmentGroup(splitGroup.segments, splitGroup.children);      const expanded$ =         this.expandSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET);     const urlTrees$ = expanded$.pipe(map((rootSegmentGroup: UrlSegmentGroup) => {       return this.createUrlTree(           squashSegmentGroup(rootSegmentGroup), this.urlTree.queryParams, this.urlTree.fragment);     }));     return urlTrees$.pipe(catchError((e: any) => {       if (e instanceof AbsoluteRedirect) {         // After an absolute redirect we do not apply any more redirects!         // If this implementation changes, update the documentation note in `redirectTo`.         this.allowRedirects = false;         // we need to run matching, so we can fetch all lazy-loaded modules         return this.match(e.urlTree);       }        if (e instanceof NoMatch) {         throw this.noMatchError(e);       }        throw e;     }));   }    private match(tree: UrlTree): Observable<UrlTree> {     const expanded$ =         this.expandSegmentGroup(this.injector, this.config, tree.root, PRIMARY_OUTLET);     const mapped$ = expanded$.pipe(map((rootSegmentGroup: UrlSegmentGroup) => {       return this.createUrlTree(           squashSegmentGroup(rootSegmentGroup), tree.queryParams, tree.fragment);     }));     return mapped$.pipe(catchError((e: any): Observable<UrlTree> => {       if (e instanceof NoMatch) {         throw this.noMatchError(e);       }        throw e;     }));   }    private noMatchError(e: NoMatch): any {     return new RuntimeError(         RuntimeErrorCode.NO_MATCH,         NG_DEV_MODE && `Cannot match any routes. URL Segment: '${e.segmentGroup}'`);   }    private createUrlTree(rootCandidate: UrlSegmentGroup, queryParams: Params, fragment: string|null):       UrlTree {     const root = createRoot(rootCandidate);     return new UrlTree(root, queryParams, fragment);   }    private expandSegmentGroup(       injector: EnvironmentInjector, routes: Route[], segmentGroup: UrlSegmentGroup,       outlet: string): Observable<UrlSegmentGroup> {     if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {       return this.expandChildren(injector, routes, segmentGroup)           .pipe(map((children: any) => new UrlSegmentGroup([], children)));     }      return this.expandSegment(injector, segmentGroup, routes, segmentGroup.segments, outlet, true);   }    // Recursively expand segment groups for all the child outlets   private expandChildren(       injector: EnvironmentInjector, routes: Route[],       segmentGroup: UrlSegmentGroup): Observable<{[name: string]: UrlSegmentGroup}> {     // Expand outlets one at a time, starting with the primary outlet. We need to do it this way     // because an absolute redirect from the primary outlet takes precedence.     const childOutlets: string[] = [];     for (const child of Object.keys(segmentGroup.children)) {       if (child === 'primary') {         childOutlets.unshift(child);       } else {         childOutlets.push(child);       }     }      return from(childOutlets)         .pipe(             concatMap(childOutlet => {               const child = segmentGroup.children[childOutlet];               // Sort the routes so routes with outlets that match the segment appear               // first, followed by routes for other outlets, which might match if they have an               // empty path.               const sortedRoutes = sortByMatchingOutlets(routes, childOutlet);               return this.expandSegmentGroup(injector, sortedRoutes, child, childOutlet)                   .pipe(map(s => ({segment: s, outlet: childOutlet})));             }),             scan(                 (children, expandedChild) => {                   children[expandedChild.outlet] = expandedChild.segment;                   return children;                 },                 {} as {[outlet: string]: UrlSegmentGroup}),             last(),         );   }    private expandSegment(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[],       segments: UrlSegment[], outlet: string,       allowRedirects: boolean): Observable<UrlSegmentGroup> {     return from(routes).pipe(         concatMap(r => {           const expanded$ = this.expandSegmentAgainstRoute(               injector, segmentGroup, routes, r, segments, outlet, allowRedirects);           return expanded$.pipe(catchError((e: any) => {             if (e instanceof NoMatch) {               return of(null);             }             throw e;           }));         }),         first((s): s is UrlSegmentGroup => !!s), catchError((e: any, _: any) => {           if (isEmptyError(e)) {             if (noLeftoversInUrl(segmentGroup, segments, outlet)) {               return of(new UrlSegmentGroup([], {}));             }             return noMatch(segmentGroup);           }           throw e;         }));   }    private expandSegmentAgainstRoute(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[], route: Route,       paths: UrlSegment[], outlet: string, allowRedirects: boolean): Observable<UrlSegmentGroup> {     if (!isImmediateMatch(route, segmentGroup, paths, outlet)) {       return noMatch(segmentGroup);     }      if (route.redirectTo === undefined) {       return this.matchSegmentAgainstRoute(injector, segmentGroup, route, paths, outlet);     }      if (allowRedirects && this.allowRedirects) {       return this.expandSegmentAgainstRouteUsingRedirect(           injector, segmentGroup, routes, route, paths, outlet);     }      return noMatch(segmentGroup);   }    private expandSegmentAgainstRouteUsingRedirect(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[], route: Route,       segments: UrlSegment[], outlet: string): Observable<UrlSegmentGroup> {     if (route.path === '**') {       return this.expandWildCardWithParamsAgainstRouteUsingRedirect(           injector, routes, route, outlet);     }      return this.expandRegularSegmentAgainstRouteUsingRedirect(         injector, segmentGroup, routes, route, segments, outlet);   }    private expandWildCardWithParamsAgainstRouteUsingRedirect(       injector: EnvironmentInjector, routes: Route[], route: Route,       outlet: string): Observable<UrlSegmentGroup> {     const newTree = this.applyRedirectCommands([], route.redirectTo!, {});     if (route.redirectTo!.startsWith('/')) {       return absoluteRedirect(newTree);     }      return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments: UrlSegment[]) => {       const group = new UrlSegmentGroup(newSegments, {});       return this.expandSegment(injector, group, routes, newSegments, outlet, false);     }));   }    private expandRegularSegmentAgainstRouteUsingRedirect(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[], route: Route,       segments: UrlSegment[], outlet: string): Observable<UrlSegmentGroup> {     const {matched, consumedSegments, remainingSegments, positionalParamSegments} =         match(segmentGroup, route, segments);     if (!matched) return noMatch(segmentGroup);      const newTree =         this.applyRedirectCommands(consumedSegments, route.redirectTo!, positionalParamSegments);     if (route.redirectTo!.startsWith('/')) {       return absoluteRedirect(newTree);     }      return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments: UrlSegment[]) => {       return this.expandSegment(           injector, segmentGroup, routes, newSegments.concat(remainingSegments), outlet, false);     }));   }    private matchSegmentAgainstRoute(       injector: EnvironmentInjector, rawSegmentGroup: UrlSegmentGroup, route: Route,       segments: UrlSegment[], outlet: string): Observable<UrlSegmentGroup> {     if (route.path === '**') {       // Only create the Route's `EnvironmentInjector` if it matches the attempted navigation       injector = getOrCreateRouteInjectorIfNeeded(route, injector);       if (route.loadChildren) {         const loaded$ = route._loadedRoutes ?             of({routes: route._loadedRoutes, injector: route._loadedInjector}) :             this.configLoader.loadChildren(injector, route);         return loaded$.pipe(map((cfg: LoadedRouterConfig) => {           route._loadedRoutes = cfg.routes;           route._loadedInjector = cfg.injector;           return new UrlSegmentGroup(segments, {});         }));       }        return of(new UrlSegmentGroup(segments, {}));     }      return matchWithChecks(rawSegmentGroup, route, segments, injector, this.urlSerializer)         .pipe(             switchMap(({matched, consumedSegments, remainingSegments}) => {               if (!matched) return noMatch(rawSegmentGroup);                // If the route has an injector created from providers, we should start using that.               injector = route._injector ?? injector;               const childConfig$ = this.getChildConfig(injector, route, segments);                return childConfig$.pipe(mergeMap((routerConfig: LoadedRouterConfig) => {                 const childInjector = routerConfig.injector ?? injector;                 const childConfig = routerConfig.routes;                  const {segmentGroup: splitSegmentGroup, slicedSegments} =                     split(rawSegmentGroup, consumedSegments, remainingSegments, childConfig);                 // See comment on the other call to `split` about why this is necessary.                 const segmentGroup =                     new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);                  if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {                   const expanded$ = this.expandChildren(childInjector, childConfig, segmentGroup);                   return expanded$.pipe(                       map((children: any) => new UrlSegmentGroup(consumedSegments, children)));                 }                  if (childConfig.length === 0 && slicedSegments.length === 0) {                   return of(new UrlSegmentGroup(consumedSegments, {}));                 }                  const matchedOnOutlet = getOutlet(route) === outlet;                 const expanded$ = this.expandSegment(                     childInjector, segmentGroup, childConfig, slicedSegments,                     matchedOnOutlet ? PRIMARY_OUTLET : outlet, true);                 return expanded$.pipe(                     map((cs: UrlSegmentGroup) => new UrlSegmentGroup(                             consumedSegments.concat(cs.segments), cs.children)));               }));             }),         );   }    private getChildConfig(injector: EnvironmentInjector, route: Route, segments: UrlSegment[]):       Observable<LoadedRouterConfig> {     if (route.children) {       // The children belong to the same module       return of({routes: route.children, injector});     }      if (route.loadChildren) {       // lazy children belong to the loaded module       if (route._loadedRoutes !== undefined) {         return of({routes: route._loadedRoutes, injector: route._loadedInjector});       }        return runCanLoadGuards(injector, route, segments, this.urlSerializer)           .pipe(mergeMap((shouldLoadResult: boolean) => {             if (shouldLoadResult) {               return this.configLoader.loadChildren(injector, route)                   .pipe(tap((cfg: LoadedRouterConfig) => {                     route._loadedRoutes = cfg.routes;                     route._loadedInjector = cfg.injector;                   }));             }             return canLoadFails(route);           }));     }      return of({routes: [], injector});   }    private lineralizeSegments(route: Route, urlTree: UrlTree): Observable<UrlSegment[]> {     let res: UrlSegment[] = [];     let c = urlTree.root;     while (true) {       res = res.concat(c.segments);       if (c.numberOfChildren === 0) {         return of(res);       }        if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {         return namedOutletsRedirect(route.redirectTo!);       }        c = c.children[PRIMARY_OUTLET];     }   }    private applyRedirectCommands(       segments: UrlSegment[], redirectTo: string, posParams: {[k: string]: UrlSegment}): UrlTree {     return this.applyRedirectCreateUrlTree(         redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);   }    private applyRedirectCreateUrlTree(       redirectTo: string, urlTree: UrlTree, segments: UrlSegment[],       posParams: {[k: string]: UrlSegment}): UrlTree {     const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);     return new UrlTree(         newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams),         urlTree.fragment);   }    private createQueryParams(redirectToParams: Params, actualParams: Params): Params {     const res: Params = {};     forEach(redirectToParams, (v: any, k: string) => {       const copySourceValue = typeof v === 'string' && v.startsWith(':');       if (copySourceValue) {         const sourceName = v.substring(1);         res[k] = actualParams[sourceName];       } else {         res[k] = v;       }     });     return res;   }    private createSegmentGroup(       redirectTo: string, group: UrlSegmentGroup, segments: UrlSegment[],       posParams: {[k: string]: UrlSegment}): UrlSegmentGroup {     const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);      let children: {[n: string]: UrlSegmentGroup} = {};     forEach(group.children, (child: UrlSegmentGroup, name: string) => {       children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);     });      return new UrlSegmentGroup(updatedSegments, children);   }    private createSegments(       redirectTo: string, redirectToSegments: UrlSegment[], actualSegments: UrlSegment[],       posParams: {[k: string]: UrlSegment}): UrlSegment[] {     return redirectToSegments.map(         s => s.path.startsWith(':') ? this.findPosParam(redirectTo, s, posParams) :                                       this.findOrReturn(s, actualSegments));   }    private findPosParam(       redirectTo: string, redirectToUrlSegment: UrlSegment,       posParams: {[k: string]: UrlSegment}): UrlSegment {     const pos = posParams[redirectToUrlSegment.path.substring(1)];     if (!pos)       throw new RuntimeError(           RuntimeErrorCode.MISSING_REDIRECT,           NG_DEV_MODE &&               `Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);     return pos;   }    private findOrReturn(redirectToUrlSegment: UrlSegment, actualSegments: UrlSegment[]): UrlSegment {     let idx = 0;     for (const s of actualSegments) {       if (s.path === redirectToUrlSegment.path) {         actualSegments.splice(idx);         return s;       }       idx++;     }     return redirectToUrlSegment;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector} from '@angular/core'; import {MonoTypeOperatorFunction} from 'rxjs'; import {map, switchMap} from 'rxjs/operators';  import {applyRedirects as applyRedirectsFn} from '../apply_redirects'; import {Routes} from '../models'; import {NavigationTransition} from '../navigation_transition'; import {RouterConfigLoader} from '../router_config_loader'; import {UrlSerializer} from '../url_tree';  export function applyRedirects(     environmentInjector: EnvironmentInjector, configLoader: RouterConfigLoader,     urlSerializer: UrlSerializer, config: Routes): MonoTypeOperatorFunction<NavigationTransition> {   return switchMap(       t =>           applyRedirectsFn(environmentInjector, configLoader, urlSerializer, t.extractedUrl, config)               .pipe(map(urlAfterRedirects => ({...t, urlAfterRedirects})))); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, Type, ɵRuntimeError as RuntimeError} from '@angular/core'; import {EmptyError, from, Observable, Observer, of} from 'rxjs'; import {catchError, concatMap, defaultIfEmpty, first, last as rxjsLast, map, scan, switchMap, takeWhile} from 'rxjs/operators';  import {RuntimeErrorCode} from './errors'; import {Data, ResolveData, Route, Routes} from './models'; import {ActivatedRouteSnapshot, inheritedParamsDataResolve, ParamsInheritanceStrategy, RouterStateSnapshot} from './router_state'; import {PRIMARY_OUTLET} from './shared'; import {UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree} from './url_tree'; import {last} from './utils/collection'; import {getOutlet, sortByMatchingOutlets} from './utils/config'; import {isImmediateMatch, matchWithChecks, noLeftoversInUrl, split} from './utils/config_matching'; import {TreeNode} from './utils/tree'; import {isEmptyError} from './utils/type_guards';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  class NoMatch {}  function newObservableError(e: unknown): Observable<RouterStateSnapshot> {   // TODO(atscott): This pattern is used throughout the router code and can be `throwError` instead.   return new Observable<RouterStateSnapshot>((obs: Observer<RouterStateSnapshot>) => obs.error(e)); }  export function recognize(     injector: EnvironmentInjector, rootComponentType: Type<any>|null, config: Routes,     urlTree: UrlTree, url: string, urlSerializer: UrlSerializer,     paramsInheritanceStrategy: ParamsInheritanceStrategy =         'emptyOnly'): Observable<RouterStateSnapshot> {   return new Recognizer(              injector, rootComponentType, config, urlTree, url, paramsInheritanceStrategy,              urlSerializer)       .recognize()       .pipe(switchMap(result => {         if (result === null) {           return newObservableError(new NoMatch());         } else {           return of(result);         }       })); }  export class Recognizer {   constructor(       private injector: EnvironmentInjector, private rootComponentType: Type<any>|null,       private config: Routes, private urlTree: UrlTree, private url: string,       private paramsInheritanceStrategy: ParamsInheritanceStrategy,       private readonly urlSerializer: UrlSerializer) {}    recognize(): Observable<RouterStateSnapshot|null> {     const rootSegmentGroup =         split(this.urlTree.root, [], [], this.config.filter(c => c.redirectTo === undefined))             .segmentGroup;      return this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET)         .pipe(map(children => {           if (children === null) {             return null;           }            // Use Object.freeze to prevent readers of the Router state from modifying it outside of a           // navigation, resulting in the router being out of sync with the browser.           const root = new ActivatedRouteSnapshot(               [], Object.freeze({}), Object.freeze({...this.urlTree.queryParams}),               this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null,               this.urlTree.root, -1, {});            const rootNode = new TreeNode<ActivatedRouteSnapshot>(root, children);           const routeState = new RouterStateSnapshot(this.url, rootNode);           this.inheritParamsAndData(routeState._root);           return routeState;         }));   }    inheritParamsAndData(routeNode: TreeNode<ActivatedRouteSnapshot>): void {     const route = routeNode.value;      const i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);     route.params = Object.freeze(i.params);     route.data = Object.freeze(i.data);      routeNode.children.forEach(n => this.inheritParamsAndData(n));   }    processSegmentGroup(       injector: EnvironmentInjector, config: Route[], segmentGroup: UrlSegmentGroup,       outlet: string): Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {       return this.processChildren(injector, config, segmentGroup);     }      return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet);   }    /**    * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if    * we cannot find a match for _any_ of the children.    *    * @param config - The `Routes` to match against    * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the    *     config.    */   processChildren(injector: EnvironmentInjector, config: Route[], segmentGroup: UrlSegmentGroup):       Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     return from(Object.keys(segmentGroup.children))         .pipe(             concatMap(childOutlet => {               const child = segmentGroup.children[childOutlet];               // Sort the config so that routes with outlets that match the one being activated               // appear first, followed by routes for other outlets, which might match if they have               // an empty path.               const sortedConfig = sortByMatchingOutlets(config, childOutlet);               return this.processSegmentGroup(injector, sortedConfig, child, childOutlet);             }),             scan((children, outletChildren) => {               if (!children || !outletChildren) return null;               children.push(...outletChildren);               return children;             }),             takeWhile(children => children !== null),             defaultIfEmpty(null as TreeNode<ActivatedRouteSnapshot>[] | null),             rxjsLast(),             map(children => {               if (children === null) return null;               // Because we may have matched two outlets to the same empty path segment, we can have               // multiple activated results for the same outlet. We should merge the children of               // these results so the final return value is only one `TreeNode` per outlet.               const mergedChildren = mergeEmptyPathMatches(children);               if (NG_DEV_MODE) {                 // This should really never happen - we are only taking the first match for each                 // outlet and merge the empty path matches.                 checkOutletNameUniqueness(mergedChildren);               }               sortActivatedRouteSnapshots(mergedChildren);               return mergedChildren;             }),         );   }    processSegment(       injector: EnvironmentInjector, routes: Route[], segmentGroup: UrlSegmentGroup,       segments: UrlSegment[], outlet: string): Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     return from(routes).pipe(         concatMap(r => {           return this.processSegmentAgainstRoute(               r._injector ?? injector, r, segmentGroup, segments, outlet);         }),         first((x): x is TreeNode<ActivatedRouteSnapshot>[] => !!x), catchError(e => {           if (isEmptyError(e)) {             if (noLeftoversInUrl(segmentGroup, segments, outlet)) {               return of([]);             }             return of(null);           }           throw e;         }));   }    processSegmentAgainstRoute(       injector: EnvironmentInjector, route: Route, rawSegment: UrlSegmentGroup,       segments: UrlSegment[], outlet: string): Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     if (route.redirectTo || !isImmediateMatch(route, rawSegment, segments, outlet)) return of(null);      let matchResult: Observable<{       snapshot: ActivatedRouteSnapshot,       consumedSegments: UrlSegment[],       remainingSegments: UrlSegment[],     }|null>;      if (route.path === '**') {       const params = segments.length > 0 ? last(segments)!.parameters : {};       const pathIndexShift = getPathIndexShift(rawSegment) + segments.length;       const snapshot = new ActivatedRouteSnapshot(           segments, params, Object.freeze({...this.urlTree.queryParams}), this.urlTree.fragment,           getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null,           route, getSourceSegmentGroup(rawSegment), pathIndexShift, getResolve(route));       matchResult = of({         snapshot,         consumedSegments: [],         remainingSegments: [],       });     } else {       matchResult =           matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer)               .pipe(map(({matched, consumedSegments, remainingSegments, parameters}) => {                 if (!matched) {                   return null;                 }                 const pathIndexShift = getPathIndexShift(rawSegment) + consumedSegments.length;                  const snapshot = new ActivatedRouteSnapshot(                     consumedSegments, parameters, Object.freeze({...this.urlTree.queryParams}),                     this.urlTree.fragment, getData(route), getOutlet(route),                     route.component ?? route._loadedComponent ?? null, route,                     getSourceSegmentGroup(rawSegment), pathIndexShift, getResolve(route));                 return {snapshot, consumedSegments, remainingSegments};               }));     }      return matchResult.pipe(switchMap((result) => {       if (result === null) {         return of(null);       }       const {snapshot, consumedSegments, remainingSegments} = result;       // If the route has an injector created from providers, we should start using that.       injector = route._injector ?? injector;       const childInjector = route._loadedInjector ?? injector;       const childConfig: Route[] = getChildConfig(route);        const {segmentGroup, slicedSegments} = split(           rawSegment, consumedSegments, remainingSegments,           // Filter out routes with redirectTo because we are trying to create activated route           // snapshots and don't handle redirects here. That should have been done in           // `applyRedirects`.           childConfig.filter(c => c.redirectTo === undefined));        if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {         return this.processChildren(childInjector, childConfig, segmentGroup).pipe(map(children => {           if (children === null) {             return null;           }           return [new TreeNode<ActivatedRouteSnapshot>(snapshot, children)];         }));       }        if (childConfig.length === 0 && slicedSegments.length === 0) {         return of([new TreeNode<ActivatedRouteSnapshot>(snapshot, [])]);       }        const matchedOnOutlet = getOutlet(route) === outlet;       // If we matched a config due to empty path match on a different outlet, we need to       // continue passing the current outlet for the segment rather than switch to PRIMARY.       // Note that we switch to primary when we have a match because outlet configs look like       // this: {path: 'a', outlet: 'a', children: [       //  {path: 'b', component: B},       //  {path: 'c', component: C},       // ]}       // Notice that the children of the named outlet are configured with the primary outlet       return this           .processSegment(               childInjector, childConfig, segmentGroup, slicedSegments,               matchedOnOutlet ? PRIMARY_OUTLET : outlet)           .pipe(map(children => {             if (children === null) {               return null;             }             return [new TreeNode<ActivatedRouteSnapshot>(snapshot, children)];           }));     }));   } }  function sortActivatedRouteSnapshots(nodes: TreeNode<ActivatedRouteSnapshot>[]): void {   nodes.sort((a, b) => {     if (a.value.outlet === PRIMARY_OUTLET) return -1;     if (b.value.outlet === PRIMARY_OUTLET) return 1;     return a.value.outlet.localeCompare(b.value.outlet);   }); }  function getChildConfig(route: Route): Route[] {   if (route.children) {     return route.children;   }    if (route.loadChildren) {     return route._loadedRoutes!;   }    return []; }  function hasEmptyPathConfig(node: TreeNode<ActivatedRouteSnapshot>) {   const config = node.value.routeConfig;   return config && config.path === '' && config.redirectTo === undefined; }  /**  * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with  * the children from each duplicate. This is necessary because different outlets can match a  * single empty path route config and the results need to then be merged.  */ function mergeEmptyPathMatches(nodes: Array<TreeNode<ActivatedRouteSnapshot>>):     Array<TreeNode<ActivatedRouteSnapshot>> {   const result: Array<TreeNode<ActivatedRouteSnapshot>> = [];   // The set of nodes which contain children that were merged from two duplicate empty path nodes.   const mergedNodes: Set<TreeNode<ActivatedRouteSnapshot>> = new Set();    for (const node of nodes) {     if (!hasEmptyPathConfig(node)) {       result.push(node);       continue;     }      const duplicateEmptyPathNode =         result.find(resultNode => node.value.routeConfig === resultNode.value.routeConfig);     if (duplicateEmptyPathNode !== undefined) {       duplicateEmptyPathNode.children.push(...node.children);       mergedNodes.add(duplicateEmptyPathNode);     } else {       result.push(node);     }   }   // For each node which has children from multiple sources, we need to recompute a new `TreeNode`   // by also merging those children. This is necessary when there are multiple empty path configs   // in a row. Put another way: whenever we combine children of two nodes, we need to also check   // if any of those children can be combined into a single node as well.   for (const mergedNode of mergedNodes) {     const mergedChildren = mergeEmptyPathMatches(mergedNode.children);     result.push(new TreeNode(mergedNode.value, mergedChildren));   }   return result.filter(n => !mergedNodes.has(n)); }  function checkOutletNameUniqueness(nodes: TreeNode<ActivatedRouteSnapshot>[]): void {   const names: {[k: string]: ActivatedRouteSnapshot} = {};   nodes.forEach(n => {     const routeWithSameOutletName = names[n.value.outlet];     if (routeWithSameOutletName) {       const p = routeWithSameOutletName.url.map(s => s.toString()).join('/');       const c = n.value.url.map(s => s.toString()).join('/');       throw new RuntimeError(           RuntimeErrorCode.TWO_SEGMENTS_WITH_SAME_OUTLET,           NG_DEV_MODE && `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);     }     names[n.value.outlet] = n.value;   }); }  function getSourceSegmentGroup(segmentGroup: UrlSegmentGroup): UrlSegmentGroup {   let s = segmentGroup;   while (s._sourceSegment) {     s = s._sourceSegment;   }   return s; }  function getPathIndexShift(segmentGroup: UrlSegmentGroup): number {   let s = segmentGroup;   let res = s._segmentIndexShift ?? 0;   while (s._sourceSegment) {     s = s._sourceSegment;     res += s._segmentIndexShift ?? 0;   }   return res - 1; }  function getCorrectedPathIndexShift(segmentGroup: UrlSegmentGroup): number {   let s = segmentGroup;   let res = s._segmentIndexShiftCorrected ?? s._segmentIndexShift ?? 0;   while (s._sourceSegment) {     s = s._sourceSegment;     res += s._segmentIndexShiftCorrected ?? s._segmentIndexShift ?? 0;   }   return res - 1; }  function getData(route: Route): Data {   return route.data || {}; }  function getResolve(route: Route): ResolveData {   return route.resolve || {}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, Type} from '@angular/core'; import {MonoTypeOperatorFunction} from 'rxjs'; import {map, mergeMap} from 'rxjs/operators';  import {Route} from '../models'; import {NavigationTransition} from '../navigation_transition'; import {recognize as recognizeFn} from '../recognize'; import {UrlSerializer} from '../url_tree';  export function recognize(     injector: EnvironmentInjector, rootComponentType: Type<any>|null, config: Route[],     serializer: UrlSerializer, paramsInheritanceStrategy: 'emptyOnly'|'always'):     MonoTypeOperatorFunction<NavigationTransition> {   return mergeMap(       t => recognizeFn(                injector, rootComponentType, config, t.urlAfterRedirects!,                serializer.serialize(t.urlAfterRedirects!), serializer, paramsInheritanceStrategy)                .pipe(map(targetSnapshot => ({...t, targetSnapshot})))); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, ProviderToken} from '@angular/core'; import {EMPTY, from, MonoTypeOperatorFunction, Observable, of, throwError} from 'rxjs'; import {catchError, concatMap, first, map, mapTo, mergeMap, takeLast, tap} from 'rxjs/operators';  import {ResolveData, Route} from '../models'; import {NavigationTransition} from '../navigation_transition'; import {ActivatedRouteSnapshot, inheritedParamsDataResolve, RouterStateSnapshot} from '../router_state'; import {RouteTitleKey} from '../shared'; import {wrapIntoObservable} from '../utils/collection'; import {getClosestRouteInjector} from '../utils/config'; import {getTokenOrFunctionIdentity} from '../utils/preactivation'; import {isEmptyError} from '../utils/type_guards';  export function resolveData(     paramsInheritanceStrategy: 'emptyOnly'|'always',     injector: EnvironmentInjector): MonoTypeOperatorFunction<NavigationTransition> {   return mergeMap(t => {     const {targetSnapshot, guards: {canActivateChecks}} = t;      if (!canActivateChecks.length) {       return of(t);     }     let canActivateChecksResolved = 0;     return from(canActivateChecks)         .pipe(             concatMap(                 check =>                     runResolve(check.route, targetSnapshot!, paramsInheritanceStrategy, injector)),             tap(() => canActivateChecksResolved++),             takeLast(1),             mergeMap(_ => canActivateChecksResolved === canActivateChecks.length ? of(t) : EMPTY),         );   }); }  function runResolve(     futureARS: ActivatedRouteSnapshot, futureRSS: RouterStateSnapshot,     paramsInheritanceStrategy: 'emptyOnly'|'always', injector: EnvironmentInjector) {   const config = futureARS.routeConfig;   const resolve = futureARS._resolve;   if (config?.title !== undefined && !hasStaticTitle(config)) {     resolve[RouteTitleKey] = config.title;   }   return resolveNode(resolve, futureARS, futureRSS, injector).pipe(map((resolvedData: any) => {     futureARS._resolvedData = resolvedData;     futureARS.data = inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve;     if (config && hasStaticTitle(config)) {       futureARS.data[RouteTitleKey] = config.title;     }     return null;   })); }  function resolveNode(     resolve: ResolveData, futureARS: ActivatedRouteSnapshot, futureRSS: RouterStateSnapshot,     injector: EnvironmentInjector): Observable<any> {   const keys = getDataKeys(resolve);   if (keys.length === 0) {     return of({});   }   const data: {[k: string|symbol]: any} = {};   return from(keys).pipe(       mergeMap(           key => getResolver(resolve[key], futureARS, futureRSS, injector)                      .pipe(first(), tap((value: any) => {                              data[key] = value;                            }))),       takeLast(1),       mapTo(data),       catchError((e: unknown) => isEmptyError(e as Error) ? EMPTY : throwError(e)),   ); }  function getDataKeys(obj: Object): Array<string|symbol> {   return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; }  function getResolver(     injectionToken: ProviderToken<any>|Function, futureARS: ActivatedRouteSnapshot,     futureRSS: RouterStateSnapshot, injector: EnvironmentInjector): Observable<any> {   const closestInjector = getClosestRouteInjector(futureARS) ?? injector;   const resolver = getTokenOrFunctionIdentity(injectionToken, closestInjector);   const resolverValue = resolver.resolve ?       resolver.resolve(futureARS, futureRSS) :       closestInjector.runInContext(() => resolver(futureARS, futureRSS));   return wrapIntoObservable(resolverValue); }  function hasStaticTitle(config: Route) {   return typeof config.title === 'string' || config.title === null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {from, MonoTypeOperatorFunction, ObservableInput, of} from 'rxjs'; import {map, switchMap} from 'rxjs/operators';  /**  * Perform a side effect through a switchMap for every emission on the source Observable,  * but return an Observable that is identical to the source. It's essentially the same as  * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,  * it will wait before continuing with the original value.  */ export function switchTap<T>(next: (x: T) => void|ObservableInput<any>):     MonoTypeOperatorFunction<T> {   return switchMap(v => {     const nextResult = next(v);     if (nextResult) {       return from(nextResult).pipe(map(() => v));     }     return of(v);   }); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injector, NgModuleFactory} from '@angular/core'; import {Observable} from 'rxjs';  // This file exists to support the legacy `loadChildren: string` behavior being patched back into // Angular.  export function deprecatedLoadChildrenString(     injector: Injector, loadChildren: unknown): Observable<NgModuleFactory<any>>|null {   return null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Compiler, EnvironmentInjector, Injectable, InjectFlags, InjectionToken, Injector, NgModuleFactory, Type} from '@angular/core'; import {ConnectableObservable, from, Observable, of, Subject} from 'rxjs'; import {catchError, finalize, map, mergeMap, refCount, tap} from 'rxjs/operators';  import {deprecatedLoadChildrenString} from './deprecated_load_children'; import {DefaultExport, LoadChildren, LoadChildrenCallback, LoadedRouterConfig, Route, Routes} from './models'; import {flatten, wrapIntoObservable} from './utils/collection'; import {assertStandalone, standardizeConfig, validateConfig} from './utils/config';   const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * The [DI token](guide/glossary/#di-token) for a router configuration.  *  * `ROUTES` is a low level API for router configuration via dependency injection.  *  * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,  * `provideRouter`, or `Router.resetConfig()`.  *  * @publicApi  */ export const ROUTES = new InjectionToken<Route[][]>('ROUTES');  type ComponentLoader = Observable<Type<unknown>>;  @Injectable({providedIn: 'root'}) export class RouterConfigLoader {   private componentLoaders = new WeakMap<Route, ComponentLoader>();   private childrenLoaders = new WeakMap<Route, Observable<LoadedRouterConfig>>();   onLoadStartListener?: (r: Route) => void;   onLoadEndListener?: (r: Route) => void;    constructor(       private injector: Injector,       private compiler: Compiler,   ) {}    loadComponent(route: Route): Observable<Type<unknown>> {     if (this.componentLoaders.get(route)) {       return this.componentLoaders.get(route)!;     } else if (route._loadedComponent) {       return of(route._loadedComponent);     }      if (this.onLoadStartListener) {       this.onLoadStartListener(route);     }     const loadRunner = wrapIntoObservable(route.loadComponent!())                            .pipe(                                map(maybeUnwrapDefaultExport),                                tap(component => {                                  if (this.onLoadEndListener) {                                    this.onLoadEndListener(route);                                  }                                  NG_DEV_MODE && assertStandalone(route.path ?? '', component);                                  route._loadedComponent = component;                                }),                                finalize(() => {                                  this.componentLoaders.delete(route);                                }),                            );     // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much     const loader =         new ConnectableObservable(loadRunner, () => new Subject<Type<unknown>>()).pipe(refCount());     this.componentLoaders.set(route, loader);     return loader;   }    loadChildren(parentInjector: Injector, route: Route): Observable<LoadedRouterConfig> {     if (this.childrenLoaders.get(route)) {       return this.childrenLoaders.get(route)!;     } else if (route._loadedRoutes) {       return of({routes: route._loadedRoutes, injector: route._loadedInjector});     }      if (this.onLoadStartListener) {       this.onLoadStartListener(route);     }     const moduleFactoryOrRoutes$ = this.loadModuleFactoryOrRoutes(route.loadChildren!);     const loadRunner = moduleFactoryOrRoutes$.pipe(         map((factoryOrRoutes: NgModuleFactory<any>|Routes) => {           if (this.onLoadEndListener) {             this.onLoadEndListener(route);           }           // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is no           // injector associated with lazy loading a `Route` array.           let injector: EnvironmentInjector|undefined;           let rawRoutes: Route[];           let requireStandaloneComponents = false;           if (Array.isArray(factoryOrRoutes)) {             rawRoutes = factoryOrRoutes;             requireStandaloneComponents = true;           } else {             injector = factoryOrRoutes.create(parentInjector).injector;             // When loading a module that doesn't provide `RouterModule.forChild()` preloader             // will get stuck in an infinite loop. The child module's Injector will look to             // its parent `Injector` when it doesn't find any ROUTES so it will return routes             // for it's parent module instead.             rawRoutes = flatten(injector.get(ROUTES, [], InjectFlags.Self | InjectFlags.Optional));           }           const routes = rawRoutes.map(standardizeConfig);           NG_DEV_MODE && validateConfig(routes, route.path, requireStandaloneComponents);           return {routes, injector};         }),         finalize(() => {           this.childrenLoaders.delete(route);         }),     );     // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much     const loader = new ConnectableObservable(loadRunner, () => new Subject<LoadedRouterConfig>())                        .pipe(refCount());     this.childrenLoaders.set(route, loader);     return loader;   }    private loadModuleFactoryOrRoutes(loadChildren: LoadChildren):       Observable<NgModuleFactory<any>|Routes> {     const deprecatedResult = deprecatedLoadChildrenString(this.injector, loadChildren);     if (deprecatedResult) {       return deprecatedResult;     }     return wrapIntoObservable((loadChildren as LoadChildrenCallback)())         .pipe(             map(maybeUnwrapDefaultExport),             mergeMap((t) => {               if (t instanceof NgModuleFactory || Array.isArray(t)) {                 return of(t);               } else {                 return from(this.compiler.compileModuleAsync(t));               }             }),         );   } }  function isWrappedDefaultExport<T>(value: T|DefaultExport<T>): value is DefaultExport<T> {   // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be   // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that   // `default` will be a renamed property.   return value && typeof value === 'object' && 'default' in value; }  function maybeUnwrapDefaultExport<T>(input: T|DefaultExport<T>): T {   // As per `isWrappedDefaultExport`, the `default` key here is generated by the browser and not   // subject to property renaming, so we reference it with bracket access.   return isWrappedDefaultExport(input) ? input['default'] : input; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, inject, Injectable, Type} from '@angular/core'; import {BehaviorSubject, combineLatest, EMPTY, Observable, of, Subject} from 'rxjs'; import {catchError, defaultIfEmpty, filter, finalize, map, switchMap, take, tap} from 'rxjs/operators';  import {createRouterState} from './create_router_state'; import {Event, GuardsCheckEnd, GuardsCheckStart, IMPERATIVE_NAVIGATION, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NavigationTrigger, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RoutesRecognized} from './events'; import {NavigationBehaviorOptions, QueryParamsHandling, Route, Routes} from './models'; import {isNavigationCancelingError, isRedirectingNavigationCancelingError, redirectingNavigationError} from './navigation_canceling_error'; import {activateRoutes} from './operators/activate_routes'; import {applyRedirects} from './operators/apply_redirects'; import {checkGuards} from './operators/check_guards'; import {recognize} from './operators/recognize'; import {resolveData} from './operators/resolve_data'; import {switchTap} from './operators/switch_tap'; import {TitleStrategy} from './page_title_strategy'; import {RouteReuseStrategy} from './route_reuse_strategy'; import {ErrorHandler} from './router_config'; import {RouterConfigLoader} from './router_config_loader'; import {ChildrenOutletContexts} from './router_outlet_context'; import {ActivatedRoute, ActivatedRouteSnapshot, createEmptyState, RouterState, RouterStateSnapshot} from './router_state'; import {Params} from './shared'; import {UrlHandlingStrategy} from './url_handling_strategy'; import {isUrlTree, UrlSerializer, UrlTree} from './url_tree'; import {Checks, getAllRouteGuards} from './utils/preactivation';   const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * @description  *  * Options that modify the `Router` URL.  * Supply an object containing any of these properties to a `Router` navigation function to  * control how the target URL should be constructed.  *  * @see [Router.navigate() method](api/router/Router#navigate)  * @see [Router.createUrlTree() method](api/router/Router#createurltree)  * @see [Routing and Navigation guide](guide/router)  *  * @publicApi  */ export interface UrlCreationOptions {   /**    * Specifies a root URI to use for relative navigation.    *    * For example, consider the following route configuration where the parent route    * has two children.    *    * ```    * [{    *   path: 'parent',    *   component: ParentComponent,    *   children: [{    *     path: 'list',    *     component: ListComponent    *   },{    *     path: 'child',    *     component: ChildComponent    *   }]    * }]    * ```    *    * The following `go()` function navigates to the `list` route by    * interpreting the destination URI as relative to the activated `child`  route    *    * ```    *  @Component({...})    *  class ChildComponent {    *    constructor(private router: Router, private route: ActivatedRoute) {}    *    *    go() {    *      router.navigate(['../list'], { relativeTo: this.route });    *    }    *  }    * ```    *    * A value of `null` or `undefined` indicates that the navigation commands should be applied    * relative to the root.    */   relativeTo?: ActivatedRoute|null;    /**    * Sets query parameters to the URL.    *    * ```    * // Navigate to /results?page=1    * router.navigate(['/results'], { queryParams: { page: 1 } });    * ```    */   queryParams?: Params|null;    /**    * Sets the hash fragment for the URL.    *    * ```    * // Navigate to /results#top    * router.navigate(['/results'], { fragment: 'top' });    * ```    */   fragment?: string;    /**    * How to handle query parameters in the router link for the next navigation.    * One of:    * * `preserve` : Preserve current parameters.    * * `merge` : Merge new with current parameters.    *    * The \"preserve\" option discards any new query params:    * ```    * // from /view1?page=1 to/view2?page=1    * router.navigate(['/view2'], { queryParams: { page: 2 },  queryParamsHandling: \"preserve\"    * });    * ```    * The \"merge\" option appends new query params to the params from the current URL:    * ```    * // from /view1?page=1 to/view2?page=1&otherKey=2    * router.navigate(['/view2'], { queryParams: { otherKey: 2 },  queryParamsHandling: \"merge\"    * });    * ```    * In case of a key collision between current parameters and those in the `queryParams` object,    * the new value is used.    *    */   queryParamsHandling?: QueryParamsHandling|null;    /**    * When true, preserves the URL fragment for the next navigation    *    * ```    * // Preserve fragment from /results#top to /view#top    * router.navigate(['/view'], { preserveFragment: true });    * ```    */   preserveFragment?: boolean; }  /**  * @description  *  * Options that modify the `Router` navigation strategy.  * Supply an object containing any of these properties to a `Router` navigation function to  * control how the target URL should be constructed or interpreted.  *  * @see [Router.navigate() method](api/router/Router#navigate)  * @see [Router.navigateByUrl() method](api/router/Router#navigatebyurl)  * @see [Router.createUrlTree() method](api/router/Router#createurltree)  * @see [Routing and Navigation guide](guide/router)  * @see UrlCreationOptions  * @see NavigationBehaviorOptions  *  * @publicApi  */ export interface NavigationExtras extends UrlCreationOptions, NavigationBehaviorOptions {}  export type RestoredState = {   [k: string]: any,   // TODO(#27607): Remove `navigationId` and `ɵrouterPageId` and move to `ng` or `ɵ` namespace.   navigationId: number,   // The `ɵ` prefix is there to reduce the chance of colliding with any existing user properties on   // the history state.   ɵrouterPageId?: number, };  /**  * Information about a navigation operation.  * Retrieve the most recent navigation object with the  * [Router.getCurrentNavigation() method](api/router/Router#getcurrentnavigation) .  *  * * *id* : The unique identifier of the current navigation.  * * *initialUrl* : The target URL passed into the `Router#navigateByUrl()` call before navigation.  * This is the value before the router has parsed or applied redirects to it.  * * *extractedUrl* : The initial target URL after being parsed with `UrlSerializer.extract()`.  * * *finalUrl* : The extracted URL after redirects have been applied.  * This URL may not be available immediately, therefore this property can be `undefined`.  * It is guaranteed to be set after the `RoutesRecognized` event fires.  * * *trigger* : Identifies how this navigation was triggered.  * -- 'imperative'--Triggered by `router.navigateByUrl` or `router.navigate`.  * -- 'popstate'--Triggered by a popstate event.  * -- 'hashchange'--Triggered by a hashchange event.  * * *extras* : A `NavigationExtras` options object that controlled the strategy used for this  * navigation.  * * *previousNavigation* : The previously successful `Navigation` object. Only one previous  * navigation is available, therefore this previous `Navigation` object has a `null` value for its  * own `previousNavigation`.  *  * @publicApi  */ export interface Navigation {   /**    * The unique identifier of the current navigation.    */   id: number;   /**    * The target URL passed into the `Router#navigateByUrl()` call before navigation. This is    * the value before the router has parsed or applied redirects to it.    */   initialUrl: UrlTree;   /**    * The initial target URL after being parsed with `UrlHandlingStrategy.extract()`.    */   extractedUrl: UrlTree;   /**    * The extracted URL after redirects have been applied.    * This URL may not be available immediately, therefore this property can be `undefined`.    * It is guaranteed to be set after the `RoutesRecognized` event fires.    */   finalUrl?: UrlTree;   /**    * Identifies how this navigation was triggered.    *    * * 'imperative'--Triggered by `router.navigateByUrl` or `router.navigate`.    * * 'popstate'--Triggered by a popstate event.    * * 'hashchange'--Triggered by a hashchange event.    */   trigger: 'imperative'|'popstate'|'hashchange';   /**    * Options that controlled the strategy used for this navigation.    * See `NavigationExtras`.    */   extras: NavigationExtras;   /**    * The previously successful `Navigation` object. Only one previous navigation    * is available, therefore this previous `Navigation` object has a `null` value    * for its own `previousNavigation`.    */   previousNavigation: Navigation|null; }  export interface NavigationTransition {   id: number;   targetPageId: number;   currentUrlTree: UrlTree;   extractedUrl: UrlTree;   currentRawUrl: UrlTree;   urlAfterRedirects?: UrlTree;   rawUrl: UrlTree;   extras: NavigationExtras;   resolve: any;   reject: any;   promise: Promise<boolean>;   source: NavigationTrigger;   restoredState: RestoredState|null;   currentSnapshot: RouterStateSnapshot;   targetSnapshot: RouterStateSnapshot|null;   currentRouterState: RouterState;   targetRouterState: RouterState|null;   guards: Checks;   guardsResult: boolean|UrlTree|null; }  /**  * The interface from the Router needed by the transitions. Used to avoid a circular dependency on  * Router. This interface should be whittled down with future refactors. For example, we do not need  * to get `UrlSerializer` from the Router. We can instead inject it in `NavigationTransitions`  * directly.  */ interface InternalRouterInterface {   browserUrlTree: UrlTree;   currentUrlTree: UrlTree;   rawUrlTree: UrlTree;   readonly routerState: RouterState;   errorHandler: ErrorHandler;   titleStrategy?: TitleStrategy;   navigated: boolean;   urlHandlingStrategy: UrlHandlingStrategy;   routeReuseStrategy: RouteReuseStrategy;   onSameUrlNavigation: 'reload'|'ignore';   paramsInheritanceStrategy: 'emptyOnly'|'always';   urlUpdateStrategy: 'deferred'|'eager';   serializeUrl(url: UrlTree): string;   config: Routes;   setBrowserUrl(url: UrlTree, t: NavigationTransition): void;   restoreHistory(t: NavigationTransition, restoringFromCaughtError?: boolean): void;   scheduleNavigation(       rawUrl: UrlTree, source: NavigationTrigger, restoredState: RestoredState|null,       extras: NavigationExtras,       priorPromise?: {resolve: any, reject: any, promise: Promise<boolean>}): Promise<boolean>; }  @Injectable({providedIn: 'root'}) export class NavigationTransitions {   currentNavigation: Navigation|null = null;   lastSuccessfulNavigation: Navigation|null = null;   readonly events = new Subject<Event>();   private readonly configLoader = inject(RouterConfigLoader);   private readonly environmentInjector = inject(EnvironmentInjector);   private readonly urlSerializer = inject(UrlSerializer);   private readonly rootContexts = inject(ChildrenOutletContexts);   navigationId = 0;   get hasRequestedNavigation() {     return this.navigationId !== 0;   }   private transitions?: BehaviorSubject<NavigationTransition>;   /**    * Hook that enables you to pause navigation after the preactivation phase.    * Used by `RouterModule`.    *    * @internal    */   afterPreactivation: () => Observable<void> = () => of(void 0);   /** @internal */   rootComponentType: Type<any>|null = null;    constructor() {     const onLoadStart = (r: Route) => this.events.next(new RouteConfigLoadStart(r));     const onLoadEnd = (r: Route) => this.events.next(new RouteConfigLoadEnd(r));     this.configLoader.onLoadEndListener = onLoadEnd;     this.configLoader.onLoadStartListener = onLoadStart;   }    complete() {     this.transitions?.complete();   }    handleNavigationRequest(       request: Pick<           NavigationTransition,           'targetPageId'|'source'|'restoredState'|'currentUrlTree'|'currentRawUrl'|'rawUrl'|           'extras'|'resolve'|'reject'|'promise'|'currentSnapshot'|'currentRouterState'>) {     const id = ++this.navigationId;     this.transitions?.next({...this.transitions.value, ...request, id});   }    setupNavigations(router: InternalRouterInterface): Observable<NavigationTransition> {     this.transitions = new BehaviorSubject<NavigationTransition>({       id: 0,       targetPageId: 0,       currentUrlTree: router.currentUrlTree,       currentRawUrl: router.currentUrlTree,       extractedUrl: router.urlHandlingStrategy.extract(router.currentUrlTree),       urlAfterRedirects: router.urlHandlingStrategy.extract(router.currentUrlTree),       rawUrl: router.currentUrlTree,       extras: {},       resolve: null,       reject: null,       promise: Promise.resolve(true),       source: IMPERATIVE_NAVIGATION,       restoredState: null,       currentSnapshot: router.routerState.snapshot,       targetSnapshot: null,       currentRouterState: router.routerState,       targetRouterState: null,       guards: {canActivateChecks: [], canDeactivateChecks: []},       guardsResult: null,     });     return this.transitions.pipe(                filter(t => t.id !== 0),                 // Extract URL                map(t =>                        ({...t, extractedUrl: router.urlHandlingStrategy.extract(t.rawUrl)} as                         NavigationTransition)),                 // Using switchMap so we cancel executing navigations when a new one comes in                switchMap(overallTransitionState => {                  let completed = false;                  let errored = false;                  return of(overallTransitionState)                      .pipe(                          // Store the Navigation object                          tap(t => {                            this.currentNavigation = {                              id: t.id,                              initialUrl: t.rawUrl,                              extractedUrl: t.extractedUrl,                              trigger: t.source,                              extras: t.extras,                              previousNavigation: !this.lastSuccessfulNavigation ? null : {                                ...this.lastSuccessfulNavigation,                                previousNavigation: null,                              },                            };                          }),                          switchMap(t => {                            const browserUrlTree = router.browserUrlTree.toString();                            const urlTransition = !router.navigated ||                                t.extractedUrl.toString() !== browserUrlTree ||                                // Navigations which succeed or ones which fail and are cleaned up                                // correctly should result in `browserUrlTree` and `currentUrlTree`                                // matching. If this is not the case, assume something went wrong and                                // try processing the URL again.                                browserUrlTree !== router.currentUrlTree.toString();                              const onSameUrlNavigation =                                t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;                            if (!urlTransition && onSameUrlNavigation !== 'reload') {                              const reason = NG_DEV_MODE ?                                  `Navigation to ${                                      t.rawUrl} was ignored because it is the same as the current Router URL.` :                                  '';                              this.events.next(new NavigationSkipped(                                  t.id, router.serializeUrl(overallTransitionState.rawUrl), reason,                                  NavigationSkippedCode.IgnoredSameUrlNavigation));                              router.rawUrlTree = t.rawUrl;                              t.resolve(null);                              return EMPTY;                            }                             if (router.urlHandlingStrategy.shouldProcessUrl(t.rawUrl)) {                              // If the source of the navigation is from a browser event, the URL is                              // already updated. We already need to sync the internal state.                              if (isBrowserTriggeredNavigation(t.source)) {                                router.browserUrlTree = t.extractedUrl;                              }                              return of(t).pipe(                                  // Fire NavigationStart event                                  switchMap(t => {                                    const transition = this.transitions?.getValue();                                    this.events.next(new NavigationStart(                                        t.id, this.urlSerializer.serialize(t.extractedUrl), t.source,                                        t.restoredState));                                    if (transition !== this.transitions?.getValue()) {                                      return EMPTY;                                    }                                     // This delay is required to match old behavior that forced                                    // navigation to always be async                                    return Promise.resolve(t);                                  }),                                   // ApplyRedirects                                  applyRedirects(                                      this.environmentInjector, this.configLoader,                                      this.urlSerializer, router.config),                                   // Update the currentNavigation                                  // `urlAfterRedirects` is guaranteed to be set after this point                                  tap(t => {                                    this.currentNavigation = {                                      ...this.currentNavigation!,                                      finalUrl: t.urlAfterRedirects                                    };                                    overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;                                  }),                                   // Recognize                                  recognize(                                      this.environmentInjector, this.rootComponentType,                                      router.config, this.urlSerializer,                                      router.paramsInheritanceStrategy),                                   // Update URL if in `eager` update mode                                  tap(t => {                                    overallTransitionState.targetSnapshot = t.targetSnapshot;                                    if (router.urlUpdateStrategy === 'eager') {                                      if (!t.extras.skipLocationChange) {                                        const rawUrl = router.urlHandlingStrategy.merge(                                            t.urlAfterRedirects!, t.rawUrl);                                        router.setBrowserUrl(rawUrl, t);                                      }                                      router.browserUrlTree = t.urlAfterRedirects!;                                    }                                     // Fire RoutesRecognized                                    const routesRecognized = new RoutesRecognized(                                        t.id, this.urlSerializer.serialize(t.extractedUrl),                                        this.urlSerializer.serialize(t.urlAfterRedirects!),                                        t.targetSnapshot!);                                    this.events.next(routesRecognized);                                  }));                            } else if (                                urlTransition &&                                router.urlHandlingStrategy.shouldProcessUrl(router.rawUrlTree)) {                              /* When the current URL shouldn't be processed, but the previous one                               * was, we handle this \"error condition\" by navigating to the                               * previously successful URL, but leaving the URL intact.*/                              const {id, extractedUrl, source, restoredState, extras} = t;                              const navStart = new NavigationStart(                                  id, this.urlSerializer.serialize(extractedUrl), source,                                  restoredState);                              this.events.next(navStart);                              const targetSnapshot =                                  createEmptyState(extractedUrl, this.rootComponentType).snapshot;                               overallTransitionState = {                                ...t,                                targetSnapshot,                                urlAfterRedirects: extractedUrl,                                extras: {...extras, skipLocationChange: false, replaceUrl: false},                              };                              return of(overallTransitionState);                            } else {                              /* When neither the current or previous URL can be processed, do                               * nothing other than update router's internal reference to the                               * current \"settled\" URL. This way the next navigation will be coming                               * from the current URL in the browser.                               */                              const reason = NG_DEV_MODE ?                                  `Navigation was ignored because the UrlHandlingStrategy` +                                      ` indicated neither the current URL ${                                          router.rawUrlTree} nor target URL ${                                          t.rawUrl} should be processed.` :                                  '';                              this.events.next(new NavigationSkipped(                                  t.id, router.serializeUrl(overallTransitionState.extractedUrl),                                  reason, NavigationSkippedCode.IgnoredByUrlHandlingStrategy));                              router.rawUrlTree = t.rawUrl;                              t.resolve(null);                              return EMPTY;                            }                          }),                           // --- GUARDS ---                          tap(t => {                            const guardsStart = new GuardsCheckStart(                                t.id, this.urlSerializer.serialize(t.extractedUrl),                                this.urlSerializer.serialize(t.urlAfterRedirects!),                                t.targetSnapshot!);                            this.events.next(guardsStart);                          }),                           map(t => {                            overallTransitionState = {                              ...t,                              guards: getAllRouteGuards(                                  t.targetSnapshot!, t.currentSnapshot, this.rootContexts)                            };                            return overallTransitionState;                          }),                           checkGuards(                              this.environmentInjector, (evt: Event) => this.events.next(evt)),                          tap(t => {                            overallTransitionState.guardsResult = t.guardsResult;                            if (isUrlTree(t.guardsResult)) {                              throw redirectingNavigationError(this.urlSerializer, t.guardsResult);                            }                             const guardsEnd = new GuardsCheckEnd(                                t.id, this.urlSerializer.serialize(t.extractedUrl),                                this.urlSerializer.serialize(t.urlAfterRedirects!),                                t.targetSnapshot!, !!t.guardsResult);                            this.events.next(guardsEnd);                          }),                           filter(t => {                            if (!t.guardsResult) {                              router.restoreHistory(t);                              this.cancelNavigationTransition(                                  t, '', NavigationCancellationCode.GuardRejected);                              return false;                            }                            return true;                          }),                           // --- RESOLVE ---                          switchTap(t => {                            if (t.guards.canActivateChecks.length) {                              return of(t).pipe(                                  tap(t => {                                    const resolveStart = new ResolveStart(                                        t.id, this.urlSerializer.serialize(t.extractedUrl),                                        this.urlSerializer.serialize(t.urlAfterRedirects!),                                        t.targetSnapshot!);                                    this.events.next(resolveStart);                                  }),                                  switchMap(t => {                                    let dataResolved = false;                                    return of(t).pipe(                                        resolveData(                                            router.paramsInheritanceStrategy,                                            this.environmentInjector),                                        tap({                                          next: () => dataResolved = true,                                          complete: () => {                                            if (!dataResolved) {                                              router.restoreHistory(t);                                              this.cancelNavigationTransition(                                                  t,                                                  NG_DEV_MODE ?                                                      `At least one route resolver didn't emit any value.` :                                                      '',                                                  NavigationCancellationCode.NoDataFromResolver);                                            }                                          }                                        }),                                    );                                  }),                                  tap(t => {                                    const resolveEnd = new ResolveEnd(                                        t.id, this.urlSerializer.serialize(t.extractedUrl),                                        this.urlSerializer.serialize(t.urlAfterRedirects!),                                        t.targetSnapshot!);                                    this.events.next(resolveEnd);                                  }));                            }                            return undefined;                          }),                           // --- LOAD COMPONENTS ---                          switchTap((t: NavigationTransition) => {                            const loadComponents =                                (route: ActivatedRouteSnapshot): Array<Observable<void>> => {                                  const loaders: Array<Observable<void>> = [];                                  if (route.routeConfig?.loadComponent &&                                      !route.routeConfig._loadedComponent) {                                    loaders.push(this.configLoader.loadComponent(route.routeConfig)                                                     .pipe(                                                         tap(loadedComponent => {                                                           route.component = loadedComponent;                                                         }),                                                         map(() => void 0),                                                         ));                                  }                                  for (const child of route.children) {                                    loaders.push(...loadComponents(child));                                  }                                  return loaders;                                };                            return combineLatest(loadComponents(t.targetSnapshot!.root))                                .pipe(defaultIfEmpty(), take(1));                          }),                           switchTap(() => this.afterPreactivation()),                           map((t: NavigationTransition) => {                            const targetRouterState = createRouterState(                                router.routeReuseStrategy, t.targetSnapshot!, t.currentRouterState);                            overallTransitionState = {...t, targetRouterState};                            return (overallTransitionState);                          }),                           /* Once here, we are about to activate synchronously. The assumption is                             this will succeed, and user code may read from the Router service.                             Therefore before activation, we need to update router properties storing                             the current URL and the RouterState, as well as updated the browser URL.                             All this should happen *before* activating. */                          tap((t: NavigationTransition) => {                            router.currentUrlTree = t.urlAfterRedirects!;                            router.rawUrlTree =                                router.urlHandlingStrategy.merge(t.urlAfterRedirects!, t.rawUrl);                             (router as {routerState: RouterState}).routerState =                                t.targetRouterState!;                             if (router.urlUpdateStrategy === 'deferred') {                              if (!t.extras.skipLocationChange) {                                router.setBrowserUrl(router.rawUrlTree, t);                              }                              router.browserUrlTree = t.urlAfterRedirects!;                            }                          }),                           activateRoutes(                              this.rootContexts, router.routeReuseStrategy,                              (evt: Event) => this.events.next(evt)),                           tap({                            next: (t: NavigationTransition) => {                              completed = true;                              this.lastSuccessfulNavigation = this.currentNavigation;                              router.navigated = true;                              this.events.next(new NavigationEnd(                                  t.id, this.urlSerializer.serialize(t.extractedUrl),                                  this.urlSerializer.serialize(router.currentUrlTree)));                              router.titleStrategy?.updateTitle(t.targetRouterState!.snapshot);                              t.resolve(true);                            },                            complete: () => {                              completed = true;                            }                          }),                          finalize(() => {                            /* When the navigation stream finishes either through error or success,                             * we set the `completed` or `errored` flag. However, there are some                             * situations where we could get here without either of those being set.                             * For instance, a redirect during NavigationStart. Therefore, this is a                             * catch-all to make sure the NavigationCancel event is fired when a                             * navigation gets cancelled but not caught by other means. */                            if (!completed && !errored) {                              const cancelationReason = NG_DEV_MODE ?                                  `Navigation ID ${                                      overallTransitionState                                          .id} is not equal to the current navigation id ${                                      this.navigationId}` :                                  '';                              this.cancelNavigationTransition(                                  overallTransitionState, cancelationReason,                                  NavigationCancellationCode.SupersededByNewNavigation);                            }                            // Only clear current navigation if it is still set to the one that                            // finalized.                            if (this.currentNavigation?.id === overallTransitionState.id) {                              this.currentNavigation = null;                            }                          }),                          catchError((e) => {                            errored = true;                            /* This error type is issued during Redirect, and is handled as a                             * cancellation rather than an error. */                            if (isNavigationCancelingError(e)) {                              if (!isRedirectingNavigationCancelingError(e)) {                                // Set property only if we're not redirecting. If we landed on a page                                // and redirect to `/` route, the new navigation is going to see the                                // `/` isn't a change from the default currentUrlTree and won't                                // navigate. This is only applicable with initial navigation, so                                // setting `navigated` only when not redirecting resolves this                                // scenario.                                router.navigated = true;                                router.restoreHistory(overallTransitionState, true);                              }                              const navCancel = new NavigationCancel(                                  overallTransitionState.id,                                  this.urlSerializer.serialize(overallTransitionState.extractedUrl),                                  e.message, e.cancellationCode);                              this.events.next(navCancel);                               // When redirecting, we need to delay resolving the navigation                              // promise and push it to the redirect navigation                              if (!isRedirectingNavigationCancelingError(e)) {                                overallTransitionState.resolve(false);                              } else {                                const mergedTree =                                    router.urlHandlingStrategy.merge(e.url, router.rawUrlTree);                                const extras = {                                  skipLocationChange:                                      overallTransitionState.extras.skipLocationChange,                                  // The URL is already updated at this point if we have 'eager' URL                                  // updates or if the navigation was triggered by the browser (back                                  // button, URL bar, etc). We want to replace that item in history                                  // if the navigation is rejected.                                  replaceUrl: router.urlUpdateStrategy === 'eager' ||                                      isBrowserTriggeredNavigation(overallTransitionState.source)                                };                                 router.scheduleNavigation(                                    mergedTree, IMPERATIVE_NAVIGATION, null, extras, {                                      resolve: overallTransitionState.resolve,                                      reject: overallTransitionState.reject,                                      promise: overallTransitionState.promise                                    });                              }                               /* All other errors should reset to the router's internal URL reference                               * to the pre-error state. */                            } else {                              router.restoreHistory(overallTransitionState, true);                              const navError = new NavigationError(                                  overallTransitionState.id,                                  this.urlSerializer.serialize(overallTransitionState.extractedUrl),                                  e, overallTransitionState.targetSnapshot ?? undefined);                              this.events.next(navError);                              try {                                overallTransitionState.resolve(router.errorHandler(e));                              } catch (ee) {                                overallTransitionState.reject(ee);                              }                            }                            return EMPTY;                          }));                  // casting because `pipe` returns observable({}) when called with 8+ arguments                })) as Observable<NavigationTransition>;   }    private cancelNavigationTransition(       t: NavigationTransition, reason: string, code: NavigationCancellationCode) {     const navCancel =         new NavigationCancel(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, code);     this.events.next(navCancel);     t.resolve(false);   } }  export function isBrowserTriggeredNavigation(source: NavigationTrigger) {   return source !== IMPERATIVE_NAVIGATION; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable} from '@angular/core'; import {Title} from '@angular/platform-browser';  import {ActivatedRouteSnapshot, RouterStateSnapshot} from './router_state'; import {PRIMARY_OUTLET, RouteTitleKey} from './shared';  /**  * Provides a strategy for setting the page title after a router navigation.  *  * The built-in implementation traverses the router state snapshot and finds the deepest primary  * outlet with `title` property. Given the `Routes` below, navigating to  * `/base/child(popup:aux)` would result in the document title being set to \"child\".  * ```  * [  *   {path: 'base', title: 'base', children: [  *     {path: 'child', title: 'child'},  *   ],  *   {path: 'aux', outlet: 'popup', title: 'popupTitle'}  * ]  * ```  *  * This class can be used as a base class for custom title strategies. That is, you can create your  * own class that extends the `TitleStrategy`. Note that in the above example, the `title`  * from the named outlet is never used. However, a custom strategy might be implemented to  * incorporate titles in named outlets.  *  * @publicApi  * @see [Page title guide](guide/router#setting-the-page-title)  */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy)}) export abstract class TitleStrategy {   /** Performs the application title update. */   abstract updateTitle(snapshot: RouterStateSnapshot): void;    /**    * @returns The `title` of the deepest primary route.    */   buildTitle(snapshot: RouterStateSnapshot): string|undefined {     let pageTitle: string|undefined;     let route: ActivatedRouteSnapshot|undefined = snapshot.root;     while (route !== undefined) {       pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;       route = route.children.find(child => child.outlet === PRIMARY_OUTLET);     }     return pageTitle;   }    /**    * Given an `ActivatedRouteSnapshot`, returns the final value of the    * `Route.title` property, which can either be a static string or a resolved value.    */   getResolvedTitleForRoute(snapshot: ActivatedRouteSnapshot) {     return snapshot.data[RouteTitleKey];   } }  /**  * The default `TitleStrategy` used by the router that updates the title using the `Title` service.  */ @Injectable({providedIn: 'root'}) export class DefaultTitleStrategy extends TitleStrategy {   constructor(readonly title: Title) {     super();   }    /**    * Sets the title of the browser to the given value.    *    * @param title The `pageTitle` from the deepest primary route.    */   override updateTitle(snapshot: RouterStateSnapshot): void {     const title = this.buildTitle(snapshot);     if (title !== undefined) {       this.title.setTitle(title);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentRef, inject, Injectable} from '@angular/core';  import {OutletContext} from './router_outlet_context'; import {ActivatedRoute, ActivatedRouteSnapshot} from './router_state'; import {TreeNode} from './utils/tree';  /**  * @description  *  * Represents the detached route tree.  *  * This is an opaque value the router will give to a custom route reuse strategy  * to store and retrieve later on.  *  * @publicApi  */ export type DetachedRouteHandle = {};  /** @internal */ export type DetachedRouteHandleInternal = {   contexts: Map<string, OutletContext>,   componentRef: ComponentRef<any>,   route: TreeNode<ActivatedRoute>, };  /**  * @description  *  * Provides a way to customize when activated routes get reused.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy)}) export abstract class RouteReuseStrategy {   /** Determines if this route (and its subtree) should be detached to be reused later */   abstract shouldDetach(route: ActivatedRouteSnapshot): boolean;    /**    * Stores the detached route.    *    * Storing a `null` value should erase the previously stored value.    */   abstract store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle|null): void;    /** Determines if this route (and its subtree) should be reattached */   abstract shouldAttach(route: ActivatedRouteSnapshot): boolean;    /** Retrieves the previously stored route */   abstract retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle|null;    /** Determines if a route should be reused */   abstract shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean; }  /**  * @description  *  * This base route reuse strategy only reuses routes when the matched router configs are  * identical. This prevents components from being destroyed and recreated  * when just the route parameters, query parameters or fragment change  * (that is, the existing component is _reused_).  *  * This strategy does not store any routes for later reuse.  *  * Angular uses this strategy by default.  *  *  * It can be used as a base class for custom route reuse strategies, i.e. you can create your own  * class that extends the `BaseRouteReuseStrategy` one.  * @publicApi  */ export abstract class BaseRouteReuseStrategy implements RouteReuseStrategy {   /**    * Whether the given route should detach for later reuse.    * Always returns false for `BaseRouteReuseStrategy`.    * */   shouldDetach(route: ActivatedRouteSnapshot): boolean {     return false;   }    /**    * A no-op; the route is never stored since this strategy never detaches routes for later re-use.    */   store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle): void {}    /** Returns `false`, meaning the route (and its subtree) is never reattached */   shouldAttach(route: ActivatedRouteSnapshot): boolean {     return false;   }    /** Returns `null` because this strategy does not store routes for later re-use. */   retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle|null {     return null;   }    /**    * Determines if a route should be reused.    * This strategy returns `true` when the future route config and current route config are    * identical.    */   shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {     return future.routeConfig === curr.routeConfig;   } }  @Injectable({providedIn: 'root'}) export class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken} from '@angular/core';  import {OnSameUrlNavigation} from './models'; import {UrlSerializer, UrlTree} from './url_tree';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * Error handler that is invoked when a navigation error occurs.  *  * If the handler returns a value, the navigation Promise is resolved with this value.  * If the handler throws an exception, the navigation Promise is rejected with  * the exception.  *  * @publicApi  * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.  */ export type ErrorHandler = (error: any) => any;  /**  * Allowed values in an `ExtraOptions` object that configure  * when the router performs the initial navigation operation.  *  * * 'enabledNonBlocking' - (default) The initial navigation starts after the  * root component has been created. The bootstrap is not blocked on the completion of the initial  * navigation.  * * 'enabledBlocking' - The initial navigation starts before the root component is created.  * The bootstrap is blocked until the initial navigation is complete. This value is required  * for [server-side rendering](guide/universal) to work.  * * 'disabled' - The initial navigation is not performed. The location listener is set up before  * the root component gets created. Use if there is a reason to have  * more control over when the router starts its initial navigation due to some complex  * initialization logic.  *  * @see `forRoot()`  *  * @publicApi  */ export type InitialNavigation = 'disabled'|'enabledBlocking'|'enabledNonBlocking';  /**  * Extra configuration options that can be used with the `withRouterConfig` function.  *  * @publicApi  */ export interface RouterConfigOptions {   /**    * Configures how the Router attempts to restore state when a navigation is cancelled.    *    * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the    * router before the navigation started. This means that if the URL of the browser is updated    * _before_ the navigation is canceled, the Router will simply replace the item in history rather    * than trying to restore to the previous location in the session history. This happens most    * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward    * buttons.    *    * 'computed' - Will attempt to return to the same index in the session history that corresponds    * to the Angular route when the navigation gets cancelled. For example, if the browser back    * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation    * and vice versa.    *    * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only    * handles a portion of the URL because the history restoration navigates to the previous place in    * the browser history rather than simply resetting a portion of the URL.    *    * The default value is `replace` when not set.    */   canceledNavigationResolution?: 'replace'|'computed';    /**    * Configures the default for handling a navigation request to the current URL.    *    * If unset, the `Router` will use `'ignore'`.    *    * @see `OnSameUrlNavigation`    */   onSameUrlNavigation?: OnSameUrlNavigation;    /**    * Defines how the router merges parameters, data, and resolved data from parent to child    * routes. By default ('emptyOnly'), inherits parent parameters only for    * path-less or component-less routes.    *    * Set to 'always' to enable unconditional inheritance of parent parameters.    *    * Note that when dealing with matrix parameters, \"parent\" refers to the parent `Route`    * config which does not necessarily mean the \"URL segment to the left\". When the `Route` `path`    * contains multiple segments, the matrix parameters must appear on the last segment. For example,    * matrix parameters for `{path: 'a/b', component: MyComp}` should appear as `a/b;foo=bar` and not    * `a;foo=bar/b`.    *    */   paramsInheritanceStrategy?: 'emptyOnly'|'always';    /**    * Defines when the router updates the browser URL. By default ('deferred'),    * update after successful navigation.    * Set to 'eager' if prefer to update the URL at the beginning of navigation.    * Updating the URL early allows you to handle a failure of navigation by    * showing an error message with the URL that failed.    */   urlUpdateStrategy?: 'deferred'|'eager'; }  /**  * Configuration options for the scrolling feature which can be used with `withInMemoryScrolling`  * function.  *  * @publicApi  */ export interface InMemoryScrollingOptions {   /**    * When set to 'enabled', scrolls to the anchor element when the URL has a fragment.    * Anchor scrolling is disabled by default.    *    * Anchor scrolling does not happen on 'popstate'. Instead, we restore the position    * that we stored or scroll to the top.    */   anchorScrolling?: 'disabled'|'enabled';    /**    * Configures if the scroll position needs to be restored when navigating back.    *    * * 'disabled'- (Default) Does nothing. Scroll position is maintained on navigation.    * * 'top'- Sets the scroll position to x = 0, y = 0 on all navigation.    * * 'enabled'- Restores the previous scroll position on backward navigation, else sets the    * position to the anchor if one is provided, or sets the scroll position to [0, 0] (forward    * navigation). This option will be the default in the future.    *    * You can implement custom scroll restoration behavior by adapting the enabled behavior as    * in the following example.    *    * ```typescript    * class AppComponent {    *   movieData: any;    *    *   constructor(private router: Router, private viewportScroller: ViewportScroller,    * changeDetectorRef: ChangeDetectorRef) {    *   router.events.pipe(filter((event: Event): event is Scroll => event instanceof Scroll)    *     ).subscribe(e => {    *       fetch('http://example.com/movies.json').then(response => {    *         this.movieData = response.json();    *         // update the template with the data before restoring scroll    *         changeDetectorRef.detectChanges();    *    *         if (e.position) {    *           viewportScroller.scrollToPosition(e.position);    *         }    *       });    *     });    *   }    * }    * ```    */   scrollPositionRestoration?: 'disabled'|'enabled'|'top'; }  /**  * A set of configuration options for a router module, provided in the  * `forRoot()` method.  *  * @see `forRoot()`  *  *  * @publicApi  */ export interface ExtraOptions extends InMemoryScrollingOptions, RouterConfigOptions {   /**    * When true, log all internal navigation events to the console.    * Use for debugging.    */   enableTracing?: boolean;    /**    * When true, enable the location strategy that uses the URL fragment    * instead of the history API.    */   useHash?: boolean;    /**    * One of `enabled`, `enabledBlocking`, `enabledNonBlocking` or `disabled`.    * When set to `enabled` or `enabledBlocking`, the initial navigation starts before the root    * component is created. The bootstrap is blocked until the initial navigation is complete. This    * value is required for [server-side rendering](guide/universal) to work. When set to    * `enabledNonBlocking`, the initial navigation starts after the root component has been created.    * The bootstrap is not blocked on the completion of the initial navigation. When set to    * `disabled`, the initial navigation is not performed. The location listener is set up before the    * root component gets created. Use if there is a reason to have more control over when the router    * starts its initial navigation due to some complex initialization logic.    */   initialNavigation?: InitialNavigation;    /**    * A custom error handler for failed navigations.    * If the handler returns a value, the navigation Promise is resolved with this value.    * If the handler throws an exception, the navigation Promise is rejected with the exception.    *    * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.    */   errorHandler?: (error: any) => any;    /**    * Configures a preloading strategy.    * One of `PreloadAllModules` or `NoPreloading` (the default).    */   preloadingStrategy?: any;    /**    * Configures the scroll offset the router will use when scrolling to an element.    *    * When given a tuple with x and y position value,    * the router uses that offset each time it scrolls.    * When given a function, the router invokes the function every time    * it restores scroll position.    */   scrollOffset?: [number, number]|(() => [number, number]);    /**    * A custom handler for malformed URI errors. The handler is invoked when `encodedURI` contains    * invalid character sequences.    * The default implementation is to redirect to the root URL, dropping    * any path or parameter information. The function takes three parameters:    *    * - `'URIError'` - Error thrown when parsing a bad URL.    * - `'UrlSerializer'` - UrlSerializer that’s configured with the router.    * - `'url'` -  The malformed URL that caused the URIError    *    * @deprecated URI parsing errors should be handled in the `UrlSerializer` instead.    * */   malformedUriErrorHandler?:       (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree; }  /**  * A [DI token](guide/glossary/#di-token) for the router service.  *  * @publicApi  */ export const ROUTER_CONFIGURATION =     new InjectionToken<ExtraOptions>(NG_DEV_MODE ? 'router config' : '', {       providedIn: 'root',       factory: () => ({}),     }); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable} from '@angular/core';  import {UrlTree} from './url_tree';  /**  * @description  *  * Provides a way to migrate AngularJS applications to Angular.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy)}) export abstract class UrlHandlingStrategy {   /**    * Tells the router if this URL should be processed.    *    * When it returns true, the router will execute the regular navigation.    * When it returns false, the router will set the router state to an empty state.    * As a result, all the active components will be destroyed.    *    */   abstract shouldProcessUrl(url: UrlTree): boolean;    /**    * Extracts the part of the URL that should be handled by the router.    * The rest of the URL will remain untouched.    */   abstract extract(url: UrlTree): UrlTree;    /**    * Merges the URL fragment with the rest of the URL.    */   abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree; }  /**  * @publicApi  */ @Injectable({providedIn: 'root'}) export class DefaultUrlHandlingStrategy implements UrlHandlingStrategy {   shouldProcessUrl(url: UrlTree): boolean {     return true;   }   extract(url: UrlTree): UrlTree {     return url;   }   merge(newUrlPart: UrlTree, wholeUrl: UrlTree): UrlTree {     return newUrlPart;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location} from '@angular/common'; import {inject, Injectable, NgZone, Type, ɵConsole as Console, ɵRuntimeError as RuntimeError} from '@angular/core'; import {Observable, of, SubscriptionLike} from 'rxjs';  import {CreateUrlTreeStrategy} from './create_url_tree_strategy'; import {RuntimeErrorCode} from './errors'; import {Event, IMPERATIVE_NAVIGATION, NavigationTrigger} from './events'; import {NavigationBehaviorOptions, OnSameUrlNavigation, Routes} from './models'; import {Navigation, NavigationExtras, NavigationTransition, NavigationTransitions, RestoredState, UrlCreationOptions} from './navigation_transition'; import {TitleStrategy} from './page_title_strategy'; import {RouteReuseStrategy} from './route_reuse_strategy'; import {ROUTER_CONFIGURATION} from './router_config'; import {ROUTES} from './router_config_loader'; import {createEmptyState, RouterState} from './router_state'; import {Params} from './shared'; import {UrlHandlingStrategy} from './url_handling_strategy'; import {containsTree, IsActiveMatchOptions, isUrlTree, UrlSerializer, UrlTree} from './url_tree'; import {flatten} from './utils/collection'; import {standardizeConfig, validateConfig} from './utils/config';   const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  function defaultErrorHandler(error: any): any {   throw error; }  function defaultMalformedUriErrorHandler(     error: URIError, urlSerializer: UrlSerializer, url: string): UrlTree {   return urlSerializer.parse('/'); }  /**  * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`  * (exact = true).  */ export const exactMatchOptions: IsActiveMatchOptions = {   paths: 'exact',   fragment: 'ignored',   matrixParams: 'ignored',   queryParams: 'exact' };  /**  * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`  * (exact = false).  */ export const subsetMatchOptions: IsActiveMatchOptions = {   paths: 'subset',   fragment: 'ignored',   matrixParams: 'ignored',   queryParams: 'subset' };  /**  * @description  *  * A service that provides navigation among views and URL manipulation capabilities.  *  * @see `Route`.  * @see [Routing and Navigation Guide](guide/router).  *  * @ngModule RouterModule  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class Router {   /**    * Represents the activated `UrlTree` that the `Router` is configured to handle (through    * `UrlHandlingStrategy`). That is, after we find the route config tree that we're going to    * activate, run guards, and are just about to activate the route, we set the currentUrlTree.    *    * This should match the `browserUrlTree` when a navigation succeeds. If the    * `UrlHandlingStrategy.shouldProcessUrl` is `false`, only the `browserUrlTree` is updated.    * @internal    */   currentUrlTree: UrlTree;   /**    * Meant to represent the entire browser url after a successful navigation. In the life of a    * navigation transition:    * 1. The rawUrl represents the full URL that's being navigated to    * 2. We apply redirects, which might only apply to _part_ of the URL (due to    * `UrlHandlingStrategy`).    * 3. Right before activation (because we assume activation will succeed), we update the    * rawUrlTree to be a combination of the urlAfterRedirects (again, this might only apply to part    * of the initial url) and the rawUrl of the transition (which was the original navigation url in    * its full form).    * @internal    *    * Note that this is _only_ here to support `UrlHandlingStrategy.extract` and    * `UrlHandlingStrategy.shouldProcessUrl`. If those didn't exist, we could get by with    * `currentUrlTree` alone. If a new Router were to be provided (i.e. one that works with the    * browser navigation API), we should think about whether this complexity should be carried over.    *    * - extract: `rawUrlTree` is needed because `extract` may only return part    * of the navigation URL. Thus, `currentUrlTree` may only represent _part_ of the browser URL.    * When a navigation gets cancelled and we need to reset the URL or a new navigation occurs, we    * need to know the _whole_ browser URL, not just the part handled by UrlHandlingStrategy.    * - shouldProcessUrl: When this returns `false`, the router just ignores the navigation but still    * updates the `rawUrlTree` with the assumption that the navigation was caused by the location    * change listener due to a URL update by the AngularJS router. In this case, we still need to    * know what the browser's URL is for future navigations.    *    */   rawUrlTree: UrlTree;   /**    * Meant to represent the part of the browser url that the `Router` is set up to handle (via the    * `UrlHandlingStrategy`). This value is updated immediately after the browser url is updated (or    * the browser url update is skipped via `skipLocationChange`). With that, note that    * `browserUrlTree` _may not_ reflect the actual browser URL for two reasons:    *    * 1. `UrlHandlingStrategy` only handles part of the URL    * 2. `skipLocationChange` does not update the browser url.    *    * So to reiterate, `browserUrlTree` only represents the Router's internal understanding of the    * current route, either before guards with `urlUpdateStrategy === 'eager'` or right before    * activation with `'deferred'`.    *    * This should match the `currentUrlTree` when the navigation succeeds.    * @internal    */   browserUrlTree: UrlTree;   private disposed = false;    private locationSubscription?: SubscriptionLike;   // TODO(b/260747083): This should not exist and navigationId should be private in   // `NavigationTransitions`   private get navigationId() {     return this.navigationTransitions.navigationId;   }    /**    * The id of the currently active page in the router.    * Updated to the transition's target id on a successful navigation.    *    * This is used to track what page the router last activated. When an attempted navigation fails,    * the router can then use this to compute how to restore the state back to the previously active    * page.    */   private currentPageId: number = 0;   /**    * The ɵrouterPageId of whatever page is currently active in the browser history. This is    * important for computing the target page id for new navigations because we need to ensure each    * page id in the browser history is 1 more than the previous entry.    */   private get browserPageId(): number|undefined {     return (this.location.getState() as RestoredState | null)?.ɵrouterPageId;   }   private console = inject(Console);   private isNgZoneEnabled: boolean = false;    /**    * An event stream for routing events.    */   public get events(): Observable<Event> {     // TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal     // cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't     // allowed/supported but we still have to fix these or file bugs against the teams before making     // the change.     return this.navigationTransitions.events;   }   /**    * The current state of routing in this NgModule.    */   public readonly routerState: RouterState;    private options = inject(ROUTER_CONFIGURATION, {optional: true}) || {};    /**    * A handler for navigation errors in this NgModule.    *    * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.    *   `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.    * @see `withNavigationErrorHandler`    */   errorHandler = this.options.errorHandler || defaultErrorHandler;    /**    * A handler for errors thrown by `Router.parseUrl(url)`    * when `url` contains an invalid character.    * The most common case is a `%` sign    * that's not encoded and is not part of a percent encoded sequence.    *    * @deprecated URI parsing errors should be handled in the `UrlSerializer`.    *    * @see `RouterModule`    */   malformedUriErrorHandler =       this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;    /**    * True if at least one navigation event has occurred,    * false otherwise.    */   navigated: boolean = false;   private lastSuccessfulId: number = -1;    /**    * A strategy for extracting and merging URLs.    * Used for AngularJS to Angular migrations.    *    * @deprecated Configure using `providers` instead:    *   `{provide: UrlHandlingStrategy, useClass: MyStrategy}`.    */   urlHandlingStrategy = inject(UrlHandlingStrategy);    /**    * A strategy for re-using routes.    *    * @deprecated Configure using `providers` instead:    *   `{provide: RouteReuseStrategy, useClass: MyStrategy}`.    */   routeReuseStrategy = inject(RouteReuseStrategy);    /** Strategy used to create a UrlTree. */   private readonly urlCreationStrategy = inject(CreateUrlTreeStrategy);    /**    * A strategy for setting the title based on the `routerState`.    *    * @deprecated Configure using `providers` instead:    *   `{provide: TitleStrategy, useClass: MyStrategy}`.    */   titleStrategy?: TitleStrategy = inject(TitleStrategy);    /**    * How to handle a navigation request to the current URL.    *    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   onSameUrlNavigation: OnSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';    /**    * How to merge parameters, data, resolved data, and title from parent to child    * routes. One of:    *    * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data    * for path-less or component-less routes.    * - `'always'` : Inherit parent parameters, data, and resolved data    * for all child routes.    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   paramsInheritanceStrategy: 'emptyOnly'|'always' =       this.options.paramsInheritanceStrategy || 'emptyOnly';    /**    * Determines when the router updates the browser URL.    * By default (`\"deferred\"`), updates the browser URL after navigation has finished.    * Set to `'eager'` to update the browser URL at the beginning of navigation.    * You can choose to update early so that, if navigation fails,    * you can show an error message with the URL that failed.    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   urlUpdateStrategy: 'deferred'|'eager' = this.options.urlUpdateStrategy || 'deferred';    /**    * Configures how the Router attempts to restore state when a navigation is cancelled.    *    * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the    * router before the navigation started. This means that if the URL of the browser is updated    * _before_ the navigation is canceled, the Router will simply replace the item in history rather    * than trying to restore to the previous location in the session history. This happens most    * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward    * buttons.    *    * 'computed' - Will attempt to return to the same index in the session history that corresponds    * to the Angular route when the navigation gets cancelled. For example, if the browser back    * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation    * and vice versa.    *    * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only    * handles a portion of the URL because the history restoration navigates to the previous place in    * the browser history rather than simply resetting a portion of the URL.    *    * The default value is `replace`.    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   canceledNavigationResolution: 'replace'|'computed' =       this.options.canceledNavigationResolution || 'replace';    config: Routes = flatten(inject(ROUTES, {optional: true}) ?? []);    private readonly navigationTransitions = inject(NavigationTransitions);   private readonly urlSerializer = inject(UrlSerializer);   private readonly location = inject(Location);    constructor() {     this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();      this.resetConfig(this.config);     this.currentUrlTree = new UrlTree();     this.rawUrlTree = this.currentUrlTree;     this.browserUrlTree = this.currentUrlTree;      this.routerState = createEmptyState(this.currentUrlTree, null);      this.navigationTransitions.setupNavigations(this).subscribe(         t => {           this.lastSuccessfulId = t.id;           this.currentPageId = t.targetPageId;         },         e => {           this.console.warn(`Unhandled Navigation Error: ${e}`);         });   }    /** @internal */   resetRootComponentType(rootComponentType: Type<any>): void {     // TODO: vsavkin router 4.0 should make the root component set to null     // this will simplify the lifecycle of the router.     this.routerState.root.component = rootComponentType;     this.navigationTransitions.rootComponentType = rootComponentType;   }    /**    * Sets up the location change listener and performs the initial navigation.    */   initialNavigation(): void {     this.setUpLocationChangeListener();     if (!this.navigationTransitions.hasRequestedNavigation) {       const state = this.location.getState() as RestoredState;       this.navigateToSyncWithBrowser(this.location.path(true), IMPERATIVE_NAVIGATION, state);     }   }    /**    * Sets up the location change listener. This listener detects navigations triggered from outside    * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router    * navigation so that the correct events, guards, etc. are triggered.    */   setUpLocationChangeListener(): void {     // Don't need to use Zone.wrap any more, because zone.js     // already patch onPopState, so location change callback will     // run into ngZone     if (!this.locationSubscription) {       this.locationSubscription = this.location.subscribe(event => {         const source = event['type'] === 'popstate' ? 'popstate' : 'hashchange';         if (source === 'popstate') {           // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS           // hybrid apps.           setTimeout(() => {             this.navigateToSyncWithBrowser(event['url']!, source, event.state);           }, 0);         }       });     }   }    /**    * Schedules a router navigation to synchronize Router state with the browser state.    *    * This is done as a response to a popstate event and the initial navigation. These    * two scenarios represent times when the browser URL/state has been updated and    * the Router needs to respond to ensure its internal state matches.    */   private navigateToSyncWithBrowser(       url: string, source: NavigationTrigger, state: RestoredState|undefined) {     const extras: NavigationExtras = {replaceUrl: true};      // TODO: restoredState should always include the entire state, regardless     // of navigationId. This requires a breaking change to update the type on     // NavigationStart’s restoredState, which currently requires navigationId     // to always be present. The Router used to only restore history state if     // a navigationId was present.      // The stored navigationId is used by the RouterScroller to retrieve the scroll     // position for the page.     const restoredState = state?.navigationId ? state : null;      // Separate to NavigationStart.restoredState, we must also restore the state to     // history.state and generate a new navigationId, since it will be overwritten     if (state) {       const stateCopy = {...state} as Partial<RestoredState>;       delete stateCopy.navigationId;       delete stateCopy.ɵrouterPageId;       if (Object.keys(stateCopy).length !== 0) {         extras.state = stateCopy;       }     }      const urlTree = this.parseUrl(url);     this.scheduleNavigation(urlTree, source, restoredState, extras);   }    /** The current URL. */   get url(): string {     return this.serializeUrl(this.currentUrlTree);   }    /**    * Returns the current `Navigation` object when the router is navigating,    * and `null` when idle.    */   getCurrentNavigation(): Navigation|null {     return this.navigationTransitions.currentNavigation;   }    /**    * Resets the route configuration used for navigation and generating links.    *    * @param config The route array for the new configuration.    *    * @usageNotes    *    * ```    * router.resetConfig([    *  { path: 'team/:id', component: TeamCmp, children: [    *    { path: 'simple', component: SimpleCmp },    *    { path: 'user/:name', component: UserCmp }    *  ]}    * ]);    * ```    */   resetConfig(config: Routes): void {     NG_DEV_MODE && validateConfig(config);     this.config = config.map(standardizeConfig);     this.navigated = false;     this.lastSuccessfulId = -1;   }    /** @nodoc */   ngOnDestroy(): void {     this.dispose();   }    /** Disposes of the router. */   dispose(): void {     this.navigationTransitions.complete();     if (this.locationSubscription) {       this.locationSubscription.unsubscribe();       this.locationSubscription = undefined;     }     this.disposed = true;   }    /**    * Appends URL segments to the current URL tree to create a new URL tree.    *    * @param commands An array of URL fragments with which to construct the new URL tree.    * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path    * segments, followed by the parameters for each segment.    * The fragments are applied to the current URL tree or the one provided  in the `relativeTo`    * property of the options object, if supplied.    * @param navigationExtras Options that control the navigation strategy.    * @returns The new URL tree.    *    * @usageNotes    *    * ```    * // create /team/33/user/11    * router.createUrlTree(['/team', 33, 'user', 11]);    *    * // create /team/33;expand=true/user/11    * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);    *    * // you can collapse static segments like this (this works only with the first passed-in value):    * router.createUrlTree(['/team/33/user', userId]);    *    * // If the first segment can contain slashes, and you do not want the router to split it,    * // you can do the following:    * router.createUrlTree([{segmentPath: '/one/two'}]);    *    * // create /team/33/(user/11//right:chat)    * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);    *    * // remove the right secondary node    * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);    *    * // assuming the current url is `/team/33/user/11` and the route points to `user/11`    *    * // navigate to /team/33/user/11/details    * router.createUrlTree(['details'], {relativeTo: route});    *    * // navigate to /team/33/user/22    * router.createUrlTree(['../22'], {relativeTo: route});    *    * // navigate to /team/44/user/22    * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});    *    * Note that a value of `null` or `undefined` for `relativeTo` indicates that the    * tree should be created relative to the root.    * ```    */   createUrlTree(commands: any[], navigationExtras: UrlCreationOptions = {}): UrlTree {     const {relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment} =         navigationExtras;     const f = preserveFragment ? this.currentUrlTree.fragment : fragment;     let q: Params|null = null;     switch (queryParamsHandling) {       case 'merge':         q = {...this.currentUrlTree.queryParams, ...queryParams};         break;       case 'preserve':         q = this.currentUrlTree.queryParams;         break;       default:         q = queryParams || null;     }     if (q !== null) {       q = this.removeEmptyProps(q);     }     return this.urlCreationStrategy.createUrlTree(         relativeTo, this.routerState, this.currentUrlTree, commands, q, f ?? null);   }    /**    * Navigates to a view using an absolute route path.    *    * @param url An absolute path for a defined route. The function does not apply any delta to the    *     current URL.    * @param extras An object containing properties that modify the navigation strategy.    *    * @returns A Promise that resolves to 'true' when navigation succeeds,    * to 'false' when navigation fails, or is rejected on error.    *    * @usageNotes    *    * The following calls request navigation to an absolute path.    *    * ```    * router.navigateByUrl(\"/team/33/user/11\");    *    * // Navigate without updating the URL    * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });    * ```    *    * @see [Routing and Navigation guide](guide/router)    *    */   navigateByUrl(url: string|UrlTree, extras: NavigationBehaviorOptions = {     skipLocationChange: false   }): Promise<boolean> {     if (NG_DEV_MODE) {       if (this.isNgZoneEnabled && !NgZone.isInAngularZone()) {         this.console.warn(             `Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);       }       if (url instanceof UrlTree && url._warnIfUsedForNavigation) {         this.console.warn(url._warnIfUsedForNavigation);       }     }      const urlTree = isUrlTree(url) ? url : this.parseUrl(url);     const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);      return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);   }    /**    * Navigate based on the provided array of commands and a starting point.    * If no starting route is provided, the navigation is absolute.    *    * @param commands An array of URL fragments with which to construct the target URL.    * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path    * segments, followed by the parameters for each segment.    * The fragments are applied to the current URL or the one provided  in the `relativeTo` property    * of the options object, if supplied.    * @param extras An options object that determines how the URL should be constructed or    *     interpreted.    *    * @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation    *     fails,    * or is rejected on error.    *    * @usageNotes    *    * The following calls request navigation to a dynamic route path relative to the current URL.    *    * ```    * router.navigate(['team', 33, 'user', 11], {relativeTo: route});    *    * // Navigate without updating the URL, overriding the default behavior    * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});    * ```    *    * @see [Routing and Navigation guide](guide/router)    *    */   navigate(commands: any[], extras: NavigationExtras = {skipLocationChange: false}):       Promise<boolean> {     validateCommands(commands);     return this.navigateByUrl(this.createUrlTree(commands, extras), extras);   }    /** Serializes a `UrlTree` into a string */   serializeUrl(url: UrlTree): string {     return this.urlSerializer.serialize(url);   }    /** Parses a string into a `UrlTree` */   parseUrl(url: string): UrlTree {     let urlTree: UrlTree;     try {       urlTree = this.urlSerializer.parse(url);     } catch (e) {       urlTree = this.malformedUriErrorHandler(e as URIError, this.urlSerializer, url);     }     return urlTree;   }    /**    * Returns whether the url is activated.    *    * @deprecated    * Use `IsActiveMatchOptions` instead.    *    * - The equivalent `IsActiveMatchOptions` for `true` is    * `{paths: 'exact', queryParams: 'exact', fragment: 'ignored', matrixParams: 'ignored'}`.    * - The equivalent for `false` is    * `{paths: 'subset', queryParams: 'subset', fragment: 'ignored', matrixParams: 'ignored'}`.    */   isActive(url: string|UrlTree, exact: boolean): boolean;   /**    * Returns whether the url is activated.    */   isActive(url: string|UrlTree, matchOptions: IsActiveMatchOptions): boolean;   /** @internal */   isActive(url: string|UrlTree, matchOptions: boolean|IsActiveMatchOptions): boolean;   isActive(url: string|UrlTree, matchOptions: boolean|IsActiveMatchOptions): boolean {     let options: IsActiveMatchOptions;     if (matchOptions === true) {       options = {...exactMatchOptions};     } else if (matchOptions === false) {       options = {...subsetMatchOptions};     } else {       options = matchOptions;     }     if (isUrlTree(url)) {       return containsTree(this.currentUrlTree, url, options);     }      const urlTree = this.parseUrl(url);     return containsTree(this.currentUrlTree, urlTree, options);   }    private removeEmptyProps(params: Params): Params {     return Object.keys(params).reduce((result: Params, key: string) => {       const value: any = params[key];       if (value !== null && value !== undefined) {         result[key] = value;       }       return result;     }, {});   }    /** @internal */   scheduleNavigation(       rawUrl: UrlTree, source: NavigationTrigger, restoredState: RestoredState|null,       extras: NavigationExtras,       priorPromise?: {resolve: any, reject: any, promise: Promise<boolean>}): Promise<boolean> {     if (this.disposed) {       return Promise.resolve(false);     }      let resolve: any;     let reject: any;     let promise: Promise<boolean>;     if (priorPromise) {       resolve = priorPromise.resolve;       reject = priorPromise.reject;       promise = priorPromise.promise;     } else {       promise = new Promise<boolean>((res, rej) => {         resolve = res;         reject = rej;       });     }      let targetPageId: number;     if (this.canceledNavigationResolution === 'computed') {       // If the `ɵrouterPageId` exist in the state then `targetpageId` should have the value of       // `ɵrouterPageId`. This is the case for something like a page refresh where we assign the       // target id to the previously set value for that page.       if (restoredState && restoredState.ɵrouterPageId) {         targetPageId = restoredState.ɵrouterPageId;       } else {         // If we're replacing the URL or doing a silent navigation, we do not want to increment the         // page id because we aren't pushing a new entry to history.         if (extras.replaceUrl || extras.skipLocationChange) {           targetPageId = this.browserPageId ?? 0;         } else {           targetPageId = (this.browserPageId ?? 0) + 1;         }       }     } else {       // This is unused when `canceledNavigationResolution` is not computed.       targetPageId = 0;     }      this.navigationTransitions.handleNavigationRequest({       targetPageId,       source,       restoredState,       currentUrlTree: this.currentUrlTree,       currentRawUrl: this.currentUrlTree,       rawUrl,       extras,       resolve,       reject,       promise,       currentSnapshot: this.routerState.snapshot,       currentRouterState: this.routerState     });      // Make sure that the error is propagated even though `processNavigations` catch     // handler does not rethrow     return promise.catch((e: any) => {       return Promise.reject(e);     });   }    /** @internal */   setBrowserUrl(url: UrlTree, transition: NavigationTransition) {     const path = this.urlSerializer.serialize(url);     const state = {       ...transition.extras.state,       ...this.generateNgRouterState(transition.id, transition.targetPageId)     };     if (this.location.isCurrentPathEqualTo(path) || !!transition.extras.replaceUrl) {       this.location.replaceState(path, '', state);     } else {       this.location.go(path, '', state);     }   }    /**    * Performs the necessary rollback action to restore the browser URL to the    * state before the transition.    * @internal    */   restoreHistory(transition: NavigationTransition, restoringFromCaughtError = false) {     if (this.canceledNavigationResolution === 'computed') {       const targetPagePosition = this.currentPageId - transition.targetPageId;       // The navigator change the location before triggered the browser event,       // so we need to go back to the current url if the navigation is canceled.       // Also, when navigation gets cancelled while using url update strategy eager, then we need to       // go back. Because, when `urlUpdateStrategy` is `eager`; `setBrowserUrl` method is called       // before any verification.       const browserUrlUpdateOccurred =           (transition.source === 'popstate' || this.urlUpdateStrategy === 'eager' ||            this.currentUrlTree === this.getCurrentNavigation()?.finalUrl);       if (browserUrlUpdateOccurred && targetPagePosition !== 0) {         this.location.historyGo(targetPagePosition);       } else if (           this.currentUrlTree === this.getCurrentNavigation()?.finalUrl &&           targetPagePosition === 0) {         // We got to the activation stage (where currentUrlTree is set to the navigation's         // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).         // We still need to reset the router state back to what it was when the navigation started.         this.resetState(transition);         // TODO(atscott): resetting the `browserUrlTree` should really be done in `resetState`.         // Investigate if this can be done by running TGP.         this.browserUrlTree = transition.currentUrlTree;         this.resetUrlToCurrentUrlTree();       } else {         // The browser URL and router state was not updated before the navigation cancelled so         // there's no restoration needed.       }     } else if (this.canceledNavigationResolution === 'replace') {       // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op       // for `deferred` navigations that haven't change the internal state yet because guards       // reject. For 'eager' navigations, it seems like we also really should reset the state       // because the navigation was cancelled. Investigate if this can be done by running TGP.       if (restoringFromCaughtError) {         this.resetState(transition);       }       this.resetUrlToCurrentUrlTree();     }   }    private resetState(t: NavigationTransition): void {     (this as {routerState: RouterState}).routerState = t.currentRouterState;     this.currentUrlTree = t.currentUrlTree;     // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be     // configured to handle only part of the navigation URL. This means we would only want to reset     // the part of the navigation handled by the Angular router rather than the whole URL. In     // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL     // when merging, such as the query params so they are not lost on a refresh.     this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, t.rawUrl);   }    private resetUrlToCurrentUrlTree(): void {     this.location.replaceState(         this.urlSerializer.serialize(this.rawUrlTree), '',         this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));   }    private generateNgRouterState(navigationId: number, routerPageId?: number) {     if (this.canceledNavigationResolution === 'computed') {       return {navigationId, ɵrouterPageId: routerPageId};     }     return {navigationId};   } }  function validateCommands(commands: string[]): void {   for (let i = 0; i < commands.length; i++) {     const cmd = commands[i];     if (cmd == null) {       throw new RuntimeError(           RuntimeErrorCode.NULLISH_COMMAND,           NG_DEV_MODE && `The requested path contains ${cmd} segment at index ${i}`);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {LocationStrategy} from '@angular/common'; import {Attribute, Directive, ElementRef, HostBinding, HostListener, Input, OnChanges, OnDestroy, Renderer2, SimpleChanges, ɵcoerceToBoolean as coerceToBoolean, ɵɵsanitizeUrlOrResourceUrl} from '@angular/core'; import {Subject, Subscription} from 'rxjs';  import {Event, NavigationEnd} from '../events'; import {QueryParamsHandling} from '../models'; import {Router} from '../router'; import {ActivatedRoute} from '../router_state'; import {Params} from '../shared'; import {UrlTree} from '../url_tree';   /**  * @description  *  * When applied to an element in a template, makes that element a link  * that initiates navigation to a route. Navigation opens one or more routed components  * in one or more `<router-outlet>` locations on the page.  *  * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,  * the following creates a static link to the route:  * `<a routerLink=\"/user/bob\">link to user component</a>`  *  * You can use dynamic values to generate the link.  * For a dynamic link, pass an array of path segments,  * followed by the params for each segment.  * For example, `['/team', teamId, 'user', userName, {details: true}]`  * generates a link to `/team/11/user/bob;details=true`.  *  * Multiple static segments can be merged into one term and combined with dynamic segments.  * For example, `['/team/11/user', userName, {details: true}]`  *  * The input that you provide to the link is treated as a delta to the current URL.  * For instance, suppose the current URL is `/user/(box//aux:team)`.  * The link `<a [routerLink]=\"['/user/jim']\">Jim</a>` creates the URL  * `/user/(jim//aux:team)`.  * See {@link Router#createUrlTree createUrlTree} for more information.  *  * @usageNotes  *  * You can use absolute or relative paths in a link, set query parameters,  * control how parameters are handled, and keep a history of navigation states.  *  * ### Relative link paths  *  * The first segment name can be prepended with `/`, `./`, or `../`.  * * If the first segment begins with `/`, the router looks up the route from the root of the  *   app.  * * If the first segment begins with `./`, or doesn't begin with a slash, the router  *   looks in the children of the current activated route.  * * If the first segment begins with `../`, the router goes up one level in the route tree.  *  * ### Setting and handling query params and fragments  *  * The following link adds a query parameter and a fragment to the generated URL:  *  * ```  * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">  *   link to user component  * </a>  * ```  * By default, the directive constructs the new URL using the given query parameters.  * The example generates the link: `/user/bob?debug=true#education`.  *  * You can instruct the directive to handle query parameters differently  * by specifying the `queryParamsHandling` option in the link.  * Allowed values are:  *  *  - `'merge'`: Merge the given `queryParams` into the current query params.  *  - `'preserve'`: Preserve the current query params.  *  * For example:  *  * ```  * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">  *   link to user component  * </a>  * ```  *  * See {@link UrlCreationOptions.queryParamsHandling UrlCreationOptions#queryParamsHandling}.  *  * ### Preserving navigation history  *  * You can provide a `state` value to be persisted to the browser's  * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).  * For example:  *  * ```  * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">  *   link to user component  * </a>  * ```  *  * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved  * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`  * event:  *  * ```  * // Get NavigationStart events  * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {  *   const navigation = router.getCurrentNavigation();  *   tracingService.trace({id: navigation.extras.state.tracingId});  * });  * ```  *  * @ngModule RouterModule  *  * @publicApi  */ @Directive({   selector: '[routerLink]',   standalone: true, }) export class RouterLink implements OnChanges, OnDestroy {   private _preserveFragment = false;   private _skipLocationChange = false;   private _replaceUrl = false;    /**    * Represents an `href` attribute value applied to a host element,    * when a host element is `<a>`. For other tags, the value is `null`.    */   href: string|null = null;    /**    * Represents the `target` attribute on a host element.    * This is only used when the host element is an `<a>` tag.    */   @HostBinding('attr.target') @Input() target?: string;    /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#queryParams UrlCreationOptions#queryParams}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() queryParams?: Params|null;   /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#fragment UrlCreationOptions#fragment}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() fragment?: string;   /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#queryParamsHandling UrlCreationOptions#queryParamsHandling}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() queryParamsHandling?: QueryParamsHandling|null;   /**    * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the    * `NavigationBehaviorOptions`.    * @see {@link NavigationBehaviorOptions#state NavigationBehaviorOptions#state}    * @see {@link Router#navigateByUrl Router#navigateByUrl}    */   @Input() state?: {[k: string]: any};   /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * Specify a value here when you do not want to use the default value    * for `routerLink`, which is the current activated route.    * Note that a value of `undefined` here will use the `routerLink` default.    * @see {@link UrlCreationOptions#relativeTo UrlCreationOptions#relativeTo}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() relativeTo?: ActivatedRoute|null;    private commands: any[]|null = null;    /** Whether a host element is an `<a>` tag. */   private isAnchorElement: boolean;    private subscription?: Subscription;    /** @internal */   onChanges = new Subject<RouterLink>();    constructor(       private router: Router, private route: ActivatedRoute,       @Attribute('tabindex') private readonly tabIndexAttribute: string|null|undefined,       private readonly renderer: Renderer2, private readonly el: ElementRef,       private locationStrategy?: LocationStrategy) {     const tagName = el.nativeElement.tagName?.toLowerCase();     this.isAnchorElement = tagName === 'a' || tagName === 'area';      if (this.isAnchorElement) {       this.subscription = router.events.subscribe((s: Event) => {         if (s instanceof NavigationEnd) {           this.updateHref();         }       });     } else {       this.setTabIndexIfNotOnNativeEl('0');     }   }    /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#preserveFragment UrlCreationOptions#preserveFragment}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input()   set preserveFragment(preserveFragment: boolean|string|null|undefined) {     this._preserveFragment = coerceToBoolean(preserveFragment);   }    get preserveFragment(): boolean {     return this._preserveFragment;   }    /**    * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the    * `NavigationBehaviorOptions`.    * @see {@link NavigationBehaviorOptions#skipLocationChange NavigationBehaviorOptions#skipLocationChange}    * @see {@link Router#navigateByUrl Router#navigateByUrl}    */   @Input()   set skipLocationChange(skipLocationChange: boolean|string|null|undefined) {     this._skipLocationChange = coerceToBoolean(skipLocationChange);   }    get skipLocationChange(): boolean {     return this._skipLocationChange;   }    /**    * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the    * `NavigationBehaviorOptions`.    * @see {@link NavigationBehaviorOptions#replaceUrl NavigationBehaviorOptions#replaceUrl}    * @see {@link Router#navigateByUrl Router#navigateByUrl}    */   @Input()   set replaceUrl(replaceUrl: boolean|string|null|undefined) {     this._replaceUrl = coerceToBoolean(replaceUrl);   }    get replaceUrl(): boolean {     return this._replaceUrl;   }    /**    * Modifies the tab index if there was not a tabindex attribute on the element during    * instantiation.    */   private setTabIndexIfNotOnNativeEl(newTabIndex: string|null) {     if (this.tabIndexAttribute != null /* both `null` and `undefined` */ || this.isAnchorElement) {       return;     }     this.applyAttributeValue('tabindex', newTabIndex);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (this.isAnchorElement) {       this.updateHref();     }     // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes     // to the RouterLinks it's tracking.     this.onChanges.next(this);   }    /**    * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.    *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.    *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`    *   - **null|undefined**: effectively disables the `routerLink`    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input()   set routerLink(commands: any[]|string|null|undefined) {     if (commands != null) {       this.commands = Array.isArray(commands) ? commands : [commands];       this.setTabIndexIfNotOnNativeEl('0');     } else {       this.commands = null;       this.setTabIndexIfNotOnNativeEl(null);     }   }    /** @nodoc */   @HostListener(       'click',       ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey'])   onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean):       boolean {     if (this.urlTree === null) {       return true;     }      if (this.isAnchorElement) {       if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {         return true;       }        if (typeof this.target === 'string' && this.target != '_self') {         return true;       }     }      const extras = {       skipLocationChange: this.skipLocationChange,       replaceUrl: this.replaceUrl,       state: this.state,     };     this.router.navigateByUrl(this.urlTree, extras);      // Return `false` for `<a>` elements to prevent default action     // and cancel the native behavior, since the navigation is handled     // by the Router.     return !this.isAnchorElement;   }    /** @nodoc */   ngOnDestroy(): any {     this.subscription?.unsubscribe();   }    private updateHref(): void {     this.href = this.urlTree !== null && this.locationStrategy ?         this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)) :         null;      const sanitizedValue = this.href === null ?         null :         // This class represents a directive that can be added to both `<a>` elements,         // as well as other elements. As a result, we can't define security context at         // compile time. So the security context is deferred to runtime.         // The `ɵɵsanitizeUrlOrResourceUrl` selects the necessary sanitizer function         // based on the tag and property names. The logic mimics the one from         // `packages/compiler/src/schema/dom_security_schema.ts`, which is used at compile time.         //         // Note: we should investigate whether we can switch to using `@HostBinding('attr.href')`         // instead of applying a value via a renderer, after a final merge of the         // `RouterLinkWithHref` directive.         ɵɵsanitizeUrlOrResourceUrl(this.href, this.el.nativeElement.tagName.toLowerCase(), 'href');     this.applyAttributeValue('href', sanitizedValue);   }    private applyAttributeValue(attrName: string, attrValue: string|null) {     const renderer = this.renderer;     const nativeElement = this.el.nativeElement;     if (attrValue !== null) {       renderer.setAttribute(nativeElement, attrName, attrValue);     } else {       renderer.removeAttribute(nativeElement, attrName);     }   }    get urlTree(): UrlTree|null {     if (this.commands === null) {       return null;     }     return this.router.createUrlTree(this.commands, {       // If the `relativeTo` input is not defined, we want to use `this.route` by default.       // Otherwise, we should use the value provided by the user in the input.       relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,       queryParams: this.queryParams,       fragment: this.fragment,       queryParamsHandling: this.queryParamsHandling,       preserveFragment: this.preserveFragment,     });   } }  /**  * @description  * An alias for the `RouterLink` directive.  * Deprecated since v15, use `RouterLink` directive instead.  *  * @deprecated use `RouterLink` directive instead.  * @publicApi  */ export {RouterLink as RouterLinkWithHref}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AfterContentInit, ChangeDetectorRef, ContentChildren, Directive, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, Optional, Output, QueryList, Renderer2, SimpleChanges} from '@angular/core'; import {from, of, Subscription} from 'rxjs'; import {mergeAll} from 'rxjs/operators';  import {Event, NavigationEnd} from '../events'; import {Router} from '../router'; import {IsActiveMatchOptions} from '../url_tree';  import {RouterLink} from './router_link';   /**  *  * @description  *  * Tracks whether the linked route of an element is currently active, and allows you  * to specify one or more CSS classes to add to the element when the linked route  * is active.  *  * Use this directive to create a visual distinction for elements associated with an active route.  * For example, the following code highlights the word \"Bob\" when the router  * activates the associated route:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>  * ```  *  * Whenever the URL is either '/user' or '/user/bob', the \"active-link\" class is  * added to the anchor tag. If the URL changes, the class is removed.  *  * You can set more than one class using a space-separated string or an array.  * For example:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>  * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>  * ```  *  * To add the classes only when the URL matches the link exactly, add the option `exact: true`:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:  * true}\">Bob</a>  * ```  *  * To directly check the `isActive` status of the link, assign the `RouterLinkActive`  * instance to a template variable.  * For example, the following checks the status without assigning any CSS classes:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">  *   Bob {{ rla.isActive ? '(already open)' : ''}}  * </a>  * ```  *  * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.  * For example, the following sets the active-link class on the `<div>`  parent tag  * when the URL is either '/user/jim' or '/user/bob'.  *  * ```  * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">  *   <a routerLink=\"/user/jim\">Jim</a>  *   <a routerLink=\"/user/bob\">Bob</a>  * </div>  * ```  *  * The `RouterLinkActive` directive can also be used to set the aria-current attribute  * to provide an alternative distinction for active elements to visually impaired users.  *  * For example, the following code adds the 'active' class to the Home Page link when it is  * indeed active and in such case also sets its aria-current attribute to 'page':  *  * ```  * <a routerLink=\"/\" routerLinkActive=\"active\" ariaCurrentWhenActive=\"page\">Home Page</a>  * ```  *  * @ngModule RouterModule  *  * @publicApi  */ @Directive({   selector: '[routerLinkActive]',   exportAs: 'routerLinkActive',   standalone: true, }) export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {   @ContentChildren(RouterLink, {descendants: true}) links!: QueryList<RouterLink>;    private classes: string[] = [];   private routerEventsSubscription: Subscription;   private linkInputChangesSubscription?: Subscription;   private _isActive = false;    get isActive() {     return this._isActive;   }    /**    * Options to configure how to determine if the router link is active.    *    * These options are passed to the `Router.isActive()` function.    *    * @see Router.isActive    */   @Input() routerLinkActiveOptions: {exact: boolean}|IsActiveMatchOptions = {exact: false};     /**    * Aria-current attribute to apply when the router link is active.    *    * Possible values: `'page'` | `'step'` | `'location'` | `'date'` | `'time'` | `true` | `false`.    *    * @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current}    */   @Input() ariaCurrentWhenActive?: 'page'|'step'|'location'|'date'|'time'|true|false;    /**    *    * You can use the output `isActiveChange` to get notified each time the link becomes    * active or inactive.    *    * Emits:    * true  -> Route is active    * false -> Route is inactive    *    * ```    * <a    *  routerLink=\"/user/bob\"    *  routerLinkActive=\"active-link\"    *  (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>    * ```    */   @Output() readonly isActiveChange: EventEmitter<boolean> = new EventEmitter();    constructor(       private router: Router, private element: ElementRef, private renderer: Renderer2,       private readonly cdr: ChangeDetectorRef, @Optional() private link?: RouterLink) {     this.routerEventsSubscription = router.events.subscribe((s: Event) => {       if (s instanceof NavigationEnd) {         this.update();       }     });   }    /** @nodoc */   ngAfterContentInit(): void {     // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).     of(this.links.changes, of(null)).pipe(mergeAll()).subscribe(_ => {       this.update();       this.subscribeToEachLinkOnChanges();     });   }    private subscribeToEachLinkOnChanges() {     this.linkInputChangesSubscription?.unsubscribe();     const allLinkChanges = [...this.links.toArray(), this.link]                                .filter((link): link is RouterLink => !!link)                                .map(link => link.onChanges);     this.linkInputChangesSubscription = from(allLinkChanges).pipe(mergeAll()).subscribe(link => {       if (this._isActive !== this.isLinkActive(this.router)(link)) {         this.update();       }     });   }    @Input()   set routerLinkActive(data: string[]|string) {     const classes = Array.isArray(data) ? data : data.split(' ');     this.classes = classes.filter(c => !!c);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     this.update();   }   /** @nodoc */   ngOnDestroy(): void {     this.routerEventsSubscription.unsubscribe();     this.linkInputChangesSubscription?.unsubscribe();   }    private update(): void {     if (!this.links || !this.router.navigated) return;     Promise.resolve().then(() => {       const hasActiveLinks = this.hasActiveLinks();       if (this._isActive !== hasActiveLinks) {         this._isActive = hasActiveLinks;         this.cdr.markForCheck();         this.classes.forEach((c) => {           if (hasActiveLinks) {             this.renderer.addClass(this.element.nativeElement, c);           } else {             this.renderer.removeClass(this.element.nativeElement, c);           }         });         if (hasActiveLinks && this.ariaCurrentWhenActive !== undefined) {           this.renderer.setAttribute(               this.element.nativeElement, 'aria-current', this.ariaCurrentWhenActive.toString());         } else {           this.renderer.removeAttribute(this.element.nativeElement, 'aria-current');         }          // Emit on isActiveChange after classes are updated         this.isActiveChange.emit(hasActiveLinks);       }     });   }    private isLinkActive(router: Router): (link: RouterLink) => boolean {     const options: boolean|IsActiveMatchOptions =         isActiveMatchOptions(this.routerLinkActiveOptions) ?         this.routerLinkActiveOptions :         // While the types should disallow `undefined` here, it's possible without strict inputs         (this.routerLinkActiveOptions.exact || false);     return (link: RouterLink) => link.urlTree ? router.isActive(link.urlTree, options) : false;   }    private hasActiveLinks(): boolean {     const isActiveCheckFn = this.isLinkActive(this.router);     return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);   } }  /**  * Use instead of `'paths' in options` to be compatible with property renaming  */ function isActiveMatchOptions(options: {exact: boolean}|                               IsActiveMatchOptions): options is IsActiveMatchOptions {   return !!(options as IsActiveMatchOptions).paths; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Compiler, createEnvironmentInjector, EnvironmentInjector, Injectable, OnDestroy} from '@angular/core'; import {from, Observable, of, Subscription} from 'rxjs'; import {catchError, concatMap, filter, mergeAll, mergeMap} from 'rxjs/operators';  import {Event, NavigationEnd} from './events'; import {LoadedRouterConfig, Route, Routes} from './models'; import {Router} from './router'; import {RouterConfigLoader} from './router_config_loader';   /**  * @description  *  * Provides a preloading strategy.  *  * @publicApi  */ export abstract class PreloadingStrategy {   abstract preload(route: Route, fn: () => Observable<any>): Observable<any>; }  /**  * @description  *  * Provides a preloading strategy that preloads all modules as quickly as possible.  *  * ```  * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})  * ```  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class PreloadAllModules implements PreloadingStrategy {   preload(route: Route, fn: () => Observable<any>): Observable<any> {     return fn().pipe(catchError(() => of(null)));   } }  /**  * @description  *  * Provides a preloading strategy that does not preload any modules.  *  * This strategy is enabled by default.  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class NoPreloading implements PreloadingStrategy {   preload(route: Route, fn: () => Observable<any>): Observable<any> {     return of(null);   } }  /**  * The preloader optimistically loads all router configurations to  * make navigations into lazily-loaded sections of the application faster.  *  * The preloader runs in the background. When the router bootstraps, the preloader  * starts listening to all navigation events. After every such event, the preloader  * will check if any configurations can be loaded lazily.  *  * If a route is protected by `canLoad` guards, the preloaded will not load it.  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class RouterPreloader implements OnDestroy {   private subscription?: Subscription;    constructor(       private router: Router, compiler: Compiler, private injector: EnvironmentInjector,       private preloadingStrategy: PreloadingStrategy, private loader: RouterConfigLoader) {}    setUpPreloading(): void {     this.subscription =         this.router.events             .pipe(filter((e: Event) => e instanceof NavigationEnd), concatMap(() => this.preload()))             .subscribe(() => {});   }    preload(): Observable<any> {     return this.processRoutes(this.injector, this.router.config);   }    /** @nodoc */   ngOnDestroy(): void {     if (this.subscription) {       this.subscription.unsubscribe();     }   }    private processRoutes(injector: EnvironmentInjector, routes: Routes): Observable<void> {     const res: Observable<any>[] = [];     for (const route of routes) {       if (route.providers && !route._injector) {         route._injector =             createEnvironmentInjector(route.providers, injector, `Route: ${route.path}`);       }        const injectorForCurrentRoute = route._injector ?? injector;       const injectorForChildren = route._loadedInjector ?? injectorForCurrentRoute;        // Note that `canLoad` is only checked as a condition that prevents `loadChildren` and not       // `loadComponent`. `canLoad` guards only block loading of child routes by design. This       // happens as a consequence of needing to descend into children for route matching immediately       // while component loading is deferred until route activation. Because `canLoad` guards can       // have side effects, we cannot execute them here so we instead skip preloading altogether       // when present. Lastly, it remains to be decided whether `canLoad` should behave this way       // at all. Code splitting and lazy loading is separate from client-side authorization checks       // and should not be used as a security measure to prevent loading of code.       if ((route.loadChildren && !route._loadedRoutes && route.canLoad === undefined) ||           (route.loadComponent && !route._loadedComponent)) {         res.push(this.preloadConfig(injectorForCurrentRoute, route));       } else if (route.children || route._loadedRoutes) {         res.push(this.processRoutes(injectorForChildren, (route.children ?? route._loadedRoutes)!));       }     }     return from(res).pipe(mergeAll());   }    private preloadConfig(injector: EnvironmentInjector, route: Route): Observable<void> {     return this.preloadingStrategy.preload(route, () => {       let loadedChildren$: Observable<LoadedRouterConfig|null>;       if (route.loadChildren && route.canLoad === undefined) {         loadedChildren$ = this.loader.loadChildren(injector, route);       } else {         loadedChildren$ = of(null);       }        const recursiveLoadChildren$ =           loadedChildren$.pipe(mergeMap((config: LoadedRouterConfig|null) => {             if (config === null) {               return of(void 0);             }             route._loadedRoutes = config.routes;             route._loadedInjector = config.injector;             // If the loaded config was a module, use that as the module/module injector going             // forward. Otherwise, continue using the current module/module injector.             return this.processRoutes(config.injector ?? injector, config.routes);           }));       if (route.loadComponent && !route._loadedComponent) {         const loadComponent$ = this.loader.loadComponent(route);         return from([recursiveLoadChildren$, loadComponent$]).pipe(mergeAll());       } else {         return recursiveLoadChildren$;       }     });   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ViewportScroller} from '@angular/common'; import {Injectable, InjectionToken, NgZone, OnDestroy} from '@angular/core'; import {Unsubscribable} from 'rxjs';  import {NavigationEnd, NavigationStart, Scroll} from './events'; import {NavigationTransitions} from './navigation_transition'; import {Router} from './router'; import {UrlSerializer} from './url_tree';  export const ROUTER_SCROLLER = new InjectionToken<RouterScroller>('');  @Injectable() export class RouterScroller implements OnDestroy {   private routerEventsSubscription?: Unsubscribable;   private scrollEventsSubscription?: Unsubscribable;    private lastId = 0;   private lastSource: 'imperative'|'popstate'|'hashchange'|undefined = 'imperative';   private restoredId = 0;   private store: {[key: string]: [number, number]} = {};    /** @nodoc */   constructor(       readonly urlSerializer: UrlSerializer, private transitions: NavigationTransitions,       public readonly viewportScroller: ViewportScroller, private readonly zone: NgZone,       private options: {         scrollPositionRestoration?: 'disabled'|'enabled'|'top',         anchorScrolling?: 'disabled'|'enabled'       } = {}) {     // Default both options to 'disabled'     options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';     options.anchorScrolling = options.anchorScrolling || 'disabled';   }    init(): void {     // we want to disable the automatic scrolling because having two places     // responsible for scrolling results race conditions, especially given     // that browser don't implement this behavior consistently     if (this.options.scrollPositionRestoration !== 'disabled') {       this.viewportScroller.setHistoryScrollRestoration('manual');     }     this.routerEventsSubscription = this.createScrollEvents();     this.scrollEventsSubscription = this.consumeScrollEvents();   }    private createScrollEvents() {     return this.transitions.events.subscribe(e => {       if (e instanceof NavigationStart) {         // store the scroll position of the current stable navigations.         this.store[this.lastId] = this.viewportScroller.getScrollPosition();         this.lastSource = e.navigationTrigger;         this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;       } else if (e instanceof NavigationEnd) {         this.lastId = e.id;         this.scheduleScrollEvent(e, this.urlSerializer.parse(e.urlAfterRedirects).fragment);       }     });   }    private consumeScrollEvents() {     return this.transitions.events.subscribe(e => {       if (!(e instanceof Scroll)) return;       // a popstate event. The pop state event will always ignore anchor scrolling.       if (e.position) {         if (this.options.scrollPositionRestoration === 'top') {           this.viewportScroller.scrollToPosition([0, 0]);         } else if (this.options.scrollPositionRestoration === 'enabled') {           this.viewportScroller.scrollToPosition(e.position);         }         // imperative navigation \"forward\"       } else {         if (e.anchor && this.options.anchorScrolling === 'enabled') {           this.viewportScroller.scrollToAnchor(e.anchor);         } else if (this.options.scrollPositionRestoration !== 'disabled') {           this.viewportScroller.scrollToPosition([0, 0]);         }       }     });   }    private scheduleScrollEvent(routerEvent: NavigationEnd, anchor: string|null): void {     this.zone.runOutsideAngular(() => {       // The scroll event needs to be delayed until after change detection. Otherwise, we may       // attempt to restore the scroll position before the router outlet has fully rendered the       // component by executing its update block of the template function.       setTimeout(() => {         this.zone.run(() => {           this.transitions.events.next(new Scroll(               routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null,               anchor));         });       }, 0);     });   }    /** @nodoc */   ngOnDestroy() {     this.routerEventsSubscription?.unsubscribe();     this.scrollEventsSubscription?.unsubscribe();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {filter, map, take} from 'rxjs/operators';  import {NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped} from '../events'; import {Router} from '../router';  enum NavigationResult {   COMPLETE,   FAILED,   REDIRECTING, }  /**  * Performs the given action once the router finishes its next/current navigation.  *  * The navigation is considered complete under the following conditions:  * - `NavigationCancel` event emits and the code is not `NavigationCancellationCode.Redirect` or  * `NavigationCancellationCode.SupersededByNewNavigation`. In these cases, the  * redirecting/superseding navigation must finish.  * - `NavigationError`, `NavigationEnd`, or `NavigationSkipped` event emits  */ export function afterNextNavigation(router: Router, action: () => void) {   router.events       .pipe(           filter(               (e): e is NavigationEnd|NavigationCancel|NavigationError|NavigationSkipped =>                   e instanceof NavigationEnd || e instanceof NavigationCancel ||                   e instanceof NavigationError || e instanceof NavigationSkipped),           map(e => {             if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {               return NavigationResult.COMPLETE;             }             const redirecting = e instanceof NavigationCancel ?                 (e.code === NavigationCancellationCode.Redirect ||                  e.code === NavigationCancellationCode.SupersededByNewNavigation) :                 false;             return redirecting ? NavigationResult.REDIRECTING : NavigationResult.FAILED;           }),           filter(               (result): result is NavigationResult.COMPLETE|NavigationResult.FAILED =>                   result !== NavigationResult.REDIRECTING),           take(1),           )       .subscribe(() => {         action();       }); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HashLocationStrategy, LOCATION_INITIALIZED, LocationStrategy, ViewportScroller} from '@angular/common'; import {APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, ComponentRef, ENVIRONMENT_INITIALIZER, EnvironmentInjector, EnvironmentProviders, inject, InjectFlags, InjectionToken, Injector, makeEnvironmentProviders, NgZone, Provider, Type} from '@angular/core'; import {of, Subject} from 'rxjs'; import {filter, map, take} from 'rxjs/operators';  import {Event, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, stringifyEvent} from './events'; import {Routes} from './models'; import {NavigationTransitions} from './navigation_transition'; import {Router} from './router'; import {InMemoryScrollingOptions, ROUTER_CONFIGURATION, RouterConfigOptions} from './router_config'; import {ROUTES} from './router_config_loader'; import {PreloadingStrategy, RouterPreloader} from './router_preloader'; import {ROUTER_SCROLLER, RouterScroller} from './router_scroller'; import {ActivatedRoute} from './router_state'; import {UrlSerializer} from './url_tree'; import {afterNextNavigation} from './utils/navigations';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * Sets up providers necessary to enable `Router` functionality for the application.  * Allows to configure a set of routes as well as extra features that should be enabled.  *  * @usageNotes  *  * Basic example of how you can add a Router to your application:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent, {  *   providers: [provideRouter(appRoutes)]  * });  * ```  *  * You can also enable optional features in the Router by adding functions from the `RouterFeatures`  * type:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes,  *         withDebugTracing(),  *         withRouterConfig({paramsInheritanceStrategy: 'always'}))  *     ]  *   }  * );  * ```  *  * @see `RouterFeatures`  *  * @publicApi  * @param routes A set of `Route`s to use for the application routing table.  * @param features Optional features to configure additional router behaviors.  * @returns A set of providers to setup a Router.  */ export function provideRouter(routes: Routes, ...features: RouterFeatures[]): EnvironmentProviders {   return makeEnvironmentProviders([     {provide: ROUTES, multi: true, useValue: routes},     NG_DEV_MODE ? {provide: ROUTER_IS_PROVIDED, useValue: true} : [],     {provide: ActivatedRoute, useFactory: rootRoute, deps: [Router]},     {provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener},     features.map(feature => feature.ɵproviders),   ]); }  export function rootRoute(router: Router): ActivatedRoute {   return router.routerState.root; }  /**  * Helper type to represent a Router feature.  *  * @publicApi  */ export interface RouterFeature<FeatureKind extends RouterFeatureKind> {   ɵkind: FeatureKind;   ɵproviders: Provider[]; }  /**  * Helper function to create an object that represents a Router feature.  */ function routerFeature<FeatureKind extends RouterFeatureKind>(     kind: FeatureKind, providers: Provider[]): RouterFeature<FeatureKind> {   return {ɵkind: kind, ɵproviders: providers}; }   /**  * An Injection token used to indicate whether `provideRouter` or `RouterModule.forRoot` was ever  * called.  */ export const ROUTER_IS_PROVIDED =     new InjectionToken<boolean>('', {providedIn: 'root', factory: () => false});  const routerIsProvidedDevModeCheck = {   provide: ENVIRONMENT_INITIALIZER,   multi: true,   useFactory() {     return () => {       if (!inject(ROUTER_IS_PROVIDED)) {         console.warn(             '`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. ' +             'This is likely a mistake.');       }     };   } };  /**  * Registers a [DI provider](guide/glossary#provider) for a set of routes.  * @param routes The route configuration to provide.  *  * @usageNotes  *  * ```  * @NgModule({  *   providers: [provideRoutes(ROUTES)]  * })  * class LazyLoadedChildModule {}  * ```  *  * @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.  * @see `ROUTES`  * @publicApi  */ export function provideRoutes(routes: Routes): Provider[] {   return [     {provide: ROUTES, multi: true, useValue: routes},     NG_DEV_MODE ? routerIsProvidedDevModeCheck : [],   ]; }  /**  * A type alias for providers returned by `withInMemoryScrolling` for use with `provideRouter`.  *  * @see `withInMemoryScrolling`  * @see `provideRouter`  *  * @publicApi  */ export type InMemoryScrollingFeature = RouterFeature<RouterFeatureKind.InMemoryScrollingFeature>;  /**  * Enables customizable scrolling behavior for router navigations.  *  * @usageNotes  *  * Basic example of how you can enable scrolling feature:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withInMemoryScrolling())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  * @see `ViewportScroller`  *  * @publicApi  * @param options Set of configuration parameters to customize scrolling behavior, see  *     `InMemoryScrollingOptions` for additional information.  * @returns A set of providers for use with `provideRouter`.  */ export function withInMemoryScrolling(options: InMemoryScrollingOptions = {}):     InMemoryScrollingFeature {   const providers = [{     provide: ROUTER_SCROLLER,     useFactory: () => {       const viewportScroller = inject(ViewportScroller);       const zone = inject(NgZone);       const transitions = inject(NavigationTransitions);       const urlSerializer = inject(UrlSerializer);       return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, options);     },   }];   return routerFeature(RouterFeatureKind.InMemoryScrollingFeature, providers); }  export function getBootstrapListener() {   const injector = inject(Injector);   return (bootstrappedComponentRef: ComponentRef<unknown>) => {     const ref = injector.get(ApplicationRef);      if (bootstrappedComponentRef !== ref.components[0]) {       return;     }      const router = injector.get(Router);     const bootstrapDone = injector.get(BOOTSTRAP_DONE);      if (injector.get(INITIAL_NAVIGATION) === InitialNavigation.EnabledNonBlocking) {       router.initialNavigation();     }      injector.get(ROUTER_PRELOADER, null, InjectFlags.Optional)?.setUpPreloading();     injector.get(ROUTER_SCROLLER, null, InjectFlags.Optional)?.init();     router.resetRootComponentType(ref.componentTypes[0]);     if (!bootstrapDone.closed) {       bootstrapDone.next();       bootstrapDone.unsubscribe();     }   }; }  /**  * A subject used to indicate that the bootstrapping phase is done. When initial navigation is  * `enabledBlocking`, the first navigation waits until bootstrapping is finished before continuing  * to the activation phase.  */ const BOOTSTRAP_DONE =     new InjectionToken<Subject<void>>(NG_DEV_MODE ? 'bootstrap done indicator' : '', {       factory: () => {         return new Subject<void>();       }     });  /**  * This and the INITIAL_NAVIGATION token are used internally only. The public API side of this is  * configured through the `ExtraOptions`.  *  * When set to `EnabledBlocking`, the initial navigation starts before the root  * component is created. The bootstrap is blocked until the initial navigation is complete. This  * value is required for [server-side rendering](guide/universal) to work.  *  * When set to `EnabledNonBlocking`, the initial navigation starts after the root component has been  * created. The bootstrap is not blocked on the completion of the initial navigation.  *  * When set to `Disabled`, the initial navigation is not performed. The location listener is set up  * before the root component gets created. Use if there is a reason to have more control over when  * the router starts its initial navigation due to some complex initialization logic.  *  * @see `ExtraOptions`  */ const enum InitialNavigation {   EnabledBlocking,   EnabledNonBlocking,   Disabled, }  const INITIAL_NAVIGATION = new InjectionToken<InitialNavigation>(     NG_DEV_MODE ? 'initial navigation' : '',     {providedIn: 'root', factory: () => InitialNavigation.EnabledNonBlocking});  /**  * A type alias for providers returned by `withEnabledBlockingInitialNavigation` for use with  * `provideRouter`.  *  * @see `withEnabledBlockingInitialNavigation`  * @see `provideRouter`  *  * @publicApi  */ export type EnabledBlockingInitialNavigationFeature =     RouterFeature<RouterFeatureKind.EnabledBlockingInitialNavigationFeature>;  /**  * A type alias for providers returned by `withEnabledBlockingInitialNavigation` or  * `withDisabledInitialNavigation` functions for use with `provideRouter`.  *  * @see `withEnabledBlockingInitialNavigation`  * @see `withDisabledInitialNavigation`  * @see `provideRouter`  *  * @publicApi  */ export type InitialNavigationFeature =     EnabledBlockingInitialNavigationFeature|DisabledInitialNavigationFeature;  /**  * Configures initial navigation to start before the root component is created.  *  * The bootstrap is blocked until the initial navigation is complete. This value is required for  * [server-side rendering](guide/universal) to work.  *  * @usageNotes  *  * Basic example of how you can enable this navigation behavior:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withEnabledBlockingInitialNavigation())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @publicApi  * @returns A set of providers for use with `provideRouter`.  */ export function withEnabledBlockingInitialNavigation(): EnabledBlockingInitialNavigationFeature {   const providers = [     {provide: INITIAL_NAVIGATION, useValue: InitialNavigation.EnabledBlocking},     {       provide: APP_INITIALIZER,       multi: true,       deps: [Injector],       useFactory: (injector: Injector) => {         const locationInitialized: Promise<any> =             injector.get(LOCATION_INITIALIZED, Promise.resolve());          return () => {           return locationInitialized.then(() => {             return new Promise(resolve => {               const router = injector.get(Router);               const bootstrapDone = injector.get(BOOTSTRAP_DONE);               afterNextNavigation(router, () => {                 // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored                 // without a redirect.                 resolve(true);               });                injector.get(NavigationTransitions).afterPreactivation = () => {                 // Unblock APP_INITIALIZER once we get to `afterPreactivation`. At this point, we                 // assume activation will complete successfully (even though this is not                 // guaranteed).                 resolve(true);                 return bootstrapDone.closed ? of(void 0) : bootstrapDone;               };               router.initialNavigation();             });           });         };       }     },   ];   return routerFeature(RouterFeatureKind.EnabledBlockingInitialNavigationFeature, providers); }  /**  * A type alias for providers returned by `withDisabledInitialNavigation` for use with  * `provideRouter`.  *  * @see `withDisabledInitialNavigation`  * @see `provideRouter`  *  * @publicApi  */ export type DisabledInitialNavigationFeature =     RouterFeature<RouterFeatureKind.DisabledInitialNavigationFeature>;  /**  * Disables initial navigation.  *  * Use if there is a reason to have more control over when the router starts its initial navigation  * due to some complex initialization logic.  *  * @usageNotes  *  * Basic example of how you can disable initial navigation:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withDisabledInitialNavigation())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withDisabledInitialNavigation(): DisabledInitialNavigationFeature {   const providers = [     {       provide: APP_INITIALIZER,       multi: true,       useFactory: () => {         const router = inject(Router);         return () => {           router.setUpLocationChangeListener();         };       }     },     {provide: INITIAL_NAVIGATION, useValue: InitialNavigation.Disabled}   ];   return routerFeature(RouterFeatureKind.DisabledInitialNavigationFeature, providers); }  /**  * A type alias for providers returned by `withDebugTracing` for use with `provideRouter`.  *  * @see `withDebugTracing`  * @see `provideRouter`  *  * @publicApi  */ export type DebugTracingFeature = RouterFeature<RouterFeatureKind.DebugTracingFeature>;  /**  * Enables logging of all internal navigation events to the console.  * Extra logging might be useful for debugging purposes to inspect Router event sequence.  *  * @usageNotes  *  * Basic example of how you can enable debug tracing:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withDebugTracing())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withDebugTracing(): DebugTracingFeature {   let providers: Provider[] = [];   if (NG_DEV_MODE) {     providers = [{       provide: ENVIRONMENT_INITIALIZER,       multi: true,       useFactory: () => {         const router = inject(Router);         return () => router.events.subscribe((e: Event) => {           // tslint:disable:no-console           console.group?.(`Router Event: ${(<any>e.constructor).name}`);           console.log(stringifyEvent(e));           console.log(e);           console.groupEnd?.();           // tslint:enable:no-console         });       }     }];   } else {     providers = [];   }   return routerFeature(RouterFeatureKind.DebugTracingFeature, providers); }  const ROUTER_PRELOADER = new InjectionToken<RouterPreloader>(NG_DEV_MODE ? 'router preloader' : '');  /**  * A type alias that represents a feature which enables preloading in Router.  * The type is used to describe the return value of the `withPreloading` function.  *  * @see `withPreloading`  * @see `provideRouter`  *  * @publicApi  */ export type PreloadingFeature = RouterFeature<RouterFeatureKind.PreloadingFeature>;  /**  * Allows to configure a preloading strategy to use. The strategy is configured by providing a  * reference to a class that implements a `PreloadingStrategy`.  *  * @usageNotes  *  * Basic example of how you can configure preloading:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withPreloading(PreloadAllModules))  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that  *     should be used.  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withPreloading(preloadingStrategy: Type<PreloadingStrategy>): PreloadingFeature {   const providers = [     {provide: ROUTER_PRELOADER, useExisting: RouterPreloader},     {provide: PreloadingStrategy, useExisting: preloadingStrategy},   ];   return routerFeature(RouterFeatureKind.PreloadingFeature, providers); }  /**  * A type alias for providers returned by `withRouterConfig` for use with `provideRouter`.  *  * @see `withRouterConfig`  * @see `provideRouter`  *  * @publicApi  */ export type RouterConfigurationFeature =     RouterFeature<RouterFeatureKind.RouterConfigurationFeature>;  /**  * Allows to provide extra parameters to configure Router.  *  * @usageNotes  *  * Basic example of how you can provide extra configuration options:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withRouterConfig({  *          onSameUrlNavigation: 'reload'  *       }))  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @param options A set of parameters to configure Router, see `RouterConfigOptions` for  *     additional information.  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withRouterConfig(options: RouterConfigOptions): RouterConfigurationFeature {   const providers = [     {provide: ROUTER_CONFIGURATION, useValue: options},   ];   return routerFeature(RouterFeatureKind.RouterConfigurationFeature, providers); }  /**  * A type alias for providers returned by `withHashLocation` for use with `provideRouter`.  *  * @see `withHashLocation`  * @see `provideRouter`  *  * @publicApi  */ export type RouterHashLocationFeature = RouterFeature<RouterFeatureKind.RouterHashLocationFeature>;  /**  * Provides the location strategy that uses the URL fragment instead of the history API.  *  * @usageNotes  *  * Basic example of how you can use the hash location option:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withHashLocation())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  * @see `HashLocationStrategy`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withHashLocation(): RouterConfigurationFeature {   const providers = [     {provide: LocationStrategy, useClass: HashLocationStrategy},   ];   return routerFeature(RouterFeatureKind.RouterConfigurationFeature, providers); }  /**  * A type alias for providers returned by `withNavigationErrorHandler` for use with `provideRouter`.  *  * @see `withNavigationErrorHandler`  * @see `provideRouter`  *  * @publicApi  */ export type NavigationErrorHandlerFeature =     RouterFeature<RouterFeatureKind.NavigationErrorHandlerFeature>;  /**  * Subscribes to the Router's navigation events and calls the given function when a  * `NavigationError` happens.  *  * This function is run inside application's injection context so you can use the `inject` function.  *  * @usageNotes  *  * Basic example of how you can use the error handler option:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withNavigationErrorHandler((e: NavigationError) =>  * inject(MyErrorTracker).trackError(e)))  *     ]  *   }  * );  * ```  *  * @see `NavigationError`  * @see `inject`  * @see `EnvironmentInjector#runInContext`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withNavigationErrorHandler(fn: (error: NavigationError) => void):     NavigationErrorHandlerFeature {   const providers = [{     provide: ENVIRONMENT_INITIALIZER,     multi: true,     useValue: () => {       const injector = inject(EnvironmentInjector);       inject(Router).events.subscribe((e) => {         if (e instanceof NavigationError) {           injector.runInContext(() => fn(e));         }       });     }   }];   return routerFeature(RouterFeatureKind.NavigationErrorHandlerFeature, providers); }  /**  * A type alias that represents all Router features available for use with `provideRouter`.  * Features can be enabled by adding special functions to the `provideRouter` call.  * See documentation for each symbol to find corresponding function name. See also `provideRouter`  * documentation on how to use those functions.  *  * @see `provideRouter`  *  * @publicApi  */ export type RouterFeatures = PreloadingFeature|DebugTracingFeature|InitialNavigationFeature|     InMemoryScrollingFeature|RouterConfigurationFeature|NavigationErrorHandlerFeature;  /**  * The list of features as an enum to uniquely type each feature.  */ export const enum RouterFeatureKind {   PreloadingFeature,   DebugTracingFeature,   EnabledBlockingInitialNavigationFeature,   DisabledInitialNavigationFeature,   InMemoryScrollingFeature,   RouterConfigurationFeature,   RouterHashLocationFeature,   NavigationErrorHandlerFeature, } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, ViewportScroller} from '@angular/common'; import {APP_BOOTSTRAP_LISTENER, ComponentRef, inject, Inject, InjectionToken, ModuleWithProviders, NgModule, NgProbeToken, NgZone, Optional, Provider, SkipSelf, ɵRuntimeError as RuntimeError} from '@angular/core';  import {EmptyOutletComponent} from './components/empty_outlet'; import {RouterLink} from './directives/router_link'; import {RouterLinkActive} from './directives/router_link_active'; import {RouterOutlet} from './directives/router_outlet'; import {RuntimeErrorCode} from './errors'; import {Routes} from './models'; import {NavigationTransitions} from './navigation_transition'; import {getBootstrapListener, rootRoute, ROUTER_IS_PROVIDED, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withPreloading} from './provide_router'; import {Router} from './router'; import {ExtraOptions, ROUTER_CONFIGURATION} from './router_config'; import {RouterConfigLoader, ROUTES} from './router_config_loader'; import {ChildrenOutletContexts} from './router_outlet_context'; import {ROUTER_SCROLLER, RouterScroller} from './router_scroller'; import {ActivatedRoute} from './router_state'; import {DefaultUrlSerializer, UrlSerializer} from './url_tree';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * The directives defined in the `RouterModule`.  */ const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkActive, EmptyOutletComponent];  /**  * @docsNotRequired  */ export const ROUTER_FORROOT_GUARD = new InjectionToken<void>(     NG_DEV_MODE ? 'router duplicate forRoot guard' : 'ROUTER_FORROOT_GUARD');  // TODO(atscott): All of these except `ActivatedRoute` are `providedIn: 'root'`. They are only kept // here to avoid a breaking change whereby the provider order matters based on where the // `RouterModule`/`RouterTestingModule` is imported. These can/should be removed as a \"breaking\" // change in a major version. export const ROUTER_PROVIDERS: Provider[] = [   Location,   {provide: UrlSerializer, useClass: DefaultUrlSerializer},   Router,   ChildrenOutletContexts,   {provide: ActivatedRoute, useFactory: rootRoute, deps: [Router]},   RouterConfigLoader,   // Only used to warn when `provideRoutes` is used without `RouterModule` or `provideRouter`. Can   // be removed when `provideRoutes` is removed.   NG_DEV_MODE ? {provide: ROUTER_IS_PROVIDED, useValue: true} : [], ];  export function routerNgProbeToken() {   return new NgProbeToken('Router', Router); }  /**  * @description  *  * Adds directives and providers for in-app navigation among views defined in an application.  * Use the Angular `Router` service to declaratively specify application states and manage state  * transitions.  *  * You can import this NgModule multiple times, once for each lazy-loaded bundle.  * However, only one `Router` service can be active.  * To ensure this, there are two ways to register routes when importing this module:  *  * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given  * routes, and the `Router` service itself.  * * The `forChild()` method creates an `NgModule` that contains all the directives and the given  * routes, but does not include the `Router` service.  *  * @see [Routing and Navigation guide](guide/router) for an  * overview of how the `Router` service should be used.  *  * @publicApi  */ @NgModule({   imports: ROUTER_DIRECTIVES,   exports: ROUTER_DIRECTIVES, }) export class RouterModule {   constructor(@Optional() @Inject(ROUTER_FORROOT_GUARD) guard: any) {}    /**    * Creates and configures a module with all the router providers and directives.    * Optionally sets up an application listener to perform an initial navigation.    *    * When registering the NgModule at the root, import as follows:    *    * ```    * @NgModule({    *   imports: [RouterModule.forRoot(ROUTES)]    * })    * class MyNgModule {}    * ```    *    * @param routes An array of `Route` objects that define the navigation paths for the application.    * @param config An `ExtraOptions` configuration object that controls how navigation is performed.    * @return The new `NgModule`.    *    */   static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterModule> {     return {       ngModule: RouterModule,       providers: [         ROUTER_PROVIDERS,         NG_DEV_MODE ? (config?.enableTracing ? withDebugTracing().ɵproviders : []) : [],         {provide: ROUTES, multi: true, useValue: routes},         {           provide: ROUTER_FORROOT_GUARD,           useFactory: provideForRootGuard,           deps: [[Router, new Optional(), new SkipSelf()]]         },         {provide: ROUTER_CONFIGURATION, useValue: config ? config : {}},         config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(),         provideRouterScroller(),         config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [],         {provide: NgProbeToken, multi: true, useFactory: routerNgProbeToken},         config?.initialNavigation ? provideInitialNavigation(config) : [],         provideRouterInitializer(),       ],     };   }    /**    * Creates a module with all the router directives and a provider registering routes,    * without creating a new Router service.    * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:    *    * ```    * @NgModule({    *   imports: [RouterModule.forChild(ROUTES)]    * })    * class MyNgModule {}    * ```    *    * @param routes An array of `Route` objects that define the navigation paths for the submodule.    * @return The new NgModule.    *    */   static forChild(routes: Routes): ModuleWithProviders<RouterModule> {     return {       ngModule: RouterModule,       providers: [{provide: ROUTES, multi: true, useValue: routes}],     };   } }  /**  * For internal use by `RouterModule` only. Note that this differs from `withInMemoryRouterScroller`  * because it reads from the `ExtraOptions` which should not be used in the standalone world.  */ export function provideRouterScroller(): Provider {   return {     provide: ROUTER_SCROLLER,     useFactory: () => {       const viewportScroller = inject(ViewportScroller);       const zone = inject(NgZone);       const config: ExtraOptions = inject(ROUTER_CONFIGURATION);       const transitions = inject(NavigationTransitions);       const urlSerializer = inject(UrlSerializer);       if (config.scrollOffset) {         viewportScroller.setOffset(config.scrollOffset);       }       return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, config);     },   }; }  // Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should // provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`. function provideHashLocationStrategy(): Provider {   return {provide: LocationStrategy, useClass: HashLocationStrategy}; }  // Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not // need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`. function providePathLocationStrategy(): Provider {   return {provide: LocationStrategy, useClass: PathLocationStrategy}; }  export function provideForRootGuard(router: Router): any {   if (NG_DEV_MODE && router) {     throw new RuntimeError(         RuntimeErrorCode.FOR_ROOT_CALLED_TWICE,         `The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector.` +             ` Lazy loaded modules should use RouterModule.forChild() instead.`);   }   return 'guarded'; }  // Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter` // users call `withXInitialNavigation` directly. function provideInitialNavigation(config: Pick<ExtraOptions, 'initialNavigation'>): Provider[] {   return [     config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [],     config.initialNavigation === 'enabledBlocking' ?         withEnabledBlockingInitialNavigation().ɵproviders :         [],   ]; }  // TODO(atscott): This should not be in the public API /**  * A [DI token](guide/glossary/#di-token) for the router initializer that  * is called after the app is bootstrapped.  *  * @publicApi  */ export const ROUTER_INITIALIZER = new InjectionToken<(compRef: ComponentRef<any>) => void>(     NG_DEV_MODE ? 'Router Initializer' : '');  function provideRouterInitializer(): Provider[] {   return [     // ROUTER_INITIALIZER token should be removed. It's public API but shouldn't be. We can just     // have `getBootstrapListener` directly attached to APP_BOOTSTRAP_LISTENER.     {provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener},     {provide: APP_BOOTSTRAP_LISTENER, multi: true, useExisting: ROUTER_INITIALIZER},   ]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the router package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/index';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["isObservable","isPromise","NG_DEV_MODE","RuntimeError","isRedirectingNavigationCancelingError","isNavigationCancelingError","EmptyOutletComponent","isInjectable","noMatch","NoMatch","applyRedirects","last","applyRedirectsFn","recognize","rxjsLast","recognizeFn","Console","coerceToBoolean","i1.Router","i2.RouterLink","i2.RouterConfigLoader"],"mappings":";;;;;;;;;;;;;;AAYA;;;;AAIG;AACI,MAAM,cAAc,GAAG,UAAU;AAExC;;;;AAIG;AACI,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAmDlD,MAAM,WAAW,CAAA;AAGf,IAAA,WAAA,CAAY,MAAc,EAAA;AACxB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;KAC5B;AAED,IAAA,GAAG,CAAC,IAAY,EAAA;AACd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I,WAAW,IAAI,MAAM,EAAE;AACzB,QAAA,MAAM,IAAIH,aAAY,CAAA,IAAA,+CAElB,CAA4G,0GAAA,CAAA;AACxG,YAAA,CAAA,gEAAA,CAAkE,CAAC,CAAC;AAC7E,KAAA;AACD,IAAA,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;AACA;AACA,SAAS,wBAAwB,CAAC,MAA+C,EAAA;IAC/E,OAAO;AACL,QAAA,MAAM,CAAC,iBAAiB,KAAK,UAAU,GAAG,6BAA6B,EAAE,CAAC,UAAU,GAAG,EAAE;AACzF,QAAA,MAAM,CAAC,iBAAiB,KAAK,iBAAiB;AAC1C,YAAA,oCAAoC,EAAE,CAAC,UAAU;YACjD,EAAE;KACP,CAAC;AACJ,CAAC;AAED;AACA;;;;;AAKG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,WAAW,GAAG,oBAAoB,GAAG,EAAE,EAAE;AAE7C,SAAS,wBAAwB,GAAA;IAC/B,OAAO;;;AAGL,QAAA,EAAC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,oBAAoB,EAAC;QAC/D,EAAC,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAC;KAChF,CAAC;AACJ;;ACxNA;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 45 --------------------
{"version":3,"file":"router.mjs","sources":["../../../../../../packages/router/src/shared.ts","../../../../../../packages/router/src/utils/collection.ts","../../../../../../packages/router/src/url_tree.ts","../../../../../../packages/router/src/create_url_tree.ts","../../../../../../packages/router/src/events.ts","../../../../../../packages/router/src/create_url_tree_strategy.ts","../../../../../../packages/router/src/utils/tree.ts","../../../../../../packages/router/src/router_state.ts","../../../../../../packages/router/src/create_router_state.ts","../../../../../../packages/router/src/navigation_canceling_error.ts","../../../../../../packages/router/src/router_outlet_context.ts","../../../../../../packages/router/src/directives/router_outlet.ts","../../../../../../packages/router/src/components/empty_outlet.ts","../../../../../../packages/router/src/utils/config.ts","../../../../../../packages/router/src/operators/activate_routes.ts","../../../../../../packages/router/src/utils/preactivation.ts","../../../../../../packages/router/src/utils/type_guards.ts","../../../../../../packages/router/src/operators/prioritized_guard_value.ts","../../../../../../packages/router/src/operators/check_guards.ts","../../../../../../packages/router/src/utils/config_matching.ts","../../../../../../packages/router/src/apply_redirects.ts","../../../../../../packages/router/src/operators/apply_redirects.ts","../../../../../../packages/router/src/recognize.ts","../../../../../../packages/router/src/operators/recognize.ts","../../../../../../packages/router/src/operators/resolve_data.ts","../../../../../../packages/router/src/operators/switch_tap.ts","../../../../../../packages/router/src/deprecated_load_children.ts","../../../../../../packages/router/src/router_config_loader.ts","../../../../../../packages/router/src/navigation_transition.ts","../../../../../../packages/router/src/page_title_strategy.ts","../../../../../../packages/router/src/route_reuse_strategy.ts","../../../../../../packages/router/src/router_config.ts","../../../../../../packages/router/src/url_handling_strategy.ts","../../../../../../packages/router/src/router.ts","../../../../../../packages/router/src/directives/router_link.ts","../../../../../../packages/router/src/directives/router_link_active.ts","../../../../../../packages/router/src/router_preloader.ts","../../../../../../packages/router/src/router_scroller.ts","../../../../../../packages/router/src/utils/navigations.ts","../../../../../../packages/router/src/provide_router.ts","../../../../../../packages/router/src/router_module.ts","../../../../../../packages/router/src/version.ts","../../../../../../packages/router/public_api.ts","../../../../../../packages/router/index.ts","../../../../../../packages/router/router.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Route, UrlMatchResult} from './models'; import {UrlSegment, UrlSegmentGroup} from './url_tree';   /**  * The primary routing outlet.  *  * @publicApi  */ export const PRIMARY_OUTLET = 'primary';  /**  * A private symbol used to store the value of `Route.title` inside the `Route.data` if it is a  * static string or `Route.resolve` if anything else. This allows us to reuse the existing route  * data/resolvers to support the title feature without new instrumentation in the `Router` pipeline.  */ export const RouteTitleKey = Symbol('RouteTitle');  /**  * A collection of matrix and query URL parameters.  * @see `convertToParamMap()`  * @see `ParamMap`  *  * @publicApi  */ export type Params = {   [key: string]: any; };  /**  * A map that provides access to the required and optional parameters  * specific to a route.  * The map supports retrieving a single value with `get()`  * or multiple values with `getAll()`.  *  * @see [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)  *  * @publicApi  */ export interface ParamMap {   /**    * Reports whether the map contains a given parameter.    * @param name The parameter name.    * @returns True if the map contains the given parameter, false otherwise.    */   has(name: string): boolean;   /**    * Retrieves a single value for a parameter.    * @param name The parameter name.    * @return The parameter's single value,    * or the first value if the parameter has multiple values,    * or `null` when there is no such parameter.    */   get(name: string): string|null;   /**    * Retrieves multiple values for a parameter.    * @param name The parameter name.    * @return An array containing one or more values,    * or an empty array if there is no such parameter.    *    */   getAll(name: string): string[];    /** Names of the parameters in the map. */   readonly keys: string[]; }  class ParamsAsMap implements ParamMap {   private params: Params;    constructor(params: Params) {     this.params = params || {};   }    has(name: string): boolean {     return Object.prototype.hasOwnProperty.call(this.params, name);   }    get(name: string): string|null {     if (this.has(name)) {       const v = this.params[name];       return Array.isArray(v) ? v[0] : v;     }      return null;   }    getAll(name: string): string[] {     if (this.has(name)) {       const v = this.params[name];       return Array.isArray(v) ? v : [v];     }      return [];   }    get keys(): string[] {     return Object.keys(this.params);   } }  /**  * Converts a `Params` instance to a `ParamMap`.  * @param params The instance to convert.  * @returns The new map instance.  *  * @publicApi  */ export function convertToParamMap(params: Params): ParamMap {   return new ParamsAsMap(params); }  /**  * Matches the route configuration (`route`) against the actual URL (`segments`).  *  * When no matcher is defined on a `Route`, this is the matcher used by the Router by default.  *  * @param segments The remaining unmatched segments in the current navigation  * @param segmentGroup The current segment group being matched  * @param route The `Route` to match against.  *  * @see UrlMatchResult  * @see Route  *  * @returns The resulting match information or `null` if the `route` should not match.  * @publicApi  */ export function defaultUrlMatcher(     segments: UrlSegment[], segmentGroup: UrlSegmentGroup, route: Route): UrlMatchResult|null {   const parts = route.path!.split('/');    if (parts.length > segments.length) {     // The actual URL is shorter than the config, no match     return null;   }    if (route.pathMatch === 'full' &&       (segmentGroup.hasChildren() || parts.length < segments.length)) {     // The config is longer than the actual URL but we are looking for a full match, return null     return null;   }    const posParams: {[key: string]: UrlSegment} = {};    // Check each config part against the actual URL   for (let index = 0; index < parts.length; index++) {     const part = parts[index];     const segment = segments[index];     const isParameter = part.startsWith(':');     if (isParameter) {       posParams[part.substring(1)] = segment;     } else if (part !== segment.path) {       // The actual URL part does not match the config, no match       return null;     }   }    return {consumed: segments.slice(0, parts.length), posParams}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵisObservable as isObservable, ɵisPromise as isPromise} from '@angular/core'; import {from, Observable, of} from 'rxjs';  import {Params} from '../shared';  export function shallowEqualArrays(a: any[], b: any[]): boolean {   if (a.length !== b.length) return false;   for (let i = 0; i < a.length; ++i) {     if (!shallowEqual(a[i], b[i])) return false;   }   return true; }  export function shallowEqual(a: Params, b: Params): boolean {   // While `undefined` should never be possible, it would sometimes be the case in IE 11   // and pre-chromium Edge. The check below accounts for this edge case.   const k1 = a ? Object.keys(a) : undefined;   const k2 = b ? Object.keys(b) : undefined;   if (!k1 || !k2 || k1.length != k2.length) {     return false;   }   let key: string;   for (let i = 0; i < k1.length; i++) {     key = k1[i];     if (!equalArraysOrString(a[key], b[key])) {       return false;     }   }   return true; }  /**  * Test equality for arrays of strings or a string.  */ export function equalArraysOrString(a: string|string[], b: string|string[]) {   if (Array.isArray(a) && Array.isArray(b)) {     if (a.length !== b.length) return false;     const aSorted = [...a].sort();     const bSorted = [...b].sort();     return aSorted.every((val, index) => bSorted[index] === val);   } else {     return a === b;   } }  /**  * Flattens single-level nested arrays.  */ export function flatten<T>(arr: T[][]): T[] {   return Array.prototype.concat.apply([], arr); }  /**  * Return the last element of an array.  */ export function last<T>(a: T[]): T|null {   return a.length > 0 ? a[a.length - 1] : null; }  /**  * Verifys all booleans in an array are `true`.  */ export function and(bools: boolean[]): boolean {   return !bools.some(v => !v); }  export function forEach<K, V>(map: {[key: string]: V}, callback: (v: V, k: string) => void): void {   for (const prop in map) {     if (map.hasOwnProperty(prop)) {       callback(map[prop], prop);     }   } }  export function wrapIntoObservable<T>(value: T|Promise<T>|Observable<T>): Observable<T> {   if (isObservable(value)) {     return value;   }    if (isPromise(value)) {     // Use `Promise.resolve()` to wrap promise-like instances.     // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the     // change detection.     return from(Promise.resolve(value));   }    return of(value); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injectable, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors'; import {convertToParamMap, ParamMap, Params, PRIMARY_OUTLET} from './shared'; import {equalArraysOrString, forEach, shallowEqual} from './utils/collection';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * A set of options which specify how to determine if a `UrlTree` is active, given the `UrlTree`  * for the current router state.  *  * @publicApi  * @see Router.isActive  */ export interface IsActiveMatchOptions {   /**    * Defines the strategy for comparing the matrix parameters of two `UrlTree`s.    *    * The matrix parameter matching is dependent on the strategy for matching the    * segments. That is, if the `paths` option is set to `'subset'`, only    * the matrix parameters of the matching segments will be compared.    *    * - `'exact'`: Requires that matching segments also have exact matrix parameter    * matches.    * - `'subset'`: The matching segments in the router's active `UrlTree` may contain    * extra matrix parameters, but those that exist in the `UrlTree` in question must match.    * - `'ignored'`: When comparing `UrlTree`s, matrix params will be ignored.    */   matrixParams: 'exact'|'subset'|'ignored';   /**    * Defines the strategy for comparing the query parameters of two `UrlTree`s.    *    * - `'exact'`: the query parameters must match exactly.    * - `'subset'`: the active `UrlTree` may contain extra parameters,    * but must match the key and value of any that exist in the `UrlTree` in question.    * - `'ignored'`: When comparing `UrlTree`s, query params will be ignored.    */   queryParams: 'exact'|'subset'|'ignored';   /**    * Defines the strategy for comparing the `UrlSegment`s of the `UrlTree`s.    *    * - `'exact'`: all segments in each `UrlTree` must match.    * - `'subset'`: a `UrlTree` will be determined to be active if it    * is a subtree of the active route. That is, the active route may contain extra    * segments, but must at least have all the segments of the `UrlTree` in question.    */   paths: 'exact'|'subset';   /**    * - `'exact'`: indicates that the `UrlTree` fragments must be equal.    * - `'ignored'`: the fragments will not be compared when determining if a    * `UrlTree` is active.    */   fragment: 'exact'|'ignored'; }  type ParamMatchOptions = 'exact'|'subset'|'ignored';  type PathCompareFn =     (container: UrlSegmentGroup, containee: UrlSegmentGroup, matrixParams: ParamMatchOptions) =>         boolean; type ParamCompareFn = (container: Params, containee: Params) => boolean;  const pathCompareMap: Record<IsActiveMatchOptions['paths'], PathCompareFn> = {   'exact': equalSegmentGroups,   'subset': containsSegmentGroup, }; const paramCompareMap: Record<ParamMatchOptions, ParamCompareFn> = {   'exact': equalParams,   'subset': containsParams,   'ignored': () => true, };  export function containsTree(     container: UrlTree, containee: UrlTree, options: IsActiveMatchOptions): boolean {   return pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) &&       paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) &&       !(options.fragment === 'exact' && container.fragment !== containee.fragment); }  function equalParams(container: Params, containee: Params): boolean {   // TODO: This does not handle array params correctly.   return shallowEqual(container, containee); }  function equalSegmentGroups(     container: UrlSegmentGroup, containee: UrlSegmentGroup,     matrixParams: ParamMatchOptions): boolean {   if (!equalPath(container.segments, containee.segments)) return false;   if (!matrixParamsMatch(container.segments, containee.segments, matrixParams)) {     return false;   }   if (container.numberOfChildren !== containee.numberOfChildren) return false;   for (const c in containee.children) {     if (!container.children[c]) return false;     if (!equalSegmentGroups(container.children[c], containee.children[c], matrixParams))       return false;   }   return true; }  function containsParams(container: Params, containee: Params): boolean {   return Object.keys(containee).length <= Object.keys(container).length &&       Object.keys(containee).every(key => equalArraysOrString(container[key], containee[key])); }  function containsSegmentGroup(     container: UrlSegmentGroup, containee: UrlSegmentGroup,     matrixParams: ParamMatchOptions): boolean {   return containsSegmentGroupHelper(container, containee, containee.segments, matrixParams); }  function containsSegmentGroupHelper(     container: UrlSegmentGroup, containee: UrlSegmentGroup, containeePaths: UrlSegment[],     matrixParams: ParamMatchOptions): boolean {   if (container.segments.length > containeePaths.length) {     const current = container.segments.slice(0, containeePaths.length);     if (!equalPath(current, containeePaths)) return false;     if (containee.hasChildren()) return false;     if (!matrixParamsMatch(current, containeePaths, matrixParams)) return false;     return true;    } else if (container.segments.length === containeePaths.length) {     if (!equalPath(container.segments, containeePaths)) return false;     if (!matrixParamsMatch(container.segments, containeePaths, matrixParams)) return false;     for (const c in containee.children) {       if (!container.children[c]) return false;       if (!containsSegmentGroup(container.children[c], containee.children[c], matrixParams)) {         return false;       }     }     return true;    } else {     const current = containeePaths.slice(0, container.segments.length);     const next = containeePaths.slice(container.segments.length);     if (!equalPath(container.segments, current)) return false;     if (!matrixParamsMatch(container.segments, current, matrixParams)) return false;     if (!container.children[PRIMARY_OUTLET]) return false;     return containsSegmentGroupHelper(         container.children[PRIMARY_OUTLET], containee, next, matrixParams);   } }  function matrixParamsMatch(     containerPaths: UrlSegment[], containeePaths: UrlSegment[], options: ParamMatchOptions) {   return containeePaths.every((containeeSegment, i) => {     return paramCompareMap[options](containerPaths[i].parameters, containeeSegment.parameters);   }); }  /**  * @description  *  * Represents the parsed URL.  *  * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a  * serialized tree.  * UrlTree is a data structure that provides a lot of affordances in dealing with URLs  *  * @usageNotes  * ### Example  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const tree: UrlTree =  *       router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');  *     const f = tree.fragment; // return 'fragment'  *     const q = tree.queryParams; // returns {debug: 'true'}  *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];  *     const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'  *     g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'  *     g.children['support'].segments; // return 1 segment 'help'  *   }  * }  * ```  *  * @publicApi  */ export class UrlTree {   /** @internal */   _queryParamMap?: ParamMap;   /** @internal */   _warnIfUsedForNavigation?: string;    constructor(       /** The root segment group of the URL tree */       public root: UrlSegmentGroup = new UrlSegmentGroup([], {}),       /** The query params of the URL */       public queryParams: Params = {},       /** The fragment of the URL */       public fragment: string|null = null) {     if (NG_DEV_MODE) {       if (root.segments.length > 0) {         throw new RuntimeError(             RuntimeErrorCode.INVALID_ROOT_URL_SEGMENT,             'The root `UrlSegmentGroup` should not contain `segments`. ' +                 'Instead, these segments belong in the `children` so they can be associated with a named outlet.');       }     }   }    get queryParamMap(): ParamMap {     if (!this._queryParamMap) {       this._queryParamMap = convertToParamMap(this.queryParams);     }     return this._queryParamMap;   }    /** @docsNotRequired */   toString(): string {     return DEFAULT_SERIALIZER.serialize(this);   } }  /**  * @description  *  * Represents the parsed URL segment group.  *  * See `UrlTree` for more information.  *  * @publicApi  */ export class UrlSegmentGroup {   /** @internal */   _sourceSegment?: UrlSegmentGroup;   /** @internal */   _segmentIndexShift?: number;   /**    * @internal    *    * Used only in dev mode to detect if application relies on `relativeLinkResolution: 'legacy'`    * Should be removed in when `relativeLinkResolution` is removed.    */   _segmentIndexShiftCorrected?: number;   /** The parent node in the url tree */   parent: UrlSegmentGroup|null = null;    constructor(       /** The URL segments of this group. See `UrlSegment` for more information */       public segments: UrlSegment[],       /** The list of children of this group */       public children: {[key: string]: UrlSegmentGroup}) {     forEach(children, (v: any, k: any) => v.parent = this);   }    /** Whether the segment has child segments */   hasChildren(): boolean {     return this.numberOfChildren > 0;   }    /** Number of child segments */   get numberOfChildren(): number {     return Object.keys(this.children).length;   }    /** @docsNotRequired */   toString(): string {     return serializePaths(this);   } }   /**  * @description  *  * Represents a single URL segment.  *  * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix  * parameters associated with the segment.  *  * @usageNotes  * ### Example  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const tree: UrlTree = router.parseUrl('/team;id=33');  *     const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];  *     const s: UrlSegment[] = g.segments;  *     s[0].path; // returns 'team'  *     s[0].parameters; // returns {id: 33}  *   }  * }  * ```  *  * @publicApi  */ export class UrlSegment {   /** @internal */   _parameterMap?: ParamMap;    constructor(       /** The path part of a URL segment */       public path: string,        /** The matrix parameters associated with a segment */       public parameters: {[name: string]: string}) {}    get parameterMap(): ParamMap {     if (!this._parameterMap) {       this._parameterMap = convertToParamMap(this.parameters);     }     return this._parameterMap;   }    /** @docsNotRequired */   toString(): string {     return serializePath(this);   } }  export function equalSegments(as: UrlSegment[], bs: UrlSegment[]): boolean {   return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters)); }  export function equalPath(as: UrlSegment[], bs: UrlSegment[]): boolean {   if (as.length !== bs.length) return false;   return as.every((a, i) => a.path === bs[i].path); }  export function mapChildrenIntoArray<T>(     segment: UrlSegmentGroup, fn: (v: UrlSegmentGroup, k: string) => T[]): T[] {   let res: T[] = [];   forEach(segment.children, (child: UrlSegmentGroup, childOutlet: string) => {     if (childOutlet === PRIMARY_OUTLET) {       res = res.concat(fn(child, childOutlet));     }   });   forEach(segment.children, (child: UrlSegmentGroup, childOutlet: string) => {     if (childOutlet !== PRIMARY_OUTLET) {       res = res.concat(fn(child, childOutlet));     }   });   return res; }   /**  * @description  *  * Serializes and deserializes a URL string into a URL tree.  *  * The url serialization strategy is customizable. You can  * make all URLs case insensitive by providing a custom UrlSerializer.  *  * See `DefaultUrlSerializer` for an example of a URL serializer.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => new DefaultUrlSerializer()}) export abstract class UrlSerializer {   /** Parse a url into a `UrlTree` */   abstract parse(url: string): UrlTree;    /** Converts a `UrlTree` into a url */   abstract serialize(tree: UrlTree): string; }  /**  * @description  *  * A default implementation of the `UrlSerializer`.  *  * Example URLs:  *  * ```  * /inbox/33(popup:compose)  * /inbox/33;open=true/messages/44  * ```  *  * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the  * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to  * specify route specific parameters.  *  * @publicApi  */ export class DefaultUrlSerializer implements UrlSerializer {   /** Parses a url into a `UrlTree` */   parse(url: string): UrlTree {     const p = new UrlParser(url);     return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());   }    /** Converts a `UrlTree` into a url */   serialize(tree: UrlTree): string {     const segment = `/${serializeSegment(tree.root, true)}`;     const query = serializeQueryParams(tree.queryParams);     const fragment =         typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';      return `${segment}${query}${fragment}`;   } }  const DEFAULT_SERIALIZER = new DefaultUrlSerializer();  export function serializePaths(segment: UrlSegmentGroup): string {   return segment.segments.map(p => serializePath(p)).join('/'); }  function serializeSegment(segment: UrlSegmentGroup, root: boolean): string {   if (!segment.hasChildren()) {     return serializePaths(segment);   }    if (root) {     const primary = segment.children[PRIMARY_OUTLET] ?         serializeSegment(segment.children[PRIMARY_OUTLET], false) :         '';     const children: string[] = [];      forEach(segment.children, (v: UrlSegmentGroup, k: string) => {       if (k !== PRIMARY_OUTLET) {         children.push(`${k}:${serializeSegment(v, false)}`);       }     });      return children.length > 0 ? `${primary}(${children.join('//')})` : primary;    } else {     const children = mapChildrenIntoArray(segment, (v: UrlSegmentGroup, k: string) => {       if (k === PRIMARY_OUTLET) {         return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];       }        return [`${k}:${serializeSegment(v, false)}`];     });      // use no parenthesis if the only child is a primary outlet route     if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {       return `${serializePaths(segment)}/${children[0]}`;     }      return `${serializePaths(segment)}/(${children.join('//')})`;   } }  /**  * Encodes a URI string with the default encoding. This function will only ever be called from  * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need  * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't  * have to be encoded per https://url.spec.whatwg.org.  */ function encodeUriString(s: string): string {   return encodeURIComponent(s)       .replace(/%40/g, '@')       .replace(/%3A/gi, ':')       .replace(/%24/g, '$')       .replace(/%2C/gi, ','); }  /**  * This function should be used to encode both keys and values in a query string key/value. In  * the following URL, you need to call encodeUriQuery on \"k\" and \"v\":  *  * http://www.site.org/html;mk=mv?k=v#f  */ export function encodeUriQuery(s: string): string {   return encodeUriString(s).replace(/%3B/gi, ';'); }  /**  * This function should be used to encode a URL fragment. In the following URL, you need to call  * encodeUriFragment on \"f\":  *  * http://www.site.org/html;mk=mv?k=v#f  */ export function encodeUriFragment(s: string): string {   return encodeURI(s); }  /**  * This function should be run on any URI segment as well as the key and value in a key/value  * pair for matrix params. In the following URL, you need to call encodeUriSegment on \"html\",  * \"mk\", and \"mv\":  *  * http://www.site.org/html;mk=mv?k=v#f  */ export function encodeUriSegment(s: string): string {   return encodeUriString(s).replace(/\\(/g, '%28').replace(/\\)/g, '%29').replace(/%26/gi, '&'); }  export function decode(s: string): string {   return decodeURIComponent(s); }  // Query keys/values should have the \"+\" replaced first, as \"+\" in a query string is \" \". // decodeURIComponent function will not decode \"+\" as a space. export function decodeQuery(s: string): string {   return decode(s.replace(/\\+/g, '%20')); }  export function serializePath(path: UrlSegment): string {   return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`; }  function serializeMatrixParams(params: {[key: string]: string}): string {   return Object.keys(params)       .map(key => `;${encodeUriSegment(key)}=${encodeUriSegment(params[key])}`)       .join(''); }  function serializeQueryParams(params: {[key: string]: any}): string {   const strParams: string[] =       Object.keys(params)           .map((name) => {             const value = params[name];             return Array.isArray(value) ?                 value.map(v => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&') :                 `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;           })           .filter(s => !!s);    return strParams.length ? `?${strParams.join('&')}` : ''; }  const SEGMENT_RE = /^[^\\/()?;=#]+/; function matchSegments(str: string): string {   const match = str.match(SEGMENT_RE);   return match ? match[0] : ''; }  const QUERY_PARAM_RE = /^[^=?&#]+/; // Return the name of the query param at the start of the string or an empty string function matchQueryParams(str: string): string {   const match = str.match(QUERY_PARAM_RE);   return match ? match[0] : ''; }  const QUERY_PARAM_VALUE_RE = /^[^&#]+/; // Return the value of the query param at the start of the string or an empty string function matchUrlQueryParamValue(str: string): string {   const match = str.match(QUERY_PARAM_VALUE_RE);   return match ? match[0] : ''; }  class UrlParser {   private remaining: string;    constructor(private url: string) {     this.remaining = url;   }    parseRootSegment(): UrlSegmentGroup {     this.consumeOptional('/');      if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {       return new UrlSegmentGroup([], {});     }      // The root segment group never has segments     return new UrlSegmentGroup([], this.parseChildren());   }    parseQueryParams(): Params {     const params: Params = {};     if (this.consumeOptional('?')) {       do {         this.parseQueryParam(params);       } while (this.consumeOptional('&'));     }     return params;   }    parseFragment(): string|null {     return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;   }    private parseChildren(): {[outlet: string]: UrlSegmentGroup} {     if (this.remaining === '') {       return {};     }      this.consumeOptional('/');      const segments: UrlSegment[] = [];     if (!this.peekStartsWith('(')) {       segments.push(this.parseSegment());     }      while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {       this.capture('/');       segments.push(this.parseSegment());     }      let children: {[outlet: string]: UrlSegmentGroup} = {};     if (this.peekStartsWith('/(')) {       this.capture('/');       children = this.parseParens(true);     }      let res: {[outlet: string]: UrlSegmentGroup} = {};     if (this.peekStartsWith('(')) {       res = this.parseParens(false);     }      if (segments.length > 0 || Object.keys(children).length > 0) {       res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);     }      return res;   }    // parse a segment with its matrix parameters   // ie `name;k1=v1;k2`   private parseSegment(): UrlSegment {     const path = matchSegments(this.remaining);     if (path === '' && this.peekStartsWith(';')) {       throw new RuntimeError(           RuntimeErrorCode.EMPTY_PATH_WITH_PARAMS,           NG_DEV_MODE && `Empty path url segment cannot have parameters: '${this.remaining}'.`);     }      this.capture(path);     return new UrlSegment(decode(path), this.parseMatrixParams());   }    private parseMatrixParams(): {[key: string]: string} {     const params: {[key: string]: string} = {};     while (this.consumeOptional(';')) {       this.parseParam(params);     }     return params;   }    private parseParam(params: {[key: string]: string}): void {     const key = matchSegments(this.remaining);     if (!key) {       return;     }     this.capture(key);     let value: any = '';     if (this.consumeOptional('=')) {       const valueMatch = matchSegments(this.remaining);       if (valueMatch) {         value = valueMatch;         this.capture(value);       }     }      params[decode(key)] = decode(value);   }    // Parse a single query parameter `name[=value]`   private parseQueryParam(params: Params): void {     const key = matchQueryParams(this.remaining);     if (!key) {       return;     }     this.capture(key);     let value: any = '';     if (this.consumeOptional('=')) {       const valueMatch = matchUrlQueryParamValue(this.remaining);       if (valueMatch) {         value = valueMatch;         this.capture(value);       }     }      const decodedKey = decodeQuery(key);     const decodedVal = decodeQuery(value);      if (params.hasOwnProperty(decodedKey)) {       // Append to existing values       let currentVal = params[decodedKey];       if (!Array.isArray(currentVal)) {         currentVal = [currentVal];         params[decodedKey] = currentVal;       }       currentVal.push(decodedVal);     } else {       // Create a new value       params[decodedKey] = decodedVal;     }   }    // parse `(a/b//outlet_name:c/d)`   private parseParens(allowPrimary: boolean): {[outlet: string]: UrlSegmentGroup} {     const segments: {[key: string]: UrlSegmentGroup} = {};     this.capture('(');      while (!this.consumeOptional(')') && this.remaining.length > 0) {       const path = matchSegments(this.remaining);        const next = this.remaining[path.length];        // if is is not one of these characters, then the segment was unescaped       // or the group was not closed       if (next !== '/' && next !== ')' && next !== ';') {         throw new RuntimeError(             RuntimeErrorCode.UNPARSABLE_URL, NG_DEV_MODE && `Cannot parse url '${this.url}'`);       }        let outletName: string = undefined!;       if (path.indexOf(':') > -1) {         outletName = path.slice(0, path.indexOf(':'));         this.capture(outletName);         this.capture(':');       } else if (allowPrimary) {         outletName = PRIMARY_OUTLET;       }        const children = this.parseChildren();       segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] :                                                                   new UrlSegmentGroup([], children);       this.consumeOptional('//');     }      return segments;   }    private peekStartsWith(str: string): boolean {     return this.remaining.startsWith(str);   }    // Consumes the prefix when it is present and returns whether it has been consumed   private consumeOptional(str: string): boolean {     if (this.peekStartsWith(str)) {       this.remaining = this.remaining.substring(str.length);       return true;     }     return false;   }    private capture(str: string): void {     if (!this.consumeOptional(str)) {       throw new RuntimeError(           RuntimeErrorCode.UNEXPECTED_VALUE_IN_URL, NG_DEV_MODE && `Expected \"${str}\".`);     }   } }  export function createRoot(rootCandidate: UrlSegmentGroup) {   return rootCandidate.segments.length > 0 ?       new UrlSegmentGroup([], {[PRIMARY_OUTLET]: rootCandidate}) :       rootCandidate; }  /**  * Recursively merges primary segment children into their parents and also drops empty children  * (those which have no segments and no children themselves). The latter prevents serializing a  * group into something like `/a(aux:)`, where `aux` is an empty child segment.  */ export function squashSegmentGroup(segmentGroup: UrlSegmentGroup): UrlSegmentGroup {   const newChildren: Record<string, UrlSegmentGroup> = {};   for (const childOutlet of Object.keys(segmentGroup.children)) {     const child = segmentGroup.children[childOutlet];     const childCandidate = squashSegmentGroup(child);     // don't add empty children     if (childCandidate.segments.length > 0 || childCandidate.hasChildren()) {       newChildren[childOutlet] = childCandidate;     }   }   const s = new UrlSegmentGroup(segmentGroup.segments, newChildren);   return mergeTrivialChildren(s); }  /**  * When possible, merges the primary outlet child into the parent `UrlSegmentGroup`.  *  * When a segment group has only one child which is a primary outlet, merges that child into the  * parent. That is, the child segment group's segments are merged into the `s` and the child's  * children become the children of `s`. Think of this like a 'squash', merging the child segment  * group into the parent.  */ function mergeTrivialChildren(s: UrlSegmentGroup): UrlSegmentGroup {   if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {     const c = s.children[PRIMARY_OUTLET];     return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);   }    return s; }  export function isUrlTree(v: any): v is UrlTree {   return v instanceof UrlTree; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from './errors'; import {ActivatedRoute, ActivatedRouteSnapshot} from './router_state'; import {Params, PRIMARY_OUTLET} from './shared'; import {createRoot, squashSegmentGroup, UrlSegment, UrlSegmentGroup, UrlTree} from './url_tree'; import {forEach, last, shallowEqual} from './utils/collection';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * Creates a `UrlTree` relative to an `ActivatedRouteSnapshot`.  *  * @publicApi  *  *  * @param relativeTo The `ActivatedRouteSnapshot` to apply the commands to  * @param commands An array of URL fragments with which to construct the new URL tree.  * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path  * segments, followed by the parameters for each segment.  * The fragments are applied to the one provided in the `relativeTo` parameter.  * @param queryParams The query parameters for the `UrlTree`. `null` if the `UrlTree` does not have  *     any query parameters.  * @param fragment The fragment for the `UrlTree`. `null` if the `UrlTree` does not have a fragment.  *  * @usageNotes  *  * ```  * // create /team/33/user/11  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, 'user', 11]);  *  * // create /team/33;expand=true/user/11  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {expand: true}, 'user', 11]);  *  * // you can collapse static segments like this (this works only with the first passed-in value):  * createUrlTreeFromSnapshot(snapshot, ['/team/33/user', userId]);  *  * // If the first segment can contain slashes, and you do not want the router to split it,  * // you can do the following:  * createUrlTreeFromSnapshot(snapshot, [{segmentPath: '/one/two'}]);  *  * // create /team/33/(user/11//right:chat)  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right:  * 'chat'}}], null, null);  *  * // remove the right secondary node  * createUrlTreeFromSnapshot(snapshot, ['/team', 33, {outlets: {primary: 'user/11', right: null}}]);  *  * // For the examples below, assume the current URL is for the `/team/33/user/11` and the  * `ActivatedRouteSnapshot` points to `user/11`:  *  * // navigate to /team/33/user/11/details  * createUrlTreeFromSnapshot(snapshot, ['details']);  *  * // navigate to /team/33/user/22  * createUrlTreeFromSnapshot(snapshot, ['../22']);  *  * // navigate to /team/44/user/22  * createUrlTreeFromSnapshot(snapshot, ['../../team/44/user/22']);  * ```  */ export function createUrlTreeFromSnapshot(     relativeTo: ActivatedRouteSnapshot, commands: any[], queryParams: Params|null = null,     fragment: string|null = null): UrlTree {   const relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeTo);   return createUrlTreeFromSegmentGroup(relativeToUrlSegmentGroup, commands, queryParams, fragment); }  export function createSegmentGroupFromRoute(route: ActivatedRouteSnapshot): UrlSegmentGroup {   let targetGroup: UrlSegmentGroup|undefined;    function createSegmentGroupFromRouteRecursive(currentRoute: ActivatedRouteSnapshot):       UrlSegmentGroup {     const childOutlets: {[outlet: string]: UrlSegmentGroup} = {};     for (const childSnapshot of currentRoute.children) {       const root = createSegmentGroupFromRouteRecursive(childSnapshot);       childOutlets[childSnapshot.outlet] = root;     }     const segmentGroup = new UrlSegmentGroup(currentRoute.url, childOutlets);     if (currentRoute === route) {       targetGroup = segmentGroup;     }     return segmentGroup;   }   const rootCandidate = createSegmentGroupFromRouteRecursive(route.root);   const rootSegmentGroup = createRoot(rootCandidate);    return targetGroup ?? rootSegmentGroup; }  export function createUrlTreeFromSegmentGroup(     relativeTo: UrlSegmentGroup, commands: any[], queryParams: Params|null,     fragment: string|null): UrlTree {   let root = relativeTo;   while (root.parent) {     root = root.parent;   }   // There are no commands so the `UrlTree` goes to the same path as the one created from the   // `UrlSegmentGroup`. All we need to do is update the `queryParams` and `fragment` without   // applying any other logic.   if (commands.length === 0) {     return tree(root, root, root, queryParams, fragment);   }    const nav = computeNavigation(commands);    if (nav.toRoot()) {     return tree(root, root, new UrlSegmentGroup([], {}), queryParams, fragment);   }    const position = findStartingPositionForTargetGroup(nav, root, relativeTo);   const newSegmentGroup = position.processChildren ?       updateSegmentGroupChildren(position.segmentGroup, position.index, nav.commands) :       updateSegmentGroup(position.segmentGroup, position.index, nav.commands);   return tree(root, position.segmentGroup, newSegmentGroup, queryParams, fragment); }  export function createUrlTree(     route: ActivatedRoute, urlTree: UrlTree, commands: any[], queryParams: Params|null,     fragment: string|null): UrlTree {   if (commands.length === 0) {     return tree(urlTree.root, urlTree.root, urlTree.root, queryParams, fragment);   }    const nav = computeNavigation(commands);    if (nav.toRoot()) {     return tree(urlTree.root, urlTree.root, new UrlSegmentGroup([], {}), queryParams, fragment);   }    function createTreeUsingPathIndex(lastPathIndex: number) {     const startingPosition =         findStartingPosition(nav, urlTree, route.snapshot?._urlSegment, lastPathIndex);      const segmentGroup = startingPosition.processChildren ?         updateSegmentGroupChildren(             startingPosition.segmentGroup, startingPosition.index, nav.commands) :         updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);     return tree(urlTree.root, startingPosition.segmentGroup, segmentGroup, queryParams, fragment);   }   // Note: The types should disallow `snapshot` from being `undefined` but due to test mocks, this   // may be the case. Since we try to access it at an earlier point before the refactor to add the   // warning for `relativeLinkResolution: 'legacy'`, this may cause failures in tests where it   // didn't before.   const result = createTreeUsingPathIndex(route.snapshot?._lastPathIndex);    return result; }  function isMatrixParams(command: any): boolean {   return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath; }  /**  * Determines if a given command has an `outlets` map. When we encounter a command  * with an outlets k/v map, we need to apply each outlet individually to the existing segment.  */ function isCommandWithOutlets(command: any): command is {outlets: {[key: string]: any}} {   return typeof command === 'object' && command != null && command.outlets; }  function tree(     oldRoot: UrlSegmentGroup, oldSegmentGroup: UrlSegmentGroup, newSegmentGroup: UrlSegmentGroup,     queryParams: Params|null, fragment: string|null): UrlTree {   let qp: any = {};   if (queryParams) {     forEach(queryParams, (value: any, name: any) => {       qp[name] = Array.isArray(value) ? value.map((v: any) => `${v}`) : `${value}`;     });   }    let rootCandidate: UrlSegmentGroup;   if (oldRoot === oldSegmentGroup) {     rootCandidate = newSegmentGroup;   } else {     rootCandidate = replaceSegment(oldRoot, oldSegmentGroup, newSegmentGroup);   }    const newRoot = createRoot(squashSegmentGroup(rootCandidate));   return new UrlTree(newRoot, qp, fragment); }  /**  * Replaces the `oldSegment` which is located in some child of the `current` with the `newSegment`.  * This also has the effect of creating new `UrlSegmentGroup` copies to update references. This  * shouldn't be necessary but the fallback logic for an invalid ActivatedRoute in the creation uses  * the Router's current url tree. If we don't create new segment groups, we end up modifying that  * value.  */ function replaceSegment(     current: UrlSegmentGroup, oldSegment: UrlSegmentGroup,     newSegment: UrlSegmentGroup): UrlSegmentGroup {   const children: {[key: string]: UrlSegmentGroup} = {};   forEach(current.children, (c: UrlSegmentGroup, outletName: string) => {     if (c === oldSegment) {       children[outletName] = newSegment;     } else {       children[outletName] = replaceSegment(c, oldSegment, newSegment);     }   });   return new UrlSegmentGroup(current.segments, children); }  class Navigation {   constructor(       public isAbsolute: boolean, public numberOfDoubleDots: number, public commands: any[]) {     if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {       throw new RuntimeError(           RuntimeErrorCode.ROOT_SEGMENT_MATRIX_PARAMS,           NG_DEV_MODE && 'Root segment cannot have matrix parameters');     }      const cmdWithOutlet = commands.find(isCommandWithOutlets);     if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {       throw new RuntimeError(           RuntimeErrorCode.MISPLACED_OUTLETS_COMMAND,           NG_DEV_MODE && '{outlets:{}} has to be the last command');     }   }    public toRoot(): boolean {     return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';   } }  /** Transforms commands to a normalized `Navigation` */ function computeNavigation(commands: any[]): Navigation {   if ((typeof commands[0] === 'string') && commands.length === 1 && commands[0] === '/') {     return new Navigation(true, 0, commands);   }    let numberOfDoubleDots = 0;   let isAbsolute = false;    const res: any[] = commands.reduce((res, cmd, cmdIdx) => {     if (typeof cmd === 'object' && cmd != null) {       if (cmd.outlets) {         const outlets: {[k: string]: any} = {};         forEach(cmd.outlets, (commands: any, name: string) => {           outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;         });         return [...res, {outlets}];       }        if (cmd.segmentPath) {         return [...res, cmd.segmentPath];       }     }      if (!(typeof cmd === 'string')) {       return [...res, cmd];     }      if (cmdIdx === 0) {       cmd.split('/').forEach((urlPart, partIndex) => {         if (partIndex == 0 && urlPart === '.') {           // skip './a'         } else if (partIndex == 0 && urlPart === '') {  //  '/a'           isAbsolute = true;         } else if (urlPart === '..') {  //  '../a'           numberOfDoubleDots++;         } else if (urlPart != '') {           res.push(urlPart);         }       });        return res;     }      return [...res, cmd];   }, []);    return new Navigation(isAbsolute, numberOfDoubleDots, res); }  class Position {   constructor(       public segmentGroup: UrlSegmentGroup, public processChildren: boolean, public index: number) {   } }  function findStartingPositionForTargetGroup(     nav: Navigation, root: UrlSegmentGroup, target: UrlSegmentGroup): Position {   if (nav.isAbsolute) {     return new Position(root, true, 0);   }    if (!target) {     // `NaN` is used only to maintain backwards compatibility with incorrectly mocked     // `ActivatedRouteSnapshot` in tests. In prior versions of this code, the position here was     // determined based on an internal property that was rarely mocked, resulting in `NaN`. In     // reality, this code path should _never_ be touched since `target` is not allowed to be falsey.     return new Position(root, false, NaN);   }   if (target.parent === null) {     return new Position(target, true, 0);   }    const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;   const index = target.segments.length - 1 + modifier;   return createPositionApplyingDoubleDots(target, index, nav.numberOfDoubleDots); }  function findStartingPosition(     nav: Navigation, tree: UrlTree, segmentGroup: UrlSegmentGroup,     lastPathIndex: number): Position {   if (nav.isAbsolute) {     return new Position(tree.root, true, 0);   }    if (lastPathIndex === -1) {     // Pathless ActivatedRoute has _lastPathIndex === -1 but should not process children     // see issue #26224, #13011, #35687     // However, if the ActivatedRoute is the root we should process children like above.     const processChildren = segmentGroup === tree.root;     return new Position(segmentGroup, processChildren, 0);   }    const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;   const index = lastPathIndex + modifier;   return createPositionApplyingDoubleDots(segmentGroup, index, nav.numberOfDoubleDots); }  function createPositionApplyingDoubleDots(     group: UrlSegmentGroup, index: number, numberOfDoubleDots: number): Position {   let g = group;   let ci = index;   let dd = numberOfDoubleDots;   while (dd > ci) {     dd -= ci;     g = g.parent!;     if (!g) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_DOUBLE_DOTS, NG_DEV_MODE && 'Invalid number of \\'../\\'');     }     ci = g.segments.length;   }   return new Position(g, false, ci - dd); }  function getOutlets(commands: unknown[]): {[k: string]: unknown[]|string} {   if (isCommandWithOutlets(commands[0])) {     return commands[0].outlets;   }    return {[PRIMARY_OUTLET]: commands}; }  function updateSegmentGroup(     segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]): UrlSegmentGroup {   if (!segmentGroup) {     segmentGroup = new UrlSegmentGroup([], {});   }   if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {     return updateSegmentGroupChildren(segmentGroup, startIndex, commands);   }    const m = prefixedWith(segmentGroup, startIndex, commands);   const slicedCommands = commands.slice(m.commandIndex);   if (m.match && m.pathIndex < segmentGroup.segments.length) {     const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});     g.children[PRIMARY_OUTLET] =         new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);     return updateSegmentGroupChildren(g, 0, slicedCommands);   } else if (m.match && slicedCommands.length === 0) {     return new UrlSegmentGroup(segmentGroup.segments, {});   } else if (m.match && !segmentGroup.hasChildren()) {     return createNewSegmentGroup(segmentGroup, startIndex, commands);   } else if (m.match) {     return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);   } else {     return createNewSegmentGroup(segmentGroup, startIndex, commands);   } }  function updateSegmentGroupChildren(     segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]): UrlSegmentGroup {   if (commands.length === 0) {     return new UrlSegmentGroup(segmentGroup.segments, {});   } else {     const outlets = getOutlets(commands);     const children: {[key: string]: UrlSegmentGroup} = {};     // If the set of commands does not apply anything to the primary outlet and the child segment is     // an empty path primary segment on its own, we want to skip applying the commands at this     // level. Imagine the following config:     //     // {path: '', children: [{path: '**', outlet: 'popup'}]}.     //     // Navigation to /(popup:a) will activate the child outlet correctly Given a follow-up     // navigation with commands     // ['/', {outlets: {'popup': 'b'}}], we _would not_ want to apply the outlet commands to the     // root segment because that would result in     // //(popup:a)(popup:b) since the outlet command got applied one level above where it appears in     // the `ActivatedRoute` rather than updating the existing one.     //     // Because empty paths do not appear in the URL segments and the fact that the segments used in     // the output `UrlTree` are squashed to eliminate these empty paths where possible     // https://github.com/angular/angular/blob/13f10de40e25c6900ca55bd83b36bd533dacfa9e/packages/router/src/url_tree.ts#L755     // it can be hard to determine what is the right thing to do when applying commands to a     // `UrlSegmentGroup` that is created from an \"unsquashed\"/expanded `ActivatedRoute` tree.     // This code effectively \"squashes\" empty path primary routes when they have no siblings on     // the same level of the tree.     if (!outlets[PRIMARY_OUTLET] && segmentGroup.children[PRIMARY_OUTLET] &&         segmentGroup.numberOfChildren === 1 &&         segmentGroup.children[PRIMARY_OUTLET].segments.length === 0) {       return updateSegmentGroupChildren(           segmentGroup.children[PRIMARY_OUTLET], startIndex, commands);     }      forEach(outlets, (commands, outlet) => {       if (typeof commands === 'string') {         commands = [commands];       }       if (commands !== null) {         children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);       }     });      forEach(segmentGroup.children, (child: UrlSegmentGroup, childOutlet: string) => {       if (outlets[childOutlet] === undefined) {         children[childOutlet] = child;       }     });     return new UrlSegmentGroup(segmentGroup.segments, children);   } }  function prefixedWith(segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]) {   let currentCommandIndex = 0;   let currentPathIndex = startIndex;    const noMatch = {match: false, pathIndex: 0, commandIndex: 0};   while (currentPathIndex < segmentGroup.segments.length) {     if (currentCommandIndex >= commands.length) return noMatch;     const path = segmentGroup.segments[currentPathIndex];     const command = commands[currentCommandIndex];     // Do not try to consume command as part of the prefixing if it has outlets because it can     // contain outlets other than the one being processed. Consuming the outlets command would     // result in other outlets being ignored.     if (isCommandWithOutlets(command)) {       break;     }     const curr = `${command}`;     const next =         currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;      if (currentPathIndex > 0 && curr === undefined) break;      if (curr && next && (typeof next === 'object') && next.outlets === undefined) {       if (!compare(curr, next, path)) return noMatch;       currentCommandIndex += 2;     } else {       if (!compare(curr, {}, path)) return noMatch;       currentCommandIndex++;     }     currentPathIndex++;   }    return {match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex}; }  function createNewSegmentGroup(     segmentGroup: UrlSegmentGroup, startIndex: number, commands: any[]): UrlSegmentGroup {   const paths = segmentGroup.segments.slice(0, startIndex);    let i = 0;   while (i < commands.length) {     const command = commands[i];     if (isCommandWithOutlets(command)) {       const children = createNewSegmentChildren(command.outlets);       return new UrlSegmentGroup(paths, children);     }      // if we start with an object literal, we need to reuse the path part from the segment     if (i === 0 && isMatrixParams(commands[0])) {       const p = segmentGroup.segments[startIndex];       paths.push(new UrlSegment(p.path, stringify(commands[0])));       i++;       continue;     }      const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;     const next = (i < commands.length - 1) ? commands[i + 1] : null;     if (curr && next && isMatrixParams(next)) {       paths.push(new UrlSegment(curr, stringify(next)));       i += 2;     } else {       paths.push(new UrlSegment(curr, {}));       i++;     }   }   return new UrlSegmentGroup(paths, {}); }  function createNewSegmentChildren(outlets: {[name: string]: unknown[]|string}):     {[outlet: string]: UrlSegmentGroup} {   const children: {[outlet: string]: UrlSegmentGroup} = {};   forEach(outlets, (commands, outlet) => {     if (typeof commands === 'string') {       commands = [commands];     }     if (commands !== null) {       children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);     }   });   return children; }  function stringify(params: {[key: string]: any}): {[key: string]: string} {   const res: {[key: string]: string} = {};   forEach(params, (v: any, k: string) => res[k] = `${v}`);   return res; }  function compare(path: string, params: {[key: string]: any}, segment: UrlSegment): boolean {   return path == segment.path && shallowEqual(params, segment.parameters); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Route} from './models'; import {ActivatedRouteSnapshot, RouterStateSnapshot} from './router_state';  /**  * Identifies the call or event that triggered a navigation.  *  * * 'imperative': Triggered by `router.navigateByUrl()` or `router.navigate()`.  * * 'popstate' : Triggered by a `popstate` event.  * * 'hashchange'-: Triggered by a `hashchange` event.  *  * @publicApi  */ export type NavigationTrigger = 'imperative'|'popstate'|'hashchange'; export const IMPERATIVE_NAVIGATION = 'imperative';  /**  * Identifies the type of a router event.  *  * @publicApi  */ export const enum EventType {   NavigationStart,   NavigationEnd,   NavigationCancel,   NavigationError,   RoutesRecognized,   ResolveStart,   ResolveEnd,   GuardsCheckStart,   GuardsCheckEnd,   RouteConfigLoadStart,   RouteConfigLoadEnd,   ChildActivationStart,   ChildActivationEnd,   ActivationStart,   ActivationEnd,   Scroll,   NavigationSkipped, }  /**  * Base for events the router goes through, as opposed to events tied to a specific  * route. Fired one time for any given navigation.  *  * The following code shows how a class subscribes to router events.  *  * ```ts  * import {Event, RouterEvent, Router} from '@angular/router';  *  * class MyService {  *   constructor(public router: Router) {  *     router.events.pipe(  *        filter((e: Event): e is RouterEvent => e instanceof RouterEvent)  *     ).subscribe((e: RouterEvent) => {  *       // Do something  *     });  *   }  * }  * ```  *  * @see `Event`  * @see [Router events summary](guide/router-reference#router-events)  * @publicApi  */ export class RouterEvent {   constructor(       /** A unique ID that the router assigns to every router navigation. */       public id: number,       /** The URL that is the destination for this navigation. */       public url: string) {} }  /**  * An event triggered when a navigation starts.  *  * @publicApi  */ export class NavigationStart extends RouterEvent {   readonly type = EventType.NavigationStart;    /**    * Identifies the call or event that triggered the navigation.    * An `imperative` trigger is a call to `router.navigateByUrl()` or `router.navigate()`.    *    * @see `NavigationEnd`    * @see `NavigationCancel`    * @see `NavigationError`    */   navigationTrigger?: NavigationTrigger;    /**    * The navigation state that was previously supplied to the `pushState` call,    * when the navigation is triggered by a `popstate` event. Otherwise null.    *    * The state object is defined by `NavigationExtras`, and contains any    * developer-defined state value, as well as a unique ID that    * the router assigns to every router transition/navigation.    *    * From the perspective of the router, the router never \"goes back\".    * When the user clicks on the back button in the browser,    * a new navigation ID is created.    *    * Use the ID in this previous-state object to differentiate between a newly created    * state and one returned to by a `popstate` event, so that you can restore some    * remembered state, such as scroll position.    *    */   restoredState?: {[k: string]: any, navigationId: number}|null;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       navigationTrigger: NavigationTrigger = 'imperative',       /** @docsNotRequired */       restoredState: {[k: string]: any, navigationId: number}|null = null) {     super(id, url);     this.navigationTrigger = navigationTrigger;     this.restoredState = restoredState;   }    /** @docsNotRequired */   override toString(): string {     return `NavigationStart(id: ${this.id}, url: '${this.url}')`;   } }  /**  * An event triggered when a navigation ends successfully.  *  * @see `NavigationStart`  * @see `NavigationCancel`  * @see `NavigationError`  *  * @publicApi  */ export class NavigationEnd extends RouterEvent {   readonly type = EventType.NavigationEnd;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}')`;   } }  /**  * A code for the `NavigationCancel` event of the `Router` to indicate the  * reason a navigation failed.  *  * @publicApi  */ export const enum NavigationCancellationCode {   /**    * A navigation failed because a guard returned a `UrlTree` to redirect.    */   Redirect,   /**    * A navigation failed because a more recent navigation started.    */   SupersededByNewNavigation,   /**    * A navigation failed because one of the resolvers completed without emiting a value.    */   NoDataFromResolver,   /**    * A navigation failed because a guard returned `false`.    */   GuardRejected, }  /**  * A code for the `NavigationSkipped` event of the `Router` to indicate the  * reason a navigation was skipped.  *  * @publicApi  */ export const enum NavigationSkippedCode {   /**    * A navigation was skipped because the navigation URL was the same as the current Router URL.    */   IgnoredSameUrlNavigation,   /**    * A navigation was skipped because the configured `UrlHandlingStrategy` return `false` for both    * the current Router URL and the target of the navigation.    *    * @see UrlHandlingStrategy    */   IgnoredByUrlHandlingStrategy, }  /**  * An event triggered when a navigation is canceled, directly or indirectly.  * This can happen for several reasons including when a route guard  * returns `false` or initiates a redirect by returning a `UrlTree`.  *  * @see `NavigationStart`  * @see `NavigationEnd`  * @see `NavigationError`  *  * @publicApi  */ export class NavigationCancel extends RouterEvent {   readonly type = EventType.NavigationCancel;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /**        * A description of why the navigation was cancelled. For debug purposes only. Use `code`        * instead for a stable cancellation reason that can be used in production.        */       public reason: string,       /**        * A code to indicate why the navigation was canceled. This cancellation code is stable for        * the reason and can be relied on whereas the `reason` string could change and should not be        * used in production.        */       readonly code?: NavigationCancellationCode) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;   } }  /**  * An event triggered when a navigation is skipped.  * This can happen for a couple reasons including onSameUrlHandling  * is set to `ignore` and the navigation URL is not different than the  * current state.  *  * @publicApi  */ export class NavigationSkipped extends RouterEvent {   readonly type = EventType.NavigationSkipped;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /**        * A description of why the navigation was skipped. For debug purposes only. Use `code`        * instead for a stable skipped reason that can be used in production.        */       public reason: string,       /**        * A code to indicate why the navigation was skipped. This code is stable for        * the reason and can be relied on whereas the `reason` string could change and should not be        * used in production.        */       readonly code?: NavigationSkippedCode) {     super(id, url);   } }  /**  * An event triggered when a navigation fails due to an unexpected error.  *  * @see `NavigationStart`  * @see `NavigationEnd`  * @see `NavigationCancel`  *  * @publicApi  */ export class NavigationError extends RouterEvent {   readonly type = EventType.NavigationError;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public error: any,       /**        * The target of the navigation when the error occurred.        *        * Note that this can be `undefined` because an error could have occurred before the        * `RouterStateSnapshot` was created for the navigation.        */       readonly target?: RouterStateSnapshot) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;   } }  /**  * An event triggered when routes are recognized.  *  * @publicApi  */ export class RoutesRecognized extends RouterEvent {   readonly type = EventType.RoutesRecognized;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    /** @docsNotRequired */   override toString(): string {     return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered at the start of the Guard phase of routing.  *  * @see `GuardsCheckEnd`  *  * @publicApi  */ export class GuardsCheckStart extends RouterEvent {   readonly type = EventType.GuardsCheckStart;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    override toString(): string {     return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered at the end of the Guard phase of routing.  *  * @see `GuardsCheckStart`  *  * @publicApi  */ export class GuardsCheckEnd extends RouterEvent {   readonly type = EventType.GuardsCheckEnd;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot,       /** @docsNotRequired */       public shouldActivate: boolean) {     super(id, url);   }    override toString(): string {     return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;   } }  /**  * An event triggered at the start of the Resolve phase of routing.  *  * Runs in the \"resolve\" phase whether or not there is anything to resolve.  * In future, may change to only run when there are things to be resolved.  *  * @see `ResolveEnd`  *  * @publicApi  */ export class ResolveStart extends RouterEvent {   readonly type = EventType.ResolveStart;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    override toString(): string {     return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered at the end of the Resolve phase of routing.  * @see `ResolveStart`.  *  * @publicApi  */ export class ResolveEnd extends RouterEvent {   readonly type = EventType.ResolveEnd;    constructor(       /** @docsNotRequired */       id: number,       /** @docsNotRequired */       url: string,       /** @docsNotRequired */       public urlAfterRedirects: string,       /** @docsNotRequired */       public state: RouterStateSnapshot) {     super(id, url);   }    override toString(): string {     return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${         this.urlAfterRedirects}', state: ${this.state})`;   } }  /**  * An event triggered before lazy loading a route configuration.  *  * @see `RouteConfigLoadEnd`  *  * @publicApi  */ export class RouteConfigLoadStart {   readonly type = EventType.RouteConfigLoadStart;    constructor(       /** @docsNotRequired */       public route: Route) {}   toString(): string {     return `RouteConfigLoadStart(path: ${this.route.path})`;   } }  /**  * An event triggered when a route has been lazy loaded.  *  * @see `RouteConfigLoadStart`  *  * @publicApi  */ export class RouteConfigLoadEnd {   readonly type = EventType.RouteConfigLoadEnd;    constructor(       /** @docsNotRequired */       public route: Route) {}   toString(): string {     return `RouteConfigLoadEnd(path: ${this.route.path})`;   } }  /**  * An event triggered at the start of the child-activation  * part of the Resolve phase of routing.  * @see  `ChildActivationEnd`  * @see `ResolveStart`  *  * @publicApi  */ export class ChildActivationStart {   readonly type = EventType.ChildActivationStart;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ChildActivationStart(path: '${path}')`;   } }  /**  * An event triggered at the end of the child-activation part  * of the Resolve phase of routing.  * @see `ChildActivationStart`  * @see `ResolveStart`  * @publicApi  */ export class ChildActivationEnd {   readonly type = EventType.ChildActivationEnd;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ChildActivationEnd(path: '${path}')`;   } }  /**  * An event triggered at the start of the activation part  * of the Resolve phase of routing.  * @see `ActivationEnd`  * @see `ResolveStart`  *  * @publicApi  */ export class ActivationStart {   readonly type = EventType.ActivationStart;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ActivationStart(path: '${path}')`;   } }  /**  * An event triggered at the end of the activation part  * of the Resolve phase of routing.  * @see `ActivationStart`  * @see `ResolveStart`  *  * @publicApi  */ export class ActivationEnd {   readonly type = EventType.ActivationEnd;    constructor(       /** @docsNotRequired */       public snapshot: ActivatedRouteSnapshot) {}   toString(): string {     const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';     return `ActivationEnd(path: '${path}')`;   } }  /**  * An event triggered by scrolling.  *  * @publicApi  */ export class Scroll {   readonly type = EventType.Scroll;    constructor(       /** @docsNotRequired */       readonly routerEvent: NavigationEnd,        /** @docsNotRequired */       readonly position: [number, number]|null,        /** @docsNotRequired */       readonly anchor: string|null) {}    toString(): string {     const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;     return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;   } }  /**  * Router events that allow you to track the lifecycle of the router.  *  * The events occur in the following sequence:  *  * * [NavigationStart](api/router/NavigationStart): Navigation starts.  * * [RouteConfigLoadStart](api/router/RouteConfigLoadStart): Before  * the router [lazy loads](/guide/router#lazy-loading) a route configuration.  * * [RouteConfigLoadEnd](api/router/RouteConfigLoadEnd): After a route has been lazy loaded.  * * [RoutesRecognized](api/router/RoutesRecognized): When the router parses the URL  * and the routes are recognized.  * * [GuardsCheckStart](api/router/GuardsCheckStart): When the router begins the *guards*  * phase of routing.  * * [ChildActivationStart](api/router/ChildActivationStart): When the router  * begins activating a route's children.  * * [ActivationStart](api/router/ActivationStart): When the router begins activating a route.  * * [GuardsCheckEnd](api/router/GuardsCheckEnd): When the router finishes the *guards*  * phase of routing successfully.  * * [ResolveStart](api/router/ResolveStart): When the router begins the *resolve*  * phase of routing.  * * [ResolveEnd](api/router/ResolveEnd): When the router finishes the *resolve*  * phase of routing successfully.  * * [ChildActivationEnd](api/router/ChildActivationEnd): When the router finishes  * activating a route's children.  * * [ActivationEnd](api/router/ActivationEnd): When the router finishes activating a route.  * * [NavigationEnd](api/router/NavigationEnd): When navigation ends successfully.  * * [NavigationCancel](api/router/NavigationCancel): When navigation is canceled.  * * [NavigationError](api/router/NavigationError): When navigation fails  * due to an unexpected error.  * * [Scroll](api/router/Scroll): When the user scrolls.  *  * @publicApi  */ export type Event = RouterEvent|NavigationStart|NavigationEnd|NavigationCancel|NavigationError|     RoutesRecognized|GuardsCheckStart|GuardsCheckEnd|RouteConfigLoadStart|RouteConfigLoadEnd|     ChildActivationStart|ChildActivationEnd|ActivationStart|ActivationEnd|Scroll|ResolveStart|     ResolveEnd|NavigationSkipped;   export function stringifyEvent(routerEvent: Event): string {   if (!('type' in routerEvent)) {     return `Unknown Router Event: ${routerEvent.constructor.name}`;   }   switch (routerEvent.type) {     case EventType.ActivationEnd:       return `ActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.ActivationStart:       return `ActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.ChildActivationEnd:       return `ChildActivationEnd(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.ChildActivationStart:       return `ChildActivationStart(path: '${routerEvent.snapshot.routeConfig?.path || ''}')`;     case EventType.GuardsCheckEnd:       return `GuardsCheckEnd(id: ${routerEvent.id}, url: '${           routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${           routerEvent.state}, shouldActivate: ${routerEvent.shouldActivate})`;     case EventType.GuardsCheckStart:       return `GuardsCheckStart(id: ${routerEvent.id}, url: '${           routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${           routerEvent.state})`;     case EventType.NavigationCancel:       return `NavigationCancel(id: ${routerEvent.id}, url: '${routerEvent.url}')`;     case EventType.NavigationSkipped:       return `NavigationSkipped(id: ${routerEvent.id}, url: '${routerEvent.url}')`;     case EventType.NavigationEnd:       return `NavigationEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${           routerEvent.urlAfterRedirects}')`;     case EventType.NavigationError:       return `NavigationError(id: ${routerEvent.id}, url: '${routerEvent.url}', error: ${           routerEvent.error})`;     case EventType.NavigationStart:       return `NavigationStart(id: ${routerEvent.id}, url: '${routerEvent.url}')`;     case EventType.ResolveEnd:       return `ResolveEnd(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${           routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;     case EventType.ResolveStart:       return `ResolveStart(id: ${routerEvent.id}, url: '${routerEvent.url}', urlAfterRedirects: '${           routerEvent.urlAfterRedirects}', state: ${routerEvent.state})`;     case EventType.RouteConfigLoadEnd:       return `RouteConfigLoadEnd(path: ${routerEvent.route.path})`;     case EventType.RouteConfigLoadStart:       return `RouteConfigLoadStart(path: ${routerEvent.route.path})`;     case EventType.RoutesRecognized:       return `RoutesRecognized(id: ${routerEvent.id}, url: '${           routerEvent.url}', urlAfterRedirects: '${routerEvent.urlAfterRedirects}', state: ${           routerEvent.state})`;     case EventType.Scroll:       const pos =           routerEvent.position ? `${routerEvent.position[0]}, ${routerEvent.position[1]}` : null;       return `Scroll(anchor: '${routerEvent.anchor}', position: '${pos}')`;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injectable} from '@angular/core';  import {createSegmentGroupFromRoute, createUrlTree, createUrlTreeFromSegmentGroup} from './create_url_tree'; import {ActivatedRoute, RouterState} from './router_state'; import {Params} from './shared'; import {UrlSegmentGroup, UrlTree} from './url_tree';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  @Injectable() export class LegacyCreateUrlTree implements CreateUrlTreeStrategy {   createUrlTree(       relativeTo: ActivatedRoute|null|undefined, currentState: RouterState, currentUrlTree: UrlTree,       commands: any[], queryParams: Params|null, fragment: string|null): UrlTree {     const a = relativeTo || currentState.root;     const tree = createUrlTree(a, currentUrlTree, commands, queryParams, fragment);     if (NG_DEV_MODE) {       const treeFromSnapshotStrategy = new CreateUrlTreeUsingSnapshot().createUrlTree(           relativeTo, currentState, currentUrlTree, commands, queryParams, fragment);       if (treeFromSnapshotStrategy.toString() !== tree.toString()) {         let warningString = `The navigation to ${tree.toString()} will instead go to ${             treeFromSnapshotStrategy.toString()} in an upcoming version of Angular.`;         if (!!relativeTo) {           warningString += ' `relativeTo` might need to be removed from the `UrlCreationOptions`.';         }         tree._warnIfUsedForNavigation = warningString;       }     }     return tree;   } }  @Injectable() export class CreateUrlTreeUsingSnapshot implements CreateUrlTreeStrategy {   createUrlTree(       relativeTo: ActivatedRoute|null|undefined, currentState: RouterState, currentUrlTree: UrlTree,       commands: any[], queryParams: Params|null, fragment: string|null): UrlTree {     let relativeToUrlSegmentGroup: UrlSegmentGroup|undefined;     try {       const relativeToSnapshot = relativeTo ? relativeTo.snapshot : currentState.snapshot.root;       relativeToUrlSegmentGroup = createSegmentGroupFromRoute(relativeToSnapshot);     } catch (e: unknown) {       // This is strictly for backwards compatibility with tests that create       // invalid `ActivatedRoute` mocks.       // Note: the difference between having this fallback for invalid `ActivatedRoute` setups and       // just throwing is ~500 test failures. Fixing all of those tests by hand is not feasible at       // the moment.       if (typeof commands[0] !== 'string' || !commands[0].startsWith('/')) {         // Navigations that were absolute in the old way of creating UrlTrees         // would still work because they wouldn't attempt to match the         // segments in the `ActivatedRoute` to the `currentUrlTree` but         // instead just replace the root segment with the navigation result.         // Non-absolute navigations would fail to apply the commands because         // the logic could not find the segment to replace (so they'd act like there were no         // commands).         commands = [];       }       relativeToUrlSegmentGroup = currentUrlTree.root;     }     return createUrlTreeFromSegmentGroup(         relativeToUrlSegmentGroup, commands, queryParams, fragment);   } }  @Injectable({providedIn: 'root', useClass: LegacyCreateUrlTree}) export abstract class CreateUrlTreeStrategy {   abstract createUrlTree(       relativeTo: ActivatedRoute|null|undefined, currentState: RouterState, currentUrlTree: UrlTree,       commands: any[], queryParams: Params|null, fragment: string|null): UrlTree; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export class Tree<T> {   /** @internal */   _root: TreeNode<T>;    constructor(root: TreeNode<T>) {     this._root = root;   }    get root(): T {     return this._root.value;   }    /**    * @internal    */   parent(t: T): T|null {     const p = this.pathFromRoot(t);     return p.length > 1 ? p[p.length - 2] : null;   }    /**    * @internal    */   children(t: T): T[] {     const n = findNode(t, this._root);     return n ? n.children.map(t => t.value) : [];   }    /**    * @internal    */   firstChild(t: T): T|null {     const n = findNode(t, this._root);     return n && n.children.length > 0 ? n.children[0].value : null;   }    /**    * @internal    */   siblings(t: T): T[] {     const p = findPath(t, this._root);     if (p.length < 2) return [];      const c = p[p.length - 2].children.map(c => c.value);     return c.filter(cc => cc !== t);   }    /**    * @internal    */   pathFromRoot(t: T): T[] {     return findPath(t, this._root).map(s => s.value);   } }   // DFS for the node matching the value function findNode<T>(value: T, node: TreeNode<T>): TreeNode<T>|null {   if (value === node.value) return node;    for (const child of node.children) {     const node = findNode(value, child);     if (node) return node;   }    return null; }  // Return the path to the node with the given value using DFS function findPath<T>(value: T, node: TreeNode<T>): TreeNode<T>[] {   if (value === node.value) return [node];    for (const child of node.children) {     const path = findPath(value, child);     if (path.length) {       path.unshift(node);       return path;     }   }    return []; }  export class TreeNode<T> {   constructor(public value: T, public children: TreeNode<T>[]) {}    toString(): string {     return `TreeNode(${this.value})`;   } }  // Return the list of T indexed by outlet name export function nodeChildrenAsMap<T extends {outlet: string}>(node: TreeNode<T>|null) {   const map: {[outlet: string]: TreeNode<T>} = {};    if (node) {     node.children.forEach(child => map[child.value.outlet] = child);   }    return map; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Type} from '@angular/core'; import {BehaviorSubject, Observable, of} from 'rxjs'; import {map} from 'rxjs/operators';  import {Data, ResolveData, Route} from './models'; import {convertToParamMap, ParamMap, Params, PRIMARY_OUTLET, RouteTitleKey} from './shared'; import {equalSegments, UrlSegment, UrlSegmentGroup, UrlTree} from './url_tree'; import {shallowEqual, shallowEqualArrays} from './utils/collection'; import {Tree, TreeNode} from './utils/tree';  /**  * Represents the state of the router as a tree of activated routes.  *  * @usageNotes  *  * Every node in the route tree is an `ActivatedRoute` instance  * that knows about the \"consumed\" URL segments, the extracted parameters,  * and the resolved data.  * Use the `ActivatedRoute` properties to traverse the tree from any node.  *  * The following fragment shows how a component gets the root node  * of the current state to establish its own route tree:  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const state: RouterState = router.routerState;  *     const root: ActivatedRoute = state.root;  *     const child = root.firstChild;  *     const id: Observable<string> = child.params.map(p => p.id);  *     //...  *   }  * }  * ```  *  * @see `ActivatedRoute`  * @see [Getting route information](guide/router#getting-route-information)  *  * @publicApi  */ export class RouterState extends Tree<ActivatedRoute> {   /** @internal */   constructor(       root: TreeNode<ActivatedRoute>,       /** The current snapshot of the router state */       public snapshot: RouterStateSnapshot) {     super(root);     setRouterState(<RouterState>this, root);   }    override toString(): string {     return this.snapshot.toString();   } }  export function createEmptyState(urlTree: UrlTree, rootComponent: Type<any>|null): RouterState {   const snapshot = createEmptyStateSnapshot(urlTree, rootComponent);   const emptyUrl = new BehaviorSubject([new UrlSegment('', {})]);   const emptyParams = new BehaviorSubject({});   const emptyData = new BehaviorSubject({});   const emptyQueryParams = new BehaviorSubject({});   const fragment = new BehaviorSubject('');   const activated = new ActivatedRoute(       emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent,       snapshot.root);   activated.snapshot = snapshot.root;   return new RouterState(new TreeNode<ActivatedRoute>(activated, []), snapshot); }  export function createEmptyStateSnapshot(     urlTree: UrlTree, rootComponent: Type<any>|null): RouterStateSnapshot {   const emptyParams = {};   const emptyData = {};   const emptyQueryParams = {};   const fragment = '';   const activated = new ActivatedRouteSnapshot(       [], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null,       urlTree.root, -1, {});   return new RouterStateSnapshot('', new TreeNode<ActivatedRouteSnapshot>(activated, [])); }  /**  * Provides access to information about a route associated with a component  * that is loaded in an outlet.  * Use to traverse the `RouterState` tree and extract information from nodes.  *  * The following example shows how to construct a component using information from a  * currently activated route.  *  * Note: the observables in this class only emit when the current and previous values differ based  * on shallow equality. For example, changing deeply nested properties in resolved `data` will not  * cause the `ActivatedRoute.data` `Observable` to emit a new value.  *  * {@example router/activated-route/module.ts region=\"activated-route\"  *     header=\"activated-route.component.ts\"}  *  * @see [Getting route information](guide/router#getting-route-information)  *  * @publicApi  */ export class ActivatedRoute {   /** The current snapshot of this route */   snapshot!: ActivatedRouteSnapshot;   /** @internal */   _futureSnapshot: ActivatedRouteSnapshot;   /** @internal */   _routerState!: RouterState;   /** @internal */   _paramMap?: Observable<ParamMap>;   /** @internal */   _queryParamMap?: Observable<ParamMap>;    /** An Observable of the resolved route title */   readonly title: Observable<string|undefined> =       this.data?.pipe(map((d: Data) => d[RouteTitleKey])) ?? of(undefined);    /** @internal */   constructor(       /** An observable of the URL segments matched by this route. */       public url: Observable<UrlSegment[]>,       /** An observable of the matrix parameters scoped to this route. */       public params: Observable<Params>,       /** An observable of the query parameters shared by all the routes. */       public queryParams: Observable<Params>,       /** An observable of the URL fragment shared by all the routes. */       public fragment: Observable<string|null>,       /** An observable of the static and resolved data of this route. */       public data: Observable<Data>,       /** The outlet name of the route, a constant. */       public outlet: string,       /** The component of the route, a constant. */       public component: Type<any>|null, futureSnapshot: ActivatedRouteSnapshot) {     this._futureSnapshot = futureSnapshot;   }    /** The configuration used to match this route. */   get routeConfig(): Route|null {     return this._futureSnapshot.routeConfig;   }    /** The root of the router state. */   get root(): ActivatedRoute {     return this._routerState.root;   }    /** The parent of this route in the router state tree. */   get parent(): ActivatedRoute|null {     return this._routerState.parent(this);   }    /** The first child of this route in the router state tree. */   get firstChild(): ActivatedRoute|null {     return this._routerState.firstChild(this);   }    /** The children of this route in the router state tree. */   get children(): ActivatedRoute[] {     return this._routerState.children(this);   }    /** The path from the root of the router state tree to this route. */   get pathFromRoot(): ActivatedRoute[] {     return this._routerState.pathFromRoot(this);   }    /**    * An Observable that contains a map of the required and optional parameters    * specific to the route.    * The map supports retrieving single and multiple values from the same parameter.    */   get paramMap(): Observable<ParamMap> {     if (!this._paramMap) {       this._paramMap = this.params.pipe(map((p: Params): ParamMap => convertToParamMap(p)));     }     return this._paramMap;   }    /**    * An Observable that contains a map of the query parameters available to all routes.    * The map supports retrieving single and multiple values from the query parameter.    */   get queryParamMap(): Observable<ParamMap> {     if (!this._queryParamMap) {       this._queryParamMap =           this.queryParams.pipe(map((p: Params): ParamMap => convertToParamMap(p)));     }     return this._queryParamMap;   }    toString(): string {     return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;   } }  export type ParamsInheritanceStrategy = 'emptyOnly'|'always';  /** @internal */ export type Inherited = {   params: Params,   data: Data,   resolve: Data, };  /**  * Returns the inherited params, data, and resolve for a given route.  * By default, this only inherits values up to the nearest path-less or component-less route.  * @internal  */ export function inheritedParamsDataResolve(     route: ActivatedRouteSnapshot,     paramsInheritanceStrategy: ParamsInheritanceStrategy = 'emptyOnly'): Inherited {   const pathFromRoot = route.pathFromRoot;    let inheritingStartingFrom = 0;   if (paramsInheritanceStrategy !== 'always') {     inheritingStartingFrom = pathFromRoot.length - 1;      while (inheritingStartingFrom >= 1) {       const current = pathFromRoot[inheritingStartingFrom];       const parent = pathFromRoot[inheritingStartingFrom - 1];       // current route is an empty path => inherits its parent's params and data       if (current.routeConfig && current.routeConfig.path === '') {         inheritingStartingFrom--;          // parent is componentless => current route should inherit its params and data       } else if (!parent.component) {         inheritingStartingFrom--;        } else {         break;       }     }   }    return flattenInherited(pathFromRoot.slice(inheritingStartingFrom)); }  /** @internal */ function flattenInherited(pathFromRoot: ActivatedRouteSnapshot[]): Inherited {   return pathFromRoot.reduce((res, curr) => {     const params = {...res.params, ...curr.params};     const data = {...res.data, ...curr.data};     const resolve =         {...curr.data, ...res.resolve, ...curr.routeConfig?.data, ...curr._resolvedData};     return {params, data, resolve};   }, {params: {}, data: {}, resolve: {}}); }  /**  * @description  *  * Contains the information about a route associated with a component loaded in an  * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to  * traverse the router state tree.  *  * The following example initializes a component with route information extracted  * from the snapshot of the root node at the time of creation.  *  * ```  * @Component({templateUrl:'./my-component.html'})  * class MyComponent {  *   constructor(route: ActivatedRoute) {  *     const id: string = route.snapshot.params.id;  *     const url: string = route.snapshot.url.join('');  *     const user = route.snapshot.data.user;  *   }  * }  * ```  *  * @publicApi  */ export class ActivatedRouteSnapshot {   /** The configuration used to match this route **/   public readonly routeConfig: Route|null;   /** @internal **/   _urlSegment: UrlSegmentGroup;   /** @internal */   _lastPathIndex: number;   /** @internal */   _resolve: ResolveData;   /** @internal */   _resolvedData?: Data;   /** @internal */   _routerState!: RouterStateSnapshot;   /** @internal */   _paramMap?: ParamMap;   /** @internal */   _queryParamMap?: ParamMap;    /** The resolved route title */   get title(): string|undefined {     // Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be     // available at the time of class instantiation.     return this.data?.[RouteTitleKey];   }    /** @internal */   constructor(       /** The URL segments matched by this route */       public url: UrlSegment[],       /**        *  The matrix parameters scoped to this route.        *        *  You can compute all params (or data) in the router state or to get params outside        *  of an activated component by traversing the `RouterState` tree as in the following        *  example:        *  ```        *  collectRouteParams(router: Router) {        *    let params = {};        *    let stack: ActivatedRouteSnapshot[] = [router.routerState.snapshot.root];        *    while (stack.length > 0) {        *      const route = stack.pop()!;        *      params = {...params, ...route.params};        *      stack.push(...route.children);        *    }        *    return params;        *  }        *  ```        */       public params: Params,       /** The query parameters shared by all the routes */       public queryParams: Params,       /** The URL fragment shared by all the routes */       public fragment: string|null,       /** The static and resolved data of this route */       public data: Data,       /** The outlet name of the route */       public outlet: string,       /** The component of the route */       public component: Type<any>|null, routeConfig: Route|null, urlSegment: UrlSegmentGroup,       lastPathIndex: number, resolve: ResolveData) {     this.routeConfig = routeConfig;     this._urlSegment = urlSegment;     this._lastPathIndex = lastPathIndex;     this._resolve = resolve;   }    /** The root of the router state */   get root(): ActivatedRouteSnapshot {     return this._routerState.root;   }    /** The parent of this route in the router state tree */   get parent(): ActivatedRouteSnapshot|null {     return this._routerState.parent(this);   }    /** The first child of this route in the router state tree */   get firstChild(): ActivatedRouteSnapshot|null {     return this._routerState.firstChild(this);   }    /** The children of this route in the router state tree */   get children(): ActivatedRouteSnapshot[] {     return this._routerState.children(this);   }    /** The path from the root of the router state tree to this route */   get pathFromRoot(): ActivatedRouteSnapshot[] {     return this._routerState.pathFromRoot(this);   }    get paramMap(): ParamMap {     if (!this._paramMap) {       this._paramMap = convertToParamMap(this.params);     }     return this._paramMap;   }    get queryParamMap(): ParamMap {     if (!this._queryParamMap) {       this._queryParamMap = convertToParamMap(this.queryParams);     }     return this._queryParamMap;   }    toString(): string {     const url = this.url.map(segment => segment.toString()).join('/');     const matched = this.routeConfig ? this.routeConfig.path : '';     return `Route(url:'${url}', path:'${matched}')`;   } }  /**  * @description  *  * Represents the state of the router at a moment in time.  *  * This is a tree of activated route snapshots. Every node in this tree knows about  * the \"consumed\" URL segments, the extracted parameters, and the resolved data.  *  * The following example shows how a component is initialized with information  * from the snapshot of the root node's state at the time of creation.  *  * ```  * @Component({templateUrl:'template.html'})  * class MyComponent {  *   constructor(router: Router) {  *     const state: RouterState = router.routerState;  *     const snapshot: RouterStateSnapshot = state.snapshot;  *     const root: ActivatedRouteSnapshot = snapshot.root;  *     const child = root.firstChild;  *     const id: Observable<string> = child.params.map(p => p.id);  *     //...  *   }  * }  * ```  *  * @publicApi  */ export class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {   /** @internal */   constructor(       /** The url from which this snapshot was created */       public url: string, root: TreeNode<ActivatedRouteSnapshot>) {     super(root);     setRouterState(<RouterStateSnapshot>this, root);   }    override toString(): string {     return serializeNode(this._root);   } }  function setRouterState<U, T extends {_routerState: U}>(state: U, node: TreeNode<T>): void {   node.value._routerState = state;   node.children.forEach(c => setRouterState(state, c)); }  function serializeNode(node: TreeNode<ActivatedRouteSnapshot>): string {   const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';   return `${node.value}${c}`; }  /**  * The expectation is that the activate route is created with the right set of parameters.  * So we push new values into the observables only when they are not the initial values.  * And we detect that by checking if the snapshot field is set.  */ export function advanceActivatedRoute(route: ActivatedRoute): void {   if (route.snapshot) {     const currentSnapshot = route.snapshot;     const nextSnapshot = route._futureSnapshot;     route.snapshot = nextSnapshot;     if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {       (<any>route.queryParams).next(nextSnapshot.queryParams);     }     if (currentSnapshot.fragment !== nextSnapshot.fragment) {       (<any>route.fragment).next(nextSnapshot.fragment);     }     if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {       (<any>route.params).next(nextSnapshot.params);     }     if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {       (<any>route.url).next(nextSnapshot.url);     }     if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {       (<any>route.data).next(nextSnapshot.data);     }   } else {     route.snapshot = route._futureSnapshot;      // this is for resolved data     (<any>route.data).next(route._futureSnapshot.data);   } }   export function equalParamsAndUrlSegments(     a: ActivatedRouteSnapshot, b: ActivatedRouteSnapshot): boolean {   const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);   const parentsMismatch = !a.parent !== !b.parent;    return equalUrlParams && !parentsMismatch &&       (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent!)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {BehaviorSubject} from 'rxjs';  import {DetachedRouteHandleInternal, RouteReuseStrategy} from './route_reuse_strategy'; import {ActivatedRoute, ActivatedRouteSnapshot, RouterState, RouterStateSnapshot} from './router_state'; import {TreeNode} from './utils/tree';  export function createRouterState(     routeReuseStrategy: RouteReuseStrategy, curr: RouterStateSnapshot,     prevState: RouterState): RouterState {   const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);   return new RouterState(root, curr); }  function createNode(     routeReuseStrategy: RouteReuseStrategy, curr: TreeNode<ActivatedRouteSnapshot>,     prevState?: TreeNode<ActivatedRoute>): TreeNode<ActivatedRoute> {   // reuse an activated route that is currently displayed on the screen   if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {     const value = prevState.value;     value._futureSnapshot = curr.value;     const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);     return new TreeNode<ActivatedRoute>(value, children);   } else {     if (routeReuseStrategy.shouldAttach(curr.value)) {       // retrieve an activated route that is used to be displayed, but is not currently displayed       const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);       if (detachedRouteHandle !== null) {         const tree = (detachedRouteHandle as DetachedRouteHandleInternal).route;         tree.value._futureSnapshot = curr.value;         tree.children = curr.children.map(c => createNode(routeReuseStrategy, c));         return tree;       }     }      const value = createActivatedRoute(curr.value);     const children = curr.children.map(c => createNode(routeReuseStrategy, c));     return new TreeNode<ActivatedRoute>(value, children);   } }  function createOrReuseChildren(     routeReuseStrategy: RouteReuseStrategy, curr: TreeNode<ActivatedRouteSnapshot>,     prevState: TreeNode<ActivatedRoute>) {   return curr.children.map(child => {     for (const p of prevState.children) {       if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {         return createNode(routeReuseStrategy, child, p);       }     }     return createNode(routeReuseStrategy, child);   }); }  function createActivatedRoute(c: ActivatedRouteSnapshot) {   return new ActivatedRoute(       new BehaviorSubject(c.url), new BehaviorSubject(c.params), new BehaviorSubject(c.queryParams),       new BehaviorSubject(c.fragment), new BehaviorSubject(c.data), c.outlet, c.component, c); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {NavigationCancellationCode} from './events'; import {NavigationBehaviorOptions} from './models'; import {isUrlTree, UrlSerializer, UrlTree} from './url_tree';  export const NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';  export type NavigationCancelingError =     Error&{[NAVIGATION_CANCELING_ERROR]: true, cancellationCode: NavigationCancellationCode}; export type RedirectingNavigationCancelingError = NavigationCancelingError&{   url: UrlTree;   navigationBehaviorOptions?: NavigationBehaviorOptions;   cancellationCode: NavigationCancellationCode.Redirect; };  export function redirectingNavigationError(     urlSerializer: UrlSerializer, redirect: UrlTree): RedirectingNavigationCancelingError {   const {redirectTo, navigationBehaviorOptions} =       isUrlTree(redirect) ? {redirectTo: redirect, navigationBehaviorOptions: undefined} : redirect;   const error =       navigationCancelingError(           ngDevMode && `Redirecting to \"${urlSerializer.serialize(redirectTo)}\"`,           NavigationCancellationCode.Redirect, redirect) as RedirectingNavigationCancelingError;   error.url = redirectTo;   error.navigationBehaviorOptions = navigationBehaviorOptions;   return error; }  export function navigationCancelingError(     message: string|null|false, code: NavigationCancellationCode, redirectUrl?: UrlTree) {   const error =       new Error('NavigationCancelingError: ' + (message || '')) as NavigationCancelingError;   error[NAVIGATION_CANCELING_ERROR] = true;   error.cancellationCode = code;   if (redirectUrl) {     (error as RedirectingNavigationCancelingError).url = redirectUrl;   }   return error; }  export function isRedirectingNavigationCancelingError(     error: unknown|     RedirectingNavigationCancelingError): error is RedirectingNavigationCancelingError {   return isNavigationCancelingError(error) && isUrlTree((error as any).url); } export function isNavigationCancelingError(error: unknown): error is NavigationCancelingError {   return error && (error as any)[NAVIGATION_CANCELING_ERROR]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentFactoryResolver, ComponentRef, EnvironmentInjector, Injectable} from '@angular/core';  import {RouterOutletContract} from './directives/router_outlet'; import {ActivatedRoute} from './router_state';   /**  * Store contextual information about a `RouterOutlet`  *  * @publicApi  */ export class OutletContext {   outlet: RouterOutletContract|null = null;   route: ActivatedRoute|null = null;   /**    * @deprecated Passing a resolver to retrieve a component factory is not required and is    *     deprecated since v14.    */   resolver: ComponentFactoryResolver|null = null;   injector: EnvironmentInjector|null = null;   children = new ChildrenOutletContexts();   attachRef: ComponentRef<any>|null = null; }  /**  * Store contextual information about the children (= nested) `RouterOutlet`  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class ChildrenOutletContexts {   // contexts for child outlets, by name.   private contexts = new Map<string, OutletContext>();    /** Called when a `RouterOutlet` directive is instantiated */   onChildOutletCreated(childName: string, outlet: RouterOutletContract): void {     const context = this.getOrCreateContext(childName);     context.outlet = outlet;     this.contexts.set(childName, context);   }    /**    * Called when a `RouterOutlet` directive is destroyed.    * We need to keep the context as the outlet could be destroyed inside a NgIf and might be    * re-created later.    */   onChildOutletDestroyed(childName: string): void {     const context = this.getContext(childName);     if (context) {       context.outlet = null;       context.attachRef = null;     }   }    /**    * Called when the corresponding route is deactivated during navigation.    * Because the component get destroyed, all children outlet are destroyed.    */   onOutletDeactivated(): Map<string, OutletContext> {     const contexts = this.contexts;     this.contexts = new Map();     return contexts;   }    onOutletReAttached(contexts: Map<string, OutletContext>) {     this.contexts = contexts;   }    getOrCreateContext(childName: string): OutletContext {     let context = this.getContext(childName);      if (!context) {       context = new OutletContext();       this.contexts.set(childName, context);     }      return context;   }    getContext(childName: string): OutletContext|null {     return this.contexts.get(childName) || null;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, Directive, EnvironmentInjector, EventEmitter, inject, Injector, Input, OnDestroy, OnInit, Output, SimpleChanges, ViewContainerRef, ɵRuntimeError as RuntimeError,} from '@angular/core';  import {RuntimeErrorCode} from '../errors'; import {Data} from '../models'; import {ChildrenOutletContexts} from '../router_outlet_context'; import {ActivatedRoute} from '../router_state'; import {PRIMARY_OUTLET} from '../shared';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * An interface that defines the contract for developing a component outlet for the `Router`.  *  * An outlet acts as a placeholder that Angular dynamically fills based on the current router state.  *  * A router outlet should register itself with the `Router` via  * `ChildrenOutletContexts#onChildOutletCreated` and unregister with  * `ChildrenOutletContexts#onChildOutletDestroyed`. When the `Router` identifies a matched `Route`,  * it looks for a registered outlet in the `ChildrenOutletContexts` and activates it.  *  * @see `ChildrenOutletContexts`  * @publicApi  */ export interface RouterOutletContract {   /**    * Whether the given outlet is activated.    *    * An outlet is considered \"activated\" if it has an active component.    */   isActivated: boolean;    /** The instance of the activated component or `null` if the outlet is not activated. */   component: Object|null;    /**    * The `Data` of the `ActivatedRoute` snapshot.    */   activatedRouteData: Data;    /**    * The `ActivatedRoute` for the outlet or `null` if the outlet is not activated.    */   activatedRoute: ActivatedRoute|null;    /**    * Called by the `Router` when the outlet should activate (create a component).    */   activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector|null): void;   /**    * Called by the `Router` when the outlet should activate (create a component).    *    * @deprecated Passing a resolver to retrieve a component factory is not required and is    *     deprecated since v14.    */   activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver|null): void;    /**    * A request to destroy the currently activated component.    *    * When a `RouteReuseStrategy` indicates that an `ActivatedRoute` should be removed but stored for    * later re-use rather than destroyed, the `Router` will call `detach` instead.    */   deactivate(): void;    /**    * Called when the `RouteReuseStrategy` instructs to detach the subtree.    *    * This is similar to `deactivate`, but the activated component should _not_ be destroyed.    * Instead, it is returned so that it can be reattached later via the `attach` method.    */   detach(): ComponentRef<unknown>;    /**    * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree.    */   attach(ref: ComponentRef<unknown>, activatedRoute: ActivatedRoute): void;    /**    * Emits an activate event when a new component is instantiated    **/   activateEvents?: EventEmitter<unknown>;    /**    * Emits a deactivate event when a component is destroyed.    */   deactivateEvents?: EventEmitter<unknown>;    /**    * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a    * previously detached subtree.    **/   attachEvents?: EventEmitter<unknown>;    /**    * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the    * subtree.    */   detachEvents?: EventEmitter<unknown>; }  /**  * @description  *  * Acts as a placeholder that Angular dynamically fills based on the current router state.  *  * Each outlet can have a unique name, determined by the optional `name` attribute.  * The name cannot be set or changed dynamically. If not set, default value is \"primary\".  *  * ```  * <router-outlet></router-outlet>  * <router-outlet name='left'></router-outlet>  * <router-outlet name='right'></router-outlet>  * ```  *  * Named outlets can be the targets of secondary routes.  * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:  *  * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`  *  * Using named outlets and secondary routes, you can target multiple outlets in  * the same `RouterLink` directive.  *  * The router keeps track of separate branches in a navigation tree for each named outlet and  * generates a representation of that tree in the URL.  * The URL for a secondary route uses the following syntax to specify both the primary and secondary  * routes at the same time:  *  * `http://base-path/primary-route-path(outlet-name:route-path)`  *  * A router outlet emits an activate event when a new component is instantiated,  * deactivate event when a component is destroyed.  * An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the  * subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to  * detach the subtree.  *  * ```  * <router-outlet  *   (activate)='onActivate($event)'  *   (deactivate)='onDeactivate($event)'  *   (attach)='onAttach($event)'  *   (detach)='onDetach($event)'></router-outlet>  * ```  *  * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets \"Example of a named  * outlet and secondary route configuration\").  * @see `RouterLink`  * @see `Route`  * @ngModule RouterModule  *  * @publicApi  */ @Directive({   selector: 'router-outlet',   exportAs: 'outlet',   standalone: true, }) export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract {   private activated: ComponentRef<any>|null = null;   private _activatedRoute: ActivatedRoute|null = null;   /**    * The name of the outlet    *    * @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)    */   @Input() name = PRIMARY_OUTLET;    @Output('activate') activateEvents = new EventEmitter<any>();   @Output('deactivate') deactivateEvents = new EventEmitter<any>();   /**    * Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a    * previously detached subtree.    **/   @Output('attach') attachEvents = new EventEmitter<unknown>();   /**    * Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the    * subtree.    */   @Output('detach') detachEvents = new EventEmitter<unknown>();    private parentContexts = inject(ChildrenOutletContexts);   private location = inject(ViewContainerRef);   private changeDetector = inject(ChangeDetectorRef);   private environmentInjector = inject(EnvironmentInjector);    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (changes['name']) {       const {firstChange, previousValue} = changes['name'];       if (firstChange) {         // The first change is handled by ngOnInit. Because ngOnChanges doesn't get called when no         // input is set at all, we need to centrally handle the first change there.         return;       }        // unregister with the old name       if (this.isTrackedInParentContexts(previousValue)) {         this.deactivate();         this.parentContexts.onChildOutletDestroyed(previousValue);       }       // register the new name       this.initializeOutletWithName();     }   }    /** @nodoc */   ngOnDestroy(): void {     // Ensure that the registered outlet is this one before removing it on the context.     if (this.isTrackedInParentContexts(this.name)) {       this.parentContexts.onChildOutletDestroyed(this.name);     }   }    private isTrackedInParentContexts(outletName: string) {     return this.parentContexts.getContext(outletName)?.outlet === this;   }    /** @nodoc */   ngOnInit(): void {     this.initializeOutletWithName();   }    private initializeOutletWithName() {     this.parentContexts.onChildOutletCreated(this.name, this);     if (this.activated) {       return;     }      // If the outlet was not instantiated at the time the route got activated we need to populate     // the outlet when it is initialized (ie inside a NgIf)     const context = this.parentContexts.getContext(this.name);     if (context?.route) {       if (context.attachRef) {         // `attachRef` is populated when there is an existing component to mount         this.attach(context.attachRef, context.route);       } else {         // otherwise the component defined in the configuration is created         this.activateWith(context.route, context.injector);       }     }   }    get isActivated(): boolean {     return !!this.activated;   }    /**    * @returns The currently activated component instance.    * @throws An error if the outlet is not activated.    */   get component(): Object {     if (!this.activated)       throw new RuntimeError(           RuntimeErrorCode.OUTLET_NOT_ACTIVATED, NG_DEV_MODE && 'Outlet is not activated');     return this.activated.instance;   }    get activatedRoute(): ActivatedRoute {     if (!this.activated)       throw new RuntimeError(           RuntimeErrorCode.OUTLET_NOT_ACTIVATED, NG_DEV_MODE && 'Outlet is not activated');     return this._activatedRoute as ActivatedRoute;   }    get activatedRouteData(): Data {     if (this._activatedRoute) {       return this._activatedRoute.snapshot.data;     }     return {};   }    /**    * Called when the `RouteReuseStrategy` instructs to detach the subtree    */   detach(): ComponentRef<any> {     if (!this.activated)       throw new RuntimeError(           RuntimeErrorCode.OUTLET_NOT_ACTIVATED, NG_DEV_MODE && 'Outlet is not activated');     this.location.detach();     const cmp = this.activated;     this.activated = null;     this._activatedRoute = null;     this.detachEvents.emit(cmp.instance);     return cmp;   }    /**    * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree    */   attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute) {     this.activated = ref;     this._activatedRoute = activatedRoute;     this.location.insert(ref.hostView);     this.attachEvents.emit(ref.instance);   }    deactivate(): void {     if (this.activated) {       const c = this.component;       this.activated.destroy();       this.activated = null;       this._activatedRoute = null;       this.deactivateEvents.emit(c);     }   }    activateWith(       activatedRoute: ActivatedRoute,       resolverOrInjector?: ComponentFactoryResolver|EnvironmentInjector|null) {     if (this.isActivated) {       throw new RuntimeError(           RuntimeErrorCode.OUTLET_ALREADY_ACTIVATED,           NG_DEV_MODE && 'Cannot activate an already activated outlet');     }     this._activatedRoute = activatedRoute;     const location = this.location;     const snapshot = activatedRoute.snapshot;     const component = snapshot.component!;     const childContexts = this.parentContexts.getOrCreateContext(this.name).children;     const injector = new OutletInjector(activatedRoute, childContexts, location.injector);      if (resolverOrInjector && isComponentFactoryResolver(resolverOrInjector)) {       const factory = resolverOrInjector.resolveComponentFactory(component);       this.activated = location.createComponent(factory, location.length, injector);     } else {       const environmentInjector = resolverOrInjector ?? this.environmentInjector;       this.activated = location.createComponent(           component, {index: location.length, injector, environmentInjector});     }     // Calling `markForCheck` to make sure we will run the change detection when the     // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.     this.changeDetector.markForCheck();     this.activateEvents.emit(this.activated.instance);   } }  class OutletInjector implements Injector {   constructor(       private route: ActivatedRoute, private childContexts: ChildrenOutletContexts,       private parent: Injector) {}    get(token: any, notFoundValue?: any): any {     if (token === ActivatedRoute) {       return this.route;     }      if (token === ChildrenOutletContexts) {       return this.childContexts;     }      return this.parent.get(token, notFoundValue);   } }  function isComponentFactoryResolver(item: any): item is ComponentFactoryResolver {   return !!item.resolveComponentFactory; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Component} from '@angular/core';  import {RouterOutlet} from '../directives/router_outlet';  /**  * This component is used internally within the router to be a placeholder when an empty  * router-outlet is needed. For example, with a config such as:  *  * `{path: 'parent', outlet: 'nav', children: [...]}`  *  * In order to render, there needs to be a component on this config, which will default  * to this `EmptyOutletComponent`.  */ @Component({   template: `<router-outlet></router-outlet>`,   imports: [RouterOutlet],   standalone: true, }) export class ɵEmptyOutletComponent { }  export {ɵEmptyOutletComponent as EmptyOutletComponent}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {createEnvironmentInjector, EnvironmentInjector, isStandalone, Type, ɵRuntimeError as RuntimeError} from '@angular/core';  import {EmptyOutletComponent} from '../components/empty_outlet'; import {RuntimeErrorCode} from '../errors'; import {Route, Routes} from '../models'; import {ActivatedRouteSnapshot} from '../router_state'; import {PRIMARY_OUTLET} from '../shared';  /**  * Creates an `EnvironmentInjector` if the `Route` has providers and one does not already exist  * and returns the injector. Otherwise, if the `Route` does not have `providers`, returns the  * `currentInjector`.  *  * @param route The route that might have providers  * @param currentInjector The parent injector of the `Route`  */ export function getOrCreateRouteInjectorIfNeeded(     route: Route, currentInjector: EnvironmentInjector) {   if (route.providers && !route._injector) {     route._injector =         createEnvironmentInjector(route.providers, currentInjector, `Route: ${route.path}`);   }   return route._injector ?? currentInjector; }  export function getLoadedRoutes(route: Route): Route[]|undefined {   return route._loadedRoutes; }  export function getLoadedInjector(route: Route): EnvironmentInjector|undefined {   return route._loadedInjector; } export function getLoadedComponent(route: Route): Type<unknown>|undefined {   return route._loadedComponent; }  export function getProvidersInjector(route: Route): EnvironmentInjector|undefined {   return route._injector; }  export function validateConfig(     config: Routes, parentPath: string = '', requireStandaloneComponents = false): void {   // forEach doesn't iterate undefined values   for (let i = 0; i < config.length; i++) {     const route: Route = config[i];     const fullPath: string = getFullPath(parentPath, route);     validateNode(route, fullPath, requireStandaloneComponents);   } }  export function assertStandalone(fullPath: string, component: Type<unknown>|undefined) {   if (component && !isStandalone(component)) {     throw new RuntimeError(         RuntimeErrorCode.INVALID_ROUTE_CONFIG,         `Invalid configuration of route '${fullPath}'. The component must be standalone.`);   } }  function validateNode(route: Route, fullPath: string, requireStandaloneComponents: boolean): void {   if (typeof ngDevMode === 'undefined' || ngDevMode) {     if (!route) {       throw new RuntimeError(RuntimeErrorCode.INVALID_ROUTE_CONFIG, `       Invalid configuration of route '${fullPath}': Encountered undefined route.       The reason might be an extra comma.        Example:       const routes: Routes = [         { path: '', redirectTo: '/dashboard', pathMatch: 'full' },         { path: 'dashboard',  component: DashboardComponent },, << two commas         { path: 'detail/:id', component: HeroDetailComponent }       ];     `);     }     if (Array.isArray(route)) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${fullPath}': Array cannot be specified`);     }     if (!route.redirectTo && !route.component && !route.loadComponent && !route.children &&         !route.loadChildren && (route.outlet && route.outlet !== PRIMARY_OUTLET)) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);     }     if (route.redirectTo && route.children) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and children cannot be used together`);     }     if (route.redirectTo && route.loadChildren) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and loadChildren cannot be used together`);     }     if (route.children && route.loadChildren) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': children and loadChildren cannot be used together`);     }     if (route.redirectTo && (route.component || route.loadComponent)) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and component/loadComponent cannot be used together`);     }     if (route.component && route.loadComponent) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': component and loadComponent cannot be used together`);     }     if (route.redirectTo && route.canActivate) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': redirectTo and canActivate cannot be used together. Redirects happen before activation ` +               `so canActivate will never be executed.`);     }     if (route.path && route.matcher) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);     }     if (route.redirectTo === void 0 && !route.component && !route.loadComponent &&         !route.children && !route.loadChildren) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);     }     if (route.path === void 0 && route.matcher === void 0) {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${               fullPath}': routes must have either a path or a matcher specified`);     }     if (typeof route.path === 'string' && route.path.charAt(0) === '/') {       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '${fullPath}': path cannot start with a slash`);     }     if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {       const exp =           `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;       throw new RuntimeError(           RuntimeErrorCode.INVALID_ROUTE_CONFIG,           `Invalid configuration of route '{path: \"${fullPath}\", redirectTo: \"${               route.redirectTo}\"}': please provide 'pathMatch'. ${exp}`);     }     if (requireStandaloneComponents) {       assertStandalone(fullPath, route.component);     }   }   if (route.children) {     validateConfig(route.children, fullPath, requireStandaloneComponents);   } }  function getFullPath(parentPath: string, currentRoute: Route): string {   if (!currentRoute) {     return parentPath;   }   if (!parentPath && !currentRoute.path) {     return '';   } else if (parentPath && !currentRoute.path) {     return `${parentPath}/`;   } else if (!parentPath && currentRoute.path) {     return currentRoute.path;   } else {     return `${parentPath}/${currentRoute.path}`;   } }  /**  * Makes a copy of the config and adds any default required properties.  */ export function standardizeConfig(r: Route): Route {   const children = r.children && r.children.map(standardizeConfig);   const c = children ? {...r, children} : {...r};   if ((!c.component && !c.loadComponent) && (children || c.loadChildren) &&       (c.outlet && c.outlet !== PRIMARY_OUTLET)) {     c.component = EmptyOutletComponent;   }   return c; }  /** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */ export function getOutlet(route: Route): string {   return route.outlet || PRIMARY_OUTLET; }  /**  * Sorts the `routes` such that the ones with an outlet matching `outletName` come first.  * The order of the configs is otherwise preserved.  */ export function sortByMatchingOutlets(routes: Routes, outletName: string): Routes {   const sortedConfig = routes.filter(r => getOutlet(r) === outletName);   sortedConfig.push(...routes.filter(r => getOutlet(r) !== outletName));   return sortedConfig; }  /**  * Gets the first injector in the snapshot's parent tree.  *  * If the `Route` has a static list of providers, the returned injector will be the one created from  * those. If it does not exist, the returned injector may come from the parents, which may be from a  * loaded config or their static providers.  *  * Returns `null` if there is neither this nor any parents have a stored injector.  *  * Generally used for retrieving the injector to use for getting tokens for guards/resolvers and  * also used for getting the correct injector to use for creating components.  */ export function getClosestRouteInjector(snapshot: ActivatedRouteSnapshot): EnvironmentInjector|     null {   if (!snapshot) return null;    // If the current route has its own injector, which is created from the static providers on the   // route itself, we should use that. Otherwise, we start at the parent since we do not want to   // include the lazy loaded injector from this route.   if (snapshot.routeConfig?._injector) {     return snapshot.routeConfig._injector;   }    for (let s = snapshot.parent; s; s = s.parent) {     const route = s.routeConfig;     // Note that the order here is important. `_loadedInjector` stored on the route with     // `loadChildren: () => NgModule` so it applies to child routes with priority. The `_injector`     // is created from the static providers on that parent route, so it applies to the children as     // well, but only if there is no lazy loaded NgModuleRef injector.     if (route?._loadedInjector) return route._loadedInjector;     if (route?._injector) return route._injector;   }    return null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentFactoryResolver, EnvironmentInjector, NgModuleRef} from '@angular/core'; import {MonoTypeOperatorFunction} from 'rxjs'; import {map} from 'rxjs/operators';  import {ActivationEnd, ChildActivationEnd, Event} from '../events'; import {NavigationTransition} from '../navigation_transition'; import {DetachedRouteHandleInternal, RouteReuseStrategy} from '../route_reuse_strategy'; import {ChildrenOutletContexts} from '../router_outlet_context'; import {ActivatedRoute, advanceActivatedRoute, RouterState} from '../router_state'; import {forEach} from '../utils/collection'; import {getClosestRouteInjector} from '../utils/config'; import {nodeChildrenAsMap, TreeNode} from '../utils/tree';  export const activateRoutes =     (rootContexts: ChildrenOutletContexts, routeReuseStrategy: RouteReuseStrategy,      forwardEvent: (evt: Event) => void): MonoTypeOperatorFunction<NavigationTransition> =>         map(t => {           new ActivateRoutes(               routeReuseStrategy, t.targetRouterState!, t.currentRouterState, forwardEvent)               .activate(rootContexts);           return t;         });  export class ActivateRoutes {   constructor(       private routeReuseStrategy: RouteReuseStrategy, private futureState: RouterState,       private currState: RouterState, private forwardEvent: (evt: Event) => void) {}    activate(parentContexts: ChildrenOutletContexts): void {     const futureRoot = this.futureState._root;     const currRoot = this.currState ? this.currState._root : null;      this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);     advanceActivatedRoute(this.futureState.root);     this.activateChildRoutes(futureRoot, currRoot, parentContexts);   }    // De-activate the child route that are not re-used for the future state   private deactivateChildRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>|null,       contexts: ChildrenOutletContexts): void {     const children: {[outletName: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(currNode);      // Recurse on the routes active in the future state to de-activate deeper children     futureNode.children.forEach(futureChild => {       const childOutletName = futureChild.value.outlet;       this.deactivateRoutes(futureChild, children[childOutletName], contexts);       delete children[childOutletName];     });      // De-activate the routes that will not be re-used     forEach(children, (v: TreeNode<ActivatedRoute>, childName: string) => {       this.deactivateRouteAndItsChildren(v, contexts);     });   }    private deactivateRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>,       parentContext: ChildrenOutletContexts): void {     const future = futureNode.value;     const curr = currNode ? currNode.value : null;      if (future === curr) {       // Reusing the node, check to see if the children need to be de-activated       if (future.component) {         // If we have a normal route, we need to go through an outlet.         const context = parentContext.getContext(future.outlet);         if (context) {           this.deactivateChildRoutes(futureNode, currNode, context.children);         }       } else {         // if we have a componentless route, we recurse but keep the same outlet map.         this.deactivateChildRoutes(futureNode, currNode, parentContext);       }     } else {       if (curr) {         // Deactivate the current route which will not be re-used         this.deactivateRouteAndItsChildren(currNode, parentContext);       }     }   }    private deactivateRouteAndItsChildren(       route: TreeNode<ActivatedRoute>, parentContexts: ChildrenOutletContexts): void {     // If there is no component, the Route is never attached to an outlet (because there is no     // component to attach).     if (route.value.component && this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {       this.detachAndStoreRouteSubtree(route, parentContexts);     } else {       this.deactivateRouteAndOutlet(route, parentContexts);     }   }    private detachAndStoreRouteSubtree(       route: TreeNode<ActivatedRoute>, parentContexts: ChildrenOutletContexts): void {     const context = parentContexts.getContext(route.value.outlet);     const contexts = context && route.value.component ? context.children : parentContexts;     const children: {[outletName: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(route);      for (const childOutlet of Object.keys(children)) {       this.deactivateRouteAndItsChildren(children[childOutlet], contexts);     }      if (context && context.outlet) {       const componentRef = context.outlet.detach();       const contexts = context.children.onOutletDeactivated();       this.routeReuseStrategy.store(route.value.snapshot, {componentRef, route, contexts});     }   }    private deactivateRouteAndOutlet(       route: TreeNode<ActivatedRoute>, parentContexts: ChildrenOutletContexts): void {     const context = parentContexts.getContext(route.value.outlet);     // The context could be `null` if we are on a componentless route but there may still be     // children that need deactivating.     const contexts = context && route.value.component ? context.children : parentContexts;     const children: {[outletName: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(route);      for (const childOutlet of Object.keys(children)) {       this.deactivateRouteAndItsChildren(children[childOutlet], contexts);     }      if (context && context.outlet) {       // Destroy the component       context.outlet.deactivate();       // Destroy the contexts for all the outlets that were in the component       context.children.onOutletDeactivated();       // Clear the information about the attached component on the context but keep the reference to       // the outlet.       context.attachRef = null;       context.resolver = null;       context.route = null;     }   }    private activateChildRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>|null,       contexts: ChildrenOutletContexts): void {     const children: {[outlet: string]: TreeNode<ActivatedRoute>} = nodeChildrenAsMap(currNode);     futureNode.children.forEach(c => {       this.activateRoutes(c, children[c.value.outlet], contexts);       this.forwardEvent(new ActivationEnd(c.value.snapshot));     });     if (futureNode.children.length) {       this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));     }   }    private activateRoutes(       futureNode: TreeNode<ActivatedRoute>, currNode: TreeNode<ActivatedRoute>,       parentContexts: ChildrenOutletContexts): void {     const future = futureNode.value;     const curr = currNode ? currNode.value : null;      advanceActivatedRoute(future);      // reusing the node     if (future === curr) {       if (future.component) {         // If we have a normal route, we need to go through an outlet.         const context = parentContexts.getOrCreateContext(future.outlet);         this.activateChildRoutes(futureNode, currNode, context.children);       } else {         // if we have a componentless route, we recurse but keep the same outlet map.         this.activateChildRoutes(futureNode, currNode, parentContexts);       }     } else {       if (future.component) {         // if we have a normal route, we need to place the component into the outlet and recurse.         const context = parentContexts.getOrCreateContext(future.outlet);          if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {           const stored =               (<DetachedRouteHandleInternal>this.routeReuseStrategy.retrieve(future.snapshot));           this.routeReuseStrategy.store(future.snapshot, null);           context.children.onOutletReAttached(stored.contexts);           context.attachRef = stored.componentRef;           context.route = stored.route.value;           if (context.outlet) {             // Attach right away when the outlet has already been instantiated             // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated             context.outlet.attach(stored.componentRef, stored.route.value);           }            advanceActivatedRoute(stored.route.value);           this.activateChildRoutes(futureNode, null, context.children);         } else {           const injector = getClosestRouteInjector(future.snapshot);           const cmpFactoryResolver = injector?.get(ComponentFactoryResolver) ?? null;           context.attachRef = null;           context.route = future;           context.resolver = cmpFactoryResolver;           context.injector = injector;           if (context.outlet) {             // Activate the outlet when it has already been instantiated             // Otherwise it will get activated from its `ngOnInit` when instantiated             context.outlet.activateWith(future, context.injector);           }            this.activateChildRoutes(futureNode, null, context.children);         }       } else {         // if we have a componentless route, we recurse but keep the same outlet map.         this.activateChildRoutes(futureNode, null, parentContexts);       }     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injector, ProviderToken, ɵisInjectable as isInjectable} from '@angular/core';  import {RunGuardsAndResolvers} from '../models'; import {ChildrenOutletContexts, OutletContext} from '../router_outlet_context'; import {ActivatedRouteSnapshot, equalParamsAndUrlSegments, RouterStateSnapshot} from '../router_state'; import {equalPath} from '../url_tree'; import {forEach, shallowEqual} from '../utils/collection'; import {nodeChildrenAsMap, TreeNode} from '../utils/tree';  export class CanActivate {   readonly route: ActivatedRouteSnapshot;   constructor(public path: ActivatedRouteSnapshot[]) {     this.route = this.path[this.path.length - 1];   } }  export class CanDeactivate {   constructor(public component: Object|null, public route: ActivatedRouteSnapshot) {} }  export declare type Checks = {   canDeactivateChecks: CanDeactivate[],   canActivateChecks: CanActivate[], };  export function getAllRouteGuards(     future: RouterStateSnapshot, curr: RouterStateSnapshot,     parentContexts: ChildrenOutletContexts) {   const futureRoot = future._root;   const currRoot = curr ? curr._root : null;    return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]); }  export function getCanActivateChild(p: ActivatedRouteSnapshot):     {node: ActivatedRouteSnapshot, guards: any[]}|null {   const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;   if (!canActivateChild || canActivateChild.length === 0) return null;   return {node: p, guards: canActivateChild}; }  export function getTokenOrFunctionIdentity<T>(     tokenOrFunction: Function|ProviderToken<T>, injector: Injector): Function|T {   const NOT_FOUND = Symbol();   const result = injector.get<T|Symbol>(tokenOrFunction, NOT_FOUND);   if (result === NOT_FOUND) {     if (typeof tokenOrFunction === 'function' && !isInjectable(tokenOrFunction)) {       // We think the token is just a function so return it as-is       return tokenOrFunction;     } else {       // This will throw the not found error       return injector.get<T>(tokenOrFunction);     }   }   return result as T; }  function getChildRouteGuards(     futureNode: TreeNode<ActivatedRouteSnapshot>, currNode: TreeNode<ActivatedRouteSnapshot>|null,     contexts: ChildrenOutletContexts|null, futurePath: ActivatedRouteSnapshot[], checks: Checks = {       canDeactivateChecks: [],       canActivateChecks: []     }): Checks {   const prevChildren = nodeChildrenAsMap(currNode);    // Process the children of the future route   futureNode.children.forEach(c => {     getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);     delete prevChildren[c.value.outlet];   });    // Process any children left from the current route (not active for the future route)   forEach(       prevChildren,       (v: TreeNode<ActivatedRouteSnapshot>, k: string) =>           deactivateRouteAndItsChildren(v, contexts!.getContext(k), checks));    return checks; }  function getRouteGuards(     futureNode: TreeNode<ActivatedRouteSnapshot>, currNode: TreeNode<ActivatedRouteSnapshot>,     parentContexts: ChildrenOutletContexts|null, futurePath: ActivatedRouteSnapshot[],     checks: Checks = {       canDeactivateChecks: [],       canActivateChecks: []     }): Checks {   const future = futureNode.value;   const curr = currNode ? currNode.value : null;   const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;    // reusing the node   if (curr && future.routeConfig === curr.routeConfig) {     const shouldRun =         shouldRunGuardsAndResolvers(curr, future, future.routeConfig!.runGuardsAndResolvers);     if (shouldRun) {       checks.canActivateChecks.push(new CanActivate(futurePath));     } else {       // we need to set the data       future.data = curr.data;       future._resolvedData = curr._resolvedData;     }      // If we have a component, we need to go through an outlet.     if (future.component) {       getChildRouteGuards(           futureNode, currNode, context ? context.children : null, futurePath, checks);        // if we have a componentless route, we recurse but keep the same outlet map.     } else {       getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);     }      if (shouldRun && context && context.outlet && context.outlet.isActivated) {       checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));     }   } else {     if (curr) {       deactivateRouteAndItsChildren(currNode, context, checks);     }      checks.canActivateChecks.push(new CanActivate(futurePath));     // If we have a component, we need to go through an outlet.     if (future.component) {       getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);        // if we have a componentless route, we recurse but keep the same outlet map.     } else {       getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);     }   }    return checks; }  function shouldRunGuardsAndResolvers(     curr: ActivatedRouteSnapshot, future: ActivatedRouteSnapshot,     mode: RunGuardsAndResolvers|undefined): boolean {   if (typeof mode === 'function') {     return mode(curr, future);   }   switch (mode) {     case 'pathParamsChange':       return !equalPath(curr.url, future.url);      case 'pathParamsOrQueryParamsChange':       return !equalPath(curr.url, future.url) ||           !shallowEqual(curr.queryParams, future.queryParams);      case 'always':       return true;      case 'paramsOrQueryParamsChange':       return !equalParamsAndUrlSegments(curr, future) ||           !shallowEqual(curr.queryParams, future.queryParams);      case 'paramsChange':     default:       return !equalParamsAndUrlSegments(curr, future);   } }  function deactivateRouteAndItsChildren(     route: TreeNode<ActivatedRouteSnapshot>, context: OutletContext|null, checks: Checks): void {   const children = nodeChildrenAsMap(route);   const r = route.value;    forEach(children, (node: TreeNode<ActivatedRouteSnapshot>, childName: string) => {     if (!r.component) {       deactivateRouteAndItsChildren(node, context, checks);     } else if (context) {       deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);     } else {       deactivateRouteAndItsChildren(node, null, checks);     }   });    if (!r.component) {     checks.canDeactivateChecks.push(new CanDeactivate(null, r));   } else if (context && context.outlet && context.outlet.isActivated) {     checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));   } else {     checks.canDeactivateChecks.push(new CanDeactivate(null, r));   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EmptyError} from 'rxjs';  import {CanActivate, CanActivateChild, CanDeactivate, CanLoad, CanMatch} from '../models'; import {NAVIGATION_CANCELING_ERROR, NavigationCancelingError, RedirectingNavigationCancelingError} from '../navigation_canceling_error'; import {isUrlTree} from '../url_tree';  /**  * Simple function check, but generic so type inference will flow. Example:  *  * function product(a: number, b: number) {  *   return a * b;  * }  *  * if (isFunction<product>(fn)) {  *   return fn(1, 2);  * } else {  *   throw \"Must provide the `product` function\";  * }  */ export function isFunction<T>(v: any): v is T {   return typeof v === 'function'; }  export function isBoolean(v: any): v is boolean {   return typeof v === 'boolean'; }  export function isCanLoad(guard: any): guard is CanLoad {   return guard && isFunction<CanLoad>(guard.canLoad); }  export function isCanActivate(guard: any): guard is CanActivate {   return guard && isFunction<CanActivate>(guard.canActivate); }  export function isCanActivateChild(guard: any): guard is CanActivateChild {   return guard && isFunction<CanActivateChild>(guard.canActivateChild); }  export function isCanDeactivate<T>(guard: any): guard is CanDeactivate<T> {   return guard && isFunction<CanDeactivate<T>>(guard.canDeactivate); } export function isCanMatch(guard: any): guard is CanMatch {   return guard && isFunction<CanMatch>(guard.canMatch); }  export function isRedirectingNavigationCancelingError(     error: unknown|     RedirectingNavigationCancelingError): error is RedirectingNavigationCancelingError {   return isNavigationCancelingError(error) && isUrlTree((error as any).url); }  export function isNavigationCancelingError(error: unknown): error is NavigationCancelingError {   return error && (error as any)[NAVIGATION_CANCELING_ERROR]; }  export function isEmptyError(e: Error): e is EmptyError {   return e instanceof EmptyError || e?.name === 'EmptyError'; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {combineLatest, Observable, OperatorFunction} from 'rxjs'; import {filter, map, scan, startWith, switchMap, take} from 'rxjs/operators';  import {isUrlTree, UrlTree} from '../url_tree';  const INITIAL_VALUE = Symbol('INITIAL_VALUE'); declare type INTERIM_VALUES = typeof INITIAL_VALUE | boolean | UrlTree;  export function prioritizedGuardValue():     OperatorFunction<Observable<boolean|UrlTree>[], boolean|UrlTree> {   return switchMap(obs => {     return combineLatest(obs.map(o => o.pipe(take(1), startWith(INITIAL_VALUE as INTERIM_VALUES))))         .pipe(             map((results: INTERIM_VALUES[]) => {               for (const result of results) {                 if (result === true) {                   // If result is true, check the next one                   continue;                 } else if (result === INITIAL_VALUE) {                   // If guard has not finished, we need to stop processing.                   return INITIAL_VALUE;                 } else if (result === false || result instanceof UrlTree) {                   // Result finished and was not true. Return the result.                   // Note that we only allow false/UrlTree. Other values are considered invalid and                   // ignored.                   return result;                 }               }               // Everything resolved to true. Return true.               return true;             }),             filter((item): item is boolean|UrlTree => item !== INITIAL_VALUE),             take(1),         );   }); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, ProviderToken} from '@angular/core'; import {concat, defer, from, MonoTypeOperatorFunction, Observable, of, OperatorFunction, pipe} from 'rxjs'; import {concatMap, first, map, mergeMap, tap} from 'rxjs/operators';  import {ActivationStart, ChildActivationStart, Event} from '../events'; import {CanActivateChild, CanActivateChildFn, CanActivateFn, CanDeactivateFn, CanLoadFn, CanMatchFn, Route} from '../models'; import {redirectingNavigationError} from '../navigation_canceling_error'; import {NavigationTransition} from '../navigation_transition'; import {ActivatedRouteSnapshot, RouterStateSnapshot} from '../router_state'; import {isUrlTree, UrlSegment, UrlSerializer, UrlTree} from '../url_tree'; import {wrapIntoObservable} from '../utils/collection'; import {getClosestRouteInjector} from '../utils/config'; import {CanActivate, CanDeactivate, getCanActivateChild, getTokenOrFunctionIdentity} from '../utils/preactivation'; import {isBoolean, isCanActivate, isCanActivateChild, isCanDeactivate, isCanLoad, isCanMatch} from '../utils/type_guards';  import {prioritizedGuardValue} from './prioritized_guard_value';  export function checkGuards(injector: EnvironmentInjector, forwardEvent?: (evt: Event) => void):     MonoTypeOperatorFunction<NavigationTransition> {   return mergeMap(t => {     const {targetSnapshot, currentSnapshot, guards: {canActivateChecks, canDeactivateChecks}} = t;     if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {       return of({...t, guardsResult: true});     }      return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot!, currentSnapshot, injector)         .pipe(             mergeMap(canDeactivate => {               return canDeactivate && isBoolean(canDeactivate) ?                   runCanActivateChecks(targetSnapshot!, canActivateChecks, injector, forwardEvent) :                   of(canDeactivate);             }),             map(guardsResult => ({...t, guardsResult})));   }); }  function runCanDeactivateChecks(     checks: CanDeactivate[], futureRSS: RouterStateSnapshot, currRSS: RouterStateSnapshot,     injector: EnvironmentInjector) {   return from(checks).pipe(       mergeMap(           check => runCanDeactivate(check.component, check.route, currRSS, futureRSS, injector)),       first(result => {         return result !== true;       }, true as boolean | UrlTree)); }  function runCanActivateChecks(     futureSnapshot: RouterStateSnapshot, checks: CanActivate[], injector: EnvironmentInjector,     forwardEvent?: (evt: Event) => void) {   return from(checks).pipe(       concatMap((check: CanActivate) => {         return concat(             fireChildActivationStart(check.route.parent, forwardEvent),             fireActivationStart(check.route, forwardEvent),             runCanActivateChild(futureSnapshot, check.path, injector),             runCanActivate(futureSnapshot, check.route, injector));       }),       first(result => {         return result !== true;       }, true as boolean | UrlTree)); }  /**  * This should fire off `ActivationStart` events for each route being activated at this  * level.  * In other words, if you're activating `a` and `b` below, `path` will contain the  * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always  * return  * `true` so checks continue to run.  */ function fireActivationStart(     snapshot: ActivatedRouteSnapshot|null,     forwardEvent?: (evt: Event) => void): Observable<boolean> {   if (snapshot !== null && forwardEvent) {     forwardEvent(new ActivationStart(snapshot));   }   return of(true); }  /**  * This should fire off `ChildActivationStart` events for each route being activated at this  * level.  * In other words, if you're activating `a` and `b` below, `path` will contain the  * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always  * return  * `true` so checks continue to run.  */ function fireChildActivationStart(     snapshot: ActivatedRouteSnapshot|null,     forwardEvent?: (evt: Event) => void): Observable<boolean> {   if (snapshot !== null && forwardEvent) {     forwardEvent(new ChildActivationStart(snapshot));   }   return of(true); }  function runCanActivate(     futureRSS: RouterStateSnapshot, futureARS: ActivatedRouteSnapshot,     injector: EnvironmentInjector): Observable<boolean|UrlTree> {   const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;   if (!canActivate || canActivate.length === 0) return of(true);    const canActivateObservables =       canActivate.map((canActivate: CanActivateFn|ProviderToken<unknown>) => {         return defer(() => {           const closestInjector = getClosestRouteInjector(futureARS) ?? injector;           const guard = getTokenOrFunctionIdentity<CanActivate>(canActivate, closestInjector);           const guardVal = isCanActivate(guard) ?               guard.canActivate(futureARS, futureRSS) :               closestInjector.runInContext(() => (guard as CanActivateFn)(futureARS, futureRSS));           return wrapIntoObservable(guardVal).pipe(first());         });       });   return of(canActivateObservables).pipe(prioritizedGuardValue()); }  function runCanActivateChild(     futureRSS: RouterStateSnapshot, path: ActivatedRouteSnapshot[],     injector: EnvironmentInjector): Observable<boolean|UrlTree> {   const futureARS = path[path.length - 1];    const canActivateChildGuards = path.slice(0, path.length - 1)                                      .reverse()                                      .map(p => getCanActivateChild(p))                                      .filter(_ => _ !== null);    const canActivateChildGuardsMapped = canActivateChildGuards.map((d: any) => {     return defer(() => {       const guardsMapped =           d.guards.map((canActivateChild: CanActivateChildFn|ProviderToken<unknown>) => {             const closestInjector = getClosestRouteInjector(d.node) ?? injector;             const guard =                 getTokenOrFunctionIdentity<CanActivateChild>(canActivateChild, closestInjector);             const guardVal = isCanActivateChild(guard) ?                 guard.canActivateChild(futureARS, futureRSS) :                 closestInjector.runInContext(                     () => (guard as CanActivateChildFn)(futureARS, futureRSS));             return wrapIntoObservable(guardVal).pipe(first());           });       return of(guardsMapped).pipe(prioritizedGuardValue());     });   });   return of(canActivateChildGuardsMapped).pipe(prioritizedGuardValue()); }  function runCanDeactivate(     component: Object|null, currARS: ActivatedRouteSnapshot, currRSS: RouterStateSnapshot,     futureRSS: RouterStateSnapshot, injector: EnvironmentInjector): Observable<boolean|UrlTree> {   const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;   if (!canDeactivate || canDeactivate.length === 0) return of(true);   const canDeactivateObservables = canDeactivate.map((c: any) => {     const closestInjector = getClosestRouteInjector(currARS) ?? injector;     const guard = getTokenOrFunctionIdentity<any>(c, closestInjector);     const guardVal = isCanDeactivate(guard) ?         guard.canDeactivate(component, currARS, currRSS, futureRSS) :         closestInjector.runInContext(             () => (guard as CanDeactivateFn<any>)(component, currARS, currRSS, futureRSS));     return wrapIntoObservable(guardVal).pipe(first());   });   return of(canDeactivateObservables).pipe(prioritizedGuardValue()); }  export function runCanLoadGuards(     injector: EnvironmentInjector, route: Route, segments: UrlSegment[],     urlSerializer: UrlSerializer): Observable<boolean> {   const canLoad = route.canLoad;   if (canLoad === undefined || canLoad.length === 0) {     return of(true);   }    const canLoadObservables = canLoad.map((injectionToken: any) => {     const guard = getTokenOrFunctionIdentity<any>(injectionToken, injector);     const guardVal = isCanLoad(guard) ?         guard.canLoad(route, segments) :         injector.runInContext(() => (guard as CanLoadFn)(route, segments));     return wrapIntoObservable(guardVal);   });    return of(canLoadObservables)       .pipe(           prioritizedGuardValue(),           redirectIfUrlTree(urlSerializer),       ); }  function redirectIfUrlTree(urlSerializer: UrlSerializer):     OperatorFunction<UrlTree|boolean, boolean> {   return pipe(       tap((result: UrlTree|boolean) => {         if (!isUrlTree(result)) return;          throw redirectingNavigationError(urlSerializer, result);       }),       map(result => result === true),   ); }  export function runCanMatchGuards(     injector: EnvironmentInjector, route: Route, segments: UrlSegment[],     urlSerializer: UrlSerializer): Observable<boolean> {   const canMatch = route.canMatch;   if (!canMatch || canMatch.length === 0) return of(true);    const canMatchObservables = canMatch.map(injectionToken => {     const guard = getTokenOrFunctionIdentity(injectionToken, injector);     const guardVal = isCanMatch(guard) ?         guard.canMatch(route, segments) :         injector.runInContext(() => (guard as CanMatchFn)(route, segments));     return wrapIntoObservable(guardVal);   });    return of(canMatchObservables)       .pipe(           prioritizedGuardValue(),           redirectIfUrlTree(urlSerializer),       ); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, Injector} from '@angular/core'; import {Observable, of} from 'rxjs'; import {map} from 'rxjs/operators';  import {Route} from '../models'; import {runCanMatchGuards} from '../operators/check_guards'; import {defaultUrlMatcher, PRIMARY_OUTLET} from '../shared'; import {UrlSegment, UrlSegmentGroup, UrlSerializer} from '../url_tree';  import {forEach} from './collection'; import {getOrCreateRouteInjectorIfNeeded, getOutlet} from './config';  export interface MatchResult {   matched: boolean;   consumedSegments: UrlSegment[];   remainingSegments: UrlSegment[];   parameters: {[k: string]: string};   positionalParamSegments: {[k: string]: UrlSegment}; }  const noMatch: MatchResult = {   matched: false,   consumedSegments: [],   remainingSegments: [],   parameters: {},   positionalParamSegments: {} };  export function matchWithChecks(     segmentGroup: UrlSegmentGroup, route: Route, segments: UrlSegment[],     injector: EnvironmentInjector, urlSerializer: UrlSerializer): Observable<MatchResult> {   const result = match(segmentGroup, route, segments);   if (!result.matched) {     return of(result);   }    // Only create the Route's `EnvironmentInjector` if it matches the attempted   // navigation   injector = getOrCreateRouteInjectorIfNeeded(route, injector);   return runCanMatchGuards(injector, route, segments, urlSerializer)       .pipe(           map((v) => v === true ? result : {...noMatch}),       ); }  export function match(     segmentGroup: UrlSegmentGroup, route: Route, segments: UrlSegment[]): MatchResult {   if (route.path === '') {     if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {       return {...noMatch};     }      return {       matched: true,       consumedSegments: [],       remainingSegments: segments,       parameters: {},       positionalParamSegments: {}     };   }    const matcher = route.matcher || defaultUrlMatcher;   const res = matcher(segments, segmentGroup, route);   if (!res) return {...noMatch};    const posParams: {[n: string]: string} = {};   forEach(res.posParams!, (v: UrlSegment, k: string) => {     posParams[k] = v.path;   });   const parameters = res.consumed.length > 0 ?       {...posParams, ...res.consumed[res.consumed.length - 1].parameters} :       posParams;    return {     matched: true,     consumedSegments: res.consumed,     remainingSegments: segments.slice(res.consumed.length),     // TODO(atscott): investigate combining parameters and positionalParamSegments     parameters,     positionalParamSegments: res.posParams ?? {}   }; }  export function split(     segmentGroup: UrlSegmentGroup, consumedSegments: UrlSegment[], slicedSegments: UrlSegment[],     config: Route[]) {   if (slicedSegments.length > 0 &&       containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {     const s = new UrlSegmentGroup(         consumedSegments,         createChildrenForEmptyPaths(             segmentGroup, consumedSegments, config,             new UrlSegmentGroup(slicedSegments, segmentGroup.children)));     s._sourceSegment = segmentGroup;     s._segmentIndexShift = consumedSegments.length;     return {segmentGroup: s, slicedSegments: []};   }    if (slicedSegments.length === 0 &&       containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {     const s = new UrlSegmentGroup(         segmentGroup.segments,         addEmptyPathsToChildrenIfNeeded(             segmentGroup, consumedSegments, slicedSegments, config, segmentGroup.children));     s._sourceSegment = segmentGroup;     s._segmentIndexShift = consumedSegments.length;     return {segmentGroup: s, slicedSegments};   }    const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);   s._sourceSegment = segmentGroup;   s._segmentIndexShift = consumedSegments.length;   return {segmentGroup: s, slicedSegments}; }  function addEmptyPathsToChildrenIfNeeded(     segmentGroup: UrlSegmentGroup, consumedSegments: UrlSegment[], slicedSegments: UrlSegment[],     routes: Route[],     children: {[name: string]: UrlSegmentGroup}): {[name: string]: UrlSegmentGroup} {   const res: {[name: string]: UrlSegmentGroup} = {};   for (const r of routes) {     if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {       const s = new UrlSegmentGroup([], {});       s._sourceSegment = segmentGroup;       s._segmentIndexShift = consumedSegments.length;       res[getOutlet(r)] = s;     }   }   return {...children, ...res}; }  function createChildrenForEmptyPaths(     segmentGroup: UrlSegmentGroup, consumedSegments: UrlSegment[], routes: Route[],     primarySegment: UrlSegmentGroup): {[name: string]: UrlSegmentGroup} {   const res: {[name: string]: UrlSegmentGroup} = {};   res[PRIMARY_OUTLET] = primarySegment;   primarySegment._sourceSegment = segmentGroup;   primarySegment._segmentIndexShift = consumedSegments.length;    for (const r of routes) {     if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {       const s = new UrlSegmentGroup([], {});       s._sourceSegment = segmentGroup;       s._segmentIndexShift = consumedSegments.length;       res[getOutlet(r)] = s;     }   }   return res; }  function containsEmptyPathMatchesWithNamedOutlets(     segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], routes: Route[]): boolean {   return routes.some(       r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET); }  function containsEmptyPathMatches(     segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], routes: Route[]): boolean {   return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r)); }  function emptyPathMatch(     segmentGroup: UrlSegmentGroup, slicedSegments: UrlSegment[], r: Route): boolean {   if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {     return false;   }    return r.path === ''; }  /**  * Determines if `route` is a path match for the `rawSegment`, `segments`, and `outlet` without  * verifying that its children are a full match for the remainder of the `rawSegment` children as  * well.  */ export function isImmediateMatch(     route: Route, rawSegment: UrlSegmentGroup, segments: UrlSegment[], outlet: string): boolean {   // We allow matches to empty paths when the outlets differ so we can match a url like `/(b:b)` to   // a config like   // * `{path: '', children: [{path: 'b', outlet: 'b'}]}`   // or even   // * `{path: '', outlet: 'a', children: [{path: 'b', outlet: 'b'}]`   //   // The exception here is when the segment outlet is for the primary outlet. This would   // result in a match inside the named outlet because all children there are written as primary   // outlets. So we need to prevent child named outlet matches in a url like `/b` in a config like   // * `{path: '', outlet: 'x' children: [{path: 'b'}]}`   // This should only match if the url is `/(x:b)`.   if (getOutlet(route) !== outlet &&       (outlet === PRIMARY_OUTLET || !emptyPathMatch(rawSegment, segments, route))) {     return false;   }   if (route.path === '**') {     return true;   }   return match(rawSegment, route, segments).matched; }  export function noLeftoversInUrl(     segmentGroup: UrlSegmentGroup, segments: UrlSegment[], outlet: string): boolean {   return segments.length === 0 && !segmentGroup.children[outlet]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, ɵRuntimeError as RuntimeError} from '@angular/core'; import {from, Observable, of, throwError} from 'rxjs'; import {catchError, concatMap, first, last, map, mergeMap, scan, switchMap, tap} from 'rxjs/operators';  import {RuntimeErrorCode} from './errors'; import {NavigationCancellationCode} from './events'; import {LoadedRouterConfig, Route, Routes} from './models'; import {navigationCancelingError} from './navigation_canceling_error'; import {runCanLoadGuards} from './operators/check_guards'; import {RouterConfigLoader} from './router_config_loader'; import {Params, PRIMARY_OUTLET} from './shared'; import {createRoot, squashSegmentGroup, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree} from './url_tree'; import {forEach} from './utils/collection'; import {getOrCreateRouteInjectorIfNeeded, getOutlet, sortByMatchingOutlets} from './utils/config'; import {isImmediateMatch, match, matchWithChecks, noLeftoversInUrl, split} from './utils/config_matching'; import {isEmptyError} from './utils/type_guards';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  class NoMatch {   public segmentGroup: UrlSegmentGroup|null;    constructor(segmentGroup?: UrlSegmentGroup) {     this.segmentGroup = segmentGroup || null;   } }  class AbsoluteRedirect {   constructor(public urlTree: UrlTree) {} }  function noMatch(segmentGroup: UrlSegmentGroup): Observable<UrlSegmentGroup> {   return throwError(new NoMatch(segmentGroup)); }  function absoluteRedirect(newTree: UrlTree): Observable<any> {   return throwError(new AbsoluteRedirect(newTree)); }  function namedOutletsRedirect(redirectTo: string): Observable<any> {   return throwError(new RuntimeError(       RuntimeErrorCode.NAMED_OUTLET_REDIRECT,       NG_DEV_MODE &&           `Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`)); }  function canLoadFails(route: Route): Observable<LoadedRouterConfig> {   return throwError(navigationCancelingError(       NG_DEV_MODE &&           `Cannot load children because the guard of the route \"path: '${               route.path}'\" returned false`,       NavigationCancellationCode.GuardRejected)); }  /**  * Returns the `UrlTree` with the redirection applied.  *  * Lazy modules are loaded along the way.  */ export function applyRedirects(     injector: EnvironmentInjector, configLoader: RouterConfigLoader, urlSerializer: UrlSerializer,     urlTree: UrlTree, config: Routes): Observable<UrlTree> {   return new ApplyRedirects(injector, configLoader, urlSerializer, urlTree, config).apply(); }  class ApplyRedirects {   private allowRedirects: boolean = true;    constructor(       private injector: EnvironmentInjector, private configLoader: RouterConfigLoader,       private urlSerializer: UrlSerializer, private urlTree: UrlTree, private config: Routes) {}    apply(): Observable<UrlTree> {     const splitGroup = split(this.urlTree.root, [], [], this.config).segmentGroup;     // TODO(atscott): creating a new segment removes the _sourceSegment _segmentIndexShift, which is     // only necessary to prevent failures in tests which assert exact object matches. The `split` is     // now shared between `applyRedirects` and `recognize` but only the `recognize` step needs these     // properties. Before the implementations were merged, the `applyRedirects` would not assign     // them. We should be able to remove this logic as a \"breaking change\" but should do some more     // investigation into the failures first.     const rootSegmentGroup = new UrlSegmentGroup(splitGroup.segments, splitGroup.children);      const expanded$ =         this.expandSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET);     const urlTrees$ = expanded$.pipe(map((rootSegmentGroup: UrlSegmentGroup) => {       return this.createUrlTree(           squashSegmentGroup(rootSegmentGroup), this.urlTree.queryParams, this.urlTree.fragment);     }));     return urlTrees$.pipe(catchError((e: any) => {       if (e instanceof AbsoluteRedirect) {         // After an absolute redirect we do not apply any more redirects!         // If this implementation changes, update the documentation note in `redirectTo`.         this.allowRedirects = false;         // we need to run matching, so we can fetch all lazy-loaded modules         return this.match(e.urlTree);       }        if (e instanceof NoMatch) {         throw this.noMatchError(e);       }        throw e;     }));   }    private match(tree: UrlTree): Observable<UrlTree> {     const expanded$ =         this.expandSegmentGroup(this.injector, this.config, tree.root, PRIMARY_OUTLET);     const mapped$ = expanded$.pipe(map((rootSegmentGroup: UrlSegmentGroup) => {       return this.createUrlTree(           squashSegmentGroup(rootSegmentGroup), tree.queryParams, tree.fragment);     }));     return mapped$.pipe(catchError((e: any): Observable<UrlTree> => {       if (e instanceof NoMatch) {         throw this.noMatchError(e);       }        throw e;     }));   }    private noMatchError(e: NoMatch): any {     return new RuntimeError(         RuntimeErrorCode.NO_MATCH,         NG_DEV_MODE && `Cannot match any routes. URL Segment: '${e.segmentGroup}'`);   }    private createUrlTree(rootCandidate: UrlSegmentGroup, queryParams: Params, fragment: string|null):       UrlTree {     const root = createRoot(rootCandidate);     return new UrlTree(root, queryParams, fragment);   }    private expandSegmentGroup(       injector: EnvironmentInjector, routes: Route[], segmentGroup: UrlSegmentGroup,       outlet: string): Observable<UrlSegmentGroup> {     if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {       return this.expandChildren(injector, routes, segmentGroup)           .pipe(map((children: any) => new UrlSegmentGroup([], children)));     }      return this.expandSegment(injector, segmentGroup, routes, segmentGroup.segments, outlet, true);   }    // Recursively expand segment groups for all the child outlets   private expandChildren(       injector: EnvironmentInjector, routes: Route[],       segmentGroup: UrlSegmentGroup): Observable<{[name: string]: UrlSegmentGroup}> {     // Expand outlets one at a time, starting with the primary outlet. We need to do it this way     // because an absolute redirect from the primary outlet takes precedence.     const childOutlets: string[] = [];     for (const child of Object.keys(segmentGroup.children)) {       if (child === 'primary') {         childOutlets.unshift(child);       } else {         childOutlets.push(child);       }     }      return from(childOutlets)         .pipe(             concatMap(childOutlet => {               const child = segmentGroup.children[childOutlet];               // Sort the routes so routes with outlets that match the segment appear               // first, followed by routes for other outlets, which might match if they have an               // empty path.               const sortedRoutes = sortByMatchingOutlets(routes, childOutlet);               return this.expandSegmentGroup(injector, sortedRoutes, child, childOutlet)                   .pipe(map(s => ({segment: s, outlet: childOutlet})));             }),             scan(                 (children, expandedChild) => {                   children[expandedChild.outlet] = expandedChild.segment;                   return children;                 },                 {} as {[outlet: string]: UrlSegmentGroup}),             last(),         );   }    private expandSegment(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[],       segments: UrlSegment[], outlet: string,       allowRedirects: boolean): Observable<UrlSegmentGroup> {     return from(routes).pipe(         concatMap(r => {           const expanded$ = this.expandSegmentAgainstRoute(               injector, segmentGroup, routes, r, segments, outlet, allowRedirects);           return expanded$.pipe(catchError((e: any) => {             if (e instanceof NoMatch) {               return of(null);             }             throw e;           }));         }),         first((s): s is UrlSegmentGroup => !!s), catchError((e: any, _: any) => {           if (isEmptyError(e)) {             if (noLeftoversInUrl(segmentGroup, segments, outlet)) {               return of(new UrlSegmentGroup([], {}));             }             return noMatch(segmentGroup);           }           throw e;         }));   }    private expandSegmentAgainstRoute(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[], route: Route,       paths: UrlSegment[], outlet: string, allowRedirects: boolean): Observable<UrlSegmentGroup> {     if (!isImmediateMatch(route, segmentGroup, paths, outlet)) {       return noMatch(segmentGroup);     }      if (route.redirectTo === undefined) {       return this.matchSegmentAgainstRoute(injector, segmentGroup, route, paths, outlet);     }      if (allowRedirects && this.allowRedirects) {       return this.expandSegmentAgainstRouteUsingRedirect(           injector, segmentGroup, routes, route, paths, outlet);     }      return noMatch(segmentGroup);   }    private expandSegmentAgainstRouteUsingRedirect(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[], route: Route,       segments: UrlSegment[], outlet: string): Observable<UrlSegmentGroup> {     if (route.path === '**') {       return this.expandWildCardWithParamsAgainstRouteUsingRedirect(           injector, routes, route, outlet);     }      return this.expandRegularSegmentAgainstRouteUsingRedirect(         injector, segmentGroup, routes, route, segments, outlet);   }    private expandWildCardWithParamsAgainstRouteUsingRedirect(       injector: EnvironmentInjector, routes: Route[], route: Route,       outlet: string): Observable<UrlSegmentGroup> {     const newTree = this.applyRedirectCommands([], route.redirectTo!, {});     if (route.redirectTo!.startsWith('/')) {       return absoluteRedirect(newTree);     }      return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments: UrlSegment[]) => {       const group = new UrlSegmentGroup(newSegments, {});       return this.expandSegment(injector, group, routes, newSegments, outlet, false);     }));   }    private expandRegularSegmentAgainstRouteUsingRedirect(       injector: EnvironmentInjector, segmentGroup: UrlSegmentGroup, routes: Route[], route: Route,       segments: UrlSegment[], outlet: string): Observable<UrlSegmentGroup> {     const {matched, consumedSegments, remainingSegments, positionalParamSegments} =         match(segmentGroup, route, segments);     if (!matched) return noMatch(segmentGroup);      const newTree =         this.applyRedirectCommands(consumedSegments, route.redirectTo!, positionalParamSegments);     if (route.redirectTo!.startsWith('/')) {       return absoluteRedirect(newTree);     }      return this.lineralizeSegments(route, newTree).pipe(mergeMap((newSegments: UrlSegment[]) => {       return this.expandSegment(           injector, segmentGroup, routes, newSegments.concat(remainingSegments), outlet, false);     }));   }    private matchSegmentAgainstRoute(       injector: EnvironmentInjector, rawSegmentGroup: UrlSegmentGroup, route: Route,       segments: UrlSegment[], outlet: string): Observable<UrlSegmentGroup> {     if (route.path === '**') {       // Only create the Route's `EnvironmentInjector` if it matches the attempted navigation       injector = getOrCreateRouteInjectorIfNeeded(route, injector);       if (route.loadChildren) {         const loaded$ = route._loadedRoutes ?             of({routes: route._loadedRoutes, injector: route._loadedInjector}) :             this.configLoader.loadChildren(injector, route);         return loaded$.pipe(map((cfg: LoadedRouterConfig) => {           route._loadedRoutes = cfg.routes;           route._loadedInjector = cfg.injector;           return new UrlSegmentGroup(segments, {});         }));       }        return of(new UrlSegmentGroup(segments, {}));     }      return matchWithChecks(rawSegmentGroup, route, segments, injector, this.urlSerializer)         .pipe(             switchMap(({matched, consumedSegments, remainingSegments}) => {               if (!matched) return noMatch(rawSegmentGroup);                // If the route has an injector created from providers, we should start using that.               injector = route._injector ?? injector;               const childConfig$ = this.getChildConfig(injector, route, segments);                return childConfig$.pipe(mergeMap((routerConfig: LoadedRouterConfig) => {                 const childInjector = routerConfig.injector ?? injector;                 const childConfig = routerConfig.routes;                  const {segmentGroup: splitSegmentGroup, slicedSegments} =                     split(rawSegmentGroup, consumedSegments, remainingSegments, childConfig);                 // See comment on the other call to `split` about why this is necessary.                 const segmentGroup =                     new UrlSegmentGroup(splitSegmentGroup.segments, splitSegmentGroup.children);                  if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {                   const expanded$ = this.expandChildren(childInjector, childConfig, segmentGroup);                   return expanded$.pipe(                       map((children: any) => new UrlSegmentGroup(consumedSegments, children)));                 }                  if (childConfig.length === 0 && slicedSegments.length === 0) {                   return of(new UrlSegmentGroup(consumedSegments, {}));                 }                  const matchedOnOutlet = getOutlet(route) === outlet;                 const expanded$ = this.expandSegment(                     childInjector, segmentGroup, childConfig, slicedSegments,                     matchedOnOutlet ? PRIMARY_OUTLET : outlet, true);                 return expanded$.pipe(                     map((cs: UrlSegmentGroup) => new UrlSegmentGroup(                             consumedSegments.concat(cs.segments), cs.children)));               }));             }),         );   }    private getChildConfig(injector: EnvironmentInjector, route: Route, segments: UrlSegment[]):       Observable<LoadedRouterConfig> {     if (route.children) {       // The children belong to the same module       return of({routes: route.children, injector});     }      if (route.loadChildren) {       // lazy children belong to the loaded module       if (route._loadedRoutes !== undefined) {         return of({routes: route._loadedRoutes, injector: route._loadedInjector});       }        return runCanLoadGuards(injector, route, segments, this.urlSerializer)           .pipe(mergeMap((shouldLoadResult: boolean) => {             if (shouldLoadResult) {               return this.configLoader.loadChildren(injector, route)                   .pipe(tap((cfg: LoadedRouterConfig) => {                     route._loadedRoutes = cfg.routes;                     route._loadedInjector = cfg.injector;                   }));             }             return canLoadFails(route);           }));     }      return of({routes: [], injector});   }    private lineralizeSegments(route: Route, urlTree: UrlTree): Observable<UrlSegment[]> {     let res: UrlSegment[] = [];     let c = urlTree.root;     while (true) {       res = res.concat(c.segments);       if (c.numberOfChildren === 0) {         return of(res);       }        if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {         return namedOutletsRedirect(route.redirectTo!);       }        c = c.children[PRIMARY_OUTLET];     }   }    private applyRedirectCommands(       segments: UrlSegment[], redirectTo: string, posParams: {[k: string]: UrlSegment}): UrlTree {     return this.applyRedirectCreateUrlTree(         redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);   }    private applyRedirectCreateUrlTree(       redirectTo: string, urlTree: UrlTree, segments: UrlSegment[],       posParams: {[k: string]: UrlSegment}): UrlTree {     const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);     return new UrlTree(         newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams),         urlTree.fragment);   }    private createQueryParams(redirectToParams: Params, actualParams: Params): Params {     const res: Params = {};     forEach(redirectToParams, (v: any, k: string) => {       const copySourceValue = typeof v === 'string' && v.startsWith(':');       if (copySourceValue) {         const sourceName = v.substring(1);         res[k] = actualParams[sourceName];       } else {         res[k] = v;       }     });     return res;   }    private createSegmentGroup(       redirectTo: string, group: UrlSegmentGroup, segments: UrlSegment[],       posParams: {[k: string]: UrlSegment}): UrlSegmentGroup {     const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);      let children: {[n: string]: UrlSegmentGroup} = {};     forEach(group.children, (child: UrlSegmentGroup, name: string) => {       children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);     });      return new UrlSegmentGroup(updatedSegments, children);   }    private createSegments(       redirectTo: string, redirectToSegments: UrlSegment[], actualSegments: UrlSegment[],       posParams: {[k: string]: UrlSegment}): UrlSegment[] {     return redirectToSegments.map(         s => s.path.startsWith(':') ? this.findPosParam(redirectTo, s, posParams) :                                       this.findOrReturn(s, actualSegments));   }    private findPosParam(       redirectTo: string, redirectToUrlSegment: UrlSegment,       posParams: {[k: string]: UrlSegment}): UrlSegment {     const pos = posParams[redirectToUrlSegment.path.substring(1)];     if (!pos)       throw new RuntimeError(           RuntimeErrorCode.MISSING_REDIRECT,           NG_DEV_MODE &&               `Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);     return pos;   }    private findOrReturn(redirectToUrlSegment: UrlSegment, actualSegments: UrlSegment[]): UrlSegment {     let idx = 0;     for (const s of actualSegments) {       if (s.path === redirectToUrlSegment.path) {         actualSegments.splice(idx);         return s;       }       idx++;     }     return redirectToUrlSegment;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector} from '@angular/core'; import {MonoTypeOperatorFunction} from 'rxjs'; import {map, switchMap} from 'rxjs/operators';  import {applyRedirects as applyRedirectsFn} from '../apply_redirects'; import {Routes} from '../models'; import {NavigationTransition} from '../navigation_transition'; import {RouterConfigLoader} from '../router_config_loader'; import {UrlSerializer} from '../url_tree';  export function applyRedirects(     environmentInjector: EnvironmentInjector, configLoader: RouterConfigLoader,     urlSerializer: UrlSerializer, config: Routes): MonoTypeOperatorFunction<NavigationTransition> {   return switchMap(       t =>           applyRedirectsFn(environmentInjector, configLoader, urlSerializer, t.extractedUrl, config)               .pipe(map(urlAfterRedirects => ({...t, urlAfterRedirects})))); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, Type, ɵRuntimeError as RuntimeError} from '@angular/core'; import {EmptyError, from, Observable, Observer, of} from 'rxjs'; import {catchError, concatMap, defaultIfEmpty, first, last as rxjsLast, map, scan, switchMap, takeWhile} from 'rxjs/operators';  import {RuntimeErrorCode} from './errors'; import {Data, ResolveData, Route, Routes} from './models'; import {ActivatedRouteSnapshot, inheritedParamsDataResolve, ParamsInheritanceStrategy, RouterStateSnapshot} from './router_state'; import {PRIMARY_OUTLET} from './shared'; import {UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree} from './url_tree'; import {last} from './utils/collection'; import {getOutlet, sortByMatchingOutlets} from './utils/config'; import {isImmediateMatch, matchWithChecks, noLeftoversInUrl, split} from './utils/config_matching'; import {TreeNode} from './utils/tree'; import {isEmptyError} from './utils/type_guards';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  class NoMatch {}  function newObservableError(e: unknown): Observable<RouterStateSnapshot> {   // TODO(atscott): This pattern is used throughout the router code and can be `throwError` instead.   return new Observable<RouterStateSnapshot>((obs: Observer<RouterStateSnapshot>) => obs.error(e)); }  export function recognize(     injector: EnvironmentInjector, rootComponentType: Type<any>|null, config: Routes,     urlTree: UrlTree, url: string, urlSerializer: UrlSerializer,     paramsInheritanceStrategy: ParamsInheritanceStrategy =         'emptyOnly'): Observable<RouterStateSnapshot> {   return new Recognizer(              injector, rootComponentType, config, urlTree, url, paramsInheritanceStrategy,              urlSerializer)       .recognize()       .pipe(switchMap(result => {         if (result === null) {           return newObservableError(new NoMatch());         } else {           return of(result);         }       })); }  export class Recognizer {   constructor(       private injector: EnvironmentInjector, private rootComponentType: Type<any>|null,       private config: Routes, private urlTree: UrlTree, private url: string,       private paramsInheritanceStrategy: ParamsInheritanceStrategy,       private readonly urlSerializer: UrlSerializer) {}    recognize(): Observable<RouterStateSnapshot|null> {     const rootSegmentGroup =         split(this.urlTree.root, [], [], this.config.filter(c => c.redirectTo === undefined))             .segmentGroup;      return this.processSegmentGroup(this.injector, this.config, rootSegmentGroup, PRIMARY_OUTLET)         .pipe(map(children => {           if (children === null) {             return null;           }            // Use Object.freeze to prevent readers of the Router state from modifying it outside of a           // navigation, resulting in the router being out of sync with the browser.           const root = new ActivatedRouteSnapshot(               [], Object.freeze({}), Object.freeze({...this.urlTree.queryParams}),               this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null,               this.urlTree.root, -1, {});            const rootNode = new TreeNode<ActivatedRouteSnapshot>(root, children);           const routeState = new RouterStateSnapshot(this.url, rootNode);           this.inheritParamsAndData(routeState._root);           return routeState;         }));   }    inheritParamsAndData(routeNode: TreeNode<ActivatedRouteSnapshot>): void {     const route = routeNode.value;      const i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);     route.params = Object.freeze(i.params);     route.data = Object.freeze(i.data);      routeNode.children.forEach(n => this.inheritParamsAndData(n));   }    processSegmentGroup(       injector: EnvironmentInjector, config: Route[], segmentGroup: UrlSegmentGroup,       outlet: string): Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {       return this.processChildren(injector, config, segmentGroup);     }      return this.processSegment(injector, config, segmentGroup, segmentGroup.segments, outlet);   }    /**    * Matches every child outlet in the `segmentGroup` to a `Route` in the config. Returns `null` if    * we cannot find a match for _any_ of the children.    *    * @param config - The `Routes` to match against    * @param segmentGroup - The `UrlSegmentGroup` whose children need to be matched against the    *     config.    */   processChildren(injector: EnvironmentInjector, config: Route[], segmentGroup: UrlSegmentGroup):       Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     return from(Object.keys(segmentGroup.children))         .pipe(             concatMap(childOutlet => {               const child = segmentGroup.children[childOutlet];               // Sort the config so that routes with outlets that match the one being activated               // appear first, followed by routes for other outlets, which might match if they have               // an empty path.               const sortedConfig = sortByMatchingOutlets(config, childOutlet);               return this.processSegmentGroup(injector, sortedConfig, child, childOutlet);             }),             scan((children, outletChildren) => {               if (!children || !outletChildren) return null;               children.push(...outletChildren);               return children;             }),             takeWhile(children => children !== null),             defaultIfEmpty(null as TreeNode<ActivatedRouteSnapshot>[] | null),             rxjsLast(),             map(children => {               if (children === null) return null;               // Because we may have matched two outlets to the same empty path segment, we can have               // multiple activated results for the same outlet. We should merge the children of               // these results so the final return value is only one `TreeNode` per outlet.               const mergedChildren = mergeEmptyPathMatches(children);               if (NG_DEV_MODE) {                 // This should really never happen - we are only taking the first match for each                 // outlet and merge the empty path matches.                 checkOutletNameUniqueness(mergedChildren);               }               sortActivatedRouteSnapshots(mergedChildren);               return mergedChildren;             }),         );   }    processSegment(       injector: EnvironmentInjector, routes: Route[], segmentGroup: UrlSegmentGroup,       segments: UrlSegment[], outlet: string): Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     return from(routes).pipe(         concatMap(r => {           return this.processSegmentAgainstRoute(               r._injector ?? injector, r, segmentGroup, segments, outlet);         }),         first((x): x is TreeNode<ActivatedRouteSnapshot>[] => !!x), catchError(e => {           if (isEmptyError(e)) {             if (noLeftoversInUrl(segmentGroup, segments, outlet)) {               return of([]);             }             return of(null);           }           throw e;         }));   }    processSegmentAgainstRoute(       injector: EnvironmentInjector, route: Route, rawSegment: UrlSegmentGroup,       segments: UrlSegment[], outlet: string): Observable<TreeNode<ActivatedRouteSnapshot>[]|null> {     if (route.redirectTo || !isImmediateMatch(route, rawSegment, segments, outlet)) return of(null);      let matchResult: Observable<{       snapshot: ActivatedRouteSnapshot,       consumedSegments: UrlSegment[],       remainingSegments: UrlSegment[],     }|null>;      if (route.path === '**') {       const params = segments.length > 0 ? last(segments)!.parameters : {};       const pathIndexShift = getPathIndexShift(rawSegment) + segments.length;       const snapshot = new ActivatedRouteSnapshot(           segments, params, Object.freeze({...this.urlTree.queryParams}), this.urlTree.fragment,           getData(route), getOutlet(route), route.component ?? route._loadedComponent ?? null,           route, getSourceSegmentGroup(rawSegment), pathIndexShift, getResolve(route));       matchResult = of({         snapshot,         consumedSegments: [],         remainingSegments: [],       });     } else {       matchResult =           matchWithChecks(rawSegment, route, segments, injector, this.urlSerializer)               .pipe(map(({matched, consumedSegments, remainingSegments, parameters}) => {                 if (!matched) {                   return null;                 }                 const pathIndexShift = getPathIndexShift(rawSegment) + consumedSegments.length;                  const snapshot = new ActivatedRouteSnapshot(                     consumedSegments, parameters, Object.freeze({...this.urlTree.queryParams}),                     this.urlTree.fragment, getData(route), getOutlet(route),                     route.component ?? route._loadedComponent ?? null, route,                     getSourceSegmentGroup(rawSegment), pathIndexShift, getResolve(route));                 return {snapshot, consumedSegments, remainingSegments};               }));     }      return matchResult.pipe(switchMap((result) => {       if (result === null) {         return of(null);       }       const {snapshot, consumedSegments, remainingSegments} = result;       // If the route has an injector created from providers, we should start using that.       injector = route._injector ?? injector;       const childInjector = route._loadedInjector ?? injector;       const childConfig: Route[] = getChildConfig(route);        const {segmentGroup, slicedSegments} = split(           rawSegment, consumedSegments, remainingSegments,           // Filter out routes with redirectTo because we are trying to create activated route           // snapshots and don't handle redirects here. That should have been done in           // `applyRedirects`.           childConfig.filter(c => c.redirectTo === undefined));        if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {         return this.processChildren(childInjector, childConfig, segmentGroup).pipe(map(children => {           if (children === null) {             return null;           }           return [new TreeNode<ActivatedRouteSnapshot>(snapshot, children)];         }));       }        if (childConfig.length === 0 && slicedSegments.length === 0) {         return of([new TreeNode<ActivatedRouteSnapshot>(snapshot, [])]);       }        const matchedOnOutlet = getOutlet(route) === outlet;       // If we matched a config due to empty path match on a different outlet, we need to       // continue passing the current outlet for the segment rather than switch to PRIMARY.       // Note that we switch to primary when we have a match because outlet configs look like       // this: {path: 'a', outlet: 'a', children: [       //  {path: 'b', component: B},       //  {path: 'c', component: C},       // ]}       // Notice that the children of the named outlet are configured with the primary outlet       return this           .processSegment(               childInjector, childConfig, segmentGroup, slicedSegments,               matchedOnOutlet ? PRIMARY_OUTLET : outlet)           .pipe(map(children => {             if (children === null) {               return null;             }             return [new TreeNode<ActivatedRouteSnapshot>(snapshot, children)];           }));     }));   } }  function sortActivatedRouteSnapshots(nodes: TreeNode<ActivatedRouteSnapshot>[]): void {   nodes.sort((a, b) => {     if (a.value.outlet === PRIMARY_OUTLET) return -1;     if (b.value.outlet === PRIMARY_OUTLET) return 1;     return a.value.outlet.localeCompare(b.value.outlet);   }); }  function getChildConfig(route: Route): Route[] {   if (route.children) {     return route.children;   }    if (route.loadChildren) {     return route._loadedRoutes!;   }    return []; }  function hasEmptyPathConfig(node: TreeNode<ActivatedRouteSnapshot>) {   const config = node.value.routeConfig;   return config && config.path === '' && config.redirectTo === undefined; }  /**  * Finds `TreeNode`s with matching empty path route configs and merges them into `TreeNode` with  * the children from each duplicate. This is necessary because different outlets can match a  * single empty path route config and the results need to then be merged.  */ function mergeEmptyPathMatches(nodes: Array<TreeNode<ActivatedRouteSnapshot>>):     Array<TreeNode<ActivatedRouteSnapshot>> {   const result: Array<TreeNode<ActivatedRouteSnapshot>> = [];   // The set of nodes which contain children that were merged from two duplicate empty path nodes.   const mergedNodes: Set<TreeNode<ActivatedRouteSnapshot>> = new Set();    for (const node of nodes) {     if (!hasEmptyPathConfig(node)) {       result.push(node);       continue;     }      const duplicateEmptyPathNode =         result.find(resultNode => node.value.routeConfig === resultNode.value.routeConfig);     if (duplicateEmptyPathNode !== undefined) {       duplicateEmptyPathNode.children.push(...node.children);       mergedNodes.add(duplicateEmptyPathNode);     } else {       result.push(node);     }   }   // For each node which has children from multiple sources, we need to recompute a new `TreeNode`   // by also merging those children. This is necessary when there are multiple empty path configs   // in a row. Put another way: whenever we combine children of two nodes, we need to also check   // if any of those children can be combined into a single node as well.   for (const mergedNode of mergedNodes) {     const mergedChildren = mergeEmptyPathMatches(mergedNode.children);     result.push(new TreeNode(mergedNode.value, mergedChildren));   }   return result.filter(n => !mergedNodes.has(n)); }  function checkOutletNameUniqueness(nodes: TreeNode<ActivatedRouteSnapshot>[]): void {   const names: {[k: string]: ActivatedRouteSnapshot} = {};   nodes.forEach(n => {     const routeWithSameOutletName = names[n.value.outlet];     if (routeWithSameOutletName) {       const p = routeWithSameOutletName.url.map(s => s.toString()).join('/');       const c = n.value.url.map(s => s.toString()).join('/');       throw new RuntimeError(           RuntimeErrorCode.TWO_SEGMENTS_WITH_SAME_OUTLET,           NG_DEV_MODE && `Two segments cannot have the same outlet name: '${p}' and '${c}'.`);     }     names[n.value.outlet] = n.value;   }); }  function getSourceSegmentGroup(segmentGroup: UrlSegmentGroup): UrlSegmentGroup {   let s = segmentGroup;   while (s._sourceSegment) {     s = s._sourceSegment;   }   return s; }  function getPathIndexShift(segmentGroup: UrlSegmentGroup): number {   let s = segmentGroup;   let res = s._segmentIndexShift ?? 0;   while (s._sourceSegment) {     s = s._sourceSegment;     res += s._segmentIndexShift ?? 0;   }   return res - 1; }  function getCorrectedPathIndexShift(segmentGroup: UrlSegmentGroup): number {   let s = segmentGroup;   let res = s._segmentIndexShiftCorrected ?? s._segmentIndexShift ?? 0;   while (s._sourceSegment) {     s = s._sourceSegment;     res += s._segmentIndexShiftCorrected ?? s._segmentIndexShift ?? 0;   }   return res - 1; }  function getData(route: Route): Data {   return route.data || {}; }  function getResolve(route: Route): ResolveData {   return route.resolve || {}; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, Type} from '@angular/core'; import {MonoTypeOperatorFunction} from 'rxjs'; import {map, mergeMap} from 'rxjs/operators';  import {Route} from '../models'; import {NavigationTransition} from '../navigation_transition'; import {recognize as recognizeFn} from '../recognize'; import {UrlSerializer} from '../url_tree';  export function recognize(     injector: EnvironmentInjector, rootComponentType: Type<any>|null, config: Route[],     serializer: UrlSerializer, paramsInheritanceStrategy: 'emptyOnly'|'always'):     MonoTypeOperatorFunction<NavigationTransition> {   return mergeMap(       t => recognizeFn(                injector, rootComponentType, config, t.urlAfterRedirects!,                serializer.serialize(t.urlAfterRedirects!), serializer, paramsInheritanceStrategy)                .pipe(map(targetSnapshot => ({...t, targetSnapshot})))); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, ProviderToken} from '@angular/core'; import {EMPTY, from, MonoTypeOperatorFunction, Observable, of, throwError} from 'rxjs'; import {catchError, concatMap, first, map, mapTo, mergeMap, takeLast, tap} from 'rxjs/operators';  import {ResolveData, Route} from '../models'; import {NavigationTransition} from '../navigation_transition'; import {ActivatedRouteSnapshot, inheritedParamsDataResolve, RouterStateSnapshot} from '../router_state'; import {RouteTitleKey} from '../shared'; import {wrapIntoObservable} from '../utils/collection'; import {getClosestRouteInjector} from '../utils/config'; import {getTokenOrFunctionIdentity} from '../utils/preactivation'; import {isEmptyError} from '../utils/type_guards';  export function resolveData(     paramsInheritanceStrategy: 'emptyOnly'|'always',     injector: EnvironmentInjector): MonoTypeOperatorFunction<NavigationTransition> {   return mergeMap(t => {     const {targetSnapshot, guards: {canActivateChecks}} = t;      if (!canActivateChecks.length) {       return of(t);     }     let canActivateChecksResolved = 0;     return from(canActivateChecks)         .pipe(             concatMap(                 check =>                     runResolve(check.route, targetSnapshot!, paramsInheritanceStrategy, injector)),             tap(() => canActivateChecksResolved++),             takeLast(1),             mergeMap(_ => canActivateChecksResolved === canActivateChecks.length ? of(t) : EMPTY),         );   }); }  function runResolve(     futureARS: ActivatedRouteSnapshot, futureRSS: RouterStateSnapshot,     paramsInheritanceStrategy: 'emptyOnly'|'always', injector: EnvironmentInjector) {   const config = futureARS.routeConfig;   const resolve = futureARS._resolve;   if (config?.title !== undefined && !hasStaticTitle(config)) {     resolve[RouteTitleKey] = config.title;   }   return resolveNode(resolve, futureARS, futureRSS, injector).pipe(map((resolvedData: any) => {     futureARS._resolvedData = resolvedData;     futureARS.data = inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve;     if (config && hasStaticTitle(config)) {       futureARS.data[RouteTitleKey] = config.title;     }     return null;   })); }  function resolveNode(     resolve: ResolveData, futureARS: ActivatedRouteSnapshot, futureRSS: RouterStateSnapshot,     injector: EnvironmentInjector): Observable<any> {   const keys = getDataKeys(resolve);   if (keys.length === 0) {     return of({});   }   const data: {[k: string|symbol]: any} = {};   return from(keys).pipe(       mergeMap(           key => getResolver(resolve[key], futureARS, futureRSS, injector)                      .pipe(first(), tap((value: any) => {                              data[key] = value;                            }))),       takeLast(1),       mapTo(data),       catchError((e: unknown) => isEmptyError(e as Error) ? EMPTY : throwError(e)),   ); }  function getDataKeys(obj: Object): Array<string|symbol> {   return [...Object.keys(obj), ...Object.getOwnPropertySymbols(obj)]; }  function getResolver(     injectionToken: ProviderToken<any>|Function, futureARS: ActivatedRouteSnapshot,     futureRSS: RouterStateSnapshot, injector: EnvironmentInjector): Observable<any> {   const closestInjector = getClosestRouteInjector(futureARS) ?? injector;   const resolver = getTokenOrFunctionIdentity(injectionToken, closestInjector);   const resolverValue = resolver.resolve ?       resolver.resolve(futureARS, futureRSS) :       closestInjector.runInContext(() => resolver(futureARS, futureRSS));   return wrapIntoObservable(resolverValue); }  function hasStaticTitle(config: Route) {   return typeof config.title === 'string' || config.title === null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {from, MonoTypeOperatorFunction, ObservableInput, of} from 'rxjs'; import {map, switchMap} from 'rxjs/operators';  /**  * Perform a side effect through a switchMap for every emission on the source Observable,  * but return an Observable that is identical to the source. It's essentially the same as  * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,  * it will wait before continuing with the original value.  */ export function switchTap<T>(next: (x: T) => void|ObservableInput<any>):     MonoTypeOperatorFunction<T> {   return switchMap(v => {     const nextResult = next(v);     if (nextResult) {       return from(nextResult).pipe(map(() => v));     }     return of(v);   }); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Injector, NgModuleFactory} from '@angular/core'; import {Observable} from 'rxjs';  // This file exists to support the legacy `loadChildren: string` behavior being patched back into // Angular.  export function deprecatedLoadChildrenString(     injector: Injector, loadChildren: unknown): Observable<NgModuleFactory<any>>|null {   return null; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Compiler, EnvironmentInjector, Injectable, InjectFlags, InjectionToken, Injector, NgModuleFactory, Type} from '@angular/core'; import {ConnectableObservable, from, Observable, of, Subject} from 'rxjs'; import {catchError, finalize, map, mergeMap, refCount, tap} from 'rxjs/operators';  import {deprecatedLoadChildrenString} from './deprecated_load_children'; import {DefaultExport, LoadChildren, LoadChildrenCallback, LoadedRouterConfig, Route, Routes} from './models'; import {flatten, wrapIntoObservable} from './utils/collection'; import {assertStandalone, standardizeConfig, validateConfig} from './utils/config';   const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * The [DI token](guide/glossary/#di-token) for a router configuration.  *  * `ROUTES` is a low level API for router configuration via dependency injection.  *  * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,  * `provideRouter`, or `Router.resetConfig()`.  *  * @publicApi  */ export const ROUTES = new InjectionToken<Route[][]>('ROUTES');  type ComponentLoader = Observable<Type<unknown>>;  @Injectable({providedIn: 'root'}) export class RouterConfigLoader {   private componentLoaders = new WeakMap<Route, ComponentLoader>();   private childrenLoaders = new WeakMap<Route, Observable<LoadedRouterConfig>>();   onLoadStartListener?: (r: Route) => void;   onLoadEndListener?: (r: Route) => void;    constructor(       private injector: Injector,       private compiler: Compiler,   ) {}    loadComponent(route: Route): Observable<Type<unknown>> {     if (this.componentLoaders.get(route)) {       return this.componentLoaders.get(route)!;     } else if (route._loadedComponent) {       return of(route._loadedComponent);     }      if (this.onLoadStartListener) {       this.onLoadStartListener(route);     }     const loadRunner = wrapIntoObservable(route.loadComponent!())                            .pipe(                                map(maybeUnwrapDefaultExport),                                tap(component => {                                  if (this.onLoadEndListener) {                                    this.onLoadEndListener(route);                                  }                                  NG_DEV_MODE && assertStandalone(route.path ?? '', component);                                  route._loadedComponent = component;                                }),                                finalize(() => {                                  this.componentLoaders.delete(route);                                }),                            );     // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much     const loader =         new ConnectableObservable(loadRunner, () => new Subject<Type<unknown>>()).pipe(refCount());     this.componentLoaders.set(route, loader);     return loader;   }    loadChildren(parentInjector: Injector, route: Route): Observable<LoadedRouterConfig> {     if (this.childrenLoaders.get(route)) {       return this.childrenLoaders.get(route)!;     } else if (route._loadedRoutes) {       return of({routes: route._loadedRoutes, injector: route._loadedInjector});     }      if (this.onLoadStartListener) {       this.onLoadStartListener(route);     }     const moduleFactoryOrRoutes$ = this.loadModuleFactoryOrRoutes(route.loadChildren!);     const loadRunner = moduleFactoryOrRoutes$.pipe(         map((factoryOrRoutes: NgModuleFactory<any>|Routes) => {           if (this.onLoadEndListener) {             this.onLoadEndListener(route);           }           // This injector comes from the `NgModuleRef` when lazy loading an `NgModule`. There is no           // injector associated with lazy loading a `Route` array.           let injector: EnvironmentInjector|undefined;           let rawRoutes: Route[];           let requireStandaloneComponents = false;           if (Array.isArray(factoryOrRoutes)) {             rawRoutes = factoryOrRoutes;             requireStandaloneComponents = true;           } else {             injector = factoryOrRoutes.create(parentInjector).injector;             // When loading a module that doesn't provide `RouterModule.forChild()` preloader             // will get stuck in an infinite loop. The child module's Injector will look to             // its parent `Injector` when it doesn't find any ROUTES so it will return routes             // for it's parent module instead.             rawRoutes = flatten(injector.get(ROUTES, [], InjectFlags.Self | InjectFlags.Optional));           }           const routes = rawRoutes.map(standardizeConfig);           NG_DEV_MODE && validateConfig(routes, route.path, requireStandaloneComponents);           return {routes, injector};         }),         finalize(() => {           this.childrenLoaders.delete(route);         }),     );     // Use custom ConnectableObservable as share in runners pipe increasing the bundle size too much     const loader = new ConnectableObservable(loadRunner, () => new Subject<LoadedRouterConfig>())                        .pipe(refCount());     this.childrenLoaders.set(route, loader);     return loader;   }    private loadModuleFactoryOrRoutes(loadChildren: LoadChildren):       Observable<NgModuleFactory<any>|Routes> {     const deprecatedResult = deprecatedLoadChildrenString(this.injector, loadChildren);     if (deprecatedResult) {       return deprecatedResult;     }     return wrapIntoObservable((loadChildren as LoadChildrenCallback)())         .pipe(             map(maybeUnwrapDefaultExport),             mergeMap((t) => {               if (t instanceof NgModuleFactory || Array.isArray(t)) {                 return of(t);               } else {                 return from(this.compiler.compileModuleAsync(t));               }             }),         );   } }  function isWrappedDefaultExport<T>(value: T|DefaultExport<T>): value is DefaultExport<T> {   // We use `in` here with a string key `'default'`, because we expect `DefaultExport` objects to be   // dynamically imported ES modules with a spec-mandated `default` key. Thus we don't expect that   // `default` will be a renamed property.   return value && typeof value === 'object' && 'default' in value; }  function maybeUnwrapDefaultExport<T>(input: T|DefaultExport<T>): T {   // As per `isWrappedDefaultExport`, the `default` key here is generated by the browser and not   // subject to property renaming, so we reference it with bracket access.   return isWrappedDefaultExport(input) ? input['default'] : input; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EnvironmentInjector, inject, Injectable, Type} from '@angular/core'; import {BehaviorSubject, combineLatest, EMPTY, Observable, of, Subject} from 'rxjs'; import {catchError, defaultIfEmpty, filter, finalize, map, switchMap, take, tap} from 'rxjs/operators';  import {createRouterState} from './create_router_state'; import {Event, GuardsCheckEnd, GuardsCheckStart, IMPERATIVE_NAVIGATION, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, NavigationTrigger, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RoutesRecognized} from './events'; import {NavigationBehaviorOptions, QueryParamsHandling, Route, Routes} from './models'; import {isNavigationCancelingError, isRedirectingNavigationCancelingError, redirectingNavigationError} from './navigation_canceling_error'; import {activateRoutes} from './operators/activate_routes'; import {applyRedirects} from './operators/apply_redirects'; import {checkGuards} from './operators/check_guards'; import {recognize} from './operators/recognize'; import {resolveData} from './operators/resolve_data'; import {switchTap} from './operators/switch_tap'; import {TitleStrategy} from './page_title_strategy'; import {RouteReuseStrategy} from './route_reuse_strategy'; import {ErrorHandler} from './router_config'; import {RouterConfigLoader} from './router_config_loader'; import {ChildrenOutletContexts} from './router_outlet_context'; import {ActivatedRoute, ActivatedRouteSnapshot, createEmptyState, RouterState, RouterStateSnapshot} from './router_state'; import {Params} from './shared'; import {UrlHandlingStrategy} from './url_handling_strategy'; import {isUrlTree, UrlSerializer, UrlTree} from './url_tree'; import {Checks, getAllRouteGuards} from './utils/preactivation';   const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * @description  *  * Options that modify the `Router` URL.  * Supply an object containing any of these properties to a `Router` navigation function to  * control how the target URL should be constructed.  *  * @see [Router.navigate() method](api/router/Router#navigate)  * @see [Router.createUrlTree() method](api/router/Router#createurltree)  * @see [Routing and Navigation guide](guide/router)  *  * @publicApi  */ export interface UrlCreationOptions {   /**    * Specifies a root URI to use for relative navigation.    *    * For example, consider the following route configuration where the parent route    * has two children.    *    * ```    * [{    *   path: 'parent',    *   component: ParentComponent,    *   children: [{    *     path: 'list',    *     component: ListComponent    *   },{    *     path: 'child',    *     component: ChildComponent    *   }]    * }]    * ```    *    * The following `go()` function navigates to the `list` route by    * interpreting the destination URI as relative to the activated `child`  route    *    * ```    *  @Component({...})    *  class ChildComponent {    *    constructor(private router: Router, private route: ActivatedRoute) {}    *    *    go() {    *      router.navigate(['../list'], { relativeTo: this.route });    *    }    *  }    * ```    *    * A value of `null` or `undefined` indicates that the navigation commands should be applied    * relative to the root.    */   relativeTo?: ActivatedRoute|null;    /**    * Sets query parameters to the URL.    *    * ```    * // Navigate to /results?page=1    * router.navigate(['/results'], { queryParams: { page: 1 } });    * ```    */   queryParams?: Params|null;    /**    * Sets the hash fragment for the URL.    *    * ```    * // Navigate to /results#top    * router.navigate(['/results'], { fragment: 'top' });    * ```    */   fragment?: string;    /**    * How to handle query parameters in the router link for the next navigation.    * One of:    * * `preserve` : Preserve current parameters.    * * `merge` : Merge new with current parameters.    *    * The \"preserve\" option discards any new query params:    * ```    * // from /view1?page=1 to/view2?page=1    * router.navigate(['/view2'], { queryParams: { page: 2 },  queryParamsHandling: \"preserve\"    * });    * ```    * The \"merge\" option appends new query params to the params from the current URL:    * ```    * // from /view1?page=1 to/view2?page=1&otherKey=2    * router.navigate(['/view2'], { queryParams: { otherKey: 2 },  queryParamsHandling: \"merge\"    * });    * ```    * In case of a key collision between current parameters and those in the `queryParams` object,    * the new value is used.    *    */   queryParamsHandling?: QueryParamsHandling|null;    /**    * When true, preserves the URL fragment for the next navigation    *    * ```    * // Preserve fragment from /results#top to /view#top    * router.navigate(['/view'], { preserveFragment: true });    * ```    */   preserveFragment?: boolean; }  /**  * @description  *  * Options that modify the `Router` navigation strategy.  * Supply an object containing any of these properties to a `Router` navigation function to  * control how the target URL should be constructed or interpreted.  *  * @see [Router.navigate() method](api/router/Router#navigate)  * @see [Router.navigateByUrl() method](api/router/Router#navigatebyurl)  * @see [Router.createUrlTree() method](api/router/Router#createurltree)  * @see [Routing and Navigation guide](guide/router)  * @see UrlCreationOptions  * @see NavigationBehaviorOptions  *  * @publicApi  */ export interface NavigationExtras extends UrlCreationOptions, NavigationBehaviorOptions {}  export type RestoredState = {   [k: string]: any,   // TODO(#27607): Remove `navigationId` and `ɵrouterPageId` and move to `ng` or `ɵ` namespace.   navigationId: number,   // The `ɵ` prefix is there to reduce the chance of colliding with any existing user properties on   // the history state.   ɵrouterPageId?: number, };  /**  * Information about a navigation operation.  * Retrieve the most recent navigation object with the  * [Router.getCurrentNavigation() method](api/router/Router#getcurrentnavigation) .  *  * * *id* : The unique identifier of the current navigation.  * * *initialUrl* : The target URL passed into the `Router#navigateByUrl()` call before navigation.  * This is the value before the router has parsed or applied redirects to it.  * * *extractedUrl* : The initial target URL after being parsed with `UrlSerializer.extract()`.  * * *finalUrl* : The extracted URL after redirects have been applied.  * This URL may not be available immediately, therefore this property can be `undefined`.  * It is guaranteed to be set after the `RoutesRecognized` event fires.  * * *trigger* : Identifies how this navigation was triggered.  * -- 'imperative'--Triggered by `router.navigateByUrl` or `router.navigate`.  * -- 'popstate'--Triggered by a popstate event.  * -- 'hashchange'--Triggered by a hashchange event.  * * *extras* : A `NavigationExtras` options object that controlled the strategy used for this  * navigation.  * * *previousNavigation* : The previously successful `Navigation` object. Only one previous  * navigation is available, therefore this previous `Navigation` object has a `null` value for its  * own `previousNavigation`.  *  * @publicApi  */ export interface Navigation {   /**    * The unique identifier of the current navigation.    */   id: number;   /**    * The target URL passed into the `Router#navigateByUrl()` call before navigation. This is    * the value before the router has parsed or applied redirects to it.    */   initialUrl: UrlTree;   /**    * The initial target URL after being parsed with `UrlHandlingStrategy.extract()`.    */   extractedUrl: UrlTree;   /**    * The extracted URL after redirects have been applied.    * This URL may not be available immediately, therefore this property can be `undefined`.    * It is guaranteed to be set after the `RoutesRecognized` event fires.    */   finalUrl?: UrlTree;   /**    * Identifies how this navigation was triggered.    *    * * 'imperative'--Triggered by `router.navigateByUrl` or `router.navigate`.    * * 'popstate'--Triggered by a popstate event.    * * 'hashchange'--Triggered by a hashchange event.    */   trigger: 'imperative'|'popstate'|'hashchange';   /**    * Options that controlled the strategy used for this navigation.    * See `NavigationExtras`.    */   extras: NavigationExtras;   /**    * The previously successful `Navigation` object. Only one previous navigation    * is available, therefore this previous `Navigation` object has a `null` value    * for its own `previousNavigation`.    */   previousNavigation: Navigation|null; }  export interface NavigationTransition {   id: number;   targetPageId: number;   currentUrlTree: UrlTree;   extractedUrl: UrlTree;   currentRawUrl: UrlTree;   urlAfterRedirects?: UrlTree;   rawUrl: UrlTree;   extras: NavigationExtras;   resolve: any;   reject: any;   promise: Promise<boolean>;   source: NavigationTrigger;   restoredState: RestoredState|null;   currentSnapshot: RouterStateSnapshot;   targetSnapshot: RouterStateSnapshot|null;   currentRouterState: RouterState;   targetRouterState: RouterState|null;   guards: Checks;   guardsResult: boolean|UrlTree|null; }  /**  * The interface from the Router needed by the transitions. Used to avoid a circular dependency on  * Router. This interface should be whittled down with future refactors. For example, we do not need  * to get `UrlSerializer` from the Router. We can instead inject it in `NavigationTransitions`  * directly.  */ interface InternalRouterInterface {   browserUrlTree: UrlTree;   currentUrlTree: UrlTree;   rawUrlTree: UrlTree;   readonly routerState: RouterState;   errorHandler: ErrorHandler;   titleStrategy?: TitleStrategy;   navigated: boolean;   urlHandlingStrategy: UrlHandlingStrategy;   routeReuseStrategy: RouteReuseStrategy;   onSameUrlNavigation: 'reload'|'ignore';   paramsInheritanceStrategy: 'emptyOnly'|'always';   urlUpdateStrategy: 'deferred'|'eager';   serializeUrl(url: UrlTree): string;   config: Routes;   setBrowserUrl(url: UrlTree, t: NavigationTransition): void;   restoreHistory(t: NavigationTransition, restoringFromCaughtError?: boolean): void;   scheduleNavigation(       rawUrl: UrlTree, source: NavigationTrigger, restoredState: RestoredState|null,       extras: NavigationExtras,       priorPromise?: {resolve: any, reject: any, promise: Promise<boolean>}): Promise<boolean>; }  @Injectable({providedIn: 'root'}) export class NavigationTransitions {   currentNavigation: Navigation|null = null;   lastSuccessfulNavigation: Navigation|null = null;   readonly events = new Subject<Event>();   private readonly configLoader = inject(RouterConfigLoader);   private readonly environmentInjector = inject(EnvironmentInjector);   private readonly urlSerializer = inject(UrlSerializer);   private readonly rootContexts = inject(ChildrenOutletContexts);   navigationId = 0;   get hasRequestedNavigation() {     return this.navigationId !== 0;   }   private transitions?: BehaviorSubject<NavigationTransition>;   /**    * Hook that enables you to pause navigation after the preactivation phase.    * Used by `RouterModule`.    *    * @internal    */   afterPreactivation: () => Observable<void> = () => of(void 0);   /** @internal */   rootComponentType: Type<any>|null = null;    constructor() {     const onLoadStart = (r: Route) => this.events.next(new RouteConfigLoadStart(r));     const onLoadEnd = (r: Route) => this.events.next(new RouteConfigLoadEnd(r));     this.configLoader.onLoadEndListener = onLoadEnd;     this.configLoader.onLoadStartListener = onLoadStart;   }    complete() {     this.transitions?.complete();   }    handleNavigationRequest(       request: Pick<           NavigationTransition,           'targetPageId'|'source'|'restoredState'|'currentUrlTree'|'currentRawUrl'|'rawUrl'|           'extras'|'resolve'|'reject'|'promise'|'currentSnapshot'|'currentRouterState'>) {     const id = ++this.navigationId;     this.transitions?.next({...this.transitions.value, ...request, id});   }    setupNavigations(router: InternalRouterInterface): Observable<NavigationTransition> {     this.transitions = new BehaviorSubject<NavigationTransition>({       id: 0,       targetPageId: 0,       currentUrlTree: router.currentUrlTree,       currentRawUrl: router.currentUrlTree,       extractedUrl: router.urlHandlingStrategy.extract(router.currentUrlTree),       urlAfterRedirects: router.urlHandlingStrategy.extract(router.currentUrlTree),       rawUrl: router.currentUrlTree,       extras: {},       resolve: null,       reject: null,       promise: Promise.resolve(true),       source: IMPERATIVE_NAVIGATION,       restoredState: null,       currentSnapshot: router.routerState.snapshot,       targetSnapshot: null,       currentRouterState: router.routerState,       targetRouterState: null,       guards: {canActivateChecks: [], canDeactivateChecks: []},       guardsResult: null,     });     return this.transitions.pipe(                filter(t => t.id !== 0),                 // Extract URL                map(t =>                        ({...t, extractedUrl: router.urlHandlingStrategy.extract(t.rawUrl)} as                         NavigationTransition)),                 // Using switchMap so we cancel executing navigations when a new one comes in                switchMap(overallTransitionState => {                  let completed = false;                  let errored = false;                  return of(overallTransitionState)                      .pipe(                          // Store the Navigation object                          tap(t => {                            this.currentNavigation = {                              id: t.id,                              initialUrl: t.rawUrl,                              extractedUrl: t.extractedUrl,                              trigger: t.source,                              extras: t.extras,                              previousNavigation: !this.lastSuccessfulNavigation ? null : {                                ...this.lastSuccessfulNavigation,                                previousNavigation: null,                              },                            };                          }),                          switchMap(t => {                            const browserUrlTree = router.browserUrlTree.toString();                            const urlTransition = !router.navigated ||                                t.extractedUrl.toString() !== browserUrlTree ||                                // Navigations which succeed or ones which fail and are cleaned up                                // correctly should result in `browserUrlTree` and `currentUrlTree`                                // matching. If this is not the case, assume something went wrong and                                // try processing the URL again.                                browserUrlTree !== router.currentUrlTree.toString();                              const onSameUrlNavigation =                                t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;                            if (!urlTransition && onSameUrlNavigation !== 'reload') {                              const reason = NG_DEV_MODE ?                                  `Navigation to ${                                      t.rawUrl} was ignored because it is the same as the current Router URL.` :                                  '';                              this.events.next(new NavigationSkipped(                                  t.id, router.serializeUrl(overallTransitionState.rawUrl), reason,                                  NavigationSkippedCode.IgnoredSameUrlNavigation));                              router.rawUrlTree = t.rawUrl;                              t.resolve(null);                              return EMPTY;                            }                             if (router.urlHandlingStrategy.shouldProcessUrl(t.rawUrl)) {                              // If the source of the navigation is from a browser event, the URL is                              // already updated. We already need to sync the internal state.                              if (isBrowserTriggeredNavigation(t.source)) {                                router.browserUrlTree = t.extractedUrl;                              }                              return of(t).pipe(                                  // Fire NavigationStart event                                  switchMap(t => {                                    const transition = this.transitions?.getValue();                                    this.events.next(new NavigationStart(                                        t.id, this.urlSerializer.serialize(t.extractedUrl), t.source,                                        t.restoredState));                                    if (transition !== this.transitions?.getValue()) {                                      return EMPTY;                                    }                                     // This delay is required to match old behavior that forced                                    // navigation to always be async                                    return Promise.resolve(t);                                  }),                                   // ApplyRedirects                                  applyRedirects(                                      this.environmentInjector, this.configLoader,                                      this.urlSerializer, router.config),                                   // Update the currentNavigation                                  // `urlAfterRedirects` is guaranteed to be set after this point                                  tap(t => {                                    this.currentNavigation = {                                      ...this.currentNavigation!,                                      finalUrl: t.urlAfterRedirects                                    };                                    overallTransitionState.urlAfterRedirects = t.urlAfterRedirects;                                  }),                                   // Recognize                                  recognize(                                      this.environmentInjector, this.rootComponentType,                                      router.config, this.urlSerializer,                                      router.paramsInheritanceStrategy),                                   // Update URL if in `eager` update mode                                  tap(t => {                                    overallTransitionState.targetSnapshot = t.targetSnapshot;                                    if (router.urlUpdateStrategy === 'eager') {                                      if (!t.extras.skipLocationChange) {                                        const rawUrl = router.urlHandlingStrategy.merge(                                            t.urlAfterRedirects!, t.rawUrl);                                        router.setBrowserUrl(rawUrl, t);                                      }                                      router.browserUrlTree = t.urlAfterRedirects!;                                    }                                     // Fire RoutesRecognized                                    const routesRecognized = new RoutesRecognized(                                        t.id, this.urlSerializer.serialize(t.extractedUrl),                                        this.urlSerializer.serialize(t.urlAfterRedirects!),                                        t.targetSnapshot!);                                    this.events.next(routesRecognized);                                  }));                            } else if (                                urlTransition &&                                router.urlHandlingStrategy.shouldProcessUrl(router.rawUrlTree)) {                              /* When the current URL shouldn't be processed, but the previous one                               * was, we handle this \"error condition\" by navigating to the                               * previously successful URL, but leaving the URL intact.*/                              const {id, extractedUrl, source, restoredState, extras} = t;                              const navStart = new NavigationStart(                                  id, this.urlSerializer.serialize(extractedUrl), source,                                  restoredState);                              this.events.next(navStart);                              const targetSnapshot =                                  createEmptyState(extractedUrl, this.rootComponentType).snapshot;                               overallTransitionState = {                                ...t,                                targetSnapshot,                                urlAfterRedirects: extractedUrl,                                extras: {...extras, skipLocationChange: false, replaceUrl: false},                              };                              return of(overallTransitionState);                            } else {                              /* When neither the current or previous URL can be processed, do                               * nothing other than update router's internal reference to the                               * current \"settled\" URL. This way the next navigation will be coming                               * from the current URL in the browser.                               */                              const reason = NG_DEV_MODE ?                                  `Navigation was ignored because the UrlHandlingStrategy` +                                      ` indicated neither the current URL ${                                          router.rawUrlTree} nor target URL ${                                          t.rawUrl} should be processed.` :                                  '';                              this.events.next(new NavigationSkipped(                                  t.id, router.serializeUrl(overallTransitionState.extractedUrl),                                  reason, NavigationSkippedCode.IgnoredByUrlHandlingStrategy));                              router.rawUrlTree = t.rawUrl;                              t.resolve(null);                              return EMPTY;                            }                          }),                           // --- GUARDS ---                          tap(t => {                            const guardsStart = new GuardsCheckStart(                                t.id, this.urlSerializer.serialize(t.extractedUrl),                                this.urlSerializer.serialize(t.urlAfterRedirects!),                                t.targetSnapshot!);                            this.events.next(guardsStart);                          }),                           map(t => {                            overallTransitionState = {                              ...t,                              guards: getAllRouteGuards(                                  t.targetSnapshot!, t.currentSnapshot, this.rootContexts)                            };                            return overallTransitionState;                          }),                           checkGuards(                              this.environmentInjector, (evt: Event) => this.events.next(evt)),                          tap(t => {                            overallTransitionState.guardsResult = t.guardsResult;                            if (isUrlTree(t.guardsResult)) {                              throw redirectingNavigationError(this.urlSerializer, t.guardsResult);                            }                             const guardsEnd = new GuardsCheckEnd(                                t.id, this.urlSerializer.serialize(t.extractedUrl),                                this.urlSerializer.serialize(t.urlAfterRedirects!),                                t.targetSnapshot!, !!t.guardsResult);                            this.events.next(guardsEnd);                          }),                           filter(t => {                            if (!t.guardsResult) {                              router.restoreHistory(t);                              this.cancelNavigationTransition(                                  t, '', NavigationCancellationCode.GuardRejected);                              return false;                            }                            return true;                          }),                           // --- RESOLVE ---                          switchTap(t => {                            if (t.guards.canActivateChecks.length) {                              return of(t).pipe(                                  tap(t => {                                    const resolveStart = new ResolveStart(                                        t.id, this.urlSerializer.serialize(t.extractedUrl),                                        this.urlSerializer.serialize(t.urlAfterRedirects!),                                        t.targetSnapshot!);                                    this.events.next(resolveStart);                                  }),                                  switchMap(t => {                                    let dataResolved = false;                                    return of(t).pipe(                                        resolveData(                                            router.paramsInheritanceStrategy,                                            this.environmentInjector),                                        tap({                                          next: () => dataResolved = true,                                          complete: () => {                                            if (!dataResolved) {                                              router.restoreHistory(t);                                              this.cancelNavigationTransition(                                                  t,                                                  NG_DEV_MODE ?                                                      `At least one route resolver didn't emit any value.` :                                                      '',                                                  NavigationCancellationCode.NoDataFromResolver);                                            }                                          }                                        }),                                    );                                  }),                                  tap(t => {                                    const resolveEnd = new ResolveEnd(                                        t.id, this.urlSerializer.serialize(t.extractedUrl),                                        this.urlSerializer.serialize(t.urlAfterRedirects!),                                        t.targetSnapshot!);                                    this.events.next(resolveEnd);                                  }));                            }                            return undefined;                          }),                           // --- LOAD COMPONENTS ---                          switchTap((t: NavigationTransition) => {                            const loadComponents =                                (route: ActivatedRouteSnapshot): Array<Observable<void>> => {                                  const loaders: Array<Observable<void>> = [];                                  if (route.routeConfig?.loadComponent &&                                      !route.routeConfig._loadedComponent) {                                    loaders.push(this.configLoader.loadComponent(route.routeConfig)                                                     .pipe(                                                         tap(loadedComponent => {                                                           route.component = loadedComponent;                                                         }),                                                         map(() => void 0),                                                         ));                                  }                                  for (const child of route.children) {                                    loaders.push(...loadComponents(child));                                  }                                  return loaders;                                };                            return combineLatest(loadComponents(t.targetSnapshot!.root))                                .pipe(defaultIfEmpty(), take(1));                          }),                           switchTap(() => this.afterPreactivation()),                           map((t: NavigationTransition) => {                            const targetRouterState = createRouterState(                                router.routeReuseStrategy, t.targetSnapshot!, t.currentRouterState);                            overallTransitionState = {...t, targetRouterState};                            return (overallTransitionState);                          }),                           /* Once here, we are about to activate synchronously. The assumption is                             this will succeed, and user code may read from the Router service.                             Therefore before activation, we need to update router properties storing                             the current URL and the RouterState, as well as updated the browser URL.                             All this should happen *before* activating. */                          tap((t: NavigationTransition) => {                            router.currentUrlTree = t.urlAfterRedirects!;                            router.rawUrlTree =                                router.urlHandlingStrategy.merge(t.urlAfterRedirects!, t.rawUrl);                             (router as {routerState: RouterState}).routerState =                                t.targetRouterState!;                             if (router.urlUpdateStrategy === 'deferred') {                              if (!t.extras.skipLocationChange) {                                router.setBrowserUrl(router.rawUrlTree, t);                              }                              router.browserUrlTree = t.urlAfterRedirects!;                            }                          }),                           activateRoutes(                              this.rootContexts, router.routeReuseStrategy,                              (evt: Event) => this.events.next(evt)),                           tap({                            next: (t: NavigationTransition) => {                              completed = true;                              this.lastSuccessfulNavigation = this.currentNavigation;                              router.navigated = true;                              this.events.next(new NavigationEnd(                                  t.id, this.urlSerializer.serialize(t.extractedUrl),                                  this.urlSerializer.serialize(router.currentUrlTree)));                              router.titleStrategy?.updateTitle(t.targetRouterState!.snapshot);                              t.resolve(true);                            },                            complete: () => {                              completed = true;                            }                          }),                          finalize(() => {                            /* When the navigation stream finishes either through error or success,                             * we set the `completed` or `errored` flag. However, there are some                             * situations where we could get here without either of those being set.                             * For instance, a redirect during NavigationStart. Therefore, this is a                             * catch-all to make sure the NavigationCancel event is fired when a                             * navigation gets cancelled but not caught by other means. */                            if (!completed && !errored) {                              const cancelationReason = NG_DEV_MODE ?                                  `Navigation ID ${                                      overallTransitionState                                          .id} is not equal to the current navigation id ${                                      this.navigationId}` :                                  '';                              this.cancelNavigationTransition(                                  overallTransitionState, cancelationReason,                                  NavigationCancellationCode.SupersededByNewNavigation);                            }                            // Only clear current navigation if it is still set to the one that                            // finalized.                            if (this.currentNavigation?.id === overallTransitionState.id) {                              this.currentNavigation = null;                            }                          }),                          catchError((e) => {                            errored = true;                            /* This error type is issued during Redirect, and is handled as a                             * cancellation rather than an error. */                            if (isNavigationCancelingError(e)) {                              if (!isRedirectingNavigationCancelingError(e)) {                                // Set property only if we're not redirecting. If we landed on a page                                // and redirect to `/` route, the new navigation is going to see the                                // `/` isn't a change from the default currentUrlTree and won't                                // navigate. This is only applicable with initial navigation, so                                // setting `navigated` only when not redirecting resolves this                                // scenario.                                router.navigated = true;                                router.restoreHistory(overallTransitionState, true);                              }                              const navCancel = new NavigationCancel(                                  overallTransitionState.id,                                  this.urlSerializer.serialize(overallTransitionState.extractedUrl),                                  e.message, e.cancellationCode);                              this.events.next(navCancel);                               // When redirecting, we need to delay resolving the navigation                              // promise and push it to the redirect navigation                              if (!isRedirectingNavigationCancelingError(e)) {                                overallTransitionState.resolve(false);                              } else {                                const mergedTree =                                    router.urlHandlingStrategy.merge(e.url, router.rawUrlTree);                                const extras = {                                  skipLocationChange:                                      overallTransitionState.extras.skipLocationChange,                                  // The URL is already updated at this point if we have 'eager' URL                                  // updates or if the navigation was triggered by the browser (back                                  // button, URL bar, etc). We want to replace that item in history                                  // if the navigation is rejected.                                  replaceUrl: router.urlUpdateStrategy === 'eager' ||                                      isBrowserTriggeredNavigation(overallTransitionState.source)                                };                                 router.scheduleNavigation(                                    mergedTree, IMPERATIVE_NAVIGATION, null, extras, {                                      resolve: overallTransitionState.resolve,                                      reject: overallTransitionState.reject,                                      promise: overallTransitionState.promise                                    });                              }                               /* All other errors should reset to the router's internal URL reference                               * to the pre-error state. */                            } else {                              router.restoreHistory(overallTransitionState, true);                              const navError = new NavigationError(                                  overallTransitionState.id,                                  this.urlSerializer.serialize(overallTransitionState.extractedUrl),                                  e, overallTransitionState.targetSnapshot ?? undefined);                              this.events.next(navError);                              try {                                overallTransitionState.resolve(router.errorHandler(e));                              } catch (ee) {                                overallTransitionState.reject(ee);                              }                            }                            return EMPTY;                          }));                  // casting because `pipe` returns observable({}) when called with 8+ arguments                })) as Observable<NavigationTransition>;   }    private cancelNavigationTransition(       t: NavigationTransition, reason: string, code: NavigationCancellationCode) {     const navCancel =         new NavigationCancel(t.id, this.urlSerializer.serialize(t.extractedUrl), reason, code);     this.events.next(navCancel);     t.resolve(false);   } }  export function isBrowserTriggeredNavigation(source: NavigationTrigger) {   return source !== IMPERATIVE_NAVIGATION; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable} from '@angular/core'; import {Title} from '@angular/platform-browser';  import {ActivatedRouteSnapshot, RouterStateSnapshot} from './router_state'; import {PRIMARY_OUTLET, RouteTitleKey} from './shared';  /**  * Provides a strategy for setting the page title after a router navigation.  *  * The built-in implementation traverses the router state snapshot and finds the deepest primary  * outlet with `title` property. Given the `Routes` below, navigating to  * `/base/child(popup:aux)` would result in the document title being set to \"child\".  * ```  * [  *   {path: 'base', title: 'base', children: [  *     {path: 'child', title: 'child'},  *   ],  *   {path: 'aux', outlet: 'popup', title: 'popupTitle'}  * ]  * ```  *  * This class can be used as a base class for custom title strategies. That is, you can create your  * own class that extends the `TitleStrategy`. Note that in the above example, the `title`  * from the named outlet is never used. However, a custom strategy might be implemented to  * incorporate titles in named outlets.  *  * @publicApi  * @see [Page title guide](guide/router#setting-the-page-title)  */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy)}) export abstract class TitleStrategy {   /** Performs the application title update. */   abstract updateTitle(snapshot: RouterStateSnapshot): void;    /**    * @returns The `title` of the deepest primary route.    */   buildTitle(snapshot: RouterStateSnapshot): string|undefined {     let pageTitle: string|undefined;     let route: ActivatedRouteSnapshot|undefined = snapshot.root;     while (route !== undefined) {       pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;       route = route.children.find(child => child.outlet === PRIMARY_OUTLET);     }     return pageTitle;   }    /**    * Given an `ActivatedRouteSnapshot`, returns the final value of the    * `Route.title` property, which can either be a static string or a resolved value.    */   getResolvedTitleForRoute(snapshot: ActivatedRouteSnapshot) {     return snapshot.data[RouteTitleKey];   } }  /**  * The default `TitleStrategy` used by the router that updates the title using the `Title` service.  */ @Injectable({providedIn: 'root'}) export class DefaultTitleStrategy extends TitleStrategy {   constructor(readonly title: Title) {     super();   }    /**    * Sets the title of the browser to the given value.    *    * @param title The `pageTitle` from the deepest primary route.    */   override updateTitle(snapshot: RouterStateSnapshot): void {     const title = this.buildTitle(snapshot);     if (title !== undefined) {       this.title.setTitle(title);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ComponentRef, inject, Injectable} from '@angular/core';  import {OutletContext} from './router_outlet_context'; import {ActivatedRoute, ActivatedRouteSnapshot} from './router_state'; import {TreeNode} from './utils/tree';  /**  * @description  *  * Represents the detached route tree.  *  * This is an opaque value the router will give to a custom route reuse strategy  * to store and retrieve later on.  *  * @publicApi  */ export type DetachedRouteHandle = {};  /** @internal */ export type DetachedRouteHandleInternal = {   contexts: Map<string, OutletContext>,   componentRef: ComponentRef<any>,   route: TreeNode<ActivatedRoute>, };  /**  * @description  *  * Provides a way to customize when activated routes get reused.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy)}) export abstract class RouteReuseStrategy {   /** Determines if this route (and its subtree) should be detached to be reused later */   abstract shouldDetach(route: ActivatedRouteSnapshot): boolean;    /**    * Stores the detached route.    *    * Storing a `null` value should erase the previously stored value.    */   abstract store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle|null): void;    /** Determines if this route (and its subtree) should be reattached */   abstract shouldAttach(route: ActivatedRouteSnapshot): boolean;    /** Retrieves the previously stored route */   abstract retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle|null;    /** Determines if a route should be reused */   abstract shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean; }  /**  * @description  *  * This base route reuse strategy only reuses routes when the matched router configs are  * identical. This prevents components from being destroyed and recreated  * when just the route parameters, query parameters or fragment change  * (that is, the existing component is _reused_).  *  * This strategy does not store any routes for later reuse.  *  * Angular uses this strategy by default.  *  *  * It can be used as a base class for custom route reuse strategies, i.e. you can create your own  * class that extends the `BaseRouteReuseStrategy` one.  * @publicApi  */ export abstract class BaseRouteReuseStrategy implements RouteReuseStrategy {   /**    * Whether the given route should detach for later reuse.    * Always returns false for `BaseRouteReuseStrategy`.    * */   shouldDetach(route: ActivatedRouteSnapshot): boolean {     return false;   }    /**    * A no-op; the route is never stored since this strategy never detaches routes for later re-use.    */   store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle): void {}    /** Returns `false`, meaning the route (and its subtree) is never reattached */   shouldAttach(route: ActivatedRouteSnapshot): boolean {     return false;   }    /** Returns `null` because this strategy does not store routes for later re-use. */   retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle|null {     return null;   }    /**    * Determines if a route should be reused.    * This strategy returns `true` when the future route config and current route config are    * identical.    */   shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean {     return future.routeConfig === curr.routeConfig;   } }  @Injectable({providedIn: 'root'}) export class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy { } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken} from '@angular/core';  import {OnSameUrlNavigation} from './models'; import {UrlSerializer, UrlTree} from './url_tree';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * Error handler that is invoked when a navigation error occurs.  *  * If the handler returns a value, the navigation Promise is resolved with this value.  * If the handler throws an exception, the navigation Promise is rejected with  * the exception.  *  * @publicApi  * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.  */ export type ErrorHandler = (error: any) => any;  /**  * Allowed values in an `ExtraOptions` object that configure  * when the router performs the initial navigation operation.  *  * * 'enabledNonBlocking' - (default) The initial navigation starts after the  * root component has been created. The bootstrap is not blocked on the completion of the initial  * navigation.  * * 'enabledBlocking' - The initial navigation starts before the root component is created.  * The bootstrap is blocked until the initial navigation is complete. This value is required  * for [server-side rendering](guide/universal) to work.  * * 'disabled' - The initial navigation is not performed. The location listener is set up before  * the root component gets created. Use if there is a reason to have  * more control over when the router starts its initial navigation due to some complex  * initialization logic.  *  * @see `forRoot()`  *  * @publicApi  */ export type InitialNavigation = 'disabled'|'enabledBlocking'|'enabledNonBlocking';  /**  * Extra configuration options that can be used with the `withRouterConfig` function.  *  * @publicApi  */ export interface RouterConfigOptions {   /**    * Configures how the Router attempts to restore state when a navigation is cancelled.    *    * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the    * router before the navigation started. This means that if the URL of the browser is updated    * _before_ the navigation is canceled, the Router will simply replace the item in history rather    * than trying to restore to the previous location in the session history. This happens most    * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward    * buttons.    *    * 'computed' - Will attempt to return to the same index in the session history that corresponds    * to the Angular route when the navigation gets cancelled. For example, if the browser back    * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation    * and vice versa.    *    * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only    * handles a portion of the URL because the history restoration navigates to the previous place in    * the browser history rather than simply resetting a portion of the URL.    *    * The default value is `replace` when not set.    */   canceledNavigationResolution?: 'replace'|'computed';    /**    * Configures the default for handling a navigation request to the current URL.    *    * If unset, the `Router` will use `'ignore'`.    *    * @see `OnSameUrlNavigation`    */   onSameUrlNavigation?: OnSameUrlNavigation;    /**    * Defines how the router merges parameters, data, and resolved data from parent to child    * routes. By default ('emptyOnly'), inherits parent parameters only for    * path-less or component-less routes.    *    * Set to 'always' to enable unconditional inheritance of parent parameters.    *    * Note that when dealing with matrix parameters, \"parent\" refers to the parent `Route`    * config which does not necessarily mean the \"URL segment to the left\". When the `Route` `path`    * contains multiple segments, the matrix parameters must appear on the last segment. For example,    * matrix parameters for `{path: 'a/b', component: MyComp}` should appear as `a/b;foo=bar` and not    * `a;foo=bar/b`.    *    */   paramsInheritanceStrategy?: 'emptyOnly'|'always';    /**    * Defines when the router updates the browser URL. By default ('deferred'),    * update after successful navigation.    * Set to 'eager' if prefer to update the URL at the beginning of navigation.    * Updating the URL early allows you to handle a failure of navigation by    * showing an error message with the URL that failed.    */   urlUpdateStrategy?: 'deferred'|'eager'; }  /**  * Configuration options for the scrolling feature which can be used with `withInMemoryScrolling`  * function.  *  * @publicApi  */ export interface InMemoryScrollingOptions {   /**    * When set to 'enabled', scrolls to the anchor element when the URL has a fragment.    * Anchor scrolling is disabled by default.    *    * Anchor scrolling does not happen on 'popstate'. Instead, we restore the position    * that we stored or scroll to the top.    */   anchorScrolling?: 'disabled'|'enabled';    /**    * Configures if the scroll position needs to be restored when navigating back.    *    * * 'disabled'- (Default) Does nothing. Scroll position is maintained on navigation.    * * 'top'- Sets the scroll position to x = 0, y = 0 on all navigation.    * * 'enabled'- Restores the previous scroll position on backward navigation, else sets the    * position to the anchor if one is provided, or sets the scroll position to [0, 0] (forward    * navigation). This option will be the default in the future.    *    * You can implement custom scroll restoration behavior by adapting the enabled behavior as    * in the following example.    *    * ```typescript    * class AppComponent {    *   movieData: any;    *    *   constructor(private router: Router, private viewportScroller: ViewportScroller,    * changeDetectorRef: ChangeDetectorRef) {    *   router.events.pipe(filter((event: Event): event is Scroll => event instanceof Scroll)    *     ).subscribe(e => {    *       fetch('http://example.com/movies.json').then(response => {    *         this.movieData = response.json();    *         // update the template with the data before restoring scroll    *         changeDetectorRef.detectChanges();    *    *         if (e.position) {    *           viewportScroller.scrollToPosition(e.position);    *         }    *       });    *     });    *   }    * }    * ```    */   scrollPositionRestoration?: 'disabled'|'enabled'|'top'; }  /**  * A set of configuration options for a router module, provided in the  * `forRoot()` method.  *  * @see `forRoot()`  *  *  * @publicApi  */ export interface ExtraOptions extends InMemoryScrollingOptions, RouterConfigOptions {   /**    * When true, log all internal navigation events to the console.    * Use for debugging.    */   enableTracing?: boolean;    /**    * When true, enable the location strategy that uses the URL fragment    * instead of the history API.    */   useHash?: boolean;    /**    * One of `enabled`, `enabledBlocking`, `enabledNonBlocking` or `disabled`.    * When set to `enabled` or `enabledBlocking`, the initial navigation starts before the root    * component is created. The bootstrap is blocked until the initial navigation is complete. This    * value is required for [server-side rendering](guide/universal) to work. When set to    * `enabledNonBlocking`, the initial navigation starts after the root component has been created.    * The bootstrap is not blocked on the completion of the initial navigation. When set to    * `disabled`, the initial navigation is not performed. The location listener is set up before the    * root component gets created. Use if there is a reason to have more control over when the router    * starts its initial navigation due to some complex initialization logic.    */   initialNavigation?: InitialNavigation;    /**    * A custom error handler for failed navigations.    * If the handler returns a value, the navigation Promise is resolved with this value.    * If the handler throws an exception, the navigation Promise is rejected with the exception.    *    * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.    */   errorHandler?: (error: any) => any;    /**    * Configures a preloading strategy.    * One of `PreloadAllModules` or `NoPreloading` (the default).    */   preloadingStrategy?: any;    /**    * Configures the scroll offset the router will use when scrolling to an element.    *    * When given a tuple with x and y position value,    * the router uses that offset each time it scrolls.    * When given a function, the router invokes the function every time    * it restores scroll position.    */   scrollOffset?: [number, number]|(() => [number, number]);    /**    * A custom handler for malformed URI errors. The handler is invoked when `encodedURI` contains    * invalid character sequences.    * The default implementation is to redirect to the root URL, dropping    * any path or parameter information. The function takes three parameters:    *    * - `'URIError'` - Error thrown when parsing a bad URL.    * - `'UrlSerializer'` - UrlSerializer that’s configured with the router.    * - `'url'` -  The malformed URL that caused the URIError    *    * @deprecated URI parsing errors should be handled in the `UrlSerializer` instead.    * */   malformedUriErrorHandler?:       (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree; }  /**  * A [DI token](guide/glossary/#di-token) for the router service.  *  * @publicApi  */ export const ROUTER_CONFIGURATION =     new InjectionToken<ExtraOptions>(NG_DEV_MODE ? 'router config' : '', {       providedIn: 'root',       factory: () => ({}),     }); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable} from '@angular/core';  import {UrlTree} from './url_tree';  /**  * @description  *  * Provides a way to migrate AngularJS applications to Angular.  *  * @publicApi  */ @Injectable({providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy)}) export abstract class UrlHandlingStrategy {   /**    * Tells the router if this URL should be processed.    *    * When it returns true, the router will execute the regular navigation.    * When it returns false, the router will set the router state to an empty state.    * As a result, all the active components will be destroyed.    *    */   abstract shouldProcessUrl(url: UrlTree): boolean;    /**    * Extracts the part of the URL that should be handled by the router.    * The rest of the URL will remain untouched.    */   abstract extract(url: UrlTree): UrlTree;    /**    * Merges the URL fragment with the rest of the URL.    */   abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree; }  /**  * @publicApi  */ @Injectable({providedIn: 'root'}) export class DefaultUrlHandlingStrategy implements UrlHandlingStrategy {   shouldProcessUrl(url: UrlTree): boolean {     return true;   }   extract(url: UrlTree): UrlTree {     return url;   }   merge(newUrlPart: UrlTree, wholeUrl: UrlTree): UrlTree {     return newUrlPart;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Location} from '@angular/common'; import {inject, Injectable, NgZone, Type, ɵConsole as Console, ɵRuntimeError as RuntimeError} from '@angular/core'; import {Observable, of, SubscriptionLike} from 'rxjs';  import {CreateUrlTreeStrategy} from './create_url_tree_strategy'; import {RuntimeErrorCode} from './errors'; import {Event, IMPERATIVE_NAVIGATION, NavigationTrigger} from './events'; import {NavigationBehaviorOptions, OnSameUrlNavigation, Routes} from './models'; import {Navigation, NavigationExtras, NavigationTransition, NavigationTransitions, RestoredState, UrlCreationOptions} from './navigation_transition'; import {TitleStrategy} from './page_title_strategy'; import {RouteReuseStrategy} from './route_reuse_strategy'; import {ROUTER_CONFIGURATION} from './router_config'; import {ROUTES} from './router_config_loader'; import {createEmptyState, RouterState} from './router_state'; import {Params} from './shared'; import {UrlHandlingStrategy} from './url_handling_strategy'; import {containsTree, IsActiveMatchOptions, isUrlTree, UrlSerializer, UrlTree} from './url_tree'; import {flatten} from './utils/collection'; import {standardizeConfig, validateConfig} from './utils/config';   const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  function defaultErrorHandler(error: any): any {   throw error; }  function defaultMalformedUriErrorHandler(     error: URIError, urlSerializer: UrlSerializer, url: string): UrlTree {   return urlSerializer.parse('/'); }  /**  * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `true`  * (exact = true).  */ export const exactMatchOptions: IsActiveMatchOptions = {   paths: 'exact',   fragment: 'ignored',   matrixParams: 'ignored',   queryParams: 'exact' };  /**  * The equivalent `IsActiveMatchOptions` options for `Router.isActive` is called with `false`  * (exact = false).  */ export const subsetMatchOptions: IsActiveMatchOptions = {   paths: 'subset',   fragment: 'ignored',   matrixParams: 'ignored',   queryParams: 'subset' };  /**  * @description  *  * A service that provides navigation among views and URL manipulation capabilities.  *  * @see `Route`.  * @see [Routing and Navigation Guide](guide/router).  *  * @ngModule RouterModule  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class Router {   /**    * Represents the activated `UrlTree` that the `Router` is configured to handle (through    * `UrlHandlingStrategy`). That is, after we find the route config tree that we're going to    * activate, run guards, and are just about to activate the route, we set the currentUrlTree.    *    * This should match the `browserUrlTree` when a navigation succeeds. If the    * `UrlHandlingStrategy.shouldProcessUrl` is `false`, only the `browserUrlTree` is updated.    * @internal    */   currentUrlTree: UrlTree;   /**    * Meant to represent the entire browser url after a successful navigation. In the life of a    * navigation transition:    * 1. The rawUrl represents the full URL that's being navigated to    * 2. We apply redirects, which might only apply to _part_ of the URL (due to    * `UrlHandlingStrategy`).    * 3. Right before activation (because we assume activation will succeed), we update the    * rawUrlTree to be a combination of the urlAfterRedirects (again, this might only apply to part    * of the initial url) and the rawUrl of the transition (which was the original navigation url in    * its full form).    * @internal    *    * Note that this is _only_ here to support `UrlHandlingStrategy.extract` and    * `UrlHandlingStrategy.shouldProcessUrl`. If those didn't exist, we could get by with    * `currentUrlTree` alone. If a new Router were to be provided (i.e. one that works with the    * browser navigation API), we should think about whether this complexity should be carried over.    *    * - extract: `rawUrlTree` is needed because `extract` may only return part    * of the navigation URL. Thus, `currentUrlTree` may only represent _part_ of the browser URL.    * When a navigation gets cancelled and we need to reset the URL or a new navigation occurs, we    * need to know the _whole_ browser URL, not just the part handled by UrlHandlingStrategy.    * - shouldProcessUrl: When this returns `false`, the router just ignores the navigation but still    * updates the `rawUrlTree` with the assumption that the navigation was caused by the location    * change listener due to a URL update by the AngularJS router. In this case, we still need to    * know what the browser's URL is for future navigations.    *    */   rawUrlTree: UrlTree;   /**    * Meant to represent the part of the browser url that the `Router` is set up to handle (via the    * `UrlHandlingStrategy`). This value is updated immediately after the browser url is updated (or    * the browser url update is skipped via `skipLocationChange`). With that, note that    * `browserUrlTree` _may not_ reflect the actual browser URL for two reasons:    *    * 1. `UrlHandlingStrategy` only handles part of the URL    * 2. `skipLocationChange` does not update the browser url.    *    * So to reiterate, `browserUrlTree` only represents the Router's internal understanding of the    * current route, either before guards with `urlUpdateStrategy === 'eager'` or right before    * activation with `'deferred'`.    *    * This should match the `currentUrlTree` when the navigation succeeds.    * @internal    */   browserUrlTree: UrlTree;   private disposed = false;    private locationSubscription?: SubscriptionLike;   // TODO(b/260747083): This should not exist and navigationId should be private in   // `NavigationTransitions`   private get navigationId() {     return this.navigationTransitions.navigationId;   }    /**    * The id of the currently active page in the router.    * Updated to the transition's target id on a successful navigation.    *    * This is used to track what page the router last activated. When an attempted navigation fails,    * the router can then use this to compute how to restore the state back to the previously active    * page.    */   private currentPageId: number = 0;   /**    * The ɵrouterPageId of whatever page is currently active in the browser history. This is    * important for computing the target page id for new navigations because we need to ensure each    * page id in the browser history is 1 more than the previous entry.    */   private get browserPageId(): number|undefined {     return (this.location.getState() as RestoredState | null)?.ɵrouterPageId;   }   private console = inject(Console);   private isNgZoneEnabled: boolean = false;    /**    * An event stream for routing events.    */   public get events(): Observable<Event> {     // TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal     // cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't     // allowed/supported but we still have to fix these or file bugs against the teams before making     // the change.     return this.navigationTransitions.events;   }   /**    * The current state of routing in this NgModule.    */   public readonly routerState: RouterState;    private options = inject(ROUTER_CONFIGURATION, {optional: true}) || {};    /**    * A handler for navigation errors in this NgModule.    *    * @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.    *   `provideRouter` has the `withNavigationErrorHandler` feature to make this easier.    * @see `withNavigationErrorHandler`    */   errorHandler = this.options.errorHandler || defaultErrorHandler;    /**    * A handler for errors thrown by `Router.parseUrl(url)`    * when `url` contains an invalid character.    * The most common case is a `%` sign    * that's not encoded and is not part of a percent encoded sequence.    *    * @deprecated URI parsing errors should be handled in the `UrlSerializer`.    *    * @see `RouterModule`    */   malformedUriErrorHandler =       this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;    /**    * True if at least one navigation event has occurred,    * false otherwise.    */   navigated: boolean = false;   private lastSuccessfulId: number = -1;    /**    * A strategy for extracting and merging URLs.    * Used for AngularJS to Angular migrations.    *    * @deprecated Configure using `providers` instead:    *   `{provide: UrlHandlingStrategy, useClass: MyStrategy}`.    */   urlHandlingStrategy = inject(UrlHandlingStrategy);    /**    * A strategy for re-using routes.    *    * @deprecated Configure using `providers` instead:    *   `{provide: RouteReuseStrategy, useClass: MyStrategy}`.    */   routeReuseStrategy = inject(RouteReuseStrategy);    /** Strategy used to create a UrlTree. */   private readonly urlCreationStrategy = inject(CreateUrlTreeStrategy);    /**    * A strategy for setting the title based on the `routerState`.    *    * @deprecated Configure using `providers` instead:    *   `{provide: TitleStrategy, useClass: MyStrategy}`.    */   titleStrategy?: TitleStrategy = inject(TitleStrategy);    /**    * How to handle a navigation request to the current URL.    *    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   onSameUrlNavigation: OnSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';    /**    * How to merge parameters, data, resolved data, and title from parent to child    * routes. One of:    *    * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data    * for path-less or component-less routes.    * - `'always'` : Inherit parent parameters, data, and resolved data    * for all child routes.    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   paramsInheritanceStrategy: 'emptyOnly'|'always' =       this.options.paramsInheritanceStrategy || 'emptyOnly';    /**    * Determines when the router updates the browser URL.    * By default (`\"deferred\"`), updates the browser URL after navigation has finished.    * Set to `'eager'` to update the browser URL at the beginning of navigation.    * You can choose to update early so that, if navigation fails,    * you can show an error message with the URL that failed.    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   urlUpdateStrategy: 'deferred'|'eager' = this.options.urlUpdateStrategy || 'deferred';    /**    * Configures how the Router attempts to restore state when a navigation is cancelled.    *    * 'replace' - Always uses `location.replaceState` to set the browser state to the state of the    * router before the navigation started. This means that if the URL of the browser is updated    * _before_ the navigation is canceled, the Router will simply replace the item in history rather    * than trying to restore to the previous location in the session history. This happens most    * frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward    * buttons.    *    * 'computed' - Will attempt to return to the same index in the session history that corresponds    * to the Angular route when the navigation gets cancelled. For example, if the browser back    * button is clicked and the navigation is cancelled, the Router will trigger a forward navigation    * and vice versa.    *    * Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only    * handles a portion of the URL because the history restoration navigates to the previous place in    * the browser history rather than simply resetting a portion of the URL.    *    * The default value is `replace`.    *    * @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.    * @see `withRouterConfig`    * @see `provideRouter`    * @see `RouterModule`    */   canceledNavigationResolution: 'replace'|'computed' =       this.options.canceledNavigationResolution || 'replace';    config: Routes = flatten(inject(ROUTES, {optional: true}) ?? []);    private readonly navigationTransitions = inject(NavigationTransitions);   private readonly urlSerializer = inject(UrlSerializer);   private readonly location = inject(Location);    constructor() {     this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();      this.resetConfig(this.config);     this.currentUrlTree = new UrlTree();     this.rawUrlTree = this.currentUrlTree;     this.browserUrlTree = this.currentUrlTree;      this.routerState = createEmptyState(this.currentUrlTree, null);      this.navigationTransitions.setupNavigations(this).subscribe(         t => {           this.lastSuccessfulId = t.id;           this.currentPageId = t.targetPageId;         },         e => {           this.console.warn(`Unhandled Navigation Error: ${e}`);         });   }    /** @internal */   resetRootComponentType(rootComponentType: Type<any>): void {     // TODO: vsavkin router 4.0 should make the root component set to null     // this will simplify the lifecycle of the router.     this.routerState.root.component = rootComponentType;     this.navigationTransitions.rootComponentType = rootComponentType;   }    /**    * Sets up the location change listener and performs the initial navigation.    */   initialNavigation(): void {     this.setUpLocationChangeListener();     if (!this.navigationTransitions.hasRequestedNavigation) {       const state = this.location.getState() as RestoredState;       this.navigateToSyncWithBrowser(this.location.path(true), IMPERATIVE_NAVIGATION, state);     }   }    /**    * Sets up the location change listener. This listener detects navigations triggered from outside    * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router    * navigation so that the correct events, guards, etc. are triggered.    */   setUpLocationChangeListener(): void {     // Don't need to use Zone.wrap any more, because zone.js     // already patch onPopState, so location change callback will     // run into ngZone     if (!this.locationSubscription) {       this.locationSubscription = this.location.subscribe(event => {         const source = event['type'] === 'popstate' ? 'popstate' : 'hashchange';         if (source === 'popstate') {           // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS           // hybrid apps.           setTimeout(() => {             this.navigateToSyncWithBrowser(event['url']!, source, event.state);           }, 0);         }       });     }   }    /**    * Schedules a router navigation to synchronize Router state with the browser state.    *    * This is done as a response to a popstate event and the initial navigation. These    * two scenarios represent times when the browser URL/state has been updated and    * the Router needs to respond to ensure its internal state matches.    */   private navigateToSyncWithBrowser(       url: string, source: NavigationTrigger, state: RestoredState|undefined) {     const extras: NavigationExtras = {replaceUrl: true};      // TODO: restoredState should always include the entire state, regardless     // of navigationId. This requires a breaking change to update the type on     // NavigationStart’s restoredState, which currently requires navigationId     // to always be present. The Router used to only restore history state if     // a navigationId was present.      // The stored navigationId is used by the RouterScroller to retrieve the scroll     // position for the page.     const restoredState = state?.navigationId ? state : null;      // Separate to NavigationStart.restoredState, we must also restore the state to     // history.state and generate a new navigationId, since it will be overwritten     if (state) {       const stateCopy = {...state} as Partial<RestoredState>;       delete stateCopy.navigationId;       delete stateCopy.ɵrouterPageId;       if (Object.keys(stateCopy).length !== 0) {         extras.state = stateCopy;       }     }      const urlTree = this.parseUrl(url);     this.scheduleNavigation(urlTree, source, restoredState, extras);   }    /** The current URL. */   get url(): string {     return this.serializeUrl(this.currentUrlTree);   }    /**    * Returns the current `Navigation` object when the router is navigating,    * and `null` when idle.    */   getCurrentNavigation(): Navigation|null {     return this.navigationTransitions.currentNavigation;   }    /**    * Resets the route configuration used for navigation and generating links.    *    * @param config The route array for the new configuration.    *    * @usageNotes    *    * ```    * router.resetConfig([    *  { path: 'team/:id', component: TeamCmp, children: [    *    { path: 'simple', component: SimpleCmp },    *    { path: 'user/:name', component: UserCmp }    *  ]}    * ]);    * ```    */   resetConfig(config: Routes): void {     NG_DEV_MODE && validateConfig(config);     this.config = config.map(standardizeConfig);     this.navigated = false;     this.lastSuccessfulId = -1;   }    /** @nodoc */   ngOnDestroy(): void {     this.dispose();   }    /** Disposes of the router. */   dispose(): void {     this.navigationTransitions.complete();     if (this.locationSubscription) {       this.locationSubscription.unsubscribe();       this.locationSubscription = undefined;     }     this.disposed = true;   }    /**    * Appends URL segments to the current URL tree to create a new URL tree.    *    * @param commands An array of URL fragments with which to construct the new URL tree.    * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path    * segments, followed by the parameters for each segment.    * The fragments are applied to the current URL tree or the one provided  in the `relativeTo`    * property of the options object, if supplied.    * @param navigationExtras Options that control the navigation strategy.    * @returns The new URL tree.    *    * @usageNotes    *    * ```    * // create /team/33/user/11    * router.createUrlTree(['/team', 33, 'user', 11]);    *    * // create /team/33;expand=true/user/11    * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);    *    * // you can collapse static segments like this (this works only with the first passed-in value):    * router.createUrlTree(['/team/33/user', userId]);    *    * // If the first segment can contain slashes, and you do not want the router to split it,    * // you can do the following:    * router.createUrlTree([{segmentPath: '/one/two'}]);    *    * // create /team/33/(user/11//right:chat)    * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);    *    * // remove the right secondary node    * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);    *    * // assuming the current url is `/team/33/user/11` and the route points to `user/11`    *    * // navigate to /team/33/user/11/details    * router.createUrlTree(['details'], {relativeTo: route});    *    * // navigate to /team/33/user/22    * router.createUrlTree(['../22'], {relativeTo: route});    *    * // navigate to /team/44/user/22    * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});    *    * Note that a value of `null` or `undefined` for `relativeTo` indicates that the    * tree should be created relative to the root.    * ```    */   createUrlTree(commands: any[], navigationExtras: UrlCreationOptions = {}): UrlTree {     const {relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment} =         navigationExtras;     const f = preserveFragment ? this.currentUrlTree.fragment : fragment;     let q: Params|null = null;     switch (queryParamsHandling) {       case 'merge':         q = {...this.currentUrlTree.queryParams, ...queryParams};         break;       case 'preserve':         q = this.currentUrlTree.queryParams;         break;       default:         q = queryParams || null;     }     if (q !== null) {       q = this.removeEmptyProps(q);     }     return this.urlCreationStrategy.createUrlTree(         relativeTo, this.routerState, this.currentUrlTree, commands, q, f ?? null);   }    /**    * Navigates to a view using an absolute route path.    *    * @param url An absolute path for a defined route. The function does not apply any delta to the    *     current URL.    * @param extras An object containing properties that modify the navigation strategy.    *    * @returns A Promise that resolves to 'true' when navigation succeeds,    * to 'false' when navigation fails, or is rejected on error.    *    * @usageNotes    *    * The following calls request navigation to an absolute path.    *    * ```    * router.navigateByUrl(\"/team/33/user/11\");    *    * // Navigate without updating the URL    * router.navigateByUrl(\"/team/33/user/11\", { skipLocationChange: true });    * ```    *    * @see [Routing and Navigation guide](guide/router)    *    */   navigateByUrl(url: string|UrlTree, extras: NavigationBehaviorOptions = {     skipLocationChange: false   }): Promise<boolean> {     if (NG_DEV_MODE) {       if (this.isNgZoneEnabled && !NgZone.isInAngularZone()) {         this.console.warn(             `Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);       }       if (url instanceof UrlTree && url._warnIfUsedForNavigation) {         this.console.warn(url._warnIfUsedForNavigation);       }     }      const urlTree = isUrlTree(url) ? url : this.parseUrl(url);     const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);      return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);   }    /**    * Navigate based on the provided array of commands and a starting point.    * If no starting route is provided, the navigation is absolute.    *    * @param commands An array of URL fragments with which to construct the target URL.    * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path    * segments, followed by the parameters for each segment.    * The fragments are applied to the current URL or the one provided  in the `relativeTo` property    * of the options object, if supplied.    * @param extras An options object that determines how the URL should be constructed or    *     interpreted.    *    * @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation    *     fails,    * or is rejected on error.    *    * @usageNotes    *    * The following calls request navigation to a dynamic route path relative to the current URL.    *    * ```    * router.navigate(['team', 33, 'user', 11], {relativeTo: route});    *    * // Navigate without updating the URL, overriding the default behavior    * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});    * ```    *    * @see [Routing and Navigation guide](guide/router)    *    */   navigate(commands: any[], extras: NavigationExtras = {skipLocationChange: false}):       Promise<boolean> {     validateCommands(commands);     return this.navigateByUrl(this.createUrlTree(commands, extras), extras);   }    /** Serializes a `UrlTree` into a string */   serializeUrl(url: UrlTree): string {     return this.urlSerializer.serialize(url);   }    /** Parses a string into a `UrlTree` */   parseUrl(url: string): UrlTree {     let urlTree: UrlTree;     try {       urlTree = this.urlSerializer.parse(url);     } catch (e) {       urlTree = this.malformedUriErrorHandler(e as URIError, this.urlSerializer, url);     }     return urlTree;   }    /**    * Returns whether the url is activated.    *    * @deprecated    * Use `IsActiveMatchOptions` instead.    *    * - The equivalent `IsActiveMatchOptions` for `true` is    * `{paths: 'exact', queryParams: 'exact', fragment: 'ignored', matrixParams: 'ignored'}`.    * - The equivalent for `false` is    * `{paths: 'subset', queryParams: 'subset', fragment: 'ignored', matrixParams: 'ignored'}`.    */   isActive(url: string|UrlTree, exact: boolean): boolean;   /**    * Returns whether the url is activated.    */   isActive(url: string|UrlTree, matchOptions: IsActiveMatchOptions): boolean;   /** @internal */   isActive(url: string|UrlTree, matchOptions: boolean|IsActiveMatchOptions): boolean;   isActive(url: string|UrlTree, matchOptions: boolean|IsActiveMatchOptions): boolean {     let options: IsActiveMatchOptions;     if (matchOptions === true) {       options = {...exactMatchOptions};     } else if (matchOptions === false) {       options = {...subsetMatchOptions};     } else {       options = matchOptions;     }     if (isUrlTree(url)) {       return containsTree(this.currentUrlTree, url, options);     }      const urlTree = this.parseUrl(url);     return containsTree(this.currentUrlTree, urlTree, options);   }    private removeEmptyProps(params: Params): Params {     return Object.keys(params).reduce((result: Params, key: string) => {       const value: any = params[key];       if (value !== null && value !== undefined) {         result[key] = value;       }       return result;     }, {});   }    /** @internal */   scheduleNavigation(       rawUrl: UrlTree, source: NavigationTrigger, restoredState: RestoredState|null,       extras: NavigationExtras,       priorPromise?: {resolve: any, reject: any, promise: Promise<boolean>}): Promise<boolean> {     if (this.disposed) {       return Promise.resolve(false);     }      let resolve: any;     let reject: any;     let promise: Promise<boolean>;     if (priorPromise) {       resolve = priorPromise.resolve;       reject = priorPromise.reject;       promise = priorPromise.promise;     } else {       promise = new Promise<boolean>((res, rej) => {         resolve = res;         reject = rej;       });     }      let targetPageId: number;     if (this.canceledNavigationResolution === 'computed') {       // If the `ɵrouterPageId` exist in the state then `targetpageId` should have the value of       // `ɵrouterPageId`. This is the case for something like a page refresh where we assign the       // target id to the previously set value for that page.       if (restoredState && restoredState.ɵrouterPageId) {         targetPageId = restoredState.ɵrouterPageId;       } else {         // If we're replacing the URL or doing a silent navigation, we do not want to increment the         // page id because we aren't pushing a new entry to history.         if (extras.replaceUrl || extras.skipLocationChange) {           targetPageId = this.browserPageId ?? 0;         } else {           targetPageId = (this.browserPageId ?? 0) + 1;         }       }     } else {       // This is unused when `canceledNavigationResolution` is not computed.       targetPageId = 0;     }      this.navigationTransitions.handleNavigationRequest({       targetPageId,       source,       restoredState,       currentUrlTree: this.currentUrlTree,       currentRawUrl: this.currentUrlTree,       rawUrl,       extras,       resolve,       reject,       promise,       currentSnapshot: this.routerState.snapshot,       currentRouterState: this.routerState     });      // Make sure that the error is propagated even though `processNavigations` catch     // handler does not rethrow     return promise.catch((e: any) => {       return Promise.reject(e);     });   }    /** @internal */   setBrowserUrl(url: UrlTree, transition: NavigationTransition) {     const path = this.urlSerializer.serialize(url);     const state = {       ...transition.extras.state,       ...this.generateNgRouterState(transition.id, transition.targetPageId)     };     if (this.location.isCurrentPathEqualTo(path) || !!transition.extras.replaceUrl) {       this.location.replaceState(path, '', state);     } else {       this.location.go(path, '', state);     }   }    /**    * Performs the necessary rollback action to restore the browser URL to the    * state before the transition.    * @internal    */   restoreHistory(transition: NavigationTransition, restoringFromCaughtError = false) {     if (this.canceledNavigationResolution === 'computed') {       const targetPagePosition = this.currentPageId - transition.targetPageId;       // The navigator change the location before triggered the browser event,       // so we need to go back to the current url if the navigation is canceled.       // Also, when navigation gets cancelled while using url update strategy eager, then we need to       // go back. Because, when `urlUpdateStrategy` is `eager`; `setBrowserUrl` method is called       // before any verification.       const browserUrlUpdateOccurred =           (transition.source === 'popstate' || this.urlUpdateStrategy === 'eager' ||            this.currentUrlTree === this.getCurrentNavigation()?.finalUrl);       if (browserUrlUpdateOccurred && targetPagePosition !== 0) {         this.location.historyGo(targetPagePosition);       } else if (           this.currentUrlTree === this.getCurrentNavigation()?.finalUrl &&           targetPagePosition === 0) {         // We got to the activation stage (where currentUrlTree is set to the navigation's         // finalUrl), but we weren't moving anywhere in history (skipLocationChange or replaceUrl).         // We still need to reset the router state back to what it was when the navigation started.         this.resetState(transition);         // TODO(atscott): resetting the `browserUrlTree` should really be done in `resetState`.         // Investigate if this can be done by running TGP.         this.browserUrlTree = transition.currentUrlTree;         this.resetUrlToCurrentUrlTree();       } else {         // The browser URL and router state was not updated before the navigation cancelled so         // there's no restoration needed.       }     } else if (this.canceledNavigationResolution === 'replace') {       // TODO(atscott): It seems like we should _always_ reset the state here. It would be a no-op       // for `deferred` navigations that haven't change the internal state yet because guards       // reject. For 'eager' navigations, it seems like we also really should reset the state       // because the navigation was cancelled. Investigate if this can be done by running TGP.       if (restoringFromCaughtError) {         this.resetState(transition);       }       this.resetUrlToCurrentUrlTree();     }   }    private resetState(t: NavigationTransition): void {     (this as {routerState: RouterState}).routerState = t.currentRouterState;     this.currentUrlTree = t.currentUrlTree;     // Note here that we use the urlHandlingStrategy to get the reset `rawUrlTree` because it may be     // configured to handle only part of the navigation URL. This means we would only want to reset     // the part of the navigation handled by the Angular router rather than the whole URL. In     // addition, the URLHandlingStrategy may be configured to specifically preserve parts of the URL     // when merging, such as the query params so they are not lost on a refresh.     this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, t.rawUrl);   }    private resetUrlToCurrentUrlTree(): void {     this.location.replaceState(         this.urlSerializer.serialize(this.rawUrlTree), '',         this.generateNgRouterState(this.lastSuccessfulId, this.currentPageId));   }    private generateNgRouterState(navigationId: number, routerPageId?: number) {     if (this.canceledNavigationResolution === 'computed') {       return {navigationId, ɵrouterPageId: routerPageId};     }     return {navigationId};   } }  function validateCommands(commands: string[]): void {   for (let i = 0; i < commands.length; i++) {     const cmd = commands[i];     if (cmd == null) {       throw new RuntimeError(           RuntimeErrorCode.NULLISH_COMMAND,           NG_DEV_MODE && `The requested path contains ${cmd} segment at index ${i}`);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {LocationStrategy} from '@angular/common'; import {Attribute, Directive, ElementRef, HostBinding, HostListener, Input, OnChanges, OnDestroy, Renderer2, SimpleChanges, ɵcoerceToBoolean as coerceToBoolean, ɵɵsanitizeUrlOrResourceUrl} from '@angular/core'; import {Subject, Subscription} from 'rxjs';  import {Event, NavigationEnd} from '../events'; import {QueryParamsHandling} from '../models'; import {Router} from '../router'; import {ActivatedRoute} from '../router_state'; import {Params} from '../shared'; import {UrlTree} from '../url_tree';   /**  * @description  *  * When applied to an element in a template, makes that element a link  * that initiates navigation to a route. Navigation opens one or more routed components  * in one or more `<router-outlet>` locations on the page.  *  * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,  * the following creates a static link to the route:  * `<a routerLink=\"/user/bob\">link to user component</a>`  *  * You can use dynamic values to generate the link.  * For a dynamic link, pass an array of path segments,  * followed by the params for each segment.  * For example, `['/team', teamId, 'user', userName, {details: true}]`  * generates a link to `/team/11/user/bob;details=true`.  *  * Multiple static segments can be merged into one term and combined with dynamic segments.  * For example, `['/team/11/user', userName, {details: true}]`  *  * The input that you provide to the link is treated as a delta to the current URL.  * For instance, suppose the current URL is `/user/(box//aux:team)`.  * The link `<a [routerLink]=\"['/user/jim']\">Jim</a>` creates the URL  * `/user/(jim//aux:team)`.  * See {@link Router#createUrlTree createUrlTree} for more information.  *  * @usageNotes  *  * You can use absolute or relative paths in a link, set query parameters,  * control how parameters are handled, and keep a history of navigation states.  *  * ### Relative link paths  *  * The first segment name can be prepended with `/`, `./`, or `../`.  * * If the first segment begins with `/`, the router looks up the route from the root of the  *   app.  * * If the first segment begins with `./`, or doesn't begin with a slash, the router  *   looks in the children of the current activated route.  * * If the first segment begins with `../`, the router goes up one level in the route tree.  *  * ### Setting and handling query params and fragments  *  * The following link adds a query parameter and a fragment to the generated URL:  *  * ```  * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" fragment=\"education\">  *   link to user component  * </a>  * ```  * By default, the directive constructs the new URL using the given query parameters.  * The example generates the link: `/user/bob?debug=true#education`.  *  * You can instruct the directive to handle query parameters differently  * by specifying the `queryParamsHandling` option in the link.  * Allowed values are:  *  *  - `'merge'`: Merge the given `queryParams` into the current query params.  *  - `'preserve'`: Preserve the current query params.  *  * For example:  *  * ```  * <a [routerLink]=\"['/user/bob']\" [queryParams]=\"{debug: true}\" queryParamsHandling=\"merge\">  *   link to user component  * </a>  * ```  *  * See {@link UrlCreationOptions.queryParamsHandling UrlCreationOptions#queryParamsHandling}.  *  * ### Preserving navigation history  *  * You can provide a `state` value to be persisted to the browser's  * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).  * For example:  *  * ```  * <a [routerLink]=\"['/user/bob']\" [state]=\"{tracingId: 123}\">  *   link to user component  * </a>  * ```  *  * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved  * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`  * event:  *  * ```  * // Get NavigationStart events  * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {  *   const navigation = router.getCurrentNavigation();  *   tracingService.trace({id: navigation.extras.state.tracingId});  * });  * ```  *  * @ngModule RouterModule  *  * @publicApi  */ @Directive({   selector: '[routerLink]',   standalone: true, }) export class RouterLink implements OnChanges, OnDestroy {   private _preserveFragment = false;   private _skipLocationChange = false;   private _replaceUrl = false;    /**    * Represents an `href` attribute value applied to a host element,    * when a host element is `<a>`. For other tags, the value is `null`.    */   href: string|null = null;    /**    * Represents the `target` attribute on a host element.    * This is only used when the host element is an `<a>` tag.    */   @HostBinding('attr.target') @Input() target?: string;    /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#queryParams UrlCreationOptions#queryParams}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() queryParams?: Params|null;   /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#fragment UrlCreationOptions#fragment}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() fragment?: string;   /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#queryParamsHandling UrlCreationOptions#queryParamsHandling}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() queryParamsHandling?: QueryParamsHandling|null;   /**    * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the    * `NavigationBehaviorOptions`.    * @see {@link NavigationBehaviorOptions#state NavigationBehaviorOptions#state}    * @see {@link Router#navigateByUrl Router#navigateByUrl}    */   @Input() state?: {[k: string]: any};   /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * Specify a value here when you do not want to use the default value    * for `routerLink`, which is the current activated route.    * Note that a value of `undefined` here will use the `routerLink` default.    * @see {@link UrlCreationOptions#relativeTo UrlCreationOptions#relativeTo}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input() relativeTo?: ActivatedRoute|null;    private commands: any[]|null = null;    /** Whether a host element is an `<a>` tag. */   private isAnchorElement: boolean;    private subscription?: Subscription;    /** @internal */   onChanges = new Subject<RouterLink>();    constructor(       private router: Router, private route: ActivatedRoute,       @Attribute('tabindex') private readonly tabIndexAttribute: string|null|undefined,       private readonly renderer: Renderer2, private readonly el: ElementRef,       private locationStrategy?: LocationStrategy) {     const tagName = el.nativeElement.tagName?.toLowerCase();     this.isAnchorElement = tagName === 'a' || tagName === 'area';      if (this.isAnchorElement) {       this.subscription = router.events.subscribe((s: Event) => {         if (s instanceof NavigationEnd) {           this.updateHref();         }       });     } else {       this.setTabIndexIfNotOnNativeEl('0');     }   }    /**    * Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the    * `UrlCreationOptions`.    * @see {@link UrlCreationOptions#preserveFragment UrlCreationOptions#preserveFragment}    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input()   set preserveFragment(preserveFragment: boolean|string|null|undefined) {     this._preserveFragment = coerceToBoolean(preserveFragment);   }    get preserveFragment(): boolean {     return this._preserveFragment;   }    /**    * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the    * `NavigationBehaviorOptions`.    * @see {@link NavigationBehaviorOptions#skipLocationChange NavigationBehaviorOptions#skipLocationChange}    * @see {@link Router#navigateByUrl Router#navigateByUrl}    */   @Input()   set skipLocationChange(skipLocationChange: boolean|string|null|undefined) {     this._skipLocationChange = coerceToBoolean(skipLocationChange);   }    get skipLocationChange(): boolean {     return this._skipLocationChange;   }    /**    * Passed to {@link Router#navigateByUrl Router#navigateByUrl} as part of the    * `NavigationBehaviorOptions`.    * @see {@link NavigationBehaviorOptions#replaceUrl NavigationBehaviorOptions#replaceUrl}    * @see {@link Router#navigateByUrl Router#navigateByUrl}    */   @Input()   set replaceUrl(replaceUrl: boolean|string|null|undefined) {     this._replaceUrl = coerceToBoolean(replaceUrl);   }    get replaceUrl(): boolean {     return this._replaceUrl;   }    /**    * Modifies the tab index if there was not a tabindex attribute on the element during    * instantiation.    */   private setTabIndexIfNotOnNativeEl(newTabIndex: string|null) {     if (this.tabIndexAttribute != null /* both `null` and `undefined` */ || this.isAnchorElement) {       return;     }     this.applyAttributeValue('tabindex', newTabIndex);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (this.isAnchorElement) {       this.updateHref();     }     // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes     // to the RouterLinks it's tracking.     this.onChanges.next(this);   }    /**    * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.    *   - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.    *   - **string**: shorthand for array of commands with just the string, i.e. `['/route']`    *   - **null|undefined**: effectively disables the `routerLink`    * @see {@link Router#createUrlTree Router#createUrlTree}    */   @Input()   set routerLink(commands: any[]|string|null|undefined) {     if (commands != null) {       this.commands = Array.isArray(commands) ? commands : [commands];       this.setTabIndexIfNotOnNativeEl('0');     } else {       this.commands = null;       this.setTabIndexIfNotOnNativeEl(null);     }   }    /** @nodoc */   @HostListener(       'click',       ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey'])   onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean):       boolean {     if (this.urlTree === null) {       return true;     }      if (this.isAnchorElement) {       if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {         return true;       }        if (typeof this.target === 'string' && this.target != '_self') {         return true;       }     }      const extras = {       skipLocationChange: this.skipLocationChange,       replaceUrl: this.replaceUrl,       state: this.state,     };     this.router.navigateByUrl(this.urlTree, extras);      // Return `false` for `<a>` elements to prevent default action     // and cancel the native behavior, since the navigation is handled     // by the Router.     return !this.isAnchorElement;   }    /** @nodoc */   ngOnDestroy(): any {     this.subscription?.unsubscribe();   }    private updateHref(): void {     this.href = this.urlTree !== null && this.locationStrategy ?         this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)) :         null;      const sanitizedValue = this.href === null ?         null :         // This class represents a directive that can be added to both `<a>` elements,         // as well as other elements. As a result, we can't define security context at         // compile time. So the security context is deferred to runtime.         // The `ɵɵsanitizeUrlOrResourceUrl` selects the necessary sanitizer function         // based on the tag and property names. The logic mimics the one from         // `packages/compiler/src/schema/dom_security_schema.ts`, which is used at compile time.         //         // Note: we should investigate whether we can switch to using `@HostBinding('attr.href')`         // instead of applying a value via a renderer, after a final merge of the         // `RouterLinkWithHref` directive.         ɵɵsanitizeUrlOrResourceUrl(this.href, this.el.nativeElement.tagName.toLowerCase(), 'href');     this.applyAttributeValue('href', sanitizedValue);   }    private applyAttributeValue(attrName: string, attrValue: string|null) {     const renderer = this.renderer;     const nativeElement = this.el.nativeElement;     if (attrValue !== null) {       renderer.setAttribute(nativeElement, attrName, attrValue);     } else {       renderer.removeAttribute(nativeElement, attrName);     }   }    get urlTree(): UrlTree|null {     if (this.commands === null) {       return null;     }     return this.router.createUrlTree(this.commands, {       // If the `relativeTo` input is not defined, we want to use `this.route` by default.       // Otherwise, we should use the value provided by the user in the input.       relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,       queryParams: this.queryParams,       fragment: this.fragment,       queryParamsHandling: this.queryParamsHandling,       preserveFragment: this.preserveFragment,     });   } }  /**  * @description  * An alias for the `RouterLink` directive.  * Deprecated since v15, use `RouterLink` directive instead.  *  * @deprecated use `RouterLink` directive instead.  * @publicApi  */ export {RouterLink as RouterLinkWithHref}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AfterContentInit, ChangeDetectorRef, ContentChildren, Directive, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, Optional, Output, QueryList, Renderer2, SimpleChanges} from '@angular/core'; import {from, of, Subscription} from 'rxjs'; import {mergeAll} from 'rxjs/operators';  import {Event, NavigationEnd} from '../events'; import {Router} from '../router'; import {IsActiveMatchOptions} from '../url_tree';  import {RouterLink} from './router_link';   /**  *  * @description  *  * Tracks whether the linked route of an element is currently active, and allows you  * to specify one or more CSS classes to add to the element when the linked route  * is active.  *  * Use this directive to create a visual distinction for elements associated with an active route.  * For example, the following code highlights the word \"Bob\" when the router  * activates the associated route:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\">Bob</a>  * ```  *  * Whenever the URL is either '/user' or '/user/bob', the \"active-link\" class is  * added to the anchor tag. If the URL changes, the class is removed.  *  * You can set more than one class using a space-separated string or an array.  * For example:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive=\"class1 class2\">Bob</a>  * <a routerLink=\"/user/bob\" [routerLinkActive]=\"['class1', 'class2']\">Bob</a>  * ```  *  * To add the classes only when the URL matches the link exactly, add the option `exact: true`:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:  * true}\">Bob</a>  * ```  *  * To directly check the `isActive` status of the link, assign the `RouterLinkActive`  * instance to a template variable.  * For example, the following checks the status without assigning any CSS classes:  *  * ```  * <a routerLink=\"/user/bob\" routerLinkActive #rla=\"routerLinkActive\">  *   Bob {{ rla.isActive ? '(already open)' : ''}}  * </a>  * ```  *  * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.  * For example, the following sets the active-link class on the `<div>`  parent tag  * when the URL is either '/user/jim' or '/user/bob'.  *  * ```  * <div routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact: true}\">  *   <a routerLink=\"/user/jim\">Jim</a>  *   <a routerLink=\"/user/bob\">Bob</a>  * </div>  * ```  *  * The `RouterLinkActive` directive can also be used to set the aria-current attribute  * to provide an alternative distinction for active elements to visually impaired users.  *  * For example, the following code adds the 'active' class to the Home Page link when it is  * indeed active and in such case also sets its aria-current attribute to 'page':  *  * ```  * <a routerLink=\"/\" routerLinkActive=\"active\" ariaCurrentWhenActive=\"page\">Home Page</a>  * ```  *  * @ngModule RouterModule  *  * @publicApi  */ @Directive({   selector: '[routerLinkActive]',   exportAs: 'routerLinkActive',   standalone: true, }) export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {   @ContentChildren(RouterLink, {descendants: true}) links!: QueryList<RouterLink>;    private classes: string[] = [];   private routerEventsSubscription: Subscription;   private linkInputChangesSubscription?: Subscription;   private _isActive = false;    get isActive() {     return this._isActive;   }    /**    * Options to configure how to determine if the router link is active.    *    * These options are passed to the `Router.isActive()` function.    *    * @see Router.isActive    */   @Input() routerLinkActiveOptions: {exact: boolean}|IsActiveMatchOptions = {exact: false};     /**    * Aria-current attribute to apply when the router link is active.    *    * Possible values: `'page'` | `'step'` | `'location'` | `'date'` | `'time'` | `true` | `false`.    *    * @see {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current}    */   @Input() ariaCurrentWhenActive?: 'page'|'step'|'location'|'date'|'time'|true|false;    /**    *    * You can use the output `isActiveChange` to get notified each time the link becomes    * active or inactive.    *    * Emits:    * true  -> Route is active    * false -> Route is inactive    *    * ```    * <a    *  routerLink=\"/user/bob\"    *  routerLinkActive=\"active-link\"    *  (isActiveChange)=\"this.onRouterLinkActive($event)\">Bob</a>    * ```    */   @Output() readonly isActiveChange: EventEmitter<boolean> = new EventEmitter();    constructor(       private router: Router, private element: ElementRef, private renderer: Renderer2,       private readonly cdr: ChangeDetectorRef, @Optional() private link?: RouterLink) {     this.routerEventsSubscription = router.events.subscribe((s: Event) => {       if (s instanceof NavigationEnd) {         this.update();       }     });   }    /** @nodoc */   ngAfterContentInit(): void {     // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).     of(this.links.changes, of(null)).pipe(mergeAll()).subscribe(_ => {       this.update();       this.subscribeToEachLinkOnChanges();     });   }    private subscribeToEachLinkOnChanges() {     this.linkInputChangesSubscription?.unsubscribe();     const allLinkChanges = [...this.links.toArray(), this.link]                                .filter((link): link is RouterLink => !!link)                                .map(link => link.onChanges);     this.linkInputChangesSubscription = from(allLinkChanges).pipe(mergeAll()).subscribe(link => {       if (this._isActive !== this.isLinkActive(this.router)(link)) {         this.update();       }     });   }    @Input()   set routerLinkActive(data: string[]|string) {     const classes = Array.isArray(data) ? data : data.split(' ');     this.classes = classes.filter(c => !!c);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     this.update();   }   /** @nodoc */   ngOnDestroy(): void {     this.routerEventsSubscription.unsubscribe();     this.linkInputChangesSubscription?.unsubscribe();   }    private update(): void {     if (!this.links || !this.router.navigated) return;     Promise.resolve().then(() => {       const hasActiveLinks = this.hasActiveLinks();       if (this._isActive !== hasActiveLinks) {         this._isActive = hasActiveLinks;         this.cdr.markForCheck();         this.classes.forEach((c) => {           if (hasActiveLinks) {             this.renderer.addClass(this.element.nativeElement, c);           } else {             this.renderer.removeClass(this.element.nativeElement, c);           }         });         if (hasActiveLinks && this.ariaCurrentWhenActive !== undefined) {           this.renderer.setAttribute(               this.element.nativeElement, 'aria-current', this.ariaCurrentWhenActive.toString());         } else {           this.renderer.removeAttribute(this.element.nativeElement, 'aria-current');         }          // Emit on isActiveChange after classes are updated         this.isActiveChange.emit(hasActiveLinks);       }     });   }    private isLinkActive(router: Router): (link: RouterLink) => boolean {     const options: boolean|IsActiveMatchOptions =         isActiveMatchOptions(this.routerLinkActiveOptions) ?         this.routerLinkActiveOptions :         // While the types should disallow `undefined` here, it's possible without strict inputs         (this.routerLinkActiveOptions.exact || false);     return (link: RouterLink) => link.urlTree ? router.isActive(link.urlTree, options) : false;   }    private hasActiveLinks(): boolean {     const isActiveCheckFn = this.isLinkActive(this.router);     return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);   } }  /**  * Use instead of `'paths' in options` to be compatible with property renaming  */ function isActiveMatchOptions(options: {exact: boolean}|                               IsActiveMatchOptions): options is IsActiveMatchOptions {   return !!(options as IsActiveMatchOptions).paths; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Compiler, createEnvironmentInjector, EnvironmentInjector, Injectable, OnDestroy} from '@angular/core'; import {from, Observable, of, Subscription} from 'rxjs'; import {catchError, concatMap, filter, mergeAll, mergeMap} from 'rxjs/operators';  import {Event, NavigationEnd} from './events'; import {LoadedRouterConfig, Route, Routes} from './models'; import {Router} from './router'; import {RouterConfigLoader} from './router_config_loader';   /**  * @description  *  * Provides a preloading strategy.  *  * @publicApi  */ export abstract class PreloadingStrategy {   abstract preload(route: Route, fn: () => Observable<any>): Observable<any>; }  /**  * @description  *  * Provides a preloading strategy that preloads all modules as quickly as possible.  *  * ```  * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})  * ```  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class PreloadAllModules implements PreloadingStrategy {   preload(route: Route, fn: () => Observable<any>): Observable<any> {     return fn().pipe(catchError(() => of(null)));   } }  /**  * @description  *  * Provides a preloading strategy that does not preload any modules.  *  * This strategy is enabled by default.  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class NoPreloading implements PreloadingStrategy {   preload(route: Route, fn: () => Observable<any>): Observable<any> {     return of(null);   } }  /**  * The preloader optimistically loads all router configurations to  * make navigations into lazily-loaded sections of the application faster.  *  * The preloader runs in the background. When the router bootstraps, the preloader  * starts listening to all navigation events. After every such event, the preloader  * will check if any configurations can be loaded lazily.  *  * If a route is protected by `canLoad` guards, the preloaded will not load it.  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class RouterPreloader implements OnDestroy {   private subscription?: Subscription;    constructor(       private router: Router, compiler: Compiler, private injector: EnvironmentInjector,       private preloadingStrategy: PreloadingStrategy, private loader: RouterConfigLoader) {}    setUpPreloading(): void {     this.subscription =         this.router.events             .pipe(filter((e: Event) => e instanceof NavigationEnd), concatMap(() => this.preload()))             .subscribe(() => {});   }    preload(): Observable<any> {     return this.processRoutes(this.injector, this.router.config);   }    /** @nodoc */   ngOnDestroy(): void {     if (this.subscription) {       this.subscription.unsubscribe();     }   }    private processRoutes(injector: EnvironmentInjector, routes: Routes): Observable<void> {     const res: Observable<any>[] = [];     for (const route of routes) {       if (route.providers && !route._injector) {         route._injector =             createEnvironmentInjector(route.providers, injector, `Route: ${route.path}`);       }        const injectorForCurrentRoute = route._injector ?? injector;       const injectorForChildren = route._loadedInjector ?? injectorForCurrentRoute;        // Note that `canLoad` is only checked as a condition that prevents `loadChildren` and not       // `loadComponent`. `canLoad` guards only block loading of child routes by design. This       // happens as a consequence of needing to descend into children for route matching immediately       // while component loading is deferred until route activation. Because `canLoad` guards can       // have side effects, we cannot execute them here so we instead skip preloading altogether       // when present. Lastly, it remains to be decided whether `canLoad` should behave this way       // at all. Code splitting and lazy loading is separate from client-side authorization checks       // and should not be used as a security measure to prevent loading of code.       if ((route.loadChildren && !route._loadedRoutes && route.canLoad === undefined) ||           (route.loadComponent && !route._loadedComponent)) {         res.push(this.preloadConfig(injectorForCurrentRoute, route));       } else if (route.children || route._loadedRoutes) {         res.push(this.processRoutes(injectorForChildren, (route.children ?? route._loadedRoutes)!));       }     }     return from(res).pipe(mergeAll());   }    private preloadConfig(injector: EnvironmentInjector, route: Route): Observable<void> {     return this.preloadingStrategy.preload(route, () => {       let loadedChildren$: Observable<LoadedRouterConfig|null>;       if (route.loadChildren && route.canLoad === undefined) {         loadedChildren$ = this.loader.loadChildren(injector, route);       } else {         loadedChildren$ = of(null);       }        const recursiveLoadChildren$ =           loadedChildren$.pipe(mergeMap((config: LoadedRouterConfig|null) => {             if (config === null) {               return of(void 0);             }             route._loadedRoutes = config.routes;             route._loadedInjector = config.injector;             // If the loaded config was a module, use that as the module/module injector going             // forward. Otherwise, continue using the current module/module injector.             return this.processRoutes(config.injector ?? injector, config.routes);           }));       if (route.loadComponent && !route._loadedComponent) {         const loadComponent$ = this.loader.loadComponent(route);         return from([recursiveLoadChildren$, loadComponent$]).pipe(mergeAll());       } else {         return recursiveLoadChildren$;       }     });   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ViewportScroller} from '@angular/common'; import {Injectable, InjectionToken, NgZone, OnDestroy} from '@angular/core'; import {Unsubscribable} from 'rxjs';  import {NavigationEnd, NavigationStart, Scroll} from './events'; import {NavigationTransitions} from './navigation_transition'; import {Router} from './router'; import {UrlSerializer} from './url_tree';  export const ROUTER_SCROLLER = new InjectionToken<RouterScroller>('');  @Injectable() export class RouterScroller implements OnDestroy {   private routerEventsSubscription?: Unsubscribable;   private scrollEventsSubscription?: Unsubscribable;    private lastId = 0;   private lastSource: 'imperative'|'popstate'|'hashchange'|undefined = 'imperative';   private restoredId = 0;   private store: {[key: string]: [number, number]} = {};    /** @nodoc */   constructor(       readonly urlSerializer: UrlSerializer, private transitions: NavigationTransitions,       public readonly viewportScroller: ViewportScroller, private readonly zone: NgZone,       private options: {         scrollPositionRestoration?: 'disabled'|'enabled'|'top',         anchorScrolling?: 'disabled'|'enabled'       } = {}) {     // Default both options to 'disabled'     options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';     options.anchorScrolling = options.anchorScrolling || 'disabled';   }    init(): void {     // we want to disable the automatic scrolling because having two places     // responsible for scrolling results race conditions, especially given     // that browser don't implement this behavior consistently     if (this.options.scrollPositionRestoration !== 'disabled') {       this.viewportScroller.setHistoryScrollRestoration('manual');     }     this.routerEventsSubscription = this.createScrollEvents();     this.scrollEventsSubscription = this.consumeScrollEvents();   }    private createScrollEvents() {     return this.transitions.events.subscribe(e => {       if (e instanceof NavigationStart) {         // store the scroll position of the current stable navigations.         this.store[this.lastId] = this.viewportScroller.getScrollPosition();         this.lastSource = e.navigationTrigger;         this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;       } else if (e instanceof NavigationEnd) {         this.lastId = e.id;         this.scheduleScrollEvent(e, this.urlSerializer.parse(e.urlAfterRedirects).fragment);       }     });   }    private consumeScrollEvents() {     return this.transitions.events.subscribe(e => {       if (!(e instanceof Scroll)) return;       // a popstate event. The pop state event will always ignore anchor scrolling.       if (e.position) {         if (this.options.scrollPositionRestoration === 'top') {           this.viewportScroller.scrollToPosition([0, 0]);         } else if (this.options.scrollPositionRestoration === 'enabled') {           this.viewportScroller.scrollToPosition(e.position);         }         // imperative navigation \"forward\"       } else {         if (e.anchor && this.options.anchorScrolling === 'enabled') {           this.viewportScroller.scrollToAnchor(e.anchor);         } else if (this.options.scrollPositionRestoration !== 'disabled') {           this.viewportScroller.scrollToPosition([0, 0]);         }       }     });   }    private scheduleScrollEvent(routerEvent: NavigationEnd, anchor: string|null): void {     this.zone.runOutsideAngular(() => {       // The scroll event needs to be delayed until after change detection. Otherwise, we may       // attempt to restore the scroll position before the router outlet has fully rendered the       // component by executing its update block of the template function.       setTimeout(() => {         this.zone.run(() => {           this.transitions.events.next(new Scroll(               routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null,               anchor));         });       }, 0);     });   }    /** @nodoc */   ngOnDestroy() {     this.routerEventsSubscription?.unsubscribe();     this.scrollEventsSubscription?.unsubscribe();   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {filter, map, take} from 'rxjs/operators';  import {NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped} from '../events'; import {Router} from '../router';  enum NavigationResult {   COMPLETE,   FAILED,   REDIRECTING, }  /**  * Performs the given action once the router finishes its next/current navigation.  *  * The navigation is considered complete under the following conditions:  * - `NavigationCancel` event emits and the code is not `NavigationCancellationCode.Redirect` or  * `NavigationCancellationCode.SupersededByNewNavigation`. In these cases, the  * redirecting/superseding navigation must finish.  * - `NavigationError`, `NavigationEnd`, or `NavigationSkipped` event emits  */ export function afterNextNavigation(router: Router, action: () => void) {   router.events       .pipe(           filter(               (e): e is NavigationEnd|NavigationCancel|NavigationError|NavigationSkipped =>                   e instanceof NavigationEnd || e instanceof NavigationCancel ||                   e instanceof NavigationError || e instanceof NavigationSkipped),           map(e => {             if (e instanceof NavigationEnd || e instanceof NavigationSkipped) {               return NavigationResult.COMPLETE;             }             const redirecting = e instanceof NavigationCancel ?                 (e.code === NavigationCancellationCode.Redirect ||                  e.code === NavigationCancellationCode.SupersededByNewNavigation) :                 false;             return redirecting ? NavigationResult.REDIRECTING : NavigationResult.FAILED;           }),           filter(               (result): result is NavigationResult.COMPLETE|NavigationResult.FAILED =>                   result !== NavigationResult.REDIRECTING),           take(1),           )       .subscribe(() => {         action();       }); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HashLocationStrategy, LOCATION_INITIALIZED, LocationStrategy, ViewportScroller} from '@angular/common'; import {APP_BOOTSTRAP_LISTENER, APP_INITIALIZER, ApplicationRef, ComponentRef, ENVIRONMENT_INITIALIZER, EnvironmentInjector, EnvironmentProviders, inject, InjectFlags, InjectionToken, Injector, makeEnvironmentProviders, NgZone, Provider, Type} from '@angular/core'; import {of, Subject} from 'rxjs'; import {filter, map, take} from 'rxjs/operators';  import {Event, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, stringifyEvent} from './events'; import {Routes} from './models'; import {NavigationTransitions} from './navigation_transition'; import {Router} from './router'; import {InMemoryScrollingOptions, ROUTER_CONFIGURATION, RouterConfigOptions} from './router_config'; import {ROUTES} from './router_config_loader'; import {PreloadingStrategy, RouterPreloader} from './router_preloader'; import {ROUTER_SCROLLER, RouterScroller} from './router_scroller'; import {ActivatedRoute} from './router_state'; import {UrlSerializer} from './url_tree'; import {afterNextNavigation} from './utils/navigations';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * Sets up providers necessary to enable `Router` functionality for the application.  * Allows to configure a set of routes as well as extra features that should be enabled.  *  * @usageNotes  *  * Basic example of how you can add a Router to your application:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent, {  *   providers: [provideRouter(appRoutes)]  * });  * ```  *  * You can also enable optional features in the Router by adding functions from the `RouterFeatures`  * type:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes,  *         withDebugTracing(),  *         withRouterConfig({paramsInheritanceStrategy: 'always'}))  *     ]  *   }  * );  * ```  *  * @see `RouterFeatures`  *  * @publicApi  * @param routes A set of `Route`s to use for the application routing table.  * @param features Optional features to configure additional router behaviors.  * @returns A set of providers to setup a Router.  */ export function provideRouter(routes: Routes, ...features: RouterFeatures[]): EnvironmentProviders {   return makeEnvironmentProviders([     {provide: ROUTES, multi: true, useValue: routes},     NG_DEV_MODE ? {provide: ROUTER_IS_PROVIDED, useValue: true} : [],     {provide: ActivatedRoute, useFactory: rootRoute, deps: [Router]},     {provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener},     features.map(feature => feature.ɵproviders),   ]); }  export function rootRoute(router: Router): ActivatedRoute {   return router.routerState.root; }  /**  * Helper type to represent a Router feature.  *  * @publicApi  */ export interface RouterFeature<FeatureKind extends RouterFeatureKind> {   ɵkind: FeatureKind;   ɵproviders: Provider[]; }  /**  * Helper function to create an object that represents a Router feature.  */ function routerFeature<FeatureKind extends RouterFeatureKind>(     kind: FeatureKind, providers: Provider[]): RouterFeature<FeatureKind> {   return {ɵkind: kind, ɵproviders: providers}; }   /**  * An Injection token used to indicate whether `provideRouter` or `RouterModule.forRoot` was ever  * called.  */ export const ROUTER_IS_PROVIDED =     new InjectionToken<boolean>('', {providedIn: 'root', factory: () => false});  const routerIsProvidedDevModeCheck = {   provide: ENVIRONMENT_INITIALIZER,   multi: true,   useFactory() {     return () => {       if (!inject(ROUTER_IS_PROVIDED)) {         console.warn(             '`provideRoutes` was called without `provideRouter` or `RouterModule.forRoot`. ' +             'This is likely a mistake.');       }     };   } };  /**  * Registers a [DI provider](guide/glossary#provider) for a set of routes.  * @param routes The route configuration to provide.  *  * @usageNotes  *  * ```  * @NgModule({  *   providers: [provideRoutes(ROUTES)]  * })  * class LazyLoadedChildModule {}  * ```  *  * @deprecated If necessary, provide routes using the `ROUTES` `InjectionToken`.  * @see `ROUTES`  * @publicApi  */ export function provideRoutes(routes: Routes): Provider[] {   return [     {provide: ROUTES, multi: true, useValue: routes},     NG_DEV_MODE ? routerIsProvidedDevModeCheck : [],   ]; }  /**  * A type alias for providers returned by `withInMemoryScrolling` for use with `provideRouter`.  *  * @see `withInMemoryScrolling`  * @see `provideRouter`  *  * @publicApi  */ export type InMemoryScrollingFeature = RouterFeature<RouterFeatureKind.InMemoryScrollingFeature>;  /**  * Enables customizable scrolling behavior for router navigations.  *  * @usageNotes  *  * Basic example of how you can enable scrolling feature:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withInMemoryScrolling())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  * @see `ViewportScroller`  *  * @publicApi  * @param options Set of configuration parameters to customize scrolling behavior, see  *     `InMemoryScrollingOptions` for additional information.  * @returns A set of providers for use with `provideRouter`.  */ export function withInMemoryScrolling(options: InMemoryScrollingOptions = {}):     InMemoryScrollingFeature {   const providers = [{     provide: ROUTER_SCROLLER,     useFactory: () => {       const viewportScroller = inject(ViewportScroller);       const zone = inject(NgZone);       const transitions = inject(NavigationTransitions);       const urlSerializer = inject(UrlSerializer);       return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, options);     },   }];   return routerFeature(RouterFeatureKind.InMemoryScrollingFeature, providers); }  export function getBootstrapListener() {   const injector = inject(Injector);   return (bootstrappedComponentRef: ComponentRef<unknown>) => {     const ref = injector.get(ApplicationRef);      if (bootstrappedComponentRef !== ref.components[0]) {       return;     }      const router = injector.get(Router);     const bootstrapDone = injector.get(BOOTSTRAP_DONE);      if (injector.get(INITIAL_NAVIGATION) === InitialNavigation.EnabledNonBlocking) {       router.initialNavigation();     }      injector.get(ROUTER_PRELOADER, null, InjectFlags.Optional)?.setUpPreloading();     injector.get(ROUTER_SCROLLER, null, InjectFlags.Optional)?.init();     router.resetRootComponentType(ref.componentTypes[0]);     if (!bootstrapDone.closed) {       bootstrapDone.next();       bootstrapDone.unsubscribe();     }   }; }  /**  * A subject used to indicate that the bootstrapping phase is done. When initial navigation is  * `enabledBlocking`, the first navigation waits until bootstrapping is finished before continuing  * to the activation phase.  */ const BOOTSTRAP_DONE =     new InjectionToken<Subject<void>>(NG_DEV_MODE ? 'bootstrap done indicator' : '', {       factory: () => {         return new Subject<void>();       }     });  /**  * This and the INITIAL_NAVIGATION token are used internally only. The public API side of this is  * configured through the `ExtraOptions`.  *  * When set to `EnabledBlocking`, the initial navigation starts before the root  * component is created. The bootstrap is blocked until the initial navigation is complete. This  * value is required for [server-side rendering](guide/universal) to work.  *  * When set to `EnabledNonBlocking`, the initial navigation starts after the root component has been  * created. The bootstrap is not blocked on the completion of the initial navigation.  *  * When set to `Disabled`, the initial navigation is not performed. The location listener is set up  * before the root component gets created. Use if there is a reason to have more control over when  * the router starts its initial navigation due to some complex initialization logic.  *  * @see `ExtraOptions`  */ const enum InitialNavigation {   EnabledBlocking,   EnabledNonBlocking,   Disabled, }  const INITIAL_NAVIGATION = new InjectionToken<InitialNavigation>(     NG_DEV_MODE ? 'initial navigation' : '',     {providedIn: 'root', factory: () => InitialNavigation.EnabledNonBlocking});  /**  * A type alias for providers returned by `withEnabledBlockingInitialNavigation` for use with  * `provideRouter`.  *  * @see `withEnabledBlockingInitialNavigation`  * @see `provideRouter`  *  * @publicApi  */ export type EnabledBlockingInitialNavigationFeature =     RouterFeature<RouterFeatureKind.EnabledBlockingInitialNavigationFeature>;  /**  * A type alias for providers returned by `withEnabledBlockingInitialNavigation` or  * `withDisabledInitialNavigation` functions for use with `provideRouter`.  *  * @see `withEnabledBlockingInitialNavigation`  * @see `withDisabledInitialNavigation`  * @see `provideRouter`  *  * @publicApi  */ export type InitialNavigationFeature =     EnabledBlockingInitialNavigationFeature|DisabledInitialNavigationFeature;  /**  * Configures initial navigation to start before the root component is created.  *  * The bootstrap is blocked until the initial navigation is complete. This value is required for  * [server-side rendering](guide/universal) to work.  *  * @usageNotes  *  * Basic example of how you can enable this navigation behavior:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withEnabledBlockingInitialNavigation())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @publicApi  * @returns A set of providers for use with `provideRouter`.  */ export function withEnabledBlockingInitialNavigation(): EnabledBlockingInitialNavigationFeature {   const providers = [     {provide: INITIAL_NAVIGATION, useValue: InitialNavigation.EnabledBlocking},     {       provide: APP_INITIALIZER,       multi: true,       deps: [Injector],       useFactory: (injector: Injector) => {         const locationInitialized: Promise<any> =             injector.get(LOCATION_INITIALIZED, Promise.resolve());          return () => {           return locationInitialized.then(() => {             return new Promise(resolve => {               const router = injector.get(Router);               const bootstrapDone = injector.get(BOOTSTRAP_DONE);               afterNextNavigation(router, () => {                 // Unblock APP_INITIALIZER in case the initial navigation was canceled or errored                 // without a redirect.                 resolve(true);               });                injector.get(NavigationTransitions).afterPreactivation = () => {                 // Unblock APP_INITIALIZER once we get to `afterPreactivation`. At this point, we                 // assume activation will complete successfully (even though this is not                 // guaranteed).                 resolve(true);                 return bootstrapDone.closed ? of(void 0) : bootstrapDone;               };               router.initialNavigation();             });           });         };       }     },   ];   return routerFeature(RouterFeatureKind.EnabledBlockingInitialNavigationFeature, providers); }  /**  * A type alias for providers returned by `withDisabledInitialNavigation` for use with  * `provideRouter`.  *  * @see `withDisabledInitialNavigation`  * @see `provideRouter`  *  * @publicApi  */ export type DisabledInitialNavigationFeature =     RouterFeature<RouterFeatureKind.DisabledInitialNavigationFeature>;  /**  * Disables initial navigation.  *  * Use if there is a reason to have more control over when the router starts its initial navigation  * due to some complex initialization logic.  *  * @usageNotes  *  * Basic example of how you can disable initial navigation:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withDisabledInitialNavigation())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withDisabledInitialNavigation(): DisabledInitialNavigationFeature {   const providers = [     {       provide: APP_INITIALIZER,       multi: true,       useFactory: () => {         const router = inject(Router);         return () => {           router.setUpLocationChangeListener();         };       }     },     {provide: INITIAL_NAVIGATION, useValue: InitialNavigation.Disabled}   ];   return routerFeature(RouterFeatureKind.DisabledInitialNavigationFeature, providers); }  /**  * A type alias for providers returned by `withDebugTracing` for use with `provideRouter`.  *  * @see `withDebugTracing`  * @see `provideRouter`  *  * @publicApi  */ export type DebugTracingFeature = RouterFeature<RouterFeatureKind.DebugTracingFeature>;  /**  * Enables logging of all internal navigation events to the console.  * Extra logging might be useful for debugging purposes to inspect Router event sequence.  *  * @usageNotes  *  * Basic example of how you can enable debug tracing:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withDebugTracing())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withDebugTracing(): DebugTracingFeature {   let providers: Provider[] = [];   if (NG_DEV_MODE) {     providers = [{       provide: ENVIRONMENT_INITIALIZER,       multi: true,       useFactory: () => {         const router = inject(Router);         return () => router.events.subscribe((e: Event) => {           // tslint:disable:no-console           console.group?.(`Router Event: ${(<any>e.constructor).name}`);           console.log(stringifyEvent(e));           console.log(e);           console.groupEnd?.();           // tslint:enable:no-console         });       }     }];   } else {     providers = [];   }   return routerFeature(RouterFeatureKind.DebugTracingFeature, providers); }  const ROUTER_PRELOADER = new InjectionToken<RouterPreloader>(NG_DEV_MODE ? 'router preloader' : '');  /**  * A type alias that represents a feature which enables preloading in Router.  * The type is used to describe the return value of the `withPreloading` function.  *  * @see `withPreloading`  * @see `provideRouter`  *  * @publicApi  */ export type PreloadingFeature = RouterFeature<RouterFeatureKind.PreloadingFeature>;  /**  * Allows to configure a preloading strategy to use. The strategy is configured by providing a  * reference to a class that implements a `PreloadingStrategy`.  *  * @usageNotes  *  * Basic example of how you can configure preloading:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withPreloading(PreloadAllModules))  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @param preloadingStrategy A reference to a class that implements a `PreloadingStrategy` that  *     should be used.  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withPreloading(preloadingStrategy: Type<PreloadingStrategy>): PreloadingFeature {   const providers = [     {provide: ROUTER_PRELOADER, useExisting: RouterPreloader},     {provide: PreloadingStrategy, useExisting: preloadingStrategy},   ];   return routerFeature(RouterFeatureKind.PreloadingFeature, providers); }  /**  * A type alias for providers returned by `withRouterConfig` for use with `provideRouter`.  *  * @see `withRouterConfig`  * @see `provideRouter`  *  * @publicApi  */ export type RouterConfigurationFeature =     RouterFeature<RouterFeatureKind.RouterConfigurationFeature>;  /**  * Allows to provide extra parameters to configure Router.  *  * @usageNotes  *  * Basic example of how you can provide extra configuration options:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withRouterConfig({  *          onSameUrlNavigation: 'reload'  *       }))  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  *  * @param options A set of parameters to configure Router, see `RouterConfigOptions` for  *     additional information.  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withRouterConfig(options: RouterConfigOptions): RouterConfigurationFeature {   const providers = [     {provide: ROUTER_CONFIGURATION, useValue: options},   ];   return routerFeature(RouterFeatureKind.RouterConfigurationFeature, providers); }  /**  * A type alias for providers returned by `withHashLocation` for use with `provideRouter`.  *  * @see `withHashLocation`  * @see `provideRouter`  *  * @publicApi  */ export type RouterHashLocationFeature = RouterFeature<RouterFeatureKind.RouterHashLocationFeature>;  /**  * Provides the location strategy that uses the URL fragment instead of the history API.  *  * @usageNotes  *  * Basic example of how you can use the hash location option:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withHashLocation())  *     ]  *   }  * );  * ```  *  * @see `provideRouter`  * @see `HashLocationStrategy`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withHashLocation(): RouterConfigurationFeature {   const providers = [     {provide: LocationStrategy, useClass: HashLocationStrategy},   ];   return routerFeature(RouterFeatureKind.RouterConfigurationFeature, providers); }  /**  * A type alias for providers returned by `withNavigationErrorHandler` for use with `provideRouter`.  *  * @see `withNavigationErrorHandler`  * @see `provideRouter`  *  * @publicApi  */ export type NavigationErrorHandlerFeature =     RouterFeature<RouterFeatureKind.NavigationErrorHandlerFeature>;  /**  * Subscribes to the Router's navigation events and calls the given function when a  * `NavigationError` happens.  *  * This function is run inside application's injection context so you can use the `inject` function.  *  * @usageNotes  *  * Basic example of how you can use the error handler option:  * ```  * const appRoutes: Routes = [];  * bootstrapApplication(AppComponent,  *   {  *     providers: [  *       provideRouter(appRoutes, withNavigationErrorHandler((e: NavigationError) =>  * inject(MyErrorTracker).trackError(e)))  *     ]  *   }  * );  * ```  *  * @see `NavigationError`  * @see `inject`  * @see `EnvironmentInjector#runInContext`  *  * @returns A set of providers for use with `provideRouter`.  *  * @publicApi  */ export function withNavigationErrorHandler(fn: (error: NavigationError) => void):     NavigationErrorHandlerFeature {   const providers = [{     provide: ENVIRONMENT_INITIALIZER,     multi: true,     useValue: () => {       const injector = inject(EnvironmentInjector);       inject(Router).events.subscribe((e) => {         if (e instanceof NavigationError) {           injector.runInContext(() => fn(e));         }       });     }   }];   return routerFeature(RouterFeatureKind.NavigationErrorHandlerFeature, providers); }  /**  * A type alias that represents all Router features available for use with `provideRouter`.  * Features can be enabled by adding special functions to the `provideRouter` call.  * See documentation for each symbol to find corresponding function name. See also `provideRouter`  * documentation on how to use those functions.  *  * @see `provideRouter`  *  * @publicApi  */ export type RouterFeatures = PreloadingFeature|DebugTracingFeature|InitialNavigationFeature|     InMemoryScrollingFeature|RouterConfigurationFeature|NavigationErrorHandlerFeature;  /**  * The list of features as an enum to uniquely type each feature.  */ export const enum RouterFeatureKind {   PreloadingFeature,   DebugTracingFeature,   EnabledBlockingInitialNavigationFeature,   DisabledInitialNavigationFeature,   InMemoryScrollingFeature,   RouterConfigurationFeature,   RouterHashLocationFeature,   NavigationErrorHandlerFeature, } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, ViewportScroller} from '@angular/common'; import {APP_BOOTSTRAP_LISTENER, ComponentRef, inject, Inject, InjectionToken, ModuleWithProviders, NgModule, NgProbeToken, NgZone, Optional, Provider, SkipSelf, ɵRuntimeError as RuntimeError} from '@angular/core';  import {EmptyOutletComponent} from './components/empty_outlet'; import {RouterLink} from './directives/router_link'; import {RouterLinkActive} from './directives/router_link_active'; import {RouterOutlet} from './directives/router_outlet'; import {RuntimeErrorCode} from './errors'; import {Routes} from './models'; import {NavigationTransitions} from './navigation_transition'; import {getBootstrapListener, rootRoute, ROUTER_IS_PROVIDED, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withPreloading} from './provide_router'; import {Router} from './router'; import {ExtraOptions, ROUTER_CONFIGURATION} from './router_config'; import {RouterConfigLoader, ROUTES} from './router_config_loader'; import {ChildrenOutletContexts} from './router_outlet_context'; import {ROUTER_SCROLLER, RouterScroller} from './router_scroller'; import {ActivatedRoute} from './router_state'; import {DefaultUrlSerializer, UrlSerializer} from './url_tree';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || ngDevMode;  /**  * The directives defined in the `RouterModule`.  */ const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkActive, EmptyOutletComponent];  /**  * @docsNotRequired  */ export const ROUTER_FORROOT_GUARD = new InjectionToken<void>(     NG_DEV_MODE ? 'router duplicate forRoot guard' : 'ROUTER_FORROOT_GUARD');  // TODO(atscott): All of these except `ActivatedRoute` are `providedIn: 'root'`. They are only kept // here to avoid a breaking change whereby the provider order matters based on where the // `RouterModule`/`RouterTestingModule` is imported. These can/should be removed as a \"breaking\" // change in a major version. export const ROUTER_PROVIDERS: Provider[] = [   Location,   {provide: UrlSerializer, useClass: DefaultUrlSerializer},   Router,   ChildrenOutletContexts,   {provide: ActivatedRoute, useFactory: rootRoute, deps: [Router]},   RouterConfigLoader,   // Only used to warn when `provideRoutes` is used without `RouterModule` or `provideRouter`. Can   // be removed when `provideRoutes` is removed.   NG_DEV_MODE ? {provide: ROUTER_IS_PROVIDED, useValue: true} : [], ];  export function routerNgProbeToken() {   return new NgProbeToken('Router', Router); }  /**  * @description  *  * Adds directives and providers for in-app navigation among views defined in an application.  * Use the Angular `Router` service to declaratively specify application states and manage state  * transitions.  *  * You can import this NgModule multiple times, once for each lazy-loaded bundle.  * However, only one `Router` service can be active.  * To ensure this, there are two ways to register routes when importing this module:  *  * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given  * routes, and the `Router` service itself.  * * The `forChild()` method creates an `NgModule` that contains all the directives and the given  * routes, but does not include the `Router` service.  *  * @see [Routing and Navigation guide](guide/router) for an  * overview of how the `Router` service should be used.  *  * @publicApi  */ @NgModule({   imports: ROUTER_DIRECTIVES,   exports: ROUTER_DIRECTIVES, }) export class RouterModule {   constructor(@Optional() @Inject(ROUTER_FORROOT_GUARD) guard: any) {}    /**    * Creates and configures a module with all the router providers and directives.    * Optionally sets up an application listener to perform an initial navigation.    *    * When registering the NgModule at the root, import as follows:    *    * ```    * @NgModule({    *   imports: [RouterModule.forRoot(ROUTES)]    * })    * class MyNgModule {}    * ```    *    * @param routes An array of `Route` objects that define the navigation paths for the application.    * @param config An `ExtraOptions` configuration object that controls how navigation is performed.    * @return The new `NgModule`.    *    */   static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterModule> {     return {       ngModule: RouterModule,       providers: [         ROUTER_PROVIDERS,         NG_DEV_MODE ? (config?.enableTracing ? withDebugTracing().ɵproviders : []) : [],         {provide: ROUTES, multi: true, useValue: routes},         {           provide: ROUTER_FORROOT_GUARD,           useFactory: provideForRootGuard,           deps: [[Router, new Optional(), new SkipSelf()]]         },         {provide: ROUTER_CONFIGURATION, useValue: config ? config : {}},         config?.useHash ? provideHashLocationStrategy() : providePathLocationStrategy(),         provideRouterScroller(),         config?.preloadingStrategy ? withPreloading(config.preloadingStrategy).ɵproviders : [],         {provide: NgProbeToken, multi: true, useFactory: routerNgProbeToken},         config?.initialNavigation ? provideInitialNavigation(config) : [],         provideRouterInitializer(),       ],     };   }    /**    * Creates a module with all the router directives and a provider registering routes,    * without creating a new Router service.    * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:    *    * ```    * @NgModule({    *   imports: [RouterModule.forChild(ROUTES)]    * })    * class MyNgModule {}    * ```    *    * @param routes An array of `Route` objects that define the navigation paths for the submodule.    * @return The new NgModule.    *    */   static forChild(routes: Routes): ModuleWithProviders<RouterModule> {     return {       ngModule: RouterModule,       providers: [{provide: ROUTES, multi: true, useValue: routes}],     };   } }  /**  * For internal use by `RouterModule` only. Note that this differs from `withInMemoryRouterScroller`  * because it reads from the `ExtraOptions` which should not be used in the standalone world.  */ export function provideRouterScroller(): Provider {   return {     provide: ROUTER_SCROLLER,     useFactory: () => {       const viewportScroller = inject(ViewportScroller);       const zone = inject(NgZone);       const config: ExtraOptions = inject(ROUTER_CONFIGURATION);       const transitions = inject(NavigationTransitions);       const urlSerializer = inject(UrlSerializer);       if (config.scrollOffset) {         viewportScroller.setOffset(config.scrollOffset);       }       return new RouterScroller(urlSerializer, transitions, viewportScroller, zone, config);     },   }; }  // Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` should // provide hash location directly via `{provide: LocationStrategy, useClass: HashLocationStrategy}`. function provideHashLocationStrategy(): Provider {   return {provide: LocationStrategy, useClass: HashLocationStrategy}; }  // Note: For internal use only with `RouterModule`. Standalone setup via `provideRouter` does not // need this at all because `PathLocationStrategy` is the default factory for `LocationStrategy`. function providePathLocationStrategy(): Provider {   return {provide: LocationStrategy, useClass: PathLocationStrategy}; }  export function provideForRootGuard(router: Router): any {   if (NG_DEV_MODE && router) {     throw new RuntimeError(         RuntimeErrorCode.FOR_ROOT_CALLED_TWICE,         `The Router was provided more than once. This can happen if 'forRoot' is used outside of the root injector.` +             ` Lazy loaded modules should use RouterModule.forChild() instead.`);   }   return 'guarded'; }  // Note: For internal use only with `RouterModule`. Standalone router setup with `provideRouter` // users call `withXInitialNavigation` directly. function provideInitialNavigation(config: Pick<ExtraOptions, 'initialNavigation'>): Provider[] {   return [     config.initialNavigation === 'disabled' ? withDisabledInitialNavigation().ɵproviders : [],     config.initialNavigation === 'enabledBlocking' ?         withEnabledBlockingInitialNavigation().ɵproviders :         [],   ]; }  // TODO(atscott): This should not be in the public API /**  * A [DI token](guide/glossary/#di-token) for the router initializer that  * is called after the app is bootstrapped.  *  * @publicApi  */ export const ROUTER_INITIALIZER = new InjectionToken<(compRef: ComponentRef<any>) => void>(     NG_DEV_MODE ? 'Router Initializer' : '');  function provideRouterInitializer(): Provider[] {   return [     // ROUTER_INITIALIZER token should be removed. It's public API but shouldn't be. We can just     // have `getBootstrapListener` directly attached to APP_BOOTSTRAP_LISTENER.     {provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener},     {provide: APP_BOOTSTRAP_LISTENER, multi: true, useExisting: ROUTER_INITIALIZER},   ]; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the router package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/index';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["isObservable","isPromise","NG_DEV_MODE","RuntimeError","isRedirectingNavigationCancelingError","isNavigationCancelingError","EmptyOutletComponent","isInjectable","noMatch","NoMatch","applyRedirects","last","applyRedirectsFn","recognize","rxjsLast","recognizeFn","Console","coerceToBoolean","i1.Router","i2.RouterLink","i2.RouterConfigLoader"],"mappings":";;;;;;;;;;;;;;AAYA;;;;AAIG;AACI,MAAM,cAAc,GAAG,UAAU;AAExC;;;;AAIG;AACI,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAmDlD,MAAM,WAAW,CAAA;AAGf,IAAA,WAAA,CAAY,MAAc,EAAA;AACxB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;KAC5B;AAED,IAAA,GAAG,CAAC,IAAY,EAAA;AACd,QAAA,OAAO,MAAM,CAAC,SAAS,C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AAC,iBAAiB,KAAK,UAAU,GAAG,6BAA6B,EAAE,CAAC,UAAU,GAAG,EAAE;AACzF,QAAA,MAAM,CAAC,iBAAiB,KAAK,iBAAiB;AAC1C,YAAA,oCAAoC,EAAE,CAAC,UAAU;YACjD,EAAE;KACP,CAAC;AACJ,CAAC;AAED;AACA;;;;;AAKG;AACU,MAAA,kBAAkB,GAAG,IAAI,cAAc,CAChD,WAAW,GAAG,oBAAoB,GAAG,EAAE,EAAE;AAE7C,SAAS,wBAAwB,GAAA;IAC/B,OAAO;;;AAGL,QAAA,EAAC,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,oBAAoB,EAAC;QAC/D,EAAC,OAAO,EAAE,sBAAsB,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,kBAAkB,EAAC;KAChF,CAAC;AACJ;;ACxNA;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACXtD;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 46 --------------------
{"version":3,"file":"forms.mjs","sources":["../../../../../../packages/forms/src/directives/control_value_accessor.ts","../../../../../../packages/forms/src/directives/checkbox_value_accessor.ts","../../../../../../packages/forms/src/directives/default_value_accessor.ts","../../../../../../packages/forms/src/validators.ts","../../../../../../packages/forms/src/directives/abstract_control_directive.ts","../../../../../../packages/forms/src/directives/ng_control.ts","../../../../../../packages/forms/src/directives/control_container.ts","../../../../../../packages/forms/src/directives/ng_control_status.ts","../../../../../../packages/forms/src/directives/error_examples.ts","../../../../../../packages/forms/src/directives/reactive_errors.ts","../../../../../../packages/forms/src/model/abstract_model.ts","../../../../../../packages/forms/src/model/form_group.ts","../../../../../../packages/forms/src/directives/shared.ts","../../../../../../packages/forms/src/directives/ng_form.ts","../../../../../../packages/forms/src/util.ts","../../../../../../packages/forms/src/model/form_control.ts","../../../../../../packages/forms/src/directives/abstract_form_group_directive.ts","../../../../../../packages/forms/src/directives/template_driven_errors.ts","../../../../../../packages/forms/src/directives/ng_model_group.ts","../../../../../../packages/forms/src/directives/ng_model.ts","../../../../../../packages/forms/src/directives/ng_no_validate_directive.ts","../../../../../../packages/forms/src/directives/number_value_accessor.ts","../../../../../../packages/forms/src/directives/radio_control_value_accessor.ts","../../../../../../packages/forms/src/directives/range_value_accessor.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_control_directive.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_group_directive.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_group_name.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_control_name.ts","../../../../../../packages/forms/src/directives/select_control_value_accessor.ts","../../../../../../packages/forms/src/directives/select_multiple_control_value_accessor.ts","../../../../../../packages/forms/src/directives/validators.ts","../../../../../../packages/forms/src/directives.ts","../../../../../../packages/forms/src/model/form_array.ts","../../../../../../packages/forms/src/form_builder.ts","../../../../../../packages/forms/src/version.ts","../../../../../../packages/forms/src/form_providers.ts","../../../../../../packages/forms/src/forms.ts","../../../../../../packages/forms/public_api.ts","../../../../../../packages/forms/index.ts","../../../../../../packages/forms/forms.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, InjectionToken, Renderer2} from '@angular/core';  /**  * @description  * Defines an interface that acts as a bridge between the Angular forms API and a  * native element in the DOM.  *  * Implement this interface to create a custom form control directive  * that integrates with Angular forms.  *  * @see DefaultValueAccessor  *  * @publicApi  */ export interface ControlValueAccessor {   /**    * @description    * Writes a new value to the element.    *    * This method is called by the forms API to write to the view when programmatic    * changes from model to view are requested.    *    * @usageNotes    * ### Write a value to the element    *    * The following example writes a value to the native DOM element.    *    * ```ts    * writeValue(value: any): void {    *   this._renderer.setProperty(this._elementRef.nativeElement, 'value', value);    * }    * ```    *    * @param obj The new value for the element    */   writeValue(obj: any): void;    /**    * @description    * Registers a callback function that is called when the control's value    * changes in the UI.    *    * This method is called by the forms API on initialization to update the form    * model when values propagate from the view to the model.    *    * When implementing the `registerOnChange` method in your own value accessor,    * save the given function so your class calls it at the appropriate time.    *    * @usageNotes    * ### Store the change function    *    * The following example stores the provided function as an internal method.    *    * ```ts    * registerOnChange(fn: (_: any) => void): void {    *   this._onChange = fn;    * }    * ```    *    * When the value changes in the UI, call the registered    * function to allow the forms API to update itself:    *    * ```ts    * host: {    *    '(change)': '_onChange($event.target.value)'    * }    * ```    *    * @param fn The callback function to register    */   registerOnChange(fn: any): void;    /**    * @description    * Registers a callback function that is called by the forms API on initialization    * to update the form model on blur.    *    * When implementing `registerOnTouched` in your own value accessor, save the given    * function so your class calls it when the control should be considered    * blurred or \"touched\".    *    * @usageNotes    * ### Store the callback function    *    * The following example stores the provided function as an internal method.    *    * ```ts    * registerOnTouched(fn: any): void {    *   this._onTouched = fn;    * }    * ```    *    * On blur (or equivalent), your class should call the registered function to allow    * the forms API to update itself:    *    * ```ts    * host: {    *    '(blur)': '_onTouched()'    * }    * ```    *    * @param fn The callback function to register    */   registerOnTouched(fn: any): void;    /**    * @description    * Function that is called by the forms API when the control status changes to    * or from 'DISABLED'. Depending on the status, it enables or disables the    * appropriate DOM element.    *    * @usageNotes    * The following is an example of writing the disabled property to a native DOM element:    *    * ```ts    * setDisabledState(isDisabled: boolean): void {    *   this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);    * }    * ```    *    * @param isDisabled The disabled status to set on the element    */   setDisabledState?(isDisabled: boolean): void; }  /**  * Base class for all ControlValueAccessor classes defined in Forms package.  * Contains common logic and utility functions.  *  * Note: this is an *internal-only* class and should not be extended or used directly in  * applications code.  */ @Directive() export class BaseControlValueAccessor {   /**    * The registered callback function called when a change or input event occurs on the input    * element.    * @nodoc    */   onChange = (_: any) => {};    /**    * The registered callback function called when a blur event occurs on the input element.    * @nodoc    */   onTouched = () => {};    constructor(private _renderer: Renderer2, private _elementRef: ElementRef) {}    /**    * Helper method that sets a property on a target element using the current Renderer    * implementation.    * @nodoc    */   protected setProperty(key: string, value: any): void {     this._renderer.setProperty(this._elementRef.nativeElement, key, value);   }    /**    * Registers a function called when the control is touched.    * @nodoc    */   registerOnTouched(fn: () => void): void {     this.onTouched = fn;   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   registerOnChange(fn: (_: any) => {}): void {     this.onChange = fn;   }    /**    * Sets the \"disabled\" property on the range input element.    * @nodoc    */   setDisabledState(isDisabled: boolean): void {     this.setProperty('disabled', isDisabled);   } }  /**  * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is  * used in case no other CVAs can be found). We use this class to distinguish between default CVA,  * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom  * ones with higher priority (when both built-in and custom CVAs are present).  *  * Note: this is an *internal-only* class and should not be extended or used directly in  * applications code.  */ @Directive() export class BuiltInControlValueAccessor extends BaseControlValueAccessor { }  /**  * Used to provide a `ControlValueAccessor` for form controls.  *  * See `DefaultValueAccessor` for how to implement one.  *  * @publicApi  */ export const NG_VALUE_ACCESSOR =     new InjectionToken<ReadonlyArray<ControlValueAccessor>>('NgValueAccessor'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Provider} from '@angular/core';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const CHECKBOX_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => CheckboxControlValueAccessor),   multi: true, };  /**  * @description  * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input  * element.  *  * @usageNotes  *  * ### Using a checkbox with a reactive form.  *  * The following example shows how to use a checkbox with a reactive form.  *  * ```ts  * const rememberLoginControl = new FormControl();  * ```  *  * ```  * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',   host: {'(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()'},   providers: [CHECKBOX_VALUE_ACCESSOR] }) export class CheckboxControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * Sets the \"checked\" property on the input element.    * @nodoc    */   writeValue(value: any): void {     this.setProperty('checked', value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {Directive, ElementRef, forwardRef, Inject, InjectionToken, Optional, Renderer2} from '@angular/core';  import {BaseControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  export const DEFAULT_VALUE_ACCESSOR: any = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => DefaultValueAccessor),   multi: true };  /**  * We must check whether the agent is Android because composition events  * behave differently between iOS and Android.  */ function _isAndroid(): boolean {   const userAgent = getDOM() ? getDOM().getUserAgent() : '';   return /android (\\d+)/.test(userAgent.toLowerCase()); }  /**  * @description  * Provide this token to control if form directives buffer IME input until  * the \"compositionend\" event occurs.  * @publicApi  */ export const COMPOSITION_BUFFER_MODE = new InjectionToken<boolean>('CompositionEventMode');  /**  * The default `ControlValueAccessor` for writing a value and listening to changes on input  * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * {@searchKeywords ngDefaultControl}  *  * @usageNotes  *  * ### Using the default value accessor  *  * The following example shows how to use an input element that activates the default value accessor  * (in this case, a text field).  *  * ```ts  * const firstNameControl = new FormControl();  * ```  *  * ```  * <input type=\"text\" [formControl]=\"firstNameControl\">  * ```  *  * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but  * you could also use it for custom components that have similar behavior and do not require special  * processing. In order to attach the default value accessor to a custom element, add the  * `ngDefaultControl` attribute as shown below.  *  * ```  * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',   // TODO: vsavkin replace the above selector with the one below it once   // https://github.com/angular/angular/issues/3011 is implemented   // selector: '[ngModel],[formControl],[formControlName]',   host: {     '(input)': '$any(this)._handleInput($event.target.value)',     '(blur)': 'onTouched()',     '(compositionstart)': '$any(this)._compositionStart()',     '(compositionend)': '$any(this)._compositionEnd($event.target.value)'   },   providers: [DEFAULT_VALUE_ACCESSOR] }) export class DefaultValueAccessor extends BaseControlValueAccessor implements ControlValueAccessor {   /** Whether the user is creating a composition string (IME events). */   private _composing = false;    constructor(       renderer: Renderer2, elementRef: ElementRef,       @Optional() @Inject(COMPOSITION_BUFFER_MODE) private _compositionMode: boolean) {     super(renderer, elementRef);     if (this._compositionMode == null) {       this._compositionMode = !_isAndroid();     }   }    /**    * Sets the \"value\" property on the input element.    * @nodoc    */   writeValue(value: any): void {     const normalizedValue = value == null ? '' : value;     this.setProperty('value', normalizedValue);   }    /** @internal */   _handleInput(value: any): void {     if (!this._compositionMode || (this._compositionMode && !this._composing)) {       this.onChange(value);     }   }    /** @internal */   _compositionStart(): void {     this._composing = true;   }    /** @internal */   _compositionEnd(value: any): void {     this._composing = false;     this._compositionMode && this.onChange(value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken, ɵisObservable as isObservable, ɵisPromise as isPromise, ɵRuntimeError as RuntimeError} from '@angular/core'; import {forkJoin, from, Observable} from 'rxjs'; import {map} from 'rxjs/operators';  import {AsyncValidator, AsyncValidatorFn, ValidationErrors, Validator, ValidatorFn} from './directives/validators'; import {RuntimeErrorCode} from './errors'; import {AbstractControl} from './model/abstract_model';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  function isEmptyInputValue(value: any): boolean {   /**    * Check if the object is a string or array before evaluating the length attribute.    * This avoids falsely rejecting objects that contain a custom length attribute.    * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.    */   return value == null ||       ((typeof value === 'string' || Array.isArray(value)) && value.length === 0); }  function hasValidLength(value: any): boolean {   // non-strict comparison is intentional, to check for both `null` and `undefined` values   return value != null && typeof value.length === 'number'; }  /**  * @description  * An `InjectionToken` for registering additional synchronous validators used with  * `AbstractControl`s.  *  * @see `NG_ASYNC_VALIDATORS`  *  * @usageNotes  *  * ### Providing a custom validator  *  * The following example registers a custom validator directive. Adding the validator to the  * existing collection of validators requires the `multi: true` option.  *  * ```typescript  * @Directive({  *   selector: '[customValidator]',  *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]  * })  * class CustomValidatorDirective implements Validator {  *   validate(control: AbstractControl): ValidationErrors | null {  *     return { 'custom': true };  *   }  * }  * ```  *  * @publicApi  */ export const NG_VALIDATORS = new InjectionToken<Array<Validator|Function>>('NgValidators');  /**  * @description  * An `InjectionToken` for registering additional asynchronous validators used with  * `AbstractControl`s.  *  * @see `NG_VALIDATORS`  *  * @usageNotes  *  * ### Provide a custom async validator directive  *  * The following example implements the `AsyncValidator` interface to create an  * async validator directive with a custom error key.  *  * ```typescript  * @Directive({  *   selector: '[customAsyncValidator]',  *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:  * true}]  * })  * class CustomAsyncValidatorDirective implements AsyncValidator {  *   validate(control: AbstractControl): Promise<ValidationErrors|null> {  *     return Promise.resolve({'custom': true});  *   }  * }  * ```  *  * @publicApi  */ export const NG_ASYNC_VALIDATORS =     new InjectionToken<Array<Validator|Function>>('NgAsyncValidators');  /**  * A regular expression that matches valid e-mail addresses.  *  * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:  * - `local-part` consists of one or more of the allowed characters (alphanumeric and some  *   punctuation symbols).  * - `local-part` cannot begin or end with a period (`.`).  * - `local-part` cannot be longer than 64 characters.  * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or  *   `foo.com`.  * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and  *   periods (`.`)).  * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).  * - A `label` cannot be longer than 63 characters.  * - The whole address cannot be longer than 254 characters.  *  * ## Implementation background  *  * This regexp was ported over from AngularJS (see there for git history):  * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27  * It is based on the  * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with  * some enhancements to incorporate more RFC rules (such as rules related to domain names and the  * lengths of different parts of the address). The main differences from the WHATWG version are:  *   - Disallow `local-part` to begin or end with a period (`.`).  *   - Disallow `local-part` length to exceed 64 characters.  *   - Disallow total address length to exceed 254 characters.  *  * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.  */ const EMAIL_REGEXP =     /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;  /**  * @description  * Provides a set of built-in validators that can be used by form controls.  *  * A validator is a function that processes a `FormControl` or collection of  * controls and returns an error map or null. A null map means that validation has passed.  *  * @see [Form Validation](/guide/form-validation)  *  * @publicApi  */ export class Validators {   /**    * @description    * Validator that requires the control's value to be greater than or equal to the provided number.    *    * @usageNotes    *    * ### Validate against a minimum of 3    *    * ```typescript    * const control = new FormControl(2, Validators.min(3));    *    * console.log(control.errors); // {min: {min: 3, actual: 2}}    * ```    *    * @returns A validator function that returns an error map with the    * `min` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static min(min: number): ValidatorFn {     return minValidator(min);   }    /**    * @description    * Validator that requires the control's value to be less than or equal to the provided number.    *    * @usageNotes    *    * ### Validate against a maximum of 15    *    * ```typescript    * const control = new FormControl(16, Validators.max(15));    *    * console.log(control.errors); // {max: {max: 15, actual: 16}}    * ```    *    * @returns A validator function that returns an error map with the    * `max` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static max(max: number): ValidatorFn {     return maxValidator(max);   }    /**    * @description    * Validator that requires the control have a non-empty value.    *    * @usageNotes    *    * ### Validate that the field is non-empty    *    * ```typescript    * const control = new FormControl('', Validators.required);    *    * console.log(control.errors); // {required: true}    * ```    *    * @returns An error map with the `required` property    * if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static required(control: AbstractControl): ValidationErrors|null {     return requiredValidator(control);   }    /**    * @description    * Validator that requires the control's value be true. This validator is commonly    * used for required checkboxes.    *    * @usageNotes    *    * ### Validate that the field value is true    *    * ```typescript    * const control = new FormControl('some value', Validators.requiredTrue);    *    * console.log(control.errors); // {required: true}    * ```    *    * @returns An error map that contains the `required` property    * set to `true` if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static requiredTrue(control: AbstractControl): ValidationErrors|null {     return requiredTrueValidator(control);   }    /**    * @description    * Validator that requires the control's value pass an email validation test.    *    * Tests the value using a [regular    * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)    * pattern suitable for common use cases. The pattern is based on the definition of a valid email    * address in the [WHATWG HTML    * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with    * some enhancements to incorporate more RFC rules (such as rules related to domain names and the    * lengths of different parts of the address).    *    * The differences from the WHATWG version include:    * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).    * - Disallow `local-part` to be longer than 64 characters.    * - Disallow the whole address to be longer than 254 characters.    *    * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to    * validate the value against a different pattern.    *    * @usageNotes    *    * ### Validate that the field matches a valid email pattern    *    * ```typescript    * const control = new FormControl('bad@', Validators.email);    *    * console.log(control.errors); // {email: true}    * ```    *    * @returns An error map with the `email` property    * if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static email(control: AbstractControl): ValidationErrors|null {     return emailValidator(control);   }    /**    * @description    * Validator that requires the length of the control's value to be greater than or equal    * to the provided minimum length. This validator is also provided by default if you use the    * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used    * only for types that have a numeric `length` property, such as strings or arrays. The    * `minLength` validator logic is also not invoked for values when their `length` property is 0    * (for example in case of an empty string or an empty array), to support optional controls. You    * can use the standard `required` validator if empty values should not be considered valid.    *    * @usageNotes    *    * ### Validate that the field has a minimum of 3 characters    *    * ```typescript    * const control = new FormControl('ng', Validators.minLength(3));    *    * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}    * ```    *    * ```html    * <input minlength=\"5\">    * ```    *    * @returns A validator function that returns an error map with the    * `minlength` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static minLength(minLength: number): ValidatorFn {     return minLengthValidator(minLength);   }    /**    * @description    * Validator that requires the length of the control's value to be less than or equal    * to the provided maximum length. This validator is also provided by default if you use the    * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used    * only for types that have a numeric `length` property, such as strings or arrays.    *    * @usageNotes    *    * ### Validate that the field has maximum of 5 characters    *    * ```typescript    * const control = new FormControl('Angular', Validators.maxLength(5));    *    * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}    * ```    *    * ```html    * <input maxlength=\"5\">    * ```    *    * @returns A validator function that returns an error map with the    * `maxlength` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static maxLength(maxLength: number): ValidatorFn {     return maxLengthValidator(maxLength);   }    /**    * @description    * Validator that requires the control's value to match a regex pattern. This validator is also    * provided by default if you use the HTML5 `pattern` attribute.    *    * @usageNotes    *    * ### Validate that the field only contains letters or spaces    *    * ```typescript    * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));    *    * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}    * ```    *    * ```html    * <input pattern=\"[a-zA-Z ]*\">    * ```    *    * ### Pattern matching with the global or sticky flag    *    * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`    * can produce different results on the same input when validations are run consecutively. This is    * due to how the behavior of `RegExp.prototype.test` is    * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)    * (`RegExp` preserves the index of the last match when the global or sticky flag is used).    * Due to this behavior, it is recommended that when using    * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky    * flag enabled.    *    * ```typescript    * // Not recommended (since the `g` flag is used)    * const controlOne = new FormControl('1', Validators.pattern(/foo/g));    *    * // Good    * const controlTwo = new FormControl('1', Validators.pattern(/foo/));    * ```    *    * @param pattern A regular expression to be used as is to test the values, or a string.    * If a string is passed, the `^` character is prepended and the `$` character is    * appended to the provided string (if not already present), and the resulting regular    * expression is used to test the values.    *    * @returns A validator function that returns an error map with the    * `pattern` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static pattern(pattern: string|RegExp): ValidatorFn {     return patternValidator(pattern);   }    /**    * @description    * Validator that performs no operation.    *    * @see `updateValueAndValidity()`    *    */   static nullValidator(control: AbstractControl): ValidationErrors|null {     return nullValidator(control);   }    /**    * @description    * Compose multiple validators into a single function that returns the union    * of the individual error maps for the provided control.    *    * @returns A validator function that returns an error map with the    * merged error maps of the validators if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static compose(validators: null): null;   static compose(validators: (ValidatorFn|null|undefined)[]): ValidatorFn|null;   static compose(validators: (ValidatorFn|null|undefined)[]|null): ValidatorFn|null {     return compose(validators);   }    /**    * @description    * Compose multiple async validators into a single function that returns the union    * of the individual error objects for the provided control.    *    * @returns A validator function that returns an error map with the    * merged error objects of the async validators if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static composeAsync(validators: (AsyncValidatorFn|null)[]): AsyncValidatorFn|null {     return composeAsync(validators);   } }  /**  * Validator that requires the control's value to be greater than or equal to the provided number.  * See `Validators.min` for additional information.  */ export function minValidator(min: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {       return null;  // don't validate empty values to allow optional controls     }     const value = parseFloat(control.value);     // Controls with NaN values after parsing should be treated as not having a     // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min     return !isNaN(value) && value < min ? {'min': {'min': min, 'actual': control.value}} : null;   }; }  /**  * Validator that requires the control's value to be less than or equal to the provided number.  * See `Validators.max` for additional information.  */ export function maxValidator(max: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {       return null;  // don't validate empty values to allow optional controls     }     const value = parseFloat(control.value);     // Controls with NaN values after parsing should be treated as not having a     // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max     return !isNaN(value) && value > max ? {'max': {'max': max, 'actual': control.value}} : null;   }; }  /**  * Validator that requires the control have a non-empty value.  * See `Validators.required` for additional information.  */ export function requiredValidator(control: AbstractControl): ValidationErrors|null {   return isEmptyInputValue(control.value) ? {'required': true} : null; }  /**  * Validator that requires the control's value be true. This validator is commonly  * used for required checkboxes.  * See `Validators.requiredTrue` for additional information.  */ export function requiredTrueValidator(control: AbstractControl): ValidationErrors|null {   return control.value === true ? null : {'required': true}; }  /**  * Validator that requires the control's value pass an email validation test.  * See `Validators.email` for additional information.  */ export function emailValidator(control: AbstractControl): ValidationErrors|null {   if (isEmptyInputValue(control.value)) {     return null;  // don't validate empty values to allow optional controls   }   return EMAIL_REGEXP.test(control.value) ? null : {'email': true}; }  /**  * Validator that requires the length of the control's value to be greater than or equal  * to the provided minimum length. See `Validators.minLength` for additional information.  */ export function minLengthValidator(minLength: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {       // don't validate empty values to allow optional controls       // don't validate values without `length` property       return null;     }      return control.value.length < minLength ?         {'minlength': {'requiredLength': minLength, 'actualLength': control.value.length}} :         null;   }; }  /**  * Validator that requires the length of the control's value to be less than or equal  * to the provided maximum length. See `Validators.maxLength` for additional information.  */ export function maxLengthValidator(maxLength: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     return hasValidLength(control.value) && control.value.length > maxLength ?         {'maxlength': {'requiredLength': maxLength, 'actualLength': control.value.length}} :         null;   }; }  /**  * Validator that requires the control's value to match a regex pattern.  * See `Validators.pattern` for additional information.  */ export function patternValidator(pattern: string|RegExp): ValidatorFn {   if (!pattern) return nullValidator;   let regex: RegExp;   let regexStr: string;   if (typeof pattern === 'string') {     regexStr = '';      if (pattern.charAt(0) !== '^') regexStr += '^';      regexStr += pattern;      if (pattern.charAt(pattern.length - 1) !== '$') regexStr += '$';      regex = new RegExp(regexStr);   } else {     regexStr = pattern.toString();     regex = pattern;   }   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value)) {       return null;  // don't validate empty values to allow optional controls     }     const value: string = control.value;     return regex.test(value) ? null :                                {'pattern': {'requiredPattern': regexStr, 'actualValue': value}};   }; }  /**  * Function that has `ValidatorFn` shape, but performs no operation.  */ export function nullValidator(control: AbstractControl): ValidationErrors|null {   return null; }  function isPresent(o: any): boolean {   return o != null; }  export function toObservable(value: any): Observable<any> {   const obs = isPromise(value) ? from(value) : value;   if (NG_DEV_MODE && !(isObservable(obs))) {     let errorMessage = `Expected async validator to return Promise or Observable.`;     // A synchronous validator will return object or null.     if (typeof value === 'object') {       errorMessage +=           ' Are you using a synchronous validator where an async validator is expected?';     }     throw new RuntimeError(RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE, errorMessage);   }   return obs; }  function mergeErrors(arrayOfErrors: (ValidationErrors|null)[]): ValidationErrors|null {   let res: {[key: string]: any} = {};   arrayOfErrors.forEach((errors: ValidationErrors|null) => {     res = errors != null ? {...res!, ...errors} : res!;   });    return Object.keys(res).length === 0 ? null : res; }  type GenericValidatorFn = (control: AbstractControl) => any;  function executeValidators<V extends GenericValidatorFn>(     control: AbstractControl, validators: V[]): ReturnType<V>[] {   return validators.map(validator => validator(control)); }  function isValidatorFn<V>(validator: V|Validator|AsyncValidator): validator is V {   return !(validator as Validator).validate; }  /**  * Given the list of validators that may contain both functions as well as classes, return the list  * of validator functions (convert validator classes into validator functions). This is needed to  * have consistent structure in validators list before composing them.  *  * @param validators The set of validators that may contain validators both in plain function form  *     as well as represented as a validator class.  */ export function normalizeValidators<V>(validators: (V|Validator|AsyncValidator)[]): V[] {   return validators.map(validator => {     return isValidatorFn<V>(validator) ?         validator :         ((c: AbstractControl) => validator.validate(c)) as unknown as V;   }); }  /**  * Merges synchronous validators into a single validator function.  * See `Validators.compose` for additional information.  */ function compose(validators: (ValidatorFn|null|undefined)[]|null): ValidatorFn|null {   if (!validators) return null;   const presentValidators: ValidatorFn[] = validators.filter(isPresent) as any;   if (presentValidators.length == 0) return null;    return function(control: AbstractControl) {     return mergeErrors(executeValidators<ValidatorFn>(control, presentValidators));   }; }  /**  * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),  * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single  * validator function.  */ export function composeValidators(validators: Array<Validator|ValidatorFn>): ValidatorFn|null {   return validators != null ? compose(normalizeValidators<ValidatorFn>(validators)) : null; }  /**  * Merges asynchronous validators into a single validator function.  * See `Validators.composeAsync` for additional information.  */ function composeAsync(validators: (AsyncValidatorFn|null)[]): AsyncValidatorFn|null {   if (!validators) return null;   const presentValidators: AsyncValidatorFn[] = validators.filter(isPresent) as any;   if (presentValidators.length == 0) return null;    return function(control: AbstractControl) {     const observables =         executeValidators<AsyncValidatorFn>(control, presentValidators).map(toObservable);     return forkJoin(observables).pipe(map(mergeErrors));   }; }  /**  * Accepts a list of async validators of different possible shapes (`AsyncValidator` and  * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges  * them into a single validator function.  */ export function composeAsyncValidators(validators: Array<AsyncValidator|AsyncValidatorFn>):     AsyncValidatorFn|null {   return validators != null ? composeAsync(normalizeValidators<AsyncValidatorFn>(validators)) :                               null; }  /**  * Merges raw control validators with a given directive validator and returns the combined list of  * validators as an array.  */ export function mergeValidators<V>(controlValidators: V|V[]|null, dirValidator: V): V[] {   if (controlValidators === null) return [dirValidator];   return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] :                                             [controlValidators, dirValidator]; }  /**  * Retrieves the list of raw synchronous validators attached to a given control.  */ export function getControlValidators(control: AbstractControl): ValidatorFn|ValidatorFn[]|null {   return (control as any)._rawValidators as ValidatorFn | ValidatorFn[] | null; }  /**  * Retrieves the list of raw asynchronous validators attached to a given control.  */ export function getControlAsyncValidators(control: AbstractControl): AsyncValidatorFn|     AsyncValidatorFn[]|null {   return (control as any)._rawAsyncValidators as AsyncValidatorFn | AsyncValidatorFn[] | null; }  /**  * Accepts a singleton validator, an array, or null, and returns an array type with the provided  * validators.  *  * @param validators A validator, validators, or null.  * @returns A validators array.  */ export function makeValidatorsArray<T extends ValidatorFn|AsyncValidatorFn>(validators: T|T[]|                                                                             null): T[] {   if (!validators) return [];   return Array.isArray(validators) ? validators : [validators]; }  /**  * Determines whether a validator or validators array has a given validator.  *  * @param validators The validator or validators to compare against.  * @param validator The validator to check.  * @returns Whether the validator is present.  */ export function hasValidator<T extends ValidatorFn|AsyncValidatorFn>(     validators: T|T[]|null, validator: T): boolean {   return Array.isArray(validators) ? validators.includes(validator) : validators === validator; }  /**  * Combines two arrays of validators into one. If duplicates are provided, only one will be added.  *  * @param validators The new validators.  * @param currentValidators The base array of current validators.  * @returns An array of validators.  */ export function addValidators<T extends ValidatorFn|AsyncValidatorFn>(     validators: T|T[], currentValidators: T|T[]|null): T[] {   const current = makeValidatorsArray(currentValidators);   const validatorsToAdd = makeValidatorsArray(validators);   validatorsToAdd.forEach((v: T) => {     // Note: if there are duplicate entries in the new validators array,     // only the first one would be added to the current list of validators.     // Duplicate ones would be ignored since `hasValidator` would detect     // the presence of a validator function and we update the current list in place.     if (!hasValidator(current, v)) {       current.push(v);     }   });   return current; }  export function removeValidators<T extends ValidatorFn|AsyncValidatorFn>(     validators: T|T[], currentValidators: T|T[]|null): T[] {   return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Observable} from 'rxjs';  import {AbstractControl} from '../model/abstract_model'; import {composeAsyncValidators, composeValidators} from '../validators';  import {AsyncValidator, AsyncValidatorFn, ValidationErrors, Validator, ValidatorFn} from './validators';   /**  * @description  * Base class for control directives.  *  * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.  *  * @publicApi  */ export abstract class AbstractControlDirective {   /**    * @description    * A reference to the underlying control.    *    * @returns the control that backs this directive. Most properties fall through to that instance.    */   abstract get control(): AbstractControl|null;    /**    * @description    * Reports the value of the control if it is present, otherwise null.    */   get value(): any {     return this.control ? this.control.value : null;   }    /**    * @description    * Reports whether the control is valid. A control is considered valid if no    * validation errors exist with the current value.    * If the control is not present, null is returned.    */   get valid(): boolean|null {     return this.control ? this.control.valid : null;   }    /**    * @description    * Reports whether the control is invalid, meaning that an error exists in the input value.    * If the control is not present, null is returned.    */   get invalid(): boolean|null {     return this.control ? this.control.invalid : null;   }    /**    * @description    * Reports whether a control is pending, meaning that that async validation is occurring and    * errors are not yet available for the input value. If the control is not present, null is    * returned.    */   get pending(): boolean|null {     return this.control ? this.control.pending : null;   }    /**    * @description    * Reports whether the control is disabled, meaning that the control is disabled    * in the UI and is exempt from validation checks and excluded from aggregate    * values of ancestor controls. If the control is not present, null is returned.    */   get disabled(): boolean|null {     return this.control ? this.control.disabled : null;   }    /**    * @description    * Reports whether the control is enabled, meaning that the control is included in ancestor    * calculations of validity or value. If the control is not present, null is returned.    */   get enabled(): boolean|null {     return this.control ? this.control.enabled : null;   }    /**    * @description    * Reports the control's validation errors. If the control is not present, null is returned.    */   get errors(): ValidationErrors|null {     return this.control ? this.control.errors : null;   }    /**    * @description    * Reports whether the control is pristine, meaning that the user has not yet changed    * the value in the UI. If the control is not present, null is returned.    */   get pristine(): boolean|null {     return this.control ? this.control.pristine : null;   }    /**    * @description    * Reports whether the control is dirty, meaning that the user has changed    * the value in the UI. If the control is not present, null is returned.    */   get dirty(): boolean|null {     return this.control ? this.control.dirty : null;   }    /**    * @description    * Reports whether the control is touched, meaning that the user has triggered    * a `blur` event on it. If the control is not present, null is returned.    */   get touched(): boolean|null {     return this.control ? this.control.touched : null;   }    /**    * @description    * Reports the validation status of the control. Possible values include:    * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.    * If the control is not present, null is returned.    */   get status(): string|null {     return this.control ? this.control.status : null;   }    /**    * @description    * Reports whether the control is untouched, meaning that the user has not yet triggered    * a `blur` event on it. If the control is not present, null is returned.    */   get untouched(): boolean|null {     return this.control ? this.control.untouched : null;   }    /**    * @description    * Returns a multicasting observable that emits a validation status whenever it is    * calculated for the control. If the control is not present, null is returned.    */   get statusChanges(): Observable<any>|null {     return this.control ? this.control.statusChanges : null;   }    /**    * @description    * Returns a multicasting observable of value changes for the control that emits every time the    * value of the control changes in the UI or programmatically.    * If the control is not present, null is returned.    */   get valueChanges(): Observable<any>|null {     return this.control ? this.control.valueChanges : null;   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   get path(): string[]|null {     return null;   }    /**    * Contains the result of merging synchronous validators into a single validator function    * (combined using `Validators.compose`).    */   private _composedValidatorFn: ValidatorFn|null|undefined;    /**    * Contains the result of merging asynchronous validators into a single validator function    * (combined using `Validators.composeAsync`).    */   private _composedAsyncValidatorFn: AsyncValidatorFn|null|undefined;    /**    * Set of synchronous validators as they were provided while calling `setValidators` function.    * @internal    */   _rawValidators: Array<Validator|ValidatorFn> = [];    /**    * Set of asynchronous validators as they were provided while calling `setAsyncValidators`    * function.    * @internal    */   _rawAsyncValidators: Array<AsyncValidator|AsyncValidatorFn> = [];    /**    * Sets synchronous validators for this directive.    * @internal    */   _setValidators(validators: Array<Validator|ValidatorFn>|undefined): void {     this._rawValidators = validators || [];     this._composedValidatorFn = composeValidators(this._rawValidators);   }    /**    * Sets asynchronous validators for this directive.    * @internal    */   _setAsyncValidators(validators: Array<AsyncValidator|AsyncValidatorFn>|undefined): void {     this._rawAsyncValidators = validators || [];     this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);   }    /**    * @description    * Synchronous validator function composed of all the synchronous validators registered with this    * directive.    */   get validator(): ValidatorFn|null {     return this._composedValidatorFn || null;   }    /**    * @description    * Asynchronous validator function composed of all the asynchronous validators registered with    * this directive.    */   get asyncValidator(): AsyncValidatorFn|null {     return this._composedAsyncValidatorFn || null;   }    /*    * The set of callbacks to be invoked when directive instance is being destroyed.    */   private _onDestroyCallbacks: (() => void)[] = [];    /**    * Internal function to register callbacks that should be invoked    * when directive instance is being destroyed.    * @internal    */   _registerOnDestroy(fn: () => void): void {     this._onDestroyCallbacks.push(fn);   }    /**    * Internal function to invoke all registered \"on destroy\" callbacks.    * Note: calling this function also clears the list of callbacks.    * @internal    */   _invokeOnDestroyCallbacks(): void {     this._onDestroyCallbacks.forEach(fn => fn());     this._onDestroyCallbacks = [];   }    /**    * @description    * Resets the control with the provided value if the control is present.    */   reset(value: any = undefined): void {     if (this.control) this.control.reset(value);   }    /**    * @description    * Reports whether the control with the given path has the error specified.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * If no path is given, this method checks for the error on the current control.    *    * @returns whether the given error is present in the control at the given path.    *    * If the control is not present, false is returned.    */   hasError(errorCode: string, path?: Array<string|number>|string): boolean {     return this.control ? this.control.hasError(errorCode, path) : false;   }    /**    * @description    * Reports error data for the control with the given path.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * @returns error data for that particular error. If the control or error is not present,    * null is returned.    */   getError(errorCode: string, path?: Array<string|number>|string): any {     return this.control ? this.control.getError(errorCode, path) : null;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AbstractControlDirective} from './abstract_control_directive'; import {ControlContainer} from './control_container'; import {ControlValueAccessor} from './control_value_accessor';   /**  * @description  * A base class that all `FormControl`-based directives extend. It binds a `FormControl`  * object to a DOM element.  *  * @publicApi  */ export abstract class NgControl extends AbstractControlDirective {   /**    * @description    * The parent form for the control.    *    * @internal    */   _parent: ControlContainer|null = null;    /**    * @description    * The name for the control    */   name: string|number|null = null;    /**    * @description    * The value accessor for the control    */   valueAccessor: ControlValueAccessor|null = null;    /**    * @description    * The callback method to update the model from the view when requested    *    * @param newValue The new value for the view    */   abstract viewToModelUpdate(newValue: any): void; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AbstractControlDirective} from './abstract_control_directive'; import {Form} from './form_interface';   /**  * @description  * A base class for directives that contain multiple registered instances of `NgControl`.  * Only used by the forms module.  *  * @publicApi  */ export abstract class ControlContainer extends AbstractControlDirective {   /**    * @description    * The name for the control    */   // TODO(issue/24571): remove '!'.   name!: string|number|null;    /**    * @description    * The top-level form directive for the control.    */   get formDirective(): Form|null {     return null;   }    /**    * @description    * The path to this group.    */   override get path(): string[]|null {     return null;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, Optional, Self} from '@angular/core';  import {AbstractControlDirective} from './abstract_control_directive'; import {ControlContainer} from './control_container'; import {NgControl} from './ng_control';  // DO NOT REFACTOR! // Each status is represented by a separate function to make sure that // advanced Closure Compiler optimizations related to property renaming // can work correctly. export class AbstractControlStatus {   private _cd: AbstractControlDirective|null;    constructor(cd: AbstractControlDirective|null) {     this._cd = cd;   }    protected get isTouched() {     return !!this._cd?.control?.touched;   }    protected get isUntouched() {     return !!this._cd?.control?.untouched;   }    protected get isPristine() {     return !!this._cd?.control?.pristine;   }    protected get isDirty() {     return !!this._cd?.control?.dirty;   }    protected get isValid() {     return !!this._cd?.control?.valid;   }    protected get isInvalid() {     return !!this._cd?.control?.invalid;   }    protected get isPending() {     return !!this._cd?.control?.pending;   }    protected get isSubmitted() {     // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but     // we avoid instanceof checks to prevent non-tree-shakable references to those types.     return !!(this._cd as unknown as {submitted: boolean} | null)?.submitted;   } }  export const ngControlStatusHost = {   '[class.ng-untouched]': 'isUntouched',   '[class.ng-touched]': 'isTouched',   '[class.ng-pristine]': 'isPristine',   '[class.ng-dirty]': 'isDirty',   '[class.ng-valid]': 'isValid',   '[class.ng-invalid]': 'isInvalid',   '[class.ng-pending]': 'isPending', };  export const ngGroupStatusHost = {   ...ngControlStatusHost,   '[class.ng-submitted]': 'isSubmitted', };  /**  * @description  * Directive automatically applied to Angular form controls that sets CSS classes  * based on control status.  *  * @usageNotes  *  * ### CSS classes applied  *  * The following classes are applied as the properties become true:  *  * * ng-valid  * * ng-invalid  * * ng-pending  * * ng-pristine  * * ng-dirty  * * ng-untouched  * * ng-touched  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost}) export class NgControlStatus extends AbstractControlStatus {   constructor(@Self() cd: NgControl) {     super(cd);   } }  /**  * @description  * Directive automatically applied to Angular form groups that sets CSS classes  * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional  * class ng-submitted.  *  * @see `NgControlStatus`  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',   host: ngGroupStatusHost }) export class NgControlStatusGroup extends AbstractControlStatus {   constructor(@Optional() @Self() cd: ControlContainer) {     super(cd);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export const formControlNameExample = `   <div [formGroup]=\"myGroup\">     <input formControlName=\"firstName\">   </div>    In your class:    this.myGroup = new FormGroup({       firstName: new FormControl()   });`;  export const formGroupNameExample = `   <div [formGroup]=\"myGroup\">       <div formGroupName=\"person\">         <input formControlName=\"firstName\">       </div>   </div>    In your class:    this.myGroup = new FormGroup({       person: new FormGroup({ firstName: new FormControl() })   });`;  export const formArrayNameExample = `   <div [formGroup]=\"myGroup\">     <div formArrayName=\"cities\">       <div *ngFor=\"let city of cityArray.controls; index as i\">         <input [formControlName]=\"i\">       </div>     </div>   </div>    In your class:    this.cityArray = new FormArray([new FormControl('SF')]);   this.myGroup = new FormGroup({     cities: this.cityArray   });`;  export const ngModelGroupExample = `   <form>       <div ngModelGroup=\"person\">         <input [(ngModel)]=\"person.name\" name=\"firstName\">       </div>   </form>`;  export const ngModelWithFormGroupExample = `   <div [formGroup]=\"myGroup\">       <input formControlName=\"firstName\">       <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">   </div> `; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {formArrayNameExample, formControlNameExample, formGroupNameExample, ngModelGroupExample} from './error_examples';   export function controlParentException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT,       `formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup       directive and pass it an existing FormGroup instance (you can create one in your class).      Example:      ${formControlNameExample}`); }  export function ngModelGroupException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP,       `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents       that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.        Option 1:  Update the parent to be formGroupName (reactive form strategy)        ${formGroupNameExample}        Option 2: Use ngModel instead of formControlName (template-driven strategy)        ${ngModelGroupExample}`); }  export function missingFormException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE,       `formGroup expects a FormGroup instance. Please pass one in.        Example:        ${formControlNameExample}`); }  export function groupParentException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT,       `formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup     directive and pass it an existing FormGroup instance (you can create one in your class).      Example:      ${formGroupNameExample}`); }  export function arrayParentException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT,       `formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup       directive and pass it an existing FormGroup instance (you can create one in your class).        Example:        ${formArrayNameExample}`); }  export const disabledAttrWarning = `   It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true   when you set up this control in your component class, the disabled attribute will actually be set in the DOM for   you. We recommend using this approach to avoid 'changed after checked' errors.    Example:   // Specify the \\`disabled\\` property at control creation time:   form = new FormGroup({     first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),     last: new FormControl('Drew', Validators.required)   });    // Controls can also be enabled/disabled after creation:   form.get('first')?.enable();   form.get('last')?.disable(); `;  export const asyncValidatorsDroppedWithOptsWarning = `   It looks like you're constructing using a FormControl with both an options argument and an   async validators argument. Mixing these arguments will cause your async validators to be dropped.   You should either put all your validators in the options object, or in separate validators   arguments. For example:    // Using validators arguments   fc = new FormControl(42, Validators.required, myAsyncValidator);    // Using AbstractControlOptions   fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});    // Do NOT mix them: async validators will be dropped!   fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator); `;  export function ngModelWarning(directiveName: string): string {   return `   It looks like you're using ngModel on the same form field as ${directiveName}.   Support for using the ngModel input property and ngModelChange event with   reactive form directives has been deprecated in Angular v6 and will be removed   in a future version of Angular.    For more information on this, see our API docs here:   https://angular.io/api/forms/${       directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel   `; }  function describeKey(isFormGroup: boolean, key: string|number): string {   return isFormGroup ? `with name: '${key}'` : `at index: ${key}`; }  export function noControlsError(isFormGroup: boolean): string {   return `     There are no form controls registered with this ${       isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,     you may want to check next tick (e.g. use setTimeout).   `; }  export function missingControlError(isFormGroup: boolean, key: string|number): string {   return `Cannot find form control ${describeKey(isFormGroup, key)}`; }  export function missingControlValueError(isFormGroup: boolean, key: string|number): string {   return `Must supply a value for form control ${describeKey(isFormGroup, key)}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EventEmitter, ɵRuntimeError as RuntimeError} from '@angular/core'; import {Observable} from 'rxjs';  import {asyncValidatorsDroppedWithOptsWarning, missingControlError, missingControlValueError, noControlsError} from '../directives/reactive_errors'; import {AsyncValidatorFn, ValidationErrors, ValidatorFn} from '../directives/validators'; import {RuntimeErrorCode} from '../errors'; import {FormArray, FormGroup} from '../forms'; import {addValidators, composeAsyncValidators, composeValidators, hasValidator, removeValidators, toObservable} from '../validators';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * Reports that a control is valid, meaning that no errors exist in the input value.  *  * @see `status`  */ export const VALID = 'VALID';  /**  * Reports that a control is invalid, meaning that an error exists in the input value.  *  * @see `status`  */ export const INVALID = 'INVALID';  /**  * Reports that a control is pending, meaning that that async validation is occurring and  * errors are not yet available for the input value.  *  * @see `markAsPending`  * @see `status`  */ export const PENDING = 'PENDING';  /**  * Reports that a control is disabled, meaning that the control is exempt from ancestor  * calculations of validity or value.  *  * @see `markAsDisabled`  * @see `status`  */ export const DISABLED = 'DISABLED';  /**  * A form can have several different statuses. Each  * possible status is returned as a string literal.  *  * * **VALID**: Reports that a control is valid, meaning that no errors exist in the input  * value.  * * **INVALID**: Reports that a control is invalid, meaning that an error exists in the input  * value.  * * **PENDING**: Reports that a control is pending, meaning that that async validation is  * occurring and errors are not yet available for the input value.  * * **DISABLED**: Reports that a control is  * disabled, meaning that the control is exempt from ancestor calculations of validity or value.  *  * @publicApi  */ export type FormControlStatus = 'VALID'|'INVALID'|'PENDING'|'DISABLED';  /**  * Gets validators from either an options object or given validators.  */ export function pickValidators(validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|                                null): ValidatorFn|ValidatorFn[]|null {   return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null; }  /**  * Creates validator function by combining provided validators.  */ function coerceToValidator(validator: ValidatorFn|ValidatorFn[]|null): ValidatorFn|null {   return Array.isArray(validator) ? composeValidators(validator) : validator || null; }  /**  * Gets async validators from either an options object or given validators.  */ export function pickAsyncValidators(     asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null,     validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null): AsyncValidatorFn|     AsyncValidatorFn[]|null {   if (typeof ngDevMode === 'undefined' || ngDevMode) {     if (isOptionsObj(validatorOrOpts) && asyncValidator) {       console.warn(asyncValidatorsDroppedWithOptsWarning);     }   }   return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null; }  /**  * Creates async validator function by combining provided async validators.  */ function coerceToAsyncValidator(asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|                                 null): AsyncValidatorFn|null {   return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) :                                          asyncValidator || null; }  export type FormHooks = 'change'|'blur'|'submit';  /**  * Interface for options provided to an `AbstractControl`.  *  * @publicApi  */ export interface AbstractControlOptions {   /**    * @description    * The list of validators applied to a control.    */   validators?: ValidatorFn|ValidatorFn[]|null;   /**    * @description    * The list of async validators applied to control.    */   asyncValidators?: AsyncValidatorFn|AsyncValidatorFn[]|null;   /**    * @description    * The event name for control to update upon.    */   updateOn?: 'change'|'blur'|'submit'; }  export function isOptionsObj(validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|                              null): validatorOrOpts is AbstractControlOptions {   return validatorOrOpts != null && !Array.isArray(validatorOrOpts) &&       typeof validatorOrOpts === 'object'; }  export function assertControlPresent(parent: any, isGroup: boolean, key: string|number): void {   const controls = parent.controls as {[key: string|number]: unknown};   const collection = isGroup ? Object.keys(controls) : controls;   if (!collection.length) {     throw new RuntimeError(         RuntimeErrorCode.NO_CONTROLS, NG_DEV_MODE ? noControlsError(isGroup) : '');   }   if (!controls[key]) {     throw new RuntimeError(         RuntimeErrorCode.MISSING_CONTROL, NG_DEV_MODE ? missingControlError(isGroup, key) : '');   } }  export function assertAllValuesPresent(control: any, isGroup: boolean, value: any): void {   control._forEachChild((_: unknown, key: string|number) => {     if (value[key] === undefined) {       throw new RuntimeError(           RuntimeErrorCode.MISSING_CONTROL_VALUE,           NG_DEV_MODE ? missingControlValueError(isGroup, key) : '');     }   }); }  // IsAny checks if T is `any`, by checking a condition that couldn't possibly be true otherwise. export type ɵIsAny<T, Y, N> = 0 extends(1&T) ? Y : N;  /**  * `TypedOrUntyped` allows one of two different types to be selected, depending on whether the Forms  * class it's applied to is typed or not.  *  * This is for internal Angular usage to support typed forms; do not directly use it.  */ export type ɵTypedOrUntyped<T, Typed, Untyped> = ɵIsAny<T, Untyped, Typed>;  /**  * Value gives the value type corresponding to a control type.  *  * Note that the resulting type will follow the same rules as `.value` on your control, group, or  * array, including `undefined` for each group element which might be disabled.  *  * If you are trying to extract a value type for a data model, you probably want {@link RawValue},  * which will not have `undefined` in group keys.  *  * @usageNotes  *  * ### `FormControl` value type  *  * You can extract the value type of a single control:  *  * ```ts  * type NameControl = FormControl<string>;  * type NameValue = Value<NameControl>;  * ```  *  * The resulting type is `string`.  *  * ### `FormGroup` value type  *  * Imagine you have an interface defining the controls in your group. You can extract the shape of  * the values as follows:  *  * ```ts  * interface PartyFormControls {  *   address: FormControl<string>;  * }  *  * // Value operates on controls; the object must be wrapped in a FormGroup.  * type PartyFormValues = Value<FormGroup<PartyFormControls>>;  * ```  *  * The resulting type is `{address: string|undefined}`.  *  * ### `FormArray` value type  *  * You can extract values from FormArrays as well:  *  * ```ts  * type GuestNamesControls = FormArray<FormControl<string>>;  *  * type NamesValues = Value<GuestNamesControls>;  * ```  *  * The resulting type is `string[]`.  *  * **Internal: not for public use.**  */ export type ɵValue<T extends AbstractControl|undefined> =     T extends AbstractControl<any, any>? T['value'] : never;  /**  * RawValue gives the raw value type corresponding to a control type.  *  * Note that the resulting type will follow the same rules as `.getRawValue()` on your control,  * group, or array. This means that all controls inside a group will be required, not optional,  * regardless of their disabled state.  *  * You may also wish to use {@link ɵValue}, which will have `undefined` in group keys (which can be  * disabled).  *  * @usageNotes  *  * ### `FormGroup` raw value type  *  * Imagine you have an interface defining the controls in your group. You can extract the shape of  * the raw values as follows:  *  * ```ts  * interface PartyFormControls {  *   address: FormControl<string>;  * }  *  * // RawValue operates on controls; the object must be wrapped in a FormGroup.  * type PartyFormValues = RawValue<FormGroup<PartyFormControls>>;  * ```  *  * The resulting type is `{address: string}`. (Note the absence of `undefined`.)  *  *  **Internal: not for public use.**  */ export type ɵRawValue<T extends AbstractControl|undefined> = T extends AbstractControl<any, any>?     (T['setValue'] extends((v: infer R) => void) ? R : never) :     never;  // Disable clang-format to produce clearer formatting for these multiline types. // clang-format off  /**  * Tokenize splits a string literal S by a delimiter D.  */ export type ɵTokenize<S extends string, D extends string> =   string extends S ? string[] : /* S must be a literal */     S extends `${infer T}${D}${infer U}` ? [T, ...ɵTokenize<U, D>] :       [S] /* Base case */   ;  /**  * CoerceStrArrToNumArr accepts an array of strings, and converts any numeric string to a number.  */ export type ɵCoerceStrArrToNumArr<S> = // Extract the head of the array.   S extends [infer Head, ...infer Tail] ?     // Using a template literal type, coerce the head to `number` if possible.     // Then, recurse on the tail.     Head extends `${number}` ?       [number, ...ɵCoerceStrArrToNumArr<Tail>] :       [Head, ...ɵCoerceStrArrToNumArr<Tail>] :     [];  /**  * Navigate takes a type T and an array K, and returns the type of T[K[0]][K[1]][K[2]]...  */ export type ɵNavigate<T, K extends(Array<string|number>)> =   T extends object ? /* T must be indexable (object or array) */     (K extends [infer Head, ...infer Tail] ? /* Split K into head and tail */       (Head extends keyof T ? /* head(K) must index T */         (Tail extends(string|number)[] ? /* tail(K) must be an array */           [] extends Tail ? T[Head] : /* base case: K can be split, but Tail is empty */             (ɵNavigate<T[Head], Tail>) /* explore T[head(K)] by tail(K) */ :           any) /* tail(K) was not an array, give up */ :         never) /* head(K) does not index T, give up */ :       any) /* K cannot be split, give up */ :     any /* T is not indexable, give up */   ;  /**  * ɵWriteable removes readonly from all keys.  */ export type ɵWriteable<T> = {   -readonly[P in keyof T]: T[P] };  /**  * GetProperty takes a type T and some property names or indices K.  * If K is a dot-separated string, it is tokenized into an array before proceeding.  * Then, the type of the nested property at K is computed: T[K[0]][K[1]][K[2]]...  * This works with both objects, which are indexed by property name, and arrays, which are indexed  * numerically.  *  * For internal use only.  */ export type ɵGetProperty<T, K> =     // K is a string     K extends string ? ɵGetProperty<T, ɵCoerceStrArrToNumArr<ɵTokenize<K, '.'>>> :     // Is is an array     ɵWriteable<K> extends Array<string|number> ? ɵNavigate<T, ɵWriteable<K>> :     // Fall through permissively if we can't calculate the type of K.     any;  // clang-format on  /**  * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.  *  * It provides some of the shared behavior that all controls and groups of controls have, like  * running validators, calculating status, and resetting state. It also defines the properties  * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be  * instantiated directly.  *  * The first type parameter TValue represents the value type of the control (`control.value`).  * The optional type parameter TRawValue  represents the raw value type (`control.getRawValue()`).  *  * @see [Forms Guide](/guide/forms)  * @see [Reactive Forms Guide](/guide/reactive-forms)  * @see [Dynamic Forms Guide](/guide/dynamic-form)  *  * @publicApi  */ export abstract class AbstractControl<TValue = any, TRawValue extends TValue = TValue> {   /** @internal */   _pendingDirty = false;    /**    * Indicates that a control has its own pending asynchronous validation in progress.    *    * @internal    */   _hasOwnPendingAsyncValidator = false;    /** @internal */   _pendingTouched = false;    /** @internal */   _onCollectionChange = () => {};    /** @internal */   _updateOn?: FormHooks;    private _parent: FormGroup|FormArray|null = null;   private _asyncValidationSubscription: any;    /**    * Contains the result of merging synchronous validators into a single validator function    * (combined using `Validators.compose`).    *    * @internal    */   private _composedValidatorFn!: ValidatorFn|null;    /**    * Contains the result of merging asynchronous validators into a single validator function    * (combined using `Validators.composeAsync`).    *    * @internal    */   private _composedAsyncValidatorFn!: AsyncValidatorFn|null;    /**    * Synchronous validators as they were provided:    *  - in `AbstractControl` constructor    *  - as an argument while calling `setValidators` function    *  - while calling the setter on the `validator` field (e.g. `control.validator = validatorFn`)    *    * @internal    */   private _rawValidators!: ValidatorFn|ValidatorFn[]|null;    /**    * Asynchronous validators as they were provided:    *  - in `AbstractControl` constructor    *  - as an argument while calling `setAsyncValidators` function    *  - while calling the setter on the `asyncValidator` field (e.g. `control.asyncValidator =    * asyncValidatorFn`)    *    * @internal    */   private _rawAsyncValidators!: AsyncValidatorFn|AsyncValidatorFn[]|null;    /**    * The current value of the control.    *    * * For a `FormControl`, the current value.    * * For an enabled `FormGroup`, the values of enabled controls as an object    * with a key-value pair for each member of the group.    * * For a disabled `FormGroup`, the values of all controls as an object    * with a key-value pair for each member of the group.    * * For a `FormArray`, the values of enabled controls as an array.    *    */   public readonly value!: TValue;    /**    * Initialize the AbstractControl instance.    *    * @param validators The function or array of functions that is used to determine the validity of    *     this control synchronously.    * @param asyncValidators The function or array of functions that is used to determine validity of    *     this control asynchronously.    */   constructor(       validators: ValidatorFn|ValidatorFn[]|null,       asyncValidators: AsyncValidatorFn|AsyncValidatorFn[]|null) {     this._assignValidators(validators);     this._assignAsyncValidators(asyncValidators);   }    /**    * Returns the function that is used to determine the validity of this control synchronously.    * If multiple validators have been added, this will be a single composed function.    * See `Validators.compose()` for additional information.    */   get validator(): ValidatorFn|null {     return this._composedValidatorFn;   }   set validator(validatorFn: ValidatorFn|null) {     this._rawValidators = this._composedValidatorFn = validatorFn;   }    /**    * Returns the function that is used to determine the validity of this control asynchronously.    * If multiple validators have been added, this will be a single composed function.    * See `Validators.compose()` for additional information.    */   get asyncValidator(): AsyncValidatorFn|null {     return this._composedAsyncValidatorFn;   }   set asyncValidator(asyncValidatorFn: AsyncValidatorFn|null) {     this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;   }    /**    * The parent control.    */   get parent(): FormGroup|FormArray|null {     return this._parent;   }    /**    * The validation status of the control.    *    * @see `FormControlStatus`    *    * These status values are mutually exclusive, so a control cannot be    * both valid AND invalid or invalid AND disabled.    */   public readonly status!: FormControlStatus;    /**    * A control is `valid` when its `status` is `VALID`.    *    * @see {@link AbstractControl.status}    *    * @returns True if the control has passed all of its validation tests,    * false otherwise.    */   get valid(): boolean {     return this.status === VALID;   }    /**    * A control is `invalid` when its `status` is `INVALID`.    *    * @see {@link AbstractControl.status}    *    * @returns True if this control has failed one or more of its validation checks,    * false otherwise.    */   get invalid(): boolean {     return this.status === INVALID;   }    /**    * A control is `pending` when its `status` is `PENDING`.    *    * @see {@link AbstractControl.status}    *    * @returns True if this control is in the process of conducting a validation check,    * false otherwise.    */   get pending(): boolean {     return this.status == PENDING;   }    /**    * A control is `disabled` when its `status` is `DISABLED`.    *    * Disabled controls are exempt from validation checks and    * are not included in the aggregate value of their ancestor    * controls.    *    * @see {@link AbstractControl.status}    *    * @returns True if the control is disabled, false otherwise.    */   get disabled(): boolean {     return this.status === DISABLED;   }    /**    * A control is `enabled` as long as its `status` is not `DISABLED`.    *    * @returns True if the control has any status other than 'DISABLED',    * false if the status is 'DISABLED'.    *    * @see {@link AbstractControl.status}    *    */   get enabled(): boolean {     return this.status !== DISABLED;   }    /**    * An object containing any errors generated by failing validation,    * or null if there are no errors.    */   public readonly errors!: ValidationErrors|null;    /**    * A control is `pristine` if the user has not yet changed    * the value in the UI.    *    * @returns True if the user has not yet changed the value in the UI; compare `dirty`.    * Programmatic changes to a control's value do not mark it dirty.    */   public readonly pristine: boolean = true;    /**    * A control is `dirty` if the user has changed the value    * in the UI.    *    * @returns True if the user has changed the value of this control in the UI; compare `pristine`.    * Programmatic changes to a control's value do not mark it dirty.    */   get dirty(): boolean {     return !this.pristine;   }    /**    * True if the control is marked as `touched`.    *    * A control is marked `touched` once the user has triggered    * a `blur` event on it.    */   public readonly touched: boolean = false;    /**    * True if the control has not been marked as touched    *    * A control is `untouched` if the user has not yet triggered    * a `blur` event on it.    */   get untouched(): boolean {     return !this.touched;   }    /**    * A multicasting observable that emits an event every time the value of the control changes, in    * the UI or programmatically. It also emits an event each time you call enable() or disable()    * without passing along {emitEvent: false} as a function argument.    */   public readonly valueChanges!: Observable<TValue>;    /**    * A multicasting observable that emits an event every time the validation `status` of the control    * recalculates.    *    * @see `FormControlStatus`    * @see {@link AbstractControl.status}    *    */   public readonly statusChanges!: Observable<FormControlStatus>;    /**    * Reports the update strategy of the `AbstractControl` (meaning    * the event on which the control updates itself).    * Possible values: `'change'` | `'blur'` | `'submit'`    * Default value: `'change'`    */   get updateOn(): FormHooks {     return this._updateOn ? this._updateOn : (this.parent ? this.parent.updateOn : 'change');   }    /**    * Sets the synchronous validators that are active on this control.  Calling    * this overwrites any existing synchronous validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * If you want to add a new validator without affecting existing ones, consider    * using `addValidators()` method instead.    */   setValidators(validators: ValidatorFn|ValidatorFn[]|null): void {     this._assignValidators(validators);   }    /**    * Sets the asynchronous validators that are active on this control. Calling this    * overwrites any existing asynchronous validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * If you want to add a new validator without affecting existing ones, consider    * using `addAsyncValidators()` method instead.    */   setAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]|null): void {     this._assignAsyncValidators(validators);   }    /**    * Add a synchronous validator or validators to this control, without affecting other validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * Adding a validator that already exists will have no effect. If duplicate validator functions    * are present in the `validators` array, only the first instance would be added to a form    * control.    *    * @param validators The new validator function or functions to add to this control.    */   addValidators(validators: ValidatorFn|ValidatorFn[]): void {     this.setValidators(addValidators(validators, this._rawValidators));   }    /**    * Add an asynchronous validator or validators to this control, without affecting other    * validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * Adding a validator that already exists will have no effect.    *    * @param validators The new asynchronous validator function or functions to add to this control.    */   addAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]): void {     this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));   }    /**    * Remove a synchronous validator from this control, without affecting other validators.    * Validators are compared by function reference; you must pass a reference to the exact same    * validator function as the one that was originally set. If a provided validator is not found,    * it is ignored.    *    * @usageNotes    *    * ### Reference to a ValidatorFn    *    * ```    * // Reference to the RequiredValidator    * const ctrl = new FormControl<string | null>('', Validators.required);    * ctrl.removeValidators(Validators.required);    *    * // Reference to anonymous function inside MinValidator    * const minValidator = Validators.min(3);    * const ctrl = new FormControl<string | null>('', minValidator);    * expect(ctrl.hasValidator(minValidator)).toEqual(true)    * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)    *    * ctrl.removeValidators(minValidator);    * ```    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * @param validators The validator or validators to remove.    */   removeValidators(validators: ValidatorFn|ValidatorFn[]): void {     this.setValidators(removeValidators(validators, this._rawValidators));   }    /**    * Remove an asynchronous validator from this control, without affecting other validators.    * Validators are compared by function reference; you must pass a reference to the exact same    * validator function as the one that was originally set. If a provided validator is not found, it    * is ignored.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * @param validators The asynchronous validator or validators to remove.    */   removeAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]): void {     this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));   }    /**    * Check whether a synchronous validator function is present on this control. The provided    * validator must be a reference to the exact same function that was provided.    *    * @usageNotes    *    * ### Reference to a ValidatorFn    *    * ```    * // Reference to the RequiredValidator    * const ctrl = new FormControl<number | null>(0, Validators.required);    * expect(ctrl.hasValidator(Validators.required)).toEqual(true)    *    * // Reference to anonymous function inside MinValidator    * const minValidator = Validators.min(3);    * const ctrl = new FormControl<number | null>(0, minValidator);    * expect(ctrl.hasValidator(minValidator)).toEqual(true)    * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)    * ```    *    * @param validator The validator to check for presence. Compared by function reference.    * @returns Whether the provided validator was found on this control.    */   hasValidator(validator: ValidatorFn): boolean {     return hasValidator(this._rawValidators, validator);   }    /**    * Check whether an asynchronous validator function is present on this control. The provided    * validator must be a reference to the exact same function that was provided.    *    * @param validator The asynchronous validator to check for presence. Compared by function    *     reference.    * @returns Whether the provided asynchronous validator was found on this control.    */   hasAsyncValidator(validator: AsyncValidatorFn): boolean {     return hasValidator(this._rawAsyncValidators, validator);   }    /**    * Empties out the synchronous validator list.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    */   clearValidators(): void {     this.validator = null;   }    /**    * Empties out the async validator list.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    */   clearAsyncValidators(): void {     this.asyncValidator = null;   }    /**    * Marks the control as `touched`. A control is touched by focus and    * blur events that do not change the value.    *    * @see `markAsUntouched()`    * @see `markAsDirty()`    * @see `markAsPristine()`    *    * @param opts Configuration options that determine how the control propagates changes    * and emits events after marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsTouched(opts: {onlySelf?: boolean} = {}): void {     (this as {touched: boolean}).touched = true;      if (this._parent && !opts.onlySelf) {       this._parent.markAsTouched(opts);     }   }    /**    * Marks the control and all its descendant controls as `touched`.    * @see `markAsTouched()`    */   markAllAsTouched(): void {     this.markAsTouched({onlySelf: true});      this._forEachChild((control: AbstractControl) => control.markAllAsTouched());   }    /**    * Marks the control as `untouched`.    *    * If the control has any children, also marks all children as `untouched`    * and recalculates the `touched` status of all parent controls.    *    * @see `markAsTouched()`    * @see `markAsDirty()`    * @see `markAsPristine()`    *    * @param opts Configuration options that determine how the control propagates changes    * and emits events after the marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsUntouched(opts: {onlySelf?: boolean} = {}): void {     (this as {touched: boolean}).touched = false;     this._pendingTouched = false;      this._forEachChild((control: AbstractControl) => {       control.markAsUntouched({onlySelf: true});     });      if (this._parent && !opts.onlySelf) {       this._parent._updateTouched(opts);     }   }    /**    * Marks the control as `dirty`. A control becomes dirty when    * the control's value is changed through the UI; compare `markAsTouched`.    *    * @see `markAsTouched()`    * @see `markAsUntouched()`    * @see `markAsPristine()`    *    * @param opts Configuration options that determine how the control propagates changes    * and emits events after marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsDirty(opts: {onlySelf?: boolean} = {}): void {     (this as {pristine: boolean}).pristine = false;      if (this._parent && !opts.onlySelf) {       this._parent.markAsDirty(opts);     }   }    /**    * Marks the control as `pristine`.    *    * If the control has any children, marks all children as `pristine`,    * and recalculates the `pristine` status of all parent    * controls.    *    * @see `markAsTouched()`    * @see `markAsUntouched()`    * @see `markAsDirty()`    *    * @param opts Configuration options that determine how the control emits events after    * marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsPristine(opts: {onlySelf?: boolean} = {}): void {     (this as {pristine: boolean}).pristine = true;     this._pendingDirty = false;      this._forEachChild((control: AbstractControl) => {       control.markAsPristine({onlySelf: true});     });      if (this._parent && !opts.onlySelf) {       this._parent._updatePristine(opts);     }   }    /**    * Marks the control as `pending`.    *    * A control is pending while the control performs async validation.    *    * @see {@link AbstractControl.status}    *    * @param opts Configuration options that determine how the control propagates changes and    * emits events after marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), the `statusChanges`    * observable emits an event with the latest status the control is marked pending.    * When false, no events are emitted.    *    */   markAsPending(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     (this as {status: FormControlStatus}).status = PENDING;      if (opts.emitEvent !== false) {       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      if (this._parent && !opts.onlySelf) {       this._parent.markAsPending(opts);     }   }    /**    * Disables the control. This means the control is exempt from validation checks and    * excluded from the aggregate value of any parent. Its status is `DISABLED`.    *    * If the control has children, all children are also disabled.    *    * @see {@link AbstractControl.status}    *    * @param opts Configuration options that determine how the control propagates    * changes and emits events after the control is disabled.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is disabled.    * When false, no events are emitted.    */   disable(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     // If parent has been marked artificially dirty we don't want to re-calculate the     // parent's dirtiness based on the children.     const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);      (this as {status: FormControlStatus}).status = DISABLED;     (this as {errors: ValidationErrors | null}).errors = null;     this._forEachChild((control: AbstractControl) => {       control.disable({...opts, onlySelf: true});     });     this._updateValue();      if (opts.emitEvent !== false) {       (this.valueChanges as EventEmitter<TValue>).emit(this.value);       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      this._updateAncestors({...opts, skipPristineCheck});     this._onDisabledChange.forEach((changeFn) => changeFn(true));   }    /**    * Enables the control. This means the control is included in validation checks and    * the aggregate value of its parent. Its status recalculates based on its value and    * its validators.    *    * By default, if the control has children, all children are enabled.    *    * @see {@link AbstractControl.status}    *    * @param opts Configure options that control how the control propagates changes and    * emits events when marked as untouched    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is enabled.    * When false, no events are emitted.    */   enable(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     // If parent has been marked artificially dirty we don't want to re-calculate the     // parent's dirtiness based on the children.     const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);      (this as {status: FormControlStatus}).status = VALID;     this._forEachChild((control: AbstractControl) => {       control.enable({...opts, onlySelf: true});     });     this.updateValueAndValidity({onlySelf: true, emitEvent: opts.emitEvent});      this._updateAncestors({...opts, skipPristineCheck});     this._onDisabledChange.forEach((changeFn) => changeFn(false));   }    private _updateAncestors(       opts: {onlySelf?: boolean, emitEvent?: boolean, skipPristineCheck?: boolean}): void {     if (this._parent && !opts.onlySelf) {       this._parent.updateValueAndValidity(opts);       if (!opts.skipPristineCheck) {         this._parent._updatePristine();       }       this._parent._updateTouched();     }   }    /**    * Sets the parent of the control    *    * @param parent The new parent.    */   setParent(parent: FormGroup|FormArray|null): void {     this._parent = parent;   }    /**    * Sets the value of the control. Abstract method (implemented in sub-classes).    */   abstract setValue(value: TRawValue, options?: Object): void;    /**    * Patches the value of the control. Abstract method (implemented in sub-classes).    */   abstract patchValue(value: TValue, options?: Object): void;    /**    * Resets the control. Abstract method (implemented in sub-classes).    */   abstract reset(value?: TValue, options?: Object): void;    /**    * The raw value of this control. For most control implementations, the raw value will include    * disabled children.    */   getRawValue(): any {     return this.value;   }    /**    * Recalculates the value and validation status of the control.    *    * By default, it also updates the value and validity of its ancestors.    *    * @param opts Configuration options determine how the control propagates changes and emits events    * after updates and validity checks are applied.    * * `onlySelf`: When true, only update this control. When false or not supplied,    * update all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is updated.    * When false, no events are emitted.    */   updateValueAndValidity(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     this._setInitialStatus();     this._updateValue();      if (this.enabled) {       this._cancelExistingSubscription();       (this as {errors: ValidationErrors | null}).errors = this._runValidator();       (this as {status: FormControlStatus}).status = this._calculateStatus();        if (this.status === VALID || this.status === PENDING) {         this._runAsyncValidator(opts.emitEvent);       }     }      if (opts.emitEvent !== false) {       (this.valueChanges as EventEmitter<TValue>).emit(this.value);       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      if (this._parent && !opts.onlySelf) {       this._parent.updateValueAndValidity(opts);     }   }    /** @internal */   _updateTreeValidity(opts: {emitEvent?: boolean} = {emitEvent: true}): void {     this._forEachChild((ctrl: AbstractControl) => ctrl._updateTreeValidity(opts));     this.updateValueAndValidity({onlySelf: true, emitEvent: opts.emitEvent});   }    private _setInitialStatus() {     (this as {status: FormControlStatus}).status = this._allControlsDisabled() ? DISABLED : VALID;   }    private _runValidator(): ValidationErrors|null {     return this.validator ? this.validator(this) : null;   }    private _runAsyncValidator(emitEvent?: boolean): void {     if (this.asyncValidator) {       (this as {status: FormControlStatus}).status = PENDING;       this._hasOwnPendingAsyncValidator = true;       const obs = toObservable(this.asyncValidator(this));       this._asyncValidationSubscription = obs.subscribe((errors: ValidationErrors|null) => {         this._hasOwnPendingAsyncValidator = false;         // This will trigger the recalculation of the validation status, which depends on         // the state of the asynchronous validation (whether it is in progress or not). So, it is         // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.         this.setErrors(errors, {emitEvent});       });     }   }    private _cancelExistingSubscription(): void {     if (this._asyncValidationSubscription) {       this._asyncValidationSubscription.unsubscribe();       this._hasOwnPendingAsyncValidator = false;     }   }    /**    * Sets errors on a form control when running validations manually, rather than automatically.    *    * Calling `setErrors` also updates the validity of the parent control.    *    * @param opts Configuration options that determine how the control propagates    * changes and emits events after the control errors are set.    * * `emitEvent`: When true or not supplied (the default), the `statusChanges`    * observable emits an event after the errors are set.    *    * @usageNotes    *    * ### Manually set the errors for a control    *    * ```    * const login = new FormControl('someLogin');    * login.setErrors({    *   notUnique: true    * });    *    * expect(login.valid).toEqual(false);    * expect(login.errors).toEqual({ notUnique: true });    *    * login.setValue('someOtherLogin');    *    * expect(login.valid).toEqual(true);    * ```    */   setErrors(errors: ValidationErrors|null, opts: {emitEvent?: boolean} = {}): void {     (this as {errors: ValidationErrors | null}).errors = errors;     this._updateControlsErrors(opts.emitEvent !== false);   }    /**    * Retrieves a child control given the control's name or path.    *    * This signature for get supports strings and `const` arrays (`.get(['foo', 'bar'] as const)`).    */   get<P extends string|(readonly(string|number)[])>(path: P):       AbstractControl<ɵGetProperty<TRawValue, P>>|null;    /**    * Retrieves a child control given the control's name or path.    *    * This signature for `get` supports non-const (mutable) arrays. Inferred type    * information will not be as robust, so prefer to pass a `readonly` array if possible.    */   get<P extends string|Array<string|number>>(path: P):       AbstractControl<ɵGetProperty<TRawValue, P>>|null;    /**    * Retrieves a child control given the control's name or path.    *    * @param path A dot-delimited string or array of string/number values that define the path to the    * control. If a string is provided, passing it as a string literal will result in improved type    * information. Likewise, if an array is provided, passing it `as const` will cause improved type    * information to be available.    *    * @usageNotes    * ### Retrieve a nested control    *    * For example, to get a `name` control nested within a `person` sub-group:    *    * * `this.form.get('person.name');`    *    * -OR-    *    * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings    *    * ### Retrieve a control in a FormArray    *    * When accessing an element inside a FormArray, you can use an element index.    * For example, to get a `price` control from the first element in an `items` array you can use:    *    * * `this.form.get('items.0.price');`    *    * -OR-    *    * * `this.form.get(['items', 0, 'price']);`    */   get<P extends string|((string | number)[])>(path: P):       AbstractControl<ɵGetProperty<TRawValue, P>>|null {     let currPath: Array<string|number>|string = path;     if (currPath == null) return null;     if (!Array.isArray(currPath)) currPath = currPath.split('.');     if (currPath.length === 0) return null;     return currPath.reduce(         (control: AbstractControl|null, name) => control && control._find(name), this);   }    /**    * @description    * Reports error data for the control with the given path.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * @returns error data for that particular error. If the control or error is not present,    * null is returned.    */   getError(errorCode: string, path?: Array<string|number>|string): any {     const control = path ? this.get(path) : this;     return control && control.errors ? control.errors[errorCode] : null;   }    /**    * @description    * Reports whether the control with the given path has the error specified.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * If no path is given, this method checks for the error on the current control.    *    * @returns whether the given error is present in the control at the given path.    *    * If the control is not present, false is returned.    */   hasError(errorCode: string, path?: Array<string|number>|string): boolean {     return !!this.getError(errorCode, path);   }    /**    * Retrieves the top-level ancestor of this control.    */   get root(): AbstractControl {     let x: AbstractControl = this;      while (x._parent) {       x = x._parent;     }      return x;   }    /** @internal */   _updateControlsErrors(emitEvent: boolean): void {     (this as {status: FormControlStatus}).status = this._calculateStatus();      if (emitEvent) {       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      if (this._parent) {       this._parent._updateControlsErrors(emitEvent);     }   }    /** @internal */   _initObservables() {     (this as {valueChanges: Observable<TValue>}).valueChanges = new EventEmitter();     (this as {statusChanges: Observable<FormControlStatus>}).statusChanges = new EventEmitter();   }     private _calculateStatus(): FormControlStatus {     if (this._allControlsDisabled()) return DISABLED;     if (this.errors) return INVALID;     if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;     if (this._anyControlsHaveStatus(INVALID)) return INVALID;     return VALID;   }    /** @internal */   abstract _updateValue(): void;    /** @internal */   abstract _forEachChild(cb: (c: AbstractControl) => void): void;    /** @internal */   abstract _anyControls(condition: (c: AbstractControl) => boolean): boolean;    /** @internal */   abstract _allControlsDisabled(): boolean;    /** @internal */   abstract _syncPendingControls(): boolean;    /** @internal */   _anyControlsHaveStatus(status: FormControlStatus): boolean {     return this._anyControls((control: AbstractControl) => control.status === status);   }    /** @internal */   _anyControlsDirty(): boolean {     return this._anyControls((control: AbstractControl) => control.dirty);   }    /** @internal */   _anyControlsTouched(): boolean {     return this._anyControls((control: AbstractControl) => control.touched);   }    /** @internal */   _updatePristine(opts: {onlySelf?: boolean} = {}): void {     (this as {pristine: boolean}).pristine = !this._anyControlsDirty();      if (this._parent && !opts.onlySelf) {       this._parent._updatePristine(opts);     }   }    /** @internal */   _updateTouched(opts: {onlySelf?: boolean} = {}): void {     (this as {touched: boolean}).touched = this._anyControlsTouched();      if (this._parent && !opts.onlySelf) {       this._parent._updateTouched(opts);     }   }    /** @internal */   _onDisabledChange: Array<(isDisabled: boolean) => void> = [];    /** @internal */   _registerOnCollectionChange(fn: () => void): void {     this._onCollectionChange = fn;   }    /** @internal */   _setUpdateStrategy(opts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null): void {     if (isOptionsObj(opts) && opts.updateOn != null) {       this._updateOn = opts.updateOn!;     }   }   /**    * Check to see if parent has been marked artificially dirty.    *    * @internal    */   private _parentMarkedDirty(onlySelf?: boolean): boolean {     const parentDirty = this._parent && this._parent.dirty;     return !onlySelf && !!parentDirty && !this._parent!._anyControlsDirty();   }    /** @internal */   _find(name: string|number): AbstractControl|null {     return null;   }    /**    * Internal implementation of the `setValidators` method. Needs to be separated out into a    * different method, because it is called in the constructor and it can break cases where    * a control is extended.    */   private _assignValidators(validators: ValidatorFn|ValidatorFn[]|null): void {     this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;     this._composedValidatorFn = coerceToValidator(this._rawValidators);   }    /**    * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a    * different method, because it is called in the constructor and it can break cases where    * a control is extended.    */   private _assignAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]|null): void {     this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;     this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AsyncValidatorFn, ValidatorFn} from '../directives/validators';  import {AbstractControl, AbstractControlOptions, assertAllValuesPresent, assertControlPresent, pickAsyncValidators, pickValidators, ɵRawValue, ɵTypedOrUntyped, ɵValue} from './abstract_model';  /**  * FormGroupValue extracts the type of `.value` from a FormGroup's inner object type. The untyped  * case falls back to {[key: string]: any}.  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  *  * For internal use only.  */ export type ɵFormGroupValue<T extends {[K in keyof T]?: AbstractControl<any>}> =     ɵTypedOrUntyped<T, Partial<{[K in keyof T]: ɵValue<T[K]>}>, {[key: string]: any}>;  /**  * FormGroupRawValue extracts the type of `.getRawValue()` from a FormGroup's inner object type. The  * untyped case falls back to {[key: string]: any}.  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  *  * For internal use only.  */ export type ɵFormGroupRawValue<T extends {[K in keyof T]?: AbstractControl<any>}> =     ɵTypedOrUntyped<T, {[K in keyof T]: ɵRawValue<T[K]>}, {[key: string]: any}>;  /**  * OptionalKeys returns the union of all optional keys in the object.  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  */ export type ɵOptionalKeys<T> = {   [K in keyof T] -?: undefined extends T[K] ? K : never }[keyof T];  /**  * Tracks the value and validity state of a group of `FormControl` instances.  *  * A `FormGroup` aggregates the values of each child `FormControl` into one object,  * with each control name as the key.  It calculates its status by reducing the status values  * of its children. For example, if one of the controls in a group is invalid, the entire  * group becomes invalid.  *  * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,  * along with `FormControl`, `FormArray`, and `FormRecord`.  *  * When instantiating a `FormGroup`, pass in a collection of child controls as the first  * argument. The key for each child registers the name for the control.  *  * `FormGroup` is intended for use cases where the keys are known ahead of time.  * If you need to dynamically add and remove controls, use {@link FormRecord} instead.  *  * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner  * control types as values.  *  * @usageNotes  *  * ### Create a form group with 2 controls  *  * ```  * const form = new FormGroup({  *   first: new FormControl('Nancy', Validators.minLength(2)),  *   last: new FormControl('Drew'),  * });  *  * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}  * console.log(form.status);  // 'VALID'  * ```  *  * ### The type argument, and optional controls  *  * `FormGroup` accepts one generic argument, which is an object containing its inner controls.  * This type will usually be inferred automatically, but you can always specify it explicitly if you  * wish.  *  * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the  * type):  *  * ```  * const form = new FormGroup<{  *   first: FormControl<string|null>,  *   middle?: FormControl<string|null>, // Middle name is optional.  *   last: FormControl<string|null>,  * }>({  *   first: new FormControl('Nancy'),  *   last: new FormControl('Drew'),  * });  * ```  *  * ### Create a form group with a group-level validator  *  * You include group-level validators as the second arg, or group-level async  * validators as the third arg. These come in handy when you want to perform validation  * that considers the value of more than one child control.  *  * ```  * const form = new FormGroup({  *   password: new FormControl('', Validators.minLength(2)),  *   passwordConfirm: new FormControl('', Validators.minLength(2)),  * }, passwordMatchValidator);  *  *  * function passwordMatchValidator(g: FormGroup) {  *    return g.get('password').value === g.get('passwordConfirm').value  *       ? null : {'mismatch': true};  * }  * ```  *  * Like `FormControl` instances, you choose to pass in  * validators and async validators as part of an options object.  *  * ```  * const form = new FormGroup({  *   password: new FormControl('')  *   passwordConfirm: new FormControl('')  * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });  * ```  *  * ### Set the updateOn property for all controls in a form group  *  * The options object is used to set a default value for each child  * control's `updateOn` property. If you set `updateOn` to `'blur'` at the  * group level, all child controls default to 'blur', unless the child  * has explicitly specified a different `updateOn` value.  *  * ```ts  * const c = new FormGroup({  *   one: new FormControl()  * }, { updateOn: 'blur' });  * ```  *  * ### Using a FormGroup with optional controls  *  * It is possible to have optional controls in a FormGroup. An optional control can be removed later  * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be  * declared optional in the group's type.  *  * ```ts  * const c = new FormGroup<{one?: FormControl<string>}>({  *   one: new FormControl('')  * });  * ```  *  * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`  * without providing the optional key `one` will cause it to become `null`.  *  * @publicApi  */ export class FormGroup<TControl extends {[K in keyof TControl]: AbstractControl<any>} = any> extends     AbstractControl<         ɵTypedOrUntyped<TControl, ɵFormGroupValue<TControl>, any>,         ɵTypedOrUntyped<TControl, ɵFormGroupRawValue<TControl>, any>> {   /**    * Creates a new `FormGroup` instance.    *    * @param controls A collection of child controls. The key for each child is the name    * under which it is registered.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or an `AbstractControlOptions` object that contains validation functions    * and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions    *    */   constructor(       controls: TControl, validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null) {     super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));     this.controls = controls;     this._initObservables();     this._setUpdateStrategy(validatorOrOpts);     this._setUpControls();     this.updateValueAndValidity({       onlySelf: true,       // If `asyncValidator` is present, it will trigger control status change from `PENDING` to       // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,       // so we set `emitEvent` to `true` to allow that during the control creation process.       emitEvent: !!this.asyncValidator     });   }    public controls: ɵTypedOrUntyped<TControl, TControl, {[key: string]: AbstractControl<any>}>;    /**    * Registers a control with the group's list of controls. In a strongly-typed group, the control    * must be in the group's type (possibly as an optional key).    *    * This method does not update the value or validity of the control.    * Use {@link FormGroup#addControl addControl} instead.    *    * @param name The control name to register in the collection    * @param control Provides the control for the given name    */   registerControl<K extends string&keyof TControl>(name: K, control: TControl[K]): TControl[K];   registerControl(       this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string,       control: AbstractControl<any>): AbstractControl<any>;    registerControl<K extends string&keyof TControl>(name: K, control: TControl[K]): TControl[K] {     if (this.controls[name]) return (this.controls as any)[name];     this.controls[name] = control;     control.setParent(this as FormGroup);     control._registerOnCollectionChange(this._onCollectionChange);     return control;   }    /**    * Add a control to this group. In a strongly-typed group, the control must be in the group's type    * (possibly as an optional key).    *    * If a control with a given name already exists, it would *not* be replaced with a new one.    * If you want to replace an existing control, use the {@link FormGroup#setControl setControl}    * method instead. This method also updates the value and validity of the control.    *    * @param name The control name to add to the collection    * @param control Provides the control for the given name    * @param options Specifies whether this FormGroup instance should emit events after a new    *     control is added.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * added. When false, no events are emitted.    */   addControl(       this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string,       control: AbstractControl, options?: {emitEvent?: boolean}): void;   addControl<K extends string&keyof TControl>(name: K, control: Required<TControl>[K], options?: {     emitEvent?: boolean   }): void;    addControl<K extends string&keyof TControl>(name: K, control: Required<TControl>[K], options: {     emitEvent?: boolean   } = {}): void {     this.registerControl(name, control);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    removeControl(this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string, options?: {     emitEvent?: boolean;   }): void;   removeControl<S extends string>(name: ɵOptionalKeys<TControl>&S, options?: {     emitEvent?: boolean;   }): void;    /**    * Remove a control from this group. In a strongly-typed group, required controls cannot be    * removed.    *    * This method also updates the value and validity of the control.    *    * @param name The control name to remove from the collection    * @param options Specifies whether this FormGroup instance should emit events after a    *     control is removed.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * removed. When false, no events are emitted.    */   removeControl(name: string, options: {emitEvent?: boolean;} = {}): void {     if ((this.controls as any)[name])       (this.controls as any)[name]._registerOnCollectionChange(() => {});     delete ((this.controls as any)[name]);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Replace an existing control. In a strongly-typed group, the control must be in the group's type    * (possibly as an optional key).    *    * If a control with a given name does not exist in this `FormGroup`, it will be added.    *    * @param name The control name to replace in the collection    * @param control Provides the control for the given name    * @param options Specifies whether this FormGroup instance should emit events after an    *     existing control is replaced.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * replaced with a new one. When false, no events are emitted.    */   setControl<K extends string&keyof TControl>(name: K, control: TControl[K], options?: {     emitEvent?: boolean   }): void;   setControl(       this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string,       control: AbstractControl, options?: {emitEvent?: boolean}): void;    setControl<K extends string&keyof TControl>(name: K, control: TControl[K], options: {     emitEvent?: boolean   } = {}): void {     if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});     delete (this.controls[name]);     if (control) this.registerControl(name, control);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Check whether there is an enabled control with the given name in the group.    *    * Reports false for disabled controls. If you'd like to check for existence in the group    * only, use {@link AbstractControl#get get} instead.    *    * @param controlName The control name to check for existence in the collection    *    * @returns false for disabled controls, true otherwise.    */   contains<K extends string>(controlName: K): boolean;   contains(this: FormGroup<{[key: string]: AbstractControl<any>}>, controlName: string): boolean;    contains<K extends string&keyof TControl>(controlName: K): boolean {     return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;   }    /**    * Sets the value of the `FormGroup`. It accepts an object that matches    * the structure of the group, with control names as keys.    *    * @usageNotes    * ### Set the complete value for the form group    *    * ```    * const form = new FormGroup({    *   first: new FormControl(),    *   last: new FormControl()    * });    *    * console.log(form.value);   // {first: null, last: null}    *    * form.setValue({first: 'Nancy', last: 'Drew'});    * console.log(form.value);   // {first: 'Nancy', last: 'Drew'}    * ```    *    * @throws When strict checks fail, such as setting the value of a control    * that doesn't exist or if you exclude a value of a control that does exist.    *    * @param value The new value for the control that matches the structure of the group.    * @param options Configuration options that determine how the control propagates changes    * and emits events after the value changes.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control value is updated.    * When false, no events are emitted.    */   override setValue(value: ɵFormGroupRawValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     assertAllValuesPresent(this, true, value);     (Object.keys(value) as Array<keyof TControl>).forEach(name => {       assertControlPresent(this, true, name as any);       (this.controls as any)[name].setValue(           (value as any)[name], {onlySelf: true, emitEvent: options.emitEvent});     });     this.updateValueAndValidity(options);   }    /**    * Patches the value of the `FormGroup`. It accepts an object with control    * names as keys, and does its best to match the values to the correct controls    * in the group.    *    * It accepts both super-sets and sub-sets of the group without throwing an error.    *    * @usageNotes    * ### Patch the value for a form group    *    * ```    * const form = new FormGroup({    *    first: new FormControl(),    *    last: new FormControl()    * });    * console.log(form.value);   // {first: null, last: null}    *    * form.patchValue({first: 'Nancy'});    * console.log(form.value);   // {first: 'Nancy', last: null}    * ```    *    * @param value The object that matches the structure of the group.    * @param options Configuration options that determine how the control propagates changes and    * emits events after the value is patched.    * * `onlySelf`: When true, each change only affects this control and not its parent. Default is    * true.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control value    * is updated. When false, no events are emitted. The configuration options are passed to    * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.    */   override patchValue(value: ɵFormGroupValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     // Even though the `value` argument type doesn't allow `null` and `undefined` values, the     // `patchValue` can be called recursively and inner data structures might have these values, so     // we just ignore such cases when a field containing FormGroup instance receives `null` or     // `undefined` as a value.     if (value == null /* both `null` and `undefined` */) return;     (Object.keys(value) as Array<keyof TControl>).forEach(name => {       // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so       // `as any` is required.       const control = (this.controls as any)[name];       if (control) {         control.patchValue(             /* Guaranteed to be present, due to the outer forEach. */ value                 [name as keyof ɵFormGroupValue<TControl>]!,             {onlySelf: true, emitEvent: options.emitEvent});       }     });     this.updateValueAndValidity(options);   }    /**    * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets    * the value of all descendants to their default values, or null if no defaults were provided.    *    * You reset to a specific form state by passing in a map of states    * that matches the structure of your form, with control names as keys. The state    * is a standalone value or a form state object with both a value and a disabled    * status.    *    * @param value Resets the control with an initial value,    * or an object that defines the initial value and disabled state.    *    * @param options Configuration options that determine how the control propagates changes    * and emits events when the group is reset.    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is reset.    * When false, no events are emitted.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    *    * @usageNotes    *    * ### Reset the form group values    *    * ```ts    * const form = new FormGroup({    *   first: new FormControl('first name'),    *   last: new FormControl('last name')    * });    *    * console.log(form.value);  // {first: 'first name', last: 'last name'}    *    * form.reset({ first: 'name', last: 'last name' });    *    * console.log(form.value);  // {first: 'name', last: 'last name'}    * ```    *    * ### Reset the form group values and disabled status    *    * ```    * const form = new FormGroup({    *   first: new FormControl('first name'),    *   last: new FormControl('last name')    * });    *    * form.reset({    *   first: {value: 'name', disabled: true},    *   last: 'last'    * });    *    * console.log(form.value);  // {last: 'last'}    * console.log(form.get('first').status);  // 'DISABLED'    * ```    */   override reset(       value: ɵTypedOrUntyped<TControl, ɵFormGroupValue<TControl>, any> = {} as unknown as           ɵFormGroupValue<TControl>,       options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     this._forEachChild((control, name) => {       control.reset((value as any)[name], {onlySelf: true, emitEvent: options.emitEvent});     });     this._updatePristine(options);     this._updateTouched(options);     this.updateValueAndValidity(options);   }    /**    * The aggregate value of the `FormGroup`, including any disabled controls.    *    * Retrieves all values regardless of disabled status.    */   override getRawValue(): ɵTypedOrUntyped<TControl, ɵFormGroupRawValue<TControl>, any> {     return this._reduceChildren({}, (acc, control, name) => {       (acc as any)[name] = (control as any).getRawValue();       return acc;     }) as any;   }    /** @internal */   override _syncPendingControls(): boolean {     let subtreeUpdated = this._reduceChildren(false, (updated: boolean, child) => {       return child._syncPendingControls() ? true : updated;     });     if (subtreeUpdated) this.updateValueAndValidity({onlySelf: true});     return subtreeUpdated;   }    /** @internal */   override _forEachChild(cb: (v: any, k: any) => void): void {     Object.keys(this.controls).forEach(key => {       // The list of controls can change (for ex. controls might be removed) while the loop       // is running (as a result of invoking Forms API in `valueChanges` subscription), so we       // have to null check before invoking the callback.       const control = (this.controls as any)[key];       control && cb(control, key);     });   }    /** @internal */   _setUpControls(): void {     this._forEachChild((control) => {       control.setParent(this);       control._registerOnCollectionChange(this._onCollectionChange);     });   }    /** @internal */   override _updateValue(): void {     (this as {value: any}).value = this._reduceValue();   }    /** @internal */   override _anyControls(condition: (c: AbstractControl) => boolean): boolean {     for (const [controlName, control] of Object.entries(this.controls)) {       if (this.contains(controlName as any) && condition(control as any)) {         return true;       }     }     return false;   }    /** @internal */   _reduceValue(): Partial<TControl> {     let acc: Partial<TControl> = {};     return this._reduceChildren(acc, (acc, control, name) => {       if (control.enabled || this.disabled) {         acc[name] = control.value;       }       return acc;     });   }    /** @internal */   _reduceChildren<T, K extends keyof TControl>(       initValue: T, fn: (acc: T, control: TControl[K], name: K) => T): T {     let res = initValue;     this._forEachChild((control: TControl[K], name: K) => {       res = fn(res, control, name);     });     return res;   }    /** @internal */   override _allControlsDisabled(): boolean {     for (const controlName of (Object.keys(this.controls) as Array<keyof TControl>)) {       if ((this.controls as any)[controlName].enabled) {         return false;       }     }     return Object.keys(this.controls).length > 0 || this.disabled;   }    /** @internal */   override _find(name: string|number): AbstractControl|null {     return this.controls.hasOwnProperty(name as string) ?         (this.controls as any)[name as keyof TControl] :         null;   } }  interface UntypedFormGroupCtor {   new(controls: {[key: string]: AbstractControl},       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormGroup;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormGroup<any>; }  /**  * UntypedFormGroup is a non-strongly-typed version of @see FormGroup.  */ export type UntypedFormGroup = FormGroup<any>;  export const UntypedFormGroup: UntypedFormGroupCtor = FormGroup;  /**  * @description  * Asserts that the given control is an instance of `FormGroup`  *  * @publicApi  */ export const isFormGroup = (control: unknown): control is FormGroup => control instanceof FormGroup;  /**  * Tracks the value and validity state of a collection of `FormControl` instances, each of which has  * the same value type.  *  * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,  * with controls added and removed as needed.  *  * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.  *  * @usageNotes  *  * ```  * let numbers = new FormRecord({bill: new FormControl('415-123-456')});  * numbers.addControl('bob', new FormControl('415-234-567'));  * numbers.removeControl('bill');  * ```  *  * @publicApi  */ export class FormRecord<TControl extends AbstractControl = AbstractControl> extends     FormGroup<{[key: string]: TControl}> {}  export interface FormRecord<TControl> {   /**    * Registers a control with the records's list of controls.    *    * See `FormGroup#registerControl` for additional information.    */   registerControl(name: string, control: TControl): TControl;    /**    * Add a control to this group.    *    * See `FormGroup#addControl` for additional information.    */   addControl(name: string, control: TControl, options?: {emitEvent?: boolean}): void;    /**    * Remove a control from this group.    *    * See `FormGroup#removeControl` for additional information.    */   removeControl(name: string, options?: {emitEvent?: boolean}): void;    /**    * Replace an existing control.    *    * See `FormGroup#setControl` for additional information.    */   setControl(name: string, control: TControl, options?: {emitEvent?: boolean}): void;    /**    * Check whether there is an enabled control with the given name in the group.    *    * See `FormGroup#contains` for additional information.    */   contains(controlName: string): boolean;    /**    * Sets the value of the `FormRecord`. It accepts an object that matches    * the structure of the group, with control names as keys.    *    * See `FormGroup#setValue` for additional information.    */   setValue(value: {[key: string]: ɵValue<TControl>}, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * Patches the value of the `FormRecord`. It accepts an object with control    * names as keys, and does its best to match the values to the correct controls    * in the group.    *    * See `FormGroup#patchValue` for additional information.    */   patchValue(value: {[key: string]: ɵValue<TControl>}, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * Resets the `FormRecord`, marks all descendants `pristine` and `untouched` and sets    * the value of all descendants to null.    *    * See `FormGroup#reset` for additional information.    */   reset(value?: {[key: string]: ɵValue<TControl>}, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * The aggregate value of the `FormRecord`, including any disabled controls.    *    * See `FormGroup#getRawValue` for additional information.    */   getRawValue(): {[key: string]: ɵRawValue<TControl>}; }  /**  * @description  * Asserts that the given control is an instance of `FormRecord`  *  * @publicApi  */ export const isFormRecord = (control: unknown): control is FormRecord =>     control instanceof FormRecord; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, InjectionToken, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors'; import {AbstractControl} from '../model/abstract_model'; import {FormArray} from '../model/form_array'; import {FormControl} from '../model/form_control'; import {FormGroup} from '../model/form_group'; import {getControlAsyncValidators, getControlValidators, mergeValidators} from '../validators';  import {AbstractControlDirective} from './abstract_control_directive'; import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; import {BuiltInControlValueAccessor, ControlValueAccessor} from './control_value_accessor'; import {DefaultValueAccessor} from './default_value_accessor'; import {NgControl} from './ng_control'; import {FormArrayName} from './reactive_directives/form_group_name'; import {ngModelWarning} from './reactive_errors'; import {AsyncValidatorFn, Validator, ValidatorFn} from './validators';  /**  * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of  * whether the control is disabled or enabled.  *  * @see `FormsModule.withConfig`  */ export const CALL_SET_DISABLED_STATE = new InjectionToken(     'CallSetDisabledState', {providedIn: 'root', factory: () => setDisabledStateDefault});  /**  * The type for CALL_SET_DISABLED_STATE. If `always`, then ControlValueAccessor will always call  * `setDisabledState` when attached, which is the most correct behavior. Otherwise, it will only be  * called when disabled, which is the legacy behavior for compatibility.  *  * @publicApi  * @see `FormsModule.withConfig`  */ export type SetDisabledStateOption = 'whenDisabledForLegacyCode'|'always';  /**  * Whether to use the fixed setDisabledState behavior by default.  */ export const setDisabledStateDefault: SetDisabledStateOption = 'always';  export function controlPath(name: string|null, parent: ControlContainer): string[] {   return [...parent.path!, name!]; }  /**  * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both  * instances. This function is typically invoked when form directive is being initialized.  *  * @param control Form control instance that should be linked.  * @param dir Directive that should be linked with a given control.  */ export function setUpControl(     control: FormControl, dir: NgControl,     callSetDisabledState: SetDisabledStateOption = setDisabledStateDefault): void {   if (typeof ngDevMode === 'undefined' || ngDevMode) {     if (!control) _throwError(dir, 'Cannot find control with');     if (!dir.valueAccessor) _throwMissingValueAccessorError(dir);   }    setUpValidators(control, dir);    dir.valueAccessor!.writeValue(control.value);    // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.   // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and   // the method is always called.   if (control.disabled || callSetDisabledState === 'always') {     dir.valueAccessor!.setDisabledState?.(control.disabled);   }    setUpViewChangePipeline(control, dir);   setUpModelChangePipeline(control, dir);    setUpBlurPipeline(control, dir);    setUpDisabledChangeHandler(control, dir); }  /**  * Reverts configuration performed by the `setUpControl` control function.  * Effectively disconnects form control with a given form directive.  * This function is typically invoked when corresponding form directive is being destroyed.  *  * @param control Form control which should be cleaned up.  * @param dir Directive that should be disconnected from a given control.  * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should  *     contain asserts to verify that it's not called once directive is destroyed. We need this flag  *     to avoid potentially breaking changes caused by better control cleanup introduced in #39235.  */ export function cleanUpControl(     control: FormControl|null, dir: NgControl,     validateControlPresenceOnChange: boolean = true): void {   const noop = () => {     if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {       _noControlError(dir);     }   };    // The `valueAccessor` field is typically defined on FromControl and FormControlName directive   // instances and there is a logic in `selectValueAccessor` function that throws if it's not the   // case. We still check the presence of `valueAccessor` before invoking its methods to make sure   // that cleanup works correctly if app code or tests are setup to ignore the error thrown from   // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.   if (dir.valueAccessor) {     dir.valueAccessor.registerOnChange(noop);     dir.valueAccessor.registerOnTouched(noop);   }    cleanUpValidators(control, dir);    if (control) {     dir._invokeOnDestroyCallbacks();     control._registerOnCollectionChange(() => {});   } }  function registerOnValidatorChange<V>(validators: (V|Validator)[], onChange: () => void): void {   validators.forEach((validator: V|Validator) => {     if ((<Validator>validator).registerOnValidatorChange)       (<Validator>validator).registerOnValidatorChange!(onChange);   }); }  /**  * Sets up disabled change handler function on a given form control if ControlValueAccessor  * associated with a given directive instance supports the `setDisabledState` call.  *  * @param control Form control where disabled change handler should be setup.  * @param dir Corresponding directive instance associated with this control.  */ export function setUpDisabledChangeHandler(control: FormControl, dir: NgControl): void {   if (dir.valueAccessor!.setDisabledState) {     const onDisabledChange = (isDisabled: boolean) => {       dir.valueAccessor!.setDisabledState!(isDisabled);     };     control.registerOnDisabledChange(onDisabledChange);      // Register a callback function to cleanup disabled change handler     // from a control instance when a directive is destroyed.     dir._registerOnDestroy(() => {       control._unregisterOnDisabledChange(onDisabledChange);     });   } }  /**  * Sets up sync and async directive validators on provided form control.  * This function merges validators from the directive into the validators of the control.  *  * @param control Form control where directive validators should be setup.  * @param dir Directive instance that contains validators to be setup.  */ export function setUpValidators(control: AbstractControl, dir: AbstractControlDirective): void {   const validators = getControlValidators(control);   if (dir.validator !== null) {     control.setValidators(mergeValidators<ValidatorFn>(validators, dir.validator));   } else if (typeof validators === 'function') {     // If sync validators are represented by a single validator function, we force the     // `Validators.compose` call to happen by executing the `setValidators` function with     // an array that contains that function. We need this to avoid possible discrepancies in     // validators behavior, so sync validators are always processed by the `Validators.compose`.     // Note: we should consider moving this logic inside the `setValidators` function itself, so we     // have consistent behavior on AbstractControl API level. The same applies to the async     // validators logic below.     control.setValidators([validators]);   }    const asyncValidators = getControlAsyncValidators(control);   if (dir.asyncValidator !== null) {     control.setAsyncValidators(         mergeValidators<AsyncValidatorFn>(asyncValidators, dir.asyncValidator));   } else if (typeof asyncValidators === 'function') {     control.setAsyncValidators([asyncValidators]);   }    // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4   const onValidatorChange = () => control.updateValueAndValidity();   registerOnValidatorChange<ValidatorFn>(dir._rawValidators, onValidatorChange);   registerOnValidatorChange<AsyncValidatorFn>(dir._rawAsyncValidators, onValidatorChange); }  /**  * Cleans up sync and async directive validators on provided form control.  * This function reverts the setup performed by the `setUpValidators` function, i.e.  * removes directive-specific validators from a given control instance.  *  * @param control Form control from where directive validators should be removed.  * @param dir Directive instance that contains validators to be removed.  * @returns true if a control was updated as a result of this action.  */ export function cleanUpValidators(     control: AbstractControl|null, dir: AbstractControlDirective): boolean {   let isControlUpdated = false;   if (control !== null) {     if (dir.validator !== null) {       const validators = getControlValidators(control);       if (Array.isArray(validators) && validators.length > 0) {         // Filter out directive validator function.         const updatedValidators = validators.filter((validator) => validator !== dir.validator);         if (updatedValidators.length !== validators.length) {           isControlUpdated = true;           control.setValidators(updatedValidators);         }       }     }      if (dir.asyncValidator !== null) {       const asyncValidators = getControlAsyncValidators(control);       if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {         // Filter out directive async validator function.         const updatedAsyncValidators =             asyncValidators.filter((asyncValidator) => asyncValidator !== dir.asyncValidator);         if (updatedAsyncValidators.length !== asyncValidators.length) {           isControlUpdated = true;           control.setAsyncValidators(updatedAsyncValidators);         }       }     }   }    // Clear onValidatorChange callbacks by providing a noop function.   const noop = () => {};   registerOnValidatorChange<ValidatorFn>(dir._rawValidators, noop);   registerOnValidatorChange<AsyncValidatorFn>(dir._rawAsyncValidators, noop);    return isControlUpdated; }  function setUpViewChangePipeline(control: FormControl, dir: NgControl): void {   dir.valueAccessor!.registerOnChange((newValue: any) => {     control._pendingValue = newValue;     control._pendingChange = true;     control._pendingDirty = true;      if (control.updateOn === 'change') updateControl(control, dir);   }); }  function setUpBlurPipeline(control: FormControl, dir: NgControl): void {   dir.valueAccessor!.registerOnTouched(() => {     control._pendingTouched = true;      if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);     if (control.updateOn !== 'submit') control.markAsTouched();   }); }  function updateControl(control: FormControl, dir: NgControl): void {   if (control._pendingDirty) control.markAsDirty();   control.setValue(control._pendingValue, {emitModelToViewChange: false});   dir.viewToModelUpdate(control._pendingValue);   control._pendingChange = false; }  function setUpModelChangePipeline(control: FormControl, dir: NgControl): void {   const onChange = (newValue?: any, emitModelEvent?: boolean) => {     // control -> view     dir.valueAccessor!.writeValue(newValue);      // control -> ngModel     if (emitModelEvent) dir.viewToModelUpdate(newValue);   };   control.registerOnChange(onChange);    // Register a callback function to cleanup onChange handler   // from a control instance when a directive is destroyed.   dir._registerOnDestroy(() => {     control._unregisterOnChange(onChange);   }); }  /**  * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators  * present in the view.  *  * @param control FormGroup or FormArray instance that should be linked.  * @param dir Directive that provides view validators.  */ export function setUpFormContainer(     control: FormGroup|FormArray, dir: AbstractFormGroupDirective|FormArrayName) {   if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode))     _throwError(dir, 'Cannot find control with');   setUpValidators(control, dir); }  /**  * Reverts the setup performed by the `setUpFormContainer` function.  *  * @param control FormGroup or FormArray instance that should be cleaned up.  * @param dir Directive that provided view validators.  * @returns true if a control was updated as a result of this action.  */ export function cleanUpFormContainer(     control: FormGroup|FormArray, dir: AbstractFormGroupDirective|FormArrayName): boolean {   return cleanUpValidators(control, dir); }  function _noControlError(dir: NgControl) {   return _throwError(dir, 'There is no FormControl instance attached to form control element with'); }  function _throwError(dir: AbstractControlDirective, message: string): void {   const messageEnd = _describeControlLocation(dir);   throw new Error(`${message} ${messageEnd}`); }  function _describeControlLocation(dir: AbstractControlDirective): string {   const path = dir.path;   if (path && path.length > 1) return `path: '${path.join(' -> ')}'`;   if (path?.[0]) return `name: '${path}'`;   return 'unspecified name attribute'; }  function _throwMissingValueAccessorError(dir: AbstractControlDirective) {   const loc = _describeControlLocation(dir);   throw new RuntimeError(       RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR, `No value accessor for form control ${loc}.`); }  function _throwInvalidValueAccessorError(dir: AbstractControlDirective) {   const loc = _describeControlLocation(dir);   throw new RuntimeError(       RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED,       `Value accessor was not provided as an array for form control with ${loc}. ` +           `Check that the \\`NG_VALUE_ACCESSOR\\` token is configured as a \\`multi: true\\` provider.`); }  export function isPropertyUpdated(changes: {[key: string]: any}, viewModel: any): boolean {   if (!changes.hasOwnProperty('model')) return false;   const change = changes['model'];    if (change.isFirstChange()) return true;   return !Object.is(viewModel, change.currentValue); }  export function isBuiltInAccessor(valueAccessor: ControlValueAccessor): boolean {   // Check if a given value accessor is an instance of a class that directly extends   // `BuiltInControlValueAccessor` one.   return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor; }  export function syncPendingControls(form: FormGroup, directives: Set<NgControl>|NgControl[]): void {   form._syncPendingControls();   directives.forEach((dir: NgControl) => {     const control = dir.control as FormControl;     if (control.updateOn === 'submit' && control._pendingChange) {       dir.viewToModelUpdate(control._pendingValue);       control._pendingChange = false;     }   }); }  // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented export function selectValueAccessor(     dir: NgControl, valueAccessors: ControlValueAccessor[]): ControlValueAccessor|null {   if (!valueAccessors) return null;    if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode))     _throwInvalidValueAccessorError(dir);    let defaultAccessor: ControlValueAccessor|undefined = undefined;   let builtinAccessor: ControlValueAccessor|undefined = undefined;   let customAccessor: ControlValueAccessor|undefined = undefined;    valueAccessors.forEach((v: ControlValueAccessor) => {     if (v.constructor === DefaultValueAccessor) {       defaultAccessor = v;     } else if (isBuiltInAccessor(v)) {       if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))         _throwError(dir, 'More than one built-in value accessor matches form control with');       builtinAccessor = v;     } else {       if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))         _throwError(dir, 'More than one custom value accessor matches form control with');       customAccessor = v;     }   });    if (customAccessor) return customAccessor;   if (builtinAccessor) return builtinAccessor;   if (defaultAccessor) return defaultAccessor;    if (typeof ngDevMode === 'undefined' || ngDevMode) {     _throwError(dir, 'No valid value accessor for form control with');   }   return null; }  export function removeListItem<T>(list: T[], el: T): void {   const index = list.indexOf(el);   if (index > -1) list.splice(index, 1); }  // TODO(kara): remove after deprecation period export function _ngModelWarning(     name: string, type: {_ngModelWarningSentOnce: boolean},     instance: {_ngModelWarningSent: boolean}, warningConfig: string|null) {   if (warningConfig === 'never') return;    if (((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce) ||       (warningConfig === 'always' && !instance._ngModelWarningSent)) {     console.warn(ngModelWarning(name));     type._ngModelWarningSentOnce = true;     instance._ngModelWarningSent = true;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AfterViewInit, Directive, EventEmitter, forwardRef, Inject, Input, Optional, Provider, Self} from '@angular/core';  import {AbstractControl, FormHooks} from '../model/abstract_model'; import {FormControl} from '../model/form_control'; import {FormGroup} from '../model/form_group'; import {composeAsyncValidators, composeValidators, NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators';  import {ControlContainer} from './control_container'; import {Form} from './form_interface'; import {NgControl} from './ng_control'; import {NgModel} from './ng_model'; import {NgModelGroup} from './ng_model_group'; import {CALL_SET_DISABLED_STATE, SetDisabledStateOption, setUpControl, setUpFormContainer, syncPendingControls} from './shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from './validators';  const formDirectiveProvider: Provider = {   provide: ControlContainer,   useExisting: forwardRef(() => NgForm) };  const resolvedPromise = (() => Promise.resolve())();  /**  * @description  * Creates a top-level `FormGroup` instance and binds it to a form  * to track aggregate form value and validation status.  *  * As soon as you import the `FormsModule`, this directive becomes active by default on  * all `<form>` tags.  You don't need to add a special selector.  *  * You optionally export the directive into a local template variable using `ngForm` as the key  * (ex: `#myForm=\"ngForm\"`). This is optional, but useful.  Many properties from the underlying  * `FormGroup` instance are duplicated on the directive itself, so a reference to it  * gives you access to the aggregate value and validity status of the form, as well as  * user interaction properties like `dirty` and `touched`.  *  * To register child controls with the form, use `NgModel` with a `name`  * attribute. You may use `NgModelGroup` to create sub-groups within the form.  *  * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has  * triggered a form submission. The `ngSubmit` event emits the original form  * submission event.  *  * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.  * To import the `FormsModule` but skip its usage in some forms,  * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`  * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is  * unnecessary because the `<form>` tags are inert. In that case, you would  * refrain from using the `formGroup` directive.  *  * @usageNotes  *  * ### Listening for form submission  *  * The following example shows how to capture the form values from the \"ngSubmit\" event.  *  * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}  *  * ### Setting the update options  *  * The following example shows you how to change the \"updateOn\" option from its default using  * ngFormOptions.  *  * ```html  * <form [ngFormOptions]=\"{updateOn: 'blur'}\">  *    <input name=\"one\" ngModel>  <!-- this ngModel will update on blur -->  * </form>  * ```  *  * ### Native DOM validation UI  *  * In order to prevent the native DOM form validation UI from interfering with Angular's form  * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever  * `FormModule` or `ReactiveFormModule` are imported into the application.  * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the  * `ngNativeValidate` attribute to the `<form>` element:  *  * ```html  * <form ngNativeValidate>  *   ...  * </form>  * ```  *  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',   providers: [formDirectiveProvider],   host: {'(submit)': 'onSubmit($event)', '(reset)': 'onReset()'},   outputs: ['ngSubmit'],   exportAs: 'ngForm' }) export class NgForm extends ControlContainer implements Form, AfterViewInit {   /**    * @description    * Returns whether the form submission has been triggered.    */   public readonly submitted: boolean = false;    private _directives = new Set<NgModel>();    /**    * @description    * The `FormGroup` instance created for this form.    */   form: FormGroup;    /**    * @description    * Event emitter for the \"ngSubmit\" event    */   ngSubmit = new EventEmitter();    /**    * @description    * Tracks options for the `NgForm` instance.    *    * **updateOn**: Sets the default `updateOn` value for all child `NgModels` below it    * unless explicitly set by a child `NgModel` using `ngModelOptions`). Defaults to 'change'.    * Possible values: `'change'` | `'blur'` | `'submit'`.    *    */   // TODO(issue/24571): remove '!'.   @Input('ngFormOptions') options!: {updateOn?: FormHooks};    constructor(       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this.form =         new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));   }    /** @nodoc */   ngAfterViewInit() {     this._setUpdateStrategy();   }    /**    * @description    * The directive instance.    */   override get formDirective(): Form {     return this;   }    /**    * @description    * The internal `FormGroup` instance.    */   override get control(): FormGroup {     return this.form;   }    /**    * @description    * Returns an array representing the path to this group. Because this directive    * always lives at the top level of a form, it is always an empty array.    */   override get path(): string[] {     return [];   }    /**    * @description    * Returns a map of the controls in this group.    */   get controls(): {[key: string]: AbstractControl} {     return this.form.controls;   }    /**    * @description    * Method that sets up the control directive in this group, re-calculates its value    * and validity, and adds the instance to the internal list of directives.    *    * @param dir The `NgModel` directive instance.    */   addControl(dir: NgModel): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       (dir as {control: FormControl}).control =           <FormControl>container.registerControl(dir.name, dir.control);       setUpControl(dir.control, dir, this.callSetDisabledState);       dir.control.updateValueAndValidity({emitEvent: false});       this._directives.add(dir);     });   }    /**    * @description    * Retrieves the `FormControl` instance from the provided `NgModel` directive.    *    * @param dir The `NgModel` directive instance.    */   getControl(dir: NgModel): FormControl {     return <FormControl>this.form.get(dir.path);   }    /**    * @description    * Removes the `NgModel` instance from the internal list of directives    *    * @param dir The `NgModel` directive instance.    */   removeControl(dir: NgModel): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       if (container) {         container.removeControl(dir.name);       }       this._directives.delete(dir);     });   }    /**    * @description    * Adds a new `NgModelGroup` directive instance to the form.    *    * @param dir The `NgModelGroup` directive instance.    */   addFormGroup(dir: NgModelGroup): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       const group = new FormGroup({});       setUpFormContainer(group, dir);       container.registerControl(dir.name, group);       group.updateValueAndValidity({emitEvent: false});     });   }    /**    * @description    * Removes the `NgModelGroup` directive instance from the form.    *    * @param dir The `NgModelGroup` directive instance.    */   removeFormGroup(dir: NgModelGroup): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       if (container) {         container.removeControl(dir.name);       }     });   }    /**    * @description    * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance    *    * @param dir The `NgModelGroup` directive instance.    */   getFormGroup(dir: NgModelGroup): FormGroup {     return <FormGroup>this.form.get(dir.path);   }    /**    * Sets the new value for the provided `NgControl` directive.    *    * @param dir The `NgControl` directive instance.    * @param value The new value for the directive's control.    */   updateModel(dir: NgControl, value: any): void {     resolvedPromise.then(() => {       const ctrl = <FormControl>this.form.get(dir.path!);       ctrl.setValue(value);     });   }    /**    * @description    * Sets the value for this `FormGroup`.    *    * @param value The new value    */   setValue(value: {[key: string]: any}): void {     this.control.setValue(value);   }    /**    * @description    * Method called when the \"submit\" event is triggered on the form.    * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.    *    * @param $event The \"submit\" event object    */   onSubmit($event: Event): boolean {     (this as {submitted: boolean}).submitted = true;     syncPendingControls(this.form, this._directives);     this.ngSubmit.emit($event);     // Forms with `method=\"dialog\"` have some special behavior     // that won't reload the page and that shouldn't be prevented.     return ($event?.target as HTMLFormElement | null)?.method === 'dialog';   }    /**    * @description    * Method called when the \"reset\" event is triggered on the form.    */   onReset(): void {     this.resetForm();   }    /**    * @description    * Resets the form to an initial value and resets its submitted status.    *    * @param value The new value for the form.    */   resetForm(value: any = undefined): void {     this.form.reset(value);     (this as {submitted: boolean}).submitted = false;   }    private _setUpdateStrategy() {     if (this.options && this.options.updateOn != null) {       this.form._updateOn = this.options.updateOn;     }   }    private _findContainer(path: string[]): FormGroup {     path.pop();     return path.length ? <FormGroup>this.form.get(path) : this.form;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export function removeListItem<T>(list: T[], el: T): void {   const index = list.indexOf(el);   if (index > -1) list.splice(index, 1); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AsyncValidatorFn, ValidatorFn} from '../directives/validators'; import {removeListItem} from '../util';  import {AbstractControl, AbstractControlOptions, isOptionsObj, pickAsyncValidators, pickValidators} from './abstract_model';  /**  * FormControlState is a boxed form value. It is an object with a `value` key and a `disabled` key.  *  * @publicApi  */ export interface FormControlState<T> {   value: T;   disabled: boolean; }  /**  * Interface for options provided to a `FormControl`.  *  * This interface extends all options from {@link AbstractControlOptions}, plus some options  * unique to `FormControl`.  *  * @publicApi  */ export interface FormControlOptions extends AbstractControlOptions {   /**    * @description    * Whether to use the initial value used to construct the `FormControl` as its default value    * as well. If this option is false or not provided, the default value of a FormControl is `null`.    * When a FormControl is reset without an explicit value, its value reverts to    * its default value.    */   nonNullable?: boolean;    /**    * @deprecated Use `nonNullable` instead.    */   initialValueIsDefault?: boolean; }  /**  * Tracks the value and validation status of an individual form control.  *  * This is one of the four fundamental building blocks of Angular forms, along with  * `FormGroup`, `FormArray` and `FormRecord`. It extends the `AbstractControl` class that  * implements most of the base functionality for accessing the value, validation status,  * user interactions and events.  *  * `FormControl` takes a single generic argument, which describes the type of its value. This  * argument always implicitly includes `null` because the control can be reset. To change this  * behavior, set `nonNullable` or see the usage notes below.  *  * See [usage examples below](#usage-notes).  *  * @see `AbstractControl`  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see [Usage Notes](#usage-notes)  *  * @publicApi  *  * @overriddenImplementation ɵFormControlCtor  *  * @usageNotes  *  * ### Initializing Form Controls  *  * Instantiate a `FormControl`, with an initial value.  *  * ```ts  * const control = new FormControl('some value');  * console.log(control.value);     // 'some value'  * ```  *  * The following example initializes the control with a form state object. The `value`  * and `disabled` keys are required in this case.  *  * ```ts  * const control = new FormControl({ value: 'n/a', disabled: true });  * console.log(control.value);     // 'n/a'  * console.log(control.status);    // 'DISABLED'  * ```  *  * The following example initializes the control with a synchronous validator.  *  * ```ts  * const control = new FormControl('', Validators.required);  * console.log(control.value);      // ''  * console.log(control.status);     // 'INVALID'  * ```  *  * The following example initializes the control using an options object.  *  * ```ts  * const control = new FormControl('', {  *    validators: Validators.required,  *    asyncValidators: myAsyncValidator  * });  * ```  *  * ### The single type argument  *  * `FormControl` accepts a generic argument, which describes the type of its value.  * In most cases, this argument will be inferred.  *  * If you are initializing the control to `null`, or you otherwise wish to provide a  * wider type, you may specify the argument explicitly:  *  * ```  * let fc = new FormControl<string|null>(null);  * fc.setValue('foo');  * ```  *  * You might notice that `null` is always added to the type of the control.  * This is because the control will become `null` if you call `reset`. You can change  * this behavior by setting `{nonNullable: true}`.  *  * ### Configure the control to update on a blur event  *  * Set the `updateOn` option to `'blur'` to update on the blur `event`.  *  * ```ts  * const control = new FormControl('', { updateOn: 'blur' });  * ```  *  * ### Configure the control to update on a submit event  *  * Set the `updateOn` option to `'submit'` to update on a submit `event`.  *  * ```ts  * const control = new FormControl('', { updateOn: 'submit' });  * ```  *  * ### Reset the control back to a specific value  *  * You reset to a specific form state by passing through a standalone  * value or a form state object that contains both a value and a disabled state  * (these are the only two properties that cannot be calculated).  *  * ```ts  * const control = new FormControl('Nancy');  *  * console.log(control.value); // 'Nancy'  *  * control.reset('Drew');  *  * console.log(control.value); // 'Drew'  * ```  *  * ### Reset the control to its initial value  *  * If you wish to always reset the control to its initial value (instead of null),  * you can pass the `nonNullable` option:  *  * ```  * const control = new FormControl('Nancy', {nonNullable: true});  *  * console.log(control.value); // 'Nancy'  *  * control.reset();  *  * console.log(control.value); // 'Nancy'  * ```  *  * ### Reset the control back to an initial value and disabled  *  * ```  * const control = new FormControl('Nancy');  *  * console.log(control.value); // 'Nancy'  * console.log(control.status); // 'VALID'  *  * control.reset({ value: 'Drew', disabled: true });  *  * console.log(control.value); // 'Drew'  * console.log(control.status); // 'DISABLED'  * ```  */ export interface FormControl<TValue = any> extends AbstractControl<TValue> {   /**    * The default value of this FormControl, used whenever the control is reset without an explicit    * value. See {@link FormControlOptions#nonNullable} for more information on configuring    * a default value.    */   readonly defaultValue: TValue;    /** @internal */   _onChange: Function[];    /**    * This field holds a pending value that has not yet been applied to the form's value.    * @internal    */   _pendingValue: TValue;    /** @internal */   _pendingChange: boolean;    /**    * Sets a new value for the form control.    *    * @param value The new value for the control.    * @param options Configuration options that determine how the control propagates changes    * and emits events when the value changes.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control value is updated.    * When false, no events are emitted.    * * `emitModelToViewChange`: When true or not supplied  (the default), each change triggers an    * `onChange` event to    * update the view.    * * `emitViewToModelChange`: When true or not supplied (the default), each change triggers an    * `ngModelChange`    * event to update the model.    *    */   setValue(value: TValue, options?: {     onlySelf?: boolean,     emitEvent?: boolean,     emitModelToViewChange?: boolean,     emitViewToModelChange?: boolean   }): void;    /**    * Patches the value of a control.    *    * This function is functionally the same as {@link FormControl#setValue setValue} at this level.    * It exists for symmetry with {@link FormGroup#patchValue patchValue} on `FormGroups` and    * `FormArrays`, where it does behave differently.    *    * @see `setValue` for options    */   patchValue(value: TValue, options?: {     onlySelf?: boolean,     emitEvent?: boolean,     emitModelToViewChange?: boolean,     emitViewToModelChange?: boolean   }): void;    /**    * Resets the form control, marking it `pristine` and `untouched`, and resetting    * the value. The new value will be the provided value (if passed), `null`, or the initial value    * if `nonNullable` was set in the constructor via {@link FormControlOptions}.    *    * ```ts    * // By default, the control will reset to null.    * const dog = new FormControl('spot');    * dog.reset(); // dog.value is null    *    * // If this flag is set, the control will instead reset to the initial value.    * const cat = new FormControl('tabby', {nonNullable: true});    * cat.reset(); // cat.value is \"tabby\"    *    * // A value passed to reset always takes precedence.    * const fish = new FormControl('finn', {nonNullable: true});    * fish.reset('bubble'); // fish.value is \"bubble\"    * ```    *    * @param formState Resets the control with an initial value,    * or an object that defines the initial value and disabled state.    *    * @param options Configuration options that determine how the control propagates changes    * and emits events after the value changes.    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is reset.    * When false, no events are emitted.    *    */   reset(formState?: TValue|FormControlState<TValue>, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * For a simple FormControl, the raw value is equivalent to the value.    */   getRawValue(): TValue;    /**    * @internal    */   _updateValue(): void;    /**    * @internal    */   _anyControls(condition: (c: AbstractControl) => boolean): boolean;    /**    * @internal    */   _allControlsDisabled(): boolean;     /**    * Register a listener for change events.    *    * @param fn The method that is called when the value changes    */   registerOnChange(fn: Function): void;     /**    * Internal function to unregister a change events listener.    * @internal    */   _unregisterOnChange(fn: (value?: any, emitModelEvent?: boolean) => void): void;    /**    * Register a listener for disabled events.    *    * @param fn The method that is called when the disabled status changes.    */   registerOnDisabledChange(fn: (isDisabled: boolean) => void): void;    /**    * Internal function to unregister a disabled event listener.    * @internal    */   _unregisterOnDisabledChange(fn: (isDisabled: boolean) => void): void;    /**    * @internal    */   _forEachChild(cb: (c: AbstractControl) => void): void;    /** @internal */   _syncPendingControls(): boolean; }  // This internal interface is present to avoid a naming clash, resulting in the wrong `FormControl` // symbol being used. type FormControlInterface<TValue = any> = FormControl<TValue>;  /**  * Various available constructors for `FormControl`.  * Do not use this interface directly. Instead, use `FormControl`:  * ```  * const fc = new FormControl('foo');  * ```  * This symbol is prefixed with ɵ to make plain that it is an internal symbol.  */ export interface ɵFormControlCtor {   /**    * Construct a FormControl with no initial value or validators.    */   new(): FormControl<any>;    /**    * Creates a new `FormControl` instance.    *    * @param formState Initializes the control with an initial value,    * or an object that defines the initial value and disabled state.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or a `FormControlOptions` object that contains validation functions    * and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions    */   new<T = any>(value: FormControlState<T>|T, opts: FormControlOptions&{nonNullable: true}):       FormControl<T>;    /**    * @deprecated Use `nonNullable` instead.    */   new<T = any>(value: FormControlState<T>|T, opts: FormControlOptions&{     initialValueIsDefault: true   }): FormControl<T>;    /**    * @deprecated When passing an `options` argument, the `asyncValidator` argument has no effect.    */   new<T = any>(       value: FormControlState<T>|T, opts: FormControlOptions,       asyncValidator: AsyncValidatorFn|AsyncValidatorFn[]): FormControl<T|null>;    new<T = any>(       value: FormControlState<T>|T,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl<T|null>;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormControl<any>; }  function isFormControlState(formState: unknown): formState is FormControlState<unknown> {   return typeof formState === 'object' && formState !== null &&       Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState; }  export const FormControl: ɵFormControlCtor =     (class FormControl<TValue = any> extends AbstractControl<          TValue> implements FormControlInterface<TValue> {       /** @publicApi */       public readonly defaultValue: TValue = null as unknown as TValue;        /** @internal */       _onChange: Array<Function> = [];        /** @internal */       _pendingValue!: TValue;        /** @internal */       _pendingChange: boolean = false;        constructor(           // formState and defaultValue will only be null if T is nullable           formState: FormControlState<TValue>|TValue = null as unknown as TValue,           validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,           asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null) {         super(             pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));         this._applyFormState(formState);         this._setUpdateStrategy(validatorOrOpts);         this._initObservables();         this.updateValueAndValidity({           onlySelf: true,           // If `asyncValidator` is present, it will trigger control status change from `PENDING` to           // `VALID` or `INVALID`.           // The status should be broadcasted via the `statusChanges` observable, so we set           // `emitEvent` to `true` to allow that during the control creation process.           emitEvent: !!this.asyncValidator         });         if (isOptionsObj(validatorOrOpts) &&             (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {           if (isFormControlState(formState)) {             this.defaultValue = formState.value;           } else {             this.defaultValue = formState;           }         }       }        override setValue(value: TValue, options: {         onlySelf?: boolean,         emitEvent?: boolean,         emitModelToViewChange?: boolean,         emitViewToModelChange?: boolean       } = {}): void {         (this as {value: TValue}).value = this._pendingValue = value;         if (this._onChange.length && options.emitModelToViewChange !== false) {           this._onChange.forEach(               (changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));         }         this.updateValueAndValidity(options);       }        override patchValue(value: TValue, options: {         onlySelf?: boolean,         emitEvent?: boolean,         emitModelToViewChange?: boolean,         emitViewToModelChange?: boolean       } = {}): void {         this.setValue(value, options);       }        override reset(           formState: TValue|FormControlState<TValue> = this.defaultValue,           options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {         this._applyFormState(formState);         this.markAsPristine(options);         this.markAsUntouched(options);         this.setValue(this.value, options);         this._pendingChange = false;       }        /**  @internal */       override _updateValue(): void {}        /**  @internal */       override _anyControls(condition: (c: AbstractControl) => boolean): boolean {         return false;       }        /**  @internal */       override _allControlsDisabled(): boolean {         return this.disabled;       }        registerOnChange(fn: Function): void {         this._onChange.push(fn);       }        /** @internal */       _unregisterOnChange(fn: (value?: any, emitModelEvent?: boolean) => void): void {         removeListItem(this._onChange, fn);       }        registerOnDisabledChange(fn: (isDisabled: boolean) => void): void {         this._onDisabledChange.push(fn);       }        /** @internal */       _unregisterOnDisabledChange(fn: (isDisabled: boolean) => void): void {         removeListItem(this._onDisabledChange, fn);       }        /** @internal */       override _forEachChild(cb: (c: AbstractControl) => void): void {}        /** @internal */       override _syncPendingControls(): boolean {         if (this.updateOn === 'submit') {           if (this._pendingDirty) this.markAsDirty();           if (this._pendingTouched) this.markAsTouched();           if (this._pendingChange) {             this.setValue(this._pendingValue, {onlySelf: true, emitModelToViewChange: false});             return true;           }         }         return false;       }        private _applyFormState(formState: FormControlState<TValue>|TValue) {         if (isFormControlState(formState)) {           (this as {value: TValue}).value = this._pendingValue = formState.value;           formState.disabled ? this.disable({onlySelf: true, emitEvent: false}) :                                this.enable({onlySelf: true, emitEvent: false});         } else {           (this as {value: TValue}).value = this._pendingValue = formState;         }       }     });  interface UntypedFormControlCtor {   new(): UntypedFormControl;    new(formState?: any, validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormControl;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormControl<any>; }  /**  * UntypedFormControl is a non-strongly-typed version of @see FormControl.  */ export type UntypedFormControl = FormControl<any>;  export const UntypedFormControl: UntypedFormControlCtor = FormControl;  /**  * @description  * Asserts that the given control is an instance of `FormControl`  *  * @publicApi  */ export const isFormControl = (control: unknown): control is FormControl =>     control instanceof FormControl; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, OnDestroy, OnInit} from '@angular/core';  import {FormGroup} from '../model/form_group';  import {ControlContainer} from './control_container'; import {Form} from './form_interface'; import {controlPath} from './shared';    /**  * @description  * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.  *  * @publicApi  */ @Directive() export class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {   /**    * @description    * The parent control for the group    *    * @internal    */   // TODO(issue/24571): remove '!'.   _parent!: ControlContainer;    /** @nodoc */   ngOnInit(): void {     this._checkParentType();     // Register the group with its parent group.     this.formDirective!.addFormGroup(this);   }    /** @nodoc */   ngOnDestroy(): void {     if (this.formDirective) {       // Remove the group from its parent group.       this.formDirective.removeFormGroup(this);     }   }    /**    * @description    * The `FormGroup` bound to this directive.    */   override get control(): FormGroup {     return this.formDirective!.getFormGroup(this);   }    /**    * @description    * The path to this group from the top-level directive.    */   override get path(): string[] {     return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);   }    /**    * @description    * The top-level directive for this group if present, otherwise null.    */   override get formDirective(): Form|null {     return this._parent ? this._parent.formDirective : null;   }    /** @internal */   _checkParentType(): void {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {formControlNameExample, formGroupNameExample, ngModelGroupExample, ngModelWithFormGroupExample} from './error_examples';   export function modelParentException(): Error {   return new RuntimeError(RuntimeErrorCode.NGMODEL_IN_FORM_GROUP, `     ngModel cannot be used to register form controls with a parent formGroup directive.  Try using     formGroup's partner directive \"formControlName\" instead.  Example:      ${formControlNameExample}      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:      Example:      ${ngModelWithFormGroupExample}`); }  export function formGroupNameException(): Error {   return new RuntimeError(RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME, `     ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.      Option 1: Use formControlName instead of ngModel (reactive strategy):      ${formGroupNameExample}      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):      ${ngModelGroupExample}`); }  export function missingNameException(): Error {   return new RuntimeError(       RuntimeErrorCode.NGMODEL_WITHOUT_NAME,       `If ngModel is used within a form tag, either the name attribute must be set or the form     control must be defined as 'standalone' in ngModelOptions.      Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">     Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`); }  export function modelGroupParentException(): Error {   return new RuntimeError(RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP, `     ngModelGroup cannot be used with a parent formGroup directive.      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):      ${formGroupNameExample}      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):      ${ngModelGroupExample}`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Host, Inject, Input, OnDestroy, OnInit, Optional, Self, SkipSelf} from '@angular/core';  import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators';  import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; import {NgForm} from './ng_form'; import {modelGroupParentException} from './template_driven_errors'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from './validators';  export const modelGroupProvider: any = {   provide: ControlContainer,   useExisting: forwardRef(() => NgModelGroup) };  /**  * @description  * Creates and binds a `FormGroup` instance to a DOM element.  *  * This directive can only be used as a child of `NgForm` (within `<form>` tags).  *  * Use this directive to validate a sub-group of your form separately from the  * rest of your form, or if some values in your domain model make more sense  * to consume together in a nested object.  *  * Provide a name for the sub-group and it will become the key  * for the sub-group in the form's full value. If you need direct access, export the directive into  * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).  *  * @usageNotes  *  * ### Consuming controls in a grouping  *  * The following example shows you how to combine controls together in a sub-group  * of the form.  *  * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}  *  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup'}) export class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy {   /**    * @description    * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds    * to a key in the parent `NgForm`.    */   // TODO(issue/24571): remove '!'.   @Input('ngModelGroup') override name!: string;    constructor(       @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[]) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /** @internal */   override _checkParentType(): void {     if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) &&         (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw modelGroupParentException();     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ChangeDetectorRef, Directive, EventEmitter, forwardRef, Host, Inject, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges, ɵcoerceToBoolean as coerceToBoolean} from '@angular/core';  import {FormHooks} from '../model/abstract_model'; import {FormControl} from '../model/form_control'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators';  import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor'; import {NgControl} from './ng_control'; import {NgForm} from './ng_form'; import {NgModelGroup} from './ng_model_group'; import {CALL_SET_DISABLED_STATE, controlPath, isPropertyUpdated, selectValueAccessor, SetDisabledStateOption, setUpControl} from './shared'; import {formGroupNameException, missingNameException, modelParentException} from './template_driven_errors'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from './validators';  const formControlBinding: Provider = {   provide: NgControl,   useExisting: forwardRef(() => NgModel) };  /**  * `ngModel` forces an additional change detection run when its inputs change:  * E.g.:  * ```  * <div>{{myModel.valid}}</div>  * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">  * ```  * I.e. `ngModel` can export itself on the element and then be used in the template.  * Normally, this would result in expressions before the `input` that use the exported directive  * to have an old value as they have been  * dirty checked before. As this is a very common case for `ngModel`, we added this second change  * detection run.  *  * Notes:  * - this is just one extra run no matter how many `ngModel`s have been changed.  * - this is a general problem when using `exportAs` for directives!  */ const resolvedPromise = (() => Promise.resolve())();  /**  * @description  * Creates a `FormControl` instance from a domain model and binds it  * to a form control element.  *  * The `FormControl` instance tracks the value, user interaction, and  * validation status of the control and keeps the view synced with the model. If used  * within a parent form, the directive also registers itself with the form as a child  * control.  *  * This directive is used by itself or as part of a larger form. Use the  * `ngModel` selector to activate it.  *  * It accepts a domain model as an optional `Input`. If you have a one-way binding  * to `ngModel` with `[]` syntax, changing the domain model's value in the component  * class sets the value in the view. If you have a two-way binding with `[()]` syntax  * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to  * the domain model in your class.  *  * To inspect the properties of the associated `FormControl` (like the validity state),  * export the directive into a local template variable using `ngModel` as the key (ex:  * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.  * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control  * for direct access. See a full list of properties directly available in  * `AbstractControlDirective`.  *  * @see `RadioControlValueAccessor`  * @see `SelectControlValueAccessor`  *  * @usageNotes  *  * ### Using ngModel on a standalone control  *  * The following examples show a simple standalone control using `ngModel`:  *  * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}  *  * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute  * so that the control can be registered with the parent form under that name.  *  * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,  * as the parent form syncs the value for you. You access its properties by exporting it into a  * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where  * needed on form submission.  *  * If you do need to populate initial values into your form, using a one-way binding for  * `ngModel` tends to be sufficient as long as you use the exported form's value rather  * than the domain model's value on submit.  *  * ### Using ngModel within a form  *  * The following example shows controls using `ngModel` within a form:  *  * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}  *  * ### Using a standalone ngModel within a group  *  * The following example shows you how to use a standalone ngModel control  * within a form. This controls the display of the form, but doesn't contain form data.  *  * ```html  * <form>  *   <input name=\"login\" ngModel placeholder=\"Login\">  *   <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?  * </form>  * <!-- form value: {login: ''} -->  * ```  *  * ### Setting the ngModel `name` attribute through options  *  * The following example shows you an alternate way to set the name attribute. Here,  * an attribute identified as name is used within a custom form control component. To still be able  * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.  *  * ```html  * <form>  *   <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">  *   </my-custom-form-control>  * </form>  * <!-- form value: {user: ''} -->  * ```  *  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[ngModel]:not([formControlName]):not([formControl])',   providers: [formControlBinding],   exportAs: 'ngModel' }) export class NgModel extends NgControl implements OnChanges, OnDestroy {   public override readonly control: FormControl = new FormControl();    // At runtime we coerce arbitrary values assigned to the \"disabled\" input to a \"boolean\".   // This is not reflected in the type of the property because outside of templates, consumers   // should only deal with booleans. In templates, a string is allowed for convenience and to   // match the native \"disabled attribute\" semantics which can be observed on input elements.   // This static member tells the compiler that values of type \"string\" can also be assigned   // to the input in a template.   /** @nodoc */   static ngAcceptInputType_isDisabled: boolean|string;    /** @internal */   _registered = false;    /**    * Internal reference to the view model value.    * @nodoc    */   viewModel: any;    /**    * @description    * Tracks the name bound to the directive. If a parent form exists, it    * uses this name as a key to retrieve this control's value.    */   // TODO(issue/24571): remove '!'.   @Input() override name!: string;    /**    * @description    * Tracks whether the control is disabled.    */   // TODO(issue/24571): remove '!'.   @Input('disabled') isDisabled!: boolean;    /**    * @description    * Tracks the value bound to this directive.    */   @Input('ngModel') model: any;    /**    * @description    * Tracks the configuration options for this `ngModel` instance.    *    * **name**: An alternative to setting the name attribute on the form control element. See    * the [example](api/forms/NgModel#using-ngmodel-on-a-standalone-control) for using `NgModel`    * as a standalone control.    *    * **standalone**: When set to true, the `ngModel` will not register itself with its parent form,    * and acts as if it's not in the form. Defaults to false. If no parent form exists, this option    * has no effect.    *    * **updateOn**: Defines the event upon which the form control value and validity update.    * Defaults to 'change'. Possible values: `'change'` | `'blur'` | `'submit'`.    *    */   // TODO(issue/24571): remove '!'.   @Input('ngModelOptions') options!: {name?: string, standalone?: boolean, updateOn?: FormHooks};    /**    * @description    * Event emitter for producing the `ngModelChange` event after    * the view model updates.    */   @Output('ngModelChange') update = new EventEmitter();    constructor(       @Optional() @Host() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],       @Optional() @Inject(ChangeDetectorRef) private _changeDetectorRef?: ChangeDetectorRef|null,       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);     this.valueAccessor = selectValueAccessor(this, valueAccessors);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     this._checkForErrors();     if (!this._registered || 'name' in changes) {       if (this._registered) {         this._checkName();         if (this.formDirective) {           // We can't call `formDirective.removeControl(this)`, because the `name` has already been           // changed. We also can't reset the name temporarily since the logic in `removeControl`           // is inside a promise and it won't run immediately. We work around it by giving it an           // object with the same shape instead.           const oldName = changes['name'].previousValue;           this.formDirective.removeControl({name: oldName, path: this._getPath(oldName)});         }       }       this._setUpControl();     }     if ('isDisabled' in changes) {       this._updateDisabled(changes);     }      if (isPropertyUpdated(changes, this.viewModel)) {       this._updateValue(this.model);       this.viewModel = this.model;     }   }    /** @nodoc */   ngOnDestroy(): void {     this.formDirective && this.formDirective.removeControl(this);   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return this._getPath(this.name);   }    /**    * @description    * The top-level directive for this control if present, otherwise null.    */   get formDirective(): any {     return this._parent ? this._parent.formDirective : null;   }    /**    * @description    * Sets the new value for the view model and emits an `ngModelChange` event.    *    * @param newValue The new value emitted by `ngModelChange`.    */   override viewToModelUpdate(newValue: any): void {     this.viewModel = newValue;     this.update.emit(newValue);   }    private _setUpControl(): void {     this._setUpdateStrategy();     this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);     this._registered = true;   }    private _setUpdateStrategy(): void {     if (this.options && this.options.updateOn != null) {       this.control._updateOn = this.options.updateOn;     }   }    private _isStandalone(): boolean {     return !this._parent || !!(this.options && this.options.standalone);   }    private _setUpStandalone(): void {     setUpControl(this.control, this, this.callSetDisabledState);     this.control.updateValueAndValidity({emitEvent: false});   }    private _checkForErrors(): void {     if (!this._isStandalone()) {       this._checkParentType();     }     this._checkName();   }    private _checkParentType(): void {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       if (!(this._parent instanceof NgModelGroup) &&           this._parent instanceof AbstractFormGroupDirective) {         throw formGroupNameException();       } else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {         throw modelParentException();       }     }   }    private _checkName(): void {     if (this.options && this.options.name) this.name = this.options.name;      if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw missingNameException();     }   }    private _updateValue(value: any): void {     resolvedPromise.then(() => {       this.control.setValue(value, {emitViewToModelChange: false});       this._changeDetectorRef?.markForCheck();     });   }    private _updateDisabled(changes: SimpleChanges) {     const disabledValue = changes['isDisabled'].currentValue;     // checking for 0 to avoid breaking change     const isDisabled = disabledValue !== 0 && coerceToBoolean(disabledValue);      resolvedPromise.then(() => {       if (isDisabled && !this.control.disabled) {         this.control.disable();       } else if (!isDisabled && this.control.disabled) {         this.control.enable();       }        this._changeDetectorRef?.markForCheck();     });   }    private _getPath(controlName: string): string[] {     return this._parent ? controlPath(controlName, this._parent) : [controlName];   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive} from '@angular/core';  /**  * @description  *  * Adds `novalidate` attribute to all forms by default.  *  * `novalidate` is used to disable browser's native form validation.  *  * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:  *  * ```  * <form ngNativeValidate></form>  * ```  *  * @publicApi  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  */ @Directive({   selector: 'form:not([ngNoForm]):not([ngNativeValidate])',   host: {'novalidate': ''}, }) export class ɵNgNoValidate { }  export {ɵNgNoValidate as NgNoValidate}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, Provider} from '@angular/core';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const NUMBER_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => NumberValueAccessor),   multi: true };  /**  * @description  * The `ControlValueAccessor` for writing a number value and listening to number input changes.  * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`  * directives.  *  * @usageNotes  *  * ### Using a number input with a reactive form.  *  * The following example shows how to use a number input with a reactive form.  *  * ```ts  * const totalCountControl = new FormControl();  * ```  *  * ```  * <input type=\"number\" [formControl]=\"totalCountControl\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',   host: {'(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()'},   providers: [NUMBER_VALUE_ACCESSOR] }) export class NumberValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * Sets the \"value\" property on the input element.    * @nodoc    */   writeValue(value: number): void {     // The value needs to be normalized for IE9, otherwise it is set to 'null' when null     const normalizedValue = value == null ? '' : value;     this.setProperty('value', normalizedValue);   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (_: number|null) => void): void {     this.onChange = (value) => {       fn(value == '' ? null : parseFloat(value));     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, inject, Injectable, Injector, Input, NgModule, OnDestroy, OnInit, Provider, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor'; import {NgControl} from './ng_control'; import {CALL_SET_DISABLED_STATE, setDisabledStateDefault, SetDisabledStateOption} from './shared';  const RADIO_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => RadioControlValueAccessor),   multi: true };  function throwNameError() {   throw new RuntimeError(RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH, `       If you define both a name and a formControlName attribute on your radio button, their values       must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">     `); }  /**  * Internal-only NgModule that works as a host for the `RadioControlRegistry` tree-shakable  * provider. Note: the `InternalFormsSharedModule` can not be used here directly, since it's  * declared *after* the `RadioControlRegistry` class and the `providedIn` doesn't support  * `forwardRef` logic.  */ @NgModule() export class RadioControlRegistryModule { }  /**  * @description  * Class used by Angular to track radio buttons. For internal use only.  */ @Injectable({providedIn: RadioControlRegistryModule}) export class RadioControlRegistry {   private _accessors: any[] = [];    /**    * @description    * Adds a control to the internal registry. For internal use only.    */   add(control: NgControl, accessor: RadioControlValueAccessor) {     this._accessors.push([control, accessor]);   }    /**    * @description    * Removes a control from the internal registry. For internal use only.    */   remove(accessor: RadioControlValueAccessor) {     for (let i = this._accessors.length - 1; i >= 0; --i) {       if (this._accessors[i][1] === accessor) {         this._accessors.splice(i, 1);         return;       }     }   }    /**    * @description    * Selects a radio button. For internal use only.    */   select(accessor: RadioControlValueAccessor) {     this._accessors.forEach((c) => {       if (this._isSameGroup(c, accessor) && c[1] !== accessor) {         c[1].fireUncheck(accessor.value);       }     });   }    private _isSameGroup(       controlPair: [NgControl, RadioControlValueAccessor],       accessor: RadioControlValueAccessor): boolean {     if (!controlPair[0].control) return false;     return controlPair[0]._parent === accessor._control._parent &&         controlPair[1].name === accessor.name;   } }  /**  * @description  * The `ControlValueAccessor` for writing radio control values and listening to radio control  * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * @usageNotes  *  * ### Using radio buttons with reactive form directives  *  * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in  * a reactive form, radio buttons in the same group should have the same `formControlName`.  * Providing a `name` attribute is optional.  *  * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',   host: {'(change)': 'onChange()', '(blur)': 'onTouched()'},   providers: [RADIO_VALUE_ACCESSOR] }) export class RadioControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor, OnDestroy, OnInit {   /** @internal */   // TODO(issue/24571): remove '!'.   _state!: boolean;   /** @internal */   // TODO(issue/24571): remove '!'.   _control!: NgControl;   /** @internal */   // TODO(issue/24571): remove '!'.   _fn!: Function;    private setDisabledStateFired = false;    /**    * The registered callback function called when a change event occurs on the input element.    * Note: we declare `onChange` here (also used as host listener) as a function with no arguments    * to override the `onChange` function (which expects 1 argument) in the parent    * `BaseControlValueAccessor` class.    * @nodoc    */   override onChange = () => {};    /**    * @description    * Tracks the name of the radio input element.    */   // TODO(issue/24571): remove '!'.   @Input() name!: string;    /**    * @description    * Tracks the name of the `FormControl` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input() formControlName!: string;    /**    * @description    * Tracks the value of the radio input element    */   @Input() value: any;    private callSetDisabledState =       inject(CALL_SET_DISABLED_STATE, {optional: true}) ?? setDisabledStateDefault;    constructor(       renderer: Renderer2, elementRef: ElementRef, private _registry: RadioControlRegistry,       private _injector: Injector) {     super(renderer, elementRef);   }    /** @nodoc */   ngOnInit(): void {     this._control = this._injector.get(NgControl);     this._checkName();     this._registry.add(this._control, this);   }    /** @nodoc */   ngOnDestroy(): void {     this._registry.remove(this);   }    /**    * Sets the \"checked\" property value on the radio input element.    * @nodoc    */   writeValue(value: any): void {     this._state = value === this.value;     this.setProperty('checked', this._state);   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (_: any) => {}): void {     this._fn = fn;     this.onChange = () => {       fn(this.value);       this._registry.select(this);     };   }    /** @nodoc */   override setDisabledState(isDisabled: boolean): void {     /**      * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,      * including upon control creation. However, a longstanding bug caused the method to not fire      * when an *enabled* control was attached. This bug was fixed in v15 in #47576.      *      * This had a side effect: previously, it was possible to instantiate a reactive form control      * with `[attr.disabled]=true`, even though the the corresponding control was enabled in the      * model. This resulted in a mismatch between the model and the DOM. Now, because      * `setDisabledState` is always called, the value in the DOM will be immediately overwritten      * with the \"correct\" enabled value.      *      * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms      * models the entire group of radio buttons as a single `FormControl`, there is no way to      * control the disabled state for individual radios, so they can no longer be configured as      * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`      * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`      * is `false`, and we are not in legacy mode.      */     if (this.setDisabledStateFired || isDisabled ||         this.callSetDisabledState === 'whenDisabledForLegacyCode') {       this.setProperty('disabled', isDisabled);     }     this.setDisabledStateFired = true;   }    /**    * Sets the \"value\" on the radio input element and unchecks it.    *    * @param value    */   fireUncheck(value: any): void {     this.writeValue(value);   }    private _checkName(): void {     if (this.name && this.formControlName && this.name !== this.formControlName &&         (typeof ngDevMode === 'undefined' || ngDevMode)) {       throwNameError();     }     if (!this.name && this.formControlName) this.name = this.formControlName;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Provider} from '@angular/core';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const RANGE_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => RangeValueAccessor),   multi: true };  /**  * @description  * The `ControlValueAccessor` for writing a range value and listening to range input changes.  * The value accessor is used by the `FormControlDirective`, `FormControlName`, and  `NgModel`  * directives.  *  * @usageNotes  *  * ### Using a range input with a reactive form  *  * The following example shows how to use a range input with a reactive form.  *  * ```ts  * const ageControl = new FormControl();  * ```  *  * ```  * <input type=\"range\" [formControl]=\"ageControl\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',   host: {     '(change)': 'onChange($event.target.value)',     '(input)': 'onChange($event.target.value)',     '(blur)': 'onTouched()'   },   providers: [RANGE_VALUE_ACCESSOR] }) export class RangeValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * Sets the \"value\" property on the input element.    * @nodoc    */   writeValue(value: any): void {     this.setProperty('value', parseFloat(value));   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (_: number|null) => void): void {     this.onChange = (value) => {       fn(value == '' ? null : parseFloat(value));     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EventEmitter, forwardRef, Inject, InjectionToken, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges} from '@angular/core';  import {FormControl} from '../../model/form_control'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '../control_value_accessor'; import {NgControl} from '../ng_control'; import {disabledAttrWarning} from '../reactive_errors'; import {_ngModelWarning, CALL_SET_DISABLED_STATE, cleanUpControl, isPropertyUpdated, selectValueAccessor, SetDisabledStateOption, setUpControl} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';   /**  * Token to provide to turn off the ngModel warning on formControl and formControlName.  */ export const NG_MODEL_WITH_FORM_CONTROL_WARNING =     new InjectionToken('NgModelWithFormControlWarning');  const formControlBinding: Provider = {   provide: NgControl,   useExisting: forwardRef(() => FormControlDirective) };  /**  * @description  * Synchronizes a standalone `FormControl` instance to a form control element.  *  * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive  * form directives was deprecated in Angular v6 and is scheduled for removal in  * a future version of Angular.  * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `FormControl`  * @see `AbstractControl`  *  * @usageNotes  *  * The following example shows how to register a standalone control and set its value.  *  * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm'}) export class FormControlDirective extends NgControl implements OnChanges, OnDestroy {   /**    * Internal reference to the view model value.    * @nodoc    */   viewModel: any;    /**    * @description    * Tracks the `FormControl` instance bound to the directive.    */   // TODO(issue/24571): remove '!'.   @Input('formControl') form!: FormControl;    /**    * @description    * Triggers a warning in dev mode that this input should not be used with reactive forms.    */   @Input('disabled')   set isDisabled(isDisabled: boolean) {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       console.warn(disabledAttrWarning);     }   }    // TODO(kara): remove next 4 properties once deprecation period is over    /** @deprecated as of v6 */   @Input('ngModel') model: any;    /** @deprecated as of v6 */   @Output('ngModelChange') update = new EventEmitter();    /**    * @description    * Static property used to track whether any ngModel warnings have been sent across    * all instances of FormControlDirective. Used to support warning config of \"once\".    *    * @internal    */   static _ngModelWarningSentOnce = false;    /**    * @description    * Instance property used to track whether an ngModel warning has been sent out for this    * particular `FormControlDirective` instance. Used to support warning config of \"always\".    *    * @internal    */   _ngModelWarningSent = false;    constructor(       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],       @Optional() @Inject(NG_MODEL_WITH_FORM_CONTROL_WARNING) private _ngModelWarningConfig: string|       null,       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);     this.valueAccessor = selectValueAccessor(this, valueAccessors);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     if (this._isControlChanged(changes)) {       const previousForm = changes['form'].previousValue;       if (previousForm) {         cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */ false);       }       setUpControl(this.form, this, this.callSetDisabledState);       this.form.updateValueAndValidity({emitEvent: false});     }     if (isPropertyUpdated(changes, this.viewModel)) {       if (typeof ngDevMode === 'undefined' || ngDevMode) {         _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);       }       this.form.setValue(this.model);       this.viewModel = this.model;     }   }    /** @nodoc */   ngOnDestroy() {     if (this.form) {       cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);     }   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return [];   }    /**    * @description    * The `FormControl` bound to this directive.    */   override get control(): FormControl {     return this.form;   }    /**    * @description    * Sets the new value for the view model and emits an `ngModelChange` event.    *    * @param newValue The new value for the view model.    */   override viewToModelUpdate(newValue: any): void {     this.viewModel = newValue;     this.update.emit(newValue);   }    private _isControlChanged(changes: {[key: string]: any}): boolean {     return changes.hasOwnProperty('form');   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EventEmitter, forwardRef, Inject, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges} from '@angular/core';  import {FormArray} from '../../model/form_array'; import {FormControl, isFormControl} from '../../model/form_control'; import {FormGroup} from '../../model/form_group'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {ControlContainer} from '../control_container'; import {Form} from '../form_interface'; import {missingFormException} from '../reactive_errors'; import {CALL_SET_DISABLED_STATE, cleanUpControl, cleanUpFormContainer, cleanUpValidators, removeListItem, SetDisabledStateOption, setUpControl, setUpFormContainer, setUpValidators, syncPendingControls} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';  import {FormControlName} from './form_control_name'; import {FormArrayName, FormGroupName} from './form_group_name';  const formDirectiveProvider: Provider = {   provide: ControlContainer,   useExisting: forwardRef(() => FormGroupDirective) };  /**  * @description  *  * Binds an existing `FormGroup` or `FormRecord` to a DOM element.  *  * This directive accepts an existing `FormGroup` instance. It will then use this  * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,  * and `FormArray` instances to child `FormControlName`, `FormGroupName`,  * and `FormArrayName` directives.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `AbstractControl`  *  * @usageNotes  * ### Register Form Group  *  * The following example registers a `FormGroup` with first name and last name controls,  * and listens for the *ngSubmit* event when the button is clicked.  *  * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({   selector: '[formGroup]',   providers: [formDirectiveProvider],   host: {'(submit)': 'onSubmit($event)', '(reset)': 'onReset()'},   exportAs: 'ngForm' }) export class FormGroupDirective extends ControlContainer implements Form, OnChanges, OnDestroy {   /**    * @description    * Reports whether the form submission has been triggered.    */   public readonly submitted: boolean = false;    /**    * Reference to an old form group input value, which is needed to cleanup old instance in case it    * was replaced with a new one.    */   private _oldForm: FormGroup|undefined;    /**    * Callback that should be invoked when controls in FormGroup or FormArray collection change    * (added or removed). This callback triggers corresponding DOM updates.    */   private readonly _onCollectionChange = () => this._updateDomValue();    /**    * @description    * Tracks the list of added `FormControlName` instances    */   directives: FormControlName[] = [];    /**    * @description    * Tracks the `FormGroup` bound to this directive.    */   @Input('formGroup') form: FormGroup = null!;    /**    * @description    * Emits an event when the form submission has been triggered.    */   @Output() ngSubmit = new EventEmitter();    constructor(       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     this._checkFormPresent();     if (changes.hasOwnProperty('form')) {       this._updateValidators();       this._updateDomValue();       this._updateRegistrations();       this._oldForm = this.form;     }   }    /** @nodoc */   ngOnDestroy() {     if (this.form) {       cleanUpValidators(this.form, this);        // Currently the `onCollectionChange` callback is rewritten each time the       // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should       // happen *only* when the `onCollectionChange` callback was set by this directive instance.       // Otherwise it might cause overriding a callback of some other directive instances. We should       // consider updating this logic later to make it similar to how `onChange` callbacks are       // handled, see https://github.com/angular/angular/issues/39732 for additional info.       if (this.form._onCollectionChange === this._onCollectionChange) {         this.form._registerOnCollectionChange(() => {});       }     }   }    /**    * @description    * Returns this directive's instance.    */   override get formDirective(): Form {     return this;   }    /**    * @description    * Returns the `FormGroup` bound to this directive.    */   override get control(): FormGroup {     return this.form;   }    /**    * @description    * Returns an array representing the path to this group. Because this directive    * always lives at the top level of a form, it always an empty array.    */   override get path(): string[] {     return [];   }    /**    * @description    * Method that sets up the control directive in this group, re-calculates its value    * and validity, and adds the instance to the internal list of directives.    *    * @param dir The `FormControlName` directive instance.    */   addControl(dir: FormControlName): FormControl {     const ctrl: any = this.form.get(dir.path);     setUpControl(ctrl, dir, this.callSetDisabledState);     ctrl.updateValueAndValidity({emitEvent: false});     this.directives.push(dir);     return ctrl;   }    /**    * @description    * Retrieves the `FormControl` instance from the provided `FormControlName` directive    *    * @param dir The `FormControlName` directive instance.    */   getControl(dir: FormControlName): FormControl {     return <FormControl>this.form.get(dir.path);   }    /**    * @description    * Removes the `FormControlName` instance from the internal list of directives    *    * @param dir The `FormControlName` directive instance.    */   removeControl(dir: FormControlName): void {     cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */ false);     removeListItem(this.directives, dir);   }    /**    * Adds a new `FormGroupName` directive instance to the form.    *    * @param dir The `FormGroupName` directive instance.    */   addFormGroup(dir: FormGroupName): void {     this._setUpFormContainer(dir);   }    /**    * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the    * view.    *    * @param dir The `FormGroupName` directive instance.    */   removeFormGroup(dir: FormGroupName): void {     this._cleanUpFormContainer(dir);   }    /**    * @description    * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance    *    * @param dir The `FormGroupName` directive instance.    */   getFormGroup(dir: FormGroupName): FormGroup {     return <FormGroup>this.form.get(dir.path);   }    /**    * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.    *    * @param dir The `FormArrayName` directive instance.    */   addFormArray(dir: FormArrayName): void {     this._setUpFormContainer(dir);   }    /**    * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the    * view.    *    * @param dir The `FormArrayName` directive instance.    */   removeFormArray(dir: FormArrayName): void {     this._cleanUpFormContainer(dir);   }    /**    * @description    * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.    *    * @param dir The `FormArrayName` directive instance.    */   getFormArray(dir: FormArrayName): FormArray {     return <FormArray>this.form.get(dir.path);   }    /**    * Sets the new value for the provided `FormControlName` directive.    *    * @param dir The `FormControlName` directive instance.    * @param value The new value for the directive's control.    */   updateModel(dir: FormControlName, value: any): void {     const ctrl = <FormControl>this.form.get(dir.path);     ctrl.setValue(value);   }    /**    * @description    * Method called with the \"submit\" event is triggered on the form.    * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.    *    * @param $event The \"submit\" event object    */   onSubmit($event: Event): boolean {     (this as {submitted: boolean}).submitted = true;     syncPendingControls(this.form, this.directives);     this.ngSubmit.emit($event);     // Forms with `method=\"dialog\"` have some special behavior that won't reload the page and that     // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because     // some internal apps call this method directly with the wrong arguments.     return ($event?.target as HTMLFormElement | null)?.method === 'dialog';   }    /**    * @description    * Method called when the \"reset\" event is triggered on the form.    */   onReset(): void {     this.resetForm();   }    /**    * @description    * Resets the form to an initial value and resets its submitted status.    *    * @param value The new value for the form.    */   resetForm(value: any = undefined): void {     this.form.reset(value);     (this as {submitted: boolean}).submitted = false;   }    /** @internal */   _updateDomValue() {     this.directives.forEach(dir => {       const oldCtrl = dir.control;       const newCtrl = this.form.get(dir.path);       if (oldCtrl !== newCtrl) {         // Note: the value of the `dir.control` may not be defined, for example when it's a first         // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).         cleanUpControl(oldCtrl || null, dir);          // Check whether new control at the same location inside the corresponding `FormGroup` is an         // instance of `FormControl` and perform control setup only if that's the case.         // Note: we don't need to clear the list of directives (`this.directives`) here, it would be         // taken care of in the `removeControl` method invoked when corresponding `formControlName`         // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).         if (isFormControl(newCtrl)) {           setUpControl(newCtrl, dir, this.callSetDisabledState);           (dir as {control: FormControl}).control = newCtrl;         }       }     });      this.form._updateTreeValidity({emitEvent: false});   }    private _setUpFormContainer(dir: FormArrayName|FormGroupName): void {     const ctrl: any = this.form.get(dir.path);     setUpFormContainer(ctrl, dir);     // NOTE: this operation looks unnecessary in case no new validators were added in     // `setUpFormContainer` call. Consider updating this code to match the logic in     // `_cleanUpFormContainer` function.     ctrl.updateValueAndValidity({emitEvent: false});   }    private _cleanUpFormContainer(dir: FormArrayName|FormGroupName): void {     if (this.form) {       const ctrl: any = this.form.get(dir.path);       if (ctrl) {         const isControlUpdated = cleanUpFormContainer(ctrl, dir);         if (isControlUpdated) {           // Run validity check only in case a control was updated (i.e. view validators were           // removed) as removing view validators might cause validity to change.           ctrl.updateValueAndValidity({emitEvent: false});         }       }     }   }    private _updateRegistrations() {     this.form._registerOnCollectionChange(this._onCollectionChange);     if (this._oldForm) {       this._oldForm._registerOnCollectionChange(() => {});     }   }    private _updateValidators() {     setUpValidators(this.form, this);     if (this._oldForm) {       cleanUpValidators(this._oldForm, this);     }   }    private _checkFormPresent() {     if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw missingFormException();     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Host, Inject, Input, OnDestroy, OnInit, Optional, Provider, Self, SkipSelf} from '@angular/core';  import {FormArray} from '../../model/form_array'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {AbstractFormGroupDirective} from '../abstract_form_group_directive'; import {ControlContainer} from '../control_container'; import {arrayParentException, groupParentException} from '../reactive_errors'; import {controlPath} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';  import {FormGroupDirective} from './form_group_directive';  const formGroupNameProvider: Provider = {   provide: ControlContainer,   useExisting: forwardRef(() => FormGroupName) };  /**  * @description  *  * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.  *  * This directive can only be used with a parent `FormGroupDirective`.  *  * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and  * looks for a `FormGroup` or `FormRecord` registered with that name in the parent  * `FormGroup` instance you passed into `FormGroupDirective`.  *  * Use nested form groups to validate a sub-group of a  * form separately from the rest or to group the values of certain  * controls into their own nested object.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  *  * @usageNotes  *  * ### Access the group by name  *  * The following example uses the `AbstractControl.get` method to access the  * associated `FormGroup`  *  * ```ts  *   this.form.get('name');  * ```  *  * ### Access individual controls in the group  *  * The following example uses the `AbstractControl.get` method to access  * individual controls within the group using dot syntax.  *  * ```ts  *   this.form.get('name.first');  * ```  *  * ### Register a nested `FormGroup`.  *  * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,  * and provides methods to retrieve the nested `FormGroup` and individual controls.  *  * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formGroupName]', providers: [formGroupNameProvider]}) export class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy {   /**    * @description    * Tracks the name of the `FormGroup` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    * Accepts a name as a string or a number.    * The name in the form of a string is useful for individual forms,    * while the numerical form allows for form groups to be bound    * to indices when iterating over groups in a `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input('formGroupName') override name!: string|number|null;    constructor(       @Optional() @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[]) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /** @internal */   override _checkParentType(): void {     if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw groupParentException();     }   } }  export const formArrayNameProvider: any = {   provide: ControlContainer,   useExisting: forwardRef(() => FormArrayName) };  /**  * @description  *  * Syncs a nested `FormArray` to a DOM element.  *  * This directive is designed to be used with a parent `FormGroupDirective` (selector:  * `[formGroup]`).  *  * It accepts the string name of the nested `FormArray` you want to link, and  * will look for a `FormArray` registered with that name in the parent  * `FormGroup` instance you passed into `FormGroupDirective`.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `AbstractControl`  *  * @usageNotes  *  * ### Example  *  * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formArrayName]', providers: [formArrayNameProvider]}) export class FormArrayName extends ControlContainer implements OnInit, OnDestroy {   /** @internal */   _parent: ControlContainer;    /**    * @description    * Tracks the name of the `FormArray` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    * Accepts a name as a string or a number.    * The name in the form of a string is useful for individual forms,    * while the numerical form allows for form arrays to be bound    * to indices when iterating over arrays in a `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input('formArrayName') override name!: string|number|null;    constructor(       @Optional() @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[]) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /**    * A lifecycle method called when the directive's inputs are initialized. For internal use only.    * @throws If the directive does not have a valid parent.    * @nodoc    */   ngOnInit(): void {     this._checkParentType();     this.formDirective!.addFormArray(this);   }    /**    * A lifecycle method called before the directive's instance is destroyed. For internal use only.    * @nodoc    */   ngOnDestroy(): void {     if (this.formDirective) {       this.formDirective.removeFormArray(this);     }   }    /**    * @description    * The `FormArray` bound to this directive.    */   override get control(): FormArray {     return this.formDirective!.getFormArray(this);   }    /**    * @description    * The top-level directive for this group if present, otherwise null.    */   override get formDirective(): FormGroupDirective|null {     return this._parent ? <FormGroupDirective>this._parent.formDirective : null;   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);   }    private _checkParentType(): void {     if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw arrayParentException();     }   } }  function _hasInvalidParent(parent: ControlContainer): boolean {   return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&       !(parent instanceof FormArrayName); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EventEmitter, forwardRef, Host, Inject, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges, SkipSelf} from '@angular/core';  import {FormControl} from '../../model/form_control'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {AbstractFormGroupDirective} from '../abstract_form_group_directive'; import {ControlContainer} from '../control_container'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '../control_value_accessor'; import {NgControl} from '../ng_control'; import {controlParentException, disabledAttrWarning, ngModelGroupException} from '../reactive_errors'; import {_ngModelWarning, controlPath, isPropertyUpdated, selectValueAccessor} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';  import {NG_MODEL_WITH_FORM_CONTROL_WARNING} from './form_control_directive'; import {FormGroupDirective} from './form_group_directive'; import {FormArrayName, FormGroupName} from './form_group_name';  const controlNameBinding: Provider = {   provide: NgControl,   useExisting: forwardRef(() => FormControlName) };  /**  * @description  * Syncs a `FormControl` in an existing `FormGroup` to a form control  * element by name.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `FormControl`  * @see `AbstractControl`  *  * @usageNotes  *  * ### Register `FormControl` within a group  *  * The following example shows how to register multiple form controls within a form group  * and set their value.  *  * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}  *  * To see `formControlName` examples with different form control types, see:  *  * * Radio buttons: `RadioControlValueAccessor`  * * Selects: `SelectControlValueAccessor`  *  * ### Use with ngModel is deprecated  *  * Support for using the `ngModel` input property and `ngModelChange` event with reactive  * form directives has been deprecated in Angular v6 and is scheduled for removal in  * a future version of Angular.  *  * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formControlName]', providers: [controlNameBinding]}) export class FormControlName extends NgControl implements OnChanges, OnDestroy {   private _added = false;   /**    * Internal reference to the view model value.    * @internal    */   viewModel: any;    /**    * @description    * Tracks the `FormControl` instance bound to the directive.    */   // TODO(issue/24571): remove '!'.   override readonly control!: FormControl;    /**    * @description    * Tracks the name of the `FormControl` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    * Accepts a name as a string or a number.    * The name in the form of a string is useful for individual forms,    * while the numerical form allows for form controls to be bound    * to indices when iterating over controls in a `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input('formControlName') override name!: string|number|null;    /**    * @description    * Triggers a warning in dev mode that this input should not be used with reactive forms.    */   @Input('disabled')   set isDisabled(isDisabled: boolean) {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       console.warn(disabledAttrWarning);     }   }    // TODO(kara): remove next 4 properties once deprecation period is over    /** @deprecated as of v6 */   @Input('ngModel') model: any;    /** @deprecated as of v6 */   @Output('ngModelChange') update = new EventEmitter();    /**    * @description    * Static property used to track whether any ngModel warnings have been sent across    * all instances of FormControlName. Used to support warning config of \"once\".    *    * @internal    */   static _ngModelWarningSentOnce = false;    /**    * @description    * Instance property used to track whether an ngModel warning has been sent out for this    * particular FormControlName instance. Used to support warning config of \"always\".    *    * @internal    */   _ngModelWarningSent = false;    constructor(       @Optional() @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],       @Optional() @Inject(NG_MODEL_WITH_FORM_CONTROL_WARNING) private _ngModelWarningConfig: string|       null) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);     this.valueAccessor = selectValueAccessor(this, valueAccessors);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (!this._added) this._setUpControl();     if (isPropertyUpdated(changes, this.viewModel)) {       if (typeof ngDevMode === 'undefined' || ngDevMode) {         _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);       }       this.viewModel = this.model;       this.formDirective.updateModel(this, this.model);     }   }    /** @nodoc */   ngOnDestroy(): void {     if (this.formDirective) {       this.formDirective.removeControl(this);     }   }    /**    * @description    * Sets the new value for the view model and emits an `ngModelChange` event.    *    * @param newValue The new value for the view model.    */   override viewToModelUpdate(newValue: any): void {     this.viewModel = newValue;     this.update.emit(newValue);   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return controlPath(this.name == null ? this.name : this.name.toString(), this._parent!);   }    /**    * @description    * The top-level directive for this group if present, otherwise null.    */   get formDirective(): any {     return this._parent ? this._parent.formDirective : null;   }    private _checkParentType(): void {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       if (!(this._parent instanceof FormGroupName) &&           this._parent instanceof AbstractFormGroupDirective) {         throw ngModelGroupException();       } else if (           !(this._parent instanceof FormGroupName) &&           !(this._parent instanceof FormGroupDirective) &&           !(this._parent instanceof FormArrayName)) {         throw controlParentException();       }     }   }    private _setUpControl() {     this._checkParentType();     (this as {control: FormControl}).control = this.formDirective.addControl(this);     this._added = true;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, Host, Input, OnDestroy, Optional, Provider, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const SELECT_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => SelectControlValueAccessor),   multi: true };  function _buildValueString(id: string|null, value: any): string {   if (id == null) return `${value}`;   if (value && typeof value === 'object') value = 'Object';   return `${id}: ${value}`.slice(0, 50); }  function _extractId(valueString: string): string {   return valueString.split(':')[0]; }  /**  * @description  * The `ControlValueAccessor` for writing select control values and listening to select control  * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * @usageNotes  *  * ### Using select controls in a reactive form  *  * The following examples show how to use a select control in a reactive form.  *  * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}  *  * ### Using select controls in a template-driven form  *  * To use a select in a template-driven form, simply add an `ngModel` and a `name`  * attribute to the main `<select>` tag.  *  * {@example forms/ts/selectControl/select_control_example.ts region='Component'}  *  * ### Customizing option selection  *  * Angular uses object identity to select option. It's possible for the identities of items  * to change while the data does not. This can happen, for example, if the items are produced  * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the  * second response will produce objects with different identities.  *  * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.  * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.  * If `compareWith` is given, Angular selects option by the return value of the function.  *  * ```ts  * const selectedCountriesControl = new FormControl();  * ```  *  * ```  * <select [compareWith]=\"compareFn\"  [formControl]=\"selectedCountriesControl\">  *     <option *ngFor=\"let country of countries\" [ngValue]=\"country\">  *         {{country.name}}  *     </option>  * </select>  *  * compareFn(c1: Country, c2: Country): boolean {  *     return c1 && c2 ? c1.id === c2.id : c1 === c2;  * }  * ```  *  * **Note:** We listen to the 'change' event because 'input' events aren't fired  * for selects in IE, see:  * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',   host: {'(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()'},   providers: [SELECT_VALUE_ACCESSOR] }) export class SelectControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /** @nodoc */   value: any;    /** @internal */   _optionMap: Map<string, any> = new Map<string, any>();    /** @internal */   _idCounter: number = 0;    /**    * @description    * Tracks the option comparison algorithm for tracking identities when    * checking for changes.    */   @Input()   set compareWith(fn: (o1: any, o2: any) => boolean) {     if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw new RuntimeError(           RuntimeErrorCode.COMPAREWITH_NOT_A_FN,           `compareWith must be a function, but received ${JSON.stringify(fn)}`);     }     this._compareWith = fn;   }    private _compareWith: (o1: any, o2: any) => boolean = Object.is;    /**    * Sets the \"value\" property on the select element.    * @nodoc    */   writeValue(value: any): void {     this.value = value;     const id: string|null = this._getOptionId(value);     const valueString = _buildValueString(id, value);     this.setProperty('value', valueString);   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (value: any) => any): void {     this.onChange = (valueString: string) => {       this.value = this._getOptionValue(valueString);       fn(this.value);     };   }    /** @internal */   _registerOption(): string {     return (this._idCounter++).toString();   }    /** @internal */   _getOptionId(value: any): string|null {     for (const id of Array.from(this._optionMap.keys())) {       if (this._compareWith(this._optionMap.get(id), value)) return id;     }     return null;   }    /** @internal */   _getOptionValue(valueString: string): any {     const id: string = _extractId(valueString);     return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;   } }  /**  * @description  * Marks `<option>` as dynamic, so Angular can be notified when options change.  *  * @see `SelectControlValueAccessor`  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: 'option'}) export class NgSelectOption implements OnDestroy {   /**    * @description    * ID of the option element    */   // TODO(issue/24571): remove '!'.   id!: string;    constructor(       private _element: ElementRef, private _renderer: Renderer2,       @Optional() @Host() private _select: SelectControlValueAccessor) {     if (this._select) this.id = this._select._registerOption();   }    /**    * @description    * Tracks the value bound to the option element. Unlike the value binding,    * ngValue supports binding to objects.    */   @Input('ngValue')   set ngValue(value: any) {     if (this._select == null) return;     this._select._optionMap.set(this.id, value);     this._setElementValue(_buildValueString(this.id, value));     this._select.writeValue(this._select.value);   }    /**    * @description    * Tracks simple string values bound to the option element.    * For objects, use the `ngValue` input binding.    */   @Input('value')   set value(value: any) {     this._setElementValue(value);     if (this._select) this._select.writeValue(this._select.value);   }    /** @internal */   _setElementValue(value: string): void {     this._renderer.setProperty(this._element.nativeElement, 'value', value);   }    /** @nodoc */   ngOnDestroy(): void {     if (this._select) {       this._select._optionMap.delete(this.id);       this._select.writeValue(this._select.value);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, Host, Input, OnDestroy, Optional, Provider, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const SELECT_MULTIPLE_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => SelectMultipleControlValueAccessor),   multi: true };  function _buildValueString(id: string, value: any): string {   if (id == null) return `${value}`;   if (typeof value === 'string') value = `'${value}'`;   if (value && typeof value === 'object') value = 'Object';   return `${id}: ${value}`.slice(0, 50); }  function _extractId(valueString: string): string {   return valueString.split(':')[0]; }  /** Mock interface for HTML Options */ interface HTMLOption {   value: string;   selected: boolean; }  /** Mock interface for HTMLCollection */ abstract class HTMLCollection {   // TODO(issue/24571): remove '!'.   length!: number;   abstract item(_: number): HTMLOption; }  /**  * @description  * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select  * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * @see `SelectControlValueAccessor`  *  * @usageNotes  *  * ### Using a multi-select control  *  * The follow example shows you how to use a multi-select control with a reactive form.  *  * ```ts  * const countryControl = new FormControl();  * ```  *  * ```  * <select multiple name=\"countries\" [formControl]=\"countryControl\">  *   <option *ngFor=\"let country of countries\" [ngValue]=\"country\">  *     {{ country.name }}  *   </option>  * </select>  * ```  *  * ### Customizing option selection  *  * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.  * See the `SelectControlValueAccessor` for usage.  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',   host: {'(change)': 'onChange($event.target)', '(blur)': 'onTouched()'},   providers: [SELECT_MULTIPLE_VALUE_ACCESSOR] }) export class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * The current value.    * @nodoc    */   value: any;    /** @internal */   _optionMap: Map<string, ɵNgSelectMultipleOption> = new Map<string, ɵNgSelectMultipleOption>();    /** @internal */   _idCounter: number = 0;    /**    * @description    * Tracks the option comparison algorithm for tracking identities when    * checking for changes.    */   @Input()   set compareWith(fn: (o1: any, o2: any) => boolean) {     if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw new RuntimeError(           RuntimeErrorCode.COMPAREWITH_NOT_A_FN,           `compareWith must be a function, but received ${JSON.stringify(fn)}`);     }     this._compareWith = fn;   }    private _compareWith: (o1: any, o2: any) => boolean = Object.is;    /**    * Sets the \"value\" property on one or of more of the select's options.    * @nodoc    */   writeValue(value: any): void {     this.value = value;     let optionSelectedStateSetter: (opt: ɵNgSelectMultipleOption, o: any) => void;     if (Array.isArray(value)) {       // convert values to ids       const ids = value.map((v) => this._getOptionId(v));       optionSelectedStateSetter = (opt, o) => {         opt._setSelected(ids.indexOf(o.toString()) > -1);       };     } else {       optionSelectedStateSetter = (opt, o) => {         opt._setSelected(false);       };     }     this._optionMap.forEach(optionSelectedStateSetter);   }    /**    * Registers a function called when the control value changes    * and writes an array of the selected options.    * @nodoc    */   override registerOnChange(fn: (value: any) => any): void {     this.onChange = (element: HTMLSelectElement) => {       const selected: Array<any> = [];       const selectedOptions = element.selectedOptions;       if (selectedOptions !== undefined) {         const options = selectedOptions;         for (let i = 0; i < options.length; i++) {           const opt = options[i];           const val = this._getOptionValue(opt.value);           selected.push(val);         }       }       // Degrade to use `options` when `selectedOptions` property is not available.       // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib       // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.       else {         const options = element.options;         for (let i = 0; i < options.length; i++) {           const opt = options[i];           if (opt.selected) {             const val = this._getOptionValue(opt.value);             selected.push(val);           }         }       }       this.value = selected;       fn(selected);     };   }    /** @internal */   _registerOption(value: ɵNgSelectMultipleOption): string {     const id: string = (this._idCounter++).toString();     this._optionMap.set(id, value);     return id;   }    /** @internal */   _getOptionId(value: any): string|null {     for (const id of Array.from(this._optionMap.keys())) {       if (this._compareWith(this._optionMap.get(id)!._value, value)) return id;     }     return null;   }    /** @internal */   _getOptionValue(valueString: string): any {     const id: string = _extractId(valueString);     return this._optionMap.has(id) ? this._optionMap.get(id)!._value : valueString;   } }  /**  * @description  * Marks `<option>` as dynamic, so Angular can be notified when options change.  *  * @see `SelectMultipleControlValueAccessor`  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: 'option'}) export class ɵNgSelectMultipleOption implements OnDestroy {   // TODO(issue/24571): remove '!'.   id!: string;   /** @internal */   _value: any;    constructor(       private _element: ElementRef, private _renderer: Renderer2,       @Optional() @Host() private _select: SelectMultipleControlValueAccessor) {     if (this._select) {       this.id = this._select._registerOption(this);     }   }    /**    * @description    * Tracks the value bound to the option element. Unlike the value binding,    * ngValue supports binding to objects.    */   @Input('ngValue')   set ngValue(value: any) {     if (this._select == null) return;     this._value = value;     this._setElementValue(_buildValueString(this.id, value));     this._select.writeValue(this._select.value);   }    /**    * @description    * Tracks simple string values bound to the option element.    * For objects, use the `ngValue` input binding.    */   @Input('value')   set value(value: any) {     if (this._select) {       this._value = value;       this._setElementValue(_buildValueString(this.id, value));       this._select.writeValue(this._select.value);     } else {       this._setElementValue(value);     }   }    /** @internal */   _setElementValue(value: string): void {     this._renderer.setProperty(this._element.nativeElement, 'value', value);   }    /** @internal */   _setSelected(selected: boolean) {     this._renderer.setProperty(this._element.nativeElement, 'selected', selected);   }    /** @nodoc */   ngOnDestroy(): void {     if (this._select) {       this._select._optionMap.delete(this.id);       this._select.writeValue(this._select.value);     }   } }  export {ɵNgSelectMultipleOption as NgSelectMultipleOption}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Input, OnChanges, Provider, SimpleChanges, ɵcoerceToBoolean as coerceToBoolean} from '@angular/core'; import {Observable} from 'rxjs';  import {AbstractControl} from '../model/abstract_model'; import {emailValidator, maxLengthValidator, maxValidator, minLengthValidator, minValidator, NG_VALIDATORS, nullValidator, patternValidator, requiredTrueValidator, requiredValidator} from '../validators';  /**  * Method that updates string to integer if not already a number  *  * @param value The value to convert to integer.  * @returns value of parameter converted to number or integer.  */ function toInteger(value: string|number): number {   return typeof value === 'number' ? value : parseInt(value, 10); }  /**  * Method that ensures that provided value is a float (and converts it to float if needed).  *  * @param value The value to convert to float.  * @returns value of parameter converted to number or float.  */ function toFloat(value: string|number): number {   return typeof value === 'number' ? value : parseFloat(value); }  /**  * @description  * Defines the map of errors returned from failed validation checks.  *  * @publicApi  */ export type ValidationErrors = {   [key: string]: any };  /**  * @description  * An interface implemented by classes that perform synchronous validation.  *  * @usageNotes  *  * ### Provide a custom validator  *  * The following example implements the `Validator` interface to create a  * validator directive with a custom error key.  *  * ```typescript  * @Directive({  *   selector: '[customValidator]',  *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]  * })  * class CustomValidatorDirective implements Validator {  *   validate(control: AbstractControl): ValidationErrors|null {  *     return {'custom': true};  *   }  * }  * ```  *  * @publicApi  */ export interface Validator {   /**    * @description    * Method that performs synchronous validation against the provided control.    *    * @param control The control to validate against.    *    * @returns A map of validation errors if validation fails,    * otherwise null.    */   validate(control: AbstractControl): ValidationErrors|null;    /**    * @description    * Registers a callback function to call when the validator inputs change.    *    * @param fn The callback function    */   registerOnValidatorChange?(fn: () => void): void; }  /**  * A base class for Validator-based Directives. The class contains common logic shared across such  * Directives.  *  * For internal use only, this class is not intended for use outside of the Forms package.  */ @Directive() abstract class AbstractValidatorDirective implements Validator, OnChanges {   private _validator: ValidatorFn = nullValidator;   private _onChange!: () => void;    /**    * A flag that tracks whether this validator is enabled.    *    * Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of    * directive classes that extend this base class.    * @internal    */   _enabled?: boolean;    /**    * Name of an input that matches directive selector attribute (e.g. `minlength` for    * `MinLengthDirective`). An input with a given name might contain configuration information (like    * `minlength='10'`) or a flag that indicates whether validator should be enabled (like    * `[required]='false'`).    *    * @internal    */   abstract inputName: string;    /**    * Creates an instance of a validator (specific to a directive that extends this base class).    *    * @internal    */   abstract createValidator(input: unknown): ValidatorFn;    /**    * Performs the necessary input normalization based on a specific logic of a Directive.    * For example, the function might be used to convert string-based representation of the    * `minlength` input to an integer value that can later be used in the `Validators.minLength`    * validator.    *    * @internal    */   abstract normalizeInput(input: unknown): unknown;    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     if (this.inputName in changes) {       const input = this.normalizeInput(changes[this.inputName].currentValue);       this._enabled = this.enabled(input);       this._validator = this._enabled ? this.createValidator(input) : nullValidator;       if (this._onChange) {         this._onChange();       }     }   }    /** @nodoc */   validate(control: AbstractControl): ValidationErrors|null {     return this._validator(control);   }    /** @nodoc */   registerOnValidatorChange(fn: () => void): void {     this._onChange = fn;   }    /**    * @description    * Determines whether this validator should be active or not based on an input.    * Base class implementation checks whether an input is defined (if the value is different from    * `null` and `undefined`). Validator classes that extend this base class can override this    * function with the logic specific to a particular validator directive.    */   enabled(input: unknown): boolean {     return input != null /* both `null` and `undefined` */;   } }  /**  * @description  * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MAX_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MaxValidator),   multi: true };  /**  * A directive which installs the {@link MaxValidator} for any `formControlName`,  * `formControl`, or control with `ngModel` that also has a `max` attribute.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a max validator  *  * The following example shows how to add a max validator to an input attached to an  * ngModel binding.  *  * ```html  * <input type=\"number\" ngModel max=\"4\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',   providers: [MAX_VALIDATOR],   host: {'[attr.max]': '_enabled ? max : null'} }) export class MaxValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the max bound to this directive.    */   @Input() max!: string|number|null;   /** @internal */   override inputName = 'max';   /** @internal */   override normalizeInput = (input: string|number): number => toFloat(input);   /** @internal */   override createValidator = (max: number): ValidatorFn => maxValidator(max); }  /**  * @description  * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MIN_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MinValidator),   multi: true };  /**  * A directive which installs the {@link MinValidator} for any `formControlName`,  * `formControl`, or control with `ngModel` that also has a `min` attribute.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a min validator  *  * The following example shows how to add a min validator to an input attached to an  * ngModel binding.  *  * ```html  * <input type=\"number\" ngModel min=\"4\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',   providers: [MIN_VALIDATOR],   host: {'[attr.min]': '_enabled ? min : null'} }) export class MinValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the min bound to this directive.    */   @Input() min!: string|number|null;   /** @internal */   override inputName = 'min';   /** @internal */   override normalizeInput = (input: string|number): number => toFloat(input);   /** @internal */   override createValidator = (min: number): ValidatorFn => minValidator(min); }  /**  * @description  * An interface implemented by classes that perform asynchronous validation.  *  * @usageNotes  *  * ### Provide a custom async validator directive  *  * The following example implements the `AsyncValidator` interface to create an  * async validator directive with a custom error key.  *  * ```typescript  * import { of } from 'rxjs';  *  * @Directive({  *   selector: '[customAsyncValidator]',  *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:  * true}]  * })  * class CustomAsyncValidatorDirective implements AsyncValidator {  *   validate(control: AbstractControl): Observable<ValidationErrors|null> {  *     return of({'custom': true});  *   }  * }  * ```  *  * @publicApi  */ export interface AsyncValidator extends Validator {   /**    * @description    * Method that performs async validation against the provided control.    *    * @param control The control to validate against.    *    * @returns A promise or observable that resolves a map of validation errors    * if validation fails, otherwise null.    */   validate(control: AbstractControl):       Promise<ValidationErrors|null>|Observable<ValidationErrors|null>; }  /**  * @description  * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const REQUIRED_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => RequiredValidator),   multi: true };  /**  * @description  * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const CHECKBOX_REQUIRED_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => CheckboxRequiredValidator),   multi: true };   /**  * @description  * A directive that adds the `required` validator to any controls marked with the  * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a required validator using template-driven forms  *  * ```  * <input name=\"fullName\" ngModel required>  * ```  *  * @ngModule FormsModule  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({   selector:       ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',   providers: [REQUIRED_VALIDATOR],   host: {'[attr.required]': '_enabled ? \"\" : null'} }) export class RequiredValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the required attribute bound to this directive.    */   @Input() required!: boolean|string;    /** @internal */   override inputName = 'required';    /** @internal */   override normalizeInput = coerceToBoolean;    /** @internal */   override createValidator = (input: boolean): ValidatorFn => requiredValidator;    /** @nodoc */   override enabled(input: boolean): boolean {     return input;   } }   /**  * A Directive that adds the `required` validator to checkbox controls marked with the  * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a required checkbox validator using template-driven forms  *  * The following example shows how to add a checkbox required validator to an input attached to an  * ngModel binding.  *  * ```  * <input type=\"checkbox\" name=\"active\" ngModel required>  * ```  *  * @publicApi  * @ngModule FormsModule  * @ngModule ReactiveFormsModule  */ @Directive({   selector:       'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',   providers: [CHECKBOX_REQUIRED_VALIDATOR],   host: {'[attr.required]': '_enabled ? \"\" : null'} }) export class CheckboxRequiredValidator extends RequiredValidator {   /** @internal */   override createValidator = (input: unknown): ValidatorFn => requiredTrueValidator; }  /**  * @description  * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const EMAIL_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => EmailValidator),   multi: true };  /**  * A directive that adds the `email` validator to controls marked with the  * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * The email validation is based on the WHATWG HTML specification with some enhancements to  * incorporate more RFC rules. More information can be found on the [Validators.email  * page](api/forms/Validators#email).  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding an email validator  *  * The following example shows how to add an email validator to an input attached to an ngModel  * binding.  *  * ```  * <input type=\"email\" name=\"email\" ngModel email>  * <input type=\"email\" name=\"email\" ngModel email=\"true\">  * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">  * ```  *  * @publicApi  * @ngModule FormsModule  * @ngModule ReactiveFormsModule  */ @Directive({   selector: '[email][formControlName],[email][formControl],[email][ngModel]',   providers: [EMAIL_VALIDATOR] }) export class EmailValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the email attribute bound to this directive.    */   @Input() email!: boolean|string;    /** @internal */   override inputName = 'email';    /** @internal */   override normalizeInput = coerceToBoolean;    /** @internal */   override createValidator = (input: number): ValidatorFn => emailValidator;    /** @nodoc */   override enabled(input: boolean): boolean {     return input;   } }  /**  * @description  * A function that receives a control and synchronously returns a map of  * validation errors if present, otherwise null.  *  * @publicApi  */ export interface ValidatorFn {   (control: AbstractControl): ValidationErrors|null; }  /**  * @description  * A function that receives a control and returns a Promise or observable  * that emits validation errors if present, otherwise null.  *  * @publicApi  */ export interface AsyncValidatorFn {   (control: AbstractControl): Promise<ValidationErrors|null>|Observable<ValidationErrors|null>; }  /**  * @description  * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MIN_LENGTH_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MinLengthValidator),   multi: true };  /**  * A directive that adds minimum length validation to controls marked with the  * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a minimum length validator  *  * The following example shows how to add a minimum length validator to an input attached to an  * ngModel binding.  *  * ```html  * <input name=\"firstName\" ngModel minlength=\"4\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',   providers: [MIN_LENGTH_VALIDATOR],   host: {'[attr.minlength]': '_enabled ? minlength : null'} }) export class MinLengthValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the minimum length bound to this directive.    */   @Input() minlength!: string|number|null;    /** @internal */   override inputName = 'minlength';    /** @internal */   override normalizeInput = (input: string|number): number => toInteger(input);    /** @internal */   override createValidator = (minlength: number): ValidatorFn => minLengthValidator(minlength); }  /**  * @description  * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MAX_LENGTH_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MaxLengthValidator),   multi: true };  /**  * A directive that adds max length validation to controls marked with the  * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a maximum length validator  *  * The following example shows how to add a maximum length validator to an input attached to an  * ngModel binding.  *  * ```html  * <input name=\"firstName\" ngModel maxlength=\"25\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',   providers: [MAX_LENGTH_VALIDATOR],   host: {'[attr.maxlength]': '_enabled ? maxlength : null'} }) export class MaxLengthValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the minimum length bound to this directive.    */   @Input() maxlength!: string|number|null;    /** @internal */   override inputName = 'maxlength';    /** @internal */   override normalizeInput = (input: string|number): number => toInteger(input);    /** @internal */   override createValidator = (maxlength: number): ValidatorFn => maxLengthValidator(maxlength); }  /**  * @description  * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const PATTERN_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => PatternValidator),   multi: true };   /**  * @description  * A directive that adds regex pattern validation to controls marked with the  * `pattern` attribute. The regex must match the entire control value.  * The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a pattern validator  *  * The following example shows how to add a pattern validator to an input attached to an  * ngModel binding.  *  * ```html  * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',   providers: [PATTERN_VALIDATOR],   host: {'[attr.pattern]': '_enabled ? pattern : null'} }) export class PatternValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the pattern bound to this directive.    */   @Input()   pattern!: string|RegExp;  // This input is always defined, since the name matches selector.    /** @internal */   override inputName = 'pattern';    /** @internal */   override normalizeInput = (input: string|RegExp): string|RegExp => input;    /** @internal */   override createValidator = (input: string|RegExp): ValidatorFn => patternValidator(input); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {NgModule, Type} from '@angular/core';  import {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor'; import {DefaultValueAccessor} from './directives/default_value_accessor'; import {NgControlStatus, NgControlStatusGroup} from './directives/ng_control_status'; import {NgForm} from './directives/ng_form'; import {NgModel} from './directives/ng_model'; import {NgModelGroup} from './directives/ng_model_group'; import {NgNoValidate} from './directives/ng_no_validate_directive'; import {NumberValueAccessor} from './directives/number_value_accessor'; import {RadioControlRegistryModule, RadioControlValueAccessor} from './directives/radio_control_value_accessor'; import {RangeValueAccessor} from './directives/range_value_accessor'; import {FormControlDirective} from './directives/reactive_directives/form_control_directive'; import {FormControlName} from './directives/reactive_directives/form_control_name'; import {FormGroupDirective} from './directives/reactive_directives/form_group_directive'; import {FormArrayName, FormGroupName} from './directives/reactive_directives/form_group_name'; import {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor'; import {NgSelectMultipleOption, SelectMultipleControlValueAccessor} from './directives/select_multiple_control_value_accessor'; import {CheckboxRequiredValidator, EmailValidator, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, PatternValidator, RequiredValidator} from './directives/validators';  export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor'; export {ControlValueAccessor} from './directives/control_value_accessor'; export {DefaultValueAccessor} from './directives/default_value_accessor'; export {NgControl} from './directives/ng_control'; export {NgControlStatus, NgControlStatusGroup} from './directives/ng_control_status'; export {NgForm} from './directives/ng_form'; export {NgModel} from './directives/ng_model'; export {NgModelGroup} from './directives/ng_model_group'; export {NumberValueAccessor} from './directives/number_value_accessor'; export {RadioControlValueAccessor} from './directives/radio_control_value_accessor'; export {RangeValueAccessor} from './directives/range_value_accessor'; export {FormControlDirective, NG_MODEL_WITH_FORM_CONTROL_WARNING} from './directives/reactive_directives/form_control_directive'; export {FormControlName} from './directives/reactive_directives/form_control_name'; export {FormGroupDirective} from './directives/reactive_directives/form_group_directive'; export {FormArrayName, FormGroupName} from './directives/reactive_directives/form_group_name'; export {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor'; export {NgSelectMultipleOption, SelectMultipleControlValueAccessor} from './directives/select_multiple_control_value_accessor'; export {CALL_SET_DISABLED_STATE} from './directives/shared';  export const SHARED_FORM_DIRECTIVES: Type<any>[] = [   NgNoValidate,   NgSelectOption,   NgSelectMultipleOption,   DefaultValueAccessor,   NumberValueAccessor,   RangeValueAccessor,   CheckboxControlValueAccessor,   SelectControlValueAccessor,   SelectMultipleControlValueAccessor,   RadioControlValueAccessor,   NgControlStatus,   NgControlStatusGroup,   RequiredValidator,   MinLengthValidator,   MaxLengthValidator,   PatternValidator,   CheckboxRequiredValidator,   EmailValidator,   MinValidator,   MaxValidator, ];  export const TEMPLATE_DRIVEN_DIRECTIVES: Type<any>[] = [NgModel, NgModelGroup, NgForm];  export const REACTIVE_DRIVEN_DIRECTIVES: Type<any>[] =     [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];  /**  * Internal module used for sharing directives between FormsModule and ReactiveFormsModule  */ @NgModule({   declarations: SHARED_FORM_DIRECTIVES,   imports: [RadioControlRegistryModule],   exports: SHARED_FORM_DIRECTIVES, }) export class ɵInternalFormsSharedModule { }  export {ɵInternalFormsSharedModule as InternalFormsSharedModule}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AsyncValidatorFn, ValidatorFn} from '../directives/validators';  import {AbstractControl, AbstractControlOptions, assertAllValuesPresent, assertControlPresent, pickAsyncValidators, pickValidators, ɵRawValue, ɵTypedOrUntyped, ɵValue} from './abstract_model';  /**  * FormArrayValue extracts the type of `.value` from a FormArray's element type, and wraps it in an  * array.  *  * Angular uses this type internally to support Typed Forms; do not use it directly. The untyped  * case falls back to any[].  */ export type ɵFormArrayValue<T extends AbstractControl<any>> =     ɵTypedOrUntyped<T, Array<ɵValue<T>>, any[]>;  /**  * FormArrayRawValue extracts the type of `.getRawValue()` from a FormArray's element type, and  * wraps it in an array. The untyped case falls back to any[].  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  */ export type ɵFormArrayRawValue<T extends AbstractControl<any>> =     ɵTypedOrUntyped<T, Array<ɵRawValue<T>>, any[]>;  /**  * Tracks the value and validity state of an array of `FormControl`,  * `FormGroup` or `FormArray` instances.  *  * A `FormArray` aggregates the values of each child `FormControl` into an array.  * It calculates its status by reducing the status values of its children. For example, if one of  * the controls in a `FormArray` is invalid, the entire array becomes invalid.  *  * `FormArray` accepts one generic argument, which is the type of the controls inside.  * If you need a heterogenous array, use {@link UntypedFormArray}.  *  * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,  * along with `FormControl`, `FormGroup`, and `FormRecord`.  *  * @usageNotes  *  * ### Create an array of form controls  *  * ```  * const arr = new FormArray([  *   new FormControl('Nancy', Validators.minLength(2)),  *   new FormControl('Drew'),  * ]);  *  * console.log(arr.value);   // ['Nancy', 'Drew']  * console.log(arr.status);  // 'VALID'  * ```  *  * ### Create a form array with array-level validators  *  * You include array-level validators and async validators. These come in handy  * when you want to perform validation that considers the value of more than one child  * control.  *  * The two types of validators are passed in separately as the second and third arg  * respectively, or together as part of an options object.  *  * ```  * const arr = new FormArray([  *   new FormControl('Nancy'),  *   new FormControl('Drew')  * ], {validators: myValidator, asyncValidators: myAsyncValidator});  * ```  *  * ### Set the updateOn property for all controls in a form array  *  * The options object is used to set a default value for each child  * control's `updateOn` property. If you set `updateOn` to `'blur'` at the  * array level, all child controls default to 'blur', unless the child  * has explicitly specified a different `updateOn` value.  *  * ```ts  * const arr = new FormArray([  *    new FormControl()  * ], {updateOn: 'blur'});  * ```  *  * ### Adding or removing controls from a form array  *  * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods  * in `FormArray` itself. These methods ensure the controls are properly tracked in the  * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate  * the `FormArray` directly, as that result in strange and unexpected behavior such  * as broken change detection.  *  * @publicApi  */ export class FormArray<TControl extends AbstractControl<any> = any> extends AbstractControl<     ɵTypedOrUntyped<TControl, ɵFormArrayValue<TControl>, any>,     ɵTypedOrUntyped<TControl, ɵFormArrayRawValue<TControl>, any>> {   /**    * Creates a new `FormArray` instance.    *    * @param controls An array of child controls. Each child control is given an index    * where it is registered.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or an `AbstractControlOptions` object that contains validation functions    * and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions    *    */   constructor(       controls: Array<TControl>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null) {     super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));     this.controls = controls;     this._initObservables();     this._setUpdateStrategy(validatorOrOpts);     this._setUpControls();     this.updateValueAndValidity({       onlySelf: true,       // If `asyncValidator` is present, it will trigger control status change from `PENDING` to       // `VALID` or `INVALID`.       // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`       // to `true` to allow that during the control creation process.       emitEvent: !!this.asyncValidator     });   }    public controls: ɵTypedOrUntyped<TControl, Array<TControl>, Array<AbstractControl<any>>>;    /**    * Get the `AbstractControl` at the given `index` in the array.    *    * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap    *     around from the back, and if index is greatly negative (less than `-length`), the result is    * undefined. This behavior is the same as `Array.at(index)`.    */   at(index: number): ɵTypedOrUntyped<TControl, TControl, AbstractControl<any>> {     return (this.controls as any)[this._adjustIndex(index)];   }    /**    * Insert a new `AbstractControl` at the end of the array.    *    * @param control Form control to be inserted    * @param options Specifies whether this FormArray instance should emit events after a new    *     control is added.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * inserted. When false, no events are emitted.    */   push(control: TControl, options: {emitEvent?: boolean} = {}): void {     this.controls.push(control);     this._registerControl(control);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Insert a new `AbstractControl` at the given `index` in the array.    *    * @param index Index in the array to insert the control. If `index` is negative, wraps around    *     from the back. If `index` is greatly negative (less than `-length`), prepends to the array.    * This behavior is the same as `Array.splice(index, 0, control)`.    * @param control Form control to be inserted    * @param options Specifies whether this FormArray instance should emit events after a new    *     control is inserted.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * inserted. When false, no events are emitted.    */   insert(index: number, control: TControl, options: {emitEvent?: boolean} = {}): void {     this.controls.splice(index, 0, control);      this._registerControl(control);     this.updateValueAndValidity({emitEvent: options.emitEvent});   }    /**    * Remove the control at the given `index` in the array.    *    * @param index Index in the array to remove the control.  If `index` is negative, wraps around    *     from the back. If `index` is greatly negative (less than `-length`), removes the first    *     element. This behavior is the same as `Array.splice(index, 1)`.    * @param options Specifies whether this FormArray instance should emit events after a    *     control is removed.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * removed. When false, no events are emitted.    */   removeAt(index: number, options: {emitEvent?: boolean} = {}): void {     // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.     let adjustedIndex = this._adjustIndex(index);     if (adjustedIndex < 0) adjustedIndex = 0;      if (this.controls[adjustedIndex])       this.controls[adjustedIndex]._registerOnCollectionChange(() => {});     this.controls.splice(adjustedIndex, 1);     this.updateValueAndValidity({emitEvent: options.emitEvent});   }    /**    * Replace an existing control.    *    * @param index Index in the array to replace the control. If `index` is negative, wraps around    *     from the back. If `index` is greatly negative (less than `-length`), replaces the first    *     element. This behavior is the same as `Array.splice(index, 1, control)`.    * @param control The `AbstractControl` control to replace the existing control    * @param options Specifies whether this FormArray instance should emit events after an    *     existing control is replaced with a new one.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * replaced with a new one. When false, no events are emitted.    */   setControl(index: number, control: TControl, options: {emitEvent?: boolean} = {}): void {     // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.     let adjustedIndex = this._adjustIndex(index);     if (adjustedIndex < 0) adjustedIndex = 0;      if (this.controls[adjustedIndex])       this.controls[adjustedIndex]._registerOnCollectionChange(() => {});     this.controls.splice(adjustedIndex, 1);      if (control) {       this.controls.splice(adjustedIndex, 0, control);       this._registerControl(control);     }      this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Length of the control array.    */   get length(): number {     return this.controls.length;   }    /**    * Sets the value of the `FormArray`. It accepts an array that matches    * the structure of the control.    *    * This method performs strict checks, and throws an error if you try    * to set the value of a control that doesn't exist or if you exclude the    * value of a control.    *    * @usageNotes    * ### Set the values for the controls in the form array    *    * ```    * const arr = new FormArray([    *   new FormControl(),    *   new FormControl()    * ]);    * console.log(arr.value);   // [null, null]    *    * arr.setValue(['Nancy', 'Drew']);    * console.log(arr.value);   // ['Nancy', 'Drew']    * ```    *    * @param value Array of values for the controls    * @param options Configure options that determine how the control propagates changes and    * emits events after the value changes    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default    * is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control value is updated.    * When false, no events are emitted.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    */   override setValue(value: ɵFormArrayRawValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     assertAllValuesPresent(this, false, value);     value.forEach((newValue: any, index: number) => {       assertControlPresent(this, false, index);       this.at(index).setValue(newValue, {onlySelf: true, emitEvent: options.emitEvent});     });     this.updateValueAndValidity(options);   }    /**    * Patches the value of the `FormArray`. It accepts an array that matches the    * structure of the control, and does its best to match the values to the correct    * controls in the group.    *    * It accepts both super-sets and sub-sets of the array without throwing an error.    *    * @usageNotes    * ### Patch the values for controls in a form array    *    * ```    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    * console.log(arr.value);   // [null, null]    *    * arr.patchValue(['Nancy']);    * console.log(arr.value);   // ['Nancy', null]    * ```    *    * @param value Array of latest values for the controls    * @param options Configure options that determine how the control propagates changes and    * emits events after the value changes    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default    * is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control    * value is updated. When false, no events are emitted. The configuration options are passed to    * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.    */   override patchValue(value: ɵFormArrayValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     // Even though the `value` argument type doesn't allow `null` and `undefined` values, the     // `patchValue` can be called recursively and inner data structures might have these values,     // so we just ignore such cases when a field containing FormArray instance receives `null` or     // `undefined` as a value.     if (value == null /* both `null` and `undefined` */) return;      value.forEach((newValue, index) => {       if (this.at(index)) {         this.at(index).patchValue(newValue, {onlySelf: true, emitEvent: options.emitEvent});       }     });     this.updateValueAndValidity(options);   }    /**    * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the    * value of all descendants to null or null maps.    *    * You reset to a specific form state by passing in an array of states    * that matches the structure of the control. The state is a standalone value    * or a form state object with both a value and a disabled status.    *    * @usageNotes    * ### Reset the values in a form array    *    * ```ts    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    * arr.reset(['name', 'last name']);    *    * console.log(arr.value);  // ['name', 'last name']    * ```    *    * ### Reset the values in a form array and the disabled status for the first control    *    * ```    * arr.reset([    *   {value: 'name', disabled: true},    *   'last'    * ]);    *    * console.log(arr.value);  // ['last']    * console.log(arr.at(0).status);  // 'DISABLED'    * ```    *    * @param value Array of values for the controls    * @param options Configure options that determine how the control propagates changes and    * emits events after the value changes    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default    * is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is reset.    * When false, no events are emitted.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    */   override reset(value: ɵTypedOrUntyped<TControl, ɵFormArrayValue<TControl>, any> = [], options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     this._forEachChild((control: AbstractControl, index: number) => {       control.reset(value[index], {onlySelf: true, emitEvent: options.emitEvent});     });     this._updatePristine(options);     this._updateTouched(options);     this.updateValueAndValidity(options);   }    /**    * The aggregate value of the array, including any disabled controls.    *    * Reports all values regardless of disabled status.    */   override getRawValue(): ɵFormArrayRawValue<TControl> {     return this.controls.map((control: AbstractControl) => control.getRawValue());   }    /**    * Remove all controls in the `FormArray`.    *    * @param options Specifies whether this FormArray instance should emit events after all    *     controls are removed.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when all controls    * in this FormArray instance are removed. When false, no events are emitted.    *    * @usageNotes    * ### Remove all elements from a FormArray    *    * ```ts    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    * console.log(arr.length);  // 2    *    * arr.clear();    * console.log(arr.length);  // 0    * ```    *    * It's a simpler and more efficient alternative to removing all elements one by one:    *    * ```ts    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    *    * while (arr.length) {    *    arr.removeAt(0);    * }    * ```    */   clear(options: {emitEvent?: boolean} = {}): void {     if (this.controls.length < 1) return;     this._forEachChild((control) => control._registerOnCollectionChange(() => {}));     this.controls.splice(0);     this.updateValueAndValidity({emitEvent: options.emitEvent});   }    /**    * Adjusts a negative index by summing it with the length of the array. For very negative    * indices, the result may remain negative.    * @internal    */   private _adjustIndex(index: number): number {     return index < 0 ? index + this.length : index;   }    /** @internal */   override _syncPendingControls(): boolean {     let subtreeUpdated = (this.controls as any).reduce((updated: any, child: any) => {       return child._syncPendingControls() ? true : updated;     }, false);     if (subtreeUpdated) this.updateValueAndValidity({onlySelf: true});     return subtreeUpdated;   }    /** @internal */   override _forEachChild(cb: (c: AbstractControl, index: number) => void): void {     this.controls.forEach((control: AbstractControl, index: number) => {       cb(control, index);     });   }    /** @internal */   override _updateValue(): void {     (this as {value: any}).value =         this.controls.filter((control) => control.enabled || this.disabled)             .map((control) => control.value);   }    /** @internal */   override _anyControls(condition: (c: AbstractControl) => boolean): boolean {     return this.controls.some((control) => control.enabled && condition(control));   }    /** @internal */   _setUpControls(): void {     this._forEachChild((control) => this._registerControl(control));   }    /** @internal */   override _allControlsDisabled(): boolean {     for (const control of this.controls) {       if (control.enabled) return false;     }     return this.controls.length > 0 || this.disabled;   }    private _registerControl(control: AbstractControl) {     control.setParent(this);     control._registerOnCollectionChange(this._onCollectionChange);   }    /** @internal */   override _find(name: string|number): AbstractControl|null {     return this.at(name as number) ?? null;   } }  interface UntypedFormArrayCtor {   new(controls: AbstractControl[],       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormArray;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormArray<any>; }  /**  * UntypedFormArray is a non-strongly-typed version of @see FormArray, which  * permits heterogenous controls.  */ export type UntypedFormArray = FormArray<any>;  export const UntypedFormArray: UntypedFormArrayCtor = FormArray;  /**  * @description  * Asserts that the given control is an instance of `FormArray`  *  * @publicApi  */ export const isFormArray = (control: unknown): control is FormArray => control instanceof FormArray; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable} from '@angular/core';  import {AsyncValidatorFn, ValidatorFn} from './directives/validators'; import {AbstractControl, AbstractControlOptions, FormHooks} from './model/abstract_model'; import {FormArray, UntypedFormArray} from './model/form_array'; import {FormControl, FormControlOptions, FormControlState, UntypedFormControl} from './model/form_control'; import {FormGroup, FormRecord, UntypedFormGroup} from './model/form_group';  function isAbstractControlOptions(options: AbstractControlOptions|{[key: string]: any}|null|                                   undefined): options is AbstractControlOptions {   return !!options &&       ((options as AbstractControlOptions).asyncValidators !== undefined ||        (options as AbstractControlOptions).validators !== undefined ||        (options as AbstractControlOptions).updateOn !== undefined); }  /**  * The union of all validator types that can be accepted by a ControlConfig.  */ type ValidatorConfig = ValidatorFn|AsyncValidatorFn|ValidatorFn[]|AsyncValidatorFn[];  /**  * The compiler may not always be able to prove that the elements of the control config are a tuple  * (i.e. occur in a fixed order). This slightly looser type is used for inference, to catch cases  * where the compiler cannot prove order and position.  *  * For example, consider the simple case `fb.group({foo: ['bar', Validators.required]})`. The  * compiler will infer this as an array, not as a tuple.  */ type PermissiveControlConfig<T> = Array<T|FormControlState<T>|ValidatorConfig>;  /**  * Helper type to allow the compiler to accept [XXXX, { updateOn: string }] as a valid shorthand  * argument for .group()  */ interface PermissiveAbstractControlOptions extends Omit<AbstractControlOptions, 'updateOn'> {   updateOn?: string; }  /**  * ControlConfig<T> is a tuple containing a value of type T, plus optional validators and async  * validators.  *  * @publicApi  */ export type ControlConfig<T> = [T|FormControlState<T>, (ValidatorFn|(ValidatorFn[]))?, (AsyncValidatorFn|AsyncValidatorFn[])?];  // Disable clang-format to produce clearer formatting for this multiline type. // clang-format off  /**  * FormBuilder accepts values in various container shapes, as well as raw values.  * Element returns the appropriate corresponding model class, given the container T.  * The flag N, if not never, makes the resulting `FormControl` have N in its type.  */ export type ɵElement<T, N extends null> =   // The `extends` checks are wrapped in arrays in order to prevent TypeScript from applying type unions   // through the distributive conditional type. This is the officially recommended solution:   // https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types   //   // Identify FormControl container types.   [T] extends [FormControl<infer U>] ? FormControl<U> :   // Or FormControl containers that are optional in their parent group.   [T] extends [FormControl<infer U>|undefined] ? FormControl<U> :   // FormGroup containers.   [T] extends [FormGroup<infer U>] ? FormGroup<U> :   // Optional FormGroup containers.   [T] extends [FormGroup<infer U>|undefined] ? FormGroup<U> :   // FormRecord containers.   [T] extends [FormRecord<infer U>] ? FormRecord<U> :   // Optional FormRecord containers.   [T] extends [FormRecord<infer U>|undefined] ? FormRecord<U> :   // FormArray containers.   [T] extends [FormArray<infer U>] ? FormArray<U> :   // Optional FormArray containers.   [T] extends [FormArray<infer U>|undefined] ? FormArray<U> :   // Otherwise unknown AbstractControl containers.   [T] extends [AbstractControl<infer U>] ? AbstractControl<U> :   // Optional AbstractControl containers.   [T] extends [AbstractControl<infer U>|undefined] ? AbstractControl<U> :   // FormControlState object container, which produces a nullable control.   [T] extends [FormControlState<infer U>] ? FormControl<U|N> :   // A ControlConfig tuple, which produces a nullable control.   [T] extends [PermissiveControlConfig<infer U>] ? FormControl<Exclude<U, ValidatorConfig| PermissiveAbstractControlOptions>|N> :   FormControl<T|N>;  // clang-format on  /**  * @description  * Creates an `AbstractControl` from a user-specified configuration.  *  * The `FormBuilder` provides syntactic sugar that shortens creating instances of a  * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to  * build complex forms.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class FormBuilder {   private useNonNullable: boolean = false;    /**    * @description    * Returns a FormBuilder in which automatically constructed @see FormControl} elements    * have `{nonNullable: true}` and are non-nullable.    *    * **Constructing non-nullable controls**    *    * When constructing a control, it will be non-nullable, and will reset to its initial value.    *    * ```ts    * let nnfb = new FormBuilder().nonNullable;    * let name = nnfb.control('Alex'); // FormControl<string>    * name.reset();    * console.log(name); // 'Alex'    * ```    *    * **Constructing non-nullable groups or arrays**    *    * When constructing a group or array, all automatically created inner controls will be    * non-nullable, and will reset to their initial values.    *    * ```ts    * let nnfb = new FormBuilder().nonNullable;    * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>    * name.reset();    * console.log(name); // {who: 'Alex'}    * ```    * **Constructing *nullable* fields on groups or arrays**    *    * It is still possible to have a nullable field. In particular, any `FormControl` which is    * *already* constructed will not be altered. For example:    *    * ```ts    * let nnfb = new FormBuilder().nonNullable;    * // FormGroup<{who: FormControl<string|null>}>    * let name = nnfb.group({who: new FormControl('Alex')});    * name.reset(); console.log(name); // {who: null}    * ```    *    * Because the inner control is constructed explicitly by the caller, the builder has    * no control over how it is created, and cannot exclude the `null`.    */   get nonNullable(): NonNullableFormBuilder {     const nnfb = new FormBuilder();     nnfb.useNonNullable = true;     return nnfb as NonNullableFormBuilder;   }    /**    * @description    * Constructs a new `FormGroup` instance. Accepts a single generic argument, which is an object    * containing all the keys and corresponding inner control types.    *    * @param controls A collection of child controls. The key for each child is the name    * under which it is registered.    *    * @param options Configuration options object for the `FormGroup`. The object should have the    * `AbstractControlOptions` type and might contain the following fields:    * * `validators`: A synchronous validator function, or an array of validator functions.    * * `asyncValidators`: A single async validator or array of async validator functions.    * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'    * | submit').    */   group<T extends {}>(       controls: T,       options?: AbstractControlOptions|null,       ): FormGroup<{[K in keyof T]: ɵElement<T[K], null>}>;    /**    * @description    * Constructs a new `FormGroup` instance.    *    * @deprecated This API is not typesafe and can result in issues with Closure Compiler renaming.    * Use the `FormBuilder#group` overload with `AbstractControlOptions` instead.    * Note that `AbstractControlOptions` expects `validators` and `asyncValidators` to be valid    * validators. If you have custom validators, make sure their validation function parameter is    * `AbstractControl` and not a sub-class, such as `FormGroup`. These functions will be called    * with an object of type `AbstractControl` and that cannot be automatically downcast to a    * subclass, so TypeScript sees this as an error. For example, change the `(group: FormGroup) =>    * ValidationErrors|null` signature to be `(group: AbstractControl) => ValidationErrors|null`.    *    * @param controls A record of child controls. The key for each child is the name    * under which the control is registered.    *    * @param options Configuration options object for the `FormGroup`. The legacy configuration    * object consists of:    * * `validator`: A synchronous validator function, or an array of validator functions.    * * `asyncValidator`: A single async validator or array of async validator functions    * Note: the legacy format is deprecated and might be removed in one of the next major versions    * of Angular.    */   group(       controls: {[key: string]: any},       options: {[key: string]: any},       ): FormGroup;    group(controls: {[key: string]: any}, options: AbstractControlOptions|{[key: string]:                                                                              any}|null = null):       FormGroup {     const reducedControls = this._reduceControls(controls);     let newOptions: FormControlOptions = {};     if (isAbstractControlOptions(options)) {       // `options` are `AbstractControlOptions`       newOptions = options;     } else if (options !== null) {       // `options` are legacy form group options       newOptions.validators = (options as any).validator;       newOptions.asyncValidators = (options as any).asyncValidator;     }     return new FormGroup(reducedControls, newOptions);   }    /**    * @description    * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object    * containing all the keys and corresponding inner control types.    *    * @param controls A collection of child controls. The key for each child is the name    * under which it is registered.    *    * @param options Configuration options object for the `FormRecord`. The object should have the    * `AbstractControlOptions` type and might contain the following fields:    * * `validators`: A synchronous validator function, or an array of validator functions.    * * `asyncValidators`: A single async validator or array of async validator functions.    * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'    * | submit').    */   record<T>(controls: {[key: string]: T}, options: AbstractControlOptions|null = null):       FormRecord<ɵElement<T, null>> {     const reducedControls = this._reduceControls(controls);     // Cast to `any` because the inferred types are not as specific as Element.     return new FormRecord(reducedControls, options) as any;   }    /** @deprecated Use `nonNullable` instead. */   control<T>(formState: T|FormControlState<T>, opts: FormControlOptions&{     initialValueIsDefault: true   }): FormControl<T>;    control<T>(formState: T|FormControlState<T>, opts: FormControlOptions&{nonNullable: true}):       FormControl<T>;    /**    * @deprecated When passing an `options` argument, the `asyncValidator` argument has no effect.    */   control<T>(       formState: T|FormControlState<T>, opts: FormControlOptions,       asyncValidator: AsyncValidatorFn|AsyncValidatorFn[]): FormControl<T|null>;    control<T>(       formState: T|FormControlState<T>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl<T|null>;    /**    * @description    * Constructs a new `FormControl` with the given state, validators and options. Sets    * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the    * control will be nullable. Accepts a single generic argument, which is the type  of the    * control's value.    *    * @param formState Initializes the control with an initial state value, or    * with an object that contains both a value and a disabled status.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or a `FormControlOptions` object that contains    * validation functions and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator    * functions.    *    * @usageNotes    *    * ### Initialize a control as disabled    *    * The following example returns a control with an initial value in a disabled state.    *    * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">    * </code-example>    */   control<T>(       formState: T|FormControlState<T>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl {     let newOptions: FormControlOptions = {};     if (!this.useNonNullable) {       return new FormControl(formState, validatorOrOpts, asyncValidator);     }     if (isAbstractControlOptions(validatorOrOpts)) {       // If the second argument is options, then they are copied.       newOptions = validatorOrOpts;     } else {       // If the other arguments are validators, they are copied into an options object.       newOptions.validators = validatorOrOpts;       newOptions.asyncValidators = asyncValidator;     }     return new FormControl<T>(formState, {...newOptions, nonNullable: true});   }    /**    * Constructs a new `FormArray` from the given array of configurations,    * validators and options. Accepts a single generic argument, which is the type of each control    * inside the array.    *    * @param controls An array of child controls or control configs. Each child control is given an    *     index when it is registered.    *    * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an    *     `AbstractControlOptions` object that contains    * validation functions and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions.    */   array<T>(       controls: Array<T>, validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormArray<ɵElement<T, null>> {     const createdControls = controls.map(c => this._createControl(c));     // Cast to `any` because the inferred types are not as specific as Element.     return new FormArray(createdControls, validatorOrOpts, asyncValidator) as any;   }    /** @internal */   _reduceControls<T>(controls:                          {[k: string]: T|ControlConfig<T>|FormControlState<T>|AbstractControl<T>}):       {[key: string]: AbstractControl} {     const createdControls: {[key: string]: AbstractControl} = {};     Object.keys(controls).forEach(controlName => {       createdControls[controlName] = this._createControl(controls[controlName]);     });     return createdControls;   }    /** @internal */   _createControl<T>(controls: T|FormControlState<T>|ControlConfig<T>|FormControl<T>|                     AbstractControl<T>): FormControl<T>|FormControl<T|null>|AbstractControl<T> {     if (controls instanceof FormControl) {       return controls as FormControl<T>;     } else if (controls instanceof AbstractControl) {  // A control; just return it       return controls;     } else if (Array.isArray(controls)) {  // ControlConfig Tuple       const value: T|FormControlState<T> = controls[0];       const validator: ValidatorFn|ValidatorFn[]|null = controls.length > 1 ? controls[1]! : null;       const asyncValidator: AsyncValidatorFn|AsyncValidatorFn[]|null =           controls.length > 2 ? controls[2]! : null;       return this.control<T>(value, validator, asyncValidator);     } else {  // T or FormControlState<T>       return this.control<T>(controls);     }   } }  /**  * @description  * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed  * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.  *  * @publicApi  */ @Injectable({   providedIn: 'root',   useFactory: () => inject(FormBuilder).nonNullable, }) export abstract class NonNullableFormBuilder {   /**    * Similar to `FormBuilder#group`, except any implicitly constructed `FormControl`    * will be non-nullable (i.e. it will have `nonNullable` set to true). Note    * that already-constructed controls will not be altered.    */   abstract group<T extends {}>(       controls: T,       options?: AbstractControlOptions|null,       ): FormGroup<{[K in keyof T]: ɵElement<T[K], never>}>;    /**    * Similar to `FormBuilder#record`, except any implicitly constructed `FormControl`    * will be non-nullable (i.e. it will have `nonNullable` set to true). Note    * that already-constructed controls will not be altered.    */   abstract record<T>(       controls: {[key: string]: T},       options?: AbstractControlOptions|null,       ): FormRecord<ɵElement<T, never>>;    /**    * Similar to `FormBuilder#array`, except any implicitly constructed `FormControl`    * will be non-nullable (i.e. it will have `nonNullable` set to true). Note    * that already-constructed controls will not be altered.    */   abstract array<T>(       controls: Array<T>, validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormArray<ɵElement<T, never>>;    /**    * Similar to `FormBuilder#control`, except this overridden version of `control` forces    * `nonNullable` to be `true`, resulting in the control always being non-nullable.    */   abstract control<T>(       formState: T|FormControlState<T>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl<T>; }  /**  * UntypedFormBuilder is the same as @see FormBuilder, but it provides untyped controls.  */ @Injectable({providedIn: 'root'}) export class UntypedFormBuilder extends FormBuilder {   /**    * Like `FormBuilder#group`, except the resulting group is untyped.    */   override group(       controlsConfig: {[key: string]: any},       options?: AbstractControlOptions|null,       ): UntypedFormGroup;    /**    * @deprecated This API is not typesafe and can result in issues with Closure Compiler renaming.    * Use the `FormBuilder#group` overload with `AbstractControlOptions` instead.    */   override group(       controlsConfig: {[key: string]: any},       options: {[key: string]: any},       ): UntypedFormGroup;    override group(       controlsConfig: {[key: string]: any},       options: AbstractControlOptions|{[key: string]: any}|null = null): UntypedFormGroup {     return super.group(controlsConfig, options);   }    /**    * Like `FormBuilder#control`, except the resulting control is untyped.    */   override control(       formState: any, validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormControl {     return super.control(formState, validatorOrOpts, asyncValidator);   }    /**    * Like `FormBuilder#array`, except the resulting array is untyped.    */   override array(       controlsConfig: any[],       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormArray {     return super.array(controlsConfig, validatorOrOpts, asyncValidator);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the forms package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ModuleWithProviders, NgModule} from '@angular/core';  import {InternalFormsSharedModule, NG_MODEL_WITH_FORM_CONTROL_WARNING, REACTIVE_DRIVEN_DIRECTIVES, TEMPLATE_DRIVEN_DIRECTIVES} from './directives'; import {CALL_SET_DISABLED_STATE, setDisabledStateDefault, SetDisabledStateOption} from './directives/shared';  /**  * Exports the required providers and directives for template-driven forms,  * making them available for import by NgModules that import this module.  *  * Providers associated with this module:  * * `RadioControlRegistry`  *  * @see [Forms Overview](/guide/forms-overview)  * @see [Template-driven Forms Guide](/guide/forms)  *  * @publicApi  */ @NgModule({   declarations: TEMPLATE_DRIVEN_DIRECTIVES,   exports: [InternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES] }) export class FormsModule {   /**    * @description    * Provides options for configuring the forms module.    *    * @param opts An object of configuration options    * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more    * correct, or to only call it `whenDisabled`, which is the legacy behavior.    */   static withConfig(opts: {     callSetDisabledState?: SetDisabledStateOption,   }): ModuleWithProviders<FormsModule> {     return {       ngModule: FormsModule,       providers: [{         provide: CALL_SET_DISABLED_STATE,         useValue: opts.callSetDisabledState ?? setDisabledStateDefault       }]     };   } }  /**  * Exports the required infrastructure and directives for reactive forms,  * making them available for import by NgModules that import this module.  *  * Providers associated with this module:  * * `FormBuilder`  * * `RadioControlRegistry`  *  * @see [Forms Overview](guide/forms-overview)  * @see [Reactive Forms Guide](guide/reactive-forms)  *  * @publicApi  */ @NgModule({   declarations: [REACTIVE_DRIVEN_DIRECTIVES],   exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES] }) export class ReactiveFormsModule {   /**    * @description    * Provides options for configuring the reactive forms module.    *    * @param opts An object of configuration options    * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`    * binding is used with reactive form directives.    * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more    * correct, or to only call it `whenDisabled`, which is the legacy behavior.    */   static withConfig(opts: {                     /** @deprecated as of v6 */ warnOnNgModelWithFormControl?: 'never'|'once'|                                                                             'always',                     callSetDisabledState?: SetDisabledStateOption,                     }): ModuleWithProviders<ReactiveFormsModule> {     return {       ngModule: ReactiveFormsModule,       providers: [         {           provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,           useValue: opts.warnOnNgModelWithFormControl ?? 'always'         },         {           provide: CALL_SET_DISABLED_STATE,           useValue: opts.callSetDisabledState ?? setDisabledStateDefault         }       ]     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * This module is used for handling user input, by defining and building a `FormGroup` that  * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`  * objects can then be used to read information from the form DOM elements.  *  * Forms providers are not included in default providers; you must import these providers  * explicitly.  */  export {ɵInternalFormsSharedModule} from './directives'; export {AbstractControlDirective} from './directives/abstract_control_directive'; export {AbstractFormGroupDirective} from './directives/abstract_form_group_directive'; export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor'; export {ControlContainer} from './directives/control_container'; export {ControlValueAccessor, NG_VALUE_ACCESSOR} from './directives/control_value_accessor'; export {COMPOSITION_BUFFER_MODE, DefaultValueAccessor} from './directives/default_value_accessor'; export {Form} from './directives/form_interface'; export {NgControl} from './directives/ng_control'; export {NgControlStatus, NgControlStatusGroup} from './directives/ng_control_status'; export {NgForm} from './directives/ng_form'; export {NgModel} from './directives/ng_model'; export {NgModelGroup} from './directives/ng_model_group'; export {ɵNgNoValidate} from './directives/ng_no_validate_directive'; export {NumberValueAccessor} from './directives/number_value_accessor'; export {RadioControlValueAccessor} from './directives/radio_control_value_accessor'; export {RangeValueAccessor} from './directives/range_value_accessor'; export {FormControlDirective} from './directives/reactive_directives/form_control_directive'; export {FormControlName} from './directives/reactive_directives/form_control_name'; export {FormGroupDirective} from './directives/reactive_directives/form_group_directive'; export {FormArrayName, FormGroupName} from './directives/reactive_directives/form_group_name'; export {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor'; export {SelectMultipleControlValueAccessor, ɵNgSelectMultipleOption} from './directives/select_multiple_control_value_accessor'; export {SetDisabledStateOption} from './directives/shared'; export {AsyncValidator, AsyncValidatorFn, CheckboxRequiredValidator, EmailValidator, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, PatternValidator, RequiredValidator, ValidationErrors, Validator, ValidatorFn} from './directives/validators'; export {ControlConfig, FormBuilder, NonNullableFormBuilder, UntypedFormBuilder, ɵElement} from './form_builder'; export {AbstractControl, AbstractControlOptions, FormControlStatus, ɵCoerceStrArrToNumArr, ɵGetProperty, ɵNavigate, ɵRawValue, ɵTokenize, ɵTypedOrUntyped, ɵValue, ɵWriteable} from './model/abstract_model'; export {FormArray, isFormArray, UntypedFormArray, ɵFormArrayRawValue, ɵFormArrayValue} from './model/form_array'; export {FormControl, FormControlOptions, FormControlState, isFormControl, UntypedFormControl, ɵFormControlCtor} from './model/form_control'; export {FormGroup, FormRecord, isFormGroup, isFormRecord, UntypedFormGroup, ɵFormGroupRawValue, ɵFormGroupValue, ɵOptionalKeys} from './model/form_group'; export {NG_ASYNC_VALIDATORS, NG_VALIDATORS, Validators} from './validators'; export {VERSION} from './version';  export * from './form_providers'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/forms';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["getDOM","NG_DEV_MODE","isPromise","isObservable","RuntimeError","i1.NgControl","i2.ControlContainer","removeListItem","formDirectiveProvider","resolvedPromise","i1.ControlContainer","formControlBinding","coerceToBoolean","_buildValueString","_extractId","NgNoValidate","NgSelectMultipleOption","InternalFormsSharedModule","i1.NgModel","i2.NgModelGroup","i3.NgForm","i4.FormControlDirective","i5.FormGroupDirective","i6.FormControlName","i7.FormGroupName","i7.FormArrayName"],"mappings":";;;;;;;;;;;;AAqIA;;;;;;AAMG;MAEU,wBAAwB,CAAA;IAcnC,WAAoB,CAAA,SAAoB,EAAU,WAAuB,EAAA;AAArD,QAAA,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;AAAU,QAAA,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;AAbzE;;;;AAIG;QACH,IAAA,CAAA,QAAQ,GAAG,CAAC,CAAM,KAAM,GAAC,CAAC;AAE1B;;;AAGG;AACH,QAAA,IAAA,CAAA,SAAS,GAAG,MAAK,GAAG,CAAC;KAEwD;AAE7E;;;;AAIG;IACO,WAAW,CAAC,GAAW,EAAE,KAAU,EAAA;AAC3C,QAAA,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,GAAG,EAAE,KAAK,CA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AAA;AACF,aAAA;SACF,CAAC;KACH;;2HA7BU,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,qHAFpBA,0BAAyB,EAAAI,oBAAA,EAAAC,kBAAA,EAAAC,eAAA,EAAAC,aAAA,EAAAC,aAAA,CAAA,EAAA,CAAA,CAAA;AAExB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAFpBR,0BAAyB,CAAA,EAAA,CAAA,CAAA;sGAExB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,0BAA0B,CAAC;AAC1C,oBAAA,OAAO,EAAE,CAACA,0BAAyB,EAAE,0BAA0B,CAAC;iBACjE,CAAA;;;AC3DD;;;;;;;;;AASG;;ACTH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
-------------------- SECTION 47 --------------------
{"version":3,"file":"forms.mjs","sources":["../../../../../../packages/forms/src/directives/control_value_accessor.ts","../../../../../../packages/forms/src/directives/checkbox_value_accessor.ts","../../../../../../packages/forms/src/directives/default_value_accessor.ts","../../../../../../packages/forms/src/validators.ts","../../../../../../packages/forms/src/directives/abstract_control_directive.ts","../../../../../../packages/forms/src/directives/control_container.ts","../../../../../../packages/forms/src/directives/ng_control.ts","../../../../../../packages/forms/src/directives/ng_control_status.ts","../../../../../../packages/forms/src/directives/error_examples.ts","../../../../../../packages/forms/src/directives/reactive_errors.ts","../../../../../../packages/forms/src/model/abstract_model.ts","../../../../../../packages/forms/src/model/form_group.ts","../../../../../../packages/forms/src/directives/shared.ts","../../../../../../packages/forms/src/directives/ng_form.ts","../../../../../../packages/forms/src/util.ts","../../../../../../packages/forms/src/model/form_control.ts","../../../../../../packages/forms/src/directives/abstract_form_group_directive.ts","../../../../../../packages/forms/src/directives/template_driven_errors.ts","../../../../../../packages/forms/src/directives/ng_model_group.ts","../../../../../../packages/forms/src/directives/ng_model.ts","../../../../../../packages/forms/src/directives/ng_no_validate_directive.ts","../../../../../../packages/forms/src/directives/number_value_accessor.ts","../../../../../../packages/forms/src/directives/radio_control_value_accessor.ts","../../../../../../packages/forms/src/directives/range_value_accessor.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_control_directive.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_group_directive.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_group_name.ts","../../../../../../packages/forms/src/directives/reactive_directives/form_control_name.ts","../../../../../../packages/forms/src/directives/select_control_value_accessor.ts","../../../../../../packages/forms/src/directives/select_multiple_control_value_accessor.ts","../../../../../../packages/forms/src/directives/validators.ts","../../../../../../packages/forms/src/directives.ts","../../../../../../packages/forms/src/model/form_array.ts","../../../../../../packages/forms/src/form_builder.ts","../../../../../../packages/forms/src/version.ts","../../../../../../packages/forms/src/form_providers.ts","../../../../../../packages/forms/src/forms.ts","../../../../../../packages/forms/public_api.ts","../../../../../../packages/forms/index.ts","../../../../../../packages/forms/forms.ts"],"sourcesContent":["/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, InjectionToken, Renderer2} from '@angular/core';  /**  * @description  * Defines an interface that acts as a bridge between the Angular forms API and a  * native element in the DOM.  *  * Implement this interface to create a custom form control directive  * that integrates with Angular forms.  *  * @see DefaultValueAccessor  *  * @publicApi  */ export interface ControlValueAccessor {   /**    * @description    * Writes a new value to the element.    *    * This method is called by the forms API to write to the view when programmatic    * changes from model to view are requested.    *    * @usageNotes    * ### Write a value to the element    *    * The following example writes a value to the native DOM element.    *    * ```ts    * writeValue(value: any): void {    *   this._renderer.setProperty(this._elementRef.nativeElement, 'value', value);    * }    * ```    *    * @param obj The new value for the element    */   writeValue(obj: any): void;    /**    * @description    * Registers a callback function that is called when the control's value    * changes in the UI.    *    * This method is called by the forms API on initialization to update the form    * model when values propagate from the view to the model.    *    * When implementing the `registerOnChange` method in your own value accessor,    * save the given function so your class calls it at the appropriate time.    *    * @usageNotes    * ### Store the change function    *    * The following example stores the provided function as an internal method.    *    * ```ts    * registerOnChange(fn: (_: any) => void): void {    *   this._onChange = fn;    * }    * ```    *    * When the value changes in the UI, call the registered    * function to allow the forms API to update itself:    *    * ```ts    * host: {    *    '(change)': '_onChange($event.target.value)'    * }    * ```    *    * @param fn The callback function to register    */   registerOnChange(fn: any): void;    /**    * @description    * Registers a callback function that is called by the forms API on initialization    * to update the form model on blur.    *    * When implementing `registerOnTouched` in your own value accessor, save the given    * function so your class calls it when the control should be considered    * blurred or \"touched\".    *    * @usageNotes    * ### Store the callback function    *    * The following example stores the provided function as an internal method.    *    * ```ts    * registerOnTouched(fn: any): void {    *   this._onTouched = fn;    * }    * ```    *    * On blur (or equivalent), your class should call the registered function to allow    * the forms API to update itself:    *    * ```ts    * host: {    *    '(blur)': '_onTouched()'    * }    * ```    *    * @param fn The callback function to register    */   registerOnTouched(fn: any): void;    /**    * @description    * Function that is called by the forms API when the control status changes to    * or from 'DISABLED'. Depending on the status, it enables or disables the    * appropriate DOM element.    *    * @usageNotes    * The following is an example of writing the disabled property to a native DOM element:    *    * ```ts    * setDisabledState(isDisabled: boolean): void {    *   this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);    * }    * ```    *    * @param isDisabled The disabled status to set on the element    */   setDisabledState?(isDisabled: boolean): void; }  /**  * Base class for all ControlValueAccessor classes defined in Forms package.  * Contains common logic and utility functions.  *  * Note: this is an *internal-only* class and should not be extended or used directly in  * applications code.  */ @Directive() export class BaseControlValueAccessor {   /**    * The registered callback function called when a change or input event occurs on the input    * element.    * @nodoc    */   onChange = (_: any) => {};    /**    * The registered callback function called when a blur event occurs on the input element.    * @nodoc    */   onTouched = () => {};    constructor(private _renderer: Renderer2, private _elementRef: ElementRef) {}    /**    * Helper method that sets a property on a target element using the current Renderer    * implementation.    * @nodoc    */   protected setProperty(key: string, value: any): void {     this._renderer.setProperty(this._elementRef.nativeElement, key, value);   }    /**    * Registers a function called when the control is touched.    * @nodoc    */   registerOnTouched(fn: () => void): void {     this.onTouched = fn;   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   registerOnChange(fn: (_: any) => {}): void {     this.onChange = fn;   }    /**    * Sets the \"disabled\" property on the range input element.    * @nodoc    */   setDisabledState(isDisabled: boolean): void {     this.setProperty('disabled', isDisabled);   } }  /**  * Base class for all built-in ControlValueAccessor classes (except DefaultValueAccessor, which is  * used in case no other CVAs can be found). We use this class to distinguish between default CVA,  * built-in CVAs and custom CVAs, so that Forms logic can recognize built-in CVAs and treat custom  * ones with higher priority (when both built-in and custom CVAs are present).  *  * Note: this is an *internal-only* class and should not be extended or used directly in  * applications code.  */ @Directive() export class BuiltInControlValueAccessor extends BaseControlValueAccessor { }  /**  * Used to provide a `ControlValueAccessor` for form controls.  *  * See `DefaultValueAccessor` for how to implement one.  *  * @publicApi  */ export const NG_VALUE_ACCESSOR =     new InjectionToken<ReadonlyArray<ControlValueAccessor>>('NgValueAccessor'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Provider} from '@angular/core';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const CHECKBOX_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => CheckboxControlValueAccessor),   multi: true, };  /**  * @description  * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input  * element.  *  * @usageNotes  *  * ### Using a checkbox with a reactive form.  *  * The following example shows how to use a checkbox with a reactive form.  *  * ```ts  * const rememberLoginControl = new FormControl();  * ```  *  * ```  * <input type=\"checkbox\" [formControl]=\"rememberLoginControl\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',   host: {'(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()'},   providers: [CHECKBOX_VALUE_ACCESSOR] }) export class CheckboxControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * Sets the \"checked\" property on the input element.    * @nodoc    */   writeValue(value: any): void {     this.setProperty('checked', value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵgetDOM as getDOM} from '@angular/common'; import {Directive, ElementRef, forwardRef, Inject, InjectionToken, Optional, Renderer2} from '@angular/core';  import {BaseControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  export const DEFAULT_VALUE_ACCESSOR: any = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => DefaultValueAccessor),   multi: true };  /**  * We must check whether the agent is Android because composition events  * behave differently between iOS and Android.  */ function _isAndroid(): boolean {   const userAgent = getDOM() ? getDOM().getUserAgent() : '';   return /android (\\d+)/.test(userAgent.toLowerCase()); }  /**  * @description  * Provide this token to control if form directives buffer IME input until  * the \"compositionend\" event occurs.  * @publicApi  */ export const COMPOSITION_BUFFER_MODE = new InjectionToken<boolean>('CompositionEventMode');  /**  * The default `ControlValueAccessor` for writing a value and listening to changes on input  * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * {@searchKeywords ngDefaultControl}  *  * @usageNotes  *  * ### Using the default value accessor  *  * The following example shows how to use an input element that activates the default value accessor  * (in this case, a text field).  *  * ```ts  * const firstNameControl = new FormControl();  * ```  *  * ```  * <input type=\"text\" [formControl]=\"firstNameControl\">  * ```  *  * This value accessor is used by default for `<input type=\"text\">` and `<textarea>` elements, but  * you could also use it for custom components that have similar behavior and do not require special  * processing. In order to attach the default value accessor to a custom element, add the  * `ngDefaultControl` attribute as shown below.  *  * ```  * <custom-input-component ngDefaultControl [(ngModel)]=\"value\"></custom-input-component>  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',   // TODO: vsavkin replace the above selector with the one below it once   // https://github.com/angular/angular/issues/3011 is implemented   // selector: '[ngModel],[formControl],[formControlName]',   host: {     '(input)': '$any(this)._handleInput($event.target.value)',     '(blur)': 'onTouched()',     '(compositionstart)': '$any(this)._compositionStart()',     '(compositionend)': '$any(this)._compositionEnd($event.target.value)'   },   providers: [DEFAULT_VALUE_ACCESSOR] }) export class DefaultValueAccessor extends BaseControlValueAccessor implements ControlValueAccessor {   /** Whether the user is creating a composition string (IME events). */   private _composing = false;    constructor(       renderer: Renderer2, elementRef: ElementRef,       @Optional() @Inject(COMPOSITION_BUFFER_MODE) private _compositionMode: boolean) {     super(renderer, elementRef);     if (this._compositionMode == null) {       this._compositionMode = !_isAndroid();     }   }    /**    * Sets the \"value\" property on the input element.    * @nodoc    */   writeValue(value: any): void {     const normalizedValue = value == null ? '' : value;     this.setProperty('value', normalizedValue);   }    /** @internal */   _handleInput(value: any): void {     if (!this._compositionMode || (this._compositionMode && !this._composing)) {       this.onChange(value);     }   }    /** @internal */   _compositionStart(): void {     this._composing = true;   }    /** @internal */   _compositionEnd(value: any): void {     this._composing = false;     this._compositionMode && this.onChange(value);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {InjectionToken, ɵisObservable as isObservable, ɵisPromise as isPromise, ɵRuntimeError as RuntimeError} from '@angular/core'; import {forkJoin, from, Observable} from 'rxjs'; import {map} from 'rxjs/operators';  import {AsyncValidator, AsyncValidatorFn, ValidationErrors, Validator, ValidatorFn} from './directives/validators'; import {RuntimeErrorCode} from './errors'; import {AbstractControl} from './model/abstract_model';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  function isEmptyInputValue(value: any): boolean {   /**    * Check if the object is a string or array before evaluating the length attribute.    * This avoids falsely rejecting objects that contain a custom length attribute.    * For example, the object {id: 1, length: 0, width: 0} should not be returned as empty.    */   return value == null ||       ((typeof value === 'string' || Array.isArray(value)) && value.length === 0); }  function hasValidLength(value: any): boolean {   // non-strict comparison is intentional, to check for both `null` and `undefined` values   return value != null && typeof value.length === 'number'; }  /**  * @description  * An `InjectionToken` for registering additional synchronous validators used with  * `AbstractControl`s.  *  * @see `NG_ASYNC_VALIDATORS`  *  * @usageNotes  *  * ### Providing a custom validator  *  * The following example registers a custom validator directive. Adding the validator to the  * existing collection of validators requires the `multi: true` option.  *  * ```typescript  * @Directive({  *   selector: '[customValidator]',  *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]  * })  * class CustomValidatorDirective implements Validator {  *   validate(control: AbstractControl): ValidationErrors | null {  *     return { 'custom': true };  *   }  * }  * ```  *  * @publicApi  */ export const NG_VALIDATORS = new InjectionToken<Array<Validator|Function>>('NgValidators');  /**  * @description  * An `InjectionToken` for registering additional asynchronous validators used with  * `AbstractControl`s.  *  * @see `NG_VALIDATORS`  *  * @usageNotes  *  * ### Provide a custom async validator directive  *  * The following example implements the `AsyncValidator` interface to create an  * async validator directive with a custom error key.  *  * ```typescript  * @Directive({  *   selector: '[customAsyncValidator]',  *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:  * true}]  * })  * class CustomAsyncValidatorDirective implements AsyncValidator {  *   validate(control: AbstractControl): Promise<ValidationErrors|null> {  *     return Promise.resolve({'custom': true});  *   }  * }  * ```  *  * @publicApi  */ export const NG_ASYNC_VALIDATORS =     new InjectionToken<Array<Validator|Function>>('NgAsyncValidators');  /**  * A regular expression that matches valid e-mail addresses.  *  * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:  * - `local-part` consists of one or more of the allowed characters (alphanumeric and some  *   punctuation symbols).  * - `local-part` cannot begin or end with a period (`.`).  * - `local-part` cannot be longer than 64 characters.  * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or  *   `foo.com`.  * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and  *   periods (`.`)).  * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).  * - A `label` cannot be longer than 63 characters.  * - The whole address cannot be longer than 254 characters.  *  * ## Implementation background  *  * This regexp was ported over from AngularJS (see there for git history):  * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27  * It is based on the  * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with  * some enhancements to incorporate more RFC rules (such as rules related to domain names and the  * lengths of different parts of the address). The main differences from the WHATWG version are:  *   - Disallow `local-part` to begin or end with a period (`.`).  *   - Disallow `local-part` length to exceed 64 characters.  *   - Disallow total address length to exceed 254 characters.  *  * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.  */ const EMAIL_REGEXP =     /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;  /**  * @description  * Provides a set of built-in validators that can be used by form controls.  *  * A validator is a function that processes a `FormControl` or collection of  * controls and returns an error map or null. A null map means that validation has passed.  *  * @see [Form Validation](/guide/form-validation)  *  * @publicApi  */ export class Validators {   /**    * @description    * Validator that requires the control's value to be greater than or equal to the provided number.    *    * @usageNotes    *    * ### Validate against a minimum of 3    *    * ```typescript    * const control = new FormControl(2, Validators.min(3));    *    * console.log(control.errors); // {min: {min: 3, actual: 2}}    * ```    *    * @returns A validator function that returns an error map with the    * `min` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static min(min: number): ValidatorFn {     return minValidator(min);   }    /**    * @description    * Validator that requires the control's value to be less than or equal to the provided number.    *    * @usageNotes    *    * ### Validate against a maximum of 15    *    * ```typescript    * const control = new FormControl(16, Validators.max(15));    *    * console.log(control.errors); // {max: {max: 15, actual: 16}}    * ```    *    * @returns A validator function that returns an error map with the    * `max` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static max(max: number): ValidatorFn {     return maxValidator(max);   }    /**    * @description    * Validator that requires the control have a non-empty value.    *    * @usageNotes    *    * ### Validate that the field is non-empty    *    * ```typescript    * const control = new FormControl('', Validators.required);    *    * console.log(control.errors); // {required: true}    * ```    *    * @returns An error map with the `required` property    * if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static required(control: AbstractControl): ValidationErrors|null {     return requiredValidator(control);   }    /**    * @description    * Validator that requires the control's value be true. This validator is commonly    * used for required checkboxes.    *    * @usageNotes    *    * ### Validate that the field value is true    *    * ```typescript    * const control = new FormControl('some value', Validators.requiredTrue);    *    * console.log(control.errors); // {required: true}    * ```    *    * @returns An error map that contains the `required` property    * set to `true` if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static requiredTrue(control: AbstractControl): ValidationErrors|null {     return requiredTrueValidator(control);   }    /**    * @description    * Validator that requires the control's value pass an email validation test.    *    * Tests the value using a [regular    * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)    * pattern suitable for common use cases. The pattern is based on the definition of a valid email    * address in the [WHATWG HTML    * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with    * some enhancements to incorporate more RFC rules (such as rules related to domain names and the    * lengths of different parts of the address).    *    * The differences from the WHATWG version include:    * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).    * - Disallow `local-part` to be longer than 64 characters.    * - Disallow the whole address to be longer than 254 characters.    *    * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to    * validate the value against a different pattern.    *    * @usageNotes    *    * ### Validate that the field matches a valid email pattern    *    * ```typescript    * const control = new FormControl('bad@', Validators.email);    *    * console.log(control.errors); // {email: true}    * ```    *    * @returns An error map with the `email` property    * if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static email(control: AbstractControl): ValidationErrors|null {     return emailValidator(control);   }    /**    * @description    * Validator that requires the length of the control's value to be greater than or equal    * to the provided minimum length. This validator is also provided by default if you use the    * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used    * only for types that have a numeric `length` property, such as strings or arrays. The    * `minLength` validator logic is also not invoked for values when their `length` property is 0    * (for example in case of an empty string or an empty array), to support optional controls. You    * can use the standard `required` validator if empty values should not be considered valid.    *    * @usageNotes    *    * ### Validate that the field has a minimum of 3 characters    *    * ```typescript    * const control = new FormControl('ng', Validators.minLength(3));    *    * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}    * ```    *    * ```html    * <input minlength=\"5\">    * ```    *    * @returns A validator function that returns an error map with the    * `minlength` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static minLength(minLength: number): ValidatorFn {     return minLengthValidator(minLength);   }    /**    * @description    * Validator that requires the length of the control's value to be less than or equal    * to the provided maximum length. This validator is also provided by default if you use the    * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used    * only for types that have a numeric `length` property, such as strings or arrays.    *    * @usageNotes    *    * ### Validate that the field has maximum of 5 characters    *    * ```typescript    * const control = new FormControl('Angular', Validators.maxLength(5));    *    * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}    * ```    *    * ```html    * <input maxlength=\"5\">    * ```    *    * @returns A validator function that returns an error map with the    * `maxlength` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static maxLength(maxLength: number): ValidatorFn {     return maxLengthValidator(maxLength);   }    /**    * @description    * Validator that requires the control's value to match a regex pattern. This validator is also    * provided by default if you use the HTML5 `pattern` attribute.    *    * @usageNotes    *    * ### Validate that the field only contains letters or spaces    *    * ```typescript    * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));    *    * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}    * ```    *    * ```html    * <input pattern=\"[a-zA-Z ]*\">    * ```    *    * ### Pattern matching with the global or sticky flag    *    * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`    * can produce different results on the same input when validations are run consecutively. This is    * due to how the behavior of `RegExp.prototype.test` is    * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)    * (`RegExp` preserves the index of the last match when the global or sticky flag is used).    * Due to this behavior, it is recommended that when using    * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky    * flag enabled.    *    * ```typescript    * // Not recommended (since the `g` flag is used)    * const controlOne = new FormControl('1', Validators.pattern(/foo/g));    *    * // Good    * const controlTwo = new FormControl('1', Validators.pattern(/foo/));    * ```    *    * @param pattern A regular expression to be used as is to test the values, or a string.    * If a string is passed, the `^` character is prepended and the `$` character is    * appended to the provided string (if not already present), and the resulting regular    * expression is used to test the values.    *    * @returns A validator function that returns an error map with the    * `pattern` property if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static pattern(pattern: string|RegExp): ValidatorFn {     return patternValidator(pattern);   }    /**    * @description    * Validator that performs no operation.    *    * @see `updateValueAndValidity()`    *    */   static nullValidator(control: AbstractControl): ValidationErrors|null {     return nullValidator(control);   }    /**    * @description    * Compose multiple validators into a single function that returns the union    * of the individual error maps for the provided control.    *    * @returns A validator function that returns an error map with the    * merged error maps of the validators if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static compose(validators: null): null;   static compose(validators: (ValidatorFn|null|undefined)[]): ValidatorFn|null;   static compose(validators: (ValidatorFn|null|undefined)[]|null): ValidatorFn|null {     return compose(validators);   }    /**    * @description    * Compose multiple async validators into a single function that returns the union    * of the individual error objects for the provided control.    *    * @returns A validator function that returns an error map with the    * merged error objects of the async validators if the validation check fails, otherwise `null`.    *    * @see `updateValueAndValidity()`    *    */   static composeAsync(validators: (AsyncValidatorFn|null)[]): AsyncValidatorFn|null {     return composeAsync(validators);   } }  /**  * Validator that requires the control's value to be greater than or equal to the provided number.  * See `Validators.min` for additional information.  */ export function minValidator(min: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {       return null;  // don't validate empty values to allow optional controls     }     const value = parseFloat(control.value);     // Controls with NaN values after parsing should be treated as not having a     // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min     return !isNaN(value) && value < min ? {'min': {'min': min, 'actual': control.value}} : null;   }; }  /**  * Validator that requires the control's value to be less than or equal to the provided number.  * See `Validators.max` for additional information.  */ export function maxValidator(max: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {       return null;  // don't validate empty values to allow optional controls     }     const value = parseFloat(control.value);     // Controls with NaN values after parsing should be treated as not having a     // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max     return !isNaN(value) && value > max ? {'max': {'max': max, 'actual': control.value}} : null;   }; }  /**  * Validator that requires the control have a non-empty value.  * See `Validators.required` for additional information.  */ export function requiredValidator(control: AbstractControl): ValidationErrors|null {   return isEmptyInputValue(control.value) ? {'required': true} : null; }  /**  * Validator that requires the control's value be true. This validator is commonly  * used for required checkboxes.  * See `Validators.requiredTrue` for additional information.  */ export function requiredTrueValidator(control: AbstractControl): ValidationErrors|null {   return control.value === true ? null : {'required': true}; }  /**  * Validator that requires the control's value pass an email validation test.  * See `Validators.email` for additional information.  */ export function emailValidator(control: AbstractControl): ValidationErrors|null {   if (isEmptyInputValue(control.value)) {     return null;  // don't validate empty values to allow optional controls   }   return EMAIL_REGEXP.test(control.value) ? null : {'email': true}; }  /**  * Validator that requires the length of the control's value to be greater than or equal  * to the provided minimum length. See `Validators.minLength` for additional information.  */ export function minLengthValidator(minLength: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {       // don't validate empty values to allow optional controls       // don't validate values without `length` property       return null;     }      return control.value.length < minLength ?         {'minlength': {'requiredLength': minLength, 'actualLength': control.value.length}} :         null;   }; }  /**  * Validator that requires the length of the control's value to be less than or equal  * to the provided maximum length. See `Validators.maxLength` for additional information.  */ export function maxLengthValidator(maxLength: number): ValidatorFn {   return (control: AbstractControl): ValidationErrors|null => {     return hasValidLength(control.value) && control.value.length > maxLength ?         {'maxlength': {'requiredLength': maxLength, 'actualLength': control.value.length}} :         null;   }; }  /**  * Validator that requires the control's value to match a regex pattern.  * See `Validators.pattern` for additional information.  */ export function patternValidator(pattern: string|RegExp): ValidatorFn {   if (!pattern) return nullValidator;   let regex: RegExp;   let regexStr: string;   if (typeof pattern === 'string') {     regexStr = '';      if (pattern.charAt(0) !== '^') regexStr += '^';      regexStr += pattern;      if (pattern.charAt(pattern.length - 1) !== '$') regexStr += '$';      regex = new RegExp(regexStr);   } else {     regexStr = pattern.toString();     regex = pattern;   }   return (control: AbstractControl): ValidationErrors|null => {     if (isEmptyInputValue(control.value)) {       return null;  // don't validate empty values to allow optional controls     }     const value: string = control.value;     return regex.test(value) ? null :                                {'pattern': {'requiredPattern': regexStr, 'actualValue': value}};   }; }  /**  * Function that has `ValidatorFn` shape, but performs no operation.  */ export function nullValidator(control: AbstractControl): ValidationErrors|null {   return null; }  function isPresent(o: any): boolean {   return o != null; }  export function toObservable(value: any): Observable<any> {   const obs = isPromise(value) ? from(value) : value;   if (NG_DEV_MODE && !(isObservable(obs))) {     let errorMessage = `Expected async validator to return Promise or Observable.`;     // A synchronous validator will return object or null.     if (typeof value === 'object') {       errorMessage +=           ' Are you using a synchronous validator where an async validator is expected?';     }     throw new RuntimeError(RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE, errorMessage);   }   return obs; }  function mergeErrors(arrayOfErrors: (ValidationErrors|null)[]): ValidationErrors|null {   let res: {[key: string]: any} = {};   arrayOfErrors.forEach((errors: ValidationErrors|null) => {     res = errors != null ? {...res!, ...errors} : res!;   });    return Object.keys(res).length === 0 ? null : res; }  type GenericValidatorFn = (control: AbstractControl) => any;  function executeValidators<V extends GenericValidatorFn>(     control: AbstractControl, validators: V[]): ReturnType<V>[] {   return validators.map(validator => validator(control)); }  function isValidatorFn<V>(validator: V|Validator|AsyncValidator): validator is V {   return !(validator as Validator).validate; }  /**  * Given the list of validators that may contain both functions as well as classes, return the list  * of validator functions (convert validator classes into validator functions). This is needed to  * have consistent structure in validators list before composing them.  *  * @param validators The set of validators that may contain validators both in plain function form  *     as well as represented as a validator class.  */ export function normalizeValidators<V>(validators: (V|Validator|AsyncValidator)[]): V[] {   return validators.map(validator => {     return isValidatorFn<V>(validator) ?         validator :         ((c: AbstractControl) => validator.validate(c)) as unknown as V;   }); }  /**  * Merges synchronous validators into a single validator function.  * See `Validators.compose` for additional information.  */ function compose(validators: (ValidatorFn|null|undefined)[]|null): ValidatorFn|null {   if (!validators) return null;   const presentValidators: ValidatorFn[] = validators.filter(isPresent) as any;   if (presentValidators.length == 0) return null;    return function(control: AbstractControl) {     return mergeErrors(executeValidators<ValidatorFn>(control, presentValidators));   }; }  /**  * Accepts a list of validators of different possible shapes (`Validator` and `ValidatorFn`),  * normalizes the list (converts everything to `ValidatorFn`) and merges them into a single  * validator function.  */ export function composeValidators(validators: Array<Validator|ValidatorFn>): ValidatorFn|null {   return validators != null ? compose(normalizeValidators<ValidatorFn>(validators)) : null; }  /**  * Merges asynchronous validators into a single validator function.  * See `Validators.composeAsync` for additional information.  */ function composeAsync(validators: (AsyncValidatorFn|null)[]): AsyncValidatorFn|null {   if (!validators) return null;   const presentValidators: AsyncValidatorFn[] = validators.filter(isPresent) as any;   if (presentValidators.length == 0) return null;    return function(control: AbstractControl) {     const observables =         executeValidators<AsyncValidatorFn>(control, presentValidators).map(toObservable);     return forkJoin(observables).pipe(map(mergeErrors));   }; }  /**  * Accepts a list of async validators of different possible shapes (`AsyncValidator` and  * `AsyncValidatorFn`), normalizes the list (converts everything to `AsyncValidatorFn`) and merges  * them into a single validator function.  */ export function composeAsyncValidators(validators: Array<AsyncValidator|AsyncValidatorFn>):     AsyncValidatorFn|null {   return validators != null ? composeAsync(normalizeValidators<AsyncValidatorFn>(validators)) :                               null; }  /**  * Merges raw control validators with a given directive validator and returns the combined list of  * validators as an array.  */ export function mergeValidators<V>(controlValidators: V|V[]|null, dirValidator: V): V[] {   if (controlValidators === null) return [dirValidator];   return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] :                                             [controlValidators, dirValidator]; }  /**  * Retrieves the list of raw synchronous validators attached to a given control.  */ export function getControlValidators(control: AbstractControl): ValidatorFn|ValidatorFn[]|null {   return (control as any)._rawValidators as ValidatorFn | ValidatorFn[] | null; }  /**  * Retrieves the list of raw asynchronous validators attached to a given control.  */ export function getControlAsyncValidators(control: AbstractControl): AsyncValidatorFn|     AsyncValidatorFn[]|null {   return (control as any)._rawAsyncValidators as AsyncValidatorFn | AsyncValidatorFn[] | null; }  /**  * Accepts a singleton validator, an array, or null, and returns an array type with the provided  * validators.  *  * @param validators A validator, validators, or null.  * @returns A validators array.  */ export function makeValidatorsArray<T extends ValidatorFn|AsyncValidatorFn>(validators: T|T[]|                                                                             null): T[] {   if (!validators) return [];   return Array.isArray(validators) ? validators : [validators]; }  /**  * Determines whether a validator or validators array has a given validator.  *  * @param validators The validator or validators to compare against.  * @param validator The validator to check.  * @returns Whether the validator is present.  */ export function hasValidator<T extends ValidatorFn|AsyncValidatorFn>(     validators: T|T[]|null, validator: T): boolean {   return Array.isArray(validators) ? validators.includes(validator) : validators === validator; }  /**  * Combines two arrays of validators into one. If duplicates are provided, only one will be added.  *  * @param validators The new validators.  * @param currentValidators The base array of current validators.  * @returns An array of validators.  */ export function addValidators<T extends ValidatorFn|AsyncValidatorFn>(     validators: T|T[], currentValidators: T|T[]|null): T[] {   const current = makeValidatorsArray(currentValidators);   const validatorsToAdd = makeValidatorsArray(validators);   validatorsToAdd.forEach((v: T) => {     // Note: if there are duplicate entries in the new validators array,     // only the first one would be added to the current list of validators.     // Duplicate ones would be ignored since `hasValidator` would detect     // the presence of a validator function and we update the current list in place.     if (!hasValidator(current, v)) {       current.push(v);     }   });   return current; }  export function removeValidators<T extends ValidatorFn|AsyncValidatorFn>(     validators: T|T[], currentValidators: T|T[]|null): T[] {   return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v)); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Observable} from 'rxjs';  import {AbstractControl} from '../model/abstract_model'; import {composeAsyncValidators, composeValidators} from '../validators';  import {AsyncValidator, AsyncValidatorFn, ValidationErrors, Validator, ValidatorFn} from './validators';   /**  * @description  * Base class for control directives.  *  * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.  *  * @publicApi  */ export abstract class AbstractControlDirective {   /**    * @description    * A reference to the underlying control.    *    * @returns the control that backs this directive. Most properties fall through to that instance.    */   abstract get control(): AbstractControl|null;    /**    * @description    * Reports the value of the control if it is present, otherwise null.    */   get value(): any {     return this.control ? this.control.value : null;   }    /**    * @description    * Reports whether the control is valid. A control is considered valid if no    * validation errors exist with the current value.    * If the control is not present, null is returned.    */   get valid(): boolean|null {     return this.control ? this.control.valid : null;   }    /**    * @description    * Reports whether the control is invalid, meaning that an error exists in the input value.    * If the control is not present, null is returned.    */   get invalid(): boolean|null {     return this.control ? this.control.invalid : null;   }    /**    * @description    * Reports whether a control is pending, meaning that that async validation is occurring and    * errors are not yet available for the input value. If the control is not present, null is    * returned.    */   get pending(): boolean|null {     return this.control ? this.control.pending : null;   }    /**    * @description    * Reports whether the control is disabled, meaning that the control is disabled    * in the UI and is exempt from validation checks and excluded from aggregate    * values of ancestor controls. If the control is not present, null is returned.    */   get disabled(): boolean|null {     return this.control ? this.control.disabled : null;   }    /**    * @description    * Reports whether the control is enabled, meaning that the control is included in ancestor    * calculations of validity or value. If the control is not present, null is returned.    */   get enabled(): boolean|null {     return this.control ? this.control.enabled : null;   }    /**    * @description    * Reports the control's validation errors. If the control is not present, null is returned.    */   get errors(): ValidationErrors|null {     return this.control ? this.control.errors : null;   }    /**    * @description    * Reports whether the control is pristine, meaning that the user has not yet changed    * the value in the UI. If the control is not present, null is returned.    */   get pristine(): boolean|null {     return this.control ? this.control.pristine : null;   }    /**    * @description    * Reports whether the control is dirty, meaning that the user has changed    * the value in the UI. If the control is not present, null is returned.    */   get dirty(): boolean|null {     return this.control ? this.control.dirty : null;   }    /**    * @description    * Reports whether the control is touched, meaning that the user has triggered    * a `blur` event on it. If the control is not present, null is returned.    */   get touched(): boolean|null {     return this.control ? this.control.touched : null;   }    /**    * @description    * Reports the validation status of the control. Possible values include:    * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.    * If the control is not present, null is returned.    */   get status(): string|null {     return this.control ? this.control.status : null;   }    /**    * @description    * Reports whether the control is untouched, meaning that the user has not yet triggered    * a `blur` event on it. If the control is not present, null is returned.    */   get untouched(): boolean|null {     return this.control ? this.control.untouched : null;   }    /**    * @description    * Returns a multicasting observable that emits a validation status whenever it is    * calculated for the control. If the control is not present, null is returned.    */   get statusChanges(): Observable<any>|null {     return this.control ? this.control.statusChanges : null;   }    /**    * @description    * Returns a multicasting observable of value changes for the control that emits every time the    * value of the control changes in the UI or programmatically.    * If the control is not present, null is returned.    */   get valueChanges(): Observable<any>|null {     return this.control ? this.control.valueChanges : null;   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   get path(): string[]|null {     return null;   }    /**    * Contains the result of merging synchronous validators into a single validator function    * (combined using `Validators.compose`).    */   private _composedValidatorFn: ValidatorFn|null|undefined;    /**    * Contains the result of merging asynchronous validators into a single validator function    * (combined using `Validators.composeAsync`).    */   private _composedAsyncValidatorFn: AsyncValidatorFn|null|undefined;    /**    * Set of synchronous validators as they were provided while calling `setValidators` function.    * @internal    */   _rawValidators: Array<Validator|ValidatorFn> = [];    /**    * Set of asynchronous validators as they were provided while calling `setAsyncValidators`    * function.    * @internal    */   _rawAsyncValidators: Array<AsyncValidator|AsyncValidatorFn> = [];    /**    * Sets synchronous validators for this directive.    * @internal    */   _setValidators(validators: Array<Validator|ValidatorFn>|undefined): void {     this._rawValidators = validators || [];     this._composedValidatorFn = composeValidators(this._rawValidators);   }    /**    * Sets asynchronous validators for this directive.    * @internal    */   _setAsyncValidators(validators: Array<AsyncValidator|AsyncValidatorFn>|undefined): void {     this._rawAsyncValidators = validators || [];     this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);   }    /**    * @description    * Synchronous validator function composed of all the synchronous validators registered with this    * directive.    */   get validator(): ValidatorFn|null {     return this._composedValidatorFn || null;   }    /**    * @description    * Asynchronous validator function composed of all the asynchronous validators registered with    * this directive.    */   get asyncValidator(): AsyncValidatorFn|null {     return this._composedAsyncValidatorFn || null;   }    /*    * The set of callbacks to be invoked when directive instance is being destroyed.    */   private _onDestroyCallbacks: (() => void)[] = [];    /**    * Internal function to register callbacks that should be invoked    * when directive instance is being destroyed.    * @internal    */   _registerOnDestroy(fn: () => void): void {     this._onDestroyCallbacks.push(fn);   }    /**    * Internal function to invoke all registered \"on destroy\" callbacks.    * Note: calling this function also clears the list of callbacks.    * @internal    */   _invokeOnDestroyCallbacks(): void {     this._onDestroyCallbacks.forEach(fn => fn());     this._onDestroyCallbacks = [];   }    /**    * @description    * Resets the control with the provided value if the control is present.    */   reset(value: any = undefined): void {     if (this.control) this.control.reset(value);   }    /**    * @description    * Reports whether the control with the given path has the error specified.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * If no path is given, this method checks for the error on the current control.    *    * @returns whether the given error is present in the control at the given path.    *    * If the control is not present, false is returned.    */   hasError(errorCode: string, path?: Array<string|number>|string): boolean {     return this.control ? this.control.hasError(errorCode, path) : false;   }    /**    * @description    * Reports error data for the control with the given path.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * @returns error data for that particular error. If the control or error is not present,    * null is returned.    */   getError(errorCode: string, path?: Array<string|number>|string): any {     return this.control ? this.control.getError(errorCode, path) : null;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AbstractControlDirective} from './abstract_control_directive'; import {Form} from './form_interface';   /**  * @description  * A base class for directives that contain multiple registered instances of `NgControl`.  * Only used by the forms module.  *  * @publicApi  */ export abstract class ControlContainer extends AbstractControlDirective {   /**    * @description    * The name for the control    */   // TODO(issue/24571): remove '!'.   name!: string|number|null;    /**    * @description    * The top-level form directive for the control.    */   get formDirective(): Form|null {     return null;   }    /**    * @description    * The path to this group.    */   override get path(): string[]|null {     return null;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AbstractControlDirective} from './abstract_control_directive'; import {ControlContainer} from './control_container'; import {ControlValueAccessor} from './control_value_accessor';   /**  * @description  * A base class that all `FormControl`-based directives extend. It binds a `FormControl`  * object to a DOM element.  *  * @publicApi  */ export abstract class NgControl extends AbstractControlDirective {   /**    * @description    * The parent form for the control.    *    * @internal    */   _parent: ControlContainer|null = null;    /**    * @description    * The name for the control    */   name: string|number|null = null;    /**    * @description    * The value accessor for the control    */   valueAccessor: ControlValueAccessor|null = null;    /**    * @description    * The callback method to update the model from the view when requested    *    * @param newValue The new value for the view    */   abstract viewToModelUpdate(newValue: any): void; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, Optional, Self} from '@angular/core';  import {AbstractControlDirective} from './abstract_control_directive'; import {ControlContainer} from './control_container'; import {NgControl} from './ng_control';  // DO NOT REFACTOR! // Each status is represented by a separate function to make sure that // advanced Closure Compiler optimizations related to property renaming // can work correctly. export class AbstractControlStatus {   private _cd: AbstractControlDirective|null;    constructor(cd: AbstractControlDirective|null) {     this._cd = cd;   }    protected get isTouched() {     return !!this._cd?.control?.touched;   }    protected get isUntouched() {     return !!this._cd?.control?.untouched;   }    protected get isPristine() {     return !!this._cd?.control?.pristine;   }    protected get isDirty() {     return !!this._cd?.control?.dirty;   }    protected get isValid() {     return !!this._cd?.control?.valid;   }    protected get isInvalid() {     return !!this._cd?.control?.invalid;   }    protected get isPending() {     return !!this._cd?.control?.pending;   }    protected get isSubmitted() {     // We check for the `submitted` field from `NgForm` and `FormGroupDirective` classes, but     // we avoid instanceof checks to prevent non-tree-shakable references to those types.     return !!(this._cd as unknown as {submitted: boolean} | null)?.submitted;   } }  export const ngControlStatusHost = {   '[class.ng-untouched]': 'isUntouched',   '[class.ng-touched]': 'isTouched',   '[class.ng-pristine]': 'isPristine',   '[class.ng-dirty]': 'isDirty',   '[class.ng-valid]': 'isValid',   '[class.ng-invalid]': 'isInvalid',   '[class.ng-pending]': 'isPending', };  export const ngGroupStatusHost = {   ...ngControlStatusHost,   '[class.ng-submitted]': 'isSubmitted', };  /**  * @description  * Directive automatically applied to Angular form controls that sets CSS classes  * based on control status.  *  * @usageNotes  *  * ### CSS classes applied  *  * The following classes are applied as the properties become true:  *  * * ng-valid  * * ng-invalid  * * ng-pending  * * ng-pristine  * * ng-dirty  * * ng-untouched  * * ng-touched  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost}) export class NgControlStatus extends AbstractControlStatus {   constructor(@Self() cd: NgControl) {     super(cd);   } }  /**  * @description  * Directive automatically applied to Angular form groups that sets CSS classes  * based on control status (valid/invalid/dirty/etc). On groups, this includes the additional  * class ng-submitted.  *  * @see `NgControlStatus`  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',   host: ngGroupStatusHost }) export class NgControlStatusGroup extends AbstractControlStatus {   constructor(@Optional() @Self() cd: ControlContainer) {     super(cd);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export const formControlNameExample = `   <div [formGroup]=\"myGroup\">     <input formControlName=\"firstName\">   </div>    In your class:    this.myGroup = new FormGroup({       firstName: new FormControl()   });`;  export const formGroupNameExample = `   <div [formGroup]=\"myGroup\">       <div formGroupName=\"person\">         <input formControlName=\"firstName\">       </div>   </div>    In your class:    this.myGroup = new FormGroup({       person: new FormGroup({ firstName: new FormControl() })   });`;  export const formArrayNameExample = `   <div [formGroup]=\"myGroup\">     <div formArrayName=\"cities\">       <div *ngFor=\"let city of cityArray.controls; index as i\">         <input [formControlName]=\"i\">       </div>     </div>   </div>    In your class:    this.cityArray = new FormArray([new FormControl('SF')]);   this.myGroup = new FormGroup({     cities: this.cityArray   });`;  export const ngModelGroupExample = `   <form>       <div ngModelGroup=\"person\">         <input [(ngModel)]=\"person.name\" name=\"firstName\">       </div>   </form>`;  export const ngModelWithFormGroupExample = `   <div [formGroup]=\"myGroup\">       <input formControlName=\"firstName\">       <input [(ngModel)]=\"showMoreControls\" [ngModelOptions]=\"{standalone: true}\">   </div> `; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {formArrayNameExample, formControlNameExample, formGroupNameExample, ngModelGroupExample} from './error_examples';   export function controlParentException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_CONTROL_NAME_MISSING_PARENT,       `formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup       directive and pass it an existing FormGroup instance (you can create one in your class).      Example:      ${formControlNameExample}`); }  export function ngModelGroupException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_CONTROL_NAME_INSIDE_MODEL_GROUP,       `formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents       that also have a \"form\" prefix: formGroupName, formArrayName, or formGroup.        Option 1:  Update the parent to be formGroupName (reactive form strategy)        ${formGroupNameExample}        Option 2: Use ngModel instead of formControlName (template-driven strategy)        ${ngModelGroupExample}`); }  export function missingFormException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE,       `formGroup expects a FormGroup instance. Please pass one in.        Example:        ${formControlNameExample}`); }  export function groupParentException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_GROUP_NAME_MISSING_PARENT,       `formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup     directive and pass it an existing FormGroup instance (you can create one in your class).      Example:      ${formGroupNameExample}`); }  export function arrayParentException(): Error {   return new RuntimeError(       RuntimeErrorCode.FORM_ARRAY_NAME_MISSING_PARENT,       `formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup       directive and pass it an existing FormGroup instance (you can create one in your class).        Example:        ${formArrayNameExample}`); }  export const disabledAttrWarning = `   It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true   when you set up this control in your component class, the disabled attribute will actually be set in the DOM for   you. We recommend using this approach to avoid 'changed after checked' errors.    Example:   // Specify the \\`disabled\\` property at control creation time:   form = new FormGroup({     first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),     last: new FormControl('Drew', Validators.required)   });    // Controls can also be enabled/disabled after creation:   form.get('first')?.enable();   form.get('last')?.disable(); `;  export const asyncValidatorsDroppedWithOptsWarning = `   It looks like you're constructing using a FormControl with both an options argument and an   async validators argument. Mixing these arguments will cause your async validators to be dropped.   You should either put all your validators in the options object, or in separate validators   arguments. For example:    // Using validators arguments   fc = new FormControl(42, Validators.required, myAsyncValidator);    // Using AbstractControlOptions   fc = new FormControl(42, {validators: Validators.required, asyncValidators: myAV});    // Do NOT mix them: async validators will be dropped!   fc = new FormControl(42, {validators: Validators.required}, /* Oops! */ myAsyncValidator); `;  export function ngModelWarning(directiveName: string): string {   return `   It looks like you're using ngModel on the same form field as ${directiveName}.   Support for using the ngModel input property and ngModelChange event with   reactive form directives has been deprecated in Angular v6 and will be removed   in a future version of Angular.    For more information on this, see our API docs here:   https://angular.io/api/forms/${       directiveName === 'formControl' ? 'FormControlDirective' : 'FormControlName'}#use-with-ngmodel   `; }  function describeKey(isFormGroup: boolean, key: string|number): string {   return isFormGroup ? `with name: '${key}'` : `at index: ${key}`; }  export function noControlsError(isFormGroup: boolean): string {   return `     There are no form controls registered with this ${       isFormGroup ? 'group' : 'array'} yet. If you're using ngModel,     you may want to check next tick (e.g. use setTimeout).   `; }  export function missingControlError(isFormGroup: boolean, key: string|number): string {   return `Cannot find form control ${describeKey(isFormGroup, key)}`; }  export function missingControlValueError(isFormGroup: boolean, key: string|number): string {   return `Must supply a value for form control ${describeKey(isFormGroup, key)}`; } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {EventEmitter, ɵRuntimeError as RuntimeError} from '@angular/core'; import {Observable} from 'rxjs';  import {asyncValidatorsDroppedWithOptsWarning, missingControlError, missingControlValueError, noControlsError} from '../directives/reactive_errors'; import {AsyncValidatorFn, ValidationErrors, ValidatorFn} from '../directives/validators'; import {RuntimeErrorCode} from '../errors'; import {FormArray, FormGroup} from '../forms'; import {addValidators, composeAsyncValidators, composeValidators, hasValidator, removeValidators, toObservable} from '../validators';  const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;  /**  * Reports that a control is valid, meaning that no errors exist in the input value.  *  * @see `status`  */ export const VALID = 'VALID';  /**  * Reports that a control is invalid, meaning that an error exists in the input value.  *  * @see `status`  */ export const INVALID = 'INVALID';  /**  * Reports that a control is pending, meaning that that async validation is occurring and  * errors are not yet available for the input value.  *  * @see `markAsPending`  * @see `status`  */ export const PENDING = 'PENDING';  /**  * Reports that a control is disabled, meaning that the control is exempt from ancestor  * calculations of validity or value.  *  * @see `markAsDisabled`  * @see `status`  */ export const DISABLED = 'DISABLED';  /**  * A form can have several different statuses. Each  * possible status is returned as a string literal.  *  * * **VALID**: Reports that a control is valid, meaning that no errors exist in the input  * value.  * * **INVALID**: Reports that a control is invalid, meaning that an error exists in the input  * value.  * * **PENDING**: Reports that a control is pending, meaning that that async validation is  * occurring and errors are not yet available for the input value.  * * **DISABLED**: Reports that a control is  * disabled, meaning that the control is exempt from ancestor calculations of validity or value.  *  * @publicApi  */ export type FormControlStatus = 'VALID'|'INVALID'|'PENDING'|'DISABLED';  /**  * Gets validators from either an options object or given validators.  */ export function pickValidators(validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|                                null): ValidatorFn|ValidatorFn[]|null {   return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null; }  /**  * Creates validator function by combining provided validators.  */ function coerceToValidator(validator: ValidatorFn|ValidatorFn[]|null): ValidatorFn|null {   return Array.isArray(validator) ? composeValidators(validator) : validator || null; }  /**  * Gets async validators from either an options object or given validators.  */ export function pickAsyncValidators(     asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null,     validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null): AsyncValidatorFn|     AsyncValidatorFn[]|null {   if (typeof ngDevMode === 'undefined' || ngDevMode) {     if (isOptionsObj(validatorOrOpts) && asyncValidator) {       console.warn(asyncValidatorsDroppedWithOptsWarning);     }   }   return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null; }  /**  * Creates async validator function by combining provided async validators.  */ function coerceToAsyncValidator(asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|                                 null): AsyncValidatorFn|null {   return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) :                                          asyncValidator || null; }  export type FormHooks = 'change'|'blur'|'submit';  /**  * Interface for options provided to an `AbstractControl`.  *  * @publicApi  */ export interface AbstractControlOptions {   /**    * @description    * The list of validators applied to a control.    */   validators?: ValidatorFn|ValidatorFn[]|null;   /**    * @description    * The list of async validators applied to control.    */   asyncValidators?: AsyncValidatorFn|AsyncValidatorFn[]|null;   /**    * @description    * The event name for control to update upon.    */   updateOn?: 'change'|'blur'|'submit'; }  export function isOptionsObj(validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|                              null): validatorOrOpts is AbstractControlOptions {   return validatorOrOpts != null && !Array.isArray(validatorOrOpts) &&       typeof validatorOrOpts === 'object'; }  export function assertControlPresent(parent: any, isGroup: boolean, key: string|number): void {   const controls = parent.controls as {[key: string|number]: unknown};   const collection = isGroup ? Object.keys(controls) : controls;   if (!collection.length) {     throw new RuntimeError(         RuntimeErrorCode.NO_CONTROLS, NG_DEV_MODE ? noControlsError(isGroup) : '');   }   if (!controls[key]) {     throw new RuntimeError(         RuntimeErrorCode.MISSING_CONTROL, NG_DEV_MODE ? missingControlError(isGroup, key) : '');   } }  export function assertAllValuesPresent(control: any, isGroup: boolean, value: any): void {   control._forEachChild((_: unknown, key: string|number) => {     if (value[key] === undefined) {       throw new RuntimeError(           RuntimeErrorCode.MISSING_CONTROL_VALUE,           NG_DEV_MODE ? missingControlValueError(isGroup, key) : '');     }   }); }  // IsAny checks if T is `any`, by checking a condition that couldn't possibly be true otherwise. export type ɵIsAny<T, Y, N> = 0 extends(1&T) ? Y : N;  /**  * `TypedOrUntyped` allows one of two different types to be selected, depending on whether the Forms  * class it's applied to is typed or not.  *  * This is for internal Angular usage to support typed forms; do not directly use it.  */ export type ɵTypedOrUntyped<T, Typed, Untyped> = ɵIsAny<T, Untyped, Typed>;  /**  * Value gives the value type corresponding to a control type.  *  * Note that the resulting type will follow the same rules as `.value` on your control, group, or  * array, including `undefined` for each group element which might be disabled.  *  * If you are trying to extract a value type for a data model, you probably want {@link RawValue},  * which will not have `undefined` in group keys.  *  * @usageNotes  *  * ### `FormControl` value type  *  * You can extract the value type of a single control:  *  * ```ts  * type NameControl = FormControl<string>;  * type NameValue = Value<NameControl>;  * ```  *  * The resulting type is `string`.  *  * ### `FormGroup` value type  *  * Imagine you have an interface defining the controls in your group. You can extract the shape of  * the values as follows:  *  * ```ts  * interface PartyFormControls {  *   address: FormControl<string>;  * }  *  * // Value operates on controls; the object must be wrapped in a FormGroup.  * type PartyFormValues = Value<FormGroup<PartyFormControls>>;  * ```  *  * The resulting type is `{address: string|undefined}`.  *  * ### `FormArray` value type  *  * You can extract values from FormArrays as well:  *  * ```ts  * type GuestNamesControls = FormArray<FormControl<string>>;  *  * type NamesValues = Value<GuestNamesControls>;  * ```  *  * The resulting type is `string[]`.  *  * **Internal: not for public use.**  */ export type ɵValue<T extends AbstractControl|undefined> =     T extends AbstractControl<any, any>? T['value'] : never;  /**  * RawValue gives the raw value type corresponding to a control type.  *  * Note that the resulting type will follow the same rules as `.getRawValue()` on your control,  * group, or array. This means that all controls inside a group will be required, not optional,  * regardless of their disabled state.  *  * You may also wish to use {@link ɵValue}, which will have `undefined` in group keys (which can be  * disabled).  *  * @usageNotes  *  * ### `FormGroup` raw value type  *  * Imagine you have an interface defining the controls in your group. You can extract the shape of  * the raw values as follows:  *  * ```ts  * interface PartyFormControls {  *   address: FormControl<string>;  * }  *  * // RawValue operates on controls; the object must be wrapped in a FormGroup.  * type PartyFormValues = RawValue<FormGroup<PartyFormControls>>;  * ```  *  * The resulting type is `{address: string}`. (Note the absence of `undefined`.)  *  *  **Internal: not for public use.**  */ export type ɵRawValue<T extends AbstractControl|undefined> = T extends AbstractControl<any, any>?     (T['setValue'] extends((v: infer R) => void) ? R : never) :     never;  // Disable clang-format to produce clearer formatting for these multiline types. // clang-format off  /**  * Tokenize splits a string literal S by a delimiter D.  */ export type ɵTokenize<S extends string, D extends string> =   string extends S ? string[] : /* S must be a literal */     S extends `${infer T}${D}${infer U}` ? [T, ...ɵTokenize<U, D>] :       [S] /* Base case */   ;  /**  * CoerceStrArrToNumArr accepts an array of strings, and converts any numeric string to a number.  */ export type ɵCoerceStrArrToNumArr<S> = // Extract the head of the array.   S extends [infer Head, ...infer Tail] ?     // Using a template literal type, coerce the head to `number` if possible.     // Then, recurse on the tail.     Head extends `${number}` ?       [number, ...ɵCoerceStrArrToNumArr<Tail>] :       [Head, ...ɵCoerceStrArrToNumArr<Tail>] :     [];  /**  * Navigate takes a type T and an array K, and returns the type of T[K[0]][K[1]][K[2]]...  */ export type ɵNavigate<T, K extends(Array<string|number>)> =   T extends object ? /* T must be indexable (object or array) */     (K extends [infer Head, ...infer Tail] ? /* Split K into head and tail */       (Head extends keyof T ? /* head(K) must index T */         (Tail extends(string|number)[] ? /* tail(K) must be an array */           [] extends Tail ? T[Head] : /* base case: K can be split, but Tail is empty */             (ɵNavigate<T[Head], Tail>) /* explore T[head(K)] by tail(K) */ :           any) /* tail(K) was not an array, give up */ :         never) /* head(K) does not index T, give up */ :       any) /* K cannot be split, give up */ :     any /* T is not indexable, give up */   ;  /**  * ɵWriteable removes readonly from all keys.  */ export type ɵWriteable<T> = {   -readonly[P in keyof T]: T[P] };  /**  * GetProperty takes a type T and some property names or indices K.  * If K is a dot-separated string, it is tokenized into an array before proceeding.  * Then, the type of the nested property at K is computed: T[K[0]][K[1]][K[2]]...  * This works with both objects, which are indexed by property name, and arrays, which are indexed  * numerically.  *  * For internal use only.  */ export type ɵGetProperty<T, K> =     // K is a string     K extends string ? ɵGetProperty<T, ɵCoerceStrArrToNumArr<ɵTokenize<K, '.'>>> :     // Is is an array     ɵWriteable<K> extends Array<string|number> ? ɵNavigate<T, ɵWriteable<K>> :     // Fall through permissively if we can't calculate the type of K.     any;  // clang-format on  /**  * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.  *  * It provides some of the shared behavior that all controls and groups of controls have, like  * running validators, calculating status, and resetting state. It also defines the properties  * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be  * instantiated directly.  *  * The first type parameter TValue represents the value type of the control (`control.value`).  * The optional type parameter TRawValue  represents the raw value type (`control.getRawValue()`).  *  * @see [Forms Guide](/guide/forms)  * @see [Reactive Forms Guide](/guide/reactive-forms)  * @see [Dynamic Forms Guide](/guide/dynamic-form)  *  * @publicApi  */ export abstract class AbstractControl<TValue = any, TRawValue extends TValue = TValue> {   /** @internal */   _pendingDirty = false;    /**    * Indicates that a control has its own pending asynchronous validation in progress.    *    * @internal    */   _hasOwnPendingAsyncValidator = false;    /** @internal */   _pendingTouched = false;    /** @internal */   _onCollectionChange = () => {};    /** @internal */   _updateOn?: FormHooks;    private _parent: FormGroup|FormArray|null = null;   private _asyncValidationSubscription: any;    /**    * Contains the result of merging synchronous validators into a single validator function    * (combined using `Validators.compose`).    *    * @internal    */   private _composedValidatorFn!: ValidatorFn|null;    /**    * Contains the result of merging asynchronous validators into a single validator function    * (combined using `Validators.composeAsync`).    *    * @internal    */   private _composedAsyncValidatorFn!: AsyncValidatorFn|null;    /**    * Synchronous validators as they were provided:    *  - in `AbstractControl` constructor    *  - as an argument while calling `setValidators` function    *  - while calling the setter on the `validator` field (e.g. `control.validator = validatorFn`)    *    * @internal    */   private _rawValidators!: ValidatorFn|ValidatorFn[]|null;    /**    * Asynchronous validators as they were provided:    *  - in `AbstractControl` constructor    *  - as an argument while calling `setAsyncValidators` function    *  - while calling the setter on the `asyncValidator` field (e.g. `control.asyncValidator =    * asyncValidatorFn`)    *    * @internal    */   private _rawAsyncValidators!: AsyncValidatorFn|AsyncValidatorFn[]|null;    /**    * The current value of the control.    *    * * For a `FormControl`, the current value.    * * For an enabled `FormGroup`, the values of enabled controls as an object    * with a key-value pair for each member of the group.    * * For a disabled `FormGroup`, the values of all controls as an object    * with a key-value pair for each member of the group.    * * For a `FormArray`, the values of enabled controls as an array.    *    */   public readonly value!: TValue;    /**    * Initialize the AbstractControl instance.    *    * @param validators The function or array of functions that is used to determine the validity of    *     this control synchronously.    * @param asyncValidators The function or array of functions that is used to determine validity of    *     this control asynchronously.    */   constructor(       validators: ValidatorFn|ValidatorFn[]|null,       asyncValidators: AsyncValidatorFn|AsyncValidatorFn[]|null) {     this._assignValidators(validators);     this._assignAsyncValidators(asyncValidators);   }    /**    * Returns the function that is used to determine the validity of this control synchronously.    * If multiple validators have been added, this will be a single composed function.    * See `Validators.compose()` for additional information.    */   get validator(): ValidatorFn|null {     return this._composedValidatorFn;   }   set validator(validatorFn: ValidatorFn|null) {     this._rawValidators = this._composedValidatorFn = validatorFn;   }    /**    * Returns the function that is used to determine the validity of this control asynchronously.    * If multiple validators have been added, this will be a single composed function.    * See `Validators.compose()` for additional information.    */   get asyncValidator(): AsyncValidatorFn|null {     return this._composedAsyncValidatorFn;   }   set asyncValidator(asyncValidatorFn: AsyncValidatorFn|null) {     this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;   }    /**    * The parent control.    */   get parent(): FormGroup|FormArray|null {     return this._parent;   }    /**    * The validation status of the control.    *    * @see `FormControlStatus`    *    * These status values are mutually exclusive, so a control cannot be    * both valid AND invalid or invalid AND disabled.    */   public readonly status!: FormControlStatus;    /**    * A control is `valid` when its `status` is `VALID`.    *    * @see {@link AbstractControl.status}    *    * @returns True if the control has passed all of its validation tests,    * false otherwise.    */   get valid(): boolean {     return this.status === VALID;   }    /**    * A control is `invalid` when its `status` is `INVALID`.    *    * @see {@link AbstractControl.status}    *    * @returns True if this control has failed one or more of its validation checks,    * false otherwise.    */   get invalid(): boolean {     return this.status === INVALID;   }    /**    * A control is `pending` when its `status` is `PENDING`.    *    * @see {@link AbstractControl.status}    *    * @returns True if this control is in the process of conducting a validation check,    * false otherwise.    */   get pending(): boolean {     return this.status == PENDING;   }    /**    * A control is `disabled` when its `status` is `DISABLED`.    *    * Disabled controls are exempt from validation checks and    * are not included in the aggregate value of their ancestor    * controls.    *    * @see {@link AbstractControl.status}    *    * @returns True if the control is disabled, false otherwise.    */   get disabled(): boolean {     return this.status === DISABLED;   }    /**    * A control is `enabled` as long as its `status` is not `DISABLED`.    *    * @returns True if the control has any status other than 'DISABLED',    * false if the status is 'DISABLED'.    *    * @see {@link AbstractControl.status}    *    */   get enabled(): boolean {     return this.status !== DISABLED;   }    /**    * An object containing any errors generated by failing validation,    * or null if there are no errors.    */   public readonly errors!: ValidationErrors|null;    /**    * A control is `pristine` if the user has not yet changed    * the value in the UI.    *    * @returns True if the user has not yet changed the value in the UI; compare `dirty`.    * Programmatic changes to a control's value do not mark it dirty.    */   public readonly pristine: boolean = true;    /**    * A control is `dirty` if the user has changed the value    * in the UI.    *    * @returns True if the user has changed the value of this control in the UI; compare `pristine`.    * Programmatic changes to a control's value do not mark it dirty.    */   get dirty(): boolean {     return !this.pristine;   }    /**    * True if the control is marked as `touched`.    *    * A control is marked `touched` once the user has triggered    * a `blur` event on it.    */   public readonly touched: boolean = false;    /**    * True if the control has not been marked as touched    *    * A control is `untouched` if the user has not yet triggered    * a `blur` event on it.    */   get untouched(): boolean {     return !this.touched;   }    /**    * A multicasting observable that emits an event every time the value of the control changes, in    * the UI or programmatically. It also emits an event each time you call enable() or disable()    * without passing along {emitEvent: false} as a function argument.    */   public readonly valueChanges!: Observable<TValue>;    /**    * A multicasting observable that emits an event every time the validation `status` of the control    * recalculates.    *    * @see `FormControlStatus`    * @see {@link AbstractControl.status}    *    */   public readonly statusChanges!: Observable<FormControlStatus>;    /**    * Reports the update strategy of the `AbstractControl` (meaning    * the event on which the control updates itself).    * Possible values: `'change'` | `'blur'` | `'submit'`    * Default value: `'change'`    */   get updateOn(): FormHooks {     return this._updateOn ? this._updateOn : (this.parent ? this.parent.updateOn : 'change');   }    /**    * Sets the synchronous validators that are active on this control.  Calling    * this overwrites any existing synchronous validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * If you want to add a new validator without affecting existing ones, consider    * using `addValidators()` method instead.    */   setValidators(validators: ValidatorFn|ValidatorFn[]|null): void {     this._assignValidators(validators);   }    /**    * Sets the asynchronous validators that are active on this control. Calling this    * overwrites any existing asynchronous validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * If you want to add a new validator without affecting existing ones, consider    * using `addAsyncValidators()` method instead.    */   setAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]|null): void {     this._assignAsyncValidators(validators);   }    /**    * Add a synchronous validator or validators to this control, without affecting other validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * Adding a validator that already exists will have no effect. If duplicate validator functions    * are present in the `validators` array, only the first instance would be added to a form    * control.    *    * @param validators The new validator function or functions to add to this control.    */   addValidators(validators: ValidatorFn|ValidatorFn[]): void {     this.setValidators(addValidators(validators, this._rawValidators));   }    /**    * Add an asynchronous validator or validators to this control, without affecting other    * validators.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * Adding a validator that already exists will have no effect.    *    * @param validators The new asynchronous validator function or functions to add to this control.    */   addAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]): void {     this.setAsyncValidators(addValidators(validators, this._rawAsyncValidators));   }    /**    * Remove a synchronous validator from this control, without affecting other validators.    * Validators are compared by function reference; you must pass a reference to the exact same    * validator function as the one that was originally set. If a provided validator is not found,    * it is ignored.    *    * @usageNotes    *    * ### Reference to a ValidatorFn    *    * ```    * // Reference to the RequiredValidator    * const ctrl = new FormControl<string | null>('', Validators.required);    * ctrl.removeValidators(Validators.required);    *    * // Reference to anonymous function inside MinValidator    * const minValidator = Validators.min(3);    * const ctrl = new FormControl<string | null>('', minValidator);    * expect(ctrl.hasValidator(minValidator)).toEqual(true)    * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)    *    * ctrl.removeValidators(minValidator);    * ```    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * @param validators The validator or validators to remove.    */   removeValidators(validators: ValidatorFn|ValidatorFn[]): void {     this.setValidators(removeValidators(validators, this._rawValidators));   }    /**    * Remove an asynchronous validator from this control, without affecting other validators.    * Validators are compared by function reference; you must pass a reference to the exact same    * validator function as the one that was originally set. If a provided validator is not found, it    * is ignored.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    * @param validators The asynchronous validator or validators to remove.    */   removeAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]): void {     this.setAsyncValidators(removeValidators(validators, this._rawAsyncValidators));   }    /**    * Check whether a synchronous validator function is present on this control. The provided    * validator must be a reference to the exact same function that was provided.    *    * @usageNotes    *    * ### Reference to a ValidatorFn    *    * ```    * // Reference to the RequiredValidator    * const ctrl = new FormControl<number | null>(0, Validators.required);    * expect(ctrl.hasValidator(Validators.required)).toEqual(true)    *    * // Reference to anonymous function inside MinValidator    * const minValidator = Validators.min(3);    * const ctrl = new FormControl<number | null>(0, minValidator);    * expect(ctrl.hasValidator(minValidator)).toEqual(true)    * expect(ctrl.hasValidator(Validators.min(3))).toEqual(false)    * ```    *    * @param validator The validator to check for presence. Compared by function reference.    * @returns Whether the provided validator was found on this control.    */   hasValidator(validator: ValidatorFn): boolean {     return hasValidator(this._rawValidators, validator);   }    /**    * Check whether an asynchronous validator function is present on this control. The provided    * validator must be a reference to the exact same function that was provided.    *    * @param validator The asynchronous validator to check for presence. Compared by function    *     reference.    * @returns Whether the provided asynchronous validator was found on this control.    */   hasAsyncValidator(validator: AsyncValidatorFn): boolean {     return hasValidator(this._rawAsyncValidators, validator);   }    /**    * Empties out the synchronous validator list.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    */   clearValidators(): void {     this.validator = null;   }    /**    * Empties out the async validator list.    *    * When you add or remove a validator at run time, you must call    * `updateValueAndValidity()` for the new validation to take effect.    *    */   clearAsyncValidators(): void {     this.asyncValidator = null;   }    /**    * Marks the control as `touched`. A control is touched by focus and    * blur events that do not change the value.    *    * @see `markAsUntouched()`    * @see `markAsDirty()`    * @see `markAsPristine()`    *    * @param opts Configuration options that determine how the control propagates changes    * and emits events after marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsTouched(opts: {onlySelf?: boolean} = {}): void {     (this as {touched: boolean}).touched = true;      if (this._parent && !opts.onlySelf) {       this._parent.markAsTouched(opts);     }   }    /**    * Marks the control and all its descendant controls as `touched`.    * @see `markAsTouched()`    */   markAllAsTouched(): void {     this.markAsTouched({onlySelf: true});      this._forEachChild((control: AbstractControl) => control.markAllAsTouched());   }    /**    * Marks the control as `untouched`.    *    * If the control has any children, also marks all children as `untouched`    * and recalculates the `touched` status of all parent controls.    *    * @see `markAsTouched()`    * @see `markAsDirty()`    * @see `markAsPristine()`    *    * @param opts Configuration options that determine how the control propagates changes    * and emits events after the marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsUntouched(opts: {onlySelf?: boolean} = {}): void {     (this as {touched: boolean}).touched = false;     this._pendingTouched = false;      this._forEachChild((control: AbstractControl) => {       control.markAsUntouched({onlySelf: true});     });      if (this._parent && !opts.onlySelf) {       this._parent._updateTouched(opts);     }   }    /**    * Marks the control as `dirty`. A control becomes dirty when    * the control's value is changed through the UI; compare `markAsTouched`.    *    * @see `markAsTouched()`    * @see `markAsUntouched()`    * @see `markAsPristine()`    *    * @param opts Configuration options that determine how the control propagates changes    * and emits events after marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsDirty(opts: {onlySelf?: boolean} = {}): void {     (this as {pristine: boolean}).pristine = false;      if (this._parent && !opts.onlySelf) {       this._parent.markAsDirty(opts);     }   }    /**    * Marks the control as `pristine`.    *    * If the control has any children, marks all children as `pristine`,    * and recalculates the `pristine` status of all parent    * controls.    *    * @see `markAsTouched()`    * @see `markAsUntouched()`    * @see `markAsDirty()`    *    * @param opts Configuration options that determine how the control emits events after    * marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    */   markAsPristine(opts: {onlySelf?: boolean} = {}): void {     (this as {pristine: boolean}).pristine = true;     this._pendingDirty = false;      this._forEachChild((control: AbstractControl) => {       control.markAsPristine({onlySelf: true});     });      if (this._parent && !opts.onlySelf) {       this._parent._updatePristine(opts);     }   }    /**    * Marks the control as `pending`.    *    * A control is pending while the control performs async validation.    *    * @see {@link AbstractControl.status}    *    * @param opts Configuration options that determine how the control propagates changes and    * emits events after marking is applied.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), the `statusChanges`    * observable emits an event with the latest status the control is marked pending.    * When false, no events are emitted.    *    */   markAsPending(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     (this as {status: FormControlStatus}).status = PENDING;      if (opts.emitEvent !== false) {       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      if (this._parent && !opts.onlySelf) {       this._parent.markAsPending(opts);     }   }    /**    * Disables the control. This means the control is exempt from validation checks and    * excluded from the aggregate value of any parent. Its status is `DISABLED`.    *    * If the control has children, all children are also disabled.    *    * @see {@link AbstractControl.status}    *    * @param opts Configuration options that determine how the control propagates    * changes and emits events after the control is disabled.    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is disabled.    * When false, no events are emitted.    */   disable(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     // If parent has been marked artificially dirty we don't want to re-calculate the     // parent's dirtiness based on the children.     const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);      (this as {status: FormControlStatus}).status = DISABLED;     (this as {errors: ValidationErrors | null}).errors = null;     this._forEachChild((control: AbstractControl) => {       control.disable({...opts, onlySelf: true});     });     this._updateValue();      if (opts.emitEvent !== false) {       (this.valueChanges as EventEmitter<TValue>).emit(this.value);       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      this._updateAncestors({...opts, skipPristineCheck});     this._onDisabledChange.forEach((changeFn) => changeFn(true));   }    /**    * Enables the control. This means the control is included in validation checks and    * the aggregate value of its parent. Its status recalculates based on its value and    * its validators.    *    * By default, if the control has children, all children are enabled.    *    * @see {@link AbstractControl.status}    *    * @param opts Configure options that control how the control propagates changes and    * emits events when marked as untouched    * * `onlySelf`: When true, mark only this control. When false or not supplied,    * marks all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is enabled.    * When false, no events are emitted.    */   enable(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     // If parent has been marked artificially dirty we don't want to re-calculate the     // parent's dirtiness based on the children.     const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);      (this as {status: FormControlStatus}).status = VALID;     this._forEachChild((control: AbstractControl) => {       control.enable({...opts, onlySelf: true});     });     this.updateValueAndValidity({onlySelf: true, emitEvent: opts.emitEvent});      this._updateAncestors({...opts, skipPristineCheck});     this._onDisabledChange.forEach((changeFn) => changeFn(false));   }    private _updateAncestors(       opts: {onlySelf?: boolean, emitEvent?: boolean, skipPristineCheck?: boolean}): void {     if (this._parent && !opts.onlySelf) {       this._parent.updateValueAndValidity(opts);       if (!opts.skipPristineCheck) {         this._parent._updatePristine();       }       this._parent._updateTouched();     }   }    /**    * Sets the parent of the control    *    * @param parent The new parent.    */   setParent(parent: FormGroup|FormArray|null): void {     this._parent = parent;   }    /**    * Sets the value of the control. Abstract method (implemented in sub-classes).    */   abstract setValue(value: TRawValue, options?: Object): void;    /**    * Patches the value of the control. Abstract method (implemented in sub-classes).    */   abstract patchValue(value: TValue, options?: Object): void;    /**    * Resets the control. Abstract method (implemented in sub-classes).    */   abstract reset(value?: TValue, options?: Object): void;    /**    * The raw value of this control. For most control implementations, the raw value will include    * disabled children.    */   getRawValue(): any {     return this.value;   }    /**    * Recalculates the value and validation status of the control.    *    * By default, it also updates the value and validity of its ancestors.    *    * @param opts Configuration options determine how the control propagates changes and emits events    * after updates and validity checks are applied.    * * `onlySelf`: When true, only update this control. When false or not supplied,    * update all direct ancestors. Default is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is updated.    * When false, no events are emitted.    */   updateValueAndValidity(opts: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     this._setInitialStatus();     this._updateValue();      if (this.enabled) {       this._cancelExistingSubscription();       (this as {errors: ValidationErrors | null}).errors = this._runValidator();       (this as {status: FormControlStatus}).status = this._calculateStatus();        if (this.status === VALID || this.status === PENDING) {         this._runAsyncValidator(opts.emitEvent);       }     }      if (opts.emitEvent !== false) {       (this.valueChanges as EventEmitter<TValue>).emit(this.value);       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      if (this._parent && !opts.onlySelf) {       this._parent.updateValueAndValidity(opts);     }   }    /** @internal */   _updateTreeValidity(opts: {emitEvent?: boolean} = {emitEvent: true}): void {     this._forEachChild((ctrl: AbstractControl) => ctrl._updateTreeValidity(opts));     this.updateValueAndValidity({onlySelf: true, emitEvent: opts.emitEvent});   }    private _setInitialStatus() {     (this as {status: FormControlStatus}).status = this._allControlsDisabled() ? DISABLED : VALID;   }    private _runValidator(): ValidationErrors|null {     return this.validator ? this.validator(this) : null;   }    private _runAsyncValidator(emitEvent?: boolean): void {     if (this.asyncValidator) {       (this as {status: FormControlStatus}).status = PENDING;       this._hasOwnPendingAsyncValidator = true;       const obs = toObservable(this.asyncValidator(this));       this._asyncValidationSubscription = obs.subscribe((errors: ValidationErrors|null) => {         this._hasOwnPendingAsyncValidator = false;         // This will trigger the recalculation of the validation status, which depends on         // the state of the asynchronous validation (whether it is in progress or not). So, it is         // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.         this.setErrors(errors, {emitEvent});       });     }   }    private _cancelExistingSubscription(): void {     if (this._asyncValidationSubscription) {       this._asyncValidationSubscription.unsubscribe();       this._hasOwnPendingAsyncValidator = false;     }   }    /**    * Sets errors on a form control when running validations manually, rather than automatically.    *    * Calling `setErrors` also updates the validity of the parent control.    *    * @param opts Configuration options that determine how the control propagates    * changes and emits events after the control errors are set.    * * `emitEvent`: When true or not supplied (the default), the `statusChanges`    * observable emits an event after the errors are set.    *    * @usageNotes    *    * ### Manually set the errors for a control    *    * ```    * const login = new FormControl('someLogin');    * login.setErrors({    *   notUnique: true    * });    *    * expect(login.valid).toEqual(false);    * expect(login.errors).toEqual({ notUnique: true });    *    * login.setValue('someOtherLogin');    *    * expect(login.valid).toEqual(true);    * ```    */   setErrors(errors: ValidationErrors|null, opts: {emitEvent?: boolean} = {}): void {     (this as {errors: ValidationErrors | null}).errors = errors;     this._updateControlsErrors(opts.emitEvent !== false);   }    /**    * Retrieves a child control given the control's name or path.    *    * This signature for get supports strings and `const` arrays (`.get(['foo', 'bar'] as const)`).    */   get<P extends string|(readonly(string|number)[])>(path: P):       AbstractControl<ɵGetProperty<TRawValue, P>>|null;    /**    * Retrieves a child control given the control's name or path.    *    * This signature for `get` supports non-const (mutable) arrays. Inferred type    * information will not be as robust, so prefer to pass a `readonly` array if possible.    */   get<P extends string|Array<string|number>>(path: P):       AbstractControl<ɵGetProperty<TRawValue, P>>|null;    /**    * Retrieves a child control given the control's name or path.    *    * @param path A dot-delimited string or array of string/number values that define the path to the    * control. If a string is provided, passing it as a string literal will result in improved type    * information. Likewise, if an array is provided, passing it `as const` will cause improved type    * information to be available.    *    * @usageNotes    * ### Retrieve a nested control    *    * For example, to get a `name` control nested within a `person` sub-group:    *    * * `this.form.get('person.name');`    *    * -OR-    *    * * `this.form.get(['person', 'name'] as const);` // `as const` gives improved typings    *    * ### Retrieve a control in a FormArray    *    * When accessing an element inside a FormArray, you can use an element index.    * For example, to get a `price` control from the first element in an `items` array you can use:    *    * * `this.form.get('items.0.price');`    *    * -OR-    *    * * `this.form.get(['items', 0, 'price']);`    */   get<P extends string|((string | number)[])>(path: P):       AbstractControl<ɵGetProperty<TRawValue, P>>|null {     let currPath: Array<string|number>|string = path;     if (currPath == null) return null;     if (!Array.isArray(currPath)) currPath = currPath.split('.');     if (currPath.length === 0) return null;     return currPath.reduce(         (control: AbstractControl|null, name) => control && control._find(name), this);   }    /**    * @description    * Reports error data for the control with the given path.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * @returns error data for that particular error. If the control or error is not present,    * null is returned.    */   getError(errorCode: string, path?: Array<string|number>|string): any {     const control = path ? this.get(path) : this;     return control && control.errors ? control.errors[errorCode] : null;   }    /**    * @description    * Reports whether the control with the given path has the error specified.    *    * @param errorCode The code of the error to check    * @param path A list of control names that designates how to move from the current control    * to the control that should be queried for errors.    *    * @usageNotes    * For example, for the following `FormGroup`:    *    * ```    * form = new FormGroup({    *   address: new FormGroup({ street: new FormControl() })    * });    * ```    *    * The path to the 'street' control from the root form would be 'address' -> 'street'.    *    * It can be provided to this method in one of two formats:    *    * 1. An array of string control names, e.g. `['address', 'street']`    * 1. A period-delimited list of control names in one string, e.g. `'address.street'`    *    * If no path is given, this method checks for the error on the current control.    *    * @returns whether the given error is present in the control at the given path.    *    * If the control is not present, false is returned.    */   hasError(errorCode: string, path?: Array<string|number>|string): boolean {     return !!this.getError(errorCode, path);   }    /**    * Retrieves the top-level ancestor of this control.    */   get root(): AbstractControl {     let x: AbstractControl = this;      while (x._parent) {       x = x._parent;     }      return x;   }    /** @internal */   _updateControlsErrors(emitEvent: boolean): void {     (this as {status: FormControlStatus}).status = this._calculateStatus();      if (emitEvent) {       (this.statusChanges as EventEmitter<FormControlStatus>).emit(this.status);     }      if (this._parent) {       this._parent._updateControlsErrors(emitEvent);     }   }    /** @internal */   _initObservables() {     (this as {valueChanges: Observable<TValue>}).valueChanges = new EventEmitter();     (this as {statusChanges: Observable<FormControlStatus>}).statusChanges = new EventEmitter();   }     private _calculateStatus(): FormControlStatus {     if (this._allControlsDisabled()) return DISABLED;     if (this.errors) return INVALID;     if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING)) return PENDING;     if (this._anyControlsHaveStatus(INVALID)) return INVALID;     return VALID;   }    /** @internal */   abstract _updateValue(): void;    /** @internal */   abstract _forEachChild(cb: (c: AbstractControl) => void): void;    /** @internal */   abstract _anyControls(condition: (c: AbstractControl) => boolean): boolean;    /** @internal */   abstract _allControlsDisabled(): boolean;    /** @internal */   abstract _syncPendingControls(): boolean;    /** @internal */   _anyControlsHaveStatus(status: FormControlStatus): boolean {     return this._anyControls((control: AbstractControl) => control.status === status);   }    /** @internal */   _anyControlsDirty(): boolean {     return this._anyControls((control: AbstractControl) => control.dirty);   }    /** @internal */   _anyControlsTouched(): boolean {     return this._anyControls((control: AbstractControl) => control.touched);   }    /** @internal */   _updatePristine(opts: {onlySelf?: boolean} = {}): void {     (this as {pristine: boolean}).pristine = !this._anyControlsDirty();      if (this._parent && !opts.onlySelf) {       this._parent._updatePristine(opts);     }   }    /** @internal */   _updateTouched(opts: {onlySelf?: boolean} = {}): void {     (this as {touched: boolean}).touched = this._anyControlsTouched();      if (this._parent && !opts.onlySelf) {       this._parent._updateTouched(opts);     }   }    /** @internal */   _onDisabledChange: Array<(isDisabled: boolean) => void> = [];    /** @internal */   _registerOnCollectionChange(fn: () => void): void {     this._onCollectionChange = fn;   }    /** @internal */   _setUpdateStrategy(opts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null): void {     if (isOptionsObj(opts) && opts.updateOn != null) {       this._updateOn = opts.updateOn!;     }   }   /**    * Check to see if parent has been marked artificially dirty.    *    * @internal    */   private _parentMarkedDirty(onlySelf?: boolean): boolean {     const parentDirty = this._parent && this._parent.dirty;     return !onlySelf && !!parentDirty && !this._parent!._anyControlsDirty();   }    /** @internal */   _find(name: string|number): AbstractControl|null {     return null;   }    /**    * Internal implementation of the `setValidators` method. Needs to be separated out into a    * different method, because it is called in the constructor and it can break cases where    * a control is extended.    */   private _assignValidators(validators: ValidatorFn|ValidatorFn[]|null): void {     this._rawValidators = Array.isArray(validators) ? validators.slice() : validators;     this._composedValidatorFn = coerceToValidator(this._rawValidators);   }    /**    * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a    * different method, because it is called in the constructor and it can break cases where    * a control is extended.    */   private _assignAsyncValidators(validators: AsyncValidatorFn|AsyncValidatorFn[]|null): void {     this._rawAsyncValidators = Array.isArray(validators) ? validators.slice() : validators;     this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AsyncValidatorFn, ValidatorFn} from '../directives/validators';  import {AbstractControl, AbstractControlOptions, assertAllValuesPresent, assertControlPresent, pickAsyncValidators, pickValidators, ɵRawValue, ɵTypedOrUntyped, ɵValue} from './abstract_model';  /**  * FormGroupValue extracts the type of `.value` from a FormGroup's inner object type. The untyped  * case falls back to {[key: string]: any}.  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  *  * For internal use only.  */ export type ɵFormGroupValue<T extends {[K in keyof T]?: AbstractControl<any>}> =     ɵTypedOrUntyped<T, Partial<{[K in keyof T]: ɵValue<T[K]>}>, {[key: string]: any}>;  /**  * FormGroupRawValue extracts the type of `.getRawValue()` from a FormGroup's inner object type. The  * untyped case falls back to {[key: string]: any}.  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  *  * For internal use only.  */ export type ɵFormGroupRawValue<T extends {[K in keyof T]?: AbstractControl<any>}> =     ɵTypedOrUntyped<T, {[K in keyof T]: ɵRawValue<T[K]>}, {[key: string]: any}>;  /**  * OptionalKeys returns the union of all optional keys in the object.  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  */ export type ɵOptionalKeys<T> = {   [K in keyof T] -?: undefined extends T[K] ? K : never }[keyof T];  /**  * Tracks the value and validity state of a group of `FormControl` instances.  *  * A `FormGroup` aggregates the values of each child `FormControl` into one object,  * with each control name as the key.  It calculates its status by reducing the status values  * of its children. For example, if one of the controls in a group is invalid, the entire  * group becomes invalid.  *  * `FormGroup` is one of the four fundamental building blocks used to define forms in Angular,  * along with `FormControl`, `FormArray`, and `FormRecord`.  *  * When instantiating a `FormGroup`, pass in a collection of child controls as the first  * argument. The key for each child registers the name for the control.  *  * `FormGroup` is intended for use cases where the keys are known ahead of time.  * If you need to dynamically add and remove controls, use {@link FormRecord} instead.  *  * `FormGroup` accepts an optional type parameter `TControl`, which is an object type with inner  * control types as values.  *  * @usageNotes  *  * ### Create a form group with 2 controls  *  * ```  * const form = new FormGroup({  *   first: new FormControl('Nancy', Validators.minLength(2)),  *   last: new FormControl('Drew'),  * });  *  * console.log(form.value);   // {first: 'Nancy', last; 'Drew'}  * console.log(form.status);  // 'VALID'  * ```  *  * ### The type argument, and optional controls  *  * `FormGroup` accepts one generic argument, which is an object containing its inner controls.  * This type will usually be inferred automatically, but you can always specify it explicitly if you  * wish.  *  * If you have controls that are optional (i.e. they can be removed, you can use the `?` in the  * type):  *  * ```  * const form = new FormGroup<{  *   first: FormControl<string|null>,  *   middle?: FormControl<string|null>, // Middle name is optional.  *   last: FormControl<string|null>,  * }>({  *   first: new FormControl('Nancy'),  *   last: new FormControl('Drew'),  * });  * ```  *  * ### Create a form group with a group-level validator  *  * You include group-level validators as the second arg, or group-level async  * validators as the third arg. These come in handy when you want to perform validation  * that considers the value of more than one child control.  *  * ```  * const form = new FormGroup({  *   password: new FormControl('', Validators.minLength(2)),  *   passwordConfirm: new FormControl('', Validators.minLength(2)),  * }, passwordMatchValidator);  *  *  * function passwordMatchValidator(g: FormGroup) {  *    return g.get('password').value === g.get('passwordConfirm').value  *       ? null : {'mismatch': true};  * }  * ```  *  * Like `FormControl` instances, you choose to pass in  * validators and async validators as part of an options object.  *  * ```  * const form = new FormGroup({  *   password: new FormControl('')  *   passwordConfirm: new FormControl('')  * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });  * ```  *  * ### Set the updateOn property for all controls in a form group  *  * The options object is used to set a default value for each child  * control's `updateOn` property. If you set `updateOn` to `'blur'` at the  * group level, all child controls default to 'blur', unless the child  * has explicitly specified a different `updateOn` value.  *  * ```ts  * const c = new FormGroup({  *   one: new FormControl()  * }, { updateOn: 'blur' });  * ```  *  * ### Using a FormGroup with optional controls  *  * It is possible to have optional controls in a FormGroup. An optional control can be removed later  * using `removeControl`, and can be omitted when calling `reset`. Optional controls must be  * declared optional in the group's type.  *  * ```ts  * const c = new FormGroup<{one?: FormControl<string>}>({  *   one: new FormControl('')  * });  * ```  *  * Notice that `c.value.one` has type `string|null|undefined`. This is because calling `c.reset({})`  * without providing the optional key `one` will cause it to become `null`.  *  * @publicApi  */ export class FormGroup<TControl extends {[K in keyof TControl]: AbstractControl<any>} = any> extends     AbstractControl<         ɵTypedOrUntyped<TControl, ɵFormGroupValue<TControl>, any>,         ɵTypedOrUntyped<TControl, ɵFormGroupRawValue<TControl>, any>> {   /**    * Creates a new `FormGroup` instance.    *    * @param controls A collection of child controls. The key for each child is the name    * under which it is registered.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or an `AbstractControlOptions` object that contains validation functions    * and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions    *    */   constructor(       controls: TControl, validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null) {     super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));     this.controls = controls;     this._initObservables();     this._setUpdateStrategy(validatorOrOpts);     this._setUpControls();     this.updateValueAndValidity({       onlySelf: true,       // If `asyncValidator` is present, it will trigger control status change from `PENDING` to       // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,       // so we set `emitEvent` to `true` to allow that during the control creation process.       emitEvent: !!this.asyncValidator     });   }    public controls: ɵTypedOrUntyped<TControl, TControl, {[key: string]: AbstractControl<any>}>;    /**    * Registers a control with the group's list of controls. In a strongly-typed group, the control    * must be in the group's type (possibly as an optional key).    *    * This method does not update the value or validity of the control.    * Use {@link FormGroup#addControl addControl} instead.    *    * @param name The control name to register in the collection    * @param control Provides the control for the given name    */   registerControl<K extends string&keyof TControl>(name: K, control: TControl[K]): TControl[K];   registerControl(       this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string,       control: AbstractControl<any>): AbstractControl<any>;    registerControl<K extends string&keyof TControl>(name: K, control: TControl[K]): TControl[K] {     if (this.controls[name]) return (this.controls as any)[name];     this.controls[name] = control;     control.setParent(this as FormGroup);     control._registerOnCollectionChange(this._onCollectionChange);     return control;   }    /**    * Add a control to this group. In a strongly-typed group, the control must be in the group's type    * (possibly as an optional key).    *    * If a control with a given name already exists, it would *not* be replaced with a new one.    * If you want to replace an existing control, use the {@link FormGroup#setControl setControl}    * method instead. This method also updates the value and validity of the control.    *    * @param name The control name to add to the collection    * @param control Provides the control for the given name    * @param options Specifies whether this FormGroup instance should emit events after a new    *     control is added.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * added. When false, no events are emitted.    */   addControl(       this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string,       control: AbstractControl, options?: {emitEvent?: boolean}): void;   addControl<K extends string&keyof TControl>(name: K, control: Required<TControl>[K], options?: {     emitEvent?: boolean   }): void;    addControl<K extends string&keyof TControl>(name: K, control: Required<TControl>[K], options: {     emitEvent?: boolean   } = {}): void {     this.registerControl(name, control);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    removeControl(this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string, options?: {     emitEvent?: boolean;   }): void;   removeControl<S extends string>(name: ɵOptionalKeys<TControl>&S, options?: {     emitEvent?: boolean;   }): void;    /**    * Remove a control from this group. In a strongly-typed group, required controls cannot be    * removed.    *    * This method also updates the value and validity of the control.    *    * @param name The control name to remove from the collection    * @param options Specifies whether this FormGroup instance should emit events after a    *     control is removed.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * removed. When false, no events are emitted.    */   removeControl(name: string, options: {emitEvent?: boolean;} = {}): void {     if ((this.controls as any)[name])       (this.controls as any)[name]._registerOnCollectionChange(() => {});     delete ((this.controls as any)[name]);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Replace an existing control. In a strongly-typed group, the control must be in the group's type    * (possibly as an optional key).    *    * If a control with a given name does not exist in this `FormGroup`, it will be added.    *    * @param name The control name to replace in the collection    * @param control Provides the control for the given name    * @param options Specifies whether this FormGroup instance should emit events after an    *     existing control is replaced.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * replaced with a new one. When false, no events are emitted.    */   setControl<K extends string&keyof TControl>(name: K, control: TControl[K], options?: {     emitEvent?: boolean   }): void;   setControl(       this: FormGroup<{[key: string]: AbstractControl<any>}>, name: string,       control: AbstractControl, options?: {emitEvent?: boolean}): void;    setControl<K extends string&keyof TControl>(name: K, control: TControl[K], options: {     emitEvent?: boolean   } = {}): void {     if (this.controls[name]) this.controls[name]._registerOnCollectionChange(() => {});     delete (this.controls[name]);     if (control) this.registerControl(name, control);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Check whether there is an enabled control with the given name in the group.    *    * Reports false for disabled controls. If you'd like to check for existence in the group    * only, use {@link AbstractControl#get get} instead.    *    * @param controlName The control name to check for existence in the collection    *    * @returns false for disabled controls, true otherwise.    */   contains<K extends string>(controlName: K): boolean;   contains(this: FormGroup<{[key: string]: AbstractControl<any>}>, controlName: string): boolean;    contains<K extends string&keyof TControl>(controlName: K): boolean {     return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;   }    /**    * Sets the value of the `FormGroup`. It accepts an object that matches    * the structure of the group, with control names as keys.    *    * @usageNotes    * ### Set the complete value for the form group    *    * ```    * const form = new FormGroup({    *   first: new FormControl(),    *   last: new FormControl()    * });    *    * console.log(form.value);   // {first: null, last: null}    *    * form.setValue({first: 'Nancy', last: 'Drew'});    * console.log(form.value);   // {first: 'Nancy', last: 'Drew'}    * ```    *    * @throws When strict checks fail, such as setting the value of a control    * that doesn't exist or if you exclude a value of a control that does exist.    *    * @param value The new value for the control that matches the structure of the group.    * @param options Configuration options that determine how the control propagates changes    * and emits events after the value changes.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control value is updated.    * When false, no events are emitted.    */   override setValue(value: ɵFormGroupRawValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     assertAllValuesPresent(this, true, value);     (Object.keys(value) as Array<keyof TControl>).forEach(name => {       assertControlPresent(this, true, name as any);       (this.controls as any)[name].setValue(           (value as any)[name], {onlySelf: true, emitEvent: options.emitEvent});     });     this.updateValueAndValidity(options);   }    /**    * Patches the value of the `FormGroup`. It accepts an object with control    * names as keys, and does its best to match the values to the correct controls    * in the group.    *    * It accepts both super-sets and sub-sets of the group without throwing an error.    *    * @usageNotes    * ### Patch the value for a form group    *    * ```    * const form = new FormGroup({    *    first: new FormControl(),    *    last: new FormControl()    * });    * console.log(form.value);   // {first: null, last: null}    *    * form.patchValue({first: 'Nancy'});    * console.log(form.value);   // {first: 'Nancy', last: null}    * ```    *    * @param value The object that matches the structure of the group.    * @param options Configuration options that determine how the control propagates changes and    * emits events after the value is patched.    * * `onlySelf`: When true, each change only affects this control and not its parent. Default is    * true.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control value    * is updated. When false, no events are emitted. The configuration options are passed to    * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.    */   override patchValue(value: ɵFormGroupValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     // Even though the `value` argument type doesn't allow `null` and `undefined` values, the     // `patchValue` can be called recursively and inner data structures might have these values, so     // we just ignore such cases when a field containing FormGroup instance receives `null` or     // `undefined` as a value.     if (value == null /* both `null` and `undefined` */) return;     (Object.keys(value) as Array<keyof TControl>).forEach(name => {       // The compiler cannot see through the uninstantiated conditional type of `this.controls`, so       // `as any` is required.       const control = (this.controls as any)[name];       if (control) {         control.patchValue(             /* Guaranteed to be present, due to the outer forEach. */ value                 [name as keyof ɵFormGroupValue<TControl>]!,             {onlySelf: true, emitEvent: options.emitEvent});       }     });     this.updateValueAndValidity(options);   }    /**    * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets    * the value of all descendants to their default values, or null if no defaults were provided.    *    * You reset to a specific form state by passing in a map of states    * that matches the structure of your form, with control names as keys. The state    * is a standalone value or a form state object with both a value and a disabled    * status.    *    * @param value Resets the control with an initial value,    * or an object that defines the initial value and disabled state.    *    * @param options Configuration options that determine how the control propagates changes    * and emits events when the group is reset.    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is reset.    * When false, no events are emitted.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    *    * @usageNotes    *    * ### Reset the form group values    *    * ```ts    * const form = new FormGroup({    *   first: new FormControl('first name'),    *   last: new FormControl('last name')    * });    *    * console.log(form.value);  // {first: 'first name', last: 'last name'}    *    * form.reset({ first: 'name', last: 'last name' });    *    * console.log(form.value);  // {first: 'name', last: 'last name'}    * ```    *    * ### Reset the form group values and disabled status    *    * ```    * const form = new FormGroup({    *   first: new FormControl('first name'),    *   last: new FormControl('last name')    * });    *    * form.reset({    *   first: {value: 'name', disabled: true},    *   last: 'last'    * });    *    * console.log(form.value);  // {last: 'last'}    * console.log(form.get('first').status);  // 'DISABLED'    * ```    */   override reset(       value: ɵTypedOrUntyped<TControl, ɵFormGroupValue<TControl>, any> = {} as unknown as           ɵFormGroupValue<TControl>,       options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {     this._forEachChild((control, name) => {       control.reset((value as any)[name], {onlySelf: true, emitEvent: options.emitEvent});     });     this._updatePristine(options);     this._updateTouched(options);     this.updateValueAndValidity(options);   }    /**    * The aggregate value of the `FormGroup`, including any disabled controls.    *    * Retrieves all values regardless of disabled status.    */   override getRawValue(): ɵTypedOrUntyped<TControl, ɵFormGroupRawValue<TControl>, any> {     return this._reduceChildren({}, (acc, control, name) => {       (acc as any)[name] = (control as any).getRawValue();       return acc;     }) as any;   }    /** @internal */   override _syncPendingControls(): boolean {     let subtreeUpdated = this._reduceChildren(false, (updated: boolean, child) => {       return child._syncPendingControls() ? true : updated;     });     if (subtreeUpdated) this.updateValueAndValidity({onlySelf: true});     return subtreeUpdated;   }    /** @internal */   override _forEachChild(cb: (v: any, k: any) => void): void {     Object.keys(this.controls).forEach(key => {       // The list of controls can change (for ex. controls might be removed) while the loop       // is running (as a result of invoking Forms API in `valueChanges` subscription), so we       // have to null check before invoking the callback.       const control = (this.controls as any)[key];       control && cb(control, key);     });   }    /** @internal */   _setUpControls(): void {     this._forEachChild((control) => {       control.setParent(this);       control._registerOnCollectionChange(this._onCollectionChange);     });   }    /** @internal */   override _updateValue(): void {     (this as {value: any}).value = this._reduceValue();   }    /** @internal */   override _anyControls(condition: (c: AbstractControl) => boolean): boolean {     for (const [controlName, control] of Object.entries(this.controls)) {       if (this.contains(controlName as any) && condition(control as any)) {         return true;       }     }     return false;   }    /** @internal */   _reduceValue(): Partial<TControl> {     let acc: Partial<TControl> = {};     return this._reduceChildren(acc, (acc, control, name) => {       if (control.enabled || this.disabled) {         acc[name] = control.value;       }       return acc;     });   }    /** @internal */   _reduceChildren<T, K extends keyof TControl>(       initValue: T, fn: (acc: T, control: TControl[K], name: K) => T): T {     let res = initValue;     this._forEachChild((control: TControl[K], name: K) => {       res = fn(res, control, name);     });     return res;   }    /** @internal */   override _allControlsDisabled(): boolean {     for (const controlName of (Object.keys(this.controls) as Array<keyof TControl>)) {       if ((this.controls as any)[controlName].enabled) {         return false;       }     }     return Object.keys(this.controls).length > 0 || this.disabled;   }    /** @internal */   override _find(name: string|number): AbstractControl|null {     return this.controls.hasOwnProperty(name as string) ?         (this.controls as any)[name as keyof TControl] :         null;   } }  interface UntypedFormGroupCtor {   new(controls: {[key: string]: AbstractControl},       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormGroup;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormGroup<any>; }  /**  * UntypedFormGroup is a non-strongly-typed version of @see FormGroup.  */ export type UntypedFormGroup = FormGroup<any>;  export const UntypedFormGroup: UntypedFormGroupCtor = FormGroup;  /**  * @description  * Asserts that the given control is an instance of `FormGroup`  *  * @publicApi  */ export const isFormGroup = (control: unknown): control is FormGroup => control instanceof FormGroup;  /**  * Tracks the value and validity state of a collection of `FormControl` instances, each of which has  * the same value type.  *  * `FormRecord` is very similar to {@link FormGroup}, except it can be used with a dynamic keys,  * with controls added and removed as needed.  *  * `FormRecord` accepts one generic argument, which describes the type of the controls it contains.  *  * @usageNotes  *  * ```  * let numbers = new FormRecord({bill: new FormControl('415-123-456')});  * numbers.addControl('bob', new FormControl('415-234-567'));  * numbers.removeControl('bill');  * ```  *  * @publicApi  */ export class FormRecord<TControl extends AbstractControl = AbstractControl> extends     FormGroup<{[key: string]: TControl}> {}  export interface FormRecord<TControl> {   /**    * Registers a control with the records's list of controls.    *    * See `FormGroup#registerControl` for additional information.    */   registerControl(name: string, control: TControl): TControl;    /**    * Add a control to this group.    *    * See `FormGroup#addControl` for additional information.    */   addControl(name: string, control: TControl, options?: {emitEvent?: boolean}): void;    /**    * Remove a control from this group.    *    * See `FormGroup#removeControl` for additional information.    */   removeControl(name: string, options?: {emitEvent?: boolean}): void;    /**    * Replace an existing control.    *    * See `FormGroup#setControl` for additional information.    */   setControl(name: string, control: TControl, options?: {emitEvent?: boolean}): void;    /**    * Check whether there is an enabled control with the given name in the group.    *    * See `FormGroup#contains` for additional information.    */   contains(controlName: string): boolean;    /**    * Sets the value of the `FormRecord`. It accepts an object that matches    * the structure of the group, with control names as keys.    *    * See `FormGroup#setValue` for additional information.    */   setValue(value: {[key: string]: ɵValue<TControl>}, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * Patches the value of the `FormRecord`. It accepts an object with control    * names as keys, and does its best to match the values to the correct controls    * in the group.    *    * See `FormGroup#patchValue` for additional information.    */   patchValue(value: {[key: string]: ɵValue<TControl>}, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * Resets the `FormRecord`, marks all descendants `pristine` and `untouched` and sets    * the value of all descendants to null.    *    * See `FormGroup#reset` for additional information.    */   reset(value?: {[key: string]: ɵValue<TControl>}, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * The aggregate value of the `FormRecord`, including any disabled controls.    *    * See `FormGroup#getRawValue` for additional information.    */   getRawValue(): {[key: string]: ɵRawValue<TControl>}; }  /**  * @description  * Asserts that the given control is an instance of `FormRecord`  *  * @publicApi  */ export const isFormRecord = (control: unknown): control is FormRecord =>     control instanceof FormRecord; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Inject, InjectionToken, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors'; import {AbstractControl} from '../model/abstract_model'; import {FormArray} from '../model/form_array'; import {FormControl} from '../model/form_control'; import {FormGroup} from '../model/form_group'; import {getControlAsyncValidators, getControlValidators, mergeValidators} from '../validators';  import {AbstractControlDirective} from './abstract_control_directive'; import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; import {BuiltInControlValueAccessor, ControlValueAccessor} from './control_value_accessor'; import {DefaultValueAccessor} from './default_value_accessor'; import {NgControl} from './ng_control'; import {FormArrayName} from './reactive_directives/form_group_name'; import {ngModelWarning} from './reactive_errors'; import {AsyncValidatorFn, Validator, ValidatorFn} from './validators';  /**  * Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of  * whether the control is disabled or enabled.  *  * @see `FormsModule.withConfig`  */ export const CALL_SET_DISABLED_STATE = new InjectionToken(     'CallSetDisabledState', {providedIn: 'root', factory: () => setDisabledStateDefault});  /**  * The type for CALL_SET_DISABLED_STATE. If `always`, then ControlValueAccessor will always call  * `setDisabledState` when attached, which is the most correct behavior. Otherwise, it will only be  * called when disabled, which is the legacy behavior for compatibility.  *  * @publicApi  * @see `FormsModule.withConfig`  */ export type SetDisabledStateOption = 'whenDisabledForLegacyCode'|'always';  /**  * Whether to use the fixed setDisabledState behavior by default.  */ export const setDisabledStateDefault: SetDisabledStateOption = 'always';  export function controlPath(name: string|null, parent: ControlContainer): string[] {   return [...parent.path!, name!]; }  /**  * Links a Form control and a Form directive by setting up callbacks (such as `onChange`) on both  * instances. This function is typically invoked when form directive is being initialized.  *  * @param control Form control instance that should be linked.  * @param dir Directive that should be linked with a given control.  */ export function setUpControl(     control: FormControl, dir: NgControl,     callSetDisabledState: SetDisabledStateOption = setDisabledStateDefault): void {   if (typeof ngDevMode === 'undefined' || ngDevMode) {     if (!control) _throwError(dir, 'Cannot find control with');     if (!dir.valueAccessor) _throwMissingValueAccessorError(dir);   }    setUpValidators(control, dir);    dir.valueAccessor!.writeValue(control.value);    // The legacy behavior only calls the CVA's `setDisabledState` if the control is disabled.   // If the `callSetDisabledState` option is set to `always`, then this bug is fixed and   // the method is always called.   if (control.disabled || callSetDisabledState === 'always') {     dir.valueAccessor!.setDisabledState?.(control.disabled);   }    setUpViewChangePipeline(control, dir);   setUpModelChangePipeline(control, dir);    setUpBlurPipeline(control, dir);    setUpDisabledChangeHandler(control, dir); }  /**  * Reverts configuration performed by the `setUpControl` control function.  * Effectively disconnects form control with a given form directive.  * This function is typically invoked when corresponding form directive is being destroyed.  *  * @param control Form control which should be cleaned up.  * @param dir Directive that should be disconnected from a given control.  * @param validateControlPresenceOnChange Flag that indicates whether onChange handler should  *     contain asserts to verify that it's not called once directive is destroyed. We need this flag  *     to avoid potentially breaking changes caused by better control cleanup introduced in #39235.  */ export function cleanUpControl(     control: FormControl|null, dir: NgControl,     validateControlPresenceOnChange: boolean = true): void {   const noop = () => {     if (validateControlPresenceOnChange && (typeof ngDevMode === 'undefined' || ngDevMode)) {       _noControlError(dir);     }   };    // The `valueAccessor` field is typically defined on FromControl and FormControlName directive   // instances and there is a logic in `selectValueAccessor` function that throws if it's not the   // case. We still check the presence of `valueAccessor` before invoking its methods to make sure   // that cleanup works correctly if app code or tests are setup to ignore the error thrown from   // `selectValueAccessor`. See https://github.com/angular/angular/issues/40521.   if (dir.valueAccessor) {     dir.valueAccessor.registerOnChange(noop);     dir.valueAccessor.registerOnTouched(noop);   }    cleanUpValidators(control, dir);    if (control) {     dir._invokeOnDestroyCallbacks();     control._registerOnCollectionChange(() => {});   } }  function registerOnValidatorChange<V>(validators: (V|Validator)[], onChange: () => void): void {   validators.forEach((validator: V|Validator) => {     if ((<Validator>validator).registerOnValidatorChange)       (<Validator>validator).registerOnValidatorChange!(onChange);   }); }  /**  * Sets up disabled change handler function on a given form control if ControlValueAccessor  * associated with a given directive instance supports the `setDisabledState` call.  *  * @param control Form control where disabled change handler should be setup.  * @param dir Corresponding directive instance associated with this control.  */ export function setUpDisabledChangeHandler(control: FormControl, dir: NgControl): void {   if (dir.valueAccessor!.setDisabledState) {     const onDisabledChange = (isDisabled: boolean) => {       dir.valueAccessor!.setDisabledState!(isDisabled);     };     control.registerOnDisabledChange(onDisabledChange);      // Register a callback function to cleanup disabled change handler     // from a control instance when a directive is destroyed.     dir._registerOnDestroy(() => {       control._unregisterOnDisabledChange(onDisabledChange);     });   } }  /**  * Sets up sync and async directive validators on provided form control.  * This function merges validators from the directive into the validators of the control.  *  * @param control Form control where directive validators should be setup.  * @param dir Directive instance that contains validators to be setup.  */ export function setUpValidators(control: AbstractControl, dir: AbstractControlDirective): void {   const validators = getControlValidators(control);   if (dir.validator !== null) {     control.setValidators(mergeValidators<ValidatorFn>(validators, dir.validator));   } else if (typeof validators === 'function') {     // If sync validators are represented by a single validator function, we force the     // `Validators.compose` call to happen by executing the `setValidators` function with     // an array that contains that function. We need this to avoid possible discrepancies in     // validators behavior, so sync validators are always processed by the `Validators.compose`.     // Note: we should consider moving this logic inside the `setValidators` function itself, so we     // have consistent behavior on AbstractControl API level. The same applies to the async     // validators logic below.     control.setValidators([validators]);   }    const asyncValidators = getControlAsyncValidators(control);   if (dir.asyncValidator !== null) {     control.setAsyncValidators(         mergeValidators<AsyncValidatorFn>(asyncValidators, dir.asyncValidator));   } else if (typeof asyncValidators === 'function') {     control.setAsyncValidators([asyncValidators]);   }    // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4   const onValidatorChange = () => control.updateValueAndValidity();   registerOnValidatorChange<ValidatorFn>(dir._rawValidators, onValidatorChange);   registerOnValidatorChange<AsyncValidatorFn>(dir._rawAsyncValidators, onValidatorChange); }  /**  * Cleans up sync and async directive validators on provided form control.  * This function reverts the setup performed by the `setUpValidators` function, i.e.  * removes directive-specific validators from a given control instance.  *  * @param control Form control from where directive validators should be removed.  * @param dir Directive instance that contains validators to be removed.  * @returns true if a control was updated as a result of this action.  */ export function cleanUpValidators(     control: AbstractControl|null, dir: AbstractControlDirective): boolean {   let isControlUpdated = false;   if (control !== null) {     if (dir.validator !== null) {       const validators = getControlValidators(control);       if (Array.isArray(validators) && validators.length > 0) {         // Filter out directive validator function.         const updatedValidators = validators.filter((validator) => validator !== dir.validator);         if (updatedValidators.length !== validators.length) {           isControlUpdated = true;           control.setValidators(updatedValidators);         }       }     }      if (dir.asyncValidator !== null) {       const asyncValidators = getControlAsyncValidators(control);       if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {         // Filter out directive async validator function.         const updatedAsyncValidators =             asyncValidators.filter((asyncValidator) => asyncValidator !== dir.asyncValidator);         if (updatedAsyncValidators.length !== asyncValidators.length) {           isControlUpdated = true;           control.setAsyncValidators(updatedAsyncValidators);         }       }     }   }    // Clear onValidatorChange callbacks by providing a noop function.   const noop = () => {};   registerOnValidatorChange<ValidatorFn>(dir._rawValidators, noop);   registerOnValidatorChange<AsyncValidatorFn>(dir._rawAsyncValidators, noop);    return isControlUpdated; }  function setUpViewChangePipeline(control: FormControl, dir: NgControl): void {   dir.valueAccessor!.registerOnChange((newValue: any) => {     control._pendingValue = newValue;     control._pendingChange = true;     control._pendingDirty = true;      if (control.updateOn === 'change') updateControl(control, dir);   }); }  function setUpBlurPipeline(control: FormControl, dir: NgControl): void {   dir.valueAccessor!.registerOnTouched(() => {     control._pendingTouched = true;      if (control.updateOn === 'blur' && control._pendingChange) updateControl(control, dir);     if (control.updateOn !== 'submit') control.markAsTouched();   }); }  function updateControl(control: FormControl, dir: NgControl): void {   if (control._pendingDirty) control.markAsDirty();   control.setValue(control._pendingValue, {emitModelToViewChange: false});   dir.viewToModelUpdate(control._pendingValue);   control._pendingChange = false; }  function setUpModelChangePipeline(control: FormControl, dir: NgControl): void {   const onChange = (newValue?: any, emitModelEvent?: boolean) => {     // control -> view     dir.valueAccessor!.writeValue(newValue);      // control -> ngModel     if (emitModelEvent) dir.viewToModelUpdate(newValue);   };   control.registerOnChange(onChange);    // Register a callback function to cleanup onChange handler   // from a control instance when a directive is destroyed.   dir._registerOnDestroy(() => {     control._unregisterOnChange(onChange);   }); }  /**  * Links a FormGroup or FormArray instance and corresponding Form directive by setting up validators  * present in the view.  *  * @param control FormGroup or FormArray instance that should be linked.  * @param dir Directive that provides view validators.  */ export function setUpFormContainer(     control: FormGroup|FormArray, dir: AbstractFormGroupDirective|FormArrayName) {   if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode))     _throwError(dir, 'Cannot find control with');   setUpValidators(control, dir); }  /**  * Reverts the setup performed by the `setUpFormContainer` function.  *  * @param control FormGroup or FormArray instance that should be cleaned up.  * @param dir Directive that provided view validators.  * @returns true if a control was updated as a result of this action.  */ export function cleanUpFormContainer(     control: FormGroup|FormArray, dir: AbstractFormGroupDirective|FormArrayName): boolean {   return cleanUpValidators(control, dir); }  function _noControlError(dir: NgControl) {   return _throwError(dir, 'There is no FormControl instance attached to form control element with'); }  function _throwError(dir: AbstractControlDirective, message: string): void {   const messageEnd = _describeControlLocation(dir);   throw new Error(`${message} ${messageEnd}`); }  function _describeControlLocation(dir: AbstractControlDirective): string {   const path = dir.path;   if (path && path.length > 1) return `path: '${path.join(' -> ')}'`;   if (path?.[0]) return `name: '${path}'`;   return 'unspecified name attribute'; }  function _throwMissingValueAccessorError(dir: AbstractControlDirective) {   const loc = _describeControlLocation(dir);   throw new RuntimeError(       RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR, `No value accessor for form control ${loc}.`); }  function _throwInvalidValueAccessorError(dir: AbstractControlDirective) {   const loc = _describeControlLocation(dir);   throw new RuntimeError(       RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED,       `Value accessor was not provided as an array for form control with ${loc}. ` +           `Check that the \\`NG_VALUE_ACCESSOR\\` token is configured as a \\`multi: true\\` provider.`); }  export function isPropertyUpdated(changes: {[key: string]: any}, viewModel: any): boolean {   if (!changes.hasOwnProperty('model')) return false;   const change = changes['model'];    if (change.isFirstChange()) return true;   return !Object.is(viewModel, change.currentValue); }  export function isBuiltInAccessor(valueAccessor: ControlValueAccessor): boolean {   // Check if a given value accessor is an instance of a class that directly extends   // `BuiltInControlValueAccessor` one.   return Object.getPrototypeOf(valueAccessor.constructor) === BuiltInControlValueAccessor; }  export function syncPendingControls(form: FormGroup, directives: Set<NgControl>|NgControl[]): void {   form._syncPendingControls();   directives.forEach((dir: NgControl) => {     const control = dir.control as FormControl;     if (control.updateOn === 'submit' && control._pendingChange) {       dir.viewToModelUpdate(control._pendingValue);       control._pendingChange = false;     }   }); }  // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented export function selectValueAccessor(     dir: NgControl, valueAccessors: ControlValueAccessor[]): ControlValueAccessor|null {   if (!valueAccessors) return null;    if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode))     _throwInvalidValueAccessorError(dir);    let defaultAccessor: ControlValueAccessor|undefined = undefined;   let builtinAccessor: ControlValueAccessor|undefined = undefined;   let customAccessor: ControlValueAccessor|undefined = undefined;    valueAccessors.forEach((v: ControlValueAccessor) => {     if (v.constructor === DefaultValueAccessor) {       defaultAccessor = v;     } else if (isBuiltInAccessor(v)) {       if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))         _throwError(dir, 'More than one built-in value accessor matches form control with');       builtinAccessor = v;     } else {       if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))         _throwError(dir, 'More than one custom value accessor matches form control with');       customAccessor = v;     }   });    if (customAccessor) return customAccessor;   if (builtinAccessor) return builtinAccessor;   if (defaultAccessor) return defaultAccessor;    if (typeof ngDevMode === 'undefined' || ngDevMode) {     _throwError(dir, 'No valid value accessor for form control with');   }   return null; }  export function removeListItem<T>(list: T[], el: T): void {   const index = list.indexOf(el);   if (index > -1) list.splice(index, 1); }  // TODO(kara): remove after deprecation period export function _ngModelWarning(     name: string, type: {_ngModelWarningSentOnce: boolean},     instance: {_ngModelWarningSent: boolean}, warningConfig: string|null) {   if (warningConfig === 'never') return;    if (((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce) ||       (warningConfig === 'always' && !instance._ngModelWarningSent)) {     console.warn(ngModelWarning(name));     type._ngModelWarningSentOnce = true;     instance._ngModelWarningSent = true;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AfterViewInit, Directive, EventEmitter, forwardRef, Inject, Input, Optional, Provider, Self} from '@angular/core';  import {AbstractControl, FormHooks} from '../model/abstract_model'; import {FormControl} from '../model/form_control'; import {FormGroup} from '../model/form_group'; import {composeAsyncValidators, composeValidators, NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators';  import {ControlContainer} from './control_container'; import {Form} from './form_interface'; import {NgControl} from './ng_control'; import {NgModel} from './ng_model'; import {NgModelGroup} from './ng_model_group'; import {CALL_SET_DISABLED_STATE, SetDisabledStateOption, setUpControl, setUpFormContainer, syncPendingControls} from './shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from './validators';  const formDirectiveProvider: Provider = {   provide: ControlContainer,   useExisting: forwardRef(() => NgForm) };  const resolvedPromise = (() => Promise.resolve())();  /**  * @description  * Creates a top-level `FormGroup` instance and binds it to a form  * to track aggregate form value and validation status.  *  * As soon as you import the `FormsModule`, this directive becomes active by default on  * all `<form>` tags.  You don't need to add a special selector.  *  * You optionally export the directive into a local template variable using `ngForm` as the key  * (ex: `#myForm=\"ngForm\"`). This is optional, but useful.  Many properties from the underlying  * `FormGroup` instance are duplicated on the directive itself, so a reference to it  * gives you access to the aggregate value and validity status of the form, as well as  * user interaction properties like `dirty` and `touched`.  *  * To register child controls with the form, use `NgModel` with a `name`  * attribute. You may use `NgModelGroup` to create sub-groups within the form.  *  * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has  * triggered a form submission. The `ngSubmit` event emits the original form  * submission event.  *  * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.  * To import the `FormsModule` but skip its usage in some forms,  * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`  * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is  * unnecessary because the `<form>` tags are inert. In that case, you would  * refrain from using the `formGroup` directive.  *  * @usageNotes  *  * ### Listening for form submission  *  * The following example shows how to capture the form values from the \"ngSubmit\" event.  *  * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}  *  * ### Setting the update options  *  * The following example shows you how to change the \"updateOn\" option from its default using  * ngFormOptions.  *  * ```html  * <form [ngFormOptions]=\"{updateOn: 'blur'}\">  *    <input name=\"one\" ngModel>  <!-- this ngModel will update on blur -->  * </form>  * ```  *  * ### Native DOM validation UI  *  * In order to prevent the native DOM form validation UI from interfering with Angular's form  * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever  * `FormModule` or `ReactiveFormModule` are imported into the application.  * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the  * `ngNativeValidate` attribute to the `<form>` element:  *  * ```html  * <form ngNativeValidate>  *   ...  * </form>  * ```  *  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',   providers: [formDirectiveProvider],   host: {'(submit)': 'onSubmit($event)', '(reset)': 'onReset()'},   outputs: ['ngSubmit'],   exportAs: 'ngForm' }) export class NgForm extends ControlContainer implements Form, AfterViewInit {   /**    * @description    * Returns whether the form submission has been triggered.    */   public readonly submitted: boolean = false;    private _directives = new Set<NgModel>();    /**    * @description    * The `FormGroup` instance created for this form.    */   form: FormGroup;    /**    * @description    * Event emitter for the \"ngSubmit\" event    */   ngSubmit = new EventEmitter();    /**    * @description    * Tracks options for the `NgForm` instance.    *    * **updateOn**: Sets the default `updateOn` value for all child `NgModels` below it    * unless explicitly set by a child `NgModel` using `ngModelOptions`). Defaults to 'change'.    * Possible values: `'change'` | `'blur'` | `'submit'`.    *    */   // TODO(issue/24571): remove '!'.   @Input('ngFormOptions') options!: {updateOn?: FormHooks};    constructor(       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this.form =         new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));   }    /** @nodoc */   ngAfterViewInit() {     this._setUpdateStrategy();   }    /**    * @description    * The directive instance.    */   override get formDirective(): Form {     return this;   }    /**    * @description    * The internal `FormGroup` instance.    */   override get control(): FormGroup {     return this.form;   }    /**    * @description    * Returns an array representing the path to this group. Because this directive    * always lives at the top level of a form, it is always an empty array.    */   override get path(): string[] {     return [];   }    /**    * @description    * Returns a map of the controls in this group.    */   get controls(): {[key: string]: AbstractControl} {     return this.form.controls;   }    /**    * @description    * Method that sets up the control directive in this group, re-calculates its value    * and validity, and adds the instance to the internal list of directives.    *    * @param dir The `NgModel` directive instance.    */   addControl(dir: NgModel): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       (dir as {control: FormControl}).control =           <FormControl>container.registerControl(dir.name, dir.control);       setUpControl(dir.control, dir, this.callSetDisabledState);       dir.control.updateValueAndValidity({emitEvent: false});       this._directives.add(dir);     });   }    /**    * @description    * Retrieves the `FormControl` instance from the provided `NgModel` directive.    *    * @param dir The `NgModel` directive instance.    */   getControl(dir: NgModel): FormControl {     return <FormControl>this.form.get(dir.path);   }    /**    * @description    * Removes the `NgModel` instance from the internal list of directives    *    * @param dir The `NgModel` directive instance.    */   removeControl(dir: NgModel): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       if (container) {         container.removeControl(dir.name);       }       this._directives.delete(dir);     });   }    /**    * @description    * Adds a new `NgModelGroup` directive instance to the form.    *    * @param dir The `NgModelGroup` directive instance.    */   addFormGroup(dir: NgModelGroup): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       const group = new FormGroup({});       setUpFormContainer(group, dir);       container.registerControl(dir.name, group);       group.updateValueAndValidity({emitEvent: false});     });   }    /**    * @description    * Removes the `NgModelGroup` directive instance from the form.    *    * @param dir The `NgModelGroup` directive instance.    */   removeFormGroup(dir: NgModelGroup): void {     resolvedPromise.then(() => {       const container = this._findContainer(dir.path);       if (container) {         container.removeControl(dir.name);       }     });   }    /**    * @description    * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance    *    * @param dir The `NgModelGroup` directive instance.    */   getFormGroup(dir: NgModelGroup): FormGroup {     return <FormGroup>this.form.get(dir.path);   }    /**    * Sets the new value for the provided `NgControl` directive.    *    * @param dir The `NgControl` directive instance.    * @param value The new value for the directive's control.    */   updateModel(dir: NgControl, value: any): void {     resolvedPromise.then(() => {       const ctrl = <FormControl>this.form.get(dir.path!);       ctrl.setValue(value);     });   }    /**    * @description    * Sets the value for this `FormGroup`.    *    * @param value The new value    */   setValue(value: {[key: string]: any}): void {     this.control.setValue(value);   }    /**    * @description    * Method called when the \"submit\" event is triggered on the form.    * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.    *    * @param $event The \"submit\" event object    */   onSubmit($event: Event): boolean {     (this as {submitted: boolean}).submitted = true;     syncPendingControls(this.form, this._directives);     this.ngSubmit.emit($event);     // Forms with `method=\"dialog\"` have some special behavior     // that won't reload the page and that shouldn't be prevented.     return ($event?.target as HTMLFormElement | null)?.method === 'dialog';   }    /**    * @description    * Method called when the \"reset\" event is triggered on the form.    */   onReset(): void {     this.resetForm();   }    /**    * @description    * Resets the form to an initial value and resets its submitted status.    *    * @param value The new value for the form.    */   resetForm(value: any = undefined): void {     this.form.reset(value);     (this as {submitted: boolean}).submitted = false;   }    private _setUpdateStrategy() {     if (this.options && this.options.updateOn != null) {       this.form._updateOn = this.options.updateOn;     }   }    private _findContainer(path: string[]): FormGroup {     path.pop();     return path.length ? <FormGroup>this.form.get(path) : this.form;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  export function removeListItem<T>(list: T[], el: T): void {   const index = list.indexOf(el);   if (index > -1) list.splice(index, 1); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AsyncValidatorFn, ValidatorFn} from '../directives/validators'; import {removeListItem} from '../util';  import {AbstractControl, AbstractControlOptions, isOptionsObj, pickAsyncValidators, pickValidators} from './abstract_model';  /**  * FormControlState is a boxed form value. It is an object with a `value` key and a `disabled` key.  *  * @publicApi  */ export interface FormControlState<T> {   value: T;   disabled: boolean; }  /**  * Interface for options provided to a `FormControl`.  *  * This interface extends all options from {@link AbstractControlOptions}, plus some options  * unique to `FormControl`.  *  * @publicApi  */ export interface FormControlOptions extends AbstractControlOptions {   /**    * @description    * Whether to use the initial value used to construct the `FormControl` as its default value    * as well. If this option is false or not provided, the default value of a FormControl is `null`.    * When a FormControl is reset without an explicit value, its value reverts to    * its default value.    */   nonNullable?: boolean;    /**    * @deprecated Use `nonNullable` instead.    */   initialValueIsDefault?: boolean; }  /**  * Tracks the value and validation status of an individual form control.  *  * This is one of the four fundamental building blocks of Angular forms, along with  * `FormGroup`, `FormArray` and `FormRecord`. It extends the `AbstractControl` class that  * implements most of the base functionality for accessing the value, validation status,  * user interactions and events.  *  * `FormControl` takes a single generic argument, which describes the type of its value. This  * argument always implicitly includes `null` because the control can be reset. To change this  * behavior, set `nonNullable` or see the usage notes below.  *  * See [usage examples below](#usage-notes).  *  * @see `AbstractControl`  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see [Usage Notes](#usage-notes)  *  * @publicApi  *  * @overriddenImplementation ɵFormControlCtor  *  * @usageNotes  *  * ### Initializing Form Controls  *  * Instantiate a `FormControl`, with an initial value.  *  * ```ts  * const control = new FormControl('some value');  * console.log(control.value);     // 'some value'  * ```  *  * The following example initializes the control with a form state object. The `value`  * and `disabled` keys are required in this case.  *  * ```ts  * const control = new FormControl({ value: 'n/a', disabled: true });  * console.log(control.value);     // 'n/a'  * console.log(control.status);    // 'DISABLED'  * ```  *  * The following example initializes the control with a synchronous validator.  *  * ```ts  * const control = new FormControl('', Validators.required);  * console.log(control.value);      // ''  * console.log(control.status);     // 'INVALID'  * ```  *  * The following example initializes the control using an options object.  *  * ```ts  * const control = new FormControl('', {  *    validators: Validators.required,  *    asyncValidators: myAsyncValidator  * });  * ```  *  * ### The single type argument  *  * `FormControl` accepts a generic argument, which describes the type of its value.  * In most cases, this argument will be inferred.  *  * If you are initializing the control to `null`, or you otherwise wish to provide a  * wider type, you may specify the argument explicitly:  *  * ```  * let fc = new FormControl<string|null>(null);  * fc.setValue('foo');  * ```  *  * You might notice that `null` is always added to the type of the control.  * This is because the control will become `null` if you call `reset`. You can change  * this behavior by setting `{nonNullable: true}`.  *  * ### Configure the control to update on a blur event  *  * Set the `updateOn` option to `'blur'` to update on the blur `event`.  *  * ```ts  * const control = new FormControl('', { updateOn: 'blur' });  * ```  *  * ### Configure the control to update on a submit event  *  * Set the `updateOn` option to `'submit'` to update on a submit `event`.  *  * ```ts  * const control = new FormControl('', { updateOn: 'submit' });  * ```  *  * ### Reset the control back to a specific value  *  * You reset to a specific form state by passing through a standalone  * value or a form state object that contains both a value and a disabled state  * (these are the only two properties that cannot be calculated).  *  * ```ts  * const control = new FormControl('Nancy');  *  * console.log(control.value); // 'Nancy'  *  * control.reset('Drew');  *  * console.log(control.value); // 'Drew'  * ```  *  * ### Reset the control to its initial value  *  * If you wish to always reset the control to its initial value (instead of null),  * you can pass the `nonNullable` option:  *  * ```  * const control = new FormControl('Nancy', {nonNullable: true});  *  * console.log(control.value); // 'Nancy'  *  * control.reset();  *  * console.log(control.value); // 'Nancy'  * ```  *  * ### Reset the control back to an initial value and disabled  *  * ```  * const control = new FormControl('Nancy');  *  * console.log(control.value); // 'Nancy'  * console.log(control.status); // 'VALID'  *  * control.reset({ value: 'Drew', disabled: true });  *  * console.log(control.value); // 'Drew'  * console.log(control.status); // 'DISABLED'  * ```  */ export interface FormControl<TValue = any> extends AbstractControl<TValue> {   /**    * The default value of this FormControl, used whenever the control is reset without an explicit    * value. See {@link FormControlOptions#nonNullable} for more information on configuring    * a default value.    */   readonly defaultValue: TValue;    /** @internal */   _onChange: Function[];    /**    * This field holds a pending value that has not yet been applied to the form's value.    * @internal    */   _pendingValue: TValue;    /** @internal */   _pendingChange: boolean;    /**    * Sets a new value for the form control.    *    * @param value The new value for the control.    * @param options Configuration options that determine how the control propagates changes    * and emits events when the value changes.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control value is updated.    * When false, no events are emitted.    * * `emitModelToViewChange`: When true or not supplied  (the default), each change triggers an    * `onChange` event to    * update the view.    * * `emitViewToModelChange`: When true or not supplied (the default), each change triggers an    * `ngModelChange`    * event to update the model.    *    */   setValue(value: TValue, options?: {     onlySelf?: boolean,     emitEvent?: boolean,     emitModelToViewChange?: boolean,     emitViewToModelChange?: boolean   }): void;    /**    * Patches the value of a control.    *    * This function is functionally the same as {@link FormControl#setValue setValue} at this level.    * It exists for symmetry with {@link FormGroup#patchValue patchValue} on `FormGroups` and    * `FormArrays`, where it does behave differently.    *    * @see `setValue` for options    */   patchValue(value: TValue, options?: {     onlySelf?: boolean,     emitEvent?: boolean,     emitModelToViewChange?: boolean,     emitViewToModelChange?: boolean   }): void;    /**    * Resets the form control, marking it `pristine` and `untouched`, and resetting    * the value. The new value will be the provided value (if passed), `null`, or the initial value    * if `nonNullable` was set in the constructor via {@link FormControlOptions}.    *    * ```ts    * // By default, the control will reset to null.    * const dog = new FormControl('spot');    * dog.reset(); // dog.value is null    *    * // If this flag is set, the control will instead reset to the initial value.    * const cat = new FormControl('tabby', {nonNullable: true});    * cat.reset(); // cat.value is \"tabby\"    *    * // A value passed to reset always takes precedence.    * const fish = new FormControl('finn', {nonNullable: true});    * fish.reset('bubble'); // fish.value is \"bubble\"    * ```    *    * @param formState Resets the control with an initial value,    * or an object that defines the initial value and disabled state.    *    * @param options Configuration options that determine how the control propagates changes    * and emits events after the value changes.    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is    * false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is reset.    * When false, no events are emitted.    *    */   reset(formState?: TValue|FormControlState<TValue>, options?: {     onlySelf?: boolean,     emitEvent?: boolean   }): void;    /**    * For a simple FormControl, the raw value is equivalent to the value.    */   getRawValue(): TValue;    /**    * @internal    */   _updateValue(): void;    /**    * @internal    */   _anyControls(condition: (c: AbstractControl) => boolean): boolean;    /**    * @internal    */   _allControlsDisabled(): boolean;     /**    * Register a listener for change events.    *    * @param fn The method that is called when the value changes    */   registerOnChange(fn: Function): void;     /**    * Internal function to unregister a change events listener.    * @internal    */   _unregisterOnChange(fn: (value?: any, emitModelEvent?: boolean) => void): void;    /**    * Register a listener for disabled events.    *    * @param fn The method that is called when the disabled status changes.    */   registerOnDisabledChange(fn: (isDisabled: boolean) => void): void;    /**    * Internal function to unregister a disabled event listener.    * @internal    */   _unregisterOnDisabledChange(fn: (isDisabled: boolean) => void): void;    /**    * @internal    */   _forEachChild(cb: (c: AbstractControl) => void): void;    /** @internal */   _syncPendingControls(): boolean; }  // This internal interface is present to avoid a naming clash, resulting in the wrong `FormControl` // symbol being used. type FormControlInterface<TValue = any> = FormControl<TValue>;  /**  * Various available constructors for `FormControl`.  * Do not use this interface directly. Instead, use `FormControl`:  * ```  * const fc = new FormControl('foo');  * ```  * This symbol is prefixed with ɵ to make plain that it is an internal symbol.  */ export interface ɵFormControlCtor {   /**    * Construct a FormControl with no initial value or validators.    */   new(): FormControl<any>;    /**    * Creates a new `FormControl` instance.    *    * @param formState Initializes the control with an initial value,    * or an object that defines the initial value and disabled state.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or a `FormControlOptions` object that contains validation functions    * and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions    */   new<T = any>(value: FormControlState<T>|T, opts: FormControlOptions&{nonNullable: true}):       FormControl<T>;    /**    * @deprecated Use `nonNullable` instead.    */   new<T = any>(value: FormControlState<T>|T, opts: FormControlOptions&{     initialValueIsDefault: true   }): FormControl<T>;    /**    * @deprecated When passing an `options` argument, the `asyncValidator` argument has no effect.    */   new<T = any>(       value: FormControlState<T>|T, opts: FormControlOptions,       asyncValidator: AsyncValidatorFn|AsyncValidatorFn[]): FormControl<T|null>;    new<T = any>(       value: FormControlState<T>|T,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl<T|null>;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormControl<any>; }  function isFormControlState(formState: unknown): formState is FormControlState<unknown> {   return typeof formState === 'object' && formState !== null &&       Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState; }  export const FormControl: ɵFormControlCtor =     (class FormControl<TValue = any> extends AbstractControl<          TValue> implements FormControlInterface<TValue> {       /** @publicApi */       public readonly defaultValue: TValue = null as unknown as TValue;        /** @internal */       _onChange: Array<Function> = [];        /** @internal */       _pendingValue!: TValue;        /** @internal */       _pendingChange: boolean = false;        constructor(           // formState and defaultValue will only be null if T is nullable           formState: FormControlState<TValue>|TValue = null as unknown as TValue,           validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,           asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null) {         super(             pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));         this._applyFormState(formState);         this._setUpdateStrategy(validatorOrOpts);         this._initObservables();         this.updateValueAndValidity({           onlySelf: true,           // If `asyncValidator` is present, it will trigger control status change from `PENDING` to           // `VALID` or `INVALID`.           // The status should be broadcasted via the `statusChanges` observable, so we set           // `emitEvent` to `true` to allow that during the control creation process.           emitEvent: !!this.asyncValidator         });         if (isOptionsObj(validatorOrOpts) &&             (validatorOrOpts.nonNullable || validatorOrOpts.initialValueIsDefault)) {           if (isFormControlState(formState)) {             this.defaultValue = formState.value;           } else {             this.defaultValue = formState;           }         }       }        override setValue(value: TValue, options: {         onlySelf?: boolean,         emitEvent?: boolean,         emitModelToViewChange?: boolean,         emitViewToModelChange?: boolean       } = {}): void {         (this as {value: TValue}).value = this._pendingValue = value;         if (this._onChange.length && options.emitModelToViewChange !== false) {           this._onChange.forEach(               (changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));         }         this.updateValueAndValidity(options);       }        override patchValue(value: TValue, options: {         onlySelf?: boolean,         emitEvent?: boolean,         emitModelToViewChange?: boolean,         emitViewToModelChange?: boolean       } = {}): void {         this.setValue(value, options);       }        override reset(           formState: TValue|FormControlState<TValue> = this.defaultValue,           options: {onlySelf?: boolean, emitEvent?: boolean} = {}): void {         this._applyFormState(formState);         this.markAsPristine(options);         this.markAsUntouched(options);         this.setValue(this.value, options);         this._pendingChange = false;       }        /**  @internal */       override _updateValue(): void {}        /**  @internal */       override _anyControls(condition: (c: AbstractControl) => boolean): boolean {         return false;       }        /**  @internal */       override _allControlsDisabled(): boolean {         return this.disabled;       }        registerOnChange(fn: Function): void {         this._onChange.push(fn);       }        /** @internal */       _unregisterOnChange(fn: (value?: any, emitModelEvent?: boolean) => void): void {         removeListItem(this._onChange, fn);       }        registerOnDisabledChange(fn: (isDisabled: boolean) => void): void {         this._onDisabledChange.push(fn);       }        /** @internal */       _unregisterOnDisabledChange(fn: (isDisabled: boolean) => void): void {         removeListItem(this._onDisabledChange, fn);       }        /** @internal */       override _forEachChild(cb: (c: AbstractControl) => void): void {}        /** @internal */       override _syncPendingControls(): boolean {         if (this.updateOn === 'submit') {           if (this._pendingDirty) this.markAsDirty();           if (this._pendingTouched) this.markAsTouched();           if (this._pendingChange) {             this.setValue(this._pendingValue, {onlySelf: true, emitModelToViewChange: false});             return true;           }         }         return false;       }        private _applyFormState(formState: FormControlState<TValue>|TValue) {         if (isFormControlState(formState)) {           (this as {value: TValue}).value = this._pendingValue = formState.value;           formState.disabled ? this.disable({onlySelf: true, emitEvent: false}) :                                this.enable({onlySelf: true, emitEvent: false});         } else {           (this as {value: TValue}).value = this._pendingValue = formState;         }       }     });  interface UntypedFormControlCtor {   new(): UntypedFormControl;    new(formState?: any, validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormControl;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormControl<any>; }  /**  * UntypedFormControl is a non-strongly-typed version of @see FormControl.  */ export type UntypedFormControl = FormControl<any>;  export const UntypedFormControl: UntypedFormControlCtor = FormControl;  /**  * @description  * Asserts that the given control is an instance of `FormControl`  *  * @publicApi  */ export const isFormControl = (control: unknown): control is FormControl =>     control instanceof FormControl; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, OnDestroy, OnInit} from '@angular/core';  import {FormGroup} from '../model/form_group';  import {ControlContainer} from './control_container'; import {Form} from './form_interface'; import {controlPath} from './shared';    /**  * @description  * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.  *  * @publicApi  */ @Directive() export class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {   /**    * @description    * The parent control for the group    *    * @internal    */   // TODO(issue/24571): remove '!'.   _parent!: ControlContainer;    /** @nodoc */   ngOnInit(): void {     this._checkParentType();     // Register the group with its parent group.     this.formDirective!.addFormGroup(this);   }    /** @nodoc */   ngOnDestroy(): void {     if (this.formDirective) {       // Remove the group from its parent group.       this.formDirective.removeFormGroup(this);     }   }    /**    * @description    * The `FormGroup` bound to this directive.    */   override get control(): FormGroup {     return this.formDirective!.getFormGroup(this);   }    /**    * @description    * The path to this group from the top-level directive.    */   override get path(): string[] {     return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);   }    /**    * @description    * The top-level directive for this group if present, otherwise null.    */   override get formDirective(): Form|null {     return this._parent ? this._parent.formDirective : null;   }    /** @internal */   _checkParentType(): void {} } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {formControlNameExample, formGroupNameExample, ngModelGroupExample, ngModelWithFormGroupExample} from './error_examples';   export function modelParentException(): Error {   return new RuntimeError(RuntimeErrorCode.NGMODEL_IN_FORM_GROUP, `     ngModel cannot be used to register form controls with a parent formGroup directive.  Try using     formGroup's partner directive \"formControlName\" instead.  Example:      ${formControlNameExample}      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:      Example:      ${ngModelWithFormGroupExample}`); }  export function formGroupNameException(): Error {   return new RuntimeError(RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME, `     ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.      Option 1: Use formControlName instead of ngModel (reactive strategy):      ${formGroupNameExample}      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):      ${ngModelGroupExample}`); }  export function missingNameException(): Error {   return new RuntimeError(       RuntimeErrorCode.NGMODEL_WITHOUT_NAME,       `If ngModel is used within a form tag, either the name attribute must be set or the form     control must be defined as 'standalone' in ngModelOptions.      Example 1: <input [(ngModel)]=\"person.firstName\" name=\"first\">     Example 2: <input [(ngModel)]=\"person.firstName\" [ngModelOptions]=\"{standalone: true}\">`); }  export function modelGroupParentException(): Error {   return new RuntimeError(RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP, `     ngModelGroup cannot be used with a parent formGroup directive.      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):      ${formGroupNameExample}      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):      ${ngModelGroupExample}`); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Host, Inject, Input, OnDestroy, OnInit, Optional, Self, SkipSelf} from '@angular/core';  import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators';  import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; import {NgForm} from './ng_form'; import {modelGroupParentException} from './template_driven_errors'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from './validators';  export const modelGroupProvider: any = {   provide: ControlContainer,   useExisting: forwardRef(() => NgModelGroup) };  /**  * @description  * Creates and binds a `FormGroup` instance to a DOM element.  *  * This directive can only be used as a child of `NgForm` (within `<form>` tags).  *  * Use this directive to validate a sub-group of your form separately from the  * rest of your form, or if some values in your domain model make more sense  * to consume together in a nested object.  *  * Provide a name for the sub-group and it will become the key  * for the sub-group in the form's full value. If you need direct access, export the directive into  * a local template variable using `ngModelGroup` (ex: `#myGroup=\"ngModelGroup\"`).  *  * @usageNotes  *  * ### Consuming controls in a grouping  *  * The following example shows you how to combine controls together in a sub-group  * of the form.  *  * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}  *  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup'}) export class NgModelGroup extends AbstractFormGroupDirective implements OnInit, OnDestroy {   /**    * @description    * Tracks the name of the `NgModelGroup` bound to the directive. The name corresponds    * to a key in the parent `NgForm`.    */   // TODO(issue/24571): remove '!'.   @Input('ngModelGroup') override name!: string;    constructor(       @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[]) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /** @internal */   override _checkParentType(): void {     if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) &&         (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw modelGroupParentException();     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ChangeDetectorRef, Directive, EventEmitter, forwardRef, Host, Inject, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges, ɵcoerceToBoolean as coerceToBoolean} from '@angular/core';  import {FormHooks} from '../model/abstract_model'; import {FormControl} from '../model/form_control'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../validators';  import {AbstractFormGroupDirective} from './abstract_form_group_directive'; import {ControlContainer} from './control_container'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor'; import {NgControl} from './ng_control'; import {NgForm} from './ng_form'; import {NgModelGroup} from './ng_model_group'; import {CALL_SET_DISABLED_STATE, controlPath, isPropertyUpdated, selectValueAccessor, SetDisabledStateOption, setUpControl} from './shared'; import {formGroupNameException, missingNameException, modelParentException} from './template_driven_errors'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from './validators';  const formControlBinding: Provider = {   provide: NgControl,   useExisting: forwardRef(() => NgModel) };  /**  * `ngModel` forces an additional change detection run when its inputs change:  * E.g.:  * ```  * <div>{{myModel.valid}}</div>  * <input [(ngModel)]=\"myValue\" #myModel=\"ngModel\">  * ```  * I.e. `ngModel` can export itself on the element and then be used in the template.  * Normally, this would result in expressions before the `input` that use the exported directive  * to have an old value as they have been  * dirty checked before. As this is a very common case for `ngModel`, we added this second change  * detection run.  *  * Notes:  * - this is just one extra run no matter how many `ngModel`s have been changed.  * - this is a general problem when using `exportAs` for directives!  */ const resolvedPromise = (() => Promise.resolve())();  /**  * @description  * Creates a `FormControl` instance from a domain model and binds it  * to a form control element.  *  * The `FormControl` instance tracks the value, user interaction, and  * validation status of the control and keeps the view synced with the model. If used  * within a parent form, the directive also registers itself with the form as a child  * control.  *  * This directive is used by itself or as part of a larger form. Use the  * `ngModel` selector to activate it.  *  * It accepts a domain model as an optional `Input`. If you have a one-way binding  * to `ngModel` with `[]` syntax, changing the domain model's value in the component  * class sets the value in the view. If you have a two-way binding with `[()]` syntax  * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to  * the domain model in your class.  *  * To inspect the properties of the associated `FormControl` (like the validity state),  * export the directive into a local template variable using `ngModel` as the key (ex:  * `#myVar=\"ngModel\"`). You can then access the control using the directive's `control` property.  * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control  * for direct access. See a full list of properties directly available in  * `AbstractControlDirective`.  *  * @see `RadioControlValueAccessor`  * @see `SelectControlValueAccessor`  *  * @usageNotes  *  * ### Using ngModel on a standalone control  *  * The following examples show a simple standalone control using `ngModel`:  *  * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}  *  * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute  * so that the control can be registered with the parent form under that name.  *  * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,  * as the parent form syncs the value for you. You access its properties by exporting it into a  * local template variable using `ngForm` such as (`#f=\"ngForm\"`). Use the variable where  * needed on form submission.  *  * If you do need to populate initial values into your form, using a one-way binding for  * `ngModel` tends to be sufficient as long as you use the exported form's value rather  * than the domain model's value on submit.  *  * ### Using ngModel within a form  *  * The following example shows controls using `ngModel` within a form:  *  * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}  *  * ### Using a standalone ngModel within a group  *  * The following example shows you how to use a standalone ngModel control  * within a form. This controls the display of the form, but doesn't contain form data.  *  * ```html  * <form>  *   <input name=\"login\" ngModel placeholder=\"Login\">  *   <input type=\"checkbox\" ngModel [ngModelOptions]=\"{standalone: true}\"> Show more options?  * </form>  * <!-- form value: {login: ''} -->  * ```  *  * ### Setting the ngModel `name` attribute through options  *  * The following example shows you an alternate way to set the name attribute. Here,  * an attribute identified as name is used within a custom form control component. To still be able  * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.  *  * ```html  * <form>  *   <my-custom-form-control name=\"Nancy\" ngModel [ngModelOptions]=\"{name: 'user'}\">  *   </my-custom-form-control>  * </form>  * <!-- form value: {user: ''} -->  * ```  *  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[ngModel]:not([formControlName]):not([formControl])',   providers: [formControlBinding],   exportAs: 'ngModel' }) export class NgModel extends NgControl implements OnChanges, OnDestroy {   public override readonly control: FormControl = new FormControl();    // At runtime we coerce arbitrary values assigned to the \"disabled\" input to a \"boolean\".   // This is not reflected in the type of the property because outside of templates, consumers   // should only deal with booleans. In templates, a string is allowed for convenience and to   // match the native \"disabled attribute\" semantics which can be observed on input elements.   // This static member tells the compiler that values of type \"string\" can also be assigned   // to the input in a template.   /** @nodoc */   static ngAcceptInputType_isDisabled: boolean|string;    /** @internal */   _registered = false;    /**    * Internal reference to the view model value.    * @nodoc    */   viewModel: any;    /**    * @description    * Tracks the name bound to the directive. If a parent form exists, it    * uses this name as a key to retrieve this control's value.    */   // TODO(issue/24571): remove '!'.   @Input() override name!: string;    /**    * @description    * Tracks whether the control is disabled.    */   // TODO(issue/24571): remove '!'.   @Input('disabled') isDisabled!: boolean;    /**    * @description    * Tracks the value bound to this directive.    */   @Input('ngModel') model: any;    /**    * @description    * Tracks the configuration options for this `ngModel` instance.    *    * **name**: An alternative to setting the name attribute on the form control element. See    * the [example](api/forms/NgModel#using-ngmodel-on-a-standalone-control) for using `NgModel`    * as a standalone control.    *    * **standalone**: When set to true, the `ngModel` will not register itself with its parent form,    * and acts as if it's not in the form. Defaults to false. If no parent form exists, this option    * has no effect.    *    * **updateOn**: Defines the event upon which the form control value and validity update.    * Defaults to 'change'. Possible values: `'change'` | `'blur'` | `'submit'`.    *    */   // TODO(issue/24571): remove '!'.   @Input('ngModelOptions') options!: {name?: string, standalone?: boolean, updateOn?: FormHooks};    /**    * @description    * Event emitter for producing the `ngModelChange` event after    * the view model updates.    */   @Output('ngModelChange') update = new EventEmitter();    constructor(       @Optional() @Host() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],       @Optional() @Inject(ChangeDetectorRef) private _changeDetectorRef?: ChangeDetectorRef|null,       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);     this.valueAccessor = selectValueAccessor(this, valueAccessors);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     this._checkForErrors();     if (!this._registered || 'name' in changes) {       if (this._registered) {         this._checkName();         if (this.formDirective) {           // We can't call `formDirective.removeControl(this)`, because the `name` has already been           // changed. We also can't reset the name temporarily since the logic in `removeControl`           // is inside a promise and it won't run immediately. We work around it by giving it an           // object with the same shape instead.           const oldName = changes['name'].previousValue;           this.formDirective.removeControl({name: oldName, path: this._getPath(oldName)});         }       }       this._setUpControl();     }     if ('isDisabled' in changes) {       this._updateDisabled(changes);     }      if (isPropertyUpdated(changes, this.viewModel)) {       this._updateValue(this.model);       this.viewModel = this.model;     }   }    /** @nodoc */   ngOnDestroy(): void {     this.formDirective && this.formDirective.removeControl(this);   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return this._getPath(this.name);   }    /**    * @description    * The top-level directive for this control if present, otherwise null.    */   get formDirective(): any {     return this._parent ? this._parent.formDirective : null;   }    /**    * @description    * Sets the new value for the view model and emits an `ngModelChange` event.    *    * @param newValue The new value emitted by `ngModelChange`.    */   override viewToModelUpdate(newValue: any): void {     this.viewModel = newValue;     this.update.emit(newValue);   }    private _setUpControl(): void {     this._setUpdateStrategy();     this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);     this._registered = true;   }    private _setUpdateStrategy(): void {     if (this.options && this.options.updateOn != null) {       this.control._updateOn = this.options.updateOn;     }   }    private _isStandalone(): boolean {     return !this._parent || !!(this.options && this.options.standalone);   }    private _setUpStandalone(): void {     setUpControl(this.control, this, this.callSetDisabledState);     this.control.updateValueAndValidity({emitEvent: false});   }    private _checkForErrors(): void {     if (!this._isStandalone()) {       this._checkParentType();     }     this._checkName();   }    private _checkParentType(): void {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       if (!(this._parent instanceof NgModelGroup) &&           this._parent instanceof AbstractFormGroupDirective) {         throw formGroupNameException();       } else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {         throw modelParentException();       }     }   }    private _checkName(): void {     if (this.options && this.options.name) this.name = this.options.name;      if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw missingNameException();     }   }    private _updateValue(value: any): void {     resolvedPromise.then(() => {       this.control.setValue(value, {emitViewToModelChange: false});       this._changeDetectorRef?.markForCheck();     });   }    private _updateDisabled(changes: SimpleChanges) {     const disabledValue = changes['isDisabled'].currentValue;     // checking for 0 to avoid breaking change     const isDisabled = disabledValue !== 0 && coerceToBoolean(disabledValue);      resolvedPromise.then(() => {       if (isDisabled && !this.control.disabled) {         this.control.disable();       } else if (!isDisabled && this.control.disabled) {         this.control.enable();       }        this._changeDetectorRef?.markForCheck();     });   }    private _getPath(controlName: string): string[] {     return this._parent ? controlPath(controlName, this._parent) : [controlName];   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive} from '@angular/core';  /**  * @description  *  * Adds `novalidate` attribute to all forms by default.  *  * `novalidate` is used to disable browser's native form validation.  *  * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:  *  * ```  * <form ngNativeValidate></form>  * ```  *  * @publicApi  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  */ @Directive({   selector: 'form:not([ngNoForm]):not([ngNativeValidate])',   host: {'novalidate': ''}, }) export class ɵNgNoValidate { }  export {ɵNgNoValidate as NgNoValidate}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, Provider} from '@angular/core';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const NUMBER_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => NumberValueAccessor),   multi: true };  /**  * @description  * The `ControlValueAccessor` for writing a number value and listening to number input changes.  * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`  * directives.  *  * @usageNotes  *  * ### Using a number input with a reactive form.  *  * The following example shows how to use a number input with a reactive form.  *  * ```ts  * const totalCountControl = new FormControl();  * ```  *  * ```  * <input type=\"number\" [formControl]=\"totalCountControl\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',   host: {'(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()'},   providers: [NUMBER_VALUE_ACCESSOR] }) export class NumberValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * Sets the \"value\" property on the input element.    * @nodoc    */   writeValue(value: number): void {     // The value needs to be normalized for IE9, otherwise it is set to 'null' when null     const normalizedValue = value == null ? '' : value;     this.setProperty('value', normalizedValue);   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (_: number|null) => void): void {     this.onChange = (value) => {       fn(value == '' ? null : parseFloat(value));     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, inject, Injectable, Injector, Input, NgModule, OnDestroy, OnInit, Provider, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor'; import {NgControl} from './ng_control'; import {CALL_SET_DISABLED_STATE, setDisabledStateDefault, SetDisabledStateOption} from './shared';  const RADIO_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => RadioControlValueAccessor),   multi: true };  function throwNameError() {   throw new RuntimeError(RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH, `       If you define both a name and a formControlName attribute on your radio button, their values       must match. Ex: <input type=\"radio\" formControlName=\"food\" name=\"food\">     `); }  /**  * Internal-only NgModule that works as a host for the `RadioControlRegistry` tree-shakable  * provider. Note: the `InternalFormsSharedModule` can not be used here directly, since it's  * declared *after* the `RadioControlRegistry` class and the `providedIn` doesn't support  * `forwardRef` logic.  */ @NgModule() export class RadioControlRegistryModule { }  /**  * @description  * Class used by Angular to track radio buttons. For internal use only.  */ @Injectable({providedIn: RadioControlRegistryModule}) export class RadioControlRegistry {   private _accessors: any[] = [];    /**    * @description    * Adds a control to the internal registry. For internal use only.    */   add(control: NgControl, accessor: RadioControlValueAccessor) {     this._accessors.push([control, accessor]);   }    /**    * @description    * Removes a control from the internal registry. For internal use only.    */   remove(accessor: RadioControlValueAccessor) {     for (let i = this._accessors.length - 1; i >= 0; --i) {       if (this._accessors[i][1] === accessor) {         this._accessors.splice(i, 1);         return;       }     }   }    /**    * @description    * Selects a radio button. For internal use only.    */   select(accessor: RadioControlValueAccessor) {     this._accessors.forEach((c) => {       if (this._isSameGroup(c, accessor) && c[1] !== accessor) {         c[1].fireUncheck(accessor.value);       }     });   }    private _isSameGroup(       controlPair: [NgControl, RadioControlValueAccessor],       accessor: RadioControlValueAccessor): boolean {     if (!controlPair[0].control) return false;     return controlPair[0]._parent === accessor._control._parent &&         controlPair[1].name === accessor.name;   } }  /**  * @description  * The `ControlValueAccessor` for writing radio control values and listening to radio control  * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * @usageNotes  *  * ### Using radio buttons with reactive form directives  *  * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in  * a reactive form, radio buttons in the same group should have the same `formControlName`.  * Providing a `name` attribute is optional.  *  * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',   host: {'(change)': 'onChange()', '(blur)': 'onTouched()'},   providers: [RADIO_VALUE_ACCESSOR] }) export class RadioControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor, OnDestroy, OnInit {   /** @internal */   // TODO(issue/24571): remove '!'.   _state!: boolean;   /** @internal */   // TODO(issue/24571): remove '!'.   _control!: NgControl;   /** @internal */   // TODO(issue/24571): remove '!'.   _fn!: Function;    private setDisabledStateFired = false;    /**    * The registered callback function called when a change event occurs on the input element.    * Note: we declare `onChange` here (also used as host listener) as a function with no arguments    * to override the `onChange` function (which expects 1 argument) in the parent    * `BaseControlValueAccessor` class.    * @nodoc    */   override onChange = () => {};    /**    * @description    * Tracks the name of the radio input element.    */   // TODO(issue/24571): remove '!'.   @Input() name!: string;    /**    * @description    * Tracks the name of the `FormControl` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input() formControlName!: string;    /**    * @description    * Tracks the value of the radio input element    */   @Input() value: any;    private callSetDisabledState =       inject(CALL_SET_DISABLED_STATE, {optional: true}) ?? setDisabledStateDefault;    constructor(       renderer: Renderer2, elementRef: ElementRef, private _registry: RadioControlRegistry,       private _injector: Injector) {     super(renderer, elementRef);   }    /** @nodoc */   ngOnInit(): void {     this._control = this._injector.get(NgControl);     this._checkName();     this._registry.add(this._control, this);   }    /** @nodoc */   ngOnDestroy(): void {     this._registry.remove(this);   }    /**    * Sets the \"checked\" property value on the radio input element.    * @nodoc    */   writeValue(value: any): void {     this._state = value === this.value;     this.setProperty('checked', this._state);   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (_: any) => {}): void {     this._fn = fn;     this.onChange = () => {       fn(this.value);       this._registry.select(this);     };   }    /** @nodoc */   override setDisabledState(isDisabled: boolean): void {     /**      * `setDisabledState` is supposed to be called whenever the disabled state of a control changes,      * including upon control creation. However, a longstanding bug caused the method to not fire      * when an *enabled* control was attached. This bug was fixed in v15 in #47576.      *      * This had a side effect: previously, it was possible to instantiate a reactive form control      * with `[attr.disabled]=true`, even though the the corresponding control was enabled in the      * model. This resulted in a mismatch between the model and the DOM. Now, because      * `setDisabledState` is always called, the value in the DOM will be immediately overwritten      * with the \"correct\" enabled value.      *      * However, the fix also created an exceptional case: radio buttons. Because Reactive Forms      * models the entire group of radio buttons as a single `FormControl`, there is no way to      * control the disabled state for individual radios, so they can no longer be configured as      * disabled. Thus, we keep the old behavior for radio buttons, so that `[attr.disabled]`      * continues to work. Specifically, we drop the first call to `setDisabledState` if `disabled`      * is `false`, and we are not in legacy mode.      */     if (this.setDisabledStateFired || isDisabled ||         this.callSetDisabledState === 'whenDisabledForLegacyCode') {       this.setProperty('disabled', isDisabled);     }     this.setDisabledStateFired = true;   }    /**    * Sets the \"value\" on the radio input element and unchecks it.    *    * @param value    */   fireUncheck(value: any): void {     this.writeValue(value);   }    private _checkName(): void {     if (this.name && this.formControlName && this.name !== this.formControlName &&         (typeof ngDevMode === 'undefined' || ngDevMode)) {       throwNameError();     }     if (!this.name && this.formControlName) this.name = this.formControlName;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Provider} from '@angular/core';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const RANGE_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => RangeValueAccessor),   multi: true };  /**  * @description  * The `ControlValueAccessor` for writing a range value and listening to range input changes.  * The value accessor is used by the `FormControlDirective`, `FormControlName`, and  `NgModel`  * directives.  *  * @usageNotes  *  * ### Using a range input with a reactive form  *  * The following example shows how to use a range input with a reactive form.  *  * ```ts  * const ageControl = new FormControl();  * ```  *  * ```  * <input type=\"range\" [formControl]=\"ageControl\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',   host: {     '(change)': 'onChange($event.target.value)',     '(input)': 'onChange($event.target.value)',     '(blur)': 'onTouched()'   },   providers: [RANGE_VALUE_ACCESSOR] }) export class RangeValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * Sets the \"value\" property on the input element.    * @nodoc    */   writeValue(value: any): void {     this.setProperty('value', parseFloat(value));   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (_: number|null) => void): void {     this.onChange = (value) => {       fn(value == '' ? null : parseFloat(value));     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EventEmitter, forwardRef, Inject, InjectionToken, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges} from '@angular/core';  import {FormControl} from '../../model/form_control'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '../control_value_accessor'; import {NgControl} from '../ng_control'; import {disabledAttrWarning} from '../reactive_errors'; import {_ngModelWarning, CALL_SET_DISABLED_STATE, cleanUpControl, isPropertyUpdated, selectValueAccessor, SetDisabledStateOption, setUpControl} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';   /**  * Token to provide to turn off the ngModel warning on formControl and formControlName.  */ export const NG_MODEL_WITH_FORM_CONTROL_WARNING =     new InjectionToken('NgModelWithFormControlWarning');  const formControlBinding: Provider = {   provide: NgControl,   useExisting: forwardRef(() => FormControlDirective) };  /**  * @description  * Synchronizes a standalone `FormControl` instance to a form control element.  *  * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive  * form directives was deprecated in Angular v6 and is scheduled for removal in  * a future version of Angular.  * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `FormControl`  * @see `AbstractControl`  *  * @usageNotes  *  * The following example shows how to register a standalone control and set its value.  *  * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm'}) export class FormControlDirective extends NgControl implements OnChanges, OnDestroy {   /**    * Internal reference to the view model value.    * @nodoc    */   viewModel: any;    /**    * @description    * Tracks the `FormControl` instance bound to the directive.    */   // TODO(issue/24571): remove '!'.   @Input('formControl') form!: FormControl;    /**    * @description    * Triggers a warning in dev mode that this input should not be used with reactive forms.    */   @Input('disabled')   set isDisabled(isDisabled: boolean) {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       console.warn(disabledAttrWarning);     }   }    // TODO(kara): remove next 4 properties once deprecation period is over    /** @deprecated as of v6 */   @Input('ngModel') model: any;    /** @deprecated as of v6 */   @Output('ngModelChange') update = new EventEmitter();    /**    * @description    * Static property used to track whether any ngModel warnings have been sent across    * all instances of FormControlDirective. Used to support warning config of \"once\".    *    * @internal    */   static _ngModelWarningSentOnce = false;    /**    * @description    * Instance property used to track whether an ngModel warning has been sent out for this    * particular `FormControlDirective` instance. Used to support warning config of \"always\".    *    * @internal    */   _ngModelWarningSent = false;    constructor(       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],       @Optional() @Inject(NG_MODEL_WITH_FORM_CONTROL_WARNING) private _ngModelWarningConfig: string|       null,       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);     this.valueAccessor = selectValueAccessor(this, valueAccessors);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     if (this._isControlChanged(changes)) {       const previousForm = changes['form'].previousValue;       if (previousForm) {         cleanUpControl(previousForm, this, /* validateControlPresenceOnChange */ false);       }       setUpControl(this.form, this, this.callSetDisabledState);       this.form.updateValueAndValidity({emitEvent: false});     }     if (isPropertyUpdated(changes, this.viewModel)) {       if (typeof ngDevMode === 'undefined' || ngDevMode) {         _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);       }       this.form.setValue(this.model);       this.viewModel = this.model;     }   }    /** @nodoc */   ngOnDestroy() {     if (this.form) {       cleanUpControl(this.form, this, /* validateControlPresenceOnChange */ false);     }   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return [];   }    /**    * @description    * The `FormControl` bound to this directive.    */   override get control(): FormControl {     return this.form;   }    /**    * @description    * Sets the new value for the view model and emits an `ngModelChange` event.    *    * @param newValue The new value for the view model.    */   override viewToModelUpdate(newValue: any): void {     this.viewModel = newValue;     this.update.emit(newValue);   }    private _isControlChanged(changes: {[key: string]: any}): boolean {     return changes.hasOwnProperty('form');   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EventEmitter, forwardRef, Inject, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges} from '@angular/core';  import {FormArray} from '../../model/form_array'; import {FormControl, isFormControl} from '../../model/form_control'; import {FormGroup} from '../../model/form_group'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {ControlContainer} from '../control_container'; import {Form} from '../form_interface'; import {missingFormException} from '../reactive_errors'; import {CALL_SET_DISABLED_STATE, cleanUpControl, cleanUpFormContainer, cleanUpValidators, removeListItem, SetDisabledStateOption, setUpControl, setUpFormContainer, setUpValidators, syncPendingControls} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';  import {FormControlName} from './form_control_name'; import {FormArrayName, FormGroupName} from './form_group_name';  const formDirectiveProvider: Provider = {   provide: ControlContainer,   useExisting: forwardRef(() => FormGroupDirective) };  /**  * @description  *  * Binds an existing `FormGroup` or `FormRecord` to a DOM element.  *  * This directive accepts an existing `FormGroup` instance. It will then use this  * `FormGroup` instance to match any child `FormControl`, `FormGroup`/`FormRecord`,  * and `FormArray` instances to child `FormControlName`, `FormGroupName`,  * and `FormArrayName` directives.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `AbstractControl`  *  * @usageNotes  * ### Register Form Group  *  * The following example registers a `FormGroup` with first name and last name controls,  * and listens for the *ngSubmit* event when the button is clicked.  *  * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({   selector: '[formGroup]',   providers: [formDirectiveProvider],   host: {'(submit)': 'onSubmit($event)', '(reset)': 'onReset()'},   exportAs: 'ngForm' }) export class FormGroupDirective extends ControlContainer implements Form, OnChanges, OnDestroy {   /**    * @description    * Reports whether the form submission has been triggered.    */   public readonly submitted: boolean = false;    /**    * Reference to an old form group input value, which is needed to cleanup old instance in case it    * was replaced with a new one.    */   private _oldForm: FormGroup|undefined;    /**    * Callback that should be invoked when controls in FormGroup or FormArray collection change    * (added or removed). This callback triggers corresponding DOM updates.    */   private readonly _onCollectionChange = () => this._updateDomValue();    /**    * @description    * Tracks the list of added `FormControlName` instances    */   directives: FormControlName[] = [];    /**    * @description    * Tracks the `FormGroup` bound to this directive.    */   @Input('formGroup') form: FormGroup = null!;    /**    * @description    * Emits an event when the form submission has been triggered.    */   @Output() ngSubmit = new EventEmitter();    constructor(       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Inject(CALL_SET_DISABLED_STATE) private callSetDisabledState?:           SetDisabledStateOption) {     super();     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     this._checkFormPresent();     if (changes.hasOwnProperty('form')) {       this._updateValidators();       this._updateDomValue();       this._updateRegistrations();       this._oldForm = this.form;     }   }    /** @nodoc */   ngOnDestroy() {     if (this.form) {       cleanUpValidators(this.form, this);        // Currently the `onCollectionChange` callback is rewritten each time the       // `_registerOnCollectionChange` function is invoked. The implication is that cleanup should       // happen *only* when the `onCollectionChange` callback was set by this directive instance.       // Otherwise it might cause overriding a callback of some other directive instances. We should       // consider updating this logic later to make it similar to how `onChange` callbacks are       // handled, see https://github.com/angular/angular/issues/39732 for additional info.       if (this.form._onCollectionChange === this._onCollectionChange) {         this.form._registerOnCollectionChange(() => {});       }     }   }    /**    * @description    * Returns this directive's instance.    */   override get formDirective(): Form {     return this;   }    /**    * @description    * Returns the `FormGroup` bound to this directive.    */   override get control(): FormGroup {     return this.form;   }    /**    * @description    * Returns an array representing the path to this group. Because this directive    * always lives at the top level of a form, it always an empty array.    */   override get path(): string[] {     return [];   }    /**    * @description    * Method that sets up the control directive in this group, re-calculates its value    * and validity, and adds the instance to the internal list of directives.    *    * @param dir The `FormControlName` directive instance.    */   addControl(dir: FormControlName): FormControl {     const ctrl: any = this.form.get(dir.path);     setUpControl(ctrl, dir, this.callSetDisabledState);     ctrl.updateValueAndValidity({emitEvent: false});     this.directives.push(dir);     return ctrl;   }    /**    * @description    * Retrieves the `FormControl` instance from the provided `FormControlName` directive    *    * @param dir The `FormControlName` directive instance.    */   getControl(dir: FormControlName): FormControl {     return <FormControl>this.form.get(dir.path);   }    /**    * @description    * Removes the `FormControlName` instance from the internal list of directives    *    * @param dir The `FormControlName` directive instance.    */   removeControl(dir: FormControlName): void {     cleanUpControl(dir.control || null, dir, /* validateControlPresenceOnChange */ false);     removeListItem(this.directives, dir);   }    /**    * Adds a new `FormGroupName` directive instance to the form.    *    * @param dir The `FormGroupName` directive instance.    */   addFormGroup(dir: FormGroupName): void {     this._setUpFormContainer(dir);   }    /**    * Performs the necessary cleanup when a `FormGroupName` directive instance is removed from the    * view.    *    * @param dir The `FormGroupName` directive instance.    */   removeFormGroup(dir: FormGroupName): void {     this._cleanUpFormContainer(dir);   }    /**    * @description    * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance    *    * @param dir The `FormGroupName` directive instance.    */   getFormGroup(dir: FormGroupName): FormGroup {     return <FormGroup>this.form.get(dir.path);   }    /**    * Performs the necessary setup when a `FormArrayName` directive instance is added to the view.    *    * @param dir The `FormArrayName` directive instance.    */   addFormArray(dir: FormArrayName): void {     this._setUpFormContainer(dir);   }    /**    * Performs the necessary cleanup when a `FormArrayName` directive instance is removed from the    * view.    *    * @param dir The `FormArrayName` directive instance.    */   removeFormArray(dir: FormArrayName): void {     this._cleanUpFormContainer(dir);   }    /**    * @description    * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.    *    * @param dir The `FormArrayName` directive instance.    */   getFormArray(dir: FormArrayName): FormArray {     return <FormArray>this.form.get(dir.path);   }    /**    * Sets the new value for the provided `FormControlName` directive.    *    * @param dir The `FormControlName` directive instance.    * @param value The new value for the directive's control.    */   updateModel(dir: FormControlName, value: any): void {     const ctrl = <FormControl>this.form.get(dir.path);     ctrl.setValue(value);   }    /**    * @description    * Method called with the \"submit\" event is triggered on the form.    * Triggers the `ngSubmit` emitter to emit the \"submit\" event as its payload.    *    * @param $event The \"submit\" event object    */   onSubmit($event: Event): boolean {     (this as {submitted: boolean}).submitted = true;     syncPendingControls(this.form, this.directives);     this.ngSubmit.emit($event);     // Forms with `method=\"dialog\"` have some special behavior that won't reload the page and that     // shouldn't be prevented. Note that we need to null check the `event` and the `target`, because     // some internal apps call this method directly with the wrong arguments.     return ($event?.target as HTMLFormElement | null)?.method === 'dialog';   }    /**    * @description    * Method called when the \"reset\" event is triggered on the form.    */   onReset(): void {     this.resetForm();   }    /**    * @description    * Resets the form to an initial value and resets its submitted status.    *    * @param value The new value for the form.    */   resetForm(value: any = undefined): void {     this.form.reset(value);     (this as {submitted: boolean}).submitted = false;   }    /** @internal */   _updateDomValue() {     this.directives.forEach(dir => {       const oldCtrl = dir.control;       const newCtrl = this.form.get(dir.path);       if (oldCtrl !== newCtrl) {         // Note: the value of the `dir.control` may not be defined, for example when it's a first         // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).         cleanUpControl(oldCtrl || null, dir);          // Check whether new control at the same location inside the corresponding `FormGroup` is an         // instance of `FormControl` and perform control setup only if that's the case.         // Note: we don't need to clear the list of directives (`this.directives`) here, it would be         // taken care of in the `removeControl` method invoked when corresponding `formControlName`         // directive instance is being removed (invoked from `FormControlName.ngOnDestroy`).         if (isFormControl(newCtrl)) {           setUpControl(newCtrl, dir, this.callSetDisabledState);           (dir as {control: FormControl}).control = newCtrl;         }       }     });      this.form._updateTreeValidity({emitEvent: false});   }    private _setUpFormContainer(dir: FormArrayName|FormGroupName): void {     const ctrl: any = this.form.get(dir.path);     setUpFormContainer(ctrl, dir);     // NOTE: this operation looks unnecessary in case no new validators were added in     // `setUpFormContainer` call. Consider updating this code to match the logic in     // `_cleanUpFormContainer` function.     ctrl.updateValueAndValidity({emitEvent: false});   }    private _cleanUpFormContainer(dir: FormArrayName|FormGroupName): void {     if (this.form) {       const ctrl: any = this.form.get(dir.path);       if (ctrl) {         const isControlUpdated = cleanUpFormContainer(ctrl, dir);         if (isControlUpdated) {           // Run validity check only in case a control was updated (i.e. view validators were           // removed) as removing view validators might cause validity to change.           ctrl.updateValueAndValidity({emitEvent: false});         }       }     }   }    private _updateRegistrations() {     this.form._registerOnCollectionChange(this._onCollectionChange);     if (this._oldForm) {       this._oldForm._registerOnCollectionChange(() => {});     }   }    private _updateValidators() {     setUpValidators(this.form, this);     if (this._oldForm) {       cleanUpValidators(this._oldForm, this);     }   }    private _checkFormPresent() {     if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw missingFormException();     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Host, Inject, Input, OnDestroy, OnInit, Optional, Provider, Self, SkipSelf} from '@angular/core';  import {FormArray} from '../../model/form_array'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {AbstractFormGroupDirective} from '../abstract_form_group_directive'; import {ControlContainer} from '../control_container'; import {arrayParentException, groupParentException} from '../reactive_errors'; import {controlPath} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';  import {FormGroupDirective} from './form_group_directive';  const formGroupNameProvider: Provider = {   provide: ControlContainer,   useExisting: forwardRef(() => FormGroupName) };  /**  * @description  *  * Syncs a nested `FormGroup` or `FormRecord` to a DOM element.  *  * This directive can only be used with a parent `FormGroupDirective`.  *  * It accepts the string name of the nested `FormGroup` or `FormRecord` to link, and  * looks for a `FormGroup` or `FormRecord` registered with that name in the parent  * `FormGroup` instance you passed into `FormGroupDirective`.  *  * Use nested form groups to validate a sub-group of a  * form separately from the rest or to group the values of certain  * controls into their own nested object.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  *  * @usageNotes  *  * ### Access the group by name  *  * The following example uses the `AbstractControl.get` method to access the  * associated `FormGroup`  *  * ```ts  *   this.form.get('name');  * ```  *  * ### Access individual controls in the group  *  * The following example uses the `AbstractControl.get` method to access  * individual controls within the group using dot syntax.  *  * ```ts  *   this.form.get('name.first');  * ```  *  * ### Register a nested `FormGroup`.  *  * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,  * and provides methods to retrieve the nested `FormGroup` and individual controls.  *  * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formGroupName]', providers: [formGroupNameProvider]}) export class FormGroupName extends AbstractFormGroupDirective implements OnInit, OnDestroy {   /**    * @description    * Tracks the name of the `FormGroup` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    * Accepts a name as a string or a number.    * The name in the form of a string is useful for individual forms,    * while the numerical form allows for form groups to be bound    * to indices when iterating over groups in a `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input('formGroupName') override name!: string|number|null;    constructor(       @Optional() @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[]) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /** @internal */   override _checkParentType(): void {     if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw groupParentException();     }   } }  export const formArrayNameProvider: any = {   provide: ControlContainer,   useExisting: forwardRef(() => FormArrayName) };  /**  * @description  *  * Syncs a nested `FormArray` to a DOM element.  *  * This directive is designed to be used with a parent `FormGroupDirective` (selector:  * `[formGroup]`).  *  * It accepts the string name of the nested `FormArray` you want to link, and  * will look for a `FormArray` registered with that name in the parent  * `FormGroup` instance you passed into `FormGroupDirective`.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `AbstractControl`  *  * @usageNotes  *  * ### Example  *  * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formArrayName]', providers: [formArrayNameProvider]}) export class FormArrayName extends ControlContainer implements OnInit, OnDestroy {   /** @internal */   _parent: ControlContainer;    /**    * @description    * Tracks the name of the `FormArray` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    * Accepts a name as a string or a number.    * The name in the form of a string is useful for individual forms,    * while the numerical form allows for form arrays to be bound    * to indices when iterating over arrays in a `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input('formArrayName') override name!: string|number|null;    constructor(       @Optional() @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[]) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);   }    /**    * A lifecycle method called when the directive's inputs are initialized. For internal use only.    * @throws If the directive does not have a valid parent.    * @nodoc    */   ngOnInit(): void {     this._checkParentType();     this.formDirective!.addFormArray(this);   }    /**    * A lifecycle method called before the directive's instance is destroyed. For internal use only.    * @nodoc    */   ngOnDestroy(): void {     if (this.formDirective) {       this.formDirective.removeFormArray(this);     }   }    /**    * @description    * The `FormArray` bound to this directive.    */   override get control(): FormArray {     return this.formDirective!.getFormArray(this);   }    /**    * @description    * The top-level directive for this group if present, otherwise null.    */   override get formDirective(): FormGroupDirective|null {     return this._parent ? <FormGroupDirective>this._parent.formDirective : null;   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);   }    private _checkParentType(): void {     if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw arrayParentException();     }   } }  function _hasInvalidParent(parent: ControlContainer): boolean {   return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&       !(parent instanceof FormArrayName); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, EventEmitter, forwardRef, Host, Inject, Input, OnChanges, OnDestroy, Optional, Output, Provider, Self, SimpleChanges, SkipSelf} from '@angular/core';  import {FormControl} from '../../model/form_control'; import {NG_ASYNC_VALIDATORS, NG_VALIDATORS} from '../../validators'; import {AbstractFormGroupDirective} from '../abstract_form_group_directive'; import {ControlContainer} from '../control_container'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '../control_value_accessor'; import {NgControl} from '../ng_control'; import {controlParentException, disabledAttrWarning, ngModelGroupException} from '../reactive_errors'; import {_ngModelWarning, controlPath, isPropertyUpdated, selectValueAccessor} from '../shared'; import {AsyncValidator, AsyncValidatorFn, Validator, ValidatorFn} from '../validators';  import {NG_MODEL_WITH_FORM_CONTROL_WARNING} from './form_control_directive'; import {FormGroupDirective} from './form_group_directive'; import {FormArrayName, FormGroupName} from './form_group_name';  const controlNameBinding: Provider = {   provide: NgControl,   useExisting: forwardRef(() => FormControlName) };  /**  * @description  * Syncs a `FormControl` in an existing `FormGroup` to a form control  * element by name.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  * @see `FormControl`  * @see `AbstractControl`  *  * @usageNotes  *  * ### Register `FormControl` within a group  *  * The following example shows how to register multiple form controls within a form group  * and set their value.  *  * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}  *  * To see `formControlName` examples with different form control types, see:  *  * * Radio buttons: `RadioControlValueAccessor`  * * Selects: `SelectControlValueAccessor`  *  * ### Use with ngModel is deprecated  *  * Support for using the `ngModel` input property and `ngModelChange` event with reactive  * form directives has been deprecated in Angular v6 and is scheduled for removal in  * a future version of Angular.  *  * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).  *  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({selector: '[formControlName]', providers: [controlNameBinding]}) export class FormControlName extends NgControl implements OnChanges, OnDestroy {   private _added = false;   /**    * Internal reference to the view model value.    * @internal    */   viewModel: any;    /**    * @description    * Tracks the `FormControl` instance bound to the directive.    */   // TODO(issue/24571): remove '!'.   override readonly control!: FormControl;    /**    * @description    * Tracks the name of the `FormControl` bound to the directive. The name corresponds    * to a key in the parent `FormGroup` or `FormArray`.    * Accepts a name as a string or a number.    * The name in the form of a string is useful for individual forms,    * while the numerical form allows for form controls to be bound    * to indices when iterating over controls in a `FormArray`.    */   // TODO(issue/24571): remove '!'.   @Input('formControlName') override name!: string|number|null;    /**    * @description    * Triggers a warning in dev mode that this input should not be used with reactive forms.    */   @Input('disabled')   set isDisabled(isDisabled: boolean) {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       console.warn(disabledAttrWarning);     }   }    // TODO(kara): remove next 4 properties once deprecation period is over    /** @deprecated as of v6 */   @Input('ngModel') model: any;    /** @deprecated as of v6 */   @Output('ngModelChange') update = new EventEmitter();    /**    * @description    * Static property used to track whether any ngModel warnings have been sent across    * all instances of FormControlName. Used to support warning config of \"once\".    *    * @internal    */   static _ngModelWarningSentOnce = false;    /**    * @description    * Instance property used to track whether an ngModel warning has been sent out for this    * particular FormControlName instance. Used to support warning config of \"always\".    *    * @internal    */   _ngModelWarningSent = false;    constructor(       @Optional() @Host() @SkipSelf() parent: ControlContainer,       @Optional() @Self() @Inject(NG_VALIDATORS) validators: (Validator|ValidatorFn)[],       @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:           (AsyncValidator|AsyncValidatorFn)[],       @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],       @Optional() @Inject(NG_MODEL_WITH_FORM_CONTROL_WARNING) private _ngModelWarningConfig: string|       null) {     super();     this._parent = parent;     this._setValidators(validators);     this._setAsyncValidators(asyncValidators);     this.valueAccessor = selectValueAccessor(this, valueAccessors);   }    /** @nodoc */   ngOnChanges(changes: SimpleChanges) {     if (!this._added) this._setUpControl();     if (isPropertyUpdated(changes, this.viewModel)) {       if (typeof ngDevMode === 'undefined' || ngDevMode) {         _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);       }       this.viewModel = this.model;       this.formDirective.updateModel(this, this.model);     }   }    /** @nodoc */   ngOnDestroy(): void {     if (this.formDirective) {       this.formDirective.removeControl(this);     }   }    /**    * @description    * Sets the new value for the view model and emits an `ngModelChange` event.    *    * @param newValue The new value for the view model.    */   override viewToModelUpdate(newValue: any): void {     this.viewModel = newValue;     this.update.emit(newValue);   }    /**    * @description    * Returns an array that represents the path from the top-level form to this control.    * Each index is the string name of the control on that level.    */   override get path(): string[] {     return controlPath(this.name == null ? this.name : this.name.toString(), this._parent!);   }    /**    * @description    * The top-level directive for this group if present, otherwise null.    */   get formDirective(): any {     return this._parent ? this._parent.formDirective : null;   }    private _checkParentType(): void {     if (typeof ngDevMode === 'undefined' || ngDevMode) {       if (!(this._parent instanceof FormGroupName) &&           this._parent instanceof AbstractFormGroupDirective) {         throw ngModelGroupException();       } else if (           !(this._parent instanceof FormGroupName) &&           !(this._parent instanceof FormGroupDirective) &&           !(this._parent instanceof FormArrayName)) {         throw controlParentException();       }     }   }    private _setUpControl() {     this._checkParentType();     (this as {control: FormControl}).control = this.formDirective.addControl(this);     this._added = true;   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, Host, Input, OnDestroy, Optional, Provider, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const SELECT_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => SelectControlValueAccessor),   multi: true };  function _buildValueString(id: string|null, value: any): string {   if (id == null) return `${value}`;   if (value && typeof value === 'object') value = 'Object';   return `${id}: ${value}`.slice(0, 50); }  function _extractId(valueString: string): string {   return valueString.split(':')[0]; }  /**  * @description  * The `ControlValueAccessor` for writing select control values and listening to select control  * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * @usageNotes  *  * ### Using select controls in a reactive form  *  * The following examples show how to use a select control in a reactive form.  *  * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}  *  * ### Using select controls in a template-driven form  *  * To use a select in a template-driven form, simply add an `ngModel` and a `name`  * attribute to the main `<select>` tag.  *  * {@example forms/ts/selectControl/select_control_example.ts region='Component'}  *  * ### Customizing option selection  *  * Angular uses object identity to select option. It's possible for the identities of items  * to change while the data does not. This can happen, for example, if the items are produced  * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the  * second response will produce objects with different identities.  *  * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.  * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.  * If `compareWith` is given, Angular selects option by the return value of the function.  *  * ```ts  * const selectedCountriesControl = new FormControl();  * ```  *  * ```  * <select [compareWith]=\"compareFn\"  [formControl]=\"selectedCountriesControl\">  *     <option *ngFor=\"let country of countries\" [ngValue]=\"country\">  *         {{country.name}}  *     </option>  * </select>  *  * compareFn(c1: Country, c2: Country): boolean {  *     return c1 && c2 ? c1.id === c2.id : c1 === c2;  * }  * ```  *  * **Note:** We listen to the 'change' event because 'input' events aren't fired  * for selects in IE, see:  * https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event#browser_compatibility  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',   host: {'(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()'},   providers: [SELECT_VALUE_ACCESSOR] }) export class SelectControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /** @nodoc */   value: any;    /** @internal */   _optionMap: Map<string, any> = new Map<string, any>();    /** @internal */   _idCounter: number = 0;    /**    * @description    * Tracks the option comparison algorithm for tracking identities when    * checking for changes.    */   @Input()   set compareWith(fn: (o1: any, o2: any) => boolean) {     if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw new RuntimeError(           RuntimeErrorCode.COMPAREWITH_NOT_A_FN,           `compareWith must be a function, but received ${JSON.stringify(fn)}`);     }     this._compareWith = fn;   }    private _compareWith: (o1: any, o2: any) => boolean = Object.is;    /**    * Sets the \"value\" property on the select element.    * @nodoc    */   writeValue(value: any): void {     this.value = value;     const id: string|null = this._getOptionId(value);     const valueString = _buildValueString(id, value);     this.setProperty('value', valueString);   }    /**    * Registers a function called when the control value changes.    * @nodoc    */   override registerOnChange(fn: (value: any) => any): void {     this.onChange = (valueString: string) => {       this.value = this._getOptionValue(valueString);       fn(this.value);     };   }    /** @internal */   _registerOption(): string {     return (this._idCounter++).toString();   }    /** @internal */   _getOptionId(value: any): string|null {     for (const id of Array.from(this._optionMap.keys())) {       if (this._compareWith(this._optionMap.get(id), value)) return id;     }     return null;   }    /** @internal */   _getOptionValue(valueString: string): any {     const id: string = _extractId(valueString);     return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;   } }  /**  * @description  * Marks `<option>` as dynamic, so Angular can be notified when options change.  *  * @see `SelectControlValueAccessor`  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: 'option'}) export class NgSelectOption implements OnDestroy {   /**    * @description    * ID of the option element    */   // TODO(issue/24571): remove '!'.   id!: string;    constructor(       private _element: ElementRef, private _renderer: Renderer2,       @Optional() @Host() private _select: SelectControlValueAccessor) {     if (this._select) this.id = this._select._registerOption();   }    /**    * @description    * Tracks the value bound to the option element. Unlike the value binding,    * ngValue supports binding to objects.    */   @Input('ngValue')   set ngValue(value: any) {     if (this._select == null) return;     this._select._optionMap.set(this.id, value);     this._setElementValue(_buildValueString(this.id, value));     this._select.writeValue(this._select.value);   }    /**    * @description    * Tracks simple string values bound to the option element.    * For objects, use the `ngValue` input binding.    */   @Input('value')   set value(value: any) {     this._setElementValue(value);     if (this._select) this._select.writeValue(this._select.value);   }    /** @internal */   _setElementValue(value: string): void {     this._renderer.setProperty(this._element.nativeElement, 'value', value);   }    /** @nodoc */   ngOnDestroy(): void {     if (this._select) {       this._select._optionMap.delete(this.id);       this._select.writeValue(this._select.value);     }   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, ElementRef, forwardRef, Host, Input, OnDestroy, Optional, Provider, Renderer2, ɵRuntimeError as RuntimeError} from '@angular/core';  import {RuntimeErrorCode} from '../errors';  import {BuiltInControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';  const SELECT_MULTIPLE_VALUE_ACCESSOR: Provider = {   provide: NG_VALUE_ACCESSOR,   useExisting: forwardRef(() => SelectMultipleControlValueAccessor),   multi: true };  function _buildValueString(id: string, value: any): string {   if (id == null) return `${value}`;   if (typeof value === 'string') value = `'${value}'`;   if (value && typeof value === 'object') value = 'Object';   return `${id}: ${value}`.slice(0, 50); }  function _extractId(valueString: string): string {   return valueString.split(':')[0]; }  /** Mock interface for HTML Options */ interface HTMLOption {   value: string;   selected: boolean; }  /** Mock interface for HTMLCollection */ abstract class HTMLCollection {   // TODO(issue/24571): remove '!'.   length!: number;   abstract item(_: number): HTMLOption; }  /**  * @description  * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select  * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and  * `NgModel` directives.  *  * @see `SelectControlValueAccessor`  *  * @usageNotes  *  * ### Using a multi-select control  *  * The follow example shows you how to use a multi-select control with a reactive form.  *  * ```ts  * const countryControl = new FormControl();  * ```  *  * ```  * <select multiple name=\"countries\" [formControl]=\"countryControl\">  *   <option *ngFor=\"let country of countries\" [ngValue]=\"country\">  *     {{ country.name }}  *   </option>  * </select>  * ```  *  * ### Customizing option selection  *  * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.  * See the `SelectControlValueAccessor` for usage.  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',   host: {'(change)': 'onChange($event.target)', '(blur)': 'onTouched()'},   providers: [SELECT_MULTIPLE_VALUE_ACCESSOR] }) export class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor implements     ControlValueAccessor {   /**    * The current value.    * @nodoc    */   value: any;    /** @internal */   _optionMap: Map<string, ɵNgSelectMultipleOption> = new Map<string, ɵNgSelectMultipleOption>();    /** @internal */   _idCounter: number = 0;    /**    * @description    * Tracks the option comparison algorithm for tracking identities when    * checking for changes.    */   @Input()   set compareWith(fn: (o1: any, o2: any) => boolean) {     if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {       throw new RuntimeError(           RuntimeErrorCode.COMPAREWITH_NOT_A_FN,           `compareWith must be a function, but received ${JSON.stringify(fn)}`);     }     this._compareWith = fn;   }    private _compareWith: (o1: any, o2: any) => boolean = Object.is;    /**    * Sets the \"value\" property on one or of more of the select's options.    * @nodoc    */   writeValue(value: any): void {     this.value = value;     let optionSelectedStateSetter: (opt: ɵNgSelectMultipleOption, o: any) => void;     if (Array.isArray(value)) {       // convert values to ids       const ids = value.map((v) => this._getOptionId(v));       optionSelectedStateSetter = (opt, o) => {         opt._setSelected(ids.indexOf(o.toString()) > -1);       };     } else {       optionSelectedStateSetter = (opt, o) => {         opt._setSelected(false);       };     }     this._optionMap.forEach(optionSelectedStateSetter);   }    /**    * Registers a function called when the control value changes    * and writes an array of the selected options.    * @nodoc    */   override registerOnChange(fn: (value: any) => any): void {     this.onChange = (element: HTMLSelectElement) => {       const selected: Array<any> = [];       const selectedOptions = element.selectedOptions;       if (selectedOptions !== undefined) {         const options = selectedOptions;         for (let i = 0; i < options.length; i++) {           const opt = options[i];           const val = this._getOptionValue(opt.value);           selected.push(val);         }       }       // Degrade to use `options` when `selectedOptions` property is not available.       // Note: the `selectedOptions` is available in all supported browsers, but the Domino lib       // doesn't have it currently, see https://github.com/fgnass/domino/issues/177.       else {         const options = element.options;         for (let i = 0; i < options.length; i++) {           const opt = options[i];           if (opt.selected) {             const val = this._getOptionValue(opt.value);             selected.push(val);           }         }       }       this.value = selected;       fn(selected);     };   }    /** @internal */   _registerOption(value: ɵNgSelectMultipleOption): string {     const id: string = (this._idCounter++).toString();     this._optionMap.set(id, value);     return id;   }    /** @internal */   _getOptionId(value: any): string|null {     for (const id of Array.from(this._optionMap.keys())) {       if (this._compareWith(this._optionMap.get(id)!._value, value)) return id;     }     return null;   }    /** @internal */   _getOptionValue(valueString: string): any {     const id: string = _extractId(valueString);     return this._optionMap.has(id) ? this._optionMap.get(id)!._value : valueString;   } }  /**  * @description  * Marks `<option>` as dynamic, so Angular can be notified when options change.  *  * @see `SelectMultipleControlValueAccessor`  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({selector: 'option'}) export class ɵNgSelectMultipleOption implements OnDestroy {   // TODO(issue/24571): remove '!'.   id!: string;   /** @internal */   _value: any;    constructor(       private _element: ElementRef, private _renderer: Renderer2,       @Optional() @Host() private _select: SelectMultipleControlValueAccessor) {     if (this._select) {       this.id = this._select._registerOption(this);     }   }    /**    * @description    * Tracks the value bound to the option element. Unlike the value binding,    * ngValue supports binding to objects.    */   @Input('ngValue')   set ngValue(value: any) {     if (this._select == null) return;     this._value = value;     this._setElementValue(_buildValueString(this.id, value));     this._select.writeValue(this._select.value);   }    /**    * @description    * Tracks simple string values bound to the option element.    * For objects, use the `ngValue` input binding.    */   @Input('value')   set value(value: any) {     if (this._select) {       this._value = value;       this._setElementValue(_buildValueString(this.id, value));       this._select.writeValue(this._select.value);     } else {       this._setElementValue(value);     }   }    /** @internal */   _setElementValue(value: string): void {     this._renderer.setProperty(this._element.nativeElement, 'value', value);   }    /** @internal */   _setSelected(selected: boolean) {     this._renderer.setProperty(this._element.nativeElement, 'selected', selected);   }    /** @nodoc */   ngOnDestroy(): void {     if (this._select) {       this._select._optionMap.delete(this.id);       this._select.writeValue(this._select.value);     }   } }  export {ɵNgSelectMultipleOption as NgSelectMultipleOption}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {Directive, forwardRef, Input, OnChanges, Provider, SimpleChanges, ɵcoerceToBoolean as coerceToBoolean} from '@angular/core'; import {Observable} from 'rxjs';  import {AbstractControl} from '../model/abstract_model'; import {emailValidator, maxLengthValidator, maxValidator, minLengthValidator, minValidator, NG_VALIDATORS, nullValidator, patternValidator, requiredTrueValidator, requiredValidator} from '../validators';  /**  * Method that updates string to integer if not already a number  *  * @param value The value to convert to integer.  * @returns value of parameter converted to number or integer.  */ function toInteger(value: string|number): number {   return typeof value === 'number' ? value : parseInt(value, 10); }  /**  * Method that ensures that provided value is a float (and converts it to float if needed).  *  * @param value The value to convert to float.  * @returns value of parameter converted to number or float.  */ function toFloat(value: string|number): number {   return typeof value === 'number' ? value : parseFloat(value); }  /**  * @description  * Defines the map of errors returned from failed validation checks.  *  * @publicApi  */ export type ValidationErrors = {   [key: string]: any };  /**  * @description  * An interface implemented by classes that perform synchronous validation.  *  * @usageNotes  *  * ### Provide a custom validator  *  * The following example implements the `Validator` interface to create a  * validator directive with a custom error key.  *  * ```typescript  * @Directive({  *   selector: '[customValidator]',  *   providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]  * })  * class CustomValidatorDirective implements Validator {  *   validate(control: AbstractControl): ValidationErrors|null {  *     return {'custom': true};  *   }  * }  * ```  *  * @publicApi  */ export interface Validator {   /**    * @description    * Method that performs synchronous validation against the provided control.    *    * @param control The control to validate against.    *    * @returns A map of validation errors if validation fails,    * otherwise null.    */   validate(control: AbstractControl): ValidationErrors|null;    /**    * @description    * Registers a callback function to call when the validator inputs change.    *    * @param fn The callback function    */   registerOnValidatorChange?(fn: () => void): void; }  /**  * A base class for Validator-based Directives. The class contains common logic shared across such  * Directives.  *  * For internal use only, this class is not intended for use outside of the Forms package.  */ @Directive() abstract class AbstractValidatorDirective implements Validator, OnChanges {   private _validator: ValidatorFn = nullValidator;   private _onChange!: () => void;    /**    * A flag that tracks whether this validator is enabled.    *    * Marking it `internal` (vs `protected`), so that this flag can be used in host bindings of    * directive classes that extend this base class.    * @internal    */   _enabled?: boolean;    /**    * Name of an input that matches directive selector attribute (e.g. `minlength` for    * `MinLengthDirective`). An input with a given name might contain configuration information (like    * `minlength='10'`) or a flag that indicates whether validator should be enabled (like    * `[required]='false'`).    *    * @internal    */   abstract inputName: string;    /**    * Creates an instance of a validator (specific to a directive that extends this base class).    *    * @internal    */   abstract createValidator(input: unknown): ValidatorFn;    /**    * Performs the necessary input normalization based on a specific logic of a Directive.    * For example, the function might be used to convert string-based representation of the    * `minlength` input to an integer value that can later be used in the `Validators.minLength`    * validator.    *    * @internal    */   abstract normalizeInput(input: unknown): unknown;    /** @nodoc */   ngOnChanges(changes: SimpleChanges): void {     if (this.inputName in changes) {       const input = this.normalizeInput(changes[this.inputName].currentValue);       this._enabled = this.enabled(input);       this._validator = this._enabled ? this.createValidator(input) : nullValidator;       if (this._onChange) {         this._onChange();       }     }   }    /** @nodoc */   validate(control: AbstractControl): ValidationErrors|null {     return this._validator(control);   }    /** @nodoc */   registerOnValidatorChange(fn: () => void): void {     this._onChange = fn;   }    /**    * @description    * Determines whether this validator should be active or not based on an input.    * Base class implementation checks whether an input is defined (if the value is different from    * `null` and `undefined`). Validator classes that extend this base class can override this    * function with the logic specific to a particular validator directive.    */   enabled(input: unknown): boolean {     return input != null /* both `null` and `undefined` */;   } }  /**  * @description  * Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MAX_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MaxValidator),   multi: true };  /**  * A directive which installs the {@link MaxValidator} for any `formControlName`,  * `formControl`, or control with `ngModel` that also has a `max` attribute.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a max validator  *  * The following example shows how to add a max validator to an input attached to an  * ngModel binding.  *  * ```html  * <input type=\"number\" ngModel max=\"4\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',   providers: [MAX_VALIDATOR],   host: {'[attr.max]': '_enabled ? max : null'} }) export class MaxValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the max bound to this directive.    */   @Input() max!: string|number|null;   /** @internal */   override inputName = 'max';   /** @internal */   override normalizeInput = (input: string|number): number => toFloat(input);   /** @internal */   override createValidator = (max: number): ValidatorFn => maxValidator(max); }  /**  * @description  * Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MIN_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MinValidator),   multi: true };  /**  * A directive which installs the {@link MinValidator} for any `formControlName`,  * `formControl`, or control with `ngModel` that also has a `min` attribute.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a min validator  *  * The following example shows how to add a min validator to an input attached to an  * ngModel binding.  *  * ```html  * <input type=\"number\" ngModel min=\"4\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector:       'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',   providers: [MIN_VALIDATOR],   host: {'[attr.min]': '_enabled ? min : null'} }) export class MinValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the min bound to this directive.    */   @Input() min!: string|number|null;   /** @internal */   override inputName = 'min';   /** @internal */   override normalizeInput = (input: string|number): number => toFloat(input);   /** @internal */   override createValidator = (min: number): ValidatorFn => minValidator(min); }  /**  * @description  * An interface implemented by classes that perform asynchronous validation.  *  * @usageNotes  *  * ### Provide a custom async validator directive  *  * The following example implements the `AsyncValidator` interface to create an  * async validator directive with a custom error key.  *  * ```typescript  * import { of } from 'rxjs';  *  * @Directive({  *   selector: '[customAsyncValidator]',  *   providers: [{provide: NG_ASYNC_VALIDATORS, useExisting: CustomAsyncValidatorDirective, multi:  * true}]  * })  * class CustomAsyncValidatorDirective implements AsyncValidator {  *   validate(control: AbstractControl): Observable<ValidationErrors|null> {  *     return of({'custom': true});  *   }  * }  * ```  *  * @publicApi  */ export interface AsyncValidator extends Validator {   /**    * @description    * Method that performs async validation against the provided control.    *    * @param control The control to validate against.    *    * @returns A promise or observable that resolves a map of validation errors    * if validation fails, otherwise null.    */   validate(control: AbstractControl):       Promise<ValidationErrors|null>|Observable<ValidationErrors|null>; }  /**  * @description  * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const REQUIRED_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => RequiredValidator),   multi: true };  /**  * @description  * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const CHECKBOX_REQUIRED_VALIDATOR: Provider = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => CheckboxRequiredValidator),   multi: true };   /**  * @description  * A directive that adds the `required` validator to any controls marked with the  * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a required validator using template-driven forms  *  * ```  * <input name=\"fullName\" ngModel required>  * ```  *  * @ngModule FormsModule  * @ngModule ReactiveFormsModule  * @publicApi  */ @Directive({   selector:       ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',   providers: [REQUIRED_VALIDATOR],   host: {'[attr.required]': '_enabled ? \"\" : null'} }) export class RequiredValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the required attribute bound to this directive.    */   @Input() required!: boolean|string;    /** @internal */   override inputName = 'required';    /** @internal */   override normalizeInput = coerceToBoolean;    /** @internal */   override createValidator = (input: boolean): ValidatorFn => requiredValidator;    /** @nodoc */   override enabled(input: boolean): boolean {     return input;   } }   /**  * A Directive that adds the `required` validator to checkbox controls marked with the  * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a required checkbox validator using template-driven forms  *  * The following example shows how to add a checkbox required validator to an input attached to an  * ngModel binding.  *  * ```  * <input type=\"checkbox\" name=\"active\" ngModel required>  * ```  *  * @publicApi  * @ngModule FormsModule  * @ngModule ReactiveFormsModule  */ @Directive({   selector:       'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',   providers: [CHECKBOX_REQUIRED_VALIDATOR],   host: {'[attr.required]': '_enabled ? \"\" : null'} }) export class CheckboxRequiredValidator extends RequiredValidator {   /** @internal */   override createValidator = (input: unknown): ValidatorFn => requiredTrueValidator; }  /**  * @description  * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const EMAIL_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => EmailValidator),   multi: true };  /**  * A directive that adds the `email` validator to controls marked with the  * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * The email validation is based on the WHATWG HTML specification with some enhancements to  * incorporate more RFC rules. More information can be found on the [Validators.email  * page](api/forms/Validators#email).  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding an email validator  *  * The following example shows how to add an email validator to an input attached to an ngModel  * binding.  *  * ```  * <input type=\"email\" name=\"email\" ngModel email>  * <input type=\"email\" name=\"email\" ngModel email=\"true\">  * <input type=\"email\" name=\"email\" ngModel [email]=\"true\">  * ```  *  * @publicApi  * @ngModule FormsModule  * @ngModule ReactiveFormsModule  */ @Directive({   selector: '[email][formControlName],[email][formControl],[email][ngModel]',   providers: [EMAIL_VALIDATOR] }) export class EmailValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the email attribute bound to this directive.    */   @Input() email!: boolean|string;    /** @internal */   override inputName = 'email';    /** @internal */   override normalizeInput = coerceToBoolean;    /** @internal */   override createValidator = (input: number): ValidatorFn => emailValidator;    /** @nodoc */   override enabled(input: boolean): boolean {     return input;   } }  /**  * @description  * A function that receives a control and synchronously returns a map of  * validation errors if present, otherwise null.  *  * @publicApi  */ export interface ValidatorFn {   (control: AbstractControl): ValidationErrors|null; }  /**  * @description  * A function that receives a control and returns a Promise or observable  * that emits validation errors if present, otherwise null.  *  * @publicApi  */ export interface AsyncValidatorFn {   (control: AbstractControl): Promise<ValidationErrors|null>|Observable<ValidationErrors|null>; }  /**  * @description  * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MIN_LENGTH_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MinLengthValidator),   multi: true };  /**  * A directive that adds minimum length validation to controls marked with the  * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a minimum length validator  *  * The following example shows how to add a minimum length validator to an input attached to an  * ngModel binding.  *  * ```html  * <input name=\"firstName\" ngModel minlength=\"4\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',   providers: [MIN_LENGTH_VALIDATOR],   host: {'[attr.minlength]': '_enabled ? minlength : null'} }) export class MinLengthValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the minimum length bound to this directive.    */   @Input() minlength!: string|number|null;    /** @internal */   override inputName = 'minlength';    /** @internal */   override normalizeInput = (input: string|number): number => toInteger(input);    /** @internal */   override createValidator = (minlength: number): ValidatorFn => minLengthValidator(minlength); }  /**  * @description  * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const MAX_LENGTH_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => MaxLengthValidator),   multi: true };  /**  * A directive that adds max length validation to controls marked with the  * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a maximum length validator  *  * The following example shows how to add a maximum length validator to an input attached to an  * ngModel binding.  *  * ```html  * <input name=\"firstName\" ngModel maxlength=\"25\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',   providers: [MAX_LENGTH_VALIDATOR],   host: {'[attr.maxlength]': '_enabled ? maxlength : null'} }) export class MaxLengthValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the minimum length bound to this directive.    */   @Input() maxlength!: string|number|null;    /** @internal */   override inputName = 'maxlength';    /** @internal */   override normalizeInput = (input: string|number): number => toInteger(input);    /** @internal */   override createValidator = (maxlength: number): ValidatorFn => maxLengthValidator(maxlength); }  /**  * @description  * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.  */ export const PATTERN_VALIDATOR: any = {   provide: NG_VALIDATORS,   useExisting: forwardRef(() => PatternValidator),   multi: true };   /**  * @description  * A directive that adds regex pattern validation to controls marked with the  * `pattern` attribute. The regex must match the entire control value.  * The directive is provided with the `NG_VALIDATORS` multi-provider list.  *  * @see [Form Validation](guide/form-validation)  *  * @usageNotes  *  * ### Adding a pattern validator  *  * The following example shows how to add a pattern validator to an input attached to an  * ngModel binding.  *  * ```html  * <input name=\"firstName\" ngModel pattern=\"[a-zA-Z ]*\">  * ```  *  * @ngModule ReactiveFormsModule  * @ngModule FormsModule  * @publicApi  */ @Directive({   selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',   providers: [PATTERN_VALIDATOR],   host: {'[attr.pattern]': '_enabled ? pattern : null'} }) export class PatternValidator extends AbstractValidatorDirective {   /**    * @description    * Tracks changes to the pattern bound to this directive.    */   @Input()   pattern!: string|RegExp;  // This input is always defined, since the name matches selector.    /** @internal */   override inputName = 'pattern';    /** @internal */   override normalizeInput = (input: string|RegExp): string|RegExp => input;    /** @internal */   override createValidator = (input: string|RegExp): ValidatorFn => patternValidator(input); } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {NgModule, Type} from '@angular/core';  import {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor'; import {DefaultValueAccessor} from './directives/default_value_accessor'; import {NgControlStatus, NgControlStatusGroup} from './directives/ng_control_status'; import {NgForm} from './directives/ng_form'; import {NgModel} from './directives/ng_model'; import {NgModelGroup} from './directives/ng_model_group'; import {NgNoValidate} from './directives/ng_no_validate_directive'; import {NumberValueAccessor} from './directives/number_value_accessor'; import {RadioControlRegistryModule, RadioControlValueAccessor} from './directives/radio_control_value_accessor'; import {RangeValueAccessor} from './directives/range_value_accessor'; import {FormControlDirective} from './directives/reactive_directives/form_control_directive'; import {FormControlName} from './directives/reactive_directives/form_control_name'; import {FormGroupDirective} from './directives/reactive_directives/form_group_directive'; import {FormArrayName, FormGroupName} from './directives/reactive_directives/form_group_name'; import {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor'; import {NgSelectMultipleOption, SelectMultipleControlValueAccessor} from './directives/select_multiple_control_value_accessor'; import {CheckboxRequiredValidator, EmailValidator, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, PatternValidator, RequiredValidator} from './directives/validators';  export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor'; export {ControlValueAccessor} from './directives/control_value_accessor'; export {DefaultValueAccessor} from './directives/default_value_accessor'; export {NgControl} from './directives/ng_control'; export {NgControlStatus, NgControlStatusGroup} from './directives/ng_control_status'; export {NgForm} from './directives/ng_form'; export {NgModel} from './directives/ng_model'; export {NgModelGroup} from './directives/ng_model_group'; export {NumberValueAccessor} from './directives/number_value_accessor'; export {RadioControlValueAccessor} from './directives/radio_control_value_accessor'; export {RangeValueAccessor} from './directives/range_value_accessor'; export {FormControlDirective, NG_MODEL_WITH_FORM_CONTROL_WARNING} from './directives/reactive_directives/form_control_directive'; export {FormControlName} from './directives/reactive_directives/form_control_name'; export {FormGroupDirective} from './directives/reactive_directives/form_group_directive'; export {FormArrayName, FormGroupName} from './directives/reactive_directives/form_group_name'; export {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor'; export {NgSelectMultipleOption, SelectMultipleControlValueAccessor} from './directives/select_multiple_control_value_accessor'; export {CALL_SET_DISABLED_STATE} from './directives/shared';  export const SHARED_FORM_DIRECTIVES: Type<any>[] = [   NgNoValidate,   NgSelectOption,   NgSelectMultipleOption,   DefaultValueAccessor,   NumberValueAccessor,   RangeValueAccessor,   CheckboxControlValueAccessor,   SelectControlValueAccessor,   SelectMultipleControlValueAccessor,   RadioControlValueAccessor,   NgControlStatus,   NgControlStatusGroup,   RequiredValidator,   MinLengthValidator,   MaxLengthValidator,   PatternValidator,   CheckboxRequiredValidator,   EmailValidator,   MinValidator,   MaxValidator, ];  export const TEMPLATE_DRIVEN_DIRECTIVES: Type<any>[] = [NgModel, NgModelGroup, NgForm];  export const REACTIVE_DRIVEN_DIRECTIVES: Type<any>[] =     [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];  /**  * Internal module used for sharing directives between FormsModule and ReactiveFormsModule  */ @NgModule({   declarations: SHARED_FORM_DIRECTIVES,   imports: [RadioControlRegistryModule],   exports: SHARED_FORM_DIRECTIVES, }) export class ɵInternalFormsSharedModule { }  export {ɵInternalFormsSharedModule as InternalFormsSharedModule}; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {AsyncValidatorFn, ValidatorFn} from '../directives/validators';  import {AbstractControl, AbstractControlOptions, assertAllValuesPresent, assertControlPresent, pickAsyncValidators, pickValidators, ɵRawValue, ɵTypedOrUntyped, ɵValue} from './abstract_model';  /**  * FormArrayValue extracts the type of `.value` from a FormArray's element type, and wraps it in an  * array.  *  * Angular uses this type internally to support Typed Forms; do not use it directly. The untyped  * case falls back to any[].  */ export type ɵFormArrayValue<T extends AbstractControl<any>> =     ɵTypedOrUntyped<T, Array<ɵValue<T>>, any[]>;  /**  * FormArrayRawValue extracts the type of `.getRawValue()` from a FormArray's element type, and  * wraps it in an array. The untyped case falls back to any[].  *  * Angular uses this type internally to support Typed Forms; do not use it directly.  */ export type ɵFormArrayRawValue<T extends AbstractControl<any>> =     ɵTypedOrUntyped<T, Array<ɵRawValue<T>>, any[]>;  /**  * Tracks the value and validity state of an array of `FormControl`,  * `FormGroup` or `FormArray` instances.  *  * A `FormArray` aggregates the values of each child `FormControl` into an array.  * It calculates its status by reducing the status values of its children. For example, if one of  * the controls in a `FormArray` is invalid, the entire array becomes invalid.  *  * `FormArray` accepts one generic argument, which is the type of the controls inside.  * If you need a heterogenous array, use {@link UntypedFormArray}.  *  * `FormArray` is one of the four fundamental building blocks used to define forms in Angular,  * along with `FormControl`, `FormGroup`, and `FormRecord`.  *  * @usageNotes  *  * ### Create an array of form controls  *  * ```  * const arr = new FormArray([  *   new FormControl('Nancy', Validators.minLength(2)),  *   new FormControl('Drew'),  * ]);  *  * console.log(arr.value);   // ['Nancy', 'Drew']  * console.log(arr.status);  // 'VALID'  * ```  *  * ### Create a form array with array-level validators  *  * You include array-level validators and async validators. These come in handy  * when you want to perform validation that considers the value of more than one child  * control.  *  * The two types of validators are passed in separately as the second and third arg  * respectively, or together as part of an options object.  *  * ```  * const arr = new FormArray([  *   new FormControl('Nancy'),  *   new FormControl('Drew')  * ], {validators: myValidator, asyncValidators: myAsyncValidator});  * ```  *  * ### Set the updateOn property for all controls in a form array  *  * The options object is used to set a default value for each child  * control's `updateOn` property. If you set `updateOn` to `'blur'` at the  * array level, all child controls default to 'blur', unless the child  * has explicitly specified a different `updateOn` value.  *  * ```ts  * const arr = new FormArray([  *    new FormControl()  * ], {updateOn: 'blur'});  * ```  *  * ### Adding or removing controls from a form array  *  * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods  * in `FormArray` itself. These methods ensure the controls are properly tracked in the  * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate  * the `FormArray` directly, as that result in strange and unexpected behavior such  * as broken change detection.  *  * @publicApi  */ export class FormArray<TControl extends AbstractControl<any> = any> extends AbstractControl<     ɵTypedOrUntyped<TControl, ɵFormArrayValue<TControl>, any>,     ɵTypedOrUntyped<TControl, ɵFormArrayRawValue<TControl>, any>> {   /**    * Creates a new `FormArray` instance.    *    * @param controls An array of child controls. Each child control is given an index    * where it is registered.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or an `AbstractControlOptions` object that contains validation functions    * and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions    *    */   constructor(       controls: Array<TControl>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null) {     super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));     this.controls = controls;     this._initObservables();     this._setUpdateStrategy(validatorOrOpts);     this._setUpControls();     this.updateValueAndValidity({       onlySelf: true,       // If `asyncValidator` is present, it will trigger control status change from `PENDING` to       // `VALID` or `INVALID`.       // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`       // to `true` to allow that during the control creation process.       emitEvent: !!this.asyncValidator     });   }    public controls: ɵTypedOrUntyped<TControl, Array<TControl>, Array<AbstractControl<any>>>;    /**    * Get the `AbstractControl` at the given `index` in the array.    *    * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap    *     around from the back, and if index is greatly negative (less than `-length`), the result is    * undefined. This behavior is the same as `Array.at(index)`.    */   at(index: number): ɵTypedOrUntyped<TControl, TControl, AbstractControl<any>> {     return (this.controls as any)[this._adjustIndex(index)];   }    /**    * Insert a new `AbstractControl` at the end of the array.    *    * @param control Form control to be inserted    * @param options Specifies whether this FormArray instance should emit events after a new    *     control is added.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * inserted. When false, no events are emitted.    */   push(control: TControl, options: {emitEvent?: boolean} = {}): void {     this.controls.push(control);     this._registerControl(control);     this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Insert a new `AbstractControl` at the given `index` in the array.    *    * @param index Index in the array to insert the control. If `index` is negative, wraps around    *     from the back. If `index` is greatly negative (less than `-length`), prepends to the array.    * This behavior is the same as `Array.splice(index, 0, control)`.    * @param control Form control to be inserted    * @param options Specifies whether this FormArray instance should emit events after a new    *     control is inserted.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * inserted. When false, no events are emitted.    */   insert(index: number, control: TControl, options: {emitEvent?: boolean} = {}): void {     this.controls.splice(index, 0, control);      this._registerControl(control);     this.updateValueAndValidity({emitEvent: options.emitEvent});   }    /**    * Remove the control at the given `index` in the array.    *    * @param index Index in the array to remove the control.  If `index` is negative, wraps around    *     from the back. If `index` is greatly negative (less than `-length`), removes the first    *     element. This behavior is the same as `Array.splice(index, 1)`.    * @param options Specifies whether this FormArray instance should emit events after a    *     control is removed.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * removed. When false, no events are emitted.    */   removeAt(index: number, options: {emitEvent?: boolean} = {}): void {     // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.     let adjustedIndex = this._adjustIndex(index);     if (adjustedIndex < 0) adjustedIndex = 0;      if (this.controls[adjustedIndex])       this.controls[adjustedIndex]._registerOnCollectionChange(() => {});     this.controls.splice(adjustedIndex, 1);     this.updateValueAndValidity({emitEvent: options.emitEvent});   }    /**    * Replace an existing control.    *    * @param index Index in the array to replace the control. If `index` is negative, wraps around    *     from the back. If `index` is greatly negative (less than `-length`), replaces the first    *     element. This behavior is the same as `Array.splice(index, 1, control)`.    * @param control The `AbstractControl` control to replace the existing control    * @param options Specifies whether this FormArray instance should emit events after an    *     existing control is replaced with a new one.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control is    * replaced with a new one. When false, no events are emitted.    */   setControl(index: number, control: TControl, options: {emitEvent?: boolean} = {}): void {     // Adjust the index, then clamp it at no less than 0 to prevent undesired underflows.     let adjustedIndex = this._adjustIndex(index);     if (adjustedIndex < 0) adjustedIndex = 0;      if (this.controls[adjustedIndex])       this.controls[adjustedIndex]._registerOnCollectionChange(() => {});     this.controls.splice(adjustedIndex, 1);      if (control) {       this.controls.splice(adjustedIndex, 0, control);       this._registerControl(control);     }      this.updateValueAndValidity({emitEvent: options.emitEvent});     this._onCollectionChange();   }    /**    * Length of the control array.    */   get length(): number {     return this.controls.length;   }    /**    * Sets the value of the `FormArray`. It accepts an array that matches    * the structure of the control.    *    * This method performs strict checks, and throws an error if you try    * to set the value of a control that doesn't exist or if you exclude the    * value of a control.    *    * @usageNotes    * ### Set the values for the controls in the form array    *    * ```    * const arr = new FormArray([    *   new FormControl(),    *   new FormControl()    * ]);    * console.log(arr.value);   // [null, null]    *    * arr.setValue(['Nancy', 'Drew']);    * console.log(arr.value);   // ['Nancy', 'Drew']    * ```    *    * @param value Array of values for the controls    * @param options Configure options that determine how the control propagates changes and    * emits events after the value changes    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default    * is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control value is updated.    * When false, no events are emitted.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    */   override setValue(value: ɵFormArrayRawValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     assertAllValuesPresent(this, false, value);     value.forEach((newValue: any, index: number) => {       assertControlPresent(this, false, index);       this.at(index).setValue(newValue, {onlySelf: true, emitEvent: options.emitEvent});     });     this.updateValueAndValidity(options);   }    /**    * Patches the value of the `FormArray`. It accepts an array that matches the    * structure of the control, and does its best to match the values to the correct    * controls in the group.    *    * It accepts both super-sets and sub-sets of the array without throwing an error.    *    * @usageNotes    * ### Patch the values for controls in a form array    *    * ```    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    * console.log(arr.value);   // [null, null]    *    * arr.patchValue(['Nancy']);    * console.log(arr.value);   // ['Nancy', null]    * ```    *    * @param value Array of latest values for the controls    * @param options Configure options that determine how the control propagates changes and    * emits events after the value changes    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default    * is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when the control    * value is updated. When false, no events are emitted. The configuration options are passed to    * the {@link AbstractControl#updateValueAndValidity updateValueAndValidity} method.    */   override patchValue(value: ɵFormArrayValue<TControl>, options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     // Even though the `value` argument type doesn't allow `null` and `undefined` values, the     // `patchValue` can be called recursively and inner data structures might have these values,     // so we just ignore such cases when a field containing FormArray instance receives `null` or     // `undefined` as a value.     if (value == null /* both `null` and `undefined` */) return;      value.forEach((newValue, index) => {       if (this.at(index)) {         this.at(index).patchValue(newValue, {onlySelf: true, emitEvent: options.emitEvent});       }     });     this.updateValueAndValidity(options);   }    /**    * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the    * value of all descendants to null or null maps.    *    * You reset to a specific form state by passing in an array of states    * that matches the structure of the control. The state is a standalone value    * or a form state object with both a value and a disabled status.    *    * @usageNotes    * ### Reset the values in a form array    *    * ```ts    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    * arr.reset(['name', 'last name']);    *    * console.log(arr.value);  // ['name', 'last name']    * ```    *    * ### Reset the values in a form array and the disabled status for the first control    *    * ```    * arr.reset([    *   {value: 'name', disabled: true},    *   'last'    * ]);    *    * console.log(arr.value);  // ['last']    * console.log(arr.at(0).status);  // 'DISABLED'    * ```    *    * @param value Array of values for the controls    * @param options Configure options that determine how the control propagates changes and    * emits events after the value changes    *    * * `onlySelf`: When true, each change only affects this control, and not its parent. Default    * is false.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges`    * observables emit events with the latest status and value when the control is reset.    * When false, no events are emitted.    * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity    * updateValueAndValidity} method.    */   override reset(value: ɵTypedOrUntyped<TControl, ɵFormArrayValue<TControl>, any> = [], options: {     onlySelf?: boolean,     emitEvent?: boolean   } = {}): void {     this._forEachChild((control: AbstractControl, index: number) => {       control.reset(value[index], {onlySelf: true, emitEvent: options.emitEvent});     });     this._updatePristine(options);     this._updateTouched(options);     this.updateValueAndValidity(options);   }    /**    * The aggregate value of the array, including any disabled controls.    *    * Reports all values regardless of disabled status.    */   override getRawValue(): ɵFormArrayRawValue<TControl> {     return this.controls.map((control: AbstractControl) => control.getRawValue());   }    /**    * Remove all controls in the `FormArray`.    *    * @param options Specifies whether this FormArray instance should emit events after all    *     controls are removed.    * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and    * `valueChanges` observables emit events with the latest status and value when all controls    * in this FormArray instance are removed. When false, no events are emitted.    *    * @usageNotes    * ### Remove all elements from a FormArray    *    * ```ts    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    * console.log(arr.length);  // 2    *    * arr.clear();    * console.log(arr.length);  // 0    * ```    *    * It's a simpler and more efficient alternative to removing all elements one by one:    *    * ```ts    * const arr = new FormArray([    *    new FormControl(),    *    new FormControl()    * ]);    *    * while (arr.length) {    *    arr.removeAt(0);    * }    * ```    */   clear(options: {emitEvent?: boolean} = {}): void {     if (this.controls.length < 1) return;     this._forEachChild((control) => control._registerOnCollectionChange(() => {}));     this.controls.splice(0);     this.updateValueAndValidity({emitEvent: options.emitEvent});   }    /**    * Adjusts a negative index by summing it with the length of the array. For very negative    * indices, the result may remain negative.    * @internal    */   private _adjustIndex(index: number): number {     return index < 0 ? index + this.length : index;   }    /** @internal */   override _syncPendingControls(): boolean {     let subtreeUpdated = (this.controls as any).reduce((updated: any, child: any) => {       return child._syncPendingControls() ? true : updated;     }, false);     if (subtreeUpdated) this.updateValueAndValidity({onlySelf: true});     return subtreeUpdated;   }    /** @internal */   override _forEachChild(cb: (c: AbstractControl, index: number) => void): void {     this.controls.forEach((control: AbstractControl, index: number) => {       cb(control, index);     });   }    /** @internal */   override _updateValue(): void {     (this as {value: any}).value =         this.controls.filter((control) => control.enabled || this.disabled)             .map((control) => control.value);   }    /** @internal */   override _anyControls(condition: (c: AbstractControl) => boolean): boolean {     return this.controls.some((control) => control.enabled && condition(control));   }    /** @internal */   _setUpControls(): void {     this._forEachChild((control) => this._registerControl(control));   }    /** @internal */   override _allControlsDisabled(): boolean {     for (const control of this.controls) {       if (control.enabled) return false;     }     return this.controls.length > 0 || this.disabled;   }    private _registerControl(control: AbstractControl) {     control.setParent(this);     control._registerOnCollectionChange(this._onCollectionChange);   }    /** @internal */   override _find(name: string|number): AbstractControl|null {     return this.at(name as number) ?? null;   } }  interface UntypedFormArrayCtor {   new(controls: AbstractControl[],       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormArray;    /**    * The presence of an explicit `prototype` property provides backwards-compatibility for apps that    * manually inspect the prototype chain.    */   prototype: FormArray<any>; }  /**  * UntypedFormArray is a non-strongly-typed version of @see FormArray, which  * permits heterogenous controls.  */ export type UntypedFormArray = FormArray<any>;  export const UntypedFormArray: UntypedFormArrayCtor = FormArray;  /**  * @description  * Asserts that the given control is an instance of `FormArray`  *  * @publicApi  */ export const isFormArray = (control: unknown): control is FormArray => control instanceof FormArray; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {inject, Injectable} from '@angular/core';  import {AsyncValidatorFn, ValidatorFn} from './directives/validators'; import {AbstractControl, AbstractControlOptions, FormHooks} from './model/abstract_model'; import {FormArray, UntypedFormArray} from './model/form_array'; import {FormControl, FormControlOptions, FormControlState, UntypedFormControl} from './model/form_control'; import {FormGroup, FormRecord, UntypedFormGroup} from './model/form_group';  function isAbstractControlOptions(options: AbstractControlOptions|{[key: string]: any}|null|                                   undefined): options is AbstractControlOptions {   return !!options &&       ((options as AbstractControlOptions).asyncValidators !== undefined ||        (options as AbstractControlOptions).validators !== undefined ||        (options as AbstractControlOptions).updateOn !== undefined); }  /**  * The union of all validator types that can be accepted by a ControlConfig.  */ type ValidatorConfig = ValidatorFn|AsyncValidatorFn|ValidatorFn[]|AsyncValidatorFn[];  /**  * The compiler may not always be able to prove that the elements of the control config are a tuple  * (i.e. occur in a fixed order). This slightly looser type is used for inference, to catch cases  * where the compiler cannot prove order and position.  *  * For example, consider the simple case `fb.group({foo: ['bar', Validators.required]})`. The  * compiler will infer this as an array, not as a tuple.  */ type PermissiveControlConfig<T> = Array<T|FormControlState<T>|ValidatorConfig>;  /**  * Helper type to allow the compiler to accept [XXXX, { updateOn: string }] as a valid shorthand  * argument for .group()  */ interface PermissiveAbstractControlOptions extends Omit<AbstractControlOptions, 'updateOn'> {   updateOn?: string; }  /**  * ControlConfig<T> is a tuple containing a value of type T, plus optional validators and async  * validators.  *  * @publicApi  */ export type ControlConfig<T> = [T|FormControlState<T>, (ValidatorFn|(ValidatorFn[]))?, (AsyncValidatorFn|AsyncValidatorFn[])?];  // Disable clang-format to produce clearer formatting for this multiline type. // clang-format off  /**  * FormBuilder accepts values in various container shapes, as well as raw values.  * Element returns the appropriate corresponding model class, given the container T.  * The flag N, if not never, makes the resulting `FormControl` have N in its type.  */ export type ɵElement<T, N extends null> =   // The `extends` checks are wrapped in arrays in order to prevent TypeScript from applying type unions   // through the distributive conditional type. This is the officially recommended solution:   // https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types   //   // Identify FormControl container types.   [T] extends [FormControl<infer U>] ? FormControl<U> :   // Or FormControl containers that are optional in their parent group.   [T] extends [FormControl<infer U>|undefined] ? FormControl<U> :   // FormGroup containers.   [T] extends [FormGroup<infer U>] ? FormGroup<U> :   // Optional FormGroup containers.   [T] extends [FormGroup<infer U>|undefined] ? FormGroup<U> :   // FormRecord containers.   [T] extends [FormRecord<infer U>] ? FormRecord<U> :   // Optional FormRecord containers.   [T] extends [FormRecord<infer U>|undefined] ? FormRecord<U> :   // FormArray containers.   [T] extends [FormArray<infer U>] ? FormArray<U> :   // Optional FormArray containers.   [T] extends [FormArray<infer U>|undefined] ? FormArray<U> :   // Otherwise unknown AbstractControl containers.   [T] extends [AbstractControl<infer U>] ? AbstractControl<U> :   // Optional AbstractControl containers.   [T] extends [AbstractControl<infer U>|undefined] ? AbstractControl<U> :   // FormControlState object container, which produces a nullable control.   [T] extends [FormControlState<infer U>] ? FormControl<U|N> :   // A ControlConfig tuple, which produces a nullable control.   [T] extends [PermissiveControlConfig<infer U>] ? FormControl<Exclude<U, ValidatorConfig| PermissiveAbstractControlOptions>|N> :   FormControl<T|N>;  // clang-format on  /**  * @description  * Creates an `AbstractControl` from a user-specified configuration.  *  * The `FormBuilder` provides syntactic sugar that shortens creating instances of a  * `FormControl`, `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to  * build complex forms.  *  * @see [Reactive Forms Guide](guide/reactive-forms)  *  * @publicApi  */ @Injectable({providedIn: 'root'}) export class FormBuilder {   private useNonNullable: boolean = false;    /**    * @description    * Returns a FormBuilder in which automatically constructed @see FormControl} elements    * have `{nonNullable: true}` and are non-nullable.    *    * **Constructing non-nullable controls**    *    * When constructing a control, it will be non-nullable, and will reset to its initial value.    *    * ```ts    * let nnfb = new FormBuilder().nonNullable;    * let name = nnfb.control('Alex'); // FormControl<string>    * name.reset();    * console.log(name); // 'Alex'    * ```    *    * **Constructing non-nullable groups or arrays**    *    * When constructing a group or array, all automatically created inner controls will be    * non-nullable, and will reset to their initial values.    *    * ```ts    * let nnfb = new FormBuilder().nonNullable;    * let name = nnfb.group({who: 'Alex'}); // FormGroup<{who: FormControl<string>}>    * name.reset();    * console.log(name); // {who: 'Alex'}    * ```    * **Constructing *nullable* fields on groups or arrays**    *    * It is still possible to have a nullable field. In particular, any `FormControl` which is    * *already* constructed will not be altered. For example:    *    * ```ts    * let nnfb = new FormBuilder().nonNullable;    * // FormGroup<{who: FormControl<string|null>}>    * let name = nnfb.group({who: new FormControl('Alex')});    * name.reset(); console.log(name); // {who: null}    * ```    *    * Because the inner control is constructed explicitly by the caller, the builder has    * no control over how it is created, and cannot exclude the `null`.    */   get nonNullable(): NonNullableFormBuilder {     const nnfb = new FormBuilder();     nnfb.useNonNullable = true;     return nnfb as NonNullableFormBuilder;   }    /**    * @description    * Constructs a new `FormGroup` instance. Accepts a single generic argument, which is an object    * containing all the keys and corresponding inner control types.    *    * @param controls A collection of child controls. The key for each child is the name    * under which it is registered.    *    * @param options Configuration options object for the `FormGroup`. The object should have the    * `AbstractControlOptions` type and might contain the following fields:    * * `validators`: A synchronous validator function, or an array of validator functions.    * * `asyncValidators`: A single async validator or array of async validator functions.    * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'    * | submit').    */   group<T extends {}>(       controls: T,       options?: AbstractControlOptions|null,       ): FormGroup<{[K in keyof T]: ɵElement<T[K], null>}>;    /**    * @description    * Constructs a new `FormGroup` instance.    *    * @deprecated This API is not typesafe and can result in issues with Closure Compiler renaming.    * Use the `FormBuilder#group` overload with `AbstractControlOptions` instead.    * Note that `AbstractControlOptions` expects `validators` and `asyncValidators` to be valid    * validators. If you have custom validators, make sure their validation function parameter is    * `AbstractControl` and not a sub-class, such as `FormGroup`. These functions will be called    * with an object of type `AbstractControl` and that cannot be automatically downcast to a    * subclass, so TypeScript sees this as an error. For example, change the `(group: FormGroup) =>    * ValidationErrors|null` signature to be `(group: AbstractControl) => ValidationErrors|null`.    *    * @param controls A record of child controls. The key for each child is the name    * under which the control is registered.    *    * @param options Configuration options object for the `FormGroup`. The legacy configuration    * object consists of:    * * `validator`: A synchronous validator function, or an array of validator functions.    * * `asyncValidator`: A single async validator or array of async validator functions    * Note: the legacy format is deprecated and might be removed in one of the next major versions    * of Angular.    */   group(       controls: {[key: string]: any},       options: {[key: string]: any},       ): FormGroup;    group(controls: {[key: string]: any}, options: AbstractControlOptions|{[key: string]:                                                                              any}|null = null):       FormGroup {     const reducedControls = this._reduceControls(controls);     let newOptions: FormControlOptions = {};     if (isAbstractControlOptions(options)) {       // `options` are `AbstractControlOptions`       newOptions = options;     } else if (options !== null) {       // `options` are legacy form group options       newOptions.validators = (options as any).validator;       newOptions.asyncValidators = (options as any).asyncValidator;     }     return new FormGroup(reducedControls, newOptions);   }    /**    * @description    * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object    * containing all the keys and corresponding inner control types.    *    * @param controls A collection of child controls. The key for each child is the name    * under which it is registered.    *    * @param options Configuration options object for the `FormRecord`. The object should have the    * `AbstractControlOptions` type and might contain the following fields:    * * `validators`: A synchronous validator function, or an array of validator functions.    * * `asyncValidators`: A single async validator or array of async validator functions.    * * `updateOn`: The event upon which the control should be updated (options: 'change' | 'blur'    * | submit').    */   record<T>(controls: {[key: string]: T}, options: AbstractControlOptions|null = null):       FormRecord<ɵElement<T, null>> {     const reducedControls = this._reduceControls(controls);     // Cast to `any` because the inferred types are not as specific as Element.     return new FormRecord(reducedControls, options) as any;   }    /** @deprecated Use `nonNullable` instead. */   control<T>(formState: T|FormControlState<T>, opts: FormControlOptions&{     initialValueIsDefault: true   }): FormControl<T>;    control<T>(formState: T|FormControlState<T>, opts: FormControlOptions&{nonNullable: true}):       FormControl<T>;    /**    * @deprecated When passing an `options` argument, the `asyncValidator` argument has no effect.    */   control<T>(       formState: T|FormControlState<T>, opts: FormControlOptions,       asyncValidator: AsyncValidatorFn|AsyncValidatorFn[]): FormControl<T|null>;    control<T>(       formState: T|FormControlState<T>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl<T|null>;    /**    * @description    * Constructs a new `FormControl` with the given state, validators and options. Sets    * `{nonNullable: true}` in the options to get a non-nullable control. Otherwise, the    * control will be nullable. Accepts a single generic argument, which is the type  of the    * control's value.    *    * @param formState Initializes the control with an initial state value, or    * with an object that contains both a value and a disabled status.    *    * @param validatorOrOpts A synchronous validator function, or an array of    * such functions, or a `FormControlOptions` object that contains    * validation functions and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator    * functions.    *    * @usageNotes    *    * ### Initialize a control as disabled    *    * The following example returns a control with an initial value in a disabled state.    *    * <code-example path=\"forms/ts/formBuilder/form_builder_example.ts\" region=\"disabled-control\">    * </code-example>    */   control<T>(       formState: T|FormControlState<T>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl {     let newOptions: FormControlOptions = {};     if (!this.useNonNullable) {       return new FormControl(formState, validatorOrOpts, asyncValidator);     }     if (isAbstractControlOptions(validatorOrOpts)) {       // If the second argument is options, then they are copied.       newOptions = validatorOrOpts;     } else {       // If the other arguments are validators, they are copied into an options object.       newOptions.validators = validatorOrOpts;       newOptions.asyncValidators = asyncValidator;     }     return new FormControl<T>(formState, {...newOptions, nonNullable: true});   }    /**    * Constructs a new `FormArray` from the given array of configurations,    * validators and options. Accepts a single generic argument, which is the type of each control    * inside the array.    *    * @param controls An array of child controls or control configs. Each child control is given an    *     index when it is registered.    *    * @param validatorOrOpts A synchronous validator function, or an array of such functions, or an    *     `AbstractControlOptions` object that contains    * validation functions and a validation trigger.    *    * @param asyncValidator A single async validator or array of async validator functions.    */   array<T>(       controls: Array<T>, validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormArray<ɵElement<T, null>> {     const createdControls = controls.map(c => this._createControl(c));     // Cast to `any` because the inferred types are not as specific as Element.     return new FormArray(createdControls, validatorOrOpts, asyncValidator) as any;   }    /** @internal */   _reduceControls<T>(controls:                          {[k: string]: T|ControlConfig<T>|FormControlState<T>|AbstractControl<T>}):       {[key: string]: AbstractControl} {     const createdControls: {[key: string]: AbstractControl} = {};     Object.keys(controls).forEach(controlName => {       createdControls[controlName] = this._createControl(controls[controlName]);     });     return createdControls;   }    /** @internal */   _createControl<T>(controls: T|FormControlState<T>|ControlConfig<T>|FormControl<T>|                     AbstractControl<T>): FormControl<T>|FormControl<T|null>|AbstractControl<T> {     if (controls instanceof FormControl) {       return controls as FormControl<T>;     } else if (controls instanceof AbstractControl) {  // A control; just return it       return controls;     } else if (Array.isArray(controls)) {  // ControlConfig Tuple       const value: T|FormControlState<T> = controls[0];       const validator: ValidatorFn|ValidatorFn[]|null = controls.length > 1 ? controls[1]! : null;       const asyncValidator: AsyncValidatorFn|AsyncValidatorFn[]|null =           controls.length > 2 ? controls[2]! : null;       return this.control<T>(value, validator, asyncValidator);     } else {  // T or FormControlState<T>       return this.control<T>(controls);     }   } }  /**  * @description  * `NonNullableFormBuilder` is similar to {@link FormBuilder}, but automatically constructed  * {@link FormControl} elements have `{nonNullable: true}` and are non-nullable.  *  * @publicApi  */ @Injectable({   providedIn: 'root',   useFactory: () => inject(FormBuilder).nonNullable, }) export abstract class NonNullableFormBuilder {   /**    * Similar to `FormBuilder#group`, except any implicitly constructed `FormControl`    * will be non-nullable (i.e. it will have `nonNullable` set to true). Note    * that already-constructed controls will not be altered.    */   abstract group<T extends {}>(       controls: T,       options?: AbstractControlOptions|null,       ): FormGroup<{[K in keyof T]: ɵElement<T[K], never>}>;    /**    * Similar to `FormBuilder#record`, except any implicitly constructed `FormControl`    * will be non-nullable (i.e. it will have `nonNullable` set to true). Note    * that already-constructed controls will not be altered.    */   abstract record<T>(       controls: {[key: string]: T},       options?: AbstractControlOptions|null,       ): FormRecord<ɵElement<T, never>>;    /**    * Similar to `FormBuilder#array`, except any implicitly constructed `FormControl`    * will be non-nullable (i.e. it will have `nonNullable` set to true). Note    * that already-constructed controls will not be altered.    */   abstract array<T>(       controls: Array<T>, validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormArray<ɵElement<T, never>>;    /**    * Similar to `FormBuilder#control`, except this overridden version of `control` forces    * `nonNullable` to be `true`, resulting in the control always being non-nullable.    */   abstract control<T>(       formState: T|FormControlState<T>,       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): FormControl<T>; }  /**  * UntypedFormBuilder is the same as @see FormBuilder, but it provides untyped controls.  */ @Injectable({providedIn: 'root'}) export class UntypedFormBuilder extends FormBuilder {   /**    * Like `FormBuilder#group`, except the resulting group is untyped.    */   override group(       controlsConfig: {[key: string]: any},       options?: AbstractControlOptions|null,       ): UntypedFormGroup;    /**    * @deprecated This API is not typesafe and can result in issues with Closure Compiler renaming.    * Use the `FormBuilder#group` overload with `AbstractControlOptions` instead.    */   override group(       controlsConfig: {[key: string]: any},       options: {[key: string]: any},       ): UntypedFormGroup;    override group(       controlsConfig: {[key: string]: any},       options: AbstractControlOptions|{[key: string]: any}|null = null): UntypedFormGroup {     return super.group(controlsConfig, options);   }    /**    * Like `FormBuilder#control`, except the resulting control is untyped.    */   override control(       formState: any, validatorOrOpts?: ValidatorFn|ValidatorFn[]|FormControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormControl {     return super.control(formState, validatorOrOpts, asyncValidator);   }    /**    * Like `FormBuilder#array`, except the resulting array is untyped.    */   override array(       controlsConfig: any[],       validatorOrOpts?: ValidatorFn|ValidatorFn[]|AbstractControlOptions|null,       asyncValidator?: AsyncValidatorFn|AsyncValidatorFn[]|null): UntypedFormArray {     return super.array(controlsConfig, validatorOrOpts, asyncValidator);   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of the forms package.  */  import {Version} from '@angular/core';  /**  * @publicApi  */ export const VERSION = new Version('15.2.0'); ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  import {ModuleWithProviders, NgModule} from '@angular/core';  import {InternalFormsSharedModule, NG_MODEL_WITH_FORM_CONTROL_WARNING, REACTIVE_DRIVEN_DIRECTIVES, TEMPLATE_DRIVEN_DIRECTIVES} from './directives'; import {CALL_SET_DISABLED_STATE, setDisabledStateDefault, SetDisabledStateOption} from './directives/shared';  /**  * Exports the required providers and directives for template-driven forms,  * making them available for import by NgModules that import this module.  *  * Providers associated with this module:  * * `RadioControlRegistry`  *  * @see [Forms Overview](/guide/forms-overview)  * @see [Template-driven Forms Guide](/guide/forms)  *  * @publicApi  */ @NgModule({   declarations: TEMPLATE_DRIVEN_DIRECTIVES,   exports: [InternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES] }) export class FormsModule {   /**    * @description    * Provides options for configuring the forms module.    *    * @param opts An object of configuration options    * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more    * correct, or to only call it `whenDisabled`, which is the legacy behavior.    */   static withConfig(opts: {     callSetDisabledState?: SetDisabledStateOption,   }): ModuleWithProviders<FormsModule> {     return {       ngModule: FormsModule,       providers: [{         provide: CALL_SET_DISABLED_STATE,         useValue: opts.callSetDisabledState ?? setDisabledStateDefault       }]     };   } }  /**  * Exports the required infrastructure and directives for reactive forms,  * making them available for import by NgModules that import this module.  *  * Providers associated with this module:  * * `FormBuilder`  * * `RadioControlRegistry`  *  * @see [Forms Overview](guide/forms-overview)  * @see [Reactive Forms Guide](guide/reactive-forms)  *  * @publicApi  */ @NgModule({   declarations: [REACTIVE_DRIVEN_DIRECTIVES],   exports: [InternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES] }) export class ReactiveFormsModule {   /**    * @description    * Provides options for configuring the reactive forms module.    *    * @param opts An object of configuration options    * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`    * binding is used with reactive form directives.    * * `callSetDisabledState` Configures whether to `always` call `setDisabledState`, which is more    * correct, or to only call it `whenDisabled`, which is the legacy behavior.    */   static withConfig(opts: {                     /** @deprecated as of v6 */ warnOnNgModelWithFormControl?: 'never'|'once'|                                                                             'always',                     callSetDisabledState?: SetDisabledStateOption,                     }): ModuleWithProviders<ReactiveFormsModule> {     return {       ngModule: ReactiveFormsModule,       providers: [         {           provide: NG_MODEL_WITH_FORM_CONTROL_WARNING,           useValue: opts.warnOnNgModelWithFormControl ?? 'always'         },         {           provide: CALL_SET_DISABLED_STATE,           useValue: opts.callSetDisabledState ?? setDisabledStateDefault         }       ]     };   } } ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * This module is used for handling user input, by defining and building a `FormGroup` that  * consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`  * objects can then be used to read information from the form DOM elements.  *  * Forms providers are not included in default providers; you must import these providers  * explicitly.  */  export {ɵInternalFormsSharedModule} from './directives'; export {AbstractControlDirective} from './directives/abstract_control_directive'; export {AbstractFormGroupDirective} from './directives/abstract_form_group_directive'; export {CheckboxControlValueAccessor} from './directives/checkbox_value_accessor'; export {ControlContainer} from './directives/control_container'; export {ControlValueAccessor, NG_VALUE_ACCESSOR} from './directives/control_value_accessor'; export {COMPOSITION_BUFFER_MODE, DefaultValueAccessor} from './directives/default_value_accessor'; export {Form} from './directives/form_interface'; export {NgControl} from './directives/ng_control'; export {NgControlStatus, NgControlStatusGroup} from './directives/ng_control_status'; export {NgForm} from './directives/ng_form'; export {NgModel} from './directives/ng_model'; export {NgModelGroup} from './directives/ng_model_group'; export {ɵNgNoValidate} from './directives/ng_no_validate_directive'; export {NumberValueAccessor} from './directives/number_value_accessor'; export {RadioControlValueAccessor} from './directives/radio_control_value_accessor'; export {RangeValueAccessor} from './directives/range_value_accessor'; export {FormControlDirective} from './directives/reactive_directives/form_control_directive'; export {FormControlName} from './directives/reactive_directives/form_control_name'; export {FormGroupDirective} from './directives/reactive_directives/form_group_directive'; export {FormArrayName, FormGroupName} from './directives/reactive_directives/form_group_name'; export {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor'; export {SelectMultipleControlValueAccessor, ɵNgSelectMultipleOption} from './directives/select_multiple_control_value_accessor'; export {SetDisabledStateOption} from './directives/shared'; export {AsyncValidator, AsyncValidatorFn, CheckboxRequiredValidator, EmailValidator, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, PatternValidator, RequiredValidator, ValidationErrors, Validator, ValidatorFn} from './directives/validators'; export {ControlConfig, FormBuilder, NonNullableFormBuilder, UntypedFormBuilder, ɵElement} from './form_builder'; export {AbstractControl, AbstractControlOptions, FormControlStatus, ɵCoerceStrArrToNumArr, ɵGetProperty, ɵNavigate, ɵRawValue, ɵTokenize, ɵTypedOrUntyped, ɵValue, ɵWriteable} from './model/abstract_model'; export {FormArray, isFormArray, UntypedFormArray, ɵFormArrayRawValue, ɵFormArrayValue} from './model/form_array'; export {FormControl, FormControlOptions, FormControlState, isFormControl, UntypedFormControl, ɵFormControlCtor} from './model/form_control'; export {FormGroup, FormRecord, isFormGroup, isFormRecord, UntypedFormGroup, ɵFormGroupRawValue, ɵFormGroupValue, ɵOptionalKeys} from './model/form_group'; export {NG_ASYNC_VALIDATORS, NG_VALIDATORS, Validators} from './validators'; export {VERSION} from './version';  export * from './form_providers'; ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  /**  * @module  * @description  * Entry point for all public APIs of this package.  */ export * from './src/forms';  // This file only reexports content of the `src` folder. Keep it that way. ","/**  * @license  * Copyright Google LLC All Rights Reserved.  *  * Use of this source code is governed by an MIT-style license that can be  * found in the LICENSE file at https://angular.io/license  */  // This file is not used to build this module. It is only used during editing // by the TypeScript language service and during build for verification. `ngc` // replaces this file with production index.ts when it rewrites private symbol // names.  export * from './public_api'; ","/**  * Generated bundle index. Do not edit.  */  export * from './index'; "],"names":["getDOM","NG_DEV_MODE","isPromise","isObservable","RuntimeError","i1.NgControl","i2.ControlContainer","removeListItem","formDirectiveProvider","resolvedPromise","i1.ControlContainer","formControlBinding","coerceToBoolean","_buildValueString","_extractId","NgNoValidate","NgSelectMultipleOption","InternalFormsSharedModule","i1.NgModel","i2.NgModelGroup","i3.NgForm","i4.FormControlDirective","i5.FormGroupDirective","i6.FormControlName","i7.FormGroupName","i7.FormArrayName"],"mappings":";;;;;;;;;;;;AAqIA;;;;;;AAMG;MAEU,wBAAwB,CAAA;IAcnC,WAAoB,CAAA,SAAoB,EAAU,WAAuB,EAAA;QAArD,IAAS,CAAA,SAAA,GAAT,SAAS,CAAW;QAAU,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;AAbzE;;;;AAIG;AACH,QAAA,IAAA,CAAA,QAAQ,GAAG,CAAC,CAAM,KAAI,GAAG,CAAC;AAE1B;;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OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,qHAFpBA,0BAAyB,EAAAI,oBAAA,EAAAC,kBAAA,EAAAC,eAAA,EAAAC,aAAA,EAAAC,aAAA,CAAA,EAAA,CAAA,CAAA;AAExB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAFpBR,0BAAyB,CAAA,EAAA,CAAA,CAAA;sGAExB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,0BAA0B,CAAC;AAC1C,oBAAA,OAAO,EAAE,CAACA,0BAAyB,EAAE,0BAA0B,CAAC;AACjE,iBAAA,CAAA;;;AC3DD;;;;;;;;;AASG;;ACTH;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}



======================================================================

To the extent any open source components are licensed under the GPL
and/or LGPL, or other similar licenses that require the source code
and/or modifications to source code to be made available (as would be
noted above), you may obtain a copy of the source code corresponding to
the binaries for such open source components and modifications thereto,
if any, (the "Source Files"), by downloading the Source Files from
VMware's website at http://www.vmware.com/download/open_source.html, or
by sending a request, with your name and address to: VMware, Inc., 3401
Hillview Avenue, Palo Alto, CA 94304, United States of America. All such
requests should clearly specify: OPEN SOURCE FILES REQUEST, Attention
General Counsel. VMware shall mail a copy of the Source Files to you on
a CD or equivalent physical medium. This offer to obtain a copy of the
Source Files is valid for three years from the date you acquired this
Software product. Alternatively, the Source Files may accompany the
VMware service.

[VCDUISDK1504GARS110123]