@pronto-tools-and-more/files 4.5.0 → 4.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/files/framework/src/default/content/assets/FONTAWESOME_LICENSE.txt +34 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-Bold.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-Italic.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-Light.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-LightItalic.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-Regular.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-SemiBold.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/files/framework/src/default/content/assets/fonts/RobotoSlab-Bold.ttf +0 -0
- package/files/framework/src/default/content/assets/ic_arrow.svg +1 -0
- package/files/framework/src/default/content/assets/ic_audio.svg +19 -0
- package/files/framework/src/default/content/assets/ic_bookmark.svg +10 -0
- package/files/framework/src/default/content/assets/ic_bookmark_active.svg +9 -0
- package/files/framework/src/default/content/assets/ic_close.svg +16 -0
- package/files/framework/src/default/content/assets/ic_download.svg +13 -0
- package/files/framework/src/default/content/assets/ic_download_circle.svg +15 -0
- package/files/framework/src/default/content/assets/ic_download_completed.svg +12 -0
- package/files/framework/src/default/content/assets/ic_download_completed_circle.svg +12 -0
- package/files/framework/src/default/content/assets/ic_downloading.svg +13 -0
- package/files/framework/src/default/content/assets/ic_downloading_circle.svg +15 -0
- package/files/framework/src/default/content/assets/ic_font_size.svg +1 -0
- package/files/framework/src/default/content/assets/ic_left.svg +15 -0
- package/files/framework/src/default/content/assets/ic_left_arrow.svg +11 -0
- package/files/framework/src/default/content/assets/ic_night_mode.svg +20 -0
- package/files/framework/src/default/content/assets/ic_night_mode_active.svg +20 -0
- package/files/framework/src/default/content/assets/ic_overlay_loading.svg +13 -0
- package/files/framework/src/default/content/assets/ic_pause.svg +19 -0
- package/files/framework/src/default/content/assets/ic_play.svg +16 -0
- package/files/framework/src/default/content/assets/ic_player.svg +19 -0
- package/files/framework/src/default/content/assets/ic_player_active.svg +19 -0
- package/files/framework/src/default/content/assets/ic_right.svg +15 -0
- package/files/framework/src/default/content/assets/ic_right_arrow.svg +11 -0
- package/files/framework/src/default/content/assets/ic_seek_back.svg +19 -0
- package/files/framework/src/default/content/assets/ic_seek_forward.svg +19 -0
- package/files/framework/src/default/content/assets/ic_settings.svg +16 -0
- package/files/framework/src/default/content/assets/ic_share_android.svg +11 -0
- package/files/framework/src/default/content/assets/ic_share_ios.svg +13 -0
- package/files/framework/src/default/content/assets/ic_speech.svg +15 -0
- package/files/framework/src/default/content/assets/ic_speech_female.svg +11 -0
- package/files/framework/src/default/content/assets/ic_speech_male.svg +11 -0
- package/files/framework/src/default/content/assets/ic_speech_rate.svg +11 -0
- package/files/framework/src/default/content/assets/ic_toc.svg +22 -0
- package/files/framework/src/default/content/assets/ic_video.svg +21 -0
- package/files/framework/src/default/content/assets/ic_zoom.svg +1 -0
- package/files/framework/src/default/content/assets/img/spinner.gif +0 -0
- package/files/framework/src/default/content/assets/logo.png +0 -0
- package/files/framework/src/default/content/assets/swiper/swiper-bundle.min.css +13 -0
- package/files/framework/src/default/content/assets/swiper/swiper-bundle.min.js +1 -0
- package/files/framework/src/default/content/assets/tail-spin.gif +0 -0
- package/files/framework/src/default/content/assets/tail-spin.svg +32 -0
- package/files/framework/src/default/content/core.css +29 -0
- package/files/framework/src/default/content/core.js +10896 -0
- package/files/framework/src/default/content/functions.css +2 -0
- package/files/framework/src/default/content/functions.js +1 -0
- package/files/framework/src/default/content/publish-press-author.css +407 -0
- package/files/framework/src/default/content/publish-press-author.js +290 -0
- package/files/framework/src/default/content/resources.json +1 -0
- package/files/framework/src/default/content/theme.css +16 -0
- package/files/framework/src/default/content/theme.js +720 -0
- package/files/framework/src/default/content/tts.css +7 -0
- package/files/framework/src/default/content/tts.js +5 -0
- package/files/framework/src/default/content/uag.css +20 -0
- package/files/framework/src/default/content/uag.js +166 -0
- package/files/framework/src/default/info/css/style.css +328 -0
- package/files/framework/src/default/info/font-awesome/HELP-US-OUT.txt +7 -0
- package/files/framework/src/default/info/font-awesome/css/font-awesome.css +2337 -0
- package/files/framework/src/default/info/font-awesome/css/font-awesome.min.css +4 -0
- package/files/framework/src/default/info/font-awesome/fonts/FontAwesome.otf +0 -0
- package/files/framework/src/default/info/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- package/files/framework/src/default/info/font-awesome/fonts/fontawesome-webfont.svg +2671 -0
- package/files/framework/src/default/info/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- package/files/framework/src/default/info/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- package/files/framework/src/default/info/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/files/framework/src/default/info/font-awesome/less/animated.less +34 -0
- package/files/framework/src/default/info/font-awesome/less/bordered-pulled.less +25 -0
- package/files/framework/src/default/info/font-awesome/less/core.less +12 -0
- package/files/framework/src/default/info/font-awesome/less/fixed-width.less +6 -0
- package/files/framework/src/default/info/font-awesome/less/font-awesome.less +18 -0
- package/files/framework/src/default/info/font-awesome/less/icons.less +789 -0
- package/files/framework/src/default/info/font-awesome/less/larger.less +13 -0
- package/files/framework/src/default/info/font-awesome/less/list.less +19 -0
- package/files/framework/src/default/info/font-awesome/less/mixins.less +60 -0
- package/files/framework/src/default/info/font-awesome/less/path.less +15 -0
- package/files/framework/src/default/info/font-awesome/less/rotated-flipped.less +20 -0
- package/files/framework/src/default/info/font-awesome/less/screen-reader.less +5 -0
- package/files/framework/src/default/info/font-awesome/less/stacked.less +20 -0
- package/files/framework/src/default/info/font-awesome/less/variables.less +800 -0
- package/files/framework/src/default/info/font-awesome/scss/_animated.scss +34 -0
- package/files/framework/src/default/info/font-awesome/scss/_bordered-pulled.scss +25 -0
- package/files/framework/src/default/info/font-awesome/scss/_core.scss +12 -0
- package/files/framework/src/default/info/font-awesome/scss/_fixed-width.scss +6 -0
- package/files/framework/src/default/info/font-awesome/scss/_icons.scss +789 -0
- package/files/framework/src/default/info/font-awesome/scss/_larger.scss +13 -0
- package/files/framework/src/default/info/font-awesome/scss/_list.scss +19 -0
- package/files/framework/src/default/info/font-awesome/scss/_mixins.scss +60 -0
- package/files/framework/src/default/info/font-awesome/scss/_path.scss +15 -0
- package/files/framework/src/default/info/font-awesome/scss/_rotated-flipped.scss +20 -0
- package/files/framework/src/default/info/font-awesome/scss/_screen-reader.scss +5 -0
- package/files/framework/src/default/info/font-awesome/scss/_stacked.scss +20 -0
- package/files/framework/src/default/info/font-awesome/scss/_variables.scss +800 -0
- package/files/framework/src/default/info/font-awesome/scss/font-awesome.scss +18 -0
- package/files/framework/src/default/info/fonts/Roboto-Bold.ttf +0 -0
- package/files/framework/src/default/info/fonts/Roboto-Italic.ttf +0 -0
- package/files/framework/src/default/info/fonts/Roboto-Light.ttf +0 -0
- package/files/framework/src/default/info/fonts/Roboto-LightItalic.ttf +0 -0
- package/files/framework/src/default/info/fonts/Roboto-Medium.ttf +0 -0
- package/files/framework/src/default/info/fonts/Roboto-MediumItalic.ttf +0 -0
- package/files/framework/src/default/info/fonts/Roboto-Regular.ttf +0 -0
- package/files/framework/src/default/info/img/banner.png +0 -0
- package/files/framework/src/default/info/index.html +94 -0
- package/files/framework/src/default/info/theme.css +181 -0
- package/files/framework/src/default/menuicons/account.png +0 -0
- package/files/framework/src/default/menuicons/account@2x.png +0 -0
- package/files/framework/src/default/menuicons/account@3x.png +0 -0
- package/files/framework/src/default/menuicons/bookmarks.png +0 -0
- package/files/framework/src/default/menuicons/bookmarks@2x.png +0 -0
- package/files/framework/src/default/menuicons/bookmarks@3x.png +0 -0
- package/files/framework/src/default/menuicons/calendar.png +0 -0
- package/files/framework/src/default/menuicons/calendar@2x.png +0 -0
- package/files/framework/src/default/menuicons/calendar@3x.png +0 -0
- package/files/framework/src/default/menuicons/chain.png +0 -0
- package/files/framework/src/default/menuicons/chain@2x.png +0 -0
- package/files/framework/src/default/menuicons/chain@3x.png +0 -0
- package/files/framework/src/default/menuicons/feedback.png +0 -0
- package/files/framework/src/default/menuicons/feedback@2x.png +0 -0
- package/files/framework/src/default/menuicons/feedback@3x.png +0 -0
- package/files/framework/src/default/menuicons/forum.png +0 -0
- package/files/framework/src/default/menuicons/forum@2x.png +0 -0
- package/files/framework/src/default/menuicons/forum@3x.png +0 -0
- package/files/framework/src/default/menuicons/info.png +0 -0
- package/files/framework/src/default/menuicons/kiosk.png +0 -0
- package/files/framework/src/default/menuicons/kiosk@2x.png +0 -0
- package/files/framework/src/default/menuicons/kiosk@3x.png +0 -0
- package/files/framework/src/default/menuicons/legal.png +0 -0
- package/files/framework/src/default/menuicons/legal@2x.png +0 -0
- package/files/framework/src/default/menuicons/legal@3x.png +0 -0
- package/files/framework/src/default/menuicons/login.png +0 -0
- package/files/framework/src/default/menuicons/login@2x.png +0 -0
- package/files/framework/src/default/menuicons/login@3x.png +0 -0
- package/files/framework/src/default/menuicons/logout.png +0 -0
- package/files/framework/src/default/menuicons/logout@2x.png +0 -0
- package/files/framework/src/default/menuicons/logout@3x.png +0 -0
- package/files/framework/src/default/menuicons/newsfeed.png +0 -0
- package/files/framework/src/default/menuicons/newsfeed@2x.png +0 -0
- package/files/framework/src/default/menuicons/newsfeed@3x.png +0 -0
- package/files/framework/src/default/menuicons/newsstand.png +0 -0
- package/files/framework/src/default/menuicons/newsstand@2x.png +0 -0
- package/files/framework/src/default/menuicons/newsstand@3x.png +0 -0
- package/files/framework/src/default/menuicons/purple.png +0 -0
- package/files/framework/src/default/menuicons/purple@2x.png +0 -0
- package/files/framework/src/default/menuicons/purple@3x.png +0 -0
- package/files/framework/src/default/menuicons/restore.png +0 -0
- package/files/framework/src/default/menuicons/restore@2x.png +0 -0
- package/files/framework/src/default/menuicons/restore@3x.png +0 -0
- package/files/framework/src/default/menuicons/settings.png +0 -0
- package/files/framework/src/default/menuicons/share.png +0 -0
- package/files/framework/src/default/menuicons/share@2x.png +0 -0
- package/files/framework/src/default/menuicons/share@3x.png +0 -0
- package/files/framework/src/default/menuicons/shop.png +0 -0
- package/files/framework/src/default/menuicons/shop@2x.png +0 -0
- package/files/framework/src/default/menuicons/shop@3x.png +0 -0
- package/files/framework/src/default/menuicons/socialmedia.png +0 -0
- package/files/framework/src/default/menuicons/socialmedia@2x.png +0 -0
- package/files/framework/src/default/menuicons/socialmedia@3x.png +0 -0
- package/files/framework/src/default/menuicons/subscriptions.png +0 -0
- package/files/framework/src/default/menuicons/subscriptions@2x.png +0 -0
- package/files/framework/src/default/menuicons/subscriptions@3x.png +0 -0
- package/files/framework/src/default/menuicons/voucher.png +0 -0
- package/files/framework/src/default/menuicons/voucher@2x.png +0 -0
- package/files/framework/src/default/menuicons/voucher@3x.png +0 -0
- package/files/framework/src/default/menuicons/website.png +0 -0
- package/files/framework/src/default/menuicons/website@2x.png +0 -0
- package/files/framework/src/default/menuicons/website@3x.png +0 -0
- package/files/framework/src/default/onboarding/3rdpartylicenses.txt +574 -0
- package/files/framework/src/default/onboarding/assets/config/message.json +7 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding.json +48 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/1_Welcome.png +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/2_MenuPhone.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/2_MenuTablet.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/3_NewsstandPhone.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/3_NewsstandTablet.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/4_PublicationPhone.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/4_PublicationTablet.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/5_NewsfeedPhone.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/5_NewsfeedTablet.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/6_FeaturesPhone.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_images/6_FeaturesTablet.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_videos/BLI_Cover-Image-Video_1.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/onboarding_videos/BLI_Cover-Image-Video_4.jpg +0 -0
- package/files/framework/src/default/onboarding/assets/config/style.json +19 -0
- package/files/framework/src/default/onboarding/assets/config/url.json +5 -0
- package/files/framework/src/default/onboarding/assets/font/Ionicons/ionicons.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-Bold.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-BoldItalic.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-ExtraBold.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-Italic.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-Light.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-LightItalic.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-Regular.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-SemiBold.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/OpenSans/OpenSans-SemiBoldItalic.ttf +0 -0
- package/files/framework/src/default/onboarding/assets/font/fonts.css +73 -0
- package/files/framework/src/default/onboarding/favicon.ico +0 -0
- package/files/framework/src/default/onboarding/index.html +15 -0
- package/files/framework/src/default/onboarding/main.js +1 -0
- package/files/framework/src/default/onboarding/polyfills-es5.js +1 -0
- package/files/framework/src/default/onboarding/polyfills.js +1 -0
- package/files/framework/src/default/onboarding/runtime.js +1 -0
- package/files/framework/src/default/onboarding/styles.css +1 -0
- package/files/framework/src/default/onboarding/vendor.js +1 -0
- package/files/framework/src/default/readmode/custom.js +40 -0
- package/files/framework/src/default/readmode/ic_audio.svg +19 -0
- package/files/framework/src/default/readmode/ic_close.svg +16 -0
- package/files/framework/src/default/readmode/ic_font_size.svg +1 -0
- package/files/framework/src/default/readmode/ic_night_mode.svg +20 -0
- package/files/framework/src/default/readmode/ic_pause.svg +19 -0
- package/files/framework/src/default/readmode/ic_play.svg +16 -0
- package/files/framework/src/default/readmode/ic_speech.svg +15 -0
- package/files/framework/src/default/readmode/ic_speech_female.svg +11 -0
- package/files/framework/src/default/readmode/ic_speech_male.svg +11 -0
- package/files/framework/src/default/storefront/3rdpartylicenses.txt +962 -0
- package/files/framework/src/default/storefront/assets/access.json +10 -0
- package/files/framework/src/default/storefront/assets/appBar.json +1 -0
- package/files/framework/src/default/storefront/assets/banner/banner_not_found.jpg +0 -0
- package/files/framework/src/default/storefront/assets/downloadOptions.json +1 -0
- package/files/framework/src/default/storefront/assets/faq.html +87 -0
- package/files/framework/src/default/storefront/assets/features.json +3 -0
- package/files/framework/src/default/storefront/assets/generic-widget.json +1 -0
- package/files/framework/src/default/storefront/assets/login.html +329 -0
- package/files/framework/src/default/storefront/assets/navigation.json +1 -0
- package/files/framework/src/default/storefront/assets/platform.css +7 -0
- package/files/framework/src/default/storefront/assets/submit.css +7 -0
- package/files/framework/src/default/storefront/assets/subscription-benefits.json +11 -0
- package/files/framework/src/default/storefront/assets/termsofuse.html +123 -0
- package/files/framework/src/default/storefront/assets/tts_config.json +3 -0
- package/files/framework/src/default/storefront/assets/urls.json +11 -0
- package/files/framework/src/default/storefront/buildInfo.json +7 -0
- package/files/framework/src/default/storefront/deep-link-landing/index.html +1 -0
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js +842 -0
- package/files/framework/src/default/storefront/deep-link-landing/purple-deep-link-landing.js.LICENSE.txt +13 -0
- package/files/framework/src/default/storefront/index.html +21 -0
- package/files/framework/src/default/storefront/modules/DS_logo.svg +1 -0
- package/files/framework/src/default/storefront/modules/alphaMask.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_backward.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_first.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_forward.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_fullwidth.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_fullwidth_active.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_last.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_pin.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_toc.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_zoom.png +0 -0
- package/files/framework/src/default/storefront/modules/btn_zoom_active.png +0 -0
- package/files/framework/src/default/storefront/modules/common.js +1 -0
- package/files/framework/src/default/storefront/modules/default-node_modules_angular_forms_fesm2022_forms_mjs.js +1 -0
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_base-component_base-datacollection_component_ts-4706f8.js +1 -0
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_content_content_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_component_issue_issue_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/default-projects_storefront_src_app_service_tts_tts_service_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/ic_backward.svg +16 -0
- package/files/framework/src/default/storefront/modules/ic_close.svg +16 -0
- package/files/framework/src/default/storefront/modules/ic_forward.svg +16 -0
- package/files/framework/src/default/storefront/modules/ic_fullscreen.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_fullscreen@2x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_fullscreen@3x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_overlay_loading.svg +13 -0
- package/files/framework/src/default/storefront/modules/ic_pause.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_pause.svg +19 -0
- package/files/framework/src/default/storefront/modules/ic_pause@2x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_pause@3x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_play.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_play.svg +16 -0
- package/files/framework/src/default/storefront/modules/ic_play@2x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_play@3x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_player.svg +17 -0
- package/files/framework/src/default/storefront/modules/ic_player_active.svg +17 -0
- package/files/framework/src/default/storefront/modules/ic_refresh.svg +16 -0
- package/files/framework/src/default/storefront/modules/ic_seek_back.svg +19 -0
- package/files/framework/src/default/storefront/modules/ic_seek_forward.svg +19 -0
- package/files/framework/src/default/storefront/modules/ic_settings.svg +16 -0
- package/files/framework/src/default/storefront/modules/ic_smallscreen.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_smallscreen@2x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_smallscreen@3x.png +0 -0
- package/files/framework/src/default/storefront/modules/ic_speech.svg +15 -0
- package/files/framework/src/default/storefront/modules/ic_speech_female.svg +11 -0
- package/files/framework/src/default/storefront/modules/ic_speech_male.svg +11 -0
- package/files/framework/src/default/storefront/modules/icon_close.png +0 -0
- package/files/framework/src/default/storefront/modules/main.js +1 -0
- package/files/framework/src/default/storefront/modules/node_modules_clientjs_dist_client_base_min_js.js +1 -0
- package/files/framework/src/default/storefront/modules/node_modules_mustache_mustache_js.js +1 -0
- package/files/framework/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_vendor_js.js +1 -0
- package/files/framework/src/default/storefront/modules/node_modules_purple_web-player_dist_webPresenter_js_webPresenter_min_js.js +1 -0
- package/files/framework/src/default/storefront/modules/polyfills.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_common-pipes_common-pipes_module_ts-projects_storefront_src_app_c-94b9b6.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_action-executor_action-executor_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ad_ad_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_app-menu-xml_app-menu-xml_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_base-component_base-datacollection_component_ts-project-6cb588.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_bookmark_bookmark_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-body_content-body_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_catalog-content_content-featured-image_content-featured-c9ba26.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_category_category_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_collection_collection_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_component_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_coupon_coupon_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dev-components_user-tag-testing_user-tag-testing_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_download-issues_download-issues_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_dropdown_dropdown_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_embeddable-view_embeddable-view_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_iframe_iframe_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_issue-search-result_issue-search-result_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_login_login_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_menu_menu_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_product_product_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication-completion_publication-completion_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_publication_publication_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_recommendations_recommendations_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_search-field_search-field_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_subscription_subscription_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_swiper_swiper_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_ticker_ticker_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toggle_toggle_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_toolbar_toolbar_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_web-presenter_presenter_presenter_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_component_widget_widget_module_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/projects_storefront_src_app_config_common_config_ts.js +1 -0
- package/files/framework/src/default/storefront/modules/runtime.js +1 -0
- package/files/framework/src/default/storefront/modules/styles.css +1 -0
- package/package.json +1 -1
@@ -0,0 +1,842 @@
|
|
1
|
+
/*! For license information please see purple-deep-link-landing.js.LICENSE.txt */
|
2
|
+
(()=>{var __webpack_modules__={8287:e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(){for(var e,n,r=[],i=window,o=i;o;){try{if(o.frames.__tcfapiLocator){e=o;break}}catch(e){}if(o===i.top)break;o=o.parent}e||(function e(){var t=i.document,n=!!i.frames.__tcfapiLocator;if(!n)if(t.body){var r=t.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",t.body.appendChild(r)}else setTimeout(e,5);return!n}(),i.__tcfapi=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!t.length)return r;"setGdprApplies"===t[0]?t.length>3&&2===parseInt(t[1],10)&&"boolean"==typeof t[3]&&(n=t[3],"function"==typeof t[2]&&t[2]("set",!0)):"ping"===t[0]?"function"==typeof t[2]&&t[2]({gdprApplies:n,cmpLoaded:!1,cmpStatus:"stub"}):r.push(t)},i.addEventListener("message",(function(e){var n="string"==typeof e.data,r={};if(n)try{r=JSON.parse(e.data)}catch(e){}else r=e.data;var i="object"===t(r)&&null!==r?r.__tcfapiCall:null;i&&window.__tcfapi(i.command,i.version,(function(t,r){var o={__tcfapiReturn:{returnValue:t,success:r,callId:i.callId}};e&&e.source&&e.source.postMessage&&e.source.postMessage(n?JSON.stringify(o):o,"*")}),i.parameter)}),!1))}},1606:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5316),t)},4144:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9870),t)},9870:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AssignLocalPurchasesMode=void 0,function(e){e.UNASSIGNED="UNASSIGNED",e.REASSIGN="REASSIGN",e.ASSIGN="ASSIGN"}(n||(t.AssignLocalPurchasesMode=n={}))},3212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5245:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.APP_STATE_TYPE=void 0,function(e){e.STARTED="STARTED",e.RESUMED="RESUMED",e.PAUSED="PAUSED",e.STOPPED="STOPPED"}(n||(t.APP_STATE_TYPE=n={}))},8961:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9947:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(e){e.DAY="DAY",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR"}(n||(t.AppSubscriptionAdditionalBackIssueUnlocksType=n={}))},3443:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.AppSubscriptionType=t.AppSubscriptionDuration=void 0,function(e){e.SEVEN_DAYS="SEVEN_DAYS",e.TWO_WEEKS="TWO_WEEKS",e.ONE_MONTH="ONE_MONTH",e.TWO_MONTHS="TWO_MONTHS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS",e.ONE_YEAR="ONE_YEAR"}(n||(t.AppSubscriptionDuration=n={})),function(e){e.FREE="FREE",e.AUTORENEWABLE="AUTORENEWABLE",e.NONAUTORENEWABLE="NONAUTORENEWABLE"}(r||(t.AppSubscriptionType=r={}))},2473:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9600:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3977:(e,t)=>{"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ContentResourceType=t.CatalogBundleType=t.CatalogContentType=t.Access=void 0,function(e){e.FREE="FREE",e.HIDDEN="HIDDEN",e.PURCHASABLE="PURCHASABLE"}(n||(t.Access=n={})),function(e){e.ISSUE="ISSUE",e.POST="POST",e.BUNDLE="BUNDLE"}(r||(t.CatalogContentType=r={})),function(e){e.ISSUE="ISSUE",e.DOSSIER="DOSSIER"}(i||(t.CatalogBundleType=i={})),function(e){e.ASSET="ASSET",e.CONTENT_BUNDLE="CONTENT_BUNDLE"}(o||(t.ContentResourceType=o={}))},7983:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CatalogIssueStateError=t.CatalogIssueInstallState=void 0,function(e){e.NOT_INSTALLED="NOT_INSTALLED",e.INCOMPLETE="INCOMPLETE",e.COMPLETE="COMPLETE"}(n||(t.CatalogIssueInstallState=n={})),function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(r||(t.CatalogIssueStateError=r={}))},2267:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.IssueType=t.PurchaseOption=void 0,function(e){e.APP_STORE_PURCHASE="APP_STORE_PURCHASE",e.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",e.ENTITLEMENT="ENTITLEMENT",e.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",e.TRIAL="TRIAL",e.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT"}(n||(t.PurchaseOption=n={})),function(e){e.ARTICLE="ARTICLE",e.ISSUE="ISSUE"}(r||(t.IssueType=r={}))},593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4228:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3608:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PublicationType=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(n||(t.PublicationType=n={}))},4573:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},963:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5843:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8002:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n||(t.SortDirection=n={}))},8100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9182:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8188:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5403:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5686:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3271:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6663:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2526:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODE=void 0,function(e){e.ACCESS_DENIED="ACCESS_DENIED",e.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",e.ALREADY_OWNED="ALREADY_OWNED",e.CANCELLED="CANCELLED",e.CONFIGURATION_ERROR="CONFIGURATION_ERROR",e.DUPLICATE_CODE="DUPLICATE_CODE",e.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",e.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",e.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.INVALID_CODE="INVALID_CODE",e.INVALID_CREDENTIALS="INVALID_CREDENTIALS",e.NETWORK="NETWORK",e.NO_ISSUES_FOUND="NO_ISSUES_FOUND",e.NOT_AVAILABLE="NOT_AVAILABLE",e.NOT_FOUND="NOT_FOUND",e.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",e.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",e.NOT_HANDLED="NOT_HANDLED",e.NOTHING_LOADED="NOTHING_LOADED",e.NOT_LOGGED_IN="NOT_LOGGED_IN",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.UNKNOWN="UNKNOWN",e.UNKNOWN_CODE="UNKNOWN_CODE",e.UNKNOWN_OFFER="UNKNOWN_OFFER",e.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",e.UNKNOWN_VENDOR="UNKNOWN_VENDOR",e.USER_DEACTIVATED="USER_DEACTIVATED",e.VALIDATION_FAILED="VALIDATION_FAILED"}(n||(t.ERROR_CODE=n={}))},9765:(e,t)=>{"use strict";var n,r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ListOperation=t.IntOperation=t.DateOperation=t.StringOperation=void 0,function(e){e.EQUAL="EQUAL",e.CONTAINS="CONTAINS",e.STARTS_WITH="STARTS_WITH",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.REGEX="REGEX"}(n||(t.StringOperation=n={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(r||(t.DateOperation=r={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(i||(t.IntOperation=i={})),function(e){e.CONTAINS="CONTAINS",e.CONTAINS_ONLY="CONTAINS_ONLY"}(o||(t.ListOperation=o={}))},6219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6421:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},104:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5862:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4612:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(3443),t),i(n(9947),t),i(n(9600),t),i(n(3977),t),i(n(2267),t),i(n(7983),t),i(n(4794),t),i(n(4228),t),i(n(3608),t),i(n(4573),t),i(n(963),t),i(n(8002),t),i(n(8100),t),i(n(8188),t),i(n(5403),t),i(n(6863),t),i(n(5686),t),i(n(3271),t),i(n(2526),t),i(n(6663),t),i(n(9765),t),i(n(2212),t),i(n(6421),t),i(n(6451),t),i(n(9816),t),i(n(104),t),i(n(7554),t),i(n(6051),t),i(n(5862),t),i(n(2791),t),i(n(8574),t),i(n(666),t),i(n(9100),t),i(n(853),t),i(n(9314),t),i(n(9417),t),i(n(9918),t),i(n(7795),t),i(n(9051),t),i(n(5871),t),i(n(9510),t),i(n(9541),t),i(n(9383),t),i(n(6018),t),i(n(3460),t),i(n(7997),t),i(n(9954),t),i(n(4955),t),i(n(3534),t),i(n(377),t),i(n(3210),t),i(n(3768),t),i(n(4446),t),i(n(5783),t),i(n(3423),t),i(n(1209),t),i(n(4861),t),i(n(4460),t),i(n(5334),t),i(n(8333),t),i(n(7632),t),i(n(7397),t),i(n(7751),t),i(n(8090),t),i(n(7168),t),i(n(1708),t),i(n(593),t),i(n(8492),t),i(n(588),t),i(n(7620),t),i(n(7717),t),i(n(5843),t),i(n(9182),t),i(n(6216),t),i(n(2473),t),i(n(6219),t),i(n(8346),t),i(n(3576),t),i(n(7401),t)},666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9100:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9918:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8492:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7401:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5871:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9383:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3460:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PublicationProductType=void 0,function(e){e.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",e.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(n||(t.PublicationProductType=n={}))},9954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3534:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},377:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SystemConsentStatus=void 0,function(e){e.GRANTED="GRANTED",e.DENIED="DENIED",e.UNDETERMINED="UNDETERMINED"}(n||(t.SystemConsentStatus=n={}))},3210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3768:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5783:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SearchResultSortCriteria=void 0,function(e){e.RELEVANCE="RELEVANCE",e.PUB_DATE_DESC="PUB_DATE_DESC"}(n||(t.SearchResultSortCriteria=n={}))},3423:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SearchField=void 0,function(e){e.CONTENT="CONTENT",e.CONTENT_NAME="CONTENT_NAME",e.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",e.CUSTOM_TERMS="CUSTOM_TERMS"}(n||(t.SearchField=n={}))},1209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4460:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.StartDownloadError=void 0,function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(n||(t.StartDownloadError=n={}))},5334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8333:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7632:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7397:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8090:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7168:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9290:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7418:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CONNECTION_TYPE=t.CONNECTION_STATE=void 0,function(e){e.ONLINE="ONLINE",e.OFFLINE="OFFLINE"}(n||(t.CONNECTION_STATE=n={})),function(e){e.TYPE_3G="TYPE_3G",e.TYPE_WLAN="TYPE_WLAN"}(r||(t.CONNECTION_TYPE=r={}))},8562:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9329),t),i(n(4998),t)},9329:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ElementAlignment=void 0,function(e){e.TOP_LEFT="TOP_LEFT",e.TOP_CENTER="TOP_CENTER",e.TOP_RIGHT="TOP_RIGHT",e.CENTER_LEFT="CENTER_LEFT",e.CENTER_CENTER="CENTER_CENTER",e.CENTER_RIGHT="CENTER_RIGHT",e.BOTTOM_LEFT="BOTTOM_LEFT",e.BOTTOM_CENTER="BOTTOM_CENTER",e.BOTTOM_RIGHT="BOTTOM_RIGHT"}(n||(t.ElementAlignment=n={}))},4998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2997:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.DisplayMode=t.DISPLAY_MODE=void 0,function(e){e.EMBEDDED="embedded",e.MODAL="modal"}(n||(t.DISPLAY_MODE=n={})),function(e){e.EMBEDDED="EMBEDDED",e.MODAL="MODAL"}(r||(t.DisplayMode=r={}))},4433:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ENTITLEMENT_MODE=void 0,function(e){e.ENTITLEMENT="entitlement",e.OAUTH="oauth",e.NONE="none"}(n||(t.ENTITLEMENT_MODE=n={}))},5316:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(3212),t),i(n(5245),t),i(n(9290),t),i(n(7418),t),i(n(2997),t),i(n(4433),t),i(n(3441),t),i(n(7173),t),i(n(5385),t),i(n(1846),t),i(n(6301),t),i(n(5751),t),i(n(4878),t),i(n(5380),t),i(n(8286),t),i(n(8891),t),i(n(9529),t),i(n(1038),t),i(n(6515),t),i(n(3344),t),i(n(1272),t),i(n(1752),t),i(n(3293),t),i(n(8853),t),i(n(2448),t),i(n(8961),t),i(n(9788),t),i(n(4612),t),i(n(8562),t),i(n(9318),t),i(n(2414),t),i(n(4144),t)},7173:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5385:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ISSUE_STATE=void 0,function(e){e.PURCHASABLE="PURCHASABLE",e.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",e.DOWNLOADING="DOWNLOADING",e.AVAILABLE="AVAILABLE",e.INSTALLING="INSTALLING",e.UPDATE="UPDATE",e.INSTALLED="INSTALLED",e.LOCKED="LOCKED",e.COMING_SOON="COMING_SOON",e.INDEXING="INDEXING",e.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",e.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(n||(t.ISSUE_STATE=n={}))},3441:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6301:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MEDIA_PLAYBACK_STATE=void 0,function(e){e.NONE="NONE",e.ERROR="ERROR",e.LOADING="LOADING",e.READY="READY",e.PLAYING="PLAYING"}(n||(t.MEDIA_PLAYBACK_STATE=n={}))},5751:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Platform=void 0,function(e){e.ANDROID="android",e.IOS="ios"}(n||(t.Platform=n={}))},4878:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PUBLICATION_TYPE=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(n||(t.PUBLICATION_TYPE=n={}))},9529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1038:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenFileMode=t.OpenFileTarget=void 0,function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(n||(t.OpenFileTarget=n={})),function(e){e.MODAL="MODAL",e.EMBEDDED="EMBEDDED"}(r||(t.OpenFileMode=r={}))},6515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3344:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.METADATA_KEY=void 0,function(e){e.APP_ID="app_id",e.APP_VERSION="app_version",e.BUNDLE_ID="bundle_id",e.DEEPLINK_SCHEME="deeplink_scheme",e.PREVIEW_APP="preview_app",e.DEVICE_ID="device_id",e.DEVICE_MODEL="device_model",e.DEVICE_OS="device_os",e.PLATFORM="platform",e.LOCALE="locale",e.MANAGER_BASE_URL="manager_base_url",e.PUSH_REGISTRATION_TOKEN="push_registration_token",e.ENTITLEMENT_LOGIN="entitlement_login",e.ENTITLEMENT_TOKEN="entitlement_token",e.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",e.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",e.ENTITLEMENT_MODE="entitlement_mode",e.ISSUE_ID="issue_id",e.ISSUE_NAME="issue_name",e.PUBLICATION_ID="publication_id",e.PUBLICATION_NAME="publication_name",e.PAGE_ID="page_id",e.PAGE_ALIAS="page_alias",e.PAGE_TITLE="page_title",e.PAGE_INDEX="page_index",e.PAGE_FILENAME="page_filename",e.PURPLE_VERSION="purple_version",e.ONBOARDING_MODE="onboarding_mode"}(n||(t.METADATA_KEY=n={}))},1272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1752:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2414:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1882),t),i(n(1328),t),i(n(5412),t),i(n(3197),t),i(n(185),t)},1882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LAST_VISITED_PATH=void 0,t.LAST_VISITED_PATH="lastVisitedPath"},1773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9318:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1773),t),i(n(9613),t),i(n(3597),t),i(n(833),t),i(n(1498),t),i(n(2582),t),i(n(5754),t),i(n(1061),t),i(n(4435),t),i(n(4143),t),i(n(7784),t),i(n(3574),t),i(n(1894),t),i(n(3782),t),i(n(3328),t)},5754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1061:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4435:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1894:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3782:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ProrationMode=void 0,function(e){e.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",e.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",e.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",e.DEFERRED="DEFERRED"}(n||(t.ProrationMode=n={}))},3328:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3293:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.SUBSCRIPTION_STATE=void 0,function(e){e.NONE="NONE",e.PURCHASING="PURCHASING",e.VALIDATING="VALIDATING",e.PURCHASED="PURCHASED"}(n||(t.SUBSCRIPTION_STATE=n={}))},8853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2448:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_STOREFRONT_ERROR_CODE=t.UPDATE_STOREFRONT_TYPE=void 0,function(e){e.PARTIAL="PARTIAL",e.FULL="FULL",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT"}(n||(t.UPDATE_STOREFRONT_TYPE=n={})),function(e){e.OFFLINE="OFFLINE",e.UNKNOWN="UNKNOWN"}(r||(t.UPDATE_STOREFRONT_ERROR_CODE=r={}))},9788:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7035:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6758),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([e.id,"@import'../assets/colors.css';body{display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%}.custom-html{opacity:1;transition:opacity linear .5s}.custom-html.uninitialized{opacity:0}.storefront-spinner{--spinnerColor: var(--primaryColor);display:block;max-width:100px}.storefront-spinner.hidden{display:none}",""]);const a=s},3122:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6758),i=n.n(r),o=n(935),s=n.n(o)()(i());s.push([e.id,".storefront-spinner.button-spinner,storefront-spinner.button-spinner{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;background-color:rgba(0,0,0,.2);padding:8px;margin:0}.storefront-spinner[type=tail] stop,storefront-spinner[type=tail] stop{stop-color:var(--spinnerColor)}.storefront-spinner[type=tail] circle,storefront-spinner[type=tail] circle{fill:var(--spinnerColor)}.storefront-spinner[type=dots] circle,storefront-spinner[type=dots] circle{fill:var(--spinnerColor)}.storefront-spinner[type=oval] svg,storefront-spinner[type=oval] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=puff] svg,storefront-spinner[type=puff] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=rings] svg,storefront-spinner[type=rings] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g,storefront-spinner[type=spinningCircles] g{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g circle,storefront-spinner[type=spinningCircles] g circle{fill:var(--spinnerColor)}.storefront-spinner[type=segments] g,storefront-spinner[type=segments] g{stroke:var(--spinnerColor)}",""]);const a=s},935:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&s[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},6758:e=>{"use strict";e.exports=function(e){return e[1]}},3464:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",s="day",a="week",u="month",c="quarter",l="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,u),o=n-i<0,s=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:a,d:s,D:d,h:o,m:i,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",E={};E[y]=g;var _="$isDayjsObject",b=function(e){return e instanceof w||!(!e||!e[_])},S=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();E[o]&&(i=o),n&&(E[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;E[a]=t,i=a}return!r&&i&&(y=i),i||!r&&y},C=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},I=v;I.l=S,I.i=b,I.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var m=g.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return I},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return C(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<C(e)},m.$g=function(e,t,n){return I.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,c=!!I.u(t)||t,h=I.p(e),p=function(e,t){var r=I.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(s)},f=function(e,t){return I.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case l:return c?p(1,0):p(31,11);case u:return c?p(1,m):p(0,m+1);case a:var E=this.$locale().weekStart||0,_=(g<E?g+7:g)-E;return p(c?v-_:v+(6-_),m);case s:case d:return f(y+"Hours",0);case o:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case r:return f(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var a,c=I.p(e),h="set"+(this.$u?"UTC":""),p=(a={},a[s]=h+"Date",a[d]=h+"Date",a[u]=h+"Month",a[l]=h+"FullYear",a[o]=h+"Hours",a[i]=h+"Minutes",a[r]=h+"Seconds",a[n]=h+"Milliseconds",a)[c],f=c===s?this.$D+(t-this.$W):t;if(c===u||c===l){var g=this.clone().set(d,1);g.$d[p](f),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[I.p(e)]()},m.add=function(n,c){var d,h=this;n=Number(n);var p=I.p(c),f=function(e){var t=C(h);return I.w(t.date(t.date()+Math.round(e*n)),h)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===s)return f(1);if(p===a)return f(7);var g=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[p]||1,m=this.$d.getTime()+n*g;return I.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=I.z(this),o=this.$H,s=this.$m,a=this.$M,u=n.weekdays,c=n.months,l=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},p=function(e){return I.s(o%12||12,e,"0")},g=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return I.s(t.$y,4,"0");case"M":return a+1;case"MM":return I.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return I.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,u,2);case"ddd":return d(n.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return I.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,s,!0);case"A":return g(o,s,!1);case"m":return String(s);case"mm":return I.s(s,2,"0");case"s":return String(t.$s);case"ss":return I.s(t.$s,2,"0");case"SSS":return I.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(n,d,h){var p,f=this,g=I.p(d),m=C(n),v=(m.utcOffset()-this.utcOffset())*e,y=this-m,E=function(){return I.m(f,m)};switch(g){case l:p=E()/12;break;case u:p=E();break;case c:p=E()/3;break;case a:p=(y-v)/6048e5;break;case s:p=(y-v)/864e5;break;case o:p=y/t;break;case i:p=y/e;break;case r:p=y/1e3;break;default:p=y}return h?p:I.a(p)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return E[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return I.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),D=w.prototype;return C.prototype=D,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",s],["$M",u],["$y",l],["$D",d]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,w,C),e.$i=!0),C},C.locale=S,C.isDayjs=b,C.unix=function(e){return C(1e3*e)},C.en=E[y],C.Ls=E,C.p={},C}()},1630:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=l(e,!1)}],a:[i,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:u,ZZ:u};function h(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,u=0;u<a;u+=1){var c=s[u],l=d[c],h=l&&l[0],p=l&&l[1];s[u]=p?{regex:h,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,u=i.parser,c=e.slice(r),l=o.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var u=!0===s[2],c=!0===s[3],l=u||c,d=s[2];c&&(d=s[2]),o=this.$locale(),!u&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=h(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,u=r.minutes,c=r.seconds,l=r.milliseconds,d=r.zone,p=new Date,f=s||(i||o?1:p.getDate()),g=i||p.getFullYear(),m=0;i&&!o||(m=o>0?o-1:p.getMonth());var v=a||0,y=u||0,E=c||0,_=l||0;return d?new Date(Date.UTC(g,m,f,v,y,E,_+60*d.offset*1e3)):n?new Date(Date.UTC(g,m,f,v,y,E,_)):new Date(g,m,f,v,y,E,_)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),l&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var p=a.length,f=1;f<=p;f+=1){s[1]=a[f-1];var g=n.apply(this,s);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}f===p&&(this.$d=new Date(""))}else i.call(this,e)}}}()},8792:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},1937:e=>{e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}a=n[s]={exports:{}},t[s][0].call(a.exports,(function(e){return i(t[s][1][e]||e)}),a,a.exports,e,t,n,r)}return n[s].exports}for(var o=void 0,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){(function(r,i,o,s,a,u,c,l,d){"use strict";var h=e("crypto");function p(e,t){var n;return void 0===(n="passthrough"!==(t=m(e,t)).algorithm?h.createHash(t.algorithm):new E).write&&(n.write=n.update,n.end=n.update),y(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var f=h.getHashes?h.getHashes().slice():["sha1","md5"],g=(f.push("passthrough"),["buffer","hex","binary","base64"]);function m(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<f.length;++r)f[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=f[r]);if(-1===f.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+f.join(", "));if(-1===g.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+g.join(", "));return n}function v(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function y(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return this["_"+(null===(t=e.replacer?e.replacer(t):t)?"null":typeof t)](t)},_object:function(t){var i,s=Object.prototype.toString.call(t),a=/\[object (.*)\]/i.exec(s);if(a=(a=a?a[1]:"unknown:["+s+"]").toLowerCase(),0<=(s=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+s+"]");if(n.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return r("buffer:"),r(t);if("object"===a||"function"===a||"asyncfunction"===a)return s=Object.keys(t),e.unorderedObjects&&(s=s.sort()),!1===e.respectType||v(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":"),i=this,s.forEach((function(n){i.dispatch(n),r(":"),e.excludeValues||i.dispatch(t[n]),r(",")}));if(!this["_"+a]){if(e.ignoreUnknown)return r("["+a+"]");throw new Error('Unknown object type "'+a+'"')}this["_"+a](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(r("array:"+t.length+":"),!i||t.length<=1)return t.forEach((function(e){return o.dispatch(e)}));var s=[];return i=t.map((function(t){var r=new E,i=n.slice();return y(e,r,i).dispatch(t),s=s.concat(i.slice(n.length)),r.read().toString()})),n=n.concat(s),i.sort(),this._array(i,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),v(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){return r("map:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_set:function(t){return r("set:"),t=Array.from(t),this._array(t,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function E(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),y(t=m(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,n){(function(e,t,r,i,o,s,a,u,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),i="0".charCodeAt(0),o="a".charCodeAt(0),s="A".charCodeAt(0),a="-".charCodeAt(0),u="_".charCodeAt(0);function c(e){return(e=e.charCodeAt(0))===n||e===a?62:e===r||e===u?63:e<i?-1:e<i+10?e-i+26+26:e<s+26?e-s:e<o+26?e-o+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.length,o=(i="="===e.charAt(i-2)?2:"="===e.charAt(i-1)?1:0,new t(3*e.length/4-i)),s=0<i?e.length-4:e.length,a=0;function u(e){o[a++]=e}for(n=0;n<s;n+=4,0)u((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),u((65280&r)>>8),u(255&r);return 2==i?u(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(u((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),u(255&r)),o},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,s="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-o;t<r;t+=3)s+=a((i=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+a(i>>12&63)+a(i>>6&63)+a(63&i);switch(o){case 1:s=(s+=a((n=e[e.length-1])>>2))+a(n<<4&63)+"==";break;case 2:s=(s=(s+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+a(n>>4&63))+a(n<<2&63)+"="}return s}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,n){(function(t,r,i,o,s,a,u,c,l){var d=e("base64-js"),h=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,s,a,u=typeof e;if("base64"===t&&"string"==u)for(e=(a=e).trim?a.trim():a.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==u)r=T(e);else if("string"==u)r=i.byteLength(e,t);else{if("object"!=u)throw new Error("First argument needs to be a number, array or string.");r=T(e.length)}if(i._useTypedArrays?o=i._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(A(a=e)||i.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(s=0;s<r;s++)i.isBuffer(e)?o[s]=e.readUInt8(s):o[s]=e[s];else if("string"==u)o.write(e,0,t);else if("number"==u&&!i._useTypedArrays&&!n)for(s=0;s<r;s++)o[s]=0;return o}function p(e,t,n,r){var i;if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1<e.length,"Trying to read beyond buffer length")),!((r=e.length)<=t))return n?(i=e[t],t+1<r&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<r&&(i|=e[t+1])),i}function f(e,t,n,r){var i;if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+3<e.length,"Trying to read beyond buffer length")),!((r=e.length)<=t))return n?(t+2<r&&(i=e[t+2]<<16),t+1<r&&(i|=e[t+1]<<8),i|=e[t],t+3<r&&(i+=e[t+3]<<24>>>0)):(t+1<r&&(i=e[t+1]<<16),t+2<r&&(i|=e[t+2]<<8),t+3<r&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function g(e,t,n,r){if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 32768&(r=p(e,t,n,!0))?-1*(65535-r+1):r}function m(e,t,n,r){if(r||(F("boolean"==typeof n,"missing or invalid endian"),F(null!=t,"missing offset"),F(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return 2147483648&(r=f(e,t,n,!0))?-1*(4294967295-r+1):r}function v(e,t,n,r){return r||(F("boolean"==typeof n,"missing or invalid endian"),F(t+3<e.length,"Trying to read beyond buffer length")),h.read(e,t,n,23,4)}function y(e,t,n,r){return r||(F("boolean"==typeof n,"missing or invalid endian"),F(t+7<e.length,"Trying to read beyond buffer length")),h.read(e,t,n,52,8)}function E(e,t,n,r,i){if(i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+1<e.length,"trying to write beyond buffer length"),R(t,65535)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,2);o<s;o++)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function _(e,t,n,r,i){if(i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3<e.length,"trying to write beyond buffer length"),R(t,4294967295)),!((i=e.length)<=n))for(var o=0,s=Math.min(i-n,4);o<s;o++)e[n+o]=t>>>8*(r?o:3-o)&255}function b(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+1<e.length,"Trying to write beyond buffer length"),k(t,32767,-32768)),e.length<=n||E(e,0<=t?t:65535+t+1,n,r,i)}function S(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3<e.length,"Trying to write beyond buffer length"),k(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,i)}function C(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+3<e.length,"Trying to write beyond buffer length"),L(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||h.write(e,t,n,r,23,4)}function I(e,t,n,r,i){i||(F(null!=t,"missing value"),F("boolean"==typeof r,"missing or invalid endian"),F(null!=n,"missing offset"),F(n+7<e.length,"Trying to write beyond buffer length"),L(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||h.write(e,t,n,r,52,8)}n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=N(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=M(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},i.concat=function(e,t){if(F(A(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new i(t),r=0,o=0;o<e.length;o++){var s=e[o];s.copy(n,r),r+=s.length}return n},i.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(c=r,r=t,t=n,n=c),t=Number(t)||0;var o,s,a,u,c=this.length-t;switch((!n||c<(n=Number(n)))&&(n=c),r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),F((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var s=0;s<r;s++){var a=parseInt(t.substr(2*s,2),16);F(!isNaN(a),"Invalid hex string"),e[n+s]=a}return i._charsWritten=2*s,s}(this,e,t,n);break;case"utf8":case"utf-8":s=this,a=t,u=n,o=i._charsWritten=P(N(e),s,a,u);break;case"ascii":case"binary":o=function(e,t,n,r){return i._charsWritten=P(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":s=this,a=t,u=n,o=i._charsWritten=P(M(e),s,a,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=function(e,t,n,r){return i._charsWritten=P(function(e){for(var t,n,r=[],i=0;i<e.length;i++)t=(n=e.charCodeAt(i))>>8,n%=256,r.push(n),r.push(t);return r}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},i.prototype.toString=function(e,t,n){var r,i,o,s,a=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):a.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;o++)i+=O(e[o]);return i}(a,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;o<n;o++)e[o]<=127?(r+=x(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+x(i)}(a,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;i++)r+=String.fromCharCode(e[i]);return r}(a,t,n);break;case"base64":i=a,s=n,r=0===(o=t)&&s===i.length?d.fromByteArray(i):d.fromByteArray(i.slice(o,s));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(a,t,n);break;default:throw new Error("Unknown encoding")}return r},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){F(n<=r,"sourceEnd < sourceStart"),F(0<=t&&t<e.length,"targetStart out of bounds"),F(0<=n&&n<this.length,"sourceStart out of bounds"),F(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!i._useTypedArrays)for(var s=0;s<o;s++)e[s+t]=this[s+n];else e._set(this.subarray(n,n+o),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=D(e,n,0),t=D(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),s=0;s<r;s++)o[s]=this[s+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return f(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return f(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(F(null!=e,"missing offset"),F(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return g(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return g(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return m(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return m(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return v(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return v(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return y(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return y(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t<this.length,"trying to write beyond buffer length"),R(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(F(null!=e,"missing value"),F(null!=t,"missing offset"),F(t<this.length,"Trying to write beyond buffer length"),k(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){b(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){b(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){S(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){S(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){C(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){C(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){I(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){I(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,F("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),F(t<=n,"end < start"),n!==t&&0!==this.length){F(0<=t&&t<this.length,"start out of bounds"),F(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=O(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var w=i.prototype;function D(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function T(e){return(e=~~Math.ceil(+e))<0?0:e}function A(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function O(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var i=n,o=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(i,n+1)).substr(1).split("%")),s=0;s<o.length;s++)t.push(parseInt(o[s],16))}return t}function M(e){return d.toByteArray(e)}function P(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);i++)t[i+n]=e[i];return i}function x(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function R(e,t){F("number"==typeof e,"cannot write a non-number as a number"),F(0<=e,"specified a negative value for writing an unsigned value"),F(e<=t,"value is larger than maximum value for type"),F(Math.floor(e)===e,"value has a fractional component")}function k(e,t,n){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(n<=e,"value smaller than minimum allowed value"),F(Math.floor(e)===e,"value has a fractional component")}function L(e,t,n){F("number"==typeof e,"cannot write a non-number as a number"),F(e<=t,"value larger than maximum allowed value"),F(n<=e,"value smaller than minimum allowed value")}function F(e,t){if(!e)throw new Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=w.get,e.set=w.set,e.write=w.write,e.toString=w.toString,e.toLocaleString=w.toString,e.toJSON=w.toJSON,e.copy=w.copy,e.slice=w.slice,e.readUInt8=w.readUInt8,e.readUInt16LE=w.readUInt16LE,e.readUInt16BE=w.readUInt16BE,e.readUInt32LE=w.readUInt32LE,e.readUInt32BE=w.readUInt32BE,e.readInt8=w.readInt8,e.readInt16LE=w.readInt16LE,e.readInt16BE=w.readInt16BE,e.readInt32LE=w.readInt32LE,e.readInt32BE=w.readInt32BE,e.readFloatLE=w.readFloatLE,e.readFloatBE=w.readFloatBE,e.readDoubleLE=w.readDoubleLE,e.readDoubleBE=w.readDoubleBE,e.writeUInt8=w.writeUInt8,e.writeUInt16LE=w.writeUInt16LE,e.writeUInt16BE=w.writeUInt16BE,e.writeUInt32LE=w.writeUInt32LE,e.writeUInt32BE=w.writeUInt32BE,e.writeInt8=w.writeInt8,e.writeInt16LE=w.writeInt16LE,e.writeInt16BE=w.writeInt16BE,e.writeInt32LE=w.writeInt32LE,e.writeInt32BE=w.writeInt32BE,e.writeFloatLE=w.writeFloatLE,e.writeFloatBE=w.writeFloatBE,e.writeDoubleLE=w.writeDoubleLE,e.writeDoubleBE=w.writeDoubleBE,e.fill=w.fill,e.inspect=w.inspect,e.toArrayBuffer=w.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){i=e("buffer").Buffer;var d=new i(4);d.fill(0),t.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%4!=0&&(n=e.length+(4-e.length%4),e=i.concat([e,d],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,s=0;s<e.length;s+=4)r.push(o.call(e,s));return r}(e=i.isBuffer(e)?e:new i(e),r),8*e.length),s=(t=r,new i(n)),a=t?s.writeInt32BE:s.writeInt32LE,u=0;u<o.length;u++)a.call(s,o[u],4*u,!0);return s}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,n){(function(t,r,i,o,s,a,u,c,l){i=e("buffer").Buffer;var d=e("./sha"),h=e("./sha256"),p=e("./rng"),f={sha1:d,sha256:h,md5:e("./md5")},g=64,m=new i(g);function v(e,t){var n=f[e=e||"sha1"],r=[];return n||y("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),r.push(e),e.length,this},digest:function(e){var o=i.concat(r);return o=t?function(e,t,n){i.isBuffer(t)||(t=new i(t)),i.isBuffer(n)||(n=new i(n)),t.length>g?t=e(t):t.length<g&&(t=i.concat([t,m],g));for(var r=new i(g),o=new i(g),s=0;s<g;s++)r[s]=54^t[s],o[s]=92^t[s];return n=e(i.concat([r,n])),e(i.concat([o,n]))}(n,t,o):n(o),r=null,e?o.toString(e):o}}}function y(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}m.fill(0),n.createHash=function(e){return v(e)},n.createHmac=v,n.randomBytes=function(e,t){if(!t||!t.call)return new i(p(e));try{t.call(this,void 0,new i(p(e)))}catch(e){t(e)}};var E,_=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],b=function(e){n[e]=function(){y("sorry,",e,"is not implemented yet")}};for(E in _)b(_[E])}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,u=r,c=i,l=o;n=f(n,r,i,o,e[s+0],7,-680876936),o=f(o,n,r,i,e[s+1],12,-389564586),i=f(i,o,n,r,e[s+2],17,606105819),r=f(r,i,o,n,e[s+3],22,-1044525330),n=f(n,r,i,o,e[s+4],7,-176418897),o=f(o,n,r,i,e[s+5],12,1200080426),i=f(i,o,n,r,e[s+6],17,-1473231341),r=f(r,i,o,n,e[s+7],22,-45705983),n=f(n,r,i,o,e[s+8],7,1770035416),o=f(o,n,r,i,e[s+9],12,-1958414417),i=f(i,o,n,r,e[s+10],17,-42063),r=f(r,i,o,n,e[s+11],22,-1990404162),n=f(n,r,i,o,e[s+12],7,1804603682),o=f(o,n,r,i,e[s+13],12,-40341101),i=f(i,o,n,r,e[s+14],17,-1502002290),n=g(n,r=f(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=g(o,n,r,i,e[s+6],9,-1069501632),i=g(i,o,n,r,e[s+11],14,643717713),r=g(r,i,o,n,e[s+0],20,-373897302),n=g(n,r,i,o,e[s+5],5,-701558691),o=g(o,n,r,i,e[s+10],9,38016083),i=g(i,o,n,r,e[s+15],14,-660478335),r=g(r,i,o,n,e[s+4],20,-405537848),n=g(n,r,i,o,e[s+9],5,568446438),o=g(o,n,r,i,e[s+14],9,-1019803690),i=g(i,o,n,r,e[s+3],14,-187363961),r=g(r,i,o,n,e[s+8],20,1163531501),n=g(n,r,i,o,e[s+13],5,-1444681467),o=g(o,n,r,i,e[s+2],9,-51403784),i=g(i,o,n,r,e[s+7],14,1735328473),n=m(n,r=g(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=m(o,n,r,i,e[s+8],11,-2022574463),i=m(i,o,n,r,e[s+11],16,1839030562),r=m(r,i,o,n,e[s+14],23,-35309556),n=m(n,r,i,o,e[s+1],4,-1530992060),o=m(o,n,r,i,e[s+4],11,1272893353),i=m(i,o,n,r,e[s+7],16,-155497632),r=m(r,i,o,n,e[s+10],23,-1094730640),n=m(n,r,i,o,e[s+13],4,681279174),o=m(o,n,r,i,e[s+0],11,-358537222),i=m(i,o,n,r,e[s+3],16,-722521979),r=m(r,i,o,n,e[s+6],23,76029189),n=m(n,r,i,o,e[s+9],4,-640364487),o=m(o,n,r,i,e[s+12],11,-421815835),i=m(i,o,n,r,e[s+15],16,530742520),n=v(n,r=m(r,i,o,n,e[s+2],23,-995338651),i,o,e[s+0],6,-198630844),o=v(o,n,r,i,e[s+7],10,1126891415),i=v(i,o,n,r,e[s+14],15,-1416354905),r=v(r,i,o,n,e[s+5],21,-57434055),n=v(n,r,i,o,e[s+12],6,1700485571),o=v(o,n,r,i,e[s+3],10,-1894986606),i=v(i,o,n,r,e[s+10],15,-1051523),r=v(r,i,o,n,e[s+1],21,-2054922799),n=v(n,r,i,o,e[s+8],6,1873313359),o=v(o,n,r,i,e[s+15],10,-30611744),i=v(i,o,n,r,e[s+6],15,-1560198380),r=v(r,i,o,n,e[s+13],21,1309151649),n=v(n,r,i,o,e[s+4],6,-145523070),o=v(o,n,r,i,e[s+11],10,-1120210379),i=v(i,o,n,r,e[s+2],15,718787259),r=v(r,i,o,n,e[s+9],21,-343485551),n=y(n,a),r=y(r,u),i=y(i,c),o=y(o,l)}return Array(n,r,i,o)}function p(e,t,n,r,i,o){return y((t=y(y(t,e),y(r,o)))<<i|t>>>32-i,n)}function f(e,t,n,r,i,o,s){return p(t&n|~t&r,e,t,i,o,s)}function g(e,t,n,r,i,o,s){return p(t&r|n&~r,e,t,i,o,s)}function m(e,t,n,r,i,o,s){return p(t^n^r,e,t,i,o,s)}function v(e,t,n,r,i,o,s){return p(n^(t|~r),e,t,i,o,s)}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,n){(function(e,n,r,i,o,s,a,u,c){t.exports=function(e){for(var t,n=new Array(e),r=0;r<e;r++)!(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,o=Array(80),s=1732584193,a=-271733879,u=-1732584194,c=271733878,l=-1009589776,d=0;d<e.length;d+=16){for(var h=s,g=a,m=u,v=c,y=l,E=0;E<80;E++){o[E]=E<16?e[d+E]:f(o[E-3]^o[E-8]^o[E-14]^o[E-16],1);var _=p(p(f(s,5),(_=a,r=u,i=c,(n=E)<20?_&r|~_&i:!(n<40)&&n<60?_&r|_&i|r&i:_^r^i)),p(p(l,o[E]),(n=E)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));l=c,c=u,u=f(a,30),a=s,s=_}s=p(s,h),a=p(a,g),u=p(u,m),c=p(c,v),l=p(l,y)}return Array(s,a,u,c,l)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,n){(function(n,r,i,o,s,a,u,c,l){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){var n,r=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),i=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),o=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var s,a,u=0;u<e.length;u+=16){for(var c=i[0],l=i[1],h=i[2],p=i[3],m=i[4],v=i[5],y=i[6],E=i[7],_=0;_<64;_++)o[_]=_<16?e[_+u]:d(d(d((a=o[_-2],f(a,17)^f(a,19)^g(a,10)),o[_-7]),(a=o[_-15],f(a,7)^f(a,18)^g(a,3))),o[_-16]),n=d(d(d(d(E,f(a=m,6)^f(a,11)^f(a,25)),m&v^~m&y),r[_]),o[_]),s=d(f(s=c,2)^f(s,13)^f(s,22),c&l^c&h^l&h),E=y,y=v,v=m,m=d(p,n),p=h,h=l,l=c,c=d(n,s);i[0]=d(c,i[0]),i[1]=d(l,i[1]),i[2]=d(h,i[2]),i[3]=d(p,i[3]),i[4]=d(m,i[4]),i[5]=d(v,i[5]),i[6]=d(y,i[6]),i[7]=d(E,i[7])}return i}var p=e("./helpers"),f=function(e,t){return e>>>t|e<<32-t},g=function(e,t){return e>>>t};t.exports=function(e){return p.hash(e,h,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,n){(function(e,t,r,i,o,s,a,u,c){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,d=n?i-1:0,h=n?-1:1;for(i=e[t+d],d+=h,o=i&(1<<-l)-1,i>>=-l,l+=a;0<l;o=256*o+e[t+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;0<l;s=256*s+e[t+d],d+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(i?-1:1);s+=Math.pow(2,r),o-=c}return(i?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u=8*o-i-1,c=(1<<u)-1,l=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1;for(o=t<0||0===t&&1/t<0?1:0,t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+l?d/r:d*Math.pow(2,1-l))*r&&(s++,r/=2),c<=s+l?(a=0,s=c):1<=s+l?(a=(t*r-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));8<=i;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;0<u;e[n+h]=255&s,h+=p,s/=256,u-=8);e[n+h-p]|=128*o}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,n){(function(e,n,r,i,o,s,a,u,c){var l,d,h;function p(){}(e=t.exports={}).nextTick=(d="undefined"!=typeof window&&window.setImmediate,h="undefined"!=typeof window&&window.postMessage&&window.addEventListener,d?function(e){return window.setImmediate(e)}:h?(l=[],window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<l.length&&l.shift()())}),!0),function(e){l.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},2017:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)" stroke-width="2">\n <circle stroke-opacity=".5" cx="18" cy="18" r="18"/>\n <path d="M36 18c0-9.94-8.06-18-18-18">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="1s"\n repeatCount="indefinite"/>\n </path>\n </g>\n </g>\n</svg>\n'},1224:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd" stroke-width="2">\n <circle cx="22" cy="22" r="1">\n <animate attributeName="r"\n begin="0s" dur="1.8s"\n values="1; 20"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.165, 0.84, 0.44, 1"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="0s" dur="1.8s"\n values="1; 0"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.3, 0.61, 0.355, 1"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="1">\n <animate attributeName="r"\n begin="-0.9s" dur="1.8s"\n values="1; 20"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.165, 0.84, 0.44, 1"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="-0.9s" dur="1.8s"\n values="1; 0"\n calcMode="spline"\n keyTimes="0; 1"\n keySplines="0.3, 0.61, 0.355, 1"\n repeatCount="indefinite" />\n </circle>\n </g>\n</svg>\n'},9622:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">\n <circle cx="22" cy="22" r="6" stroke-opacity="0">\n <animate attributeName="r"\n begin="1.5s" dur="3s"\n values="6;22"\n calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="1.5s" dur="3s"\n values="1;0" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-width"\n begin="1.5s" dur="3s"\n values="2;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="6" stroke-opacity="0">\n <animate attributeName="r"\n begin="3s" dur="3s"\n values="6;22"\n calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-opacity"\n begin="3s" dur="3s"\n values="1;0" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="stroke-width"\n begin="3s" dur="3s"\n values="2;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="22" cy="22" r="8">\n <animate attributeName="r"\n begin="0s" dur="1.5s"\n values="6;1;2;3;4;5;6"\n calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n </g>\n</svg>\n'},2959:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='<?xml version="1.0" encoding="utf-8"?>\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2400 2400" xml:space="preserve" width="24" height="24">\n <g stroke-width="200" stroke-linecap="round" stroke="#000000" fill="none" id="spinner">\n <line x1="1200" y1="600" x2="1200" y2="100"/>\n <line opacity="0.5" x1="1200" y1="2300" x2="1200" y2="1800"/>\n <line opacity="0.917" x1="900" y1="680.4" x2="650" y2="247.4"/>\n <line opacity="0.417" x1="1750" y1="2152.6" x2="1500" y2="1719.6"/>\n <line opacity="0.833" x1="680.4" y1="900" x2="247.4" y2="650"/>\n <line opacity="0.333" x1="2152.6" y1="1750" x2="1719.6" y2="1500"/>\n <line opacity="0.75" x1="600" y1="1200" x2="100" y2="1200"/>\n <line opacity="0.25" x1="2300" y1="1200" x2="1800" y2="1200"/>\n <line opacity="0.667" x1="680.4" y1="1500" x2="247.4" y2="1750"/>\n <line opacity="0.167" x1="2152.6" y1="650" x2="1719.6" y2="900"/>\n <line opacity="0.583" x1="900" y1="1719.6" x2="650" y2="2152.6"/>\n <line opacity="0.083" x1="1750" y1="247.4" x2="1500" y2="680.4"/>\n <animateTransform attributeName="transform"\n attributeType="XML"\n type="rotate"\n keyTimes="0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667"\n values="0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199"\n dur="0.83333s"\n begin="0s"\n repeatCount="indefinite"\n calcMode="discrete" />\n </g>\n</svg>\n\n'},2447:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5">\n <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="1;0;0;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;1;0;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;1;0;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;1;0;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;1;0;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;1;0;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;0;1;0" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff">\n <animate attributeName="fill-opacity"\n begin="0s" dur="1.3s"\n values="0;0;0;0;0;0;0;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n </g>\n </g>\n</svg>\n'},5300:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="$id">\n <stop stop-color="#fff" stop-opacity="0" offset="0%"/>\n <stop stop-color="#fff" stop-opacity=".631" offset="63.146%"/>\n <stop stop-color="#fff" offset="100%"/>\n </linearGradient>\n </defs>\n <g fill="none" fill-rule="evenodd">\n <g transform="translate(1 1)">\n <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#$id)" stroke-width="2">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite"/>\n </path>\n <circle fill="#fff" cx="36" cy="18" r="1">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="0.9s"\n repeatCount="indefinite"/>\n </circle>\n </g>\n </g>\n</svg>\n'},3600:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r='\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#fff">\n <circle cx="15" cy="15" r="15">\n <animate attributeName="r" from="15" to="15"\n begin="0s" dur="0.8s"\n values="15;9;15" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="1" to="1"\n begin="0s" dur="0.8s"\n values="1;.5;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="60" cy="15" r="9" fill-opacity="0.3">\n <animate attributeName="r" from="9" to="9"\n begin="0s" dur="0.8s"\n values="9;15;9" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="0.5" to="0.5"\n begin="0s" dur="0.8s"\n values=".5;1;.5" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n <circle cx="105" cy="15" r="15">\n <animate attributeName="r" from="15" to="15"\n begin="0s" dur="0.8s"\n values="15;9;15" calcMode="linear"\n repeatCount="indefinite" />\n <animate attributeName="fill-opacity" from="1" to="1"\n begin="0s" dur="0.8s"\n values="1;.5;1" calcMode="linear"\n repeatCount="indefinite" />\n </circle>\n</svg>\n'},9471:(e,t,n)=>{var r;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(e){return function(e,t){var n,r,s,a,u,c,l,d,h,p=1,f=e.length,g="";for(r=0;r<f;r++)if("string"==typeof e[r])g+=e[r];else if("object"==typeof e[r]){if((a=e[r]).keys)for(n=t[p],s=0;s<a.keys.length;s++){if(null==n)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',a.keys[s],a.keys[s-1]));n=n[a.keys[s]]}else n=a.param_no?t[a.param_no]:t[p++];if(i.not_type.test(a.type)&&i.not_primitive.test(a.type)&&n instanceof Function&&(n=n()),i.numeric_arg.test(a.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(i.number.test(a.type)&&(d=n>=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?g+=n:(!i.number.test(a.type)||d&&!a.sign?h="":(h=d?"+":"-",n=n.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",l=a.width-(h+n).length,u=a.width&&l>0?c.repeat(l):"",g+=a.align?h+n+u:"0"===c?h+u+n:u+h+n)}return g}(function(e){if(a[e])return a[e];for(var t,n=e,r=[],o=0;n;){if(null!==(t=i.text.exec(n)))r.push(t[0]);else if(null!==(t=i.modulo.exec(n)))r.push("%");else{if(null===(t=i.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var s=[],u=t[2],c=[];if(null===(c=i.key.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(s.push(c[1]);""!==(u=u.substring(c[0].length));)if(null!==(c=i.key_access.exec(u)))s.push(c[1]);else{if(null===(c=i.index_access.exec(u)))throw new SyntaxError("[sprintf] failed to parse named argument key");s.push(c[1])}t[2]=s}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return a[e]=r}(e),arguments)}function s(e,t){return o.apply(null,[e].concat(t||[]))}var a=Object.create(null);t.sprintf=o,t.vsprintf=s,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=s,void 0===(r=function(){return{sprintf:o,vsprintf:s}}.call(t,n,t,e))||(e.exports=r))}()},2591:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},s=[],a=0;a<e.length;a++){var u=e[a],c=r.base?u[0]+r.base:u[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var h=n(d),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=i(p,r);r.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}s.push(d)}return s}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var s=0;s<o.length;s++){var a=n(o[s]);t[a].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},8128:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},3051:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},855:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},1740:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},3656:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8881:(e,t)=>{"use strict";t.el=t.Op=void 0;const n=(e,t)=>`((?<${e}>-?\\d*[\\.,]?\\d+)${t})?`;new RegExp(["(?<negative>-)?P",n("years","Y"),n("months","M"),n("weeks","W"),n("days","D"),"(T",n("hours","H"),n("minutes","M"),n("seconds","S"),")?"].join(""));t.Op=new Error("Invalid duration"),t.el=new Error("Multiple fractions specified")},5420:(e,t,n)=>{"use strict";n.d(t,{Vf:()=>d,rg:()=>m});var r=n(1606),i=n(2962),o=n(4762),s=n(4620),a=n(7802);const u=(0,s.zk)(),c=n(1937),l="DOWNLOAD_HANDLERS";class d{static stateKnownDownloadHandlers=p(l).then((({key:e,value:t})=>t?JSON.parse(t):[])).then((e=>(d.knownDownloadHandlers=e,e)));static knownDownloadHandlers;listeners=[];issueStateListeners=[];issueStates={};issueFilter;issue;publication;additionalIssues;issues;comparators;updating=!1;stateKey;error;downloadStarted=!1;autoUpdate=!1;installState;dataFromState;options;listenersSuspended=!1;static getStateKey(e){const t=e.issueSourceProperty||g.issueSourceProperty;return e.issue?e.issue.properties[t]||e.issue.id:e.sourceIssueId?e.sourceIssueId:c(e)}static async updateKnownDownloadHandlers(e){const t=await d.getKnownDownloadHandlers();if(t.indexOf(e)<0)return t.push(e),d.knownDownloadHandlers=t,f(l,JSON.stringify(t));d.knownDownloadHandlers=t}static async getKnownDownloadHandlers(){return await d.stateKnownDownloadHandlers,d.knownDownloadHandlers}static async invalidateKnownDownloadHandlers(){return d.knownDownloadHandlers=[],f(l,null)}static mergeWithDefaultOptions(e){return{...e,issueCoverFilter:e.issueCoverFilter||g.issueCoverFilter,issueSourceProperty:e.issueSourceProperty||g.issueSourceProperty,issuePageProperty:e.issuePageProperty||g.issuePageProperty,issueSequenceProperty:e.issueSequenceProperty||g.issueSequenceProperty}}static toSourceIssueParams(e){const t=(e=d.mergeWithDefaultOptions(e)).sourceIssueId||e.issue?.properties[e.issueSourceProperty];if(t){let n=e.issueCoverFilter;const r=JSON.stringify(n);return r.includes("$sourceIssueId")?(n=JSON.parse(r.replace(/\$sourceIssueId/g,t)),{first:1,issueFilter:n}):void console.error(`Failed to replace $sourceIssueId with ${t}`)}}constructor(e){if((e=d.mergeWithDefaultOptions(e)).issue&&!e.issue.properties[e.issueSourceProperty])this.issue=e.issue;else{const t=e.issue?.properties[e.issueSourceProperty]||e.sourceIssueId,n=d.toSourceIssueParams(e)?.issueFilter;(e.issue?.type===r.IssueType.ISSUE||e.issue&&n&&(0,o.tU)(n,e.issue))&&(this.issue=e.issue),this.issueFilter={properties:{key:e.issueSourceProperty,value:t}},this.comparators=[{property:{key:e.issuePageProperty,direction:r.SortDirection.ASC,valueType:"INT"}},{property:{key:e.issueSequenceProperty,direction:r.SortDirection.ASC,valueType:"INT"}}]}e.autoUpdate&&(this.autoUpdate=e.autoUpdate),this.stateKey=d.getStateKey(e),this.options=e}async init(e,t){if(await this.getStateData(),await this.initializeIssues(t),e){if(this.listenersSuspended=!0,await this.updateIssueStates(),this.addIssueStateListeners(),this.downloadStarted&&this.autoUpdate)try{await this.continueDownload()}catch(e){}this.listenersSuspended=!1}}addUpdateListener(e){this.listeners.push(e)}getAggregatedIssueState(){if(1===this.issues.length){const e=this.issues[0],t=this.issueStates[e.id],n={...t,overallSize:e.contentLength,overallSizeToDownload:Math.floor((1-t?.progress/100??0)*e.contentLength)};return this.downloadStarted||(n.error=null),n}console.warn("DownloadHandler created for group of issues, this is not supported in template 10 / Experience 2");let e=r.CatalogIssueInstallState.NOT_INSTALLED,t=0,n=0,i=!1,o=!1,s=!0,a=null;for(const u in this.issueStates){const c=this.issueStates[u];if(c){const l=this.issues.find((e=>e.id===u));l&&(t+=l.contentLength,n+=c.progress/100*l.contentLength,c.downloading&&(i=!0),c.updateAvailable&&(o=!0),c.installState!==r.CatalogIssueInstallState.COMPLETE&&(s=!1),c.error&&this.downloadStarted&&(a=c.error),c.installState!==r.CatalogIssueInstallState.INCOMPLETE&&c.installState!==r.CatalogIssueInstallState.COMPLETE||(e=r.CatalogIssueInstallState.INCOMPLETE))}}const u=t?n/t*100:0;return e=s?r.CatalogIssueInstallState.COMPLETE:e,{installState:e,progress:s?100:Math.round(u),downloading:i,updateAvailable:o,error:a,issueId:this.issue?.id,overallSize:t,overallSizeToDownload:t-Math.floor(n)}}getIssues(e=!1){return JSON.parse(JSON.stringify(e?this.additionalIssues:this.issues))}async download(){await this.initializeIssues(!0);const e=this.getAggregatedIssueState();if(e.installState!==r.CatalogIssueInstallState.COMPLETE||e.updateAvailable){this.listenersSuspended=!0,this.updating=!1,this.downloadStarted=!0,this.error=null,this.saveState();try{const e=this.issues.map((e=>e.id)),t=await this.downloadIssues(e);if(t&&t.results){const e=Object.keys(t.results).filter((e=>!t.results[e].success));if(e.length)throw e.forEach((e=>{this.issueStates[e].error=t.results[e].errorCode})),this.updateState(),e.length<Object.keys(t.results).length&&await this.delete(),{code:t.results[e[0]].errorCode}}return this.removeErrorStates(),this.updateState(!1,!1,!0),this.listenersSuspended=!1,t}catch(e){throw console.warn(e),this.downloadStarted=!1,this.error=null,this.saveState(),await this.updateIssueStates(),this.updateState(),this.listenersSuspended=!1,e}}}async pause(){const e=this.issues.map((e=>e.id)).filter((e=>this.issueStates[e]&&!this.issueStates[e].error));return this.pauseDownloads(e)}async update(){await this.syncLocalIssues(),await this.updateIssueStatesFromLocalIssues();const e=this.issues.filter((e=>this.issueStates[e.id]&&this.issueStates[e.id].updateAvailable)).map((e=>e.id));if(e.length)return this.removeIssueStateListeners(),this.addIssueStateListeners(),this.updating=!0,this.updateState(!0),this.saveState(),this.downloadIssues(e)}continueDownload(){const e=this.issues.filter((e=>this.issueStates[e.id]&&this.issueStates[e.id].installState!==r.CatalogIssueInstallState.COMPLETE&&!this.issueStates[e.id].downloading)).map((e=>e.id));if(e.length)return this.updating=!0,this.updateState(!0),this.downloadIssues(e)}async delete(e=!1){this.removeIssueStateListeners(),this.updating=!1,this.saveState();let t=this.issues.map((e=>e.id));await this.deleteIssues(t),await this.initializeIssues(!0),await this.updateIssueStates(),this.updateState(!1,e),this.downloadStarted=!1,this.saveState(),this.addIssueStateListeners()}deleteIssues(e){return h()&&e.length>1?u.purple.catalog.deleteIssues({issueIds:e}):1===e.length?u.purple.catalog.deleteIssue({issueId:e[0]}):Promise.all(e.map((e=>u.purple.catalog.deleteIssue({issueId:e}).catch((e=>console.warn("Error deleting issue ",e))))))}async syncLocalIssues(){if(h())return u.purple.catalog.syncLocalIssues({issueIds:this.getIssues().map((e=>e.id))})}async open(e){const t=this.issues.find((t=>t.id===e?.initialIssueId))||this.issue;let n=e.initialPublication;const o=await(0,i.Lb)(e.initialIssueOnly?[t]:this,t,(e=>Promise.resolve(!e.purchaseData.purchased)),null,!1!==e.additionalIssuesOnly),s=e.initialIssueOnly?t.type:this.getContentType(),a=o.find((e=>e===t.id||e===t.previewIssue?.id)),c=[];if(this.publication||c.push({id:{value:this.issue.publicationId}}),!n&&t&&c.push({id:{value:t.publicationId}}),c.length){const e=1===c.length?c[0]:{OR:c.map((e=>e))},r=(await u.purple.catalog.getPublications({publicationFilter:e})).nodes;this.publication=this.publication||r.find((e=>this.issue.publicationId===e.id)),n=n||r.find((e=>t.publicationId===e.id))}let l=null;void 0!==e.pageIndex&&null!==e.pageIndex&&(l={index:e.pageIndex}),e.elementAlias&&(l={...l,initialElement:{aliasOrId:e.elementAlias}});const d={type:s};d.optionalParams=t?(0,i.P8)((0,i.yC)(t,n)):{},(0,i.Gw)(s)&&(d.optionalParams={...d.optionalParams,...(0,i.P8)((0,i.bJ)(this.issue,this.publication,null,"SOURCE_"))});const h={issueIds:o,initialIssue:{id:a,initialPage:l},config:{mode:r.DisplayMode.MODAL,titleBar:s===m.ISSUE},tracking:d};if(e?.checkLocalIssues){const e=(await u.purple.catalog.getLocalIssues()).issues;!!this.issues.find((t=>!e.find((e=>e.id===t.id))))&&await this.syncLocalIssues(),h.skipSync=!0}return e?.openContentConfig&&(h.config=e.openContentConfig),u.purple.content.open(h)}destroy(){this.removeIssueStateListeners()}async downloadIssues(e){return h()&&e.length>1?u.purple.catalog.startDownloads({issueIds:e}):Promise.all(e.map((e=>u.purple.catalog.startDownload({issueId:e}).catch((e=>({success:!1,errorCode:e.code})))))).then((t=>({results:t.reduce(((t,n,r)=>({...t,[e[r]]:n||{success:!0}})),{})})))}async pauseDownloads(e){return h()?u.purple.catalog.pauseDownloads({issueIds:e}):Promise.all(e.map((e=>u.purple.catalog.pauseDownload({issueId:e}))))}async initializeIssues(e=!1){if(await this.getStateData(),this.issues=[],this.additionalIssues=this.dataFromState.additionalIssues||[],this.issue||(this.issue=this.dataFromState.issue||await this.getSourceIssueFromAPI()),this.issue&&(this.issues=[this.issue]),this.issueFilter){try{(e||!this.dataFromState.additionalIssues||this.isOutdated())&&(this.additionalIssues=await this.getIssuesFromAPI(),d.updateKnownDownloadHandlers(this.getOwnStateKey()))}catch(e){console.warn("error updating issue information. Falling back to previously used data")}this.issue&&(this.additionalIssues=this.additionalIssues.filter((e=>e.id!==this.issue.id))),this.issues=[...this.issues,...this.additionalIssues],this.saveState()}}isOutdated(){if(d.knownDownloadHandlers.indexOf(this.getOwnStateKey())<0)return!0;const e=[this.dataFromState.issue,...this.dataFromState.additionalIssues].filter((e=>!!e));return!![this.issue,...this.additionalIssues].filter((e=>!!e)).find((t=>!!e.find((e=>e.access===t.access&&e.productId===t.productId&&e.purchaseData.purchased!==t.purchaseData.purchased))))}async getSourceIssueFromAPI(){const e=d.toSourceIssueParams(this.options);return e?u.purple.catalog.getIssues(e).then((e=>e.nodes[0]),(()=>null)):null}async getIssuesFromAPI(){const e=[];let t;do{const n=(0,a.oQ)({issueFilter:this.issueFilter,sort:this.comparators,after:t?.cursor});t=await u.purple.catalog.getContents(n),e.push(...t.nodes)}while(t.hasNextPage);return e}async updateIssueStatesFromLocalIssues(){(await u.purple.catalog.getLocalIssues()).issues.filter((e=>!!this.issues.find((t=>t.id===e.id)))).forEach((e=>{this.issueStates[e.id]=e.state,this.issues.find((t=>t.id===e.id)).version=e.version})),this.saveState()}async updateIssueStates(){this.issueStates=await u.purple.catalog.getIssueStates({issues:this.issues.map((e=>({issueId:e.id,issueVersion:e.version})))})}removeErrorStates(){this.issues.forEach((e=>{this.issueStates[e.id]&&delete this.issueStates[e.id].error}))}addIssueStateListeners(){this.issues.forEach((e=>{const t=e=>{this.issueStates[e.issueId]=e,this.listenersSuspended||this.updateState()},n={issueId:e.id,issueVersion:e.version,publicationId:e.publicationId};this.issueStateListeners.push({params:n,listener:t}),u.purple.catalog.addIssueStateListener(n,t)}))}removeIssueStateListeners(){this.issueStateListeners.forEach((e=>u.purple.catalog.removeIssueStateListener(e.params,e.listener))),this.issueStateListeners=[]}updateState(e=!1,t=!1,n=!1){const i=this.getAggregatedIssueState();this.trackStateUpdate(i,n),e||i.installState!==r.CatalogIssueInstallState.COMPLETE||i.updateAvailable||(this.updating=!1,this.saveState()),(this.downloadStarted&&(i.downloading||i.error&&i.error!==this.error)||i.installState!==r.CatalogIssueInstallState.INCOMPLETE||t)&&this.listeners.forEach((e=>e({...i,updating:this.updating}))),this.error=i.error}trackStateUpdate(e,t){if(this.installState&&e.installState!==this.installState||e.error||t){let n;if(e.error&&e.error!==this.error)n=v.DOWNLOAD_FAILED;else if(t)n=v.DOWNLOAD_STARTED;else switch(e.installState){case r.CatalogIssueInstallState.COMPLETE:n=v.DOWNLOADED;break;case r.CatalogIssueInstallState.NOT_INSTALLED:n=this.downloadStarted&&this.installState===r.CatalogIssueInstallState.INCOMPLETE?v.DOWNLOAD_CANCELLED:v.DELETED}n&&this.handleTrackAction(n),this.installState=e.installState,this.saveState()}}handleTrackAction(e){const t=this.getContentType("_COLLECTION"),n=(0,i.Dh)(`${t}_${e}`),r=(0,i.P8)((0,i.bJ)(this.issue,this.publication));u.purple.tracking.trackAction({key:n,optionalParams:r})}getOwnStateKey(){return this.stateKey}getContentType(e=""){return this.issue&&this.issue.type===r.IssueType.ISSUE?this.additionalIssues&&this.additionalIssues.length?m.READ_MODE_ARTICLE+e:m.ISSUE:this.additionalIssues&&this.additionalIssues.length?m.ISSUE_ARTICLE+e:m.ARTICLE}async setIssue(e){this.removeIssueStateListeners();const t=this.issue;this.issue=e,this.issues[this.issues.findIndex((e=>e===t))]=e,await this.updateIssueStates(),this.updateState(),this.addIssueStateListeners(),this.saveState()}async getStateData(){const e=(await p(this.getOwnStateKey())).value;try{this.dataFromState=JSON.parse(e)||{}}catch(e){this.dataFromState={}}this.downloadStarted=this.dataFromState.downloadStarted,this.updating=this.dataFromState.updating,this.installState=this.dataFromState.installState,this.error=this.dataFromState.error}saveState(){if(this.stateKey){const e={downloadStarted:this.downloadStarted,updating:this.updating,additionalIssues:this.additionalIssues,issue:this.issue,installState:this.installState,error:this.error};this.dataFromState=e,f(this.getOwnStateKey(),JSON.stringify(e))}}}function h(){return!!u.purple.catalog.startDownloads}async function p(e){return u.purple?u.purple.state.version.major>=2?u.purple.state.getState({key:e}):new Promise(((t,n)=>{u.purple.state.getState(e,((e,n)=>t({key:e,value:n})))})):{key:e,value:null}}async function f(e,t){u.purple&&(u.purple.state.version.major>=2?u.purple.state.setState({key:e,value:t}):u.purple.state.setState(e,t))}const g={issueSourceProperty:"purple_source_issue",issuePageProperty:"purple_page_number",issueSequenceProperty:"purple_seq_number",issueCoverFilter:{AND:[{OR:[{type:{value:r.IssueType.ISSUE}},{properties:{key:"cover",value:"true"}}]},{properties:{key:"purple_source_issue",value:"$sourceIssueId"}}]}};var m,v;!function(e){e.ISSUE="ISSUE",e.ARTICLE="ARTICLE",e.ISSUE_ARTICLE="ISSUE_ARTICLE",e.READ_MODE_ARTICLE="READ_MODE_ARTICLE"}(m||(m={})),function(e){e.DOWNLOAD_STARTED="DOWNLOAD_STARTED",e.DOWNLOAD_CANCELLED="DOWNLOAD_CANCELLED",e.DELETED="DELETED",e.DOWNLOADED="DOWNLOADED",e.DOWNLOAD_FAILED="DOWNLOAD_FAILED"}(v||(v={}))},4409:(e,t,n)=>{"use strict";var r;n.d(t,{O:()=>r}),function(e){e.URL="urls",e.VIEW="views",e.MESSAGE="messages",e.NAVIGATION="navigation",e.APP_BAR="appBar",e.AD="ads",e.ACCESS="access",e.MENUS="menus",e.DOWNLOAD_OPTIONS="downloadOptions",e.GENERIC_WIDGET="genericWidget",e.FEATURE="features"}(r||(r={}))},1009:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{KR:()=>isStorefrontDateMapFilter});var _purple_model__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1606),_purple_model__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_purple_model__WEBPACK_IMPORTED_MODULE_0__),_util_common_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4664),_util_purple_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2962),_util_date_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3931),_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2239);function toPurpleIssueFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleIssueFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleIssueFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}if(e.publication){const t=toPurplePublicationFilter({...e.publication,condition:e.condition});return t?{publication:t}:null}if(e.properties&&(e={...e,properties:toPurpleMapFilter(e.properties)}),t&&t.age){const e=getDateFromStorefrontDuration(t.age),n=t.age.operation||DateOperation.LESS_THAN;let r=n;switch(n){case DateOperation.LESS_THAN:r=DateOperation.GREATER_THAN;break;case DateOperation.GREATER_THAN:r=DateOperation.LESS_THAN}return{publicationDate:{value:e,operation:r}}}return t}return null}function toLocalIssueFilter(e){if(!e)return null;const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toLocalIssueFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toLocalIssueFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return e.properties&&isStorefrontDateMapFilter(e.properties)?t:null}function toLocalContentsFilter(e){if(!e)return null;const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toLocalContentsFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toLocalContentsFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return e.properties&&isStorefrontDateMapFilter(e.properties)?t:null}function toPurplePublicationFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurplePublicationFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurplePublicationFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function toPurpleSubscriptionFilter(e){if(!e||e.productId&&compareApiVersion(window.purple.catalog,{major:1,minor:4},IntOperation.LESS_THAN))return null;{const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleSubscriptionFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleSubscriptionFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}}function toPurpleCategoryFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleCategoryFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleCategoryFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function toPurpleTaxonomyFilter(e){if(e){if(e.AND){const t=e.AND.map((e=>toPurpleTaxonomyFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleTaxonomyFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}if(e.contents?.content?.value){const t=toPurpleContentFilter({...e.contents.content.value,condition:e.condition});return t?{contents:{...e.contents,content:{value:t}}}:null}return getEnabledFilter(e)}return null}function toPurpleMapFilter(e){return isStorefrontDateMapFilter(e)?null:e}function toPurpleContentFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleContentFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleContentFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}if(e.publication){const t=toPurplePublicationFilter({...e.publication,condition:e.condition});return t?{publication:t}:null}if(e.taxonomies?.content?.value){const t=toPurpleTaxonomyFilter({...e.taxonomies.content.value,condition:e.condition});return t?{taxonomies:{...e.taxonomies,content:{value:t}}}:null}if(e.publicationDate&&(t.publicationDate.value=e.publicationDate.value.toString()),t&&t.age){const e=getDateFromStorefrontDuration(t.age),n=t.age.operation||DateOperation.LESS_THAN;let r=n;switch(n){case DateOperation.LESS_THAN:r=DateOperation.GREATER_THAN;break;case DateOperation.GREATER_THAN:r=DateOperation.LESS_THAN}return{publicationDate:{value:e,operation:r}}}return t}return null}function toPurpleCollectionFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleCollectionFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleCollectionFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function toPurpleMenuItemFilter(e){if(e){const t=getEnabledFilter(e);if(!t)return null;if(e.AND){const t=e.AND.map((e=>toPurpleMenuItemFilter(e))).filter((e=>!!e));return t.length?{AND:t}:null}if(e.OR){const t=e.OR.map((e=>toPurpleMenuItemFilter(e))).filter((e=>!!e));return t.length?{OR:t}:null}return t}return null}function getEnabledFilter(e){if(!e)return null;const t=Object.keys(e).filter((e=>"condition"!==e))[0];if(!t)return e;const{condition:n,...r}=e[t];return isEnabled(e)?r&&r.value&&Array.isArray(r.value)?r.value.map((e=>({[t]:{...r,value:e}}))).length?{OR:r.value.map((e=>({[t]:{...r,value:e}})))}:null:r?.id?.value&&Array.isArray(r.id.value)?r.id.value.length?{OR:r.id.value.map((e=>({[t]:{...r,id:{value:e}}})))}:null:r&&r.content&&r.content.value&&r.content.value.value&&Array.isArray(r.content.value.value)?r.content.value.value.map((e=>({[t]:{...r,value:e}}))).length?{OR:r.content.value.value.map((e=>({[t]:{...r,content:{value:{value:e}}}})))}:null:{[t]:r}:null}function isConditionalValue(e){return e&&"object"==typeof e&&e.condition}function isEnabledReplaceValue(e,t,n,r,i=!0){return isConditionalValue(e)?isEnabled({condition:replaceValue(e.condition,t,n,r,i)}):!!e}function isEnabled(e){if(!isConditionalValue(e))return!!e;const t=(()=>{if(e.condition.AND){let t=!0;for(const n of e.condition.AND)if(t=isEnabled({condition:n}),!t)break;return t}if(e.condition.OR){let t=!1;for(const n of e.condition.OR)if(t=isEnabled({condition:n}),t)break;return t}const t="value"in e.condition&&isValueResolved(e.condition.value,[])?e.condition.value:void 0;let n,r;switch(e.condition.operation){case ConditionCompareOperation.NOT_SET:return!t;case ConditionCompareOperation.EQUALS_NOT:return e.condition.stringIgnoreCase?!equalsIgnoreCase(t,e.condition.compareValue):t!==e.condition.compareValue;case ConditionCompareOperation.SET:return!!t;case ConditionCompareOperation.EMPTY:return t&&!t.length;case ConditionCompareOperation.NOT_EMPTY:return t&&!!t.length;case ConditionCompareOperation.LESS_THAN:return n=parseInt(t,10),r=parseInt(e.condition.compareValue,10),isNaN(n)||isNaN(r)?(console.log("error comparing values: "+t+" < "+e.condition.compareValue),!1):n<r;case ConditionCompareOperation.GREATER_THAN:return n=parseInt(t,10),r=parseInt(e.condition.compareValue,10),isNaN(n)||isNaN(r)?(console.log("error comparing values: "+t+" > "+e.condition.compareValue),!1):n>r;case ConditionCompareOperation.CONTAINS:return void 0===t?(console.log("error comparing values: "+t+" CONTAINS "+e.condition.compareValue),!1):Array.isArray(t)?e.condition.stringIgnoreCase?t.some((t=>equalsIgnoreCase(t.toString(),e.condition.compareValue))):t.includes(e.condition.compareValue):"string"==typeof t?e.condition.stringIgnoreCase?equalsIgnoreCase(t,e.condition.compareValue):t.includes(e.condition.compareValue):Object.keys(t).includes(e.condition.compareValue)&&t[e.condition.compareValue];default:return e.condition.stringIgnoreCase?equalsIgnoreCase(t.toString(),e.condition.compareValue):t+""==e.condition.compareValue+""}})();return e.condition.negated?!t:t}function getEnabledValue(e){return"boolean"==typeof e?e:isEnabled(e)?isConditionalValue(e)&&"value"in e?e.value:e:isConditionalValue(e)&&e.fallback?getEnabledValue(e.fallback):null}const CONTEXT_IDENTIFIER="$context",FUNCTIONS_IDENTIFIER="$functions",GLOBAL_IDENTIFIER="$global";function replaceValue(e,t,n,r,i=!0){const o=typeof e;if("string"===o)return replaceStringValue(e,t,n,r,i);if("object"===o){if(Array.isArray(e))return e.map((e=>replaceValue(e,t,n,r,i)));if(e)return Object.keys(e).reduce(((o,s)=>({...o,[s]:replaceValue(e[s],t,n,r,i)})),{})}return e}const parseScopeValue=(e,t)=>(t.match(/((\w|-)+|\[[^\]]+\])/g)?.map((e=>e.replace(/[[\]'"]/g,"")))??[]).reduce(((e,t)=>e?"count"===t?Array.isArray(e)?e.length:1:e[t]:e),e);function replaceStringValue(e,t,n,r,i=!0){if(!e.includes("$"))return e;let o=e.indexOf(FUNCTIONS_IDENTIFIER);for(;o>=0;){const s=e.slice(0,o),a=e.slice(o);try{const[u,c]=evalFunctionReference(a,t,n,r);void 0===u&&i?o++:e=s+u+c}catch(e){o++,console.log(`Error while evaluating function "${a}": ${e.message}`)}o=e.indexOf(FUNCTIONS_IDENTIFIER,o)}try{(e=replaceScope(e,t,CONTEXT_IDENTIFIER,i))&&"string"==typeof e&&(e=replaceScope(e,r,GLOBAL_IDENTIFIER,i))}catch(e){console.log(e)}return"null"!==e&&"undefined"!==e&&"false"!==e&&void 0!==e&&!1!==e||(e=null),e}function replaceScope(e,t,n,r){const i=new RegExp(`\\${n}(((\\[("|')?[\\w\\d-_\\.]*("|')?\\])+)|((\\.[\\w\\d-_]+)))*`,"g"),o=e.match(i);if(o&&1===o.length&&o[0]===e)return replaceSingleValue(e,t,n,r);{let i=e.split("/");return o&&o.forEach((e=>{const o=replaceSingleValue(e,t,n,r);let s=i.find((t=>t.indexOf(e)>-1));null==o?i.splice(i.indexOf(s),1):s?i[i.indexOf(s)]=s.replace(e,o):console.debug("warn: segment not found: "+s)})),i.join("/")}}function replaceSingleValue(e,t,n,r=!0){const i=e.substring(n.length),o=parseScopeValue(t,i);return"number"==typeof o||"boolean"==typeof o?o:r?""===o?"":o||e:o}function isArrayResolved(e,t){let n=!0;for(const r of e)if(n=isValueResolved(r,t),!n)break;return n}function isObjectResolved(e,t){if(!isEnabled(e))return!0;e:for(const n of Object.keys(e)){for(const e of t){if("string"==typeof e&&n===e)continue e;if(Array.isArray(e)&&e[0]===n&&(e.shift(),0===e.length))continue e}if(!isValueResolved(e[n],t))return!1}return!0}function isStringResolved(e){return-1===e.indexOf(CONTEXT_IDENTIFIER)&&-1===e.indexOf(FUNCTIONS_IDENTIFIER)&&-1===e.indexOf(GLOBAL_IDENTIFIER)}function isNumberResolved(e){return!0}function isBooleanResolved(e){return!0}function isValueResolved(e,t){switch(typeof e){case"string":return isStringResolved(e);case"number":return isNumberResolved(e);case"boolean":return isBooleanResolved(e);case"object":return Array.isArray(e)?isArrayResolved(e,t):isObjectResolved(e,t);default:return!0}}function isResolved(e,t=["content"]){return isObjectResolved(e,t)}function sortDataLocal(data,comparator){return[...data].sort(((a,b)=>{let cmp=0;if("key"in comparator){const e=a[comparator.key],t=b[comparator.key];switch(comparator.valueType){case"STRING":cmp=e.toString().localeCompare(t.toString());break;case"INT":cmp=e-t}}else if("sortFunction"in comparator){const sortFuncReturned=eval(comparator.sortFunction);"number"==typeof sortFuncReturned&&isFinite(sortFuncReturned)&&(cmp=sortFuncReturned)}return comparator.direction===SortDirection.ASC?cmp:-cmp}))}function replaceNodes(e,t){return{...e,nodes:t,totalCount:e.totalCount?e.totalCount-(e.nodes.length-t.length):e.totalCount}}function randomizeOrder(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}function isStorefrontDateMapFilter(e){return e&&"date"===e.mode}var ConditionCompareOperation,SubscriptionSortOrder;!function(e){e.EQUALS="EQUALS",e.EQUALS_NOT="EQUALS_NOT",e.NOT_SET="NOT_SET",e.SET="SET",e.EMPTY="EMPTY",e.NOT_EMPTY="NOT_EMPTY",e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.CONTAINS="CONTAINS"}(ConditionCompareOperation||(ConditionCompareOperation={})),function(e){e.DEFAULT="DEFAULT",e.DURATION="DURATION"}(SubscriptionSortOrder||(SubscriptionSortOrder={}))},4762:(e,t,n)=>{"use strict";n.d(t,{tU:()=>u});var r=n(5316),i=n(3464),o=n(1630),s=n(1009);function a(e){const t=(n,r)=>{if(!r)return!1;if(!n)return!0;const i=e?.(n,r);if("boolean"==typeof i)return i;if(n.OR){for(const e of n.OR)if(t(e,r))return!0;return!1}return n.AND?n.AND.every((e=>t(e,r))):n.id?r.id&&l(n.id,r.id):!!n.properties&&(n.properties.key in r.properties?l(n.properties,r.properties[n.properties.key]):!!n.properties.negated)};return t}i.extend(o);const u=a((function(e,t){if(e.publication){if(e.publication.id){const n=e.publication.id.value===t.publicationId;return e.publication.id.negated?!n:n}return!0}if(e.categories)return c(e.categories,t.categories??[]);if(e.tags)return c(e.tags,t.tags);if(e.alias){const n=e.alias.value===t.alias;return e.alias.negated?!n:n}if(e.externalIssueId){const n=e.externalIssueId.value===t.externalIssueId;return e.externalIssueId.negated?!n:n}if(e.type){const n=e.type.value===t.type;return e.type.negated?!n:n}if(e.publicationDate)return d(e.publicationDate,t.publicationDate);if(e.purchasable)return e.purchasable.value===t.purchasable;if(e.purchased)return e.purchased.value===t.purchased;if((0,s.KR)(e.properties)){const n=e.properties;if(t.properties[n.key]){let o=!1;const s=i(t.properties[n.key],n.propertyFormat),a=i(n.value,n.valueFormat);if(s.isValid()&&a.isValid())switch(n.operation){case r.DateOperation.EQUAL:o=s.isSame(a,"day");break;case r.DateOperation.GREATER_THAN:o=s.isAfter(a,"day");break;case r.DateOperation.LESS_THAN:o=s.isBefore(a,"day");break;default:console.warn("unsupported date operation",e)}return n.negated?!o:o}}}));function c(e,t){const n=e.content,i=e.size,o=e.negated;let s=!0;return n&&(s=n.operation===r.ListOperation.CONTAINS_ONLY?l(n.value,t[0]):!!t.find((e=>l(n.value,e)))),i&&(s=function(e,t){let n;switch(e.operation){case r.IntOperation.GREATER_THAN:n=t>e.value;break;case r.IntOperation.LESS_THAN:n=t<e.value;break;default:n=t===e.value}return e.negated?!n:n}(i,t.length)),o?!s:s}function l(e,t){let n;if(e.values?.length)n=e.values.includes(t);else switch(e.operation){case r.StringOperation.STARTS_WITH:n=t.startsWith(e.value);break;case r.StringOperation.CONTAINS:n=t.indexOf(e.value)>-1;break;default:n=t===e.value}return e.negated?!n:n}function d(e,t){const n=function(e){const t=e.split("T");if(t[1])switch(t[0].split(":").length){case 3:return"hour";case 2:return"minute";default:return"second"}else switch(t[0].split("-").length){case 3:return"day";case 2:return"month";default:return"year"}}(e.value);let o;const s=i(t),a=i(e.value);switch(e.operation){case r.DateOperation.LESS_THAN:o=s.isBefore(a,n);break;case r.DateOperation.GREATER_THAN:o=s.isAfter(a,n);break;default:return s.isSame(a,n)}return e.negated?!o:o}a((function(e,t){if(e.publication){if(e.publication.id){const n=e.publication.id.value===t.publicationId;return e.publication.id.negated?!n:n}return!0}if(e.taxonomies)return console.warn("local filtering by taxonomies is not implemented!"),!0;if(e.alias){const n=e.alias.value===t.alias;return e.alias.negated?!n:n}if(e.externalId){const n=e.externalId.value===t.externalId;return e.externalId.negated?!n:n}if(e.contentType){const n=e.contentType.value===t.contentType;return e.contentType.negated?!n:n}if(e.publicationDate)return d(e.publicationDate,t.publicationDate);if(e.access)return e.access.value===t.access;if(e.purchased)return e.purchased.value===t.purchaseData.purchased;if((0,s.KR)(e.properties)){const n=e.properties;if(t.properties[n.key]){let o=!1;const s=i(t.properties[n.key],n.propertyFormat),a=i(n.value,n.valueFormat);if(s.isValid()&&a.isValid())switch(n.operation){case r.DateOperation.EQUAL:o=s.isSame(a,"day");break;case r.DateOperation.GREATER_THAN:o=s.isAfter(a,"day");break;case r.DateOperation.LESS_THAN:o=s.isBefore(a,"day");break;default:console.warn("unsupported date operation",e)}return n.negated?!o:o}}})),a((function(e,t){return e.name?l(e.name,t.name):e.parentCategoryId?l(e.parentCategoryId,t.parentCategoryId):e.issues?(console.warn("Unhandled CategoryFilter field for filterLocalCategory: issues"),!0):void 0})),a((function(e,t){return e.name?l(e.name,t.name):e.parentId?l(e.parentId,t.parentId):void 0}))},7802:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>f,s7:()=>g});var r=n(1606);function i(e,t){const n=e&&{AND:e.AND&&e.AND?.map((e=>i(e,!1))),OR:e.OR&&e.OR?.map((e=>i(e,!1))),id:e.id,externalId:e.externalIssueId,alias:e.alias,publicationDate:e.publicationDate,access:s(e.purchasable),productId:e.productId,purchased:e.purchased,publication:a(e.publication)||u(e.type),properties:e.properties,taxonomies:d("category",e.categories)||d("tag",e.tags)};return t?function(e){return e?{AND:[{contentType:{value:r.CatalogContentType.ISSUE}},e]}:{contentType:{value:r.CatalogContentType.ISSUE}}}(n):n}function o(e){return e&&{AND:e.AND&&e.AND?.map((e=>o(e))),OR:e.OR&&e.OR?.map((e=>o(e))),id:e.id,parentId:e.parentCategoryId,name:e.name,type:{value:"category"},properties:e.properties,contents:c(e.issues)}}function s(e){return e&&{value:r.Access.FREE,negated:e.value}}function a(e){return e&&{AND:e.AND&&e.AND.map((e=>a(e))),OR:e.OR&&e.OR.map((e=>a(e))),id:e.id,type:e.type,language:e.language,properties:e.properties,contents:e.contents||c(e.issues)}}function u(e){return e&&{type:{negated:e.negated,value:"ARTICLE"===e.value?r.PublicationType.CHANNEL:r.PublicationType.KIOSK}}}function c(e){return e&&{negated:e.negated,content:l(e.content),size:e.size}}function l(e){return e&&{operation:e.operation,value:i(e.value,!0)}}function d(e,t){return t&&{negated:t.negated,content:h(e,t.content),size:t.size}}function h(e,t){return t&&{operation:t.operation,value:p(e,t.value)}}function p(e,t){return{AND:[{type:{value:e}},{id:t}]}}function f(e){return{contentFilter:i(e.issueFilter,!0),sort:e.sort?.map((e=>function(e){return{index:e.index,publicationDate:e.publicationDate,property:e.property}}(e))),first:e.first,after:e.after,fetchOptions:{totalCount:!0}}}function g(e){return{taxonomyFilter:o(e.categoryFilter),sort:e.sort?.map((e=>function(e){return{name:e.name,property:e.property}}(e))),first:e.first,after:e.after,fetchOptions:{totalCount:!0}}}},4664:(e,t,n)=>{"use strict";n.d(t,{hI:()=>o,q1:()=>a}),n(1606);var r=n(4620);const i=(0,r.zk)();async function o(e,t={}){let n;try{n=await s(e,t)}catch(r){if(i.isUniversal){if(r&&parseFloat(r)>=500&&parseFloat(r)<600)try{n=await s(e,t)}catch(t){throw new Error("failed to fetch ressource "+e)}}else n=new Promise(((n,r)=>{const i=new XMLHttpRequest;i.addEventListener("load",(()=>{i.status>=400&&r({message:""+i.status});try{n(JSON.parse(i.responseText))}catch(e){r({message:"No JSON"})}})),i.addEventListener("error",(()=>{r({message:"Unknown Error"})})),i.open(t&&t.method||"GET",e),i.send()}))}return n}async function s(e,t){return fetch(e,t).then((e=>{if(e.status,e.ok)return e.json();throw new Error(e.status.toString())}))}function a(e,t,n,r=!1,i){if(null==n||0===n.length||n.startsWith("http://")||n.startsWith("https://")||n.startsWith("purple://"))return n;{let o;return o=n.startsWith("resource://dynamic/")?new URL(n.replace("resource://dynamic/",""),`${t}/web/dynamicResources/${e}/`):new URL(n,`${t}/web/dynamicResources/${e}/storefront/index.html`),r&&o.searchParams.set("preview",(!!r).toString()),void 0!==i&&o.searchParams.set("version",i.toString()),o.toString()}}(0,r.YE)()},3931:(e,t,n)=>{"use strict";var r=n(1606);n(3464),n(8881),r.AppSubscriptionAdditionalBackIssueUnlocksType},2239:()=>{"use strict";var e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],t=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],n="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},i="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:i,"5module":i+" export import",6:i+" const class extends export import super"},s=/^in(stanceof)?$/,a=new RegExp("["+n+"]"),u=new RegExp("["+n+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function c(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}return!1}function l(e,n){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&a.test(String.fromCharCode(e)):!1!==n&&c(e,t)))}function d(n,r){return n<48?36===n:n<58||!(n<65)&&(n<91||(n<97?95===n:n<123||(n<=65535?n>=170&&u.test(String.fromCharCode(n)):!1!==r&&(c(n,t)||c(n,e)))))}var h=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function p(e,t){return new h(e,{beforeExpr:!0,binop:t})}var f={beforeExpr:!0},g={startsExpr:!0},m={};function v(e,t){return void 0===t&&(t={}),t.keyword=e,m[e]=new h(e,t)}var y={num:new h("num",g),regexp:new h("regexp",g),string:new h("string",g),name:new h("name",g),privateId:new h("privateId",g),eof:new h("eof"),bracketL:new h("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new h("]"),braceL:new h("{",{beforeExpr:!0,startsExpr:!0}),braceR:new h("}"),parenL:new h("(",{beforeExpr:!0,startsExpr:!0}),parenR:new h(")"),comma:new h(",",f),semi:new h(";",f),colon:new h(":",f),dot:new h("."),question:new h("?",f),questionDot:new h("?."),arrow:new h("=>",f),template:new h("template"),invalidTemplate:new h("invalidTemplate"),ellipsis:new h("...",f),backQuote:new h("`",g),dollarBraceL:new h("${",{beforeExpr:!0,startsExpr:!0}),eq:new h("=",{beforeExpr:!0,isAssign:!0}),assign:new h("_=",{beforeExpr:!0,isAssign:!0}),incDec:new h("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new h("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:p("||",1),logicalAND:p("&&",2),bitwiseOR:p("|",3),bitwiseXOR:p("^",4),bitwiseAND:p("&",5),equality:p("==/!=/===/!==",6),relational:p("</>/<=/>=",7),bitShift:p("<</>>/>>>",8),plusMin:new h("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:p("%",10),star:p("*",10),slash:p("/",10),starstar:new h("**",{beforeExpr:!0}),coalesce:p("??",1),_break:v("break"),_case:v("case",f),_catch:v("catch"),_continue:v("continue"),_debugger:v("debugger"),_default:v("default",f),_do:v("do",{isLoop:!0,beforeExpr:!0}),_else:v("else",f),_finally:v("finally"),_for:v("for",{isLoop:!0}),_function:v("function",g),_if:v("if"),_return:v("return",f),_switch:v("switch"),_throw:v("throw",f),_try:v("try"),_var:v("var"),_const:v("const"),_while:v("while",{isLoop:!0}),_with:v("with"),_new:v("new",{beforeExpr:!0,startsExpr:!0}),_this:v("this",g),_super:v("super",g),_class:v("class",g),_extends:v("extends",f),_export:v("export"),_import:v("import",g),_null:v("null",g),_true:v("true",g),_false:v("false",g),_in:v("in",{beforeExpr:!0,binop:7}),_instanceof:v("instanceof",{beforeExpr:!0,binop:7}),_typeof:v("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:v("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:v("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},E=/\r\n?|\n|\u2028|\u2029/,_=new RegExp(E.source,"g");function b(e){return 10===e||13===e||8232===e||8233===e}function S(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(b(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return-1}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,w=Object.prototype,D=w.hasOwnProperty,T=w.toString,A=Object.hasOwn||function(e,t){return D.call(e,t)},O=Array.isArray||function(e){return"[object Array]"===T.call(e)},N=Object.create(null);function M(e){return N[e]||(N[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function P(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}var x=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var k=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function L(e,t){for(var n=1,r=0;;){var i=S(e,r,t);if(i<0)return new R(n,t-r);++n,r=i}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},U=!1;function j(e,t){return 2|(e?4:0)|(t?8:0)}var V=function(e,t,n){this.options=e=function(e){var t={};for(var n in F)t[n]=e&&A(e,n)?e[n]:F[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!U&&"object"==typeof console&&console.warn&&(U=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),O(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return O(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,o,s,a){var u={type:n?"Block":"Line",value:r,start:i,end:o};e.locations&&(u.loc=new k(this,s,a)),e.ranges&&(u.range=[i,o]),t.push(u)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=M(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var i="";!0!==e.allowReserved&&(i=r[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(i+=" await")),this.reservedWords=M(i);var s=(i?i+" ":"")+r.strict;this.reservedWordsStrict=M(s),this.reservedWordsStrictBind=M(s+" "+r.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(E).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=y.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},B={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};V.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},B.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},B.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},B.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},B.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},B.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},B.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},B.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},B.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},B.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},V.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},V.parse=function(e,t){return new this(t,e).parse()},V.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},V.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(V.prototype,B);var $=V.prototype,H=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;$.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){I.lastIndex=e,e+=I.exec(this.input)[0].length;var t=H.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){I.lastIndex=e+t[0].length;var n=I.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||E.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,I.lastIndex=e,e+=I.exec(this.input)[0].length,";"===this.input[e]&&e++}},$.eat=function(e){return this.type===e&&(this.next(),!0)},$.isContextual=function(e){return this.type===y.name&&this.value===e&&!this.containsEsc},$.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},$.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$.canInsertSemicolon=function(){return this.type===y.eof||this.type===y.braceR||E.test(this.input.slice(this.lastTokEnd,this.start))},$.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$.semicolon=function(){this.eat(y.semi)||this.insertSemicolon()||this.unexpected()},$.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$.expect=function(e){this.eat(e)||this.unexpected()},$.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var G=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},$.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},$.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},$.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var q=V.prototype;q.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==y.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var o=i[r];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var z={kind:"loop"},W={kind:"switch"};q.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var t=I.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r||r>55295&&r<56320)return!0;if(l(r,!0)){for(var i=n+1;d(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var o=this.input.slice(n,i);if(!s.test(o))return!0}return!1},q.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var e,t=I.exec(this.input),n=this.pos+t[0].length;return!(E.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(d(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},q.parseStatement=function(e,t,n){var r,i=this.type,o=this.startNode();switch(this.isLet(e)&&(i=y._var,r="let"),i){case y._break:case y._continue:return this.parseBreakContinueStatement(o,i.keyword);case y._debugger:return this.parseDebuggerStatement(o);case y._do:return this.parseDoStatement(o);case y._for:return this.parseForStatement(o);case y._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case y._class:return e&&this.unexpected(),this.parseClass(o,!0);case y._if:return this.parseIfStatement(o);case y._return:return this.parseReturnStatement(o);case y._switch:return this.parseSwitchStatement(o);case y._throw:return this.parseThrowStatement(o);case y._try:return this.parseTryStatement(o);case y._const:case y._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(o,r);case y._while:return this.parseWhileStatement(o);case y._with:return this.parseWithStatement(o);case y.braceL:return this.parseBlock(!0,o);case y.semi:return this.parseEmptyStatement(o);case y._export:case y._import:if(this.options.ecmaVersion>10&&i===y._import){I.lastIndex=this.pos;var s=I.exec(this.input),a=this.pos+s[0].length,u=this.input.charCodeAt(a);if(40===u||46===u)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===y._import?this.parseImport(o):this.parseExport(o,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var c=this.value,l=this.parseExpression();return i===y.name&&"Identifier"===l.type&&this.eat(y.colon)?this.parseLabeledStatement(o,c,l,e):this.parseExpressionStatement(o,l)}},q.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(y.semi)||this.insertSemicolon()?e.label=null:this.type!==y.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},q.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},q.parseDoStatement=function(e){return this.next(),this.labels.push(z),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(y._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(y.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},q.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(z),this.enterScope(0),this.expect(y.parenL),this.type===y.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===y._var||this.type===y._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===y._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var o=this.isContextual("let"),s=!1,a=new G,u=this.parseExpression(!(t>-1)||"await",a);return this.type===y._in||(s=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===y._in?t>-1&&this.unexpected(t):e.await=t>-1),o&&s&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,a),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},q.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Y|(n?0:Q),!1,t)},q.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(y._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},q.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(y.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},q.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(y.braceL),this.labels.push(W),this.enterScope(0);for(var n=!1;this.type!==y.braceR;)if(this.type===y._case||this.type===y._default){var r=this.type===y._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(y.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},q.parseThrowStatement=function(e){return this.next(),E.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var K=[];q.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(y.parenR),e},q.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===y._catch){var t=this.startNode();this.next(),this.eat(y.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(y._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},q.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},q.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(z),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},q.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},q.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},q.parseLabeledStatement=function(e,t,n,r){for(var i=0,o=this.labels;i<o.length;i+=1)o[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var s=this.type.isLoop?"loop":this.type===y._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var u=this.labels[a];if(u.statementStart!==e.start)break;u.statementStart=this.start,u.kind=s}return this.labels.push({name:t,kind:s,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},q.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},q.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(y.braceL),e&&this.enterScope(0);this.type!==y.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},q.parseFor=function(e,t){return e.init=t,this.expect(y.semi),e.test=this.type===y.semi?null:this.parseExpression(),this.expect(y.semi),e.update=this.type===y.parenR?null:this.parseExpression(),this.expect(y.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},q.parseForIn=function(e,t){var n=this.type===y._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(y.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},q.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(y.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===y._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===y._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(y.comma))break}return e},q.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Y=1,Q=2;function J(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function Z(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}q.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===y.star&&t&Q&&this.unexpected(),e.generator=this.eat(y.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Y&&(e.id=4&t&&this.type!==y.name?null:this.parseIdent(),!e.id||t&Q||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var o=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(j(e.async,e.generator)),t&Y||(e.id=this.type===y.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=o,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,t&Y?"FunctionDeclaration":"FunctionExpression")},q.parseFunctionParams=function(e){this.expect(y.parenL),e.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},q.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),o=!1;for(i.body=[],this.expect(y.braceL);this.type!==y.braceR;){var s=this.parseClassElement(null!==e.superClass);s&&(i.body.push(s),"MethodDefinition"===s.type&&"constructor"===s.kind?(o&&this.raiseRecoverable(s.start,"Duplicate constructor in the same class"),o=!0):s.key&&"PrivateIdentifier"===s.key.type&&J(r,s)&&this.raiseRecoverable(s.key.start,"Identifier '#"+s.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},q.parseClassElement=function(e){if(this.eat(y.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,o=!1,s="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(y.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===y.star?a=!0:r="static"}if(n.static=a,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==y.star||this.canInsertSemicolon()?r="async":o=!0),!r&&(t>=9||!o)&&this.eat(y.star)&&(i=!0),!r&&!o&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?s=u:r=u)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===y.parenL||"method"!==s||i||o){var c=!n.static&&Z(n,"constructor"),l=c&&e;c&&"method"!==s&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":s,this.parseClassMethod(n,i,o,l)}else this.parseClassField(n);return n},q.isClassElementNameStart=function(){return this.type===y.name||this.type===y.privateId||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword},q.parseClassElementName=function(e){this.type===y.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},q.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&Z(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var o=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==o.params.length&&this.raiseRecoverable(o.start,"getter should have no params"),"set"===e.kind&&1!==o.params.length&&this.raiseRecoverable(o.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===o.params[0].type&&this.raiseRecoverable(o.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},q.parseClassField=function(e){if(Z(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Z(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(y.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},q.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==y.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},q.parseClassId=function(e,t){this.type===y.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},q.parseClassSuper=function(e){e.superClass=this.eat(y._extends)?this.parseExprSubscripts(null,!1):null},q.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},q.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],o=0;o<n.length;++o){var s=n[o];A(t,s.name)||(i?i.used.push(s):this.raiseRecoverable(s.start,"Private field '#"+s.name+"' must be declared in an enclosing class"))}},q.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==y.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},q.parseExport=function(e,t){if(this.next(),this.eat(y.star))return this.parseExportAllDeclaration(e,t);if(this.eat(y._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==y.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},q.parseExportDeclaration=function(e){return this.parseStatement(null)},q.parseExportDefaultDeclaration=function(){var e;if(this.type===y._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|Y,!1,e)}if(this.type===y._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},q.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),A(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},q.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var o=i[r];this.checkPatternExport(e,o)}else if("ArrayPattern"===n)for(var s=0,a=t.elements;s<a.length;s+=1){var u=a[s];u&&this.checkPatternExport(e,u)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},q.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},q.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},q.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},q.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(y.braceL);!this.eat(y.braceR);){if(n)n=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;t.push(this.parseExportSpecifier(e))}return t},q.parseImport=function(e){return this.next(),this.type===y.string?(e.specifiers=K,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===y.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},q.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},q.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},q.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},q.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===y.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(y.comma)))return e;if(this.type===y.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(y.braceL);!this.eat(y.braceR);){if(t)t=!1;else if(this.expect(y.comma),this.afterTrailingComma(y.braceR))break;e.push(this.parseImportSpecifier())}return e},q.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===y.string){var e=this.parseLiteral(this.value);return x.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},q.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},q.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var X=V.prototype;X.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var o=i[r];this.toAssignable(o,t),"RestElement"!==o.type||"ArrayPattern"!==o.argument.type&&"ObjectPattern"!==o.argument.type||this.raise(o.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},X.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var o=e[n-1];6===this.options.ecmaVersion&&t&&o&&"RestElement"===o.type&&"Identifier"!==o.argument.type&&this.unexpected(o.argument.start)}return e},X.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},X.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==y.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},X.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case y.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(y.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case y.braceL:return this.parseObj(!0)}return this.parseIdent()},X.parseBindingList=function(e,t,n,r){for(var i=[],o=!0;!this.eat(e);)if(o?o=!1:this.expect(y.comma),t&&this.type===y.comma)i.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===y.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),i.push(s),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}i.push(this.parseAssignableListItem(r))}return i},X.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},X.parseBindingListItem=function(e){return e},X.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(y.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},X.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(A(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},X.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var o=i[r];this.checkLValInnerPattern(o,t,n)}break;case"ArrayPattern":for(var s=0,a=e.elements;s<a.length;s+=1){var u=a[s];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}},X.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var ee=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},te={b_stat:new ee("{",!1),b_expr:new ee("{",!0),b_tmpl:new ee("${",!1),p_stat:new ee("(",!1),p_expr:new ee("(",!0),q_tmpl:new ee("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new ee("function",!1),f_expr:new ee("function",!0),f_expr_gen:new ee("function",!0,!1,null,!0),f_gen:new ee("function",!1,!1,null,!0)},ne=V.prototype;ne.initialContext=function(){return[te.b_stat]},ne.curContext=function(){return this.context[this.context.length-1]},ne.braceIsBlock=function(e){var t=this.curContext();return t===te.f_expr||t===te.f_stat||(e!==y.colon||t!==te.b_stat&&t!==te.b_expr?e===y._return||e===y.name&&this.exprAllowed?E.test(this.input.slice(this.lastTokEnd,this.start)):e===y._else||e===y.semi||e===y.eof||e===y.parenR||e===y.arrow||(e===y.braceL?t===te.b_stat:e!==y._var&&e!==y._const&&e!==y.name&&!this.exprAllowed):!t.isExpr)},ne.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},ne.updateContext=function(e){var t,n=this.type;n.keyword&&e===y.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},ne.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},y.parenR.updateContext=y.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===te.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},y.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?te.b_stat:te.b_expr),this.exprAllowed=!0},y.dollarBraceL.updateContext=function(){this.context.push(te.b_tmpl),this.exprAllowed=!0},y.parenL.updateContext=function(e){var t=e===y._if||e===y._for||e===y._with||e===y._while;this.context.push(t?te.p_stat:te.p_expr),this.exprAllowed=!0},y.incDec.updateContext=function(){},y._function.updateContext=y._class.updateContext=function(e){!e.beforeExpr||e===y._else||e===y.semi&&this.curContext()!==te.p_stat||e===y._return&&E.test(this.input.slice(this.lastTokEnd,this.start))||(e===y.colon||e===y.braceL)&&this.curContext()===te.b_stat?this.context.push(te.f_stat):this.context.push(te.f_expr),this.exprAllowed=!1},y.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},y.backQuote.updateContext=function(){this.curContext()===te.q_tmpl?this.context.pop():this.context.push(te.q_tmpl),this.exprAllowed=!1},y.star.updateContext=function(e){if(e===y._function){var t=this.context.length-1;this.context[t]===te.f_expr?this.context[t]=te.f_expr_gen:this.context[t]=te.f_gen}this.exprAllowed=!0},y.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==y.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var re=V.prototype;function ie(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&ie(e.expression)}re.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===o&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var s=t[r="$"+r];s?("init"===o?this.strict&&s.init||s.get||s.set:s.init||s[o])&&this.raiseRecoverable(i.start,"Redefinition of property"):s=t[r]={init:!1,get:!1,set:!1},s[o]=!0}}},re.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===y.comma){var o=this.startNodeAt(n,r);for(o.expressions=[i];this.eat(y.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return i},re.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,o=-1,s=-1;t?(i=t.parenthesizedAssign,o=t.trailingComma,s=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new G,r=!0);var a=this.start,u=this.startLoc;this.type!==y.parenL&&this.type!==y.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var c=this.parseMaybeConditional(e,t);if(n&&(c=n.call(this,c,a,u)),this.type.isAssign){var l=this.startNodeAt(a,u);return l.operator=this.value,this.type===y.eq&&(c=this.toAssignable(c,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.start&&(t.shorthandAssign=-1),this.type===y.eq?this.checkLValPattern(c):this.checkLValSimple(c),l.left=c,this.next(),l.right=this.parseMaybeAssign(e),s>-1&&(t.doubleProto=s),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),o>-1&&(t.trailingComma=o),c},re.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(y.question)){var o=this.startNodeAt(n,r);return o.test=i,o.consequent=this.parseMaybeAssign(),this.expect(y.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return i},re.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},re.parseExprOp=function(e,t,n,r,i){var o=this.type.binop;if(null!=o&&(!i||this.type!==y._in)&&o>r){var s=this.type===y.logicalOR||this.type===y.logicalAND,a=this.type===y.coalesce;a&&(o=y.logicalAND.binop);var u=this.value;this.next();var c=this.start,l=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),c,l,o,i),h=this.buildBinary(t,n,e,d,u,s||a);return(s&&this.type===y.coalesce||a&&(this.type===y.logicalOR||this.type===y.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,n,r,i)}return e},re.buildBinary=function(e,t,n,r,i,o){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var s=this.startNodeAt(e,t);return s.left=n,s.operator=i,s.right=r,this.finishNode(s,o?"LogicalExpression":"BinaryExpression")},re.parseMaybeUnary=function(e,t,n,r){var i,o=this.start,s=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===y.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&ie(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==y.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var c=this.startNodeAt(o,s);c.operator=this.value,c.prefix=!1,c.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(c,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==y._in&&this.unexpected();return n||!this.eat(y.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(o,s,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},re.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var o=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===o.type&&(e.parenthesizedAssign>=o.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=o.start&&(e.parenthesizedBind=-1),e.trailingComma>=o.start&&(e.trailingComma=-1)),o},re.parseSubscripts=function(e,t,n,r,i){for(var o=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,s=!1;;){var a=this.parseSubscript(e,t,n,r,o,s,i);if(a.optional&&(s=!0),a===e||"ArrowFunctionExpression"===a.type){if(s){var u=this.startNodeAt(t,n);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}},re.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(y.arrow)},re.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},re.parseSubscript=function(e,t,n,r,i,o,s){var a=this.options.ecmaVersion>=11,u=a&&this.eat(y.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var c=this.eat(y.bracketL);if(c||u&&this.type!==y.parenL&&this.type!==y.backQuote||this.eat(y.dot)){var l=this.startNodeAt(t,n);l.object=e,c?(l.property=this.parseExpression(),this.expect(y.bracketR)):this.type===y.privateId&&"Super"!==e.type?l.property=this.parsePrivateIdent():l.property=this.parseIdent("never"!==this.options.allowReserved),l.computed=!!c,a&&(l.optional=u),e=this.finishNode(l,"MemberExpression")}else if(!r&&this.eat(y.parenL)){var d=new G,h=this.yieldPos,p=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var g=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!u&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=p,this.awaitIdentPos=f,this.parseSubscriptAsyncArrow(t,n,g,s);this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var m=this.startNodeAt(t,n);m.callee=e,m.arguments=g,a&&(m.optional=u),e=this.finishNode(m,"CallExpression")}else if(this.type===y.backQuote){(u||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var v=this.startNodeAt(t,n);v.tag=e,v.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(v,"TaggedTemplateExpression")}return e},re.parseExprAtom=function(e,t,n){this.type===y.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case y._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==y.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==y.dot&&this.type!==y.bracketL&&this.type!==y.parenL&&this.unexpected(),this.finishNode(r,"Super");case y._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case y.name:var o=this.start,s=this.startLoc,a=this.containsEsc,u=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===u.name&&!this.canInsertSemicolon()&&this.eat(y._function))return this.overrideContext(te.f_expr),this.parseFunction(this.startNodeAt(o,s),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(y.arrow))return this.parseArrowExpression(this.startNodeAt(o,s),[u],!1,t);if(this.options.ecmaVersion>=8&&"async"===u.name&&this.type===y.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return u=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(y.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(o,s),[u],!0,t)}return u;case y.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case y.num:case y.string:return this.parseLiteral(this.value);case y._null:case y._true:case y._false:return(r=this.startNode()).value=this.type===y._null?null:this.type===y._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case y.parenL:var l=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),d;case y.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(y.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case y.braceL:return this.overrideContext(te.b_expr),this.parseObj(!1,e);case y._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case y._class:return this.parseClass(this.startNode(),!1);case y._new:return this.parseNew();case y.backQuote:return this.parseTemplate();case y._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},re.parseExprAtomDefault=function(){this.unexpected()},re.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===y.parenL&&!e)return this.parseDynamicImport(t);if(this.type===y.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},re.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(y.parenR)){var t=this.start;this.eat(y.comma)&&this.eat(y.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},re.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},re.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},re.parseParenExpression=function(){this.expect(y.parenL);var e=this.parseExpression();return this.expect(y.parenR),e},re.shouldParseArrow=function(e){return!this.canInsertSemicolon()},re.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,o=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var s,a=this.start,u=this.startLoc,c=[],l=!0,d=!1,h=new G,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==y.parenR;){if(l?l=!1:this.expect(y.comma),o&&this.afterTrailingComma(y.parenR,!0)){d=!0;break}if(this.type===y.ellipsis){s=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(y.parenR),e&&this.shouldParseArrow(c)&&this.eat(y.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(r,i,c,t);c.length&&!d||this.unexpected(this.lastTokStart),s&&this.unexpected(s),this.checkExpressionErrors(h,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,c.length>1?((n=this.startNodeAt(a,u)).expressions=c,this.finishNodeAt(n,"SequenceExpression",g,m)):n=c[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,i);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},re.parseParenItem=function(e){return e},re.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var oe=[];re.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===y.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(y.parenL)?e.arguments=this.parseExprList(y.parenR,this.options.ecmaVersion>=8,!1):e.arguments=oe,this.finishNode(e,"NewExpression")},re.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===y.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===y.backQuote,this.finishNode(n,"TemplateElement")},re.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===y.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(y.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(y.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},re.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===y.name||this.type===y.num||this.type===y.string||this.type===y.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===y.star)&&!E.test(this.input.slice(this.lastTokEnd,this.start))},re.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(y.braceR);){if(r)r=!1;else if(this.expect(y.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(y.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,i,t),n.properties.push(o)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},re.parseProperty=function(e,t){var n,r,i,o,s=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(y.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===y.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===y.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(i=this.start,o=this.startLoc),e||(n=this.eat(y.star)));var a=this.containsEsc;return this.parsePropertyName(s),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(s)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(y.star),this.parsePropertyName(s)):r=!1,this.parsePropertyValue(s,e,n,r,i,o,t,a),this.finishNode(s,"Property")},re.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},re.parsePropertyValue=function(e,t,n,r,i,o,s,a){(n||r)&&this.type===y.colon&&this.unexpected(),this.eat(y.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,s),e.kind="init"):this.options.ecmaVersion>=6&&this.type===y.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===y.comma||this.type===y.braceR||this.type===y.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key)):this.type===y.eq&&s?(s.shorthandAssign<0&&(s.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,o,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},re.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(y.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(y.bracketR),e.key;e.computed=!1}return e.key=this.type===y.num||this.type===y.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},re.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},re.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|j(t,r.generator)|(n?128:0)),this.expect(y.parenL),r.params=this.parseBindingList(y.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(r,"FunctionExpression")},re.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.enterScope(16|j(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,"ArrowFunctionExpression")},re.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==y.braceL,o=this.strict,s=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);o&&!a||(s=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],s&&(this.strict=!0),this.checkParams(e,!o&&!s&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,s&&!o),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()},re.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},re.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var o=i[r];this.checkLValInnerPattern(o,1,t?null:n)}},re.parseExprList=function(e,t,n,r){for(var i=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect(y.comma),t&&this.afterTrailingComma(e))break;var s=void 0;n&&this.type===y.comma?s=null:this.type===y.ellipsis?(s=this.parseSpread(r),r&&this.type===y.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):s=this.parseMaybeAssign(!1,r),i.push(s)}return i},re.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},re.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},re.parseIdentNode=function(){var e=this.startNode();return this.type===y.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,"class"!==e.name&&"function"!==e.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=y.name):this.unexpected(),e},re.parsePrivateIdent=function(){var e=this.startNode();return this.type===y.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},re.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===y.semi||this.canInsertSemicolon()||this.type!==y.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(y.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},re.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var se=V.prototype;se.raise=function(e,t){var n=L(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},se.raiseRecoverable=se.raise,se.curPosition=function(){if(this.options.locations)return new R(this.curLine,this.pos-this.lineStart)};var ae=V.prototype,ue=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ae.enterScope=function(e){this.scopeStack.push(new ue(e))},ae.exitScope=function(){this.scopeStack.pop()},ae.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},ae.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var o=this.currentScope();r=this.treatFunctionsAsVar?o.lexical.indexOf(e)>-1:o.lexical.indexOf(e)>-1||o.var.indexOf(e)>-1,o.functions.push(e)}else for(var s=this.scopeStack.length-1;s>=0;--s){var a=this.scopeStack[s];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},ae.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},ae.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ae.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},ae.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var ce=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new k(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},le=V.prototype;function de(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}le.startNode=function(){return new ce(this,this.start,this.startLoc)},le.startNodeAt=function(e,t){return new ce(this,e,t)},le.finishNode=function(e,t){return de.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},le.finishNodeAt=function(e,t,n,r){return de.call(this,e,t,n,r)},le.copyNode=function(e){var t=new ce(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var he,pe,fe="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ge=fe+" Extended_Pictographic",me=ge+" EBase EComp EMod EPres ExtPict",ve={9:fe,10:ge,11:ge,12:me,13:me,14:me},ye={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ee="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",_e="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",be=_e+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Se=be+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ce=Se+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ie=Ce+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",we={9:_e,10:be,11:Se,12:Ce,13:Ie,14:Ie+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},De={};for(var Te=0,Ae=[9,10,11,12,13,14];Te<Ae.length;Te+=1)pe=void 0,(pe=De[he=Ae[Te]]={binary:M(ve[he]+" "+Ee),binaryOfStrings:M(ye[he]),nonBinary:{General_Category:M(Ee),Script:M(we[he])}}).nonBinary.Script_Extensions=pe.nonBinary.Script,pe.nonBinary.gc=pe.nonBinary.General_Category,pe.nonBinary.sc=pe.nonBinary.Script,pe.nonBinary.scx=pe.nonBinary.Script_Extensions;var Oe=V.prototype,Ne=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=De[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function Me(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Pe(e){return e>=65&&e<=90||e>=97&&e<=122}function xe(e){return Pe(e)||95===e}function Re(e){return xe(e)||ke(e)}function ke(e){return e>=48&&e<=57}function Le(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Fe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Ue(e){return e>=48&&e<=55}Ne.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Ne.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Ne.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var o=n.charCodeAt(e+1);return o>=56320&&o<=57343?(i<<10)+o-56613888:i},Ne.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,o=n.charCodeAt(e);return!t&&!this.switchU||o<=55295||o>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Ne.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Ne.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ne.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ne.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Ne.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var o=i[r],s=this.at(n,t);if(-1===s||s!==o)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},Oe.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,o=0;o<n.length;o++){var s=n.charAt(o);-1===t.indexOf(s)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(s,o+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===s&&(r=!0),"v"===s&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},Oe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Oe.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},Oe.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Oe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Oe.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},Oe.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Oe.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Oe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Oe.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},Oe.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Oe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Oe.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},Oe.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Oe.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Oe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Oe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Me(t)&&(e.lastIntValue=t,e.advance(),!0)},Oe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Me(n);)e.advance();return e.pos!==t},Oe.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},Oe.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},Oe.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},Oe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=P(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=P(e.lastIntValue);return!0}return!1},Oe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return l(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Oe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Oe.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Oe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Oe.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Oe.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Oe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Oe.regexp_eatZero=function(e){return 48===e.current()&&!ke(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Oe.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Oe.regexp_eatControlLetter=function(e){var t=e.current();return!!Pe(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Oe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(i&&o>=55296&&o<=56319){var s=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(o-55296)+(a-56320)+65536,!0}e.pos=s,e.lastIntValue=o}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Oe.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},Oe.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},Oe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},Oe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},Oe.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){A(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Oe.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Oe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";xe(t=e.current());)e.lastStringValue+=P(t),e.advance();return""!==e.lastStringValue},Oe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Re(t=e.current());)e.lastStringValue+=P(t),e.advance();return""!==e.lastStringValue},Oe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Oe.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},Oe.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Oe.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Oe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Ue(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Oe.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Oe.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},Oe.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Oe.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Oe.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},Oe.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},Oe.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Oe.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Oe.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)||(e.advance(),e.lastIntValue=n,0))},Oe.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Oe.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!ke(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},Oe.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Oe.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ke(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Oe.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Le(n=e.current());)e.lastIntValue=16*e.lastIntValue+Fe(n),e.advance();return e.pos!==t},Oe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Oe.regexp_eatOctalDigit=function(e){var t=e.current();return Ue(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Oe.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Le(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Fe(i),e.advance()}return!0};var je=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new k(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Ve=V.prototype;function Be(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}Ve.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new je(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ve.getToken=function(){return this.next(),new je(this)},"undefined"!=typeof Symbol&&(Ve[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===y.eof,value:t}}}}),Ve.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(y.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},Ve.readToken=function(e){return l(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},Ve.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Ve.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=S(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Ve.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!b(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Ve.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&C.test(String.fromCharCode(e))))break e;++this.pos}}},Ve.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Ve.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(y.ellipsis)):(++this.pos,this.finishToken(y.dot))},Ve.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(y.assign,2):this.finishOp(y.slash,1)},Ve.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?y.star:y.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=y.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(y.assign,n+1):this.finishOp(r,n)},Ve.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(y.assign,3):this.finishOp(124===e?y.logicalOR:y.logicalAND,2):61===t?this.finishOp(y.assign,2):this.finishOp(124===e?y.bitwiseOR:y.bitwiseAND,1)},Ve.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(y.assign,2):this.finishOp(y.bitwiseXOR,1)},Ve.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!E.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(y.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(y.assign,2):this.finishOp(y.plusMin,1)},Ve.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(y.assign,n+1):this.finishOp(y.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(y.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Ve.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(y.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(y.arrow)):this.finishOp(61===e?y.eq:y.prefix,1)},Ve.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(y.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(y.assign,3):this.finishOp(y.coalesce,2)}return this.finishOp(y.question,1)},Ve.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,l(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(y.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+P(e)+"'")},Ve.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(y.parenL);case 41:return++this.pos,this.finishToken(y.parenR);case 59:return++this.pos,this.finishToken(y.semi);case 44:return++this.pos,this.finishToken(y.comma);case 91:return++this.pos,this.finishToken(y.bracketL);case 93:return++this.pos,this.finishToken(y.bracketR);case 123:return++this.pos,this.finishToken(y.braceL);case 125:return++this.pos,this.finishToken(y.braceR);case 58:return++this.pos,this.finishToken(y.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(y.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(y.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+P(e)+"'")},Ve.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Ve.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(E.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var o=this.pos,s=this.readWord1();this.containsEsc&&this.unexpected(o);var a=this.regexpState||(this.regexpState=new Ne(this));a.reset(n,i,s),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var u=null;try{u=new RegExp(i,s)}catch(e){}return this.finishToken(y.regexp,{pattern:i,flags:s,value:u})},Ve.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),o=this.pos,s=0,a=0,u=0,c=null==t?1/0:t;u<c;++u,++this.pos){var l=this.input.charCodeAt(this.pos),d=void 0;if(r&&95===l)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===u&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=l;else{if((d=l>=97?l-97+10:l>=65?l-65+10:l>=48&&l<=57?l-48:1/0)>=e)break;a=l,s=s*e+d}}return r&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||null!=t&&this.pos-o!==t?null:s},Ve.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=Be(this.input.slice(t,this.pos)),++this.pos):l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,n)},Ve.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=Be(this.input.slice(t,this.pos));return++this.pos,l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(y.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),l(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o,s=(o=this.input.slice(t,this.pos),n?parseInt(o,8):parseFloat(o.replace(/_/g,"")));return this.finishToken(y.num,s)},Ve.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ve.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(b(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(y.string,t)};var $e={};Ve.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==$e)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ve.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw $e;this.raise(e,t)},Ve.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==y.template&&this.type!==y.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(y.template,e)):36===n?(this.pos+=2,this.finishToken(y.dollarBraceL)):(++this.pos,this.finishToken(y.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(b(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ve.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(y.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Ve.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return P(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return b(t)?"":String.fromCharCode(t)}},Ve.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},Ve.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(d(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var o=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var s=this.readCodePoint();(t?l:d)(s,r)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=P(s),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},Ve.readWord=function(){var e=this.readWord1(),t=y.name;return this.keywords.test(e)&&(t=m[e]),this.finishToken(t,e)},V.acorn={Parser:V,version:"8.11.3",defaultOptions:F,Position:R,SourceLocation:k,getLineInfo:L,Node:ce,TokenType:h,tokTypes:y,keywordTypes:m,TokContext:ee,tokContexts:te,isIdentifierChar:d,isIdentifierStart:l,Token:je,isNewLine:b,lineBreak:E,lineBreakG:_,nonASCIIwhitespace:C}},2962:(e,t,n)=>{"use strict";n.d(t,{G9:()=>CW,r6:()=>PW,Ty:()=>SW,bJ:()=>IW,yC:()=>wW,Lb:()=>bW,b1:()=>MW,Gw:()=>NW,P8:()=>OW,Dh:()=>AW});var r={};function i(e,t){return Object.is(e,t)}n.r(r),n.d(r,{ANIMATION_MODULE_TYPE:()=>uc,APP_BOOTSTRAP_LISTENER:()=>ZI,APP_ID:()=>rc,APP_INITIALIZER:()=>QI,AfterRenderPhase:()=>Of,ApplicationInitStatus:()=>JI,ApplicationModule:()=>DD,ApplicationRef:()=>ow,Attribute:()=>ja,COMPILER_OPTIONS:()=>pw,CSP_NONCE:()=>cc,CUSTOM_ELEMENTS_SCHEMA:()=>ad,ChangeDetectionStrategy:()=>Zn,ChangeDetectorRef:()=>qw,Compiler:()=>hw,CompilerFactory:()=>fw,Component:()=>bI,ComponentFactory:()=>lf,ComponentFactoryResolver:()=>hf,ComponentRef:()=>cf,ContentChild:()=>Jg,ContentChildren:()=>Qg,DEFAULT_CURRENCY_CODE:()=>ww,DebugElement:()=>Zw,DebugEventListener:()=>Yw,DebugNode:()=>Jw,DefaultIterableDiffer:()=>cD,DestroyRef:()=>tu,Directive:()=>_I,ENVIRONMENT_INITIALIZER:()=>Kn,ElementRef:()=>du,EmbeddedViewRef:()=>Kw,EnvironmentInjector:()=>Zr,ErrorHandler:()=>Xa,EventEmitter:()=>fu,Host:()=>Rn,HostAttributeToken:()=>Ja,HostBinding:()=>wI,HostListener:()=>DI,INJECTOR:()=>Yn,Inject:()=>Nn,InjectFlags:()=>dn,Injectable:()=>Wa,InjectionToken:()=>jt,Injector:()=>Qa,Input:()=>CI,IterableDiffers:()=>yD,KeyValueDiffers:()=>_D,LOCALE_ID:()=>Iw,MissingTranslationStrategy:()=>Aw,ModuleWithComponentFactories:()=>dw,NO_ERRORS_SCHEMA:()=>ud,NgModule:()=>TI,NgModuleFactory:()=>Pm,NgModuleRef:()=>Mm,NgProbeToken:()=>nw,NgZone:()=>Sf,Optional:()=>Mn,Output:()=>II,OutputEmitterRef:()=>iu,PACKAGE_ROOT_URL:()=>ac,PLATFORM_ID:()=>sc,PLATFORM_INITIALIZER:()=>oc,Pipe:()=>SI,PlatformRef:()=>Nw,Query:()=>Yg,QueryList:()=>mu,Renderer2:()=>ff,RendererFactory2:()=>pf,RendererStyleFlags2:()=>xd,Sanitizer:()=>gf,SecurityContext:()=>zl,Self:()=>Pn,SimpleChange:()=>Io,SkipSelf:()=>xn,TRANSLATIONS:()=>Dw,TRANSLATIONS_FORMAT:()=>Tw,TemplateRef:()=>Tp,Testability:()=>GI,TestabilityRegistry:()=>qI,TransferState:()=>fc,Type:()=>hi,VERSION:()=>OI,Version:()=>AI,ViewChild:()=>Xg,ViewChildren:()=>Zg,ViewContainerRef:()=>Xf,ViewEncapsulation:()=>Xn,ViewRef:()=>Ww,afterNextRender:()=>xf,afterRender:()=>Pf,asNativeElements:()=>Qw,assertInInjectionContext:()=>si,assertNotInReactiveContext:()=>vf,assertPlatform:()=>Lw,booleanAttribute:()=>tT,computed:()=>hT,contentChild:()=>$g,contentChildren:()=>Hg,createComponent:()=>ET,createEnvironmentInjector:()=>Um,createNgModule:()=>xm,createNgModuleRef:()=>Rm,createPlatform:()=>xw,createPlatformFactory:()=>Rw,defineInjectable:()=>Ot,destroyPlatform:()=>Uw,effect:()=>yT,enableProdMode:()=>Bw,forwardRef:()=>at,getDebugNode:()=>sD,getModuleFactory:()=>$w,getNgModuleById:()=>Hw,getPlatform:()=>Fw,importProvidersFrom:()=>Lr,inject:()=>Dn,input:()=>uu,isDevMode:()=>Vw,isSignal:()=>Ag,isStandalone:()=>Or,makeEnvironmentProviders:()=>kr,makeStateKey:()=>hc,mergeApplicationConfig:()=>bT,model:()=>Wg,numberAttribute:()=>nT,output:()=>su,platformCore:()=>wD,provideZoneChangeDetection:()=>bw,reflectComponentType:()=>_T,resolveForwardRef:()=>ut,runInInjectionContext:()=>ii,setTestabilityGetter:()=>zI,signal:()=>Ng,untracked:()=>pT,viewChild:()=>jg,viewChildren:()=>Vg,ɵALLOW_MULTIPLE_PLATFORMS:()=>Pw,ɵAfterRenderEventManager:()=>Lf,ɵCONTAINER_HEADER_OFFSET:()=>Qi,ɵChangeDetectionScheduler:()=>uf,ɵComponentFactory:()=>lf,ɵConsole:()=>NI,ɵDEFAULT_LOCALE_ID:()=>S_,ɵDEFER_BLOCK_CONFIG:()=>zv,ɵDEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>qv,ɵDeferBlockBehavior:()=>mv,ɵDeferBlockState:()=>uv,ɵEffectScheduler:()=>gT,ɵIMAGE_CONFIG:()=>dc,ɵIMAGE_CONFIG_DEFAULTS:()=>lc,ɵINJECTOR_SCOPE:()=>Wr,ɵINPUT_SIGNAL_BRAND_WRITE_TYPE:()=>He,ɵIS_HYDRATION_DOM_REUSE_ENABLED:()=>Gc,ɵLContext:()=>Du,ɵLifecycleHooksFeature:()=>Zf,ɵLocaleDataIndex:()=>__,ɵNG_COMP_DEF:()=>Jt,ɵNG_DIR_DEF:()=>Zt,ɵNG_ELEMENT_ID:()=>nn,ɵNG_INJ_DEF:()=>Lt,ɵNG_MOD_DEF:()=>en,ɵNG_PIPE_DEF:()=>Xt,ɵNG_PROV_DEF:()=>kt,ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>mf,ɵNO_CHANGE:()=>mh,ɵNgModuleFactory:()=>Lm,ɵNoopNgZone:()=>Af,ɵPendingTasks:()=>Gm,ɵReflectionCapabilities:()=>yi,ɵRender3ComponentFactory:()=>Qf,ɵRender3ComponentRef:()=>Jf,ɵRender3NgModuleRef:()=>km,ɵRuntimeError:()=>je,ɵSSR_CONTENT_INTEGRITY_MARKER:()=>Ac,ɵTESTABILITY:()=>$I,ɵTESTABILITY_GETTER:()=>HI,ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT:()=>Hf,ɵViewRef:()=>Dp,ɵXSS_SECURITY_URL:()=>Ue,ɵ_sanitizeHtml:()=>Gl,ɵ_sanitizeUrl:()=>_l,ɵallowSanitizationBypassAndThrow:()=>cl,ɵannotateForHydration:()=>qD,ɵbypassSanitizationTrustHtml:()=>dl,ɵbypassSanitizationTrustResourceUrl:()=>gl,ɵbypassSanitizationTrustScript:()=>pl,ɵbypassSanitizationTrustStyle:()=>hl,ɵbypassSanitizationTrustUrl:()=>fl,ɵclearResolutionOfComponentResourcesQueue:()=>om,ɵcompileComponent:()=>rI,ɵcompileDirective:()=>iI,ɵcompileNgModule:()=>HC,ɵcompileNgModuleDefs:()=>GC,ɵcompileNgModuleFactory:()=>gw,ɵcompilePipe:()=>yI,ɵconvertToBitFlags:()=>Tn,ɵcreateInjector:()=>Ka,ɵdefaultIterableDiffers:()=>CD,ɵdefaultKeyValueDiffers:()=>ID,ɵdepsTracker:()=>qf,ɵdetectChangesInViewIfRequired:()=>cw,ɵdevModeEqual:()=>Wm,ɵfindLocaleData:()=>g_,ɵflushModuleScopingQueueAsMuchAsPossible:()=>BC,ɵformatRuntimeError:()=>Ve,ɵgenerateStandaloneInDeclarationsError:()=>qC,ɵgetAsyncClassMetadataFn:()=>Bm,ɵgetDebugNode:()=>sD,ɵgetDeferBlocks:()=>PD,ɵgetDirectives:()=>Ku,ɵgetEnsureDirtyViewsAreAlwaysReachable:()=>Fo,ɵgetHostElement:()=>Yu,ɵgetInjectableDef:()=>Mt,ɵgetLContext:()=>Tu,ɵgetLocaleCurrencyCode:()=>m_,ɵgetLocalePluralCase:()=>v_,ɵgetOutputDestroyRef:()=>ou,ɵgetSanitizationBypassType:()=>ll,ɵgetUnknownElementStrictMode:()=>dd,ɵgetUnknownPropertyStrictMode:()=>fd,ɵglobal:()=>Xe,ɵinjectChangeDetectorRef:()=>zw,ɵinternalAfterNextRender:()=>Mf,ɵinternalCreateApplication:()=>OD,ɵisBoundToModule:()=>tw,ɵisComponentDefPendingResolution:()=>rm,ɵisEnvironmentProviders:()=>Qt,ɵisInjectable:()=>Pt,ɵisNgModule:()=>Uf,ɵisPromise:()=>KI,ɵisSubscribable:()=>YI,ɵnoSideEffects:()=>qe,ɵpatchComponentDefWithScope:()=>XC,ɵperformanceMarkFeature:()=>Ef,ɵprovideZonelessChangeDetection:()=>MD,ɵqueueStateUpdate:()=>eT,ɵreadHydrationInfo:()=>Lc,ɵregisterLocaleData:()=>f_,ɵrenderDeferBlockState:()=>py,ɵresetCompiledComponents:()=>QC,ɵresetJitOptions:()=>UC,ɵresolveComponentResources:()=>em,ɵrestoreComponentResolutionQueue:()=>sm,ɵsetAllowDuplicateNgModuleIdsForTest:()=>hm,ɵsetAlternateWeakRefImpl:()=>TD,ɵsetClassDebugInfo:()=>kC,ɵsetClassMetadata:()=>Hm,ɵsetClassMetadataAsync:()=>$m,ɵsetCurrentInjector:()=>Sn,ɵsetDocument:()=>tc,ɵsetEnsureDirtyViewsAreAlwaysReachable:()=>Uo,ɵsetInjectorProfilerContext:()=>$t,ɵsetLocaleId:()=>T_,ɵsetUnknownElementStrictMode:()=>ld,ɵsetUnknownPropertyStrictMode:()=>pd,ɵstore:()=>fS,ɵstringify:()=>rt,ɵtransitiveScopesFor:()=>eI,ɵtriggerResourceLoading:()=>Ey,ɵtruncateMiddle:()=>ot,ɵunregisterLocaleData:()=>E_,ɵunwrapSafeValue:()=>ul,ɵunwrapWritableSignal:()=>Og,ɵwhenStable:()=>uw,ɵwithDomHydration:()=>LD,ɵwithI18nHydration:()=>FD,ɵɵCopyDefinitionFeature:()=>Cm,ɵɵFactoryTarget:()=>ai,ɵɵHostDirectivesFeature:()=>Im,ɵɵInheritDefinitionFeature:()=>gm,ɵɵInputFlags:()=>er,ɵɵInputTransformsFeature:()=>Nm,ɵɵNgOnChangesFeature:()=>Do,ɵɵProvidersFeature:()=>rC,ɵɵStandaloneFeature:()=>oC,ɵɵadvance:()=>vh,ɵɵattribute:()=>Cy,ɵɵattributeInterpolate1:()=>xy,ɵɵattributeInterpolate2:()=>Ry,ɵɵattributeInterpolate3:()=>ky,ɵɵattributeInterpolate4:()=>Ly,ɵɵattributeInterpolate5:()=>Fy,ɵɵattributeInterpolate6:()=>Uy,ɵɵattributeInterpolate7:()=>jy,ɵɵattributeInterpolate8:()=>Vy,ɵɵattributeInterpolateV:()=>By,ɵɵclassMap:()=>hE,ɵɵclassMapInterpolate1:()=>DE,ɵɵclassMapInterpolate2:()=>TE,ɵɵclassMapInterpolate3:()=>AE,ɵɵclassMapInterpolate4:()=>OE,ɵɵclassMapInterpolate5:()=>NE,ɵɵclassMapInterpolate6:()=>ME,ɵɵclassMapInterpolate7:()=>PE,ɵɵclassMapInterpolate8:()=>xE,ɵɵclassMapInterpolateV:()=>RE,ɵɵclassProp:()=>cE,ɵɵcomponentInstance:()=>kE,ɵɵconditional:()=>$E,ɵɵcontentQuery:()=>aS,ɵɵcontentQuerySignal:()=>dS,ɵɵdefer:()=>Qv,ɵɵdeferEnableTimerScheduling:()=>Yv,ɵɵdeferOnHover:()=>oy,ɵɵdeferOnIdle:()=>Xv,ɵɵdeferOnImmediate:()=>ty,ɵɵdeferOnInteraction:()=>ay,ɵɵdeferOnTimer:()=>ry,ɵɵdeferOnViewport:()=>cy,ɵɵdeferPrefetchOnHover:()=>sy,ɵɵdeferPrefetchOnIdle:()=>ey,ɵɵdeferPrefetchOnImmediate:()=>ny,ɵɵdeferPrefetchOnInteraction:()=>uy,ɵɵdeferPrefetchOnTimer:()=>iy,ɵɵdeferPrefetchOnViewport:()=>ly,ɵɵdeferPrefetchWhen:()=>Zv,ɵɵdeferWhen:()=>Jv,ɵɵdefineComponent:()=>Er,ɵɵdefineDirective:()=>Ir,ɵɵdefineInjectable:()=>At,ɵɵdefineInjector:()=>Nt,ɵɵdefineNgModule:()=>Sr,ɵɵdefinePipe:()=>wr,ɵɵdirectiveInject:()=>Eh,ɵɵdisableBindings:()=>cs,ɵɵelement:()=>e_,ɵɵelementContainer:()=>o_,ɵɵelementContainerEnd:()=>i_,ɵɵelementContainerStart:()=>r_,ɵɵelementEnd:()=>XE,ɵɵelementStart:()=>ZE,ɵɵenableBindings:()=>us,ɵɵgetComponentDepsFactory:()=>RC,ɵɵgetCurrentView:()=>u_,ɵɵgetInheritedFactory:()=>ka,ɵɵhostProperty:()=>c_,ɵɵi18n:()=>Fb,ɵɵi18nApply:()=>Vb,ɵɵi18nAttributes:()=>Ub,ɵɵi18nEnd:()=>Lb,ɵɵi18nExp:()=>jb,ɵɵi18nPostprocess:()=>Bb,ɵɵi18nStart:()=>kb,ɵɵinject:()=>In,ɵɵinjectAttribute:()=>Ua,ɵɵinvalidFactory:()=>_h,ɵɵinvalidFactoryDep:()=>wn,ɵɵlistener:()=>$b,ɵɵloadQuery:()=>lS,ɵɵnamespaceHTML:()=>zs,ɵɵnamespaceMathML:()=>qs,ɵɵnamespaceSVG:()=>Gs,ɵɵnextContext:()=>Wb,ɵɵngDeclareClassMetadata:()=>iT,ɵɵngDeclareComponent:()=>oT,ɵɵngDeclareDirective:()=>rT,ɵɵngDeclareFactory:()=>sT,ɵɵngDeclareInjectable:()=>uT,ɵɵngDeclareInjector:()=>cT,ɵɵngDeclareNgModule:()=>lT,ɵɵngDeclarePipe:()=>dT,ɵɵpipe:()=>DC,ɵɵpipeBind1:()=>TC,ɵɵpipeBind2:()=>AC,ɵɵpipeBind3:()=>OC,ɵɵpipeBind4:()=>NC,ɵɵpipeBindV:()=>MC,ɵɵprojection:()=>Qb,ɵɵprojectionDef:()=>Yb,ɵɵproperty:()=>sE,ɵɵpropertyInterpolate:()=>Jb,ɵɵpropertyInterpolate1:()=>Zb,ɵɵpropertyInterpolate2:()=>Xb,ɵɵpropertyInterpolate3:()=>eS,ɵɵpropertyInterpolate4:()=>tS,ɵɵpropertyInterpolate5:()=>nS,ɵɵpropertyInterpolate6:()=>rS,ɵɵpropertyInterpolate7:()=>iS,ɵɵpropertyInterpolate8:()=>oS,ɵɵpropertyInterpolateV:()=>sS,ɵɵpureFunction0:()=>lC,ɵɵpureFunction1:()=>dC,ɵɵpureFunction2:()=>hC,ɵɵpureFunction3:()=>pC,ɵɵpureFunction4:()=>fC,ɵɵpureFunction5:()=>gC,ɵɵpureFunction6:()=>mC,ɵɵpureFunction7:()=>vC,ɵɵpureFunction8:()=>yC,ɵɵpureFunctionV:()=>EC,ɵɵqueryAdvance:()=>pS,ɵɵqueryRefresh:()=>cS,ɵɵreference:()=>gS,ɵɵregisterNgModuleType:()=>lm,ɵɵrepeater:()=>YE,ɵɵrepeaterCreate:()=>WE,ɵɵrepeaterTrackByIdentity:()=>qE,ɵɵrepeaterTrackByIndex:()=>GE,ɵɵresetView:()=>ps,ɵɵresolveBody:()=>Id,ɵɵresolveDocument:()=>Cd,ɵɵresolveWindow:()=>Sd,ɵɵrestoreView:()=>hs,ɵɵsanitizeHtml:()=>Wl,ɵɵsanitizeResourceUrl:()=>Ql,ɵɵsanitizeScript:()=>Jl,ɵɵsanitizeStyle:()=>Kl,ɵɵsanitizeUrl:()=>Yl,ɵɵsanitizeUrlOrResourceUrl:()=>ed,ɵɵsetComponentScope:()=>sC,ɵɵsetNgModuleScope:()=>aC,ɵɵstyleMap:()=>lE,ɵɵstyleMapInterpolate1:()=>mS,ɵɵstyleMapInterpolate2:()=>vS,ɵɵstyleMapInterpolate3:()=>yS,ɵɵstyleMapInterpolate4:()=>ES,ɵɵstyleMapInterpolate5:()=>_S,ɵɵstyleMapInterpolate6:()=>bS,ɵɵstyleMapInterpolate7:()=>SS,ɵɵstyleMapInterpolate8:()=>CS,ɵɵstyleMapInterpolateV:()=>IS,ɵɵstyleProp:()=>uE,ɵɵstylePropInterpolate1:()=>wS,ɵɵstylePropInterpolate2:()=>DS,ɵɵstylePropInterpolate3:()=>TS,ɵɵstylePropInterpolate4:()=>AS,ɵɵstylePropInterpolate5:()=>OS,ɵɵstylePropInterpolate6:()=>NS,ɵɵstylePropInterpolate7:()=>MS,ɵɵstylePropInterpolate8:()=>PS,ɵɵstylePropInterpolateV:()=>xS,ɵɵsyntheticHostListener:()=>Hb,ɵɵsyntheticHostProperty:()=>l_,ɵɵtemplate:()=>tv,ɵɵtemplateRefExtractor:()=>xC,ɵɵtext:()=>RS,ɵɵtextInterpolate:()=>FS,ɵɵtextInterpolate1:()=>US,ɵɵtextInterpolate2:()=>jS,ɵɵtextInterpolate3:()=>VS,ɵɵtextInterpolate4:()=>BS,ɵɵtextInterpolate5:()=>$S,ɵɵtextInterpolate6:()=>HS,ɵɵtextInterpolate7:()=>GS,ɵɵtextInterpolate8:()=>qS,ɵɵtextInterpolateV:()=>zS,ɵɵtrustConstantHtml:()=>Zl,ɵɵtrustConstantResourceUrl:()=>Xl,ɵɵtwoWayBindingSet:()=>KS,ɵɵtwoWayListener:()=>YS,ɵɵtwoWayProperty:()=>WS,ɵɵvalidateIframeAttribute:()=>pm,ɵɵviewQuery:()=>uS,ɵɵviewQuerySignal:()=>hS});let o=null,s=!1,a=1;const u=Symbol("SIGNAL");function c(e){const t=o;return o=e,t}function l(){return o}const d={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function h(e){if(s)throw new Error("undefined"!=typeof ngDevMode&&ngDevMode?"Assertion error: signal read during notification phase":"");if(null===o)return;o.consumerOnSignalRead(e);const t=o.nextProducerIndex++;I(o),t<o.producerNode.length&&o.producerNode[t]!==e&&C(o)&&S(o.producerNode[t],o.producerIndexOfThis[t]),o.producerNode[t]!==e&&(o.producerNode[t]=e,o.producerIndexOfThis[t]=C(o)?b(e,o,t):0),o.producerLastReadVersion[t]=e.version}function p(e){if((!C(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==a)){if(!e.producerMustRecompute(e)&&!E(e))return e.dirty=!1,void(e.lastCleanEpoch=a);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=a}}function f(e){if(void 0===e.liveConsumerNode)return;const t=s;s=!0;try{for(const t of e.liveConsumerNode)t.dirty||m(t)}finally{s=t}}function g(){return!1!==o?.consumerAllowSignalWrites}function m(e){e.dirty=!0,f(e),e.consumerMarkedDirty?.(e)}function v(e){return e&&(e.nextProducerIndex=0),c(e)}function y(e,t){if(c(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(C(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)S(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function E(e){I(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version)return!0;if(p(n),r!==n.version)return!0}return!1}function _(e){if(I(e),C(e))for(let t=0;t<e.producerNode.length;t++)S(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function b(e,t,n){if(w(e),I(e),0===e.liveConsumerNode.length)for(let t=0;t<e.producerNode.length;t++)e.producerIndexOfThis[t]=b(e.producerNode[t],e,t);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function S(e,t){if(w(e),I(e),"undefined"!=typeof ngDevMode&&ngDevMode&&t>=e.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(1===e.liveConsumerNode.length)for(let t=0;t<e.producerNode.length;t++)S(e.producerNode[t],e.producerIndexOfThis[t]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const n=e.liveConsumerIndexOfThis[t],r=e.liveConsumerNode[t];I(r),r.producerIndexOfThis[n]=t}}function C(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function I(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function w(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function D(e){const t=Object.create(N);t.computation=e;const n=()=>{if(p(t),h(t),t.value===O)throw t.error;return t.value};return n[u]=t,n}const T=Symbol("UNSET"),A=Symbol("COMPUTING"),O=Symbol("ERRORED"),N=(()=>({...d,value:T,dirty:!0,error:null,equal:i,producerMustRecompute:e=>e.value===T||e.value===A,producerRecomputeValue(e){if(e.value===A)throw new Error("Detected cycle in computations.");const t=e.value;e.value=A;const n=v(e);let r;try{r=e.computation()}catch(t){r=O,e.error=t}finally{y(e,n)}t!==T&&t!==O&&r!==O&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}}))();let M=function(){throw new Error};function P(){M()}let x=null;function R(e,t){g()||P(),e.equal(e.value,t)||(e.value=t,function(e){e.version++,a++,f(e),x?.()}(e))}const k=(()=>({...d,equal:i,value:void 0}))();const L=()=>{},F=(()=>({...d,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:L}))();var U=function(e,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},U(e,t)};function j(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}U(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function V(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function B(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function $(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function H(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function q(e){return"function"==typeof e}function z(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var W=z((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function K(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=B(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;if(q(u))try{u()}catch(e){i=e instanceof W?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=B(c),d=l.next();!d.done;d=l.next()){var h=d.value;try{Z(h)}catch(e){i=null!=i?i:[],e instanceof W?i=H(H([],$(i)),$(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new W(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Z(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&K(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&K(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e;var t}(),Q=Y.EMPTY;function J(e){return e instanceof Y||e&&"closed"in e&&q(e.remove)&&q(e.add)&&q(e.unsubscribe)}function Z(e){q(e)?e():e.unsubscribe()}var X={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ee={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ee.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,H([e,t],$(n))):setTimeout.apply(void 0,H([e,t],$(n)))},clearTimeout:function(e){var t=ee.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function te(e){ee.setTimeout((function(){var t=X.onUnhandledError;if(!t)throw e;t(e)}))}function ne(){}var re=ie("C",void 0,void 0);function ie(e,t,n){return{kind:e,value:t,error:n}}var oe=null;function se(e){if(X.useDeprecatedSynchronousErrorHandling){var t=!oe;if(t&&(oe={errorThrown:!1,error:null}),e(),t){var n=oe,r=n.errorThrown,i=n.error;if(oe=null,r)throw i}}else e()}var ae=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,J(t)&&t.add(n)):n.destination=fe,n}return j(t,e),t.create=function(e,t,n){return new de(e,t,n)},t.prototype.next=function(e){this.isStopped?pe(function(e){return ie("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?pe(ie("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?pe(re,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Y),ue=Function.prototype.bind;function ce(e,t){return ue.call(e,t)}var le=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){he(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){he(e)}else he(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){he(e)}},e}(),de=function(e){function t(t,n,r){var i,o,s=e.call(this)||this;return q(t)||!t?i={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:s&&X.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&ce(t.next,o),error:t.error&&ce(t.error,o),complete:t.complete&&ce(t.complete,o)}):i=t,s.destination=new le(i),s}return j(t,e),t}(ae);function he(e){var t;X.useDeprecatedSynchronousErrorHandling?(t=e,X.useDeprecatedSynchronousErrorHandling&&oe&&(oe.errorThrown=!0,oe.error=t)):te(e)}function pe(e,t){var n=X.onStoppedNotification;n&&ee.setTimeout((function(){return n(e,t)}))}var fe={closed:!0,next:ne,error:function(e){throw e},complete:ne},ge="function"==typeof Symbol&&Symbol.observable||"@@observable";function me(e){return e}function ve(e){return 0===e.length?me:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var ye=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof ae||function(e){return e&&q(e.next)&&q(e.error)&&q(e.complete)}(r)&&J(r)?e:new de(e,t,n);return se((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ee(t))((function(t,r){var i=new de({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[ge]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ve(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ee(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Ee(e){var t;return null!==(t=null!=e?e:X.Promise)&&void 0!==t?t:Promise}var _e=z((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),be=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return j(t,e),t.prototype.lift=function(e){var t=new Se(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new _e},t.prototype.next=function(e){var t=this;se((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=B(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;se((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;se((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Q:(this.currentObservers=null,o.push(e),new Y((function(){t.currentObservers=null,K(o,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new ye;return e.source=this,e},t.create=function(e,t){return new Se(e,t)},t}(ye),Se=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return j(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Q},t}(be),Ce=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return j(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(be);function Ie(e){return q(null==e?void 0:e.lift)}function we(e){return function(t){if(Ie(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}function De(e,t,n,r,i){return new Te(e,t,n,r,i)}var Te=function(e){function t(t,n,r,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return j(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(ae);function Ae(e,t){return we((function(n,r){var i=0;n.subscribe(De(r,(function(n){r.next(e.call(t,n,i++))})))}))}var Oe=z((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Ne(e,t){return we((function(n,r){var i=0;n.subscribe(De(r,(function(n){return e.call(t,n,i++)&&r.next(n)})))}))}var Me=new ye((function(e){return e.complete()}));function Pe(e){return e<=0?function(){return Me}:we((function(t,n){var r=0;t.subscribe(De(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function xe(e){return we((function(t,n){var r=!1;t.subscribe(De(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function Re(e){return void 0===e&&(e=ke),we((function(t,n){var r=!1;t.subscribe(De(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function ke(){return new Oe}function Le(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Ne((function(t,n){return e(t,n,r)})):me,Pe(1),n?xe(t):Re((function(){return new Oe})))}}const Fe="https://angular.io/errors",Ue="https://g.co/ng/security#xss";class je extends Error{constructor(e,t){super(Ve(e,t)),this.code=e}}function Ve(e,t){const n=`NG0${Math.abs(e)}`;let r=`${n}${t?": "+t:""}`;if(ngDevMode&&e<0){const e=!r.match(/[.,;!?\n]$/);r=`${r}${e?".":""} Find more at ${Fe}/${n}`}return r}const Be=Symbol("InputSignalNode#UNSET"),$e=(()=>({...k,transformFn:void 0,applyValueToInputSignal(e,t){R(e,t)}}))(),He=Symbol();function Ge(e,t){const n=Object.create($e);function r(){if(h(n),n.value===Be)throw new je(-950,ngDevMode&&"Input is required but no value is available yet.");return n.value}return n.value=e,n.transformFn=t?.transform,r[u]=n,ngDevMode&&(r.toString=()=>`[Input Signal: ${r()}]`),r}function qe(e){return{toString:e}.toString()}const ze="__annotations__",We="__parameters__",Ke="__prop__metadata__";function Ye(e,t,n,r,i){return qe((()=>{const o=Qe(t);function s(...e){if(this instanceof s)return o.call(this,...e),this;const t=new s(...e);return function(n){return i&&i(n,...e),(n.hasOwnProperty(ze)?n[ze]:Object.defineProperty(n,ze,{value:[]})[ze]).push(t),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s}))}function Qe(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}function Je(e,t,n){return qe((()=>{const r=Qe(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(We)?e[We]:Object.defineProperty(e,We,{value:[]})[We];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}function Ze(e,t,n,r){return qe((()=>{const i=Qe(t);function o(...e){if(this instanceof o)return i.apply(this,e),this;const t=new o(...e);return function(n,i){if(void 0===n)throw new Error("Standard Angular field decorators are not supported in JIT mode.");const o=n.constructor,s=o.hasOwnProperty(Ke)?o[Ke]:Object.defineProperty(o,Ke,{value:{}})[Ke];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(t),r&&r(n,i,...e)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}))}const Xe=globalThis;function et(){return!("undefined"!=typeof ngDevMode&&!ngDevMode||("object"==typeof ngDevMode&&0!==Object.keys(ngDevMode).length||function(){const e="undefined"!=typeof location?location.toString():"",t={namedConstructors:-1!=e.indexOf("ngDevMode=namedConstructors"),firstCreatePass:0,tNode:0,tView:0,rendererCreateTextNode:0,rendererSetText:0,rendererCreateElement:0,rendererAddEventListener:0,rendererSetAttribute:0,rendererRemoveAttribute:0,rendererSetProperty:0,rendererSetClassName:0,rendererAddClass:0,rendererRemoveClass:0,rendererSetStyle:0,rendererRemoveStyle:0,rendererDestroy:0,rendererDestroyNode:0,rendererMoveNode:0,rendererRemoveNode:0,rendererAppendChild:0,rendererInsertBefore:0,rendererCreateComment:0,hydratedNodes:0,hydratedComponents:0,dehydratedViewsRemoved:0,dehydratedViewsCleanupRuns:0,componentsSkippedHydration:0};-1===e.indexOf("ngDevMode=false")?("object"!=typeof Xe.ngDevMode&&(Xe.ngDevMode={}),Object.assign(Xe.ngDevMode,t)):Xe.ngDevMode=!1}(),"undefined"==typeof ngDevMode||!ngDevMode))}function tt(e){for(let t in e)if(e[t]===tt)return t;throw Error("Could not find renamed property on target object.")}function nt(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function rt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(rt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function it(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}function ot(e,t=100){if(!e||t<1||e.length<=t)return e;if(1==t)return e.substring(0,1)+"...";const n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}const st=tt({__forward_ref__:tt});function at(e){return e.__forward_ref__=at,e.toString=function(){return rt(this())},e}function ut(e){return ct(e)?e():e}function ct(e){return"function"==typeof e&&e.hasOwnProperty(st)&&e.__forward_ref__===at}function lt(e,t){"number"!=typeof e&&Ct(t,typeof e,"number","===")}function dt(e,t,n){lt(e,"Expected a number"),Et(e,n,"Expected number to be less than or equal to"),bt(e,t,"Expected number to be greater than or equal to")}function ht(e,t){"string"!=typeof e&&Ct(t,null===e?"null":typeof e,"string","===")}function pt(e,t){"function"!=typeof e&&Ct(t,null===e?"null":typeof e,"function","===")}function ft(e,t,n){e!=t&&Ct(n,e,t,"==")}function gt(e,t,n){e==t&&Ct(n,e,t,"!=")}function mt(e,t,n){e!==t&&Ct(n,e,t,"===")}function vt(e,t,n){e===t&&Ct(n,e,t,"!==")}function yt(e,t,n){e<t||Ct(n,e,t,"<")}function Et(e,t,n){e<=t||Ct(n,e,t,"<=")}function _t(e,t,n){e>t||Ct(n,e,t,">")}function bt(e,t,n){e>=t||Ct(n,e,t,">=")}function St(e,t){null==e&&Ct(t,e,null,"!=")}function Ct(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function It(e){e instanceof Node||Ct(`The provided value must be an instance of a DOM Node but got ${rt(e)}`)}function wt(e,t){St(e,"Array must be defined.");const n=e.length;(t<0||t>=n)&&Ct(`Index expected to be less than ${n} but got ${t}`)}function Dt(e,...t){if(-1!==t.indexOf(e))return!0;Ct(`Expected value to be one of ${JSON.stringify(t)} but was ${JSON.stringify(e)}.`)}function Tt(e){null!==l()&&Ct(`${e}() should never be called in a reactive context.`)}function At(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Ot=At;function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Mt(e){return xt(e,kt)||xt(e,Ft)}function Pt(e){return null!==Mt(e)}function xt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Rt(e){return e&&(e.hasOwnProperty(Lt)||e.hasOwnProperty(Ut))?e[Lt]:null}const kt=tt({ɵprov:tt}),Lt=tt({ɵinj:tt}),Ft=tt({ngInjectableDef:tt}),Ut=tt({ngInjectorDef:tt});class jt{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ɵprov=void 0,"number"==typeof t?(("undefined"==typeof ngDevMode||ngDevMode)&&yt(t,0,"Only negative numbers are supported here"),this.__NG_ELEMENT_ID__=t):void 0!==t&&(this.ɵprov=At({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let Vt;function Bt(){return!ngDevMode&&Ct("getInjectorProfilerContext should never be called in production mode"),Vt}function $t(e){!ngDevMode&&Ct("setInjectorProfilerContext should never be called in production mode");const t=Vt;return Vt=e,t}let Ht=null;const Gt=e=>{!ngDevMode&&Ct("setInjectorProfiler should never be called in production mode"),Ht=e};function qt(e){!ngDevMode&&Ct("Injector profiler should never be called in production mode"),null!=Ht&&Ht(e)}function zt(e,t=!1){let n;!ngDevMode&&Ct("Injector profiler should never be called in production mode"),n="function"==typeof e||e instanceof jt?e:ut(e.provide);let r=e;e instanceof jt&&(r=e.ɵprov||e),qt({type:2,context:Bt(),providerRecord:{token:n,provider:r,isViewProvider:t}})}function Wt(e){!ngDevMode&&Ct("Injector profiler should never be called in production mode"),qt({type:1,context:Bt(),instance:{value:e}})}function Kt(e,t,n){!ngDevMode&&Ct("Injector profiler should never be called in production mode"),qt({type:0,context:Bt(),service:{token:e,value:t,flags:n}})}function Yt(e,t,n){!ngDevMode&&Ct("runInInjectorProfilerContext should never be called in production mode");const r=$t({injector:e,token:t});try{n()}finally{$t(r)}}function Qt(e){return e&&!!e.ɵproviders}const Jt=tt({ɵcmp:tt}),Zt=tt({ɵdir:tt}),Xt=tt({ɵpipe:tt}),en=tt({ɵmod:tt}),tn=tt({ɵfac:tt}),nn=tt({__NG_ELEMENT_ID__:tt}),rn=tt({__NG_ENV_ID__:tt});function on(e){return"string"==typeof e?e:null==e?"":String(e)}function sn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():on(e)}function an(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new je(-200,ngDevMode?`Circular dependency in DI detected for ${e}${n}`:e)}function un(){throw new Error("Cannot mix multi providers and regular providers")}function cn(e,t,n){if(e&&t){const r=t.map((e=>e==n?"?"+n+"?":"..."));throw new Error(`Invalid provider for the NgModule '${rt(e)}' - only instances of Provider and Type are allowed, got: [${r.join(", ")}]`)}throw Qt(n)?n.ɵfromNgModule?new je(207,"Invalid providers from 'importProvidersFrom' present in a non-environment injector. 'importProvidersFrom' can't be used for component providers."):new je(207,"Invalid providers present in a non-environment injector. 'EnvironmentProviders' can't be used for component providers."):new Error("Invalid provider")}function ln(e,t){const n=ngDevMode&&`No provider for ${sn(e)} found${t?` in ${t}`:""}`;throw new je(-201,n)}var dn;let hn;function pn(){return hn}function fn(e){const t=hn;return hn=e,t}function gn(e,t,n){const r=Mt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&dn.Optional?null:void 0!==t?t:void ln(e,"Injector")}!function(e){e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional"}(dn||(dn={}));const mn={},vn="__NG_DI_FLAG__",yn="ngTempTokenPath",En=/\n/gm,_n="__source";let bn;function Sn(e){const t=bn;return bn=e,t}function Cn(e,t=dn.Default){if(void 0===bn)throw new je(-203,ngDevMode&&"inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`.");if(null===bn)return gn(e,void 0,t);{const n=bn.get(e,t&dn.Optional?null:void 0,t);return ngDevMode&&Kt(e,n,t),n}}function In(e,t=dn.Default){return(pn()||Cn)(ut(e),t)}function wn(e){throw new je(202,ngDevMode&&`This constructor is not compatible with Angular Dependency Injection because its dependency at index ${e} of the parameter list is invalid.\nThis can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.\n\nPlease check that 1) the type for the parameter at index ${e} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.`)}function Dn(e,t=dn.Default){return In(e,Tn(t))}function Tn(e){return void 0===e||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function An(e){const t=[];for(let n=0;n<e.length;n++){const r=ut(e[n]);if(Array.isArray(r)){if(0===r.length)throw new je(900,ngDevMode&&"Arguments array must have arguments.");let e,n=dn.Default;for(let t=0;t<r.length;t++){const i=r[t],o=i[vn];"number"==typeof o?-1===o?e=i.token:n|=o:e=i}t.push(In(e,n))}else t.push(In(r))}return t}function On(e,t){return e[vn]=t,e.prototype[vn]=t,e}const Nn=On(Je("Inject",(e=>({token:e}))),-1),Mn=On(Je("Optional"),8),Pn=On(Je("Self"),2),xn=On(Je("SkipSelf"),4),Rn=On(Je("Host"),1);function kn(e,t){const n=e.hasOwnProperty(tn);if(!n&&!0===t&&ngDevMode)throw new Error(`Type ${rt(e)} does not have 'ɵfac' property.`);return n?e[tn]:null}function Ln(e){return e.flat(Number.POSITIVE_INFINITY)}function Fn(e,t){e.forEach((e=>Array.isArray(e)?Fn(e,t):t(e)))}function Un(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function jn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Vn(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Bn(e,t,n){const r=e.length-n;for(;t<r;)e[t]=e[t+n],t++;for(;n--;)e.pop()}function $n(e,t,n,r){ngDevMode&&Et(t,e.length,"Can't insert past array end.");let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){const t=i-2;e[i]=e[t],i--}e[t]=n,e[t+1]=r}}function Hn(e,t,n){let r=qn(e,t);return r>=0?e[1|r]=n:(r=~r,$n(e,r,t,n)),r}function Gn(e,t){const n=qn(e,t);if(n>=0)return e[1|n]}function qn(e,t){return function(e,t,n){ngDevMode&&ft(Array.isArray(e),!0,"Expecting an array");let r=0,i=e.length>>n;for(;i!==r;){const o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}(e,t,1)}const zn={},Wn=[];("undefined"==typeof ngDevMode||ngDevMode)&&et()&&(Object.freeze(zn),Object.freeze(Wn));const Kn=new jt(ngDevMode?"ENVIRONMENT_INITIALIZER":""),Yn=new jt(ngDevMode?"INJECTOR":"",-1),Qn=new jt(ngDevMode?"INJECTOR_DEF_TYPES":"");class Jn{get(e,t=mn){if(t===mn){const t=new Error(`NullInjectorError: No provider for ${rt(e)}!`);throw t.name="NullInjectorError",t}return t}}var Zn,Xn,er;function tr(e,t,n){ngDevMode&>(t,"",'can not look for "" string.');let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}function nr(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const o=n[r++],s=n[r++],a=n[r++];ngDevMode&&ngDevMode.rendererSetAttribute++,e.setAttribute(t,s,a,o)}else{const o=i,s=n[++r];ngDevMode&&ngDevMode.rendererSetAttribute++,ir(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function rr(e){return 3===e||4===e||6===e}function ir(e){return 64===e.charCodeAt(0)}function or(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||sr(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function sr(e,t,n,r,i){let o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){const n=e[o++];if("number"==typeof n){if(n===t){s=-1;break}if(n>t){s=o-1;break}}}for(;o<e.length;){const t=e[o];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}!function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(Zn||(Zn={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(Xn||(Xn={})),function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(er||(er={}));const ar="ng-template";function ur(e,t,n,r){ngDevMode&&ft(n,n.toLowerCase(),"Class name expected to be lowercase.");let i=0;if(r){for(;i<t.length&&"string"==typeof t[i];i+=2)if("class"===t[i]&&-1!==tr(t[i+1].toLowerCase(),n,0))return!0}else if(cr(e))return!1;if(i=t.indexOf(1,i),i>-1){let e;for(;++i<t.length&&"string"==typeof(e=t[i]);)if(e.toLowerCase()===n)return!0}return!1}function cr(e){return 4===e.type&&e.value!==ar}function lr(e,t,n){return t===(4!==e.type||n?e.value:ar)}function dr(e,t,n){ngDevMode&&St(t[0],"Selector should have a tag name");let r=4;const i=e.attrs,o=null!==i?function(e){for(let t=0;t<e.length;t++)if(rr(e[t]))return t;return e.length}(i):0;let s=!1;for(let a=0;a<t.length;a++){const u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!lr(e,u,n)||""===u&&1===t.length){if(hr(r))return!1;s=!0}}else if(8&r){if(null===i||!ur(e,i,u,n)){if(hr(r))return!1;s=!0}}else{const c=t[++a],l=pr(u,i,cr(e),n);if(-1===l){if(hr(r))return!1;s=!0;continue}if(""!==c){let e;if(l>o?e="":(ngDevMode&>(i[l],0,"We do not match directives on namespaced attributes"),e=i[l+1].toLowerCase()),2&r&&c!==e){if(hr(r))return!1;s=!0}}}}else{if(!s&&!hr(r)&&!hr(u))return!1;if(s&&hr(u))continue;s=!1,r=u|1&r}}return hr(r)||s}function hr(e){return!(1&e)}function pr(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function fr(e,t,n=!1){for(let r=0;r<t.length;r++)if(dr(e,t[r],n))return!0;return!1}function gr(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let t=0;t<e.length;t++)if(e[t]!==r[t])continue e;return!0}}return!1}function mr(e,t){return e?":not("+t.trim()+")":t}function vr(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const t=e[++n];i+="["+s+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||hr(s)||(t+=mr(o,i),i=""),r=s,o=o||!hr(r);n++}return""!==i&&(t+=mr(o,i)),t}function yr(e){return e.map(vr).join(",")}function Er(e){return qe((()=>{("undefined"==typeof ngDevMode||ngDevMode)&&et();const t=Mr(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Zn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Xn.Emulated,styles:e.styles||Wn,_:null,schemas:e.schemas||null,tView:null,id:""};Pr(n);const r=e.dependencies;return n.directiveDefs=xr(r,!1),n.pipeDefs=xr(r,!0),n.id=function(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const e of n)t=Math.imul(31,t)+e.charCodeAt(0)|0;t+=2147483648;const r="c"+t;if("undefined"==typeof ngDevMode||ngDevMode)if(Rr.has(r)){const t=Rr.get(r);t!==e.type&&console.warn(Ve(-912,`Component ID generation collision detected. Components '${t.name}' and '${e.type.name}' with selector '${yr(e.selectors)}' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID.`))}else Rr.set(r,e.type);return r}(n),n}))}function _r(e){return Dr(e)||Tr(e)}function br(e){return null!==e}function Sr(e){return qe((()=>({type:e.type,bootstrap:e.bootstrap||Wn,declarations:e.declarations||Wn,imports:e.imports||Wn,exports:e.exports||Wn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null})))}function Cr(e,t){if(null==e)return zn;const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let o,s,a=er.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==er.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Ir(e){return qe((()=>{const t=Mr(e);return Pr(t),t}))}function wr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Dr(e){return e[Jt]||null}function Tr(e){return e[Zt]||null}function Ar(e){return e[Xt]||null}function Or(e){const t=Dr(e)||Tr(e)||Ar(e);return null!==t&&t.standalone}function Nr(e,t){const n=e[en]||null;if(!n&&!0===t)throw new Error(`Type ${rt(e)} does not have 'ɵmod' property.`);return n}function Mr(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||zn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Wn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Cr(e.inputs,t),outputs:Cr(e.outputs),debugInfo:null}}function Pr(e){e.features?.forEach((t=>t(e)))}function xr(e,t){if(!e)return null;const n=t?Ar:_r;return()=>("function"==typeof e?e():e).map((e=>n(e))).filter(br)}const Rr=new Map;function kr(e){return{ɵproviders:e}}function Lr(...e){return{ɵproviders:Fr(!0,e),ɵfromNgModule:!0}}function Fr(e,...t){const n=[],r=new Set;let i;const o=e=>{n.push(e)};return Fn(t,(t=>{if(("undefined"==typeof ngDevMode||ngDevMode)&&e){const e=Dr(t);if(e?.standalone)throw new je(800,`Importing providers supports NgModule or ModuleWithProviders but got a standalone component "${sn(t)}"`)}const n=t;jr(n,o,[],r)&&(i||=[],i.push(n))})),void 0!==i&&Ur(i,o),n}function Ur(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:i}=e[n];Br(i,(e=>{ngDevMode&&Vr(e,i||Wn,r),t(e,r)}))}}function jr(e,t,n,r){if(!(e=ut(e)))return!1;let i=null,o=Rt(e);const s=!o&&Dr(e);if(o||s){if(s&&!s.standalone)return!1;i=e}else{const t=e.ngModule;if(o=Rt(t),!o)return!1;i=t}ngDevMode&&-1!==n.indexOf(i)&&an(rt(i),n.map(rt));const a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){const e="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const i of e)jr(i,t,n,r)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let e;ngDevMode&&n.push(i),r.add(i);try{Fn(o.imports,(i=>{jr(i,t,n,r)&&(e||=[],e.push(i))}))}finally{ngDevMode&&n.pop()}void 0!==e&&Ur(e,t)}if(!a){const e=kn(i)||(()=>new i);t({provide:i,useFactory:e,deps:Wn},i),t({provide:Qn,useValue:i,multi:!0},i),t({provide:Kn,useValue:()=>In(i),multi:!0},i)}const s=o.providers;if(null!=s&&!a){const n=e;Br(s,(e=>{ngDevMode&&Vr(e,s,n),t(e,n)}))}}}return i!==e&&void 0!==e.providers}function Vr(e,t,n){zr(e)||Hr(e)||qr(e)||Gr(e)||ut(e&&(e.useClass||e.provide))||cn(n,t,e)}function Br(e,t){for(let n of e)Qt(n)&&(n=n.ɵproviders),Array.isArray(n)?Br(n,t):t(n)}const $r=tt({provide:String,useValue:tt});function Hr(e){return null!==e&&"object"==typeof e&&$r in e}function Gr(e){return!(!e||!e.useExisting)}function qr(e){return!(!e||!e.useFactory)}function zr(e){return"function"==typeof e}const Wr=new jt(ngDevMode?"Set Injector scope.":""),Kr={},Yr={};let Qr;function Jr(){return void 0===Qr&&(Qr=new Jn),Qr}class Zr{}class Xr extends Zr{get destroyed(){return this._destroyed}constructor(e,t,n,r){super(),this.parent=t,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ri(e,(e=>this.processProvider(e))),this.records.set(Yn,ni(void 0,this)),r.has("environment")&&this.records.set(Zr,ni(void 0,this));const i=this.records.get(Wr);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Qn,Wn,dn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const e=c(null);try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const e=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of e)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),c(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();const t=Sn(this),n=fn(void 0);let r;ngDevMode&&(r=$t({injector:this,token:null}));try{return e()}finally{Sn(t),fn(n),ngDevMode&&$t(r)}}get(e,t=mn,n=dn.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(rn))return e[rn](this);let r;n=Tn(n),ngDevMode&&(r=$t({injector:this,token:e}));const i=Sn(this),o=fn(void 0);try{if(!(n&dn.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(s=e)||"object"==typeof s&&s instanceof jt)&&Mt(e);n&&this.injectableDefInScope(n)?(ngDevMode&&Yt(this,e,(()=>{zt(e)})),t=ni(ei(e),Kr)):t=null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}const r=n&dn.Self?Jr():this.parent;return t=n&dn.Optional&&t===mn?null:t,r.get(e,t)}catch(t){if("NullInjectorError"===t.name){if((t[yn]=t[yn]||[]).unshift(rt(e)),i)throw t;return function(e,t,n,r){const i=e[yn];throw t[_n]&&i.unshift(t[_n]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"ɵ"==e.charAt(1)?e.slice(2):e;let i=rt(t);if(Array.isArray(t))i=t.map(rt).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):rt(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(En,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[yn]=null,e}(t,e,"R3InjectorError",this.source)}throw t}finally{fn(o),Sn(i),ngDevMode&&$t(r)}var s}resolveInjectorInitializers(){const e=c(null),t=Sn(this),n=fn(void 0);let r;ngDevMode&&(r=$t({injector:this,token:null}));try{const e=this.get(Kn,Wn,dn.Self);if(ngDevMode&&!Array.isArray(e))throw new je(-209,`Unexpected type of the \`ENVIRONMENT_INITIALIZER\` token value (expected an array, but got ${typeof e}). Please check that the \`ENVIRONMENT_INITIALIZER\` token is configured as a \`multi: true\` provider.`);for(const t of e)t()}finally{Sn(t),fn(n),ngDevMode&&$t(r),c(e)}}toString(){const e=[],t=this.records;for(const n of t.keys())e.push(rt(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,ngDevMode&&"Injector has already been destroyed.")}processProvider(e){let t=zr(e=ut(e))?e:ut(e&&e.provide);const n=function(e){return Hr(e)?ni(void 0,e.useValue):ni(ti(e),Kr)}(e);if(ngDevMode&&Yt(this,t,(()=>{Hr(e)&&Wt(e.useValue),zt(e)})),zr(e)||!0!==e.multi){if(ngDevMode){const e=this.records.get(t);e&&void 0!==e.multi&&un()}}else{let n=this.records.get(t);n?ngDevMode&&void 0===n.multi&&un():(n=ni(void 0,Kr,!0),n.factory=()=>An(n.multi),this.records.set(t,n)),t=e,n.multi.push(e)}this.records.set(t,n)}hydrate(e,t){const n=c(null);try{return ngDevMode&&t.value===Yr?an(rt(e)):t.value===Kr&&(t.value=Yr,ngDevMode?Yt(this,e,(()=>{t.value=t.factory(),Wt(t.value)})):t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(r=t.value)&&"object"==typeof r&&"function"==typeof r.ngOnDestroy&&this._ngOnDestroyHooks.add(t.value),t.value}finally{c(n)}var r}injectableDefInScope(e){if(!e.providedIn)return!1;const t=ut(e.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(e){const t=this._onDestroyHooks.indexOf(e);-1!==t&&this._onDestroyHooks.splice(t,1)}}function ei(e){const t=Mt(e),n=null!==t?t.factory:kn(e);if(null!==n)return n;if(e instanceof jt)throw new je(204,ngDevMode&&`Token ${rt(e)} is missing a ɵprov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0)throw new je(204,ngDevMode&&`Can't resolve all parameters for ${rt(e)}: (${Vn(t,"?").join(", ")}).`);const n=function(e){const t=e&&(e[kt]||e[Ft]);return t?(ngDevMode&&console.warn(`DEPRECATED: DI is instantiating a token "${e.name}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e.name}" class.`),t):null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new je(204,ngDevMode&&"unreachable")}function ti(e,t,n){let r;if(ngDevMode&&Qt(e)&&cn(void 0,n,e),zr(e)){const t=ut(e);return kn(t)||ei(t)}if(Hr(e))r=()=>ut(e.useValue);else if(qr(e))r=()=>e.useFactory(...An(e.deps||[]));else if(Gr(e))r=()=>In(ut(e.useExisting));else{const i=ut(e&&(e.useClass||e.provide));if(ngDevMode&&!i&&cn(t,n,e),!e.deps)return kn(i)||ei(i);r=()=>new i(...An(e.deps))}return r}function ni(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ri(e,t){for(const n of e)Array.isArray(n)?ri(n,t):n&&Qt(n)?ri(n.ɵproviders,t):t(n)}function ii(e,t){let n;e instanceof Xr&&e.assertNotDestroyed(),ngDevMode&&(n=$t({injector:e,token:null}));const r=Sn(e),i=fn(void 0);try{return t()}finally{Sn(r),ngDevMode&&$t(n),fn(i)}}function oi(){return void 0!==pn()||null!=bn}function si(e){if(!oi())throw new je(-203,ngDevMode&&e.name+"() can only be used within an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`")}var ai,ui,ci;function li(e){const t=Xe.ng;if(t&&t.ɵcompilerFacade)return t.ɵcompilerFacade;if("undefined"==typeof ngDevMode||ngDevMode){console.error(`JIT compilation failed for ${e.kind}`,e.type);let t=`The ${e.kind} '${e.type.name}' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.\n\n`;throw 1===e.usage?(t+=`The ${e.kind} is part of a library that has been partially compiled.\n`,t+="However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.\n",t+="\n",t+="Ideally, the library is processed using the Angular Linker to become fully AOT compiled.\n"):t+="JIT compilation is discouraged for production use-cases! Consider using AOT mode instead.\n",t+="Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',\n",t+="or manually provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.",new Error(t)}throw new Error("JIT compiler unavailable")}!function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(ai||(ai={})),function(e){e[e.Directive=0]="Directive",e[e.Pipe=1]="Pipe",e[e.NgModule=2]="NgModule"}(ui||(ui={})),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(ci||(ci={}));const di={ɵɵdefineInjectable:At,ɵɵdefineInjector:Nt,ɵɵinject:In,ɵɵinvalidFactoryDep:wn,resolveForwardRef:ut},hi=Function;function pi(e){return"function"==typeof e}const fi=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,gi=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,mi=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,vi=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class yi{constructor(e){this._reflect=e||Xe.Reflect}factory(e){return(...t)=>new e(...t)}_zipTypesAndAnnotations(e,t){let n;n=Vn(void 0===e?t.length:e.length);for(let r=0;r<n.length;r++)void 0===e?n[r]=[]:e[r]&&e[r]!=Object?n[r]=[e[r]]:n[r]=[],t&&null!=t[r]&&(n[r]=n[r].concat(t[r]));return n}_ownParameters(e,t){if(n=e.toString(),fi.test(n)||vi.test(n)||gi.test(n)&&!mi.test(n))return null;var n;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;const r=e.ctorParameters;if(r&&r!==t.ctorParameters){const e="function"==typeof r?r():r,t=e.map((e=>e&&e.type)),n=e.map((e=>e&&Ei(e.decorators)));return this._zipTypesAndAnnotations(t,n)}const i=e.hasOwnProperty(We)&&e[We],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return o||i?this._zipTypesAndAnnotations(o,i):Vn(e.length)}parameters(e){if(!pi(e))return[];const t=_i(e);let n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}_ownAnnotations(e,t){if(e.annotations&&e.annotations!==t.annotations){let t=e.annotations;return"function"==typeof t&&t.annotations&&(t=t.annotations),t}return e.decorators&&e.decorators!==t.decorators?Ei(e.decorators):e.hasOwnProperty(ze)?e[ze]:null}annotations(e){if(!pi(e))return[];const t=_i(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}_ownPropMetadata(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){let t=e.propMetadata;return"function"==typeof t&&t.propMetadata&&(t=t.propMetadata),t}if(e.propDecorators&&e.propDecorators!==t.propDecorators){const t=e.propDecorators,n={};return Object.keys(t).forEach((e=>{n[e]=Ei(t[e])})),n}return e.hasOwnProperty(Ke)?e[Ke]:null}propMetadata(e){if(!pi(e))return{};const t=_i(e),n={};if(t!==Object){const e=this.propMetadata(t);Object.keys(e).forEach((t=>{n[t]=e[t]}))}const r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach((e=>{const t=[];n.hasOwnProperty(e)&&t.push(...n[e]),t.push(...r[e]),n[e]=t})),n}ownPropMetadata(e){return pi(e)&&this._ownPropMetadata(e,_i(e))||{}}hasLifecycleHook(e,t){return e instanceof hi&&t in e.prototype}}function Ei(e){return e?e.map((e=>new(0,e.type.annotationCls)(...e.args?e.args:[]))):[]}function _i(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const bi=0,Si=1,Ci=2,Ii=3,wi=4,Di=5,Ti=6,Ai=7,Oi=8,Ni=9,Mi=10,Pi=11,xi=12,Ri=13,ki=14,Li=15,Fi=16,Ui=17,ji=18,Vi=19,Bi=20,$i=21,Hi=22,Gi=23,qi=25,zi=1,Wi=6,Ki=7,Yi=9,Qi=10;var Ji;function Zi(e){return Array.isArray(e)&&"object"==typeof e[zi]}function Xi(e){return Array.isArray(e)&&!0===e[zi]}function eo(e){return!!(4&e.flags)}function to(e){return e.componentOffset>-1}function no(e){return!(1&~e.flags)}function ro(e){return!!e.template}function io(e){return!!(512&e[Ci])}function oo(e){return!(16&~e.type)}function so(e){return!(256&~e[Ci])}function ao(e,t){uo(e,t[Si])}function uo(e,t){co(e);const n=t.data;for(let t=qi;t<n.length;t++)if(n[t]===e)return;Ct("This TNode does not belong to this TView.")}function co(e){St(e,"TNode must be defined"),e&&"object"==typeof e&&e.hasOwnProperty("directiveStylingLast")||Ct("Not of type TNode, got: "+e)}function lo(e){St(e,"Expected TIcu to be defined"),"number"!=typeof e.currentCaseLViewIndex&&Ct("Object is not of TIcu type.")}function ho(e){St(e,"currentTNode should exist!"),St(e.parent,"currentTNode should have a parent")}function po(e){St(e,"LContainer must be defined"),ft(Xi(e),!0,"Expecting LContainer")}function fo(e){e&&ft(Zi(e),!0,"Expecting LView or undefined or null")}function go(e){St(e,"LView must be defined"),ft(Zi(e),!0,"Expecting LView")}function mo(e,t){ft(e.firstCreatePass,!0,t||"Should only be called in first create pass.")}function vo(e,t){ft(e.firstUpdatePass,!0,t||"Should only be called in first update pass.")}function yo(e,t){_o(qi,e.bindingStartIndex,t)}function Eo(e,t){_o(e[1].expandoStartIndex,e.length,t)}function _o(e,t,n){e<=n&&n<t||Ct(`Index out of range (expecting ${e} <= ${n} < ${t})`)}function bo(e,t){St(e,t||"Component views should always have a parent view (component's host view)")}function So(e){if(e.length<2)return;const t=new Set;for(const n of e){if(t.has(n))throw new je(309,`Directive ${n.type.name} matches multiple times on the same element. Directives can only match an element once.`);t.add(n)}}function Co(e,t){Eo(e,t),Eo(e,t+8),lt(e[t+0],"injectorIndex should point to a bloom filter"),lt(e[t+1],"injectorIndex should point to a bloom filter"),lt(e[t+2],"injectorIndex should point to a bloom filter"),lt(e[t+3],"injectorIndex should point to a bloom filter"),lt(e[t+4],"injectorIndex should point to a bloom filter"),lt(e[t+5],"injectorIndex should point to a bloom filter"),lt(e[t+6],"injectorIndex should point to a bloom filter"),lt(e[t+7],"injectorIndex should point to a bloom filter"),lt(e[t+8],"injectorIndex should point to parent injector")}!function(e){e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews"}(Ji||(Ji={}));class Io{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function wo(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Do(){return To}function To(e){return e.type.prototype.ngOnChanges&&(e.setInput=Oo),Ao}function Ao(){const e=Mo(this),t=e?.current;if(t){const n=e.previous;if(n===zn)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function Oo(e,t,n,r,i){const o=this.declaredInputs[r];ngDevMode&&ht(o,"Name of input in ngOnChanges has to be a string");const s=Mo(e)||function(e,t){return e[No]=t}(e,{previous:zn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new Io(c&&c.currentValue,n,u===zn),wo(e,t,i,n)}Do.ngInherit=!0;const No="__ngSimpleChanges__";function Mo(e){return e[No]||null}let Po=null;const xo=function(e,t,n){null!=Po&&Po(e,t,n)},Ro="svg",ko="math";let Lo=!1;function Fo(){return Lo}function Uo(e){Lo=e}function jo(e){for(;Array.isArray(e);)e=e[bi];return e}function Vo(e){for(;Array.isArray(e);){if("object"==typeof e[zi])return e;e=e[bi]}return null}function Bo(e,t){return ngDevMode&&wt(t,e),ngDevMode&&bt(e,qi,"Expected to be past HEADER_OFFSET"),jo(t[e])}function $o(e,t){return ngDevMode&&ao(e,t),ngDevMode&&wt(t,e.index),jo(t[e.index])}function Ho(e,t){ngDevMode&&_t(t,-1,"wrong index for TNode"),ngDevMode&&yt(t,e.data.length,"wrong index for TNode");const n=e.data[t];return ngDevMode&&null!==n&&co(n),n}function Go(e,t){return ngDevMode&&wt(e,t),e[t]}function qo(e,t){ngDevMode&&wt(t,e);const n=t[e];return Zi(n)?n:n[bi]}function zo(e){return!(4&~e[Ci])}function Wo(e){return!(128&~e[Ci])}function Ko(e,t){return null==t?null:(ngDevMode&&wt(e,t),e[t])}function Yo(e){e[Ui]=0}function Qo(e){1024&e[Ci]||(e[Ci]|=1024,Wo(e)&&es(e))}function Jo(e,t){for(;e>0;)ngDevMode&&St(t[ki],"Declaration view should be defined if nesting level is greater than 0."),t=t[ki],e--;return t}function Zo(e){return!!(9216&e[Ci]||e[Gi]?.dirty)}function Xo(e){e[Mi].changeDetectionScheduler?.notify(1),Zo(e)?es(e):64&e[Ci]&&(Fo()?(e[Ci]|=1024,es(e)):e[Mi].changeDetectionScheduler?.notify())}function es(e){e[Mi].changeDetectionScheduler?.notify();let t=rs(e);for(;null!==t&&!(8192&t[Ci])&&(t[Ci]|=8192,Wo(t));)t=rs(t)}function ts(e,t){if(!(256&~e[Ci]))throw new je(911,ngDevMode&&"View has already been destroyed.");null===e[$i]&&(e[$i]=[]),e[$i].push(t)}function ns(e,t){if(null===e[$i])return;const n=e[$i].indexOf(t);-1!==n&&e[$i].splice(n,1)}function rs(e){ngDevMode&&go(e);const t=e[Ii];return Xi(t)?t[Ii]:t}const is={lFrame:Fs(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let os=!1;function ss(){return is.bindingsEnabled}function as(){return null!==is.skipHydrationRootTNode}function us(){is.bindingsEnabled=!0}function cs(){is.bindingsEnabled=!1}function ls(){return is.lFrame.lView}function ds(){return is.lFrame.tView}function hs(e){return is.lFrame.contextLView=e,e[Oi]}function ps(e){return is.lFrame.contextLView=null,e}function fs(){let e=gs();for(;null!==e&&64===e.type;)e=e.parent;return e}function gs(){return is.lFrame.currentTNode}function ms(){const e=is.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function vs(e,t){ngDevMode&&e&&uo(e,is.lFrame.tView);const n=is.lFrame;n.currentTNode=e,n.isParent=t}function ys(){return is.lFrame.isParent}function Es(){is.lFrame.isParent=!1}function _s(){return!ngDevMode&&Ct("Must never be called in production mode"),os}function bs(e){!ngDevMode&&Ct("Must never be called in production mode"),os=e}function Ss(){const e=is.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Cs(){return is.lFrame.bindingIndex}function Is(e){return is.lFrame.bindingIndex=e}function ws(){return is.lFrame.bindingIndex++}function Ds(e){const t=is.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ts(e){is.lFrame.inI18n=e}function As(e,t){const n=is.lFrame;n.bindingIndex=n.bindingRootIndex=e,Os(t)}function Os(e){is.lFrame.currentDirectiveIndex=e}function Ns(e){const t=is.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Ms(){return is.lFrame.currentQueryIndex}function Ps(e){is.lFrame.currentQueryIndex=e}function xs(e){const t=e[Si];return 2===t.type?(ngDevMode&&St(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):1===t.type?e[Di]:null}function Rs(e,t,n){if(ngDevMode&&fo(e),n&dn.SkipSelf){ngDevMode&&uo(t,e[Si]);let r=t,i=e;for(;ngDevMode&&St(r,"Parent TNode should be defined"),r=r.parent,!(null!==r||n&dn.Host||(r=xs(i),null===r)||(ngDevMode&&St(i,"Parent LView should be defined"),i=i[ki],10&r.type)););if(null===r)return!1;t=r,e=i}ngDevMode&&ao(t,e);const r=is.lFrame=Ls();return r.currentTNode=t,r.lView=e,!0}function ks(e){ngDevMode&>(e[0],e[1],"????"),ngDevMode&&fo(e);const t=Ls();ngDevMode&&(ft(t.isParent,!0,"Expected clean LFrame"),ft(t.lView,null,"Expected clean LFrame"),ft(t.tView,null,"Expected clean LFrame"),ft(t.selectedIndex,-1,"Expected clean LFrame"),ft(t.elementDepthCount,0,"Expected clean LFrame"),ft(t.currentDirectiveIndex,-1,"Expected clean LFrame"),ft(t.currentNamespace,null,"Expected clean LFrame"),ft(t.bindingRootIndex,-1,"Expected clean LFrame"),ft(t.currentQueryIndex,0,"Expected clean LFrame"));const n=e[Si];is.lFrame=t,ngDevMode&&n.firstChild&&uo(n.firstChild,n),t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ls(){const e=is.lFrame,t=null===e?null:e.child;return null===t?Fs(e):t}function Fs(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Us(){const e=is.lFrame;return is.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const js=Us;function Vs(){const e=Us();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Bs(){return is.lFrame.selectedIndex}function $s(e){ngDevMode&&-1!==e&&bt(e,qi,"Index must be past HEADER_OFFSET (or -1)."),ngDevMode&&yt(e,is.lFrame.lView.length,"Can't set index passed end of LView"),is.lFrame.selectedIndex=e}function Hs(){const e=is.lFrame;return Ho(e.tView,e.selectedIndex)}function Gs(){is.lFrame.currentNamespace=Ro}function qs(){is.lFrame.currentNamespace=ko}function zs(){is.lFrame.currentNamespace=null}function Ws(){return is.lFrame.currentNamespace}let Ks=!0;function Ys(){return Ks}function Qs(e){Ks=e}function Js(e,t){ngDevMode&&mo(e);for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n];ngDevMode&&St(t,"Expecting DirectiveDef");const r=t.type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:o,ngAfterViewInit:s,ngAfterViewChecked:a,ngOnDestroy:u}=r;i&&(e.contentHooks??=[]).push(-n,i),o&&((e.contentHooks??=[]).push(n,o),(e.contentCheckHooks??=[]).push(n,o)),s&&(e.viewHooks??=[]).push(-n,s),a&&((e.viewHooks??=[]).push(n,a),(e.viewCheckHooks??=[]).push(n,a)),null!=u&&(e.destroyHooks??=[]).push(n,u)}}function Zs(e,t,n){ta(e,t,3,n)}function Xs(e,t,n,r){ngDevMode&>(n,3,"Init pre-order hooks should not be called more than once"),(3&e[Ci])===n&&ta(e,t,n,r)}function ea(e,t){ngDevMode&>(t,3,"Init hooks phase should not be incremented after all init hooks have been run.");let n=e[Ci];(3&n)===t&&(n&=16383,n+=1,e[Ci]=n)}function ta(e,t,n,r){ngDevMode&&ft(_s(),!1,"Hooks should never be run when in check no changes mode.");const i=void 0!==r?65535&e[Ui]:0,o=null!=r?r:-1,s=t.length-1;let a=0;for(let u=i;u<s;u++)if("number"==typeof t[u+1]){if(a=t[u],null!=r&&a>=r)break}else t[u]<0&&(e[Ui]+=65536),(a<o||-1==o)&&(ra(e,n,t,u),e[Ui]=(4294901760&e[Ui])+u+2),u++}function na(e,t){xo(4,e,t);const n=c(null);try{t.call(e)}finally{c(n),xo(5,e,t)}}function ra(e,t,n,r){const i=n[r]<0,o=n[r+1],s=e[i?-n[r]:n[r]];i?e[Ci]>>14<e[Ui]>>16&&(3&e[Ci])===t&&(e[Ci]+=16384,na(s,o)):na(s,o)}const ia=-1;class oa{constructor(e,t,n){this.factory=e,this.resolving=!1,ngDevMode&&St(e,"Factory not specified"),ngDevMode&&ft(typeof e,"function","Expected factory function."),this.canSeeViewProviders=t,this.injectImpl=n}}function sa(e){let t="";return 1&e&&(t+="|Text"),2&e&&(t+="|Element"),4&e&&(t+="|Container"),8&e&&(t+="|ElementContainer"),16&e&&(t+="|Projection"),32&e&&(t+="|IcuContainer"),64&e&&(t+="|Placeholder"),t.length>0?t.substring(1):t}function aa(e,t,n){St(e,"should be called with a TNode"),e.type&t||Ct(n||`Expected [${sa(t)}] but got ${sa(e.type)}.`)}function ua(e){return e!==ia}function ca(e){return ngDevMode&&(lt(e,"Number expected"),gt(e,-1,"Not a valid state."),_t(32767&e,qi,"Parent injector must be pointing past HEADER_OFFSET.")),32767&e}function la(e,t){let n=e>>16,r=t;for(;n>0;)r=r[ki],n--;return r}let da=!0;function ha(e){const t=da;return da=e,t}const pa=255,fa=5;let ga=0;const ma={};function va(e,t){const n=Ea(e,t);if(-1!==n)return n;const r=t[Si];r.firstCreatePass&&(e.injectorIndex=t.length,ya(r.data,e),ya(t,null),ya(r.blueprint,null));const i=_a(e,t),o=e.injectorIndex;if(ua(i)){const e=ca(i),n=la(i,t),r=n[Si].data;for(let i=0;i<8;i++)t[o+i]=n[e+i]|r[e+i]}return t[o+8]=i,o}function ya(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ea(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:(ngDevMode&&wt(t,e.injectorIndex),e.injectorIndex)}function _a(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=Fa(i),null===r)return ia;if(ngDevMode&&r&&ao(r,i[ki]),n++,i=i[ki],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return ia}function ba(e,t,n){!function(e,t,n){let r;ngDevMode&&ft(t.firstCreatePass,!0,"expected firstCreatePass to be true"),"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(nn)&&(r=n[nn]),null==r&&(r=n[nn]=ga++);const i=r&pa,o=1<<i;t.data[e+(i>>fa)]|=o}(e,t,n)}function Sa(e,t,n){if(n&dn.Optional||void 0!==e)return e;ln(t,"NodeInjector")}function Ca(e,t,n,r){if(n&dn.Optional&&void 0===r&&(r=null),!(n&(dn.Self|dn.Host))){const i=e[Ni],o=fn(void 0);try{return i?i.get(t,r,n&dn.Optional):gn(t,r,n&dn.Optional)}finally{fn(o)}}return Sa(r,t,n)}function Ia(e,t,n,r=dn.Default,i){if(null!==e){if(2048&t[Ci]&&!(r&dn.Self)){const i=function(e,t,n,r,i){let o=e,s=t;for(;null!==o&&null!==s&&2048&s[Ci]&&!(512&s[Ci]);){ngDevMode&&ao(o,s);const e=wa(o,s,n,r|dn.Self,ma);if(e!==ma)return e;let t=o.parent;if(!t){const e=s[Bi];if(e){const t=e.get(n,ma,r);if(t!==ma)return t}t=Fa(s),s=s[ki]}o=t}return i}(e,t,n,r,ma);if(i!==ma)return i}const i=wa(e,t,n,r,ma);if(i!==ma)return i}return Ca(t,n,r,i)}function wa(e,t,n,r,i){const o=function(e){if(ngDevMode&&St(e,"token must be defined"),"string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(nn)?e[nn]:void 0;return"number"==typeof t?t>=0?t&pa:(ngDevMode&&ft(t,-1,"Expecting to get Special Injector Id"),Ra):t}(n);if("function"==typeof o){if(!Rs(t,e,r))return r&dn.Host?Sa(i,n,r):Ca(t,n,r,i);try{let e;if(ngDevMode?Yt(new xa(fs(),ls()),n,(()=>{e=o(r),null!=e&&Wt(e)})):e=o(r),null!=e||r&dn.Optional)return e;ln(n)}finally{js()}}else if("number"==typeof o){let i=null,s=Ea(e,t),a=ia,u=r&dn.Host?t[Li][Di]:null;for((-1===s||r&dn.SkipSelf)&&(a=-1===s?_a(e,t):t[s+8],a!==ia&&Na(r,!1)?(i=t[Si],s=ca(a),t=la(a,t)):s=-1);-1!==s;){ngDevMode&&Co(t,s);const e=t[Si];if(ngDevMode&&ao(e.data[s+8],t),Oa(o,s,e.data)){const e=Da(s,t,n,i,r,u);if(e!==ma)return e}a=t[s+8],a!==ia&&Na(r,t[Si].data[s+8]===u)&&Oa(o,s,t)?(i=e,s=ca(a),t=la(a,t)):s=-1}}return i}function Da(e,t,n,r,i,o){const s=t[Si],a=s.data[e+8],u=Ta(a,s,n,null==r?to(a)&&da:r!=s&&!!(3&a.type),i&dn.Host&&o===a);return null!==u?Aa(t,s,u,a):ma}function Ta(e,t,n,r,i){const o=e.providerIndexes,s=t.data,a=1048575&o,u=e.directiveStart,c=e.directiveEnd,l=o>>20,d=i?a+l:c;for(let e=r?a:a+l;e<d;e++){const t=s[e];if(e<u&&n===t||e>=u&&t.type===n)return e}if(i){const e=s[u];if(e&&ro(e)&&e.type===n)return u}return null}function Aa(e,t,n,r){let i=e[n];const o=t.data;if(i instanceof oa){const a=i;a.resolving&&an(sn(o[n]));const u=ha(a.canSeeViewProviders);let c;if(a.resolving=!0,ngDevMode){const t=o[n].type||o[n];c=$t({injector:new xa(r,e),token:t})}const l=a.injectImpl?fn(a.injectImpl):null,d=Rs(e,r,dn.Default);ngDevMode&&ft(d,!0,"Because flags do not contain `SkipSelf' we expect this to always succeed.");try{i=e[n]=a.factory(void 0,o,e,r),ngDevMode&&Wt(i),t.firstCreatePass&&n>=r.directiveStart&&(ngDevMode&&(void 0!==(s=o[n]).type&&null!=s.selectors&&void 0!==s.inputs||Ct("Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.")),function(e,t,n){ngDevMode&&mo(n);const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){const r=To(t);(n.preOrderHooks??=[]).push(e,r),(n.preOrderCheckHooks??=[]).push(e,r)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}(n,o[n],t))}finally{ngDevMode&&$t(c),null!==l&&fn(l),ha(u),a.resolving=!1,js()}}var s;return i}function Oa(e,t,n){const r=1<<e;return!!(n[t+(e>>fa)]&r)}function Na(e,t){return!(e&dn.Self||e&dn.Host&&t)}function Ma(e){return e._lView}function Pa(e){return e._tNode}class xa{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,n){return Ia(this._tNode,this._lView,e,Tn(n),t)}}function Ra(){return new xa(fs(),ls())}function ka(e){return qe((()=>{const t=e.prototype.constructor,n=t[tn]||La(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const e=i[tn]||La(i);if(e&&e!==n)return e;i=Object.getPrototypeOf(i)}return e=>new e}))}function La(e){return ct(e)?()=>{const t=La(ut(e));return t&&t()}:kn(e)}function Fa(e){const t=e[Si],n=t.type;return 2===n?(ngDevMode&&St(t.declTNode,"Embedded TNodes should have declaration parents."),t.declTNode):1===n?e[Di]:null}function Ua(e){return function(e,t){if(ngDevMode&&aa(e,15),ngDevMode&&St(e,"expecting tNode"),"class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const e=n.length;let r=0;for(;r<e;){const i=n[r];if(rr(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<e&&"string"==typeof n[r];)r++;else{if(i===t)return n[r+1];r+=2}}}return null}(fs(),e)}const ja=Je("Attribute",(e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Ua(e)})));let Va=null;function Ba(){return Va=Va||new yi}function $a(e){return Ha(Ba().parameters(e))}function Ha(e){return e.map((e=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Mn||"Optional"===i.ngMetadataName)t.optional=!0;else if(r instanceof xn||"SkipSelf"===i.ngMetadataName)t.skipSelf=!0;else if(r instanceof Pn||"Self"===i.ngMetadataName)t.self=!0;else if(r instanceof Rn||"Host"===i.ngMetadataName)t.host=!0;else if(r instanceof Nn)t.token=r.token;else if(r instanceof ja){if(void 0===r.attributeName)throw new je(204,ngDevMode&&"Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else void 0===e||Array.isArray(e)&&0===e.length?t.token=null:t.token=e;return t}(e)))}const Ga=tt({provide:String,useValue:tt});function qa(e){return void 0!==e.useClass}function za(e){return void 0!==e.useFactory}const Wa=Ye("Injectable",void 0,void 0,void 0,((e,t)=>function(e,t){let n=null,r=null;e.hasOwnProperty(kt)||Object.defineProperty(e,kt,{get:()=>{if(null===n){const r=li({usage:0,kind:"injectable",type:e});n=r.compileInjectable(di,`ng:///${e.name}/ɵprov.js`,function(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(qa(n)||za(n))&&void 0!==n.deps&&(r.deps=Ha(n.deps)),qa(n)?r.useClass=n.useClass:function(e){return Ga in e}(n)?r.useValue=n.useValue:za(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))}return n}}),e.hasOwnProperty(tn)||Object.defineProperty(e,tn,{get:()=>{if(null===r){const t=li({usage:0,kind:"injectable",type:e});r=t.compileFactory(di,`ng:///${e.name}/ɵfac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:$a(e),target:t.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t)));function Ka(e,t=null,n=null,r){const i=Ya(e,t,n,r);return i.resolveInjectorInitializers(),i}function Ya(e,t=null,n=null,r,i=new Set){const o=[n||Wn,Lr(e)];return r=r||("object"==typeof e?void 0:rt(e)),new Xr(o,t||Jr(),r||null,i)}class Qa{static{this.THROW_IF_NOT_FOUND=mn}static{this.NULL=new Jn}static create(e,t){if(Array.isArray(e))return Ka({name:""},t,e,"");{const t=e.name??"";return Ka({name:t},e.parent,e.providers,t)}}static{this.ɵprov=At({token:Qa,providedIn:"any",factory:()=>In(Yn)})}static{this.__NG_ELEMENT_ID__=-1}}class Ja{constructor(e){this.attributeName=e,this.__NG_ELEMENT_ID__=()=>Ua(this.attributeName)}toString(){return`HostAttributeToken ${this.attributeName}`}}function Za(e){return e.ngOriginalError}class Xa{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e);this._console.error("ERROR",e),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Za(e);for(;t&&Za(t);)t=Za(t);return t||null}}const eu=new jt("undefined"==typeof ngDevMode||ngDevMode?"internal error handler":"",{providedIn:"root",factory:()=>Dn(Xa).handleError.bind(void 0)});class tu{static{this.__NG_ELEMENT_ID__=ru}static{this.__NG_ENV_ID__=e=>e}}class nu extends tu{constructor(e){super(),this._lView=e}onDestroy(e){return ts(this._lView,e),()=>ns(this._lView,e)}}function ru(){return new nu(ls())}class iu{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=Dn(Xa,{optional:!0}),this.destroyRef=Dn(tu),this.destroyRef.onDestroy((()=>{this.destroyed=!0,this.listeners=null}))}subscribe(e){if(this.destroyed)throw new je(953,ngDevMode&&"Unexpected subscription to destroyed `OutputRef`. The owning directive/component is destroyed.");return(this.listeners??=[]).push(e),{unsubscribe:()=>{const t=this.listeners?.indexOf(e);void 0!==t&&-1!==t&&this.listeners?.splice(t,1)}}}emit(e){if(this.destroyed)throw new je(953,ngDevMode&&"Unexpected emit for destroyed `OutputRef`. The owning directive/component is destroyed.");if(null===this.listeners)return;const t=c(null);try{for(const t of this.listeners)try{t(e)}catch(e){this.errorHandler?.handleError(e)}}finally{c(t)}}}function ou(e){return e.destroyRef}function su(e){return ngDevMode&&si(su),new iu}function au(e,t){return ngDevMode&&si(uu),Ge(e,t)}const uu=(au.required=function(e){return ngDevMode&&si(uu),Ge(Be,e)},au);function cu(){return lu(fs(),ls())}function lu(e,t){return new du($o(e,t))}class du{constructor(e){this.nativeElement=e}static{this.__NG_ELEMENT_ID__=cu}}function hu(e){return e instanceof du?e.nativeElement:e}function pu(e){return t=>{setTimeout(e,void 0,t)}}const fu=class extends be{constructor(e=!1){super(),this.destroyRef=void 0,this.__isAsync=e,oi()&&(this.destroyRef=Dn(tu,{optional:!0})??void 0)}emit(e){const t=c(null);try{super.next(e)}finally{c(t)}}subscribe(e,t,n){let r=e,i=t||(()=>null),o=n;if(e&&"object"==typeof e){const t=e;r=t.next?.bind(t),i=t.error?.bind(t),o=t.complete?.bind(t)}this.__isAsync&&(i=pu(i),r&&(r=pu(r)),o&&(o=pu(o)));const s=super.subscribe({next:r,error:i,complete:o});return e instanceof Y&&e.add(s),s}};function gu(){return this._results[Symbol.iterator]()}class mu{static{Symbol.iterator}get changes(){return this._changes??=new fu}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=mu.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=gu)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){this.dirty=!1;const n=Ln(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){void 0===this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}const vu="ngSkipHydration",yu="ngskiphydration";function Eu(e){const t=e.mergedAttrs;if(null===t)return!1;for(let e=0;e<t.length;e+=2){const n=t[e];if("number"==typeof n)return!1;if("string"==typeof n&&n.toLowerCase()===yu)return!0}return!1}function _u(e){return e.hasAttribute(vu)}function bu(e){return!(128&~e.flags)}function Su(e){if(bu(e))return!0;let t=e.parent;for(;t;){if(bu(e)||Eu(t))return!0;t=t.parent}return!1}const Cu=new Map;let Iu=0;function wu(e){return ngDevMode&<(e,"ID used for LView lookup must be a number"),Cu.get(e)||null}class Du{get lView(){return wu(this.lViewId)}constructor(e,t,n){this.lViewId=e,this.nodeIndex=t,this.native=n}}function Tu(e){let t=Pu(e);if(t){if(Zi(t)){const r=t;let i,o,s;if(Ru(e)){if(i=Fu(r,e),-1==i)throw new Error("The provided component was not found in the application");o=e}else if((n=e)&&n.constructor&&n.constructor.ɵdir){if(i=function(e,t){let n=e[Si].firstChild;for(;n;){const r=n.directiveStart,i=n.directiveEnd;for(let o=r;o<i;o++)if(e[o]===t)return n.index;n=Lu(n)}return-1}(r,e),-1==i)throw new Error("The provided directive was not found in the application");s=Uu(i,r)}else if(i=ku(r,e),-1==i)return null;const a=jo(r[i]),u=Pu(a),c=u&&!Array.isArray(u)?u:Au(r,i,a);if(o&&void 0===c.component&&(c.component=o,Mu(c.component,c)),s&&void 0===c.directives){c.directives=s;for(let e=0;e<s.length;e++)Mu(s[e],c)}Mu(c.native,c),t=c}}else{const n=e;ngDevMode&&It(n);let r=n;for(;r=r.parentNode;){const e=Pu(r);if(e){const r=Array.isArray(e)?e:e.lView;if(!r)return null;const i=ku(r,n);if(i>=0){const e=jo(r[i]),n=Au(r,i,e);Mu(e,n),t=n;break}}}}var n;return t||null}function Au(e,t,n){return new Du(e[Vi],t,n)}function Ou(e){let t,n=Pu(e);if(Zi(n)){const r=n,i=Fu(r,e);t=qo(i,r);const o=Au(r,i,t[bi]);o.component=e,Mu(e,o),Mu(o.native,o)}else{const e=n,r=e.lView;ngDevMode&&go(r),t=qo(e.nodeIndex,r)}return t}const Nu="__ngContext__";function Mu(e,t){var n;ngDevMode&&St(e,"Target expected"),Zi(t)?(e[Nu]=t[Vi],n=t,ngDevMode&<(n[Vi],"LView must have an ID in order to be registered"),Cu.set(n[Vi],n)):e[Nu]=t}function Pu(e){ngDevMode&&St(e,"Target expected");const t=e[Nu];return"number"==typeof t?wu(t):t||null}function xu(e){const t=Pu(e);return t?Zi(t)?t:t.lView:null}function Ru(e){return e&&e.constructor&&e.constructor.ɵcmp}function ku(e,t){const n=e[Si];for(let r=qi;r<n.bindingStartIndex;r++)if(jo(e[r])===t)return r;return-1}function Lu(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Fu(e,t){const n=e[Si].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(qo(i,e)[Oi]===t)return i}else if(qo(qi,e)[Oi]===t)return qi;return-1}function Uu(e,t){const n=t[Si].data[e];if(0===n.directiveStart)return Wn;const r=[];for(let e=n.directiveStart;e<n.directiveEnd;e++){const n=t[e];Ru(n)||r.push(n)}return r}function ju(e){const t=function(e){ngDevMode&&St(e,"component");let t=Zi(e)?e:xu(e);for(;t&&!(512&t[Ci]);)t=rs(t);return ngDevMode&&go(t),t}(e);return ngDevMode&&St(t[Oi],"Root view has no context. Perhaps it is disconnected?"),t[Oi]}function Vu(e){return $u(e[xi])}function Bu(e){return $u(e[wi])}function $u(e){for(;null!==e&&!Xi(e);)e=e[wi];return e}function Hu(e){ngDevMode&&Zu(e);const t=Tu(e);if(null===t)return null;if(void 0===t.component){const e=t.lView;if(null===e)return null;t.component=function(e,t){const n=t[Si].data[e],{directiveStart:r,componentOffset:i}=n;return i>-1?t[r+i]:null}(t.nodeIndex,e)}return t.component}function Gu(e){Zu(e);const t=Tu(e),n=t?t.lView:null;return null===n?null:n[Oi]}function qu(e){const t=Tu(e);let n,r=t?t.lView:null;if(null===r)return null;for(;2===r[Si].type&&(n=rs(r));)r=n;return 512&r[Ci]?null:r[Oi]}function zu(e){const t=xu(e);return null!==t?[ju(t)]:[]}function Wu(e){const t=Tu(e),n=t?t.lView:null;if(null===n)return Qa.NULL;const r=n[Si].data[t.nodeIndex];return new xa(r,n)}function Ku(e){if(e instanceof Text)return[];const t=Tu(e),n=t?t.lView:null;if(null===n)return[];const r=n[Si],i=t.nodeIndex;return r?.data[i]?(void 0===t.directives&&(t.directives=Uu(i,n)),null===t.directives?[]:[...t.directives]):[]}function Yu(e){return Tu(e).native}function Qu(e){ngDevMode&&Zu(e);const t=Tu(e),n=null===t?null:t.lView;if(null===n)return[];const r=n[Si],i=n[Ai],o=r.cleanup,s=[];if(o&&i)for(let t=0;t<o.length;){const r=o[t++],a=o[t++];if("string"==typeof r){const u=r,c=jo(n[a]),l=i[o[t++]],d=o[t++],h="boolean"==typeof d||d>=0?"dom":"output",p="boolean"==typeof d&&d;e==c&&s.push({element:e,name:u,callback:l,useCapture:p,type:h})}}return s.sort(Ju),s}function Ju(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Zu(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function Xu(e){const t={};for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];if(void 0===r)continue;let i;i=Array.isArray(r)?r[0]:r,t[n]=i}return t}let ec;function tc(e){ec=e}function nc(){if(void 0!==ec)return ec;if("undefined"!=typeof document)return document;throw new je(210,("undefined"==typeof ngDevMode||ngDevMode)&&"The document object is not available in this context. Make sure the DOCUMENT injection token is provided.")}const rc=new jt(ngDevMode?"AppId":"",{providedIn:"root",factory:()=>ic}),ic="ng",oc=new jt(ngDevMode?"Platform Initializer":""),sc=new jt(ngDevMode?"Platform ID":"",{providedIn:"platform",factory:()=>"unknown"}),ac=new jt(ngDevMode?"Application Packages Root URL":""),uc=new jt(ngDevMode?"AnimationModuleType":""),cc=new jt(ngDevMode?"CSP nonce":"",{providedIn:"root",factory:()=>nc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),lc={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},dc=new jt(ngDevMode?"ImageConfig":"",{providedIn:"root",factory:()=>lc});function hc(e){return e}function pc(){const e=new fc;return"browser"===Dn(sc)&&(e.store=function(e,t){const n=e.getElementById(t+"-state");if(n?.textContent)try{return JSON.parse(n.textContent)}catch(e){console.warn("Exception while restoring TransferState for app "+t,e)}return{}}(nc(),Dn(rc))),e}class fc{constructor(){this.store={},this.onSerializeCallbacks={}}static{this.ɵprov=At({token:fc,providedIn:"root",factory:pc})}get(e,t){return void 0!==this.store[e]?this.store[e]:t}set(e,t){this.store[e]=t}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(e,t){this.onSerializeCallbacks[e]=t}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}const gc="h",mc="b";var vc;!function(e){e.FirstChild="f",e.NextSibling="n"}(vc||(vc={}));const yc="e",Ec="t",_c="c",bc="x",Sc="r",Cc="i",Ic="n",wc="d",Dc="__nghData__",Tc="ngh",Ac="nghm";let Oc=()=>null;function Nc(e,t,n=!1){let r=e.getAttribute(Tc);if(null==r)return null;const[i,o]=r.split("|");if(r=n?o:i,!r)return null;const s=n?i:o?`|${o}`:"";let a={};if(""!==r){const e=t.get(fc,null,{optional:!0});null!==e&&(a=e.get(Dc,[])[Number(r)],ngDevMode&&St(a,"Unable to retrieve hydration info from the TransferState."))}const u={data:a,firstChild:e.firstChild??null};return n&&(u.firstChild=e,jc(u,0,e.nextSibling)),s?e.setAttribute(Tc,s):e.removeAttribute(Tc),ngDevMode&&Fc(e,!1),ngDevMode&&ngDevMode.hydratedComponents++,u}function Mc(e,t,n=!1){return Oc(e,t,n)}function Pc(e){let t=e._lView;return 2===t[Si].type?null:(io(t)&&(t=t[qi]),t)}var xc;!function(e){e.Hydrated="hydrated",e.Skipped="skipped",e.Mismatched="mismatched"}(xc||(xc={}));const Rc="__ngDebugHydrationInfo__";function kc(e,t){e[Rc]=t}function Lc(e){return e[Rc]??null}function Fc(e,t=!0){if(!ngDevMode)throw new Error("Calling `markRNodeAsClaimedByHydration` in prod mode is not supported and likely a mistake.");if(t&&function(e){return Lc(e)?.status===xc.Hydrated}(e))throw new Error("Trying to claim a node, which was claimed already.");kc(e,{status:xc.Hydrated}),ngDevMode.hydratedNodes++}function Uc(e,t=null,n=null){if(!ngDevMode)throw new Error("Calling `markRNodeAsMismatchedByHydration` in prod mode is not supported and likely a mistake.");for(;e&&!Hu(e);)e=e?.parentNode;e&&kc(e,{status:xc.Mismatched,expectedNodeDetails:t,actualNodeDetails:n})}function jc(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function Vc(e,t){return e.segmentHeads?.[t]??null}function Bc(e,t){return e.data[_c]?.[t]??null}function $c(e,t){const n=Bc(e,t)??[];let r=0;for(let e of n)r+=e[Sc]*(e[bc]??1);return r}function Hc(e,t){if(void 0===e.disconnectedNodes){const t=e.data[wc];e.disconnectedNodes=t?new Set(t):null}return!!e.disconnectedNodes?.has(t)}const Gc=new jt("undefined"==typeof ngDevMode||ngDevMode?"IS_HYDRATION_DOM_REUSE_ENABLED":""),qc=!1,zc=new jt("undefined"==typeof ngDevMode||ngDevMode?"PRESERVE_HOST_CONTENT":"",{providedIn:"root",factory:()=>qc}),Wc=new jt("undefined"==typeof ngDevMode||ngDevMode?"IS_I18N_HYDRATION_ENABLED":"");let Kc,Yc;function Qc(){if(void 0===Kc&&(Kc=null,Xe.trustedTypes))try{Kc=Xe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Kc}function Jc(e){return Qc()?.createHTML(e)||e}function Zc(){if(void 0===Yc&&(Yc=null,Xe.trustedTypes))try{Yc=Xe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Yc}function Xc(e){return Zc()?.createHTML(e)||e}function el(e){return Zc()?.createScript(e)||e}function tl(e){return Zc()?.createScriptURL(e)||e}class nl{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ue})`}}class rl extends nl{getTypeName(){return"HTML"}}class il extends nl{getTypeName(){return"Style"}}class ol extends nl{getTypeName(){return"Script"}}class sl extends nl{getTypeName(){return"URL"}}class al extends nl{getTypeName(){return"ResourceURL"}}function ul(e){return e instanceof nl?e.changingThisBreaksApplicationSecurity:e}function cl(e,t){const n=ll(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ue})`)}return n===t}function ll(e){return e instanceof nl&&e.getTypeName()||null}function dl(e){return new rl(e)}function hl(e){return new il(e)}function pl(e){return new ol(e)}function fl(e){return new sl(e)}function gl(e){return new al(e)}function ml(e){const t=new yl(e);return function(){try{return!!(new window.DOMParser).parseFromString(Jc(""),"text/html")}catch{return!1}}()?new vl(t):t}class vl{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e="<body><remove></remove>"+e;try{const t=(new window.DOMParser).parseFromString(Jc(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch{return null}}}class yl{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){const t=this.inertDocument.createElement("template");return t.innerHTML=Jc(e),t}}const El=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _l(e){return(e=String(e)).match(El)?e:(("undefined"==typeof ngDevMode||ngDevMode)&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see ${Ue})`),"unsafe:"+e)}function bl(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Sl(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Cl=bl("area,br,col,hr,img,wbr"),Il=bl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wl=bl("rp,rt"),Dl=Sl(wl,Il),Tl=Sl(Il,bl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Al=Sl(wl,bl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ol=Sl(Cl,Tl,Al,Dl),Nl=bl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ml=bl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pl=bl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),xl=Sl(Nl,Ml,Pl),Rl=bl("script,style,template");class kl{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0,r=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)r.push(t),t=Fl(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=Ll(t);if(e){t=e;break}t=r.pop()}return this.buf.join("")}startElement(e){const t=Ul(e).toLowerCase();if(!Ol.hasOwnProperty(t))return this.sanitizedSomething=!0,!Rl.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let e=0;e<n.length;e++){const t=n.item(e),r=t.name,i=r.toLowerCase();if(!xl.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;Nl[i]&&(o=_l(o)),this.buf.push(" ",r,'="',$l(o),'"')}return this.buf.push(">"),!0}endElement(e){const t=Ul(e).toLowerCase();Ol.hasOwnProperty(t)&&!Cl.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push($l(e))}}function Ll(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw jl(t);return t}function Fl(e){const t=e.firstChild;if(t&&(n=t,(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY))throw jl(t);var n;return t}function Ul(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function jl(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Vl=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bl=/([^\#-~ |!])/g;function $l(e){return e.replace(/&/g,"&").replace(Vl,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(Bl,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Hl;function Gl(e,t){let n=null;try{Hl=Hl||ml(e);let r=t?String(t):"";n=Hl.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Hl.getInertBodyElement(r)}while(r!==o);const s=new kl,a=s.sanitizeChildren(ql(n)||n);return("undefined"==typeof ngDevMode||ngDevMode)&&s.sanitizedSomething&&console.warn(`WARNING: sanitizing HTML stripped some content, see ${Ue}`),Jc(a)}finally{if(n){const e=ql(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function ql(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var zl;function Wl(e){const t=td();return t?Xc(t.sanitize(zl.HTML,e)||""):cl(e,"HTML")?Xc(ul(e)):Gl(nc(),on(e))}function Kl(e){const t=td();return t?t.sanitize(zl.STYLE,e)||"":cl(e,"Style")?ul(e):on(e)}function Yl(e){const t=td();return t?t.sanitize(zl.URL,e)||"":cl(e,"URL")?ul(e):_l(on(e))}function Ql(e){const t=td();if(t)return tl(t.sanitize(zl.RESOURCE_URL,e)||"");if(cl(e,"ResourceURL"))return tl(ul(e));throw new je(904,ngDevMode&&`unsafe value used in a resource URL context (see ${Ue})`)}function Jl(e){const t=td();if(t)return el(t.sanitize(zl.SCRIPT,e)||"");if(cl(e,"Script"))return el(ul(e));throw new je(905,ngDevMode&&"unsafe value used in a script context")}function Zl(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||1!==e.length))throw new Error(`Unexpected interpolation in trusted HTML constant: ${e.join("?")}`);return Jc(e[0])}function Xl(e){if(ngDevMode&&(!Array.isArray(e)||!Array.isArray(e.raw)||1!==e.length))throw new Error(`Unexpected interpolation in trusted URL constant: ${e.join("?")}`);return function(e){return Qc()?.createScriptURL(e)||e}(e[0])}function ed(e,t,n){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ql:Yl}(t,n)(e)}function td(){const e=ls();return e&&e[Mi].sanitizer}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(zl||(zl={}));const nd=/^>|^->|<!--|-->|--!>|<!-$/g,rd=/(<|>)/g,id="$1";function od(e){return e.replace(nd,(e=>e.replace(rd,id)))}const sd=/([A-Z])/g,ad={name:"custom-elements"},ud={name:"no-errors-schema"};let cd=!1;function ld(e){cd=e}function dd(){return cd}let hd=!1;function pd(e){hd=e}function fd(){return hd}function gd(e,t,n,r){t||4!==n||(t="ng-template");const i=yd(r);let o=`Can't bind to '${e}' since it isn't a known property of '${t}'${Ed(r)}.`;const s=`'${i?"@Component":"@NgModule"}.schemas'`,a=i?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared";_d.has(e)?o+=`\nIf the '${e}' is an Angular control flow directive, please make sure that either the '${_d.get(e)}' directive or the 'CommonModule' is ${a}.`:(o+=`\n1. If '${t}' is an Angular component and it has the '${e}' input, then verify that it is ${a}.`,t&&t.indexOf("-")>-1?(o+=`\n2. If '${t}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${s} of this component to suppress this message.`,o+=`\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${s} of this component.`):o+=`\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the ${s} of this component.`),md(o)}function md(e){if(hd)throw new je(303,e);console.error(Ve(303,e))}function vd(e){!ngDevMode&&Ct("Must never be called in production mode");const t=e[Li][Oi];return t&&t.constructor?Dr(t.constructor):null}function yd(e){!ngDevMode&&Ct("Must never be called in production mode");const t=vd(e);return!!t?.standalone}function Ed(e){!ngDevMode&&Ct("Must never be called in production mode");const t=vd(e),n=t?.type?.name;return n?` (used in the '${n}' component template)`:""}const _d=new Map([["ngIf","NgIf"],["ngFor","NgFor"],["ngSwitchCase","NgSwitchCase"],["ngSwitchDefault","NgSwitchDefault"]]);function bd(e,t){if(null!==e)for(let n=0;n<e.length;n++){const r=e[n];if(r===ud||r===ad&&t&&t.indexOf("-")>-1)return!0}return!1}function Sd(e){return e.ownerDocument.defaultView}function Cd(e){return e.ownerDocument}function Id(e){return e.ownerDocument.body}const wd="�";function Dd(e){return e instanceof Function?e():e}function Td(e){return"browser"===(e??Dn(Qa)).get(sc)}const Ad=200;function Od(e){if(!Dr(e))throw new je(906,`The ${sn(e)} is not an Angular component, make sure it has the \`@Component\` decorator.`)}function Nd(e,t,n){throw new je(-300,`Multiple components match node with tagname ${e.value}: ${sn(t)} and ${sn(n)}`)}function Md(e){let t=String(e);try{(Array.isArray(e)||"[object Object]"===t)&&(t=JSON.stringify(e))}catch(e){}return t.length>Ad?t.substring(0,Ad)+"…":t}function Pd(e,t,n,r,i){const[o,s,...a]=r.split(wd);let u=s,c=s;for(let r=0;r<a.length;r++){const o=t+r;u+=`${e[o]}${a[r]}`,c+=`${o===n?i:e[o]}${a[r]}`}return{propName:o,oldValue:u,newValue:c}}var xd;let Rd;function kd(e,t){return Rd(e,t)}function Ld(e,t,n,r,i){if(null!=r){let o,s=!1;Xi(r)?o=r:Zi(r)&&(s=!0,ngDevMode&&St(r[bi],"HOST must be defined for a component LView"),r=r[bi]);const a=jo(r);0===e&&null!==n?null==i?Jd(t,n,a):Qd(t,n,a,i||null,!0):1===e&&null!==n?Qd(t,n,a,i||null,!0):2===e?ch(t,a,s):3===e&&(ngDevMode&&ngDevMode.rendererDestroyNode++,t.destroyNode(a)),null!=o&&function(e,t,n,r,i){ngDevMode&&po(n);const o=n[Ki];o!==jo(n)&&Ld(t,e,r,o,i);for(let i=Qi;i<n.length;i++){const s=n[i];hh(s[Si],s,e,t,r,o)}}(t,e,o,n,i)}}function Fd(e,t){return ngDevMode&&ngDevMode.rendererCreateTextNode++,ngDevMode&&ngDevMode.rendererSetText++,e.createText(t)}function Ud(e,t,n){ngDevMode&&ngDevMode.rendererSetText++,e.setValue(t,n)}function jd(e,t){return ngDevMode&&ngDevMode.rendererCreateComment++,e.createComment(od(t))}function Vd(e,t,n){return ngDevMode&&ngDevMode.rendererCreateElement++,e.createElement(t,n)}function Bd(e,t){t[Mi].changeDetectionScheduler?.notify(1),hh(e,t,t[Pi],2,null,null)}function $d(e,t){ngDevMode&&po(e),ngDevMode&&St(e[Yi],"A projected view should belong to a non-empty projected views collection");const n=e[Yi],r=n.indexOf(t);ngDevMode&&po(t[Ii]),n.splice(r,1)}function Hd(e,t){if(e.length<=Qi)return;const n=Qi+t,r=e[n];if(r){const o=r[Fi];null!==o&&o!==e&&$d(o,r),t>0&&(e[n-1][wi]=r[wi]);const s=jn(e,Qi+t);Bd(r[Si],i=r),i[bi]=null,i[Di]=null;const a=s[ji];null!==a&&a.detachView(s[Si]),r[Ii]=null,r[wi]=null,r[Ci]&=-129}var i;return r}function Gd(e,t){if(!(256&t[Ci])){const n=t[Pi];n.destroyNode&&hh(e,t,n,3,null,null),function(e){let t=e[xi];if(!t)return qd(e[Si],e);for(;t;){let n=null;if(Zi(t))n=t[xi];else{ngDevMode&&po(t);const e=t[Qi];e&&(n=e)}if(!n){for(;t&&!t[wi]&&t!==e;)Zi(t)&&qd(t[Si],t),t=t[Ii];null===t&&(t=e),Zi(t)&&qd(t[Si],t),n=t&&t[wi]}t=n}}(t)}}function qd(e,t){if(256&t[Ci])return;const n=c(null);try{t[Ci]&=-129,t[Ci]|=256,t[Gi]&&_(t[Gi]),Wd(e,t),zd(e,t),1===t[Si].type&&(ngDevMode&&ngDevMode.rendererDestroy++,t[Pi].destroy());const n=t[Fi];if(null!==n&&Xi(t[Ii])){n!==t[Ii]&&$d(n,t);const r=t[ji];null!==r&&r.detachView(e)}!function(e){ngDevMode&<(e[Vi],"Cannot stop tracking an LView that does not have an ID"),Cu.delete(e[Vi])}(t)}finally{c(n)}}function zd(e,t){ngDevMode&&Tt(zd.name);const n=e.cleanup,r=t[Ai];if(null!==n)for(let e=0;e<n.length-1;e+=2)if("string"==typeof n[e]){const t=n[e+3];ngDevMode&<(t,"cleanup target must be a number"),t>=0?r[t]():r[-t].unsubscribe(),e+=2}else{const t=r[n[e+1]];n[e].call(t)}null!==r&&(t[Ai]=null);const i=t[$i];if(null!==i){t[$i]=null;for(let e=0;e<i.length;e++){const t=i[e];ngDevMode&&pt(t,"Expecting destroy hook to be a function."),t()}}}function Wd(e,t){let n;if(ngDevMode&&Tt(Wd.name),null!=e&&null!=(n=e.destroyHooks))for(let e=0;e<n.length;e+=2){const r=t[n[e]];if(!(r instanceof oa)){const t=n[e+1];if(Array.isArray(t))for(let e=0;e<t.length;e+=2){const n=r[t[e]],i=t[e+1];xo(4,n,i);try{i.call(n)}finally{xo(5,n,i)}}else{xo(4,r,t);try{t.call(r)}finally{xo(5,r,t)}}}}}function Kd(e,t,n){return Yd(e,t.parent,n)}function Yd(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[bi];{ngDevMode&&aa(r,7);const{componentOffset:t}=r;if(t>-1){ngDevMode&&ao(r,n);const{encapsulation:i}=e.data[r.directiveStart+t];if(i===Xn.None||i===Xn.Emulated)return null}return $o(r,n)}}function Qd(e,t,n,r,i){ngDevMode&&ngDevMode.rendererInsertBefore++,e.insertBefore(t,n,r,i)}function Jd(e,t,n){ngDevMode&&ngDevMode.rendererAppendChild++,ngDevMode&&St(t,"parent node must be defined"),e.appendChild(t,n)}function Zd(e,t,n,r,i){null!==r?Qd(e,t,n,r,i):Jd(e,t,n)}function Xd(e,t){return e.parentNode(t)}function eh(e,t,n){return rh(e,t,n)}function th(e,t,n){return 40&e.type?$o(e,n):null}!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(xd||(xd={}));let nh,rh=th;function ih(e,t){rh=e,nh=t}function oh(e,t,n,r){const i=Kd(e,r,t),o=t[Pi],s=eh(r.parent||t[Di],r,t);if(null!=i)if(Array.isArray(n))for(let e=0;e<n.length;e++)Zd(o,i,n[e],s,!1);else Zd(o,i,n,s,!1);void 0!==nh&&nh(o,r,t,n,i)}function sh(e,t){if(null!==t){ngDevMode&&aa(t,63);const n=t.type;if(3&n)return $o(t,e);if(4&n)return uh(-1,e[t.index]);if(8&n){const n=t.child;if(null!==n)return sh(e,n);{const n=e[t.index];return Xi(n)?uh(-1,n):jo(n)}}if(32&n)return kd(t,e)()||jo(e[t.index]);{const n=ah(e,t);if(null!==n){if(Array.isArray(n))return n[0];const t=rs(e[Li]);return ngDevMode&&bo(t),sh(t,n)}return sh(e,t.next)}}return null}function ah(e,t){if(null!==t){const n=e[Li][Di],r=t.projection;return ngDevMode&&function(e,t){St(e[Li],"Component views should exist."),St(e[Li][Di].projection,"Components with projection nodes (<ng-content>) must have projection slots defined.")}(e),n.projection[r]}return null}function uh(e,t){const n=Qi+e+1;if(n<t.length){const e=t[n],r=e[Si].firstChild;if(null!==r)return sh(e,r)}return t[Ki]}function ch(e,t,n){ngDevMode&&ngDevMode.rendererRemoveNode++;const r=Xd(e,t);r&&function(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}function lh(e){e.textContent=""}function dh(e,t,n,r,i,o,s){for(;null!=n;){ngDevMode&&ao(n,r),ngDevMode&&aa(n,63);const a=r[n.index],u=n.type;if(s&&0===t&&(a&&Mu(jo(a),r),n.flags|=2),32&~n.flags)if(8&u)dh(e,t,n.child,r,i,o,!1),Ld(t,e,i,a,o);else if(32&u){const s=kd(n,r);let u;for(;u=s();)Ld(t,e,i,u,o);Ld(t,e,i,a,o)}else 16&u?ph(e,t,r,n,i,o):(ngDevMode&&aa(n,7),Ld(t,e,i,a,o));n=s?n.projectionNext:n.next}}function hh(e,t,n,r,i,o){dh(n,r,e.firstChild,t,i,o,!1)}function ph(e,t,n,r,i,o){const s=n[Li],a=s[Di];ngDevMode&&ft(typeof r.projection,"number","expecting projection index");const u=a.projection[r.projection];if(Array.isArray(u))for(let n=0;n<u.length;n++)Ld(t,e,i,u[n],o);else{let n=u;const a=s[Ii];bu(r)&&(n.flags|=128),dh(e,t,n,a,i,o,!0)}}function fh(e,t,n){ngDevMode&&ht(n,"'newValue' should be a string"),""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n),ngDevMode&&ngDevMode.rendererSetClassName++}function gh(e,t,n){const{mergedAttrs:r,classes:i,styles:o}=n;null!==r&&nr(e,t,r),null!==i&&fh(e,t,i),null!==o&&function(e,t,n){ngDevMode&&ht(n,"'newValue' should be a string"),e.setAttribute(t,"style",n),ngDevMode&&ngDevMode.rendererSetStyle++}(e,t,o)}const mh="undefined"==typeof ngDevMode||ngDevMode?{__brand__:"NO_CHANGE"}:{};function vh(e=1){ngDevMode&&_t(e,0,"Can only advance forward"),yh(ds(),ls(),Bs()+e,!!ngDevMode&&_s())}function yh(e,t,n,r){if(ngDevMode&&yo(t[Si],n),!r)if(3&~t[Ci]){const r=e.preOrderHooks;null!==r&&Xs(t,r,0,n)}else{const r=e.preOrderCheckHooks;null!==r&&Zs(t,r,n)}$s(n)}function Eh(e,t=dn.Default){const n=ls();if(null===n)return ngDevMode&&function(e){ngDevMode&>(hn,e,"Calling ɵɵinject would cause infinite recursion")}(Eh),In(e,t);const r=Ia(fs(),n,ut(e),t);return ngDevMode&&Kt(e,r,t),r}function _h(){const e=ngDevMode?"This constructor was not compatible with Dependency Injection.":"invalid";throw new Error(e)}function bh(e,t,n,r,i,o){const s=c(null);try{let s=null;i&er.SignalBased&&(s=t[r][u]),null!==s&&void 0!==s.transformFn&&(o=s.transformFn(o)),i&er.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),null!==e.setInput?e.setInput(t,s,o,n,r):wo(t,s,r,o)}finally{c(s)}}function Sh(e,t,n,r,i,o,s,a,u,c,l){const d=t.blueprint.slice();return d[bi]=i,d[Ci]=204|r,(null!==c||e&&2048&e[Ci])&&(d[Ci]|=2048),Yo(d),ngDevMode&&t.declTNode&&e&&ao(t.declTNode,e),d[Ii]=d[ki]=e,d[Oi]=n,d[Mi]=s||e&&e[Mi],ngDevMode&&St(d[Mi],"LViewEnvironment is required"),d[Pi]=a||e&&e[Pi],ngDevMode&&St(d[Pi],"Renderer is required"),d[Ni]=u||e&&e[Ni]||null,d[Di]=o,d[Vi]=Iu++,d[Ti]=l,d[Bi]=c,ngDevMode&&ft(2!=t.type||null!==e,!0,"Embedded views must have parentLView"),d[Li]=2==t.type?e[Li]:d,d}function Ch(e,t,n,r,i){ngDevMode&&0!==t&&bt(t,qi,"TNodes can't be in the LView header."),ngDevMode&&function(e){2!==e&&1!==e&&4!==e&&8!==e&&32!==e&&16!==e&&64!==e&&Ct(`Expected TNodeType to have only a single type selected, but got ${sa(e)}.`)}(n);let o=e.data[t];if(null===o)o=Ih(e,t,n,r,i),is.lFrame.inI18n&&(o.flags|=32);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const s=ms();o.injectorIndex=null===s?-1:s.injectorIndex,ngDevMode&&uo(o,e),ngDevMode&&ft(t,o.index,"Expecting same index")}return vs(o,!0),o}function Ih(e,t,n,r,i){const o=gs(),s=ys(),a=s?o:o&&o.parent,u=e.data[t]=function(e,t,n,r,i,o){ngDevMode&&0!==r&&bt(r,qi,"TNodes can't be in the LView header."),ngDevMode&&vt(o,void 0,"'undefined' is not valid value for 'attrs'"),ngDevMode&&ngDevMode.tNode++,ngDevMode&&t&&uo(t,e);let s=t?t.injectorIndex:-1,a=0;as()&&(a|=128);const u={type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};return ngDevMode&&Object.seal(u),u}(e,a,n,t,r,i);return null===e.firstChild&&(e.firstChild=u),null!==o&&(s?null==o.child&&null!==u.parent&&(o.child=u):null===o.next&&(o.next=u,u.prev=o)),u}function wh(e,t,n,r){if(0===n)return-1;ngDevMode&&(mo(e),mt(e,t[Si],"`LView` must be associated with `TView`!"),ft(e.data.length,t.length,"Expecting LView to be same size as TView"),ft(e.data.length,e.blueprint.length,"Expecting Blueprint to be same size as TView"),vo(e));const i=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Dh(e,t,n,r,i){const o=Bs(),s=2&r;try{$s(-1),s&&t.length>qi&&yh(e,t,qi,!!ngDevMode&&_s()),xo(s?2:0,i),n(r,i)}finally{$s(o),xo(s?3:1,i)}}function Th(e,t,n){if(eo(t)){const r=c(null);try{const r=t.directiveStart,i=t.directiveEnd;for(let t=r;t<i;t++){const r=e.data[t];if(r.contentQueries){const e=n[t];ngDevMode&&St(t,"Incorrect reference to a directive defining a content query"),r.contentQueries(1,e,t)}}}finally{c(r)}}}function Ah(e,t,n){ss()&&(function(e,t,n,r){const i=n.directiveStart,o=n.directiveEnd;to(n)&&(ngDevMode&&aa(n,3),function(e,t,n){const r=$o(t,e),i=Nh(n),o=e[Mi].rendererFactory;let s=16;n.signals?s=4096:n.onPush&&(s=64);const a=Jh(e,Sh(e,i,null,s,r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=a}(t,n,e.data[i+n.componentOffset])),e.firstCreatePass||va(n,t),Mu(r,t);const s=n.initialInputs;for(let r=i;r<o;r++){const o=e.data[r],a=Aa(t,e,r,n);Mu(a,t),null!==s&&Wh(t,r-i,a,o,n,s),ro(o)&&(qo(n.index,t)[Oi]=Aa(t,e,r,n))}}(e,t,n,$o(n,t)),64&~n.flags||Vh(e,t,n))}function Oh(e,t,n=$o){const r=t.localNames;if(null!==r){let i=t.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}}function Nh(e){const t=e.tView;if(null===t||t.incompleteFirstPass){const t=null;return e.tView=Mh(1,t,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id)}return t}function Mh(e,t,n,r,i,o,s,a,u,c,l){ngDevMode&&ngDevMode.tView++;const d=qi+r,h=d+i,p=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:mh);return n}(d,h),f="function"==typeof c?c():c,g=p[Si]={type:e,blueprint:p,template:n,queries:null,viewQuery:a,declTNode:t,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:f,incompleteFirstPass:!1,ssrId:l};return ngDevMode&&Object.seal(g),g}let Ph=()=>null;function xh(e){_u(e)?lh(e):function(e){const t=nc(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(e){const t=function(e){return e.textContent?.replace(/\s/gm,"")}(e);return"ngetn"===t||"ngtns"===t?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let r;const i=[];for(;r=n.nextNode();)i.push(r);for(const e of i)"ngetn"===e.textContent?e.replaceWith(t.createTextNode("")):e.remove()}(e)}function Rh(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;const s=t[o];if(void 0===s)continue;let a;r??={};let u=er.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(null!==i){if(!i.hasOwnProperty(o))continue;c=i[o]}0===e?kh(r,n,c,a,u):kh(r,n,c,a)}return r}function kh(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],void 0!==i&&o.push(i)}function Lh(e,t,n,r,i,o,s,a){ngDevMode&&vt(i,mh,"Incoming value should never be NO_CHANGE.");const u=$o(t,n);let c,l=t.inputs;var d;!a&&null!=l&&(c=l[r])?(ip(e,n,c,r,i),to(t)&&function(e,t){ngDevMode&&go(e);const n=qo(t,e);16&n[Ci]||(n[Ci]|=64)}(n,t.index),ngDevMode&&function(e,t,n,r,i){if(7&n)for(let o=0;o<r.length;o+=3)Fh(e,t,n,r[o+1],i)}(n,u,t.type,c,i)):3&t.type?(r="class"===(d=r)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,ngDevMode&&(function(e){if(e.toLowerCase().startsWith("on")){const t=`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...\nIf '${e}' is a directive input, make sure the directive is imported by the current module.`;throw new je(306,t)}}(r),function(e,t,n,r){return!(null!==r&&!(bd(r,n)||t in e||ir(t))&&"undefined"!=typeof Node&&null!==Node&&e instanceof Node)}(u,r,t.value,e.schemas)||gd(r,t.value,t.type,n),ngDevMode.rendererSetProperty++),i=null!=s?s(i,t.value||"",r):i,o.setProperty(u,r,i)):12&t.type&&ngDevMode&&!bd(e.schemas,t.value)&&gd(r,t.value,t.type,n)}function Fh(e,t,n,r,i){const o=e[Pi];var s;s=function(e){return e.replace(sd,((...e)=>"-"+e[1].toLowerCase()))}((s=r).replace(/[$@]/g,"_")),r=`ng-reflect-${s}`;const a=function(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}(i);if(3&n)null==i?o.removeAttribute(t,r):o.setAttribute(t,r,a);else{const e=od(`bindings=${JSON.stringify({[r]:a},null,2)}`);o.setValue(t,e)}}function Uh(e,t,n,r){if(ngDevMode&&mo(e),ss()){const i=null===r?null:{"":-1},o=function(e,t){ngDevMode&&mo(e),ngDevMode&&aa(t,15);const n=e.directiveRegistry;let r=null,i=null;if(n)for(let o=0;o<n.length;o++){const s=n[o];if(fr(t,s.selectors,!1))if(r||(r=[]),ro(s))if(ngDevMode&&(aa(t,2,`"${t.value}" tags cannot be used as component hosts. Please use a different tag to activate the ${rt(s.type)} component.`),to(t)&&Nd(t,r.find(ro).type,s.type)),null!==s.findHostDirectiveDefs){const n=[];i=i||new Map,s.findHostDirectiveDefs(s,n,i),r.unshift(...n,s),$h(e,t,n.length)}else r.unshift(s),$h(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return ngDevMode&&null!==r&&So(r),null===r?null:[r,i]}(e,n);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&jh(e,t,n,s,i,a),i&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new je(-301,ngDevMode&&`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(n,r,i)}n.mergedAttrs=or(n.mergedAttrs,n.attrs)}function jh(e,t,n,r,i,o){ngDevMode&&mo(e);for(let i=0;i<r.length;i++)ba(va(n,t),e,r[i].type);!function(e,t,n){ngDevMode&>(n,e.directiveEnd-e.directiveStart,"Reached the max number of directives"),e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let e=0;e<r.length;e++){const t=r[e];t.providersResolver&&t.providersResolver(t)}let s=!1,a=!1,u=wh(e,t,r.length,null);ngDevMode&&mt(u,n.directiveStart,"TNode.directiveStart should point to just allocated space");for(let o=0;o<r.length;o++){const c=r[o];n.mergedAttrs=or(n.mergedAttrs,c.hostAttrs),Gh(e,n,t,u,c),Hh(u,c,i),null!==c.contentQueries&&(n.flags|=4),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=64);const l=c.type.prototype;!s&&(l.ngOnChanges||l.ngOnInit||l.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),a||!l.ngOnChanges&&!l.ngDoCheck||((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}!function(e,t,n){ngDevMode&&mo(e);const r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[];let u=null,c=null;for(let e=r;e<i;e++){const r=o[e],i=n?n.get(r):null,l=i?i.inputs:null,d=i?i.outputs:null;u=Rh(0,r.inputs,e,u,l),c=Rh(1,r.outputs,e,c,d);const h=null===u||null===s||cr(t)?null:Kh(u,e,s);a.push(h)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=c}(e,n,o)}function Vh(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,s=is.lFrame.currentDirectiveIndex;try{$s(o);for(let n=r;n<i;n++){const r=e.data[n],i=t[n];Os(n),null===r.hostBindings&&0===r.hostVars&&null===r.hostAttrs||Bh(r,i)}}finally{$s(-1),Os(s)}}function Bh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function $h(e,t,n){ngDevMode&&mo(e),ngDevMode&&_t(n,-1,"componentOffset must be great than -1"),t.componentOffset=n,(e.components??=[]).push(t.index)}function Hh(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ro(t)&&(n[""]=e)}}function Gh(e,t,n,r,i){ngDevMode&&bt(r,qi,"Must be in Expando section"),e.data[r]=i;const o=i.factory||(i.factory=kn(i.type,!0)),s=new oa(o,ro(i),Eh);e.blueprint[r]=s,n[r]=s,function(e,t,n,r,i){ngDevMode&&mo(e);const o=i.hostBindings;if(o){let i=e.hostBindingOpCodes;null===i&&(i=e.hostBindingOpCodes=[]);const s=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(i)!=s&&i.push(s),i.push(n,r,o)}}(e,t,r,wh(e,n,i.hostVars,mh),i)}function qh(e,t,n,r,i,o){ngDevMode&&(vt(r,mh,"Incoming value should never be NO_CHANGE."),function(e){if(e.toLowerCase().startsWith("on")){const t=`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`;throw new je(306,t)}}(n),aa(e,2,`Attempted to set attribute \`${n}\` on a container node. Host bindings are not valid on ng-container or ng-template.`));const s=$o(e,t);zh(t[Pi],s,o,e.value,n,r,i)}function zh(e,t,n,r,i,o,s){if(null==o)ngDevMode&&ngDevMode.rendererRemoveAttribute++,e.removeAttribute(t,i,n);else{ngDevMode&&ngDevMode.rendererSetAttribute++;const a=null==s?on(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function Wh(e,t,n,r,i,o){const s=o[t];if(null!==s)for(let t=0;t<s.length;){const o=s[t++],a=s[t++],u=s[t++],c=s[t++];bh(r,n,o,a,u,c),ngDevMode&&Fh(e,$o(i,e),i.type,a,c)}}function Kh(e,t,n){let r=null,i=0;for(;i<n.length;){const o=n[i];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===r&&(r=[]);const s=e[o];for(let e=0;e<s.length;e+=3)if(s[e]===t){r.push(o,s[e+1],s[e+2],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Yh(e,t,n,r){ngDevMode&&go(t);const i=[e,!0,0,t,null,r,null,n,null,null];return ngDevMode&&ft(i.length,Qi,"Should allocate correct number of slots for LContainer header."),i}function Qh(e,t){const n=e.contentQueries;if(null!==n){const r=c(null);try{for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=e.data[o];ngDevMode&&St(n,"DirectiveDef not found."),ngDevMode&&St(n.contentQueries,"contentQueries function should be defined"),Ps(i),n.contentQueries(2,t[o],o)}}}finally{c(r)}}}function Jh(e,t){return e[xi]?e[Ri][wi]=t:e[xi]=t,e[Ri]=t,t}function Zh(e,t,n){ngDevMode&&St(t,"View queries function to execute must be defined."),Ps(0);const r=c(null);try{t(e,n)}finally{c(r)}}function Xh(e,t,n,r,...i){if(null===e[r]&&(null==t.inputs||!t.inputs[n])){(t.propertyBindings||(t.propertyBindings=[])).push(r);let o=n;i.length>0&&(o+=wd+i.join(wd)),e[r]=o}}function ep(e){return e[Ai]||(e[Ai]=[])}function tp(e){return e.cleanup||(e.cleanup=[])}function np(e,t,n){return(null===e||ro(e))&&(n=Vo(n[t.index])),n[Pi]}function rp(e,t){const n=e[Ni],r=n?n.get(Xa,null):null;r&&r.handleError(t)}function ip(e,t,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],u=n[o++],c=t[s];ngDevMode&&wt(t,s),bh(e.data[s],c,r,a,u,i)}}function op(e,t,n){ngDevMode&&ht(n,"Value should be a string"),ngDevMode&&vt(n,mh,"value should not be NO_CHANGE"),ngDevMode&&wt(e,t);const r=Bo(t,e);ngDevMode&&St(r,"native element should exist"),Ud(e[Pi],r,n)}function sp(e,t){ngDevMode&&ft(zo(e),!0,"Should be run in creation mode");const n=qo(t,e),r=n[Si];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const i=n[bi];null!==i&&null===n[Ti]&&(n[Ti]=Mc(i,n[Ni])),ap(r,n,n[Oi])}function ap(e,t,n){ngDevMode&&ft(zo(t),!0,"Should be run in creation mode"),ngDevMode&&Tt(ap.name),ks(t);try{const r=e.viewQuery;null!==r&&Zh(1,r,n);const i=e.template;null!==i&&Dh(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[ji]?.finishViewCreation(e),e.staticContentQueries&&Qh(e,t),e.staticViewQueries&&Zh(2,e.viewQuery,n);const o=e.components;null!==o&&function(e,t){for(let n=0;n<t.length;n++)sp(e,t[n])}(t,o)}catch(t){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),t}finally{t[Ci]&=-5,Vs()}}function up(e,t,n,r){const i=c(null);try{const i=t.tView;ngDevMode&&St(i,"TView must be defined for a template node."),ngDevMode&&ao(t,e);const o=Sh(e,i,n,4096&e[Ci]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),s=e[t.index];ngDevMode&&po(s),o[Fi]=s;const a=e[ji];return null!==a&&(o[ji]=a.createEmbeddedView(i)),ap(i,o,n),o}finally{c(i)}}function cp(e,t){const n=Qi+t;if(n<e.length){const t=e[n];return ngDevMode&&go(t),t}}function lp(e,t){return!t||null===t.firstChild||bu(e)}function dp(e,t,n,r=!0){const i=t[Si];if(function(e,t,n,r){ngDevMode&&go(t),ngDevMode&&po(n);const i=Qi+r,o=n.length;r>0&&(n[i-1][wi]=t),r<o-Qi?(t[wi]=n[i],Un(n,Qi+r,t)):(n.push(t),t[wi]=null),t[Ii]=n;const s=t[Fi];null!==s&&n!==s&&function(e,t){ngDevMode&&St(t,"LView required"),ngDevMode&&po(e);const n=e[Yi],r=t[Ii];ngDevMode&&po(r);const i=r[Ii][Li];ngDevMode&&St(i,"Missing insertedComponentLView");const o=t[Li];ngDevMode&&St(o,"Missing declaredComponentLView"),o!==i&&(e[Ci]|=Ji.HasTransplantedViews),null===n?e[Yi]=[t]:n.push(t)}(s,t);const a=t[ji];null!==a&&a.insertView(e),Xo(t),t[Ci]|=128}(i,t,e,n),r){const r=uh(n,e),o=t[Pi],s=Xd(o,e[Ki]);null!==s&&function(e,t,n,r,i,o){r[bi]=i,r[Di]=t,hh(e,r,n,1,i,o)}(i,e[Di],o,t,s,r)}const o=t[Ti];null!==o&&null!==o.firstChild&&(o.firstChild=null)}function hp(e,t){const n=Hd(e,t);return void 0!==n&&Gd(n[Si],n),n}function pp(e,t,n,r,i=!1){for(;null!==n;){ngDevMode&&aa(n,63);const o=t[n.index];null!==o&&r.push(jo(o)),Xi(o)&&fp(o,r);const s=n.type;if(8&s)pp(e,t,n.child,r);else if(32&s){const e=kd(n,t);let i;for(;i=e();)r.push(i)}else if(16&s){const e=ah(t,n);if(Array.isArray(e))r.push(...e);else{const n=rs(t[Li]);ngDevMode&&bo(n),pp(n[Si],n,e,r,!0)}}n=i?n.projectionNext:n.next}return r}function fp(e,t){for(let n=Qi;n<e.length;n++){const r=e[n],i=r[Si].firstChild;null!==i&&pp(r[Si],r,i,t)}e[Ki]!==e[bi]&&t.push(e[Ki])}let gp=[];const mp={...d,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{es(e.lView)},consumerOnSignalRead(){this.lView[Gi]=this}},vp=100;function yp(e,t=!0,n=0){const r=e[Mi],i=r.rendererFactory,o=!!ngDevMode&&_s();o||i.begin?.();try{!function(e,t){Cp(e,t);let n=0;for(;Zo(e);){if(n===vp)throw new je(103,ngDevMode&&"Infinite change detection while trying to refresh views. There may be components which each cause the other to require a refresh, causing an infinite loop.");n++,Cp(e,1)}}(e,n)}catch(n){throw t&&rp(e,n),n}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function Ep(e,t,n,r){ngDevMode&&ft(zo(t),!1,"Should be run in update mode");const i=t[Ci];if(!(256&~i))return;const o=ngDevMode&&_s();!o&&t[Mi].inlineEffectRunner?.flush(),ks(t);let s=null,a=null;!o&&function(e){return 2!==e.type}(e)&&(a=function(e){return e[Gi]??function(e){const t=gp.pop()??Object.create(mp);return t.lView=e,t}(e)}(t),s=v(a));try{Yo(t),Is(e.bindingStartIndex),null!==n&&Dh(e,t,n,2,r);const s=!(3&~i);if(!o)if(s){const n=e.preOrderCheckHooks;null!==n&&Zs(t,n,null)}else{const n=e.preOrderHooks;null!==n&&Xs(t,n,0,null),ea(t,0)}if(function(e){for(let t=Vu(e);null!==t;t=Bu(t)){if(!(t[Ci]&Ji.HasTransplantedViews))continue;const e=t[Yi];ngDevMode&&St(e,"Transplanted View flags set but missing MOVED_VIEWS");for(let t=0;t<e.length;t++){const n=e[t],r=n[Ii];ngDevMode&&po(r),Qo(n)}}}(t),_p(t,0),null!==e.contentQueries&&Qh(e,t),!o)if(s){const n=e.contentCheckHooks;null!==n&&Zs(t,n)}else{const n=e.contentHooks;null!==n&&Xs(t,n,1),ea(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let e=0;e<n.length;e++){const r=n[e];if(r<0)$s(~r);else{const i=r,o=n[++e],s=n[++e];As(o,i),s(2,t[i])}}}finally{$s(-1)}}(e,t);const a=e.components;null!==a&&Ip(t,a,0);const u=e.viewQuery;if(null!==u&&Zh(2,u,r),!o)if(s){const n=e.viewCheckHooks;null!==n&&Zs(t,n)}else{const n=e.viewHooks;null!==n&&Xs(t,n,2),ea(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[Hi]){for(const e of t[Hi])e();t[Hi]=null}o||(t[Ci]&=-73)}catch(e){throw es(t),e}finally{null!==a&&(y(a,s),(u=a).lView[Gi]!==u&&(u.lView=null,gp.push(u))),Vs()}var u}function _p(e,t){for(let n=Vu(e);null!==n;n=Bu(n))for(let e=Qi;e<n.length;e++)Sp(n[e],t)}function bp(e,t,n){ngDevMode&&ft(zo(e),!1,"Should be run in update mode"),Sp(qo(t,e),n)}function Sp(e,t){Wo(e)&&Cp(e,t)}function Cp(e,t){const n=ngDevMode&&_s(),r=e[Si],i=e[Ci],o=e[Gi];let s=!!(0===t&&16&i);if(s||=!(!(64&i&&0===t)||n),s||=!!(1024&i),s||=!(!o?.dirty||!E(o)),o&&(o.dirty=!1),e[Ci]&=-9217,s)Ep(r,e,r.template,e[Oi]);else if(8192&i){_p(e,1);const t=r.components;null!==t&&Ip(e,t,1)}}function Ip(e,t,n){for(let r=0;r<t.length;r++)bp(e,t[r],n)}function wp(e){for(e[Mi].changeDetectionScheduler?.notify();e;){e[Ci]|=64;const t=rs(e);if(io(e)&&!t)return e;e=t}return null}class Dp{get rootNodes(){const e=this._lView,t=e[Si];return pp(t,e,t.firstChild,[])}constructor(e,t,n=!0){this._lView=e,this._cdRefInjectingView=t,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Oi]}set context(e){ngDevMode&&console.warn("Angular: Replacing the `context` object of an `EmbeddedViewRef` is deprecated."),this._lView[Oi]=e}get destroyed(){return!(256&~this._lView[Ci])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[Ii];if(Xi(e)){const t=e[8],n=t?t.indexOf(this):-1;n>-1&&(ngDevMode&&ft(n,e.indexOf(this._lView)-Qi,"An attached view should be in the same position within its container as its ViewRef in the VIEW_REFS array."),Hd(e,n),jn(t,n))}this._attachedToViewContainer=!1}Gd(this._lView[Si],this._lView)}onDestroy(e){ts(this._lView,e)}markForCheck(){wp(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ci]&=-129}reattach(){Xo(this._lView),this._lView[Ci]|=128}detectChanges(){this._lView[Ci]|=1024,yp(this._lView,this.notifyErrorHandler)}checkNoChanges(){ngDevMode&&function(e,t=!0){bs(!0);try{yp(e,t)}finally{bs(!1)}}(this._lView,this.notifyErrorHandler)}attachToViewContainerRef(){if(this._appRef)throw new je(902,ngDevMode&&"This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Bd(this._lView[Si],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new je(902,ngDevMode&&"This view is already attached to a ViewContainer!");this._appRef=e,Xo(this._lView)}}class Tp{static{this.__NG_ELEMENT_ID__=Np}}const Ap=Tp,Op=class extends Ap{constructor(e,t,n){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,t){return this.createEmbeddedViewImpl(e,t)}createEmbeddedViewImpl(e,t,n){const r=up(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:t,dehydratedView:n});return new Dp(r)}};function Np(){return Mp(fs(),ls())}function Mp(e,t){return 4&e.type?(ngDevMode&&St(e.tView,"TView must be allocated"),new Op(t,e,lu(e,t))):null}const Pp="<-- AT THIS LOCATION";function xp(e,t,n,r,i,o=!1){if(!e||e.nodeType!==t||e.nodeType===Node.ELEMENT_NODE&&e.tagName.toLowerCase()!==n?.toLowerCase()){let s=`During hydration Angular expected ${Hp(t,n,null)} but `;const a=vd(r),u=a?.type?.name,c=Bp(r,i,o),l=`Angular expected this DOM:\n\n${c}\n\n`;let d="";const h=jo(r[bi]);if(e){s+=`found ${Hp(e.nodeType,e.tagName??null,e.textContent??null)}.\n\n`;const t=$p(e);d=`Actual DOM is:\n\n${t}\n\n`,Uc(h,c,t)}else s+="the node was not found.\n\n",Uc(h,c);const p=Gp(u);throw new je(-500,s+l+d+"Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.\n\n"+p)}}function Rp(e){if(kp(e),!e.nextSibling){const t="During hydration Angular expected more sibling nodes to be present.\n\n",n=`Actual DOM is:\n\n${$p(e)}\n\n`,r=t+n+Gp();throw Uc(e,"",n),new je(-501,r)}}function kp(e,t=null,n=null){if(!e){const e="During hydration, Angular expected an element to be present at this location.\n\n";let r="",i="";throw null!==t&&null!==n&&(r=Bp(t,n,!1),i=Gp(),Uc(jo(t[bi]),r,"")),new je(-502,`${e}${r}\n\n${i}`)}}function Lp(e,t){const n=`During hydration Angular was unable to locate a node using the "${t}" path, starting from the ${Vp(e)} node.\n\n`,r=Gp();throw Uc(e),new je(-502,n+r)}function Fp(e){const t=`${$p(e)}\n\n`;return new je(-503,"During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via `ViewContainerRef.createComponent` or `createComponent` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using `ngSkipHydration` on the host element of the component.\n\n"+t+"Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches.\n\n")}const Up=new Set(["ngh","ng-version","ng-server-context"]);function jp(e,t="…"){switch(e.type){case 1:return"#text"+(e.value?`(${e.value})`:"");case 2:const n=function(e){const t=[];if(e.attrs)for(let n=0;n<e.attrs.length;){const r=e.attrs[n++];if("number"==typeof r)break;const i=e.attrs[n++];t.push(`${r}="${qp(i)}"`)}return t.join(" ")}(e),r=e.value.toLowerCase();return`<${r}${n?" "+n:""}>${t}</${r}>`;case 8:return"\x3c!-- ng-container --\x3e";case 4:return"\x3c!-- container --\x3e";default:return`#node(${function(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";default:return"<unknown>"}}(e.type)})`}}function Vp(e,t="…"){const n=e;switch(n.nodeType){case Node.ELEMENT_NODE:const e=n.tagName.toLowerCase(),r=function(e){const t=[];for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];Up.has(r.name)||t.push(`${r.name}="${qp(r.value)}"`)}return t.join(" ")}(n);return`<${e}${r?" "+r:""}>${t}</${e}>`;case Node.TEXT_NODE:const i=n.textContent?qp(n.textContent):"";return"#text"+(i?`(${i})`:"");case Node.COMMENT_NODE:return`\x3c!-- ${qp(n.textContent??"")} --\x3e`;default:return`#node(${n.nodeType})`}}function Bp(e,t,n){const r=" ";let i="";t.prev?(i+=" …\n",i+=r+jp(t.prev)+"\n"):t.type&&12&t.type&&(i+=" …\n"),n?(i+=r+jp(t)+"\n",i+=r+`\x3c!-- container --\x3e ${Pp}\n`):i+=r+jp(t)+` ${Pp}\n`,i+=" …\n";const o=t.type?Kd(e[Si],t,e):null;return o&&(i=Vp(o,"\n"+i)),i}function $p(e){let t="";const n=e;return n.previousSibling&&(t+=" …\n",t+=" "+Vp(n.previousSibling)+"\n"),t+=" "+Vp(n)+` ${Pp}\n`,e.nextSibling&&(t+=" …\n"),e.parentNode&&(t=Vp(n.parentNode,"\n"+t)),t}function Hp(e,t,n){switch(e){case Node.ELEMENT_NODE:return`<${t.toLowerCase()}>`;case Node.TEXT_NODE:return"a text node"+(n?` (with the "${qp(n)}" content)`:"");case Node.COMMENT_NODE:return"a comment node";default:return`#node(nodeType=${e})`}}function Gp(e){return`To fix this problem:\n * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues\n * check to see if your template has valid HTML structure\n * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template\n\n`}function qp(e,t=50){return e?(e=function(e){return e.replace(/\s+/gm,"")}(e)).length>t?`${e.substring(0,t-1)}…`:e:""}function zp(e){const t=e[Wi]??[],n=e[Ii][Pi];for(const e of t)Wp(e,n),ngDevMode&&ngDevMode.dehydratedViewsRemoved++;e[Wi]=Wn}function Wp(e,t){let n=0,r=e.firstChild;if(r){const i=e.data[Sc];for(;n<i;){ngDevMode&&Rp(r);const e=r.nextSibling;ch(t,r,!1),r=e,n++}}}function Kp(e){zp(e);for(let t=Qi;t<e.length;t++)Yp(e[t])}function Yp(e){!function(e){const t=e[Ti]?.i18nNodes;if(t){const n=e[Pi];for(const e of t.values())ch(n,e,!1);e[Ti].i18nNodes=void 0}}(e);const t=e[Si];for(let n=qi;n<t.bindingStartIndex;n++)Xi(e[n])?Kp(e[n]):Zi(e[n])&&Yp(e[n])}const Qp=new RegExp(`^(\\d+)*(${mc}|${gc})*(.*)`);function Jp(e){return e.index-qi}function Zp(e,t){return!(16&e.type||!t[e.index]||jo(t[e.index])?.isConnected)}function Xp(e,t,n,r){const i=Jp(r);let o=function(e,t){const n=e.i18nNodes;if(n){const e=n.get(t);return e&&n.delete(t),e}return null}(e,i);if(!o){const s=e.data[Ic];if(s?.[i])o=function(e,t){const[n,...r]=function(e){const t=e.match(Qp),[n,r,i,o]=t,s=r?parseInt(r,10):i,a=[];for(const[e,t,n]of o.matchAll(/(f|n)(\d*)/g)){const e=parseInt(n,10)||1;a.push(t,e)}return[s,...a]}(e);let i;return i=n===gc?t[Li][bi]:n===mc?Id(t[Li][bi]):jo(t[Number(n)+qi]),function(e,t){let n=e;for(let r=0;r<t.length;r+=2){const i=t[r],o=t[r+1];for(let r=0;r<o;r++){if(ngDevMode&&!n)throw Lp(e,tf(t));switch(i){case vc.FirstChild:n=n.firstChild;break;case vc.NextSibling:n=n.nextSibling}}}if(ngDevMode&&!n)throw Lp(e,tf(t));return n}(i,r)}(s[i],n);else if(t.firstChild===r)o=e.firstChild;else{const t=null===r.prev,i=r.prev??r.parent;if(ngDevMode&&St(i,"Unexpected state: current TNode does not have a connection to the previous node or a parent node."),function(e){return!e.prev&&8===e.parent?.type}(r))o=Vc(e,Jp(r.parent));else{let r=$o(i,n);if(t)o=r.firstChild;else{const t=Jp(i),n=Vc(e,t);o=2===i.type&&n?ef($c(e,t)+1,n):r.nextSibling}}}}return o}function ef(e,t){let n=t;for(let t=0;t<e;t++)ngDevMode&&Rp(n),n=n.nextSibling;return n}function tf(e){const t=[];for(let n=0;n<e.length;n+=2){const r=e[n],i=e[n+1];for(let e=0;e<i;e++)t.push(r===vc.FirstChild?"firstChild":"nextSibling")}return t.join(".")}function nf(e,t){if(e===t)return[];if(null==e.parentElement||null==t.parentElement)return null;if(e.parentElement===t.parentElement)return function(e,t){const n=[];let r=null;for(r=e;null!=r&&r!==t;r=r.nextSibling)n.push(vc.NextSibling);return null==r?null:n}(e,t);{const n=t.parentElement,r=nf(e,n),i=nf(n.firstChild,t);return r&&i?[...r,vc.FirstChild,...i]:null}}function rf(e,t,n){const r=nf(e,t);return null===r?null:function(e,t){const n=[e];for(const e of t){const t=n.length-1;if(t>0&&n[t-1]===e){const e=n[t]||1;n[t]=e+1}else n.push(e,"")}return n.join("")}(n,r)}let of=()=>null;function sf(e,t){const n=e[Wi];return t&&null!==n&&0!==n.length?n[0].data[Cc]===t?n.shift():(zp(e),null):null}function af(e,t){return of(e,t)}class uf{}class cf{}class lf{}class df{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${rt(e)}.`);return t.ngComponent=e,t}(e)}}class hf{static{this.NULL=new df}}class pf{}class ff{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function(){const e=ls(),t=qo(fs().index,e);return(Zi(t)?t:e)[Pi]}()}}class gf{static{this.ɵprov=At({token:gf,providedIn:"root",factory:()=>null})}}const mf={};function vf(e,t){if(null!==l())throw new je(-602,ngDevMode&&`${e.name}() cannot be called from within a reactive context.${t?` ${t}`:""}`)}const yf=new Set;function Ef(e){yf.has(e)||(yf.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function _f(...e){}class bf{constructor(e,t=console){this.name="asyncStackTagging for "+e,this.createTask=t?.createTask??(()=>null)}onScheduleTask(e,t,n,r){return r.consoleTask=this.createTask(`Zone - ${r.source||r.type}`),e.scheduleTask(n,r)}onInvokeTask(e,t,n,r,i,o){let s;return s=r.consoleTask?r.consoleTask.run((()=>e.invokeTask(n,r,i,o))):e.invokeTask(n,r,i,o),s}}class Sf{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new fu(!1),this.onMicrotaskEmpty=new fu(!1),this.onStable=new fu(!1),this.onError=new fu(!1),"undefined"==typeof Zone)throw new je(908,ngDevMode&&"In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,ngDevMode&&(r._inner=r._inner.fork(new bf("Angular"))),Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&t,r.shouldCoalesceRunChangeDetection=n,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){const e="function"==typeof Xe.requestAnimationFrame;let t=Xe[e?"requestAnimationFrame":"setTimeout"],n=Xe[e?"cancelAnimationFrame":"clearTimeout"];if("undefined"!=typeof Zone&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Xe,(()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(()=>{e.lastRequestAnimationFrameId=-1,wf(e),e.isCheckStableRunning=!0,If(e),e.isCheckStableRunning=!1}),void 0,(()=>{}),(()=>{}))),e.fakeTopEventTask.invoke()})),wf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,s,a)=>{if(function(e){return!!Array.isArray(e)&&(1===e.length&&!0===e[0].data?.__ignore_ng_zone__)}(a))return n.invokeTask(i,o,s,a);try{return Df(e),n.invokeTask(i,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&t(),Tf(e)}},onInvoke:(n,r,i,o,s,a,u)=>{try{return Df(e),n.invoke(i,o,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&t(),Tf(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,wf(e),If(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular((()=>e.onError.emit(i))),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Sf.isInAngularZone())throw new je(909,ngDevMode&&"Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Sf.isInAngularZone())throw new je(909,ngDevMode&&"Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,Cf,_f,_f);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}const Cf={};function If(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular((()=>e.onStable.emit(null)))}finally{e.isStable=!0}}}function wf(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Df(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tf(e){e._nesting--,If(e)}class Af{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new fu,this.onMicrotaskEmpty=new fu,this.onStable=new fu,this.onError=new fu}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}var Of;!function(e){e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read"}(Of||(Of={}));const Nf={destroy(){}};function Mf(e,t){const n=t?.injector??Dn(Qa);(t?.runOnServer||Td(n))&&n.get(Lf).internalCallbacks.push(e)}function Pf(e,t){ngDevMode&&vf(Pf,"Call `afterRender` outside of a reactive context. For example, schedule the render callback inside the component constructor`."),!t&&si(Pf);const n=t?.injector??Dn(Qa);if(!Td(n))return Nf;Ef("NgAfterRender");const r=n.get(Lf),i=r.handler??=new kf,o=t?.phase??Of.MixedReadWrite,s=()=>{i.unregister(u),a()},a=n.get(tu).onDestroy(s),u=ii(n,(()=>new Rf(o,e)));return i.register(u),{destroy:s}}function xf(e,t){!t&&si(xf);const n=t?.injector??Dn(Qa);if(!Td(n))return Nf;Ef("NgAfterNextRender");const r=n.get(Lf),i=r.handler??=new kf,o=t?.phase??Of.MixedReadWrite,s=()=>{i.unregister(u),a()},a=n.get(tu).onDestroy(s),u=ii(n,(()=>new Rf(o,(()=>{s(),e()}))));return i.register(u),{destroy:s}}class Rf{constructor(e,t){this.phase=e,this.callbackFn=t,this.zone=Dn(Sf),this.errorHandler=Dn(Xa,{optional:!0}),Dn(uf,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}}class kf{constructor(){this.executingCallbacks=!1,this.buckets={[Of.EarlyRead]:new Set,[Of.Write]:new Set,[Of.MixedReadWrite]:new Set,[Of.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(const e of Object.values(this.buckets))for(const t of e)t.invoke();this.executingCallbacks=!1;for(const e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(const e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}}class Lf{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const e=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const t of e)t()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.ɵprov=At({token:Lf,providedIn:"root",factory:()=>new Lf})}}function Ff(e){return void 0!==e.ngModule}function Uf(e){return!!Nr(e)}function jf(e){return!!Ar(e)}function Vf(e){return!!Tr(e)}function Bf(e){return!!Dr(e)}function $f(e,t){if(ct(e)&&!(e=ut(e)))throw new Error(`Expected forwardRef function, imported from "${sn(t)}", to return a standalone entity or NgModule but got "${sn(e)||e}".`);if(null==Nr(e)){const r=Dr(e)||Tr(e)||Ar(e);if(null==r)throw Ff(e)?new Error(`A module with providers was imported from "${sn(t)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${sn(e)}" type, imported from "${sn(t)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!r.standalone)throw new Error(`The "${sn(e)}" ${n=e,Dr(n)?"component":Tr(n)?"directive":Ar(n)?"pipe":"type"}, imported from "${sn(t)}", is not standalone. Did you forget to add the standalone: true flag?`)}var n}const Hf=!0;function Gf(e,t){for(const n of e)t.add(n)}const qf=new class{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const e of this.ngModulesWithSomeUnresolvedDecls){const t=Nr(e);if(t?.declarations)for(const n of Dd(t.declarations))Bf(n)&&this.ownerNgModule.set(n,e)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(e,t){this.resolveNgModulesDecls();const n=Dr(e);if(null===n)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${e}`);if(n.standalone){const n=this.getStandaloneComponentScope(e,t);return n.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...n.compilation.directives,...n.compilation.pipes,...n.compilation.ngModules]}}{if(!this.ownerNgModule.has(e))return{dependencies:[]};const t=this.getNgModuleScope(this.ownerNgModule.get(e));return t.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...t.compilation.directives,...t.compilation.pipes]}}}registerNgModule(e,t){if(!Uf(e))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${e}`);this.ngModulesWithSomeUnresolvedDecls.add(e)}clearScopeCacheFor(e){this.ngModulesScopeCache.delete(e),this.standaloneComponentsScopeCache.delete(e)}getNgModuleScope(e){if(this.ngModulesScopeCache.has(e))return this.ngModulesScopeCache.get(e);const t=this.computeNgModuleScope(e);return this.ngModulesScopeCache.set(e,t),t}computeNgModuleScope(e){const t=Nr(e,!0),n={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const e of Dd(t.imports))if(Uf(e)){const t=this.getNgModuleScope(e);Gf(t.exported.directives,n.compilation.directives),Gf(t.exported.pipes,n.compilation.pipes)}else{if(!Or(e)){n.compilation.isPoisoned=!0;break}if(Vf(e)||Bf(e))n.compilation.directives.add(e);else{if(!jf(e))throw new je(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");n.compilation.pipes.add(e)}}if(!n.compilation.isPoisoned)for(const e of Dd(t.declarations)){if(Uf(e)||Or(e)){n.compilation.isPoisoned=!0;break}jf(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}for(const e of Dd(t.exports))if(Uf(e)){const t=this.getNgModuleScope(e);Gf(t.exported.directives,n.exported.directives),Gf(t.exported.pipes,n.exported.pipes),Gf(t.exported.directives,n.compilation.directives),Gf(t.exported.pipes,n.compilation.pipes)}else jf(e)?n.exported.pipes.add(e):n.exported.directives.add(e);return n}getStandaloneComponentScope(e,t){if(this.standaloneComponentsScopeCache.has(e))return this.standaloneComponentsScopeCache.get(e);const n=this.computeStandaloneComponentScope(e,t);return this.standaloneComponentsScopeCache.set(e,n),n}computeStandaloneComponentScope(e,t){const n={compilation:{directives:new Set([e]),pipes:new Set,ngModules:new Set}};for(const r of Ln(t??[])){const t=ut(r);try{$f(t,e)}catch(e){return n.compilation.isPoisoned=!0,n}if(Uf(t)){n.compilation.ngModules.add(t);const e=this.getNgModuleScope(t);if(e.exported.isPoisoned)return n.compilation.isPoisoned=!0,n;Gf(e.exported.directives,n.compilation.directives),Gf(e.exported.pipes,n.compilation.pipes)}else if(jf(t))n.compilation.pipes.add(t);else{if(!Vf(t)&&!Bf(t))return n.compilation.isPoisoned=!0,n;n.compilation.directives.add(t)}}return n}isOrphanComponent(e){const t=Dr(e);return!(!t||t.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(e)))}};function zf(e,t,n){ngDevMode&&mo(ds(),"Expecting to be called in first template pass only");let r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(let e=0;e<t.length;e++){const n=t[e];"number"==typeof n?o=n:1==o?i=it(i,n):2==o&&(r=it(r,n+": "+t[++e]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}class Wf extends hf{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){ngDevMode&&function(e,t="Type passed in is not ComponentType, it does not have 'ɵcmp' property."){Dr(e)||Ct(t)}(e);const t=Dr(e);return new Qf(t,this.ngModule)}}function Kf(e){const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];void 0!==r&&t.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return t}class Yf{constructor(e,t){this.injector=e,this.parentInjector=t}get(e,t,n){n=Tn(n);const r=this.injector.get(e,mf,n);return r!==mf||t===mf?r:this.parentInjector.get(e,t,n)}}class Qf extends lf{get inputs(){const e=this.componentDef,t=e.inputTransforms,n=Kf(e.inputs);if(null!==t)for(const e of n)t.hasOwnProperty(e.propName)&&(e.transform=t[e.propName]);return n}get outputs(){return Kf(this.componentDef.outputs)}constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=yr(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}create(e,t,n,r){const i=c(null);try{if(ngDevMode&&("undefined"==typeof ngJitMode||ngJitMode)&&this.componentDef.debugInfo?.forbidOrphanRendering&&qf.isOrphanComponent(this.componentType))throw new je(1001,`Orphan component found! Trying to render the component ${function(e){let t=e[Jt]||null;return null!==t&&t.debugInfo?(n=t.debugInfo).filePath&&n.lineNumber?`${n.className} (at ${n.filePath}:${n.lineNumber})`:n.className:sn(e);var n}(this.componentType)} without first loading the NgModule that declares it. It is recommended to make this component standalone in order to avoid this error. If this is not possible now, import the component's NgModule in the appropriate NgModule, or the standalone component in which you are trying to render this component. If this is a lazy import, load the NgModule lazily as well and use its module injector.`);let i=(r=r||this.ngModule)instanceof Zr?r:r?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const o=i?new Yf(e,i):e,s=o.get(pf,null);if(null===s)throw new je(407,ngDevMode&&"Angular was not able to inject a renderer (RendererFactory2). Likely this is due to a broken DI hierarchy. Make sure that any injector used to create this component has a correct parent.");const a=o.get(gf,null),u={rendererFactory:s,sanitizer:a,inlineEffectRunner:null,afterRenderEventManager:o.get(Lf,null),changeDetectionScheduler:o.get(uf,null)},c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n,r){const i=r.get(zc,qc)||n===Xn.ShadowDom,o=e.selectRootElement(t,i);return function(e){Ph(e)}(o),o}(c,n,this.componentDef.encapsulation,o):Vd(c,l,function(e){const t=e.toLowerCase();return"svg"===t?Ro:"math"===t?ko:null}(l));let h=512;this.componentDef.signals?h|=4096:this.componentDef.onPush||(h|=16);let p=null;null!==d&&(p=Mc(d,o,!0));const f=Mh(0,null,null,1,0,null,null,null,null,null,null),g=Sh(null,f,null,h,null,null,u,c,o,null,p);let m,v;ks(g);try{const e=this.componentDef;let r,i=null;e.findHostDirectiveDefs?(r=[],i=new Map,e.findHostDirectiveDefs(e,r,i),r.push(e),ngDevMode&&So(r)):r=[e];const o=function(e,t,n,r,i,o,s){const a=i[Si];!function(e,t,n,r){for(const n of e)t.mergedAttrs=or(t.mergedAttrs,n.hostAttrs);null!==t.mergedAttrs&&(zf(t,t.mergedAttrs,!0),null!==n&&gh(r,n,t))}(r,e,t,s);let u=null;null!==t&&(u=Mc(t,i[Ni]));const c=o.rendererFactory.createRenderer(t,n);let l=16;n.signals?l=4096:n.onPush&&(l=64);const d=Sh(i,Nh(n),null,l,i[e.index],e,o,c,null,null,u);return a.firstCreatePass&&$h(a,e,r.length-1),Jh(i,d),i[e.index]=d}(function(e,t){const n=e[Si],r=qi;return ngDevMode&&wt(e,r),e[r]=t,Ch(n,r,2,"#host",null)}(g,d),d,e,r,g,u,c);v=Ho(f,qi),d&&function(e,t,n,r){if(r)nr(e,n,["ng-version","17.3.8"]);else{const{attrs:r,classes:i}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!hr(i))break;i=o}r++}return{attrs:t,classes:n}}(t.selectors[0]);r&&nr(e,n,r),i&&i.length>0&&fh(e,n,i.join(" "))}}(c,e,d,n),void 0!==t&&function(e,t,n){const r=e.projection=[];for(let e=0;e<t.length;e++){const t=n[e];r.push(null!=t?Array.from(t):null)}}(v,this.ngContentSelectors,t),m=function(e,t,n,r,i,o){const s=fs();ngDevMode&&St(s,"tNode should have been already created");const a=i[Si],u=$o(s,i);jh(a,i,s,n,null,r);for(let e=0;e<n.length;e++)Mu(Aa(i,a,s.directiveStart+e,s),i);Vh(a,i,s),u&&Mu(u,i),ngDevMode&&_t(s.componentOffset,-1,"componentOffset must be great than -1");const c=Aa(i,a,s.directiveStart+s.componentOffset,s);if(e[Oi]=i[Oi]=c,null!==o)for(const e of o)e(c,t);return Th(a,s,i),c}(o,e,r,i,g,[Zf]),ap(f,g,null)}finally{Vs()}return new Jf(this.componentType,m,lu(v,g),g,v)}finally{c(i)}}}class Jf extends cf{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new Dp(r,void 0,!1),this.componentType=e}setInput(e,t){const n=this._tNode.inputs;let r;if(null!==n&&(r=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),t))return;const n=this._rootLView;ip(n[Si],n,r,e,t),this.previousInputValues.set(e,t),wp(qo(this._tNode.index,n))}else if(ngDevMode){let t=`Can't set value of the '${e}' input on the '${sn(this.componentType)}' component. `;t+=`Make sure that the '${e}' property is annotated with @Input() or a mapped @Input('${e}') exists.`,md(t)}}get injector(){return new xa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}function Zf(){const e=fs();ngDevMode&&St(e,"TNode is required"),Js(ls()[Si],e)}class Xf{static{this.__NG_ELEMENT_ID__=eg}}function eg(){return og(fs(),ls())}const tg=Xf,ng=class extends tg{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=n}get element(){return lu(this._hostTNode,this._hostLView)}get injector(){return new xa(this._hostTNode,this._hostLView)}get parentInjector(){const e=_a(this._hostTNode,this._hostLView);if(ua(e)){const t=la(e,this._hostLView),n=ca(e);ngDevMode&&Co(t,n);const r=t[Si].data[n+8];return new xa(r,t)}return new xa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=rg(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-Qi}createEmbeddedView(e,t,n){let r,i;"number"==typeof n?r=n:null!=n&&(r=n.index,i=n.injector);const o=af(this._lContainer,e.ssrId),s=e.createEmbeddedViewImpl(t||{},i,o);return this.insertImpl(s,r,lp(this._hostTNode,o)),s}createComponent(e,t,n,r,i){const o=e&&!pi(e);let s;if(o)ngDevMode&&ft("object"!=typeof t,!0,"It looks like Component factory was provided as the first argument and an options object as the second argument. This combination of arguments is incompatible. You can either change the first argument to provide Component type or change the second argument to be a number (representing an index at which to insert the new component's host view into this container)"),s=t;else{ngDevMode&&(St(Dr(e),"Provided Component class doesn't contain Component definition. Please check whether provided class has @Component decorator."),ft("number"!=typeof t,!0,"It looks like Component type was provided as the first argument and a number (representing an index at which to insert the new component's host view into this container as the second argument. This combination of arguments is incompatible. Please use an object as the second argument instead."));const o=t||{};ngDevMode&&o.environmentInjector&&o.ngModuleRef&&Ct("Cannot pass both environmentInjector and ngModuleRef options to createComponent()."),s=o.index,n=o.injector,r=o.projectableNodes,i=o.environmentInjector||o.ngModuleRef}const a=o?e:new Qf(Dr(e)),u=n||this.parentInjector;if(!i&&null==a.ngModule){const e=(o?u:this.parentInjector).get(Zr,null);e&&(i=e)}const c=Dr(a.componentType??{}),l=af(this._lContainer,c?.id??null),d=l?.firstChild??null,h=a.create(u,r,d,i);return this.insertImpl(h.hostView,s,lp(this._hostTNode,l)),h}insert(e,t){return this.insertImpl(e,t,!0)}insertImpl(e,t,n){const r=e._lView;if(ngDevMode&&e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(Xi(r[Ii])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=r[Ii];ngDevMode&&ft(Xi(t),!0,"An attached view should have its PARENT point to a container.");const n=new ng(t,t[Di],t[Ii]);n.detach(n.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;return dp(o,r,i,n),e.attachToViewContainerRef(),Un(ig(o),i,e),e}move(e,t){if(ngDevMode&&e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=rg(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),n=Hd(this._lContainer,t);n&&(jn(ig(this._lContainer),t),Gd(n[Si],n))}detach(e){const t=this._adjustIndex(e,-1),n=Hd(this._lContainer,t);return n&&null!=jn(ig(this._lContainer),t)?new Dp(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:(ngDevMode&&(_t(e,-1,`ViewRef index must be positive, got ${e}`),yt(e,this.length+1+t,"index")),e)}};function rg(e){return e[8]}function ig(e){return e[8]||(e[8]=[])}function og(e,t){let n;ngDevMode&&aa(e,15);const r=t[e.index];return Xi(r)?n=r:(n=Yh(r,t,null,e),t[e.index]=n,Jh(t,n)),sg(n,t,e,r),new ng(n,e,t)}let sg=cg,ag=()=>!1;function ug(e,t,n){return ag(e,t,n)}function cg(e,t,n,r){if(e[Ki])return;let i;i=8&n.type?jo(r):function(e,t){const n=e[Pi];ngDevMode&&ngDevMode.rendererCreateComment++;const r=n.createComment(ngDevMode?"container":""),i=$o(t,e);return Qd(n,Xd(n,i),r,function(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[Ki]=i}function lg(e,t,n){if(e[Ki]&&e[Wi])return!0;const r=n[Ti],i=t.index-qi;if(!r||Su(t)||Hc(r,i))return!1;const o=Vc(r,i),s=r.data[_c]?.[i];ngDevMode&&St(s,"Unexpected state: no hydration info available for a given TNode, which represents a view container.");const[a,u]=function(e,t){const n=[];for(const r of t)for(let t=0;t<(r[bc]??1);t++){const t={data:r,firstChild:null};r[Sc]>0&&(t.firstChild=e,e=ef(r[Sc],e)),n.push(t)}return[e,n]}(o,s);return ngDevMode&&(xp(a,Node.COMMENT_NODE,null,n,t,!0),Fc(a,!1)),e[Ki]=a,e[Wi]=u,!0}function dg(e,t,n,r){ag(e,n,t)||cg(e,t,n,r)}class hg{constructor(e){this.queryList=e,this.matches=null}clone(){return new hg(this.queryList)}setDirty(){this.queryList.setDirty()}}class pg{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e),i=this.queries[n.indexInDeclarationView];r.push(i.clone())}return new pg(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==Dg(e,t).matches&&this.queries[t].setDirty()}}class fg{constructor(e,t,n=null){this.flags=t,this.read=n,this.predicate="string"==typeof e?e.split(",").map((e=>e.trim())):e}}class gg{constructor(e=[]){this.queries=e}elementStart(e,t){ngDevMode&&mo(e,"Queries should collect results on the first template pass only");for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const r=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,r);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new gg(t):null}template(e,t){ngDevMode&&mo(e,"Queries should collect results on the first template pass only");for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return ngDevMode&&wt(this.queries,e),this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class mg{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new mg(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1&~this.metadata.flags){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(e,t,vg(t,i)),this.matchTNodeWithReadOption(e,t,Ta(t,e,i,!1,!1))}else n===Tp?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Ta(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===du||r===Xf||r===Tp&&4&t.type)this.addMatch(t.index,-2);else{const n=Ta(t,e,r,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function vg(e,t){const n=e.localNames;if(null!==n)for(let e=0;e<n.length;e+=2)if(n[e]===t)return n[e+1];return null}function yg(e,t,n,r){return-1===n?function(e,t){return 11&e.type?lu(e,t):4&e.type?Mp(e,t):null}(t,e):-2===n?function(e,t,n){return n===du?lu(t,e):n===Tp?Mp(t,e):n===Xf?(ngDevMode&&aa(t,15),og(t,e)):void(ngDevMode&&Ct(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${rt(n)}.`))}(e,t,r):Aa(e,e[Si],n,t)}function Eg(e,t,n,r){const i=t[ji].queries[r];if(null===i.matches){const r=e.data,o=n.matches,s=[];for(let e=0;null!==o&&e<o.length;e+=2){const i=o[e];if(i<0)s.push(null);else{ngDevMode&&wt(r,i);const a=r[i];s.push(yg(t,a,o[e+1],n.metadata.read))}}i.matches=s}return i.matches}function _g(e,t,n,r){const i=e.queries.getByIndex(n),o=i.matches;if(null!==o){const s=Eg(e,t,i,n);for(let e=0;e<o.length;e+=2){const n=o[e];if(n>0)r.push(s[e/2]);else{const i=o[e+1],s=t[-n];ngDevMode&&po(s);for(let e=Qi;e<s.length;e++){const t=s[e];t[Fi]===t[Ii]&&_g(t[Si],t,i,r)}if(null!==s[Yi]){const e=s[Yi];for(let t=0;t<e.length;t++){const n=e[t];_g(n[Si],n,i,r)}}}}}return r}function bg(e,t){return ngDevMode&&St(e[ji],"LQueries should be defined when trying to load a query"),ngDevMode&&wt(e[ji].queries,t),e[ji].queries[t].queryList}function Sg(e,t,n){const r=new mu(!(4&~n));return function(e,t,n,r){const i=ep(t);ngDevMode&&St(n,"Cleanup context is mandatory when registering framework-level destroy hooks"),i.push(n),e.firstCreatePass?tp(e).push(r,i.length-1):ngDevMode&&Object.freeze(tp(e))}(e,t,r,r.destroy),(t[ji]??=new pg).queries.push(new hg(r))-1}function Cg(e,t,n){ngDevMode&<(t,"Expecting flags");const r=ds();return r.firstCreatePass&&(wg(r,new fg(e,t,n),-1),2&~t||(r.staticViewQueries=!0)),Sg(r,ls(),t)}function Ig(e,t,n,r){ngDevMode&<(n,"Expecting flags");const i=ds();if(i.firstCreatePass){const o=fs();wg(i,new fg(t,n,r),o.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2&~n||(i.staticContentQueries=!0)}return Sg(i,ls(),n)}function wg(e,t,n){null===e.queries&&(e.queries=new gg),e.queries.track(new mg(t,n))}function Dg(e,t){return ngDevMode&&St(e.queries,"TQueries must be defined to retrieve a TQuery"),e.queries.getByIndex(t)}function Tg(e,t){const n=e[Si],r=Dg(n,t);return r.crossesNgTemplate?_g(n,e,t,[]):Eg(n,e,r,t)}function Ag(e){return"function"==typeof e&&void 0!==e[u]}function Og(e){return null}function Ng(e,t){Ef("NgSignals");const n=function(e){const t=Object.create(k);t.value=e;const n=()=>(h(t),t.value);return n[u]=t,n}(e),r=n[u];return t?.equal&&(r.equal=t.equal),n.set=e=>R(r,e),n.update=e=>function(e,t){g()||P(),R(e,t(e.value))}(r,e),n.asReadonly=Mg.bind(n),ngDevMode&&(n.toString=()=>`[Signal: ${n()}]`),n}function Mg(){const e=this[u];if(void 0===e.readonlyFn){const t=()=>this();t[u]=e,e.readonlyFn=t}return e.readonlyFn}function Pg(e){return Ag(e)&&"function"==typeof e.set}function xg(e,t){let n;const r=D((()=>{n._dirtyCounter();const r=function(e,t){const n=e._lView,r=e._queryIndex;if(void 0===n||void 0===r||4&n[Ci])return t?void 0:Wn;const i=bg(n,r),o=Tg(n,r);return i.reset(o,hu),t?i.first:i._changesDetected||void 0===e._flatValue?e._flatValue=i.toArray():e._flatValue}(n,e);if(t&&void 0===r)throw new je(-951,ngDevMode&&"Child query result is required but no value is available.");return r}));return n=r[u],n._dirtyCounter=Ng(0),n._flatValue=void 0,ngDevMode&&(r.toString=()=>"[Query Signal]"),r}function Rg(){return xg(!0,!1)}function kg(){return xg(!0,!0)}function Lg(){return xg(!1,!1)}function Fg(e,t){const n=e[u];n._lView=ls(),n._queryIndex=t,n._queryList=bg(n._lView,t),n._queryList.onDirty((()=>n._dirtyCounter.update((e=>e+1))))}function Ug(e,t){return ngDevMode&&si(jg),Rg()}const jg=(Ug.required=function(e,t){return ngDevMode&&si(jg),kg()},Ug);function Vg(e,t){return ngDevMode&&si(Vg),Lg()}function Bg(e,t){return ngDevMode&&si($g),Rg()}const $g=(Bg.required=function(e,t){return ngDevMode&&si(Hg),kg()},Bg);function Hg(e,t){return Lg()}function Gg(e){const t=Object.create($e),n=new iu;function r(){return h(t),qg(t.value),t.value}return t.value=e,r[u]=t,r.asReadonly=Mg.bind(r),r.set=e=>{t.equal(t.value,e)||(R(t,e),n.emit(e))},r.update=e=>{qg(t.value),r.set(e(t.value))},r.subscribe=n.subscribe.bind(n),r.destroyRef=n.destroyRef,ngDevMode&&(r.toString=()=>`[Model Signal: ${r()}]`),r}function qg(e){if(e===Be)throw new je(-952,ngDevMode&&"Model is required but no value is available yet.")}function zg(e){return ngDevMode&&si(Wg),Gg(e)}const Wg=(zg.required=function(){return ngDevMode&&si(Wg),Gg(Be)},zg),Kg=!0;class Yg{}const Qg=Ze("ContentChildren",((e,t={})=>({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:Kg,...t})),Yg),Jg=Ze("ContentChild",((e,t={})=>({selector:e,first:!0,isViewQuery:!1,descendants:!0,...t})),Yg),Zg=Ze("ViewChildren",((e,t={})=>({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:Kg,...t})),Yg),Xg=Ze("ViewChild",((e,t)=>({selector:e,first:!0,isViewQuery:!0,descendants:!0,...t})),Yg);function em(e){const t=[],n=new Map;function r(t){let r=n.get(t);if(!r){const i=e(t);n.set(t,r=i.then(am))}return r}return tm.forEach(((e,n)=>{const i=[];e.templateUrl&&i.push(r(e.templateUrl).then((t=>{e.template=t})));const o="string"==typeof e.styles?[e.styles]:e.styles||[];if(e.styles=o,e.styleUrl&&e.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(e.styleUrls?.length){const t=e.styles.length,n=e.styleUrls;e.styleUrls.forEach(((s,a)=>{o.push(""),i.push(r(s).then((r=>{o[t+a]=r,n.splice(n.indexOf(s),1),0==n.length&&(e.styleUrls=void 0)})))}))}else e.styleUrl&&i.push(r(e.styleUrl).then((t=>{o.push(t),e.styleUrl=void 0})));const s=Promise.all(i).then((()=>function(e){nm.delete(e)}(n)));t.push(s)})),om(),Promise.all(t).then((()=>{}))}let tm=new Map;const nm=new Set;function rm(e){return nm.has(e)}function im(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length||e.styleUrl)}function om(){const e=tm;return tm=new Map,e}function sm(e){nm.clear(),e.forEach(((e,t)=>nm.add(t))),tm=e}function am(e){return"string"==typeof e?e:e.text()}const um=new Map;let cm=!0;function lm(e,t){!function(e,t,n){if(t&&t!==n&&cm)throw new Error(`Duplicate module registered for ${e} - ${rt(t)} vs ${rt(t.name)}`)}(t,um.get(t)||null,e),um.set(t,e)}function dm(e){return um.get(e)}function hm(e){cm=!e}function pm(e,t,n){const r=ls(),i=Hs(),o=$o(i,r);if(2===i.type&&"iframe"===t.toLowerCase()){const e=o;e.src="",e.srcdoc=Jc(""),ch(r[Pi],e);const t=ngDevMode&&`Angular has detected that the \`${n}\` was applied as a binding to an <iframe>${Ed(r)}. For security reasons, the \`${n}\` can be set on an <iframe> as a static attribute only. \nTo fix this, switch the \`${n}\` binding to a static attribute in a template or in host bindings section.`;throw new je(-910,t)}return e}function fm(e){return Object.getPrototypeOf(e.prototype).constructor}function gm(e){let t=fm(e.type),n=!0;const r=[e];for(;t;){let i;if(ro(e))i=t.ɵcmp||t.ɵdir;else{if(t.ɵcmp)throw new je(903,ngDevMode&&`Directives cannot inherit Components. Directive ${sn(e.type)} is attempting to extend component ${sn(t)}`);i=t.ɵdir}if(i){if(n){r.push(i);const t=e;t.inputs=vm(e.inputs),t.inputTransforms=vm(e.inputTransforms),t.declaredInputs=vm(e.declaredInputs),t.outputs=vm(e.outputs);const n=i.hostBindings;n&&_m(e,n);const o=i.viewQuery,s=i.contentQueries;if(o&&ym(e,o),s&&Em(e,s),mm(e,i),nt(e.outputs,i.outputs),ro(i)&&i.data.animation){const t=e.data;t.animation=(t.animation||[]).concat(i.data.animation)}}const t=i.features;if(t)for(let r=0;r<t.length;r++){const i=t[r];i&&i.ngInherit&&i(e),i===gm&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=or(i.hostAttrs,n=or(n,i.hostAttrs))}}(r)}function mm(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n))continue;if(e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const n=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(n))continue;e.inputTransforms??={},e.inputTransforms[n]=t.inputTransforms[n]}}}function vm(e){return e===zn?{}:e===Wn?[]:e}function ym(e,t){const n=e.viewQuery;e.viewQuery=n?(e,r)=>{t(e,r),n(e,r)}:t}function Em(e,t){const n=e.contentQueries;e.contentQueries=n?(e,r,i)=>{t(e,r,i),n(e,r,i)}:t}function _m(e,t){const n=e.hostBindings;e.hostBindings=n?(e,r)=>{t(e,r),n(e,r)}:t}const bm=["providersResolver"],Sm=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Cm(e){let t,n=fm(e.type);t=ro(e)?n.ɵcmp:n.ɵdir;const r=e;for(const e of bm)r[e]=t[e];if(ro(t))for(const e of Sm)r[e]=t[e]}function Im(e){const t=t=>{const n=(Array.isArray(e)?e:e()).map((e=>"function"==typeof e?{directive:ut(e),inputs:zn,outputs:zn}:{directive:ut(e.directive),inputs:Dm(e.inputs),outputs:Dm(e.outputs)}));null===t.hostDirectives?(t.findHostDirectiveDefs=wm,t.hostDirectives=n):t.hostDirectives.unshift(...n)};return t.ngInherit=!0,t}function wm(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives){const e=Tr(r.directive);("undefined"==typeof ngDevMode||ngDevMode)&&Am(r,e),Tm(e.declaredInputs,r.inputs),wm(e,t,n),n.set(e,r),t.push(e)}}function Dm(e){if(void 0===e||0===e.length)return zn;const t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function Tm(e,t){for(const n in t)if(t.hasOwnProperty(n)){const r=t[n],i=e[n];("undefined"==typeof ngDevMode||ngDevMode)&&e.hasOwnProperty(r)&&ft(e[r],e[n],`Conflicting host directive input alias ${n}.`),e[r]=i}}function Am(e,t){const n=e.directive;if(null===t){if(null!==Dr(n))throw new je(310,`Host directive ${n.name} cannot be a component.`);throw new je(307,`Could not resolve metadata for host directive ${n.name}. Make sure that the ${n.name} class is annotated with an @Directive decorator.`)}if(!t.standalone)throw new je(308,`Host directive ${t.type.name} must be standalone.`);Om("input",t,e.inputs),Om("output",t,e.outputs)}function Om(e,t,n){const r=t.type.name,i="input"===e?t.inputs:t.outputs;for(const t in n)if(n.hasOwnProperty(t)){if(!i.hasOwnProperty(t))throw new je(311,`Directive ${r} does not have an ${e} with a public name of ${t}.`);const o=n[t];if(i.hasOwnProperty(o)&&o!==t)throw new je(312,`Cannot alias ${e} ${t} of host directive ${r} to ${o}, because it already has a different ${e} with the same public name.`)}}function Nm(e){const t=e.inputConfig,n={};for(const e in t)if(t.hasOwnProperty(e)){const r=t[e];Array.isArray(r)&&r[3]&&(n[e]=r[3])}e.inputTransforms=n}class Mm{}class Pm{}function xm(e,t){return new km(e,t??null,[])}const Rm=xm;class km extends Mm{constructor(e,t,n){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Wf(this);const r=Nr(e);ngDevMode&&St(r,`NgModule '${rt(e)}' is not a subtype of 'NgModuleType'.`),this._bootstrapComponents=Dd(r.bootstrap),this._r3Injector=Ya(e,t,[{provide:Mm,useValue:this},{provide:hf,useValue:this.componentFactoryResolver},...n],rt(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){ngDevMode&&St(this.destroyCbs,"NgModule already destroyed");const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((e=>e())),this.destroyCbs=null}onDestroy(e){ngDevMode&&St(this.destroyCbs,"NgModule already destroyed"),this.destroyCbs.push(e)}}class Lm extends Pm{constructor(e){super(),this.moduleType=e}create(e){return new km(this.moduleType,e,[])}}class Fm extends Mm{constructor(e){super(),this.componentFactoryResolver=new Wf(this),this.instance=null;const t=new Xr([...e.providers,{provide:Mm,useValue:this},{provide:hf,useValue:this.componentFactoryResolver}],e.parent||Jr(),e.debugName,new Set(["environment"]));this.injector=t,e.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}}function Um(e,t,n=null){return new Fm({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}class jm{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(e,t,n,r){if(!this.cachedInjectors.has(e)){const i=n.length>0?Um(n,t,r):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.ɵprov=At({token:jm,providedIn:"environment",factory:()=>new jm})}}const Vm="__ngAsyncComponentMetadataFn__";function Bm(e){return e[Vm]??null}function $m(e,t,n){const r=e;return r[Vm]=()=>Promise.all(t()).then((e=>(n(...e),r[Vm]=null,e))),r[Vm]}function Hm(e,t,n,r){return qe((()=>{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?i.propDecorators={...i.propDecorators,...r}:i.propDecorators=r)}))}class Gm{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ce(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const e=this.taskId++;return this.pendingTasks.add(e),e}remove(e){this.pendingTasks.delete(e),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.ɵfac=function(e){return new(e||Gm)}}static{this.ɵprov=At({token:Gm,factory:Gm.ɵfac,providedIn:"root"})}}function qm(e){return!!zm(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function zm(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Wm(e,t){const n=qm(e),r=qm(t);return n&&r?function(e,t,n){const r=e[Symbol.iterator](),i=t[Symbol.iterator]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Wm):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function Km(e,t,n){return e[t]=n}function Ym(e,t){return ngDevMode&&wt(e,t),ngDevMode&&vt(e[t],mh,"Stored value should never be NO_CHANGE."),e[t]}function Qm(e,t,n){ngDevMode&&vt(n,mh,"Incoming value should never be NO_CHANGE."),ngDevMode&&yt(t,e.length,"Slot should have been initialized to NO_CHANGE");const r=e[t];if(Object.is(r,n))return!1;if(ngDevMode&&_s()){const i=r!==mh?r:void 0;if(!Wm(i,n)){const o=function(e,t,n,r){const i=e[Si].data,o=i[t];if("string"==typeof o)return o.indexOf(wd)>-1?Pd(e,t,t,o,r):{propName:o,oldValue:n,newValue:r};if(null===o){let n=t-1;for(;"string"!=typeof i[n]&&null===i[n+1];)n--;const o=i[n];if("string"==typeof o){const i=o.match(new RegExp(wd,"g"));if(i&&i.length-1>t-n)return Pd(e,n,t,o,r)}}return{propName:void 0,oldValue:n,newValue:r}}(e,t,i,n);!function(e,t,n,r,i){const o=vd(i),s=o?.type?.name;let a=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${r?` for '${r}'`:""}: '${Md(t)}'. Current value: '${Md(n)}'.${s?` Expression location: ${s} component`:""}`;throw e&&(a+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook?"),new je(-100,a)}(r===mh,o.oldValue,o.newValue,o.propName,e)}return!1}return e[t]=n,!0}function Jm(e,t,n,r){const i=Qm(e,t,n);return Qm(e,t+1,r)||i}function Zm(e,t,n,r,i){const o=Jm(e,t,n,r);return Qm(e,t+2,i)||o}function Xm(e,t,n,r,i,o){const s=Jm(e,t,n,r);return Jm(e,t+2,i,o)||s}function ev(e){return!(32&~e.flags)}function tv(e,t,n,r,i,o,s,a){const u=ls(),c=ds(),l=e+qi,d=c.firstCreatePass?function(e,t,n,r,i,o,s,a,u){ngDevMode&&mo(t),ngDevMode&&ngDevMode.firstCreatePass++;const c=t.consts,l=Ch(t,e,4,s||null,Ko(c,a));Uh(t,n,l,Ko(c,u)),Js(t,l);const d=l.tView=Mh(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return null!==t.queries&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}(l,c,u,t,n,r,i,o,s):c.data[l];vs(d,!1);const h=nv(c,u,d,e);Ys()&&oh(c,u,h,d),Mu(h,u);const p=Yh(h,u,h,d);return u[l]=p,Jh(u,p),ug(p,d,u),no(d)&&Ah(c,u,d),null!=s&&Oh(u,d,a),tv}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(Gm,[{type:Wa,args:[{providedIn:"root"}]}],null,null);let nv=rv;function rv(e,t,n,r){return Qs(!0),t[Pi].createComment(ngDevMode?"container":"")}function iv(e,t,n,r){const i=t[Ti],o=!i||as()||ev(n)||Hc(i,r);if(Qs(o),o)return rv(0,t);const s=i.data[Ec]?.[r]??null;null!==s&&null!==n.tView&&(null===n.tView.ssrId?n.tView.ssrId=s:ngDevMode&&ft(n.tView.ssrId,s,"Unexpected value of the `ssrId` for this TView"));const a=Xp(i,e,t,n);ngDevMode&&kp(a,t,n),jc(i,r,a);const u=ef($c(i,r),a);return ngDevMode&&(xp(u,Node.COMMENT_NODE,null,t,n),Fc(u)),u}var ov;!function(e){e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED"}(ov||(ov={}));const sv=0,av=1;var uv,cv;!function(e){e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error"}(uv||(uv={})),function(e){e[e.Initial=-1]="Initial"}(cv||(cv={}));const lv=0,dv=1,hv=2,pv=3,fv=4,gv=5;var mv;function vv(e,t,n){const r=1===e?gv:fv;null===t[r]&&(t[r]=[]),t[r].push(n)}function yv(e,t){const n=1===e?gv:fv,r=t[n];if(null!==r){for(const e of r)e();t[n]=null}}function Ev(e){yv(1,e),yv(0,e)}function _v(e){return e+1}function bv(e,t){const n=e[Si],r=_v(t.index);return ngDevMode&&yo(n,r),e[r]}function Sv(e,t){const n=_v(t.index);return ngDevMode&&yo(e,n),e.data[n]}function Cv(e,t){return t===uv.Placeholder?e.placeholderBlockConfig?.[sv]??null:t===uv.Loading?e.loadingBlockConfig?.[sv]??null:null}function Iv(e){return e.loadingBlockConfig?.[av]??null}function wv(e,t){if(!e||0===e.length)return t;const n=new Set(e);for(const e of t)n.add(e);return e.length===n.size?e:Array.from(n)}function Dv(e){ft(e.loadingState,ov.COMPLETE,"Expecting all deferred dependencies to be loaded.")}!function(e){e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough"}(mv||(mv={}));const Tv={passive:!0,capture:!0},Av=new WeakMap,Ov=new WeakMap,Nv=new WeakMap,Mv=["click","keydown"],Pv=["mouseenter","focusin"];let xv=null,Rv=0;class kv{constructor(){this.callbacks=new Set,this.listener=()=>{for(const e of this.callbacks)e()}}}function Lv(e,t){let n=Ov.get(e);if(!n){n=new kv,Ov.set(e,n);for(const t of Mv)e.addEventListener(t,n.listener,Tv)}return n.callbacks.add(t),()=>{const{callbacks:r,listener:i}=n;if(r.delete(t),0===r.size){Ov.delete(e);for(const t of Mv)e.removeEventListener(t,i,Tv)}}}function Fv(e,t){let n=Av.get(e);if(!n){n=new kv,Av.set(e,n);for(const t of Pv)e.addEventListener(t,n.listener,Tv)}return n.callbacks.add(t),()=>{const{callbacks:r,listener:i}=n;if(r.delete(t),0===r.size){for(const t of Pv)e.removeEventListener(t,i,Tv);Av.delete(e)}}}function Uv(e,t,n){const r=n.get(Sf);let i=Nv.get(e);return xv=xv||r.runOutsideAngular((()=>new IntersectionObserver((e=>{for(const t of e)t.isIntersecting&&Nv.has(t.target)&&r.run(Nv.get(t.target).listener)})))),i||(i=new kv,r.runOutsideAngular((()=>xv.observe(e))),Nv.set(e,i),Rv++),i.callbacks.add(t),()=>{Nv.has(e)&&(i.callbacks.delete(t),0===i.callbacks.size&&(xv?.unobserve(e),Nv.delete(e),Rv--),0===Rv&&(xv?.disconnect(),xv=null))}}function jv(e,t,n,r,i,o,s){const a=e[Ni];Mf((function u(){if(so(e))return;const c=bv(e,t),l=c[dv];if(l!==cv.Initial&&l!==uv.Placeholder)return;const d=function(e,t,n){if(null==n)return e;if(n>=0)return Jo(n,e);const r=e[t.index];ngDevMode&&po(r);const i=r[Qi]??null;return ngDevMode&&null!==i&&(ft(bv(e,t)[dv],uv.Placeholder,"Expected a placeholder to be rendered in this defer block."),go(i)),i}(e,t,r);if(!d)return void Mf(u,{injector:a});if(so(d))return;const h=function(e,t){const n=Bo(qi+t,e);var r;return ngDevMode&&((r=n)instanceof Element||Ct(`The provided value must be an element but got ${rt(r)}`)),n}(d,n),p=i(h,(()=>{e!==d&&ns(d,p),o()}),a);e!==d&&ts(d,p),vv(s,c,p)}),{injector:a})}function Vv(e,t){const n=t[Ni].get(Bv);return n.add(e),()=>n.remove(e)}class Bv{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=Dn(Sf),this.requestIdleCallbackFn=("undefined"!=typeof requestIdleCallback?requestIdleCallback:setTimeout).bind(globalThis),this.cancelIdleCallbackFn=("undefined"!=typeof requestIdleCallback?cancelIdleCallback:clearTimeout).bind(globalThis)}add(e){(this.executingCallbacks?this.deferred:this.current).add(e),null===this.idleId&&this.scheduleIdleCallback()}remove(e){const{current:t,deferred:n}=this;t.delete(e),n.delete(e),0===t.size&&0===n.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const e=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const e of this.current)e();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const e of this.deferred)this.current.add(e);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn((()=>this.ngZone.run(e)))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static{this.ɵprov=At({token:Bv,providedIn:"root",factory:()=>new Bv})}}function $v(e){return(t,n)=>Hv(e,t,n)}function Hv(e,t,n){const r=n[Ni].get(Gv);return r.add(e,t),()=>r.remove(t)}class Gv{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(e,t){const n=this.executingCallbacks?this.deferred:this.current;this.addToQueue(n,Date.now()+e,t),this.scheduleTimer()}remove(e){const{current:t,deferred:n}=this;-1===this.removeFromQueue(t,e)&&this.removeFromQueue(n,e),0===t.length&&0===n.length&&this.clearTimeout()}addToQueue(e,t,n){let r=e.length;for(let n=0;n<e.length;n+=2)if(e[n]>t){r=n;break}$n(e,r,t,n)}removeFromQueue(e,t){let n=-1;for(let r=0;r<e.length;r+=2)if(e[r+1]===t){n=r;break}return n>-1&&Bn(e,n,2),n}scheduleTimer(){const e=()=>{this.clearTimeout(),this.executingCallbacks=!0;const e=[...this.current],t=Date.now();for(let n=0;n<e.length;n+=2){const r=e[n+1];if(!(e[n]<=t))break;r()}let n=-1;for(let e=0;e<this.current.length&&this.current[e]<=t;e+=2)n=e+1;if(n>=0&&Bn(this.current,0,n+1),this.executingCallbacks=!1,this.deferred.length>0){for(let e=0;e<this.deferred.length;e+=2){const t=this.deferred[e],n=this.deferred[e+1];this.addToQueue(this.current,t,n)}this.deferred.length=0}this.scheduleTimer()};if(this.current.length>0){const t=Date.now(),n=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-n>16){this.clearTimeout();const r=Math.max(n-t,16);this.invokeTimerAt=n,this.timeoutId=setTimeout(e,r)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static{this.ɵprov=At({token:Gv,providedIn:"root",factory:()=>new Gv})}}const qv=new jt("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),zv=new jt(ngDevMode?"DEFER_BLOCK_CONFIG":"");function Wv(e){const t=e.get(zv,null,{optional:!0});return t?.behavior!==mv.Manual&&Td(e)}let Kv=null;function Yv(e,t,n,r){const i=e.consts;null!=n&&(t.placeholderBlockConfig=Ko(i,n)),null!=r&&(t.loadingBlockConfig=Ko(i,r)),null===Kv&&(Kv=gy)}function Qv(e,t,n,r,i,o,s,a,u){const c=ls(),l=ds(),d=e+qi;if(tv(e,null,0,0),l.firstCreatePass){Ef("NgDefer");const e={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:i??null,errorTmplIndex:o??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:ov.NOT_STARTED,loadingPromise:null,providers:null};u?.(l,e,a,s),function(e,t,n){const r=_v(t);ngDevMode&&yo(e,r),e.data[r]=n}(l,d,e)}const h=fs();ug(c[d],h,c);const p=[null,cv.Initial,null,null,null,null];!function(e,t,n){const r=e[Si],i=_v(t);ngDevMode&&yo(r,i),e[i]=n}(c,d,p);const f=()=>Ev(p);vv(0,p,(()=>ns(c,f))),ts(c,f)}function Jv(e){const t=ls();if(Qm(t,ws(),e)){const n=c(null);try{const n=Boolean(e),r=Hs(),i=bv(t,r)[dv];!1===n&&i===cv.Initial?_y(t,r):!0!==n||i!==cv.Initial&&i!==uv.Placeholder||Sy(t,r)}finally{c(n)}}}function Zv(e){const t=ls();if(Qm(t,ws(),e)){const n=c(null);try{const n=Boolean(e),r=t[Si],i=Hs(),o=Sv(r,i);!0===n&&o.loadingState===ov.NOT_STARTED&&yy(o,t,i)}finally{c(n)}}}function Xv(){dy(Vv)}function ey(){hy(Vv)}function ty(){const e=ls(),t=fs(),n=e[Si],r=e[Ni],i=Sv(n,t);Wv(r)&&null!==i.loadingTmplIndex||_y(e,t),Sy(e,t)}function ny(){const e=ls(),t=fs(),n=Sv(e[Si],t);n.loadingState===ov.NOT_STARTED&&Ey(n,e,t)}function ry(e){dy($v(e))}function iy(e){hy($v(e))}function oy(e,t){const n=ls(),r=fs();_y(n,r),jv(n,r,e,t,Fv,(()=>Sy(n,r)),0)}function sy(e,t){const n=ls(),r=fs(),i=Sv(n[Si],r);i.loadingState===ov.NOT_STARTED&&jv(n,r,e,t,Fv,(()=>yy(i,n,r)),1)}function ay(e,t){const n=ls(),r=fs();_y(n,r),jv(n,r,e,t,Lv,(()=>Sy(n,r)),0)}function uy(e,t){const n=ls(),r=fs(),i=Sv(n[Si],r);i.loadingState===ov.NOT_STARTED&&jv(n,r,e,t,Lv,(()=>yy(i,n,r)),1)}function cy(e,t){const n=ls(),r=fs();_y(n,r),jv(n,r,e,t,Uv,(()=>Sy(n,r)),0)}function ly(e,t){const n=ls(),r=fs(),i=Sv(n[Si],r);i.loadingState===ov.NOT_STARTED&&jv(n,r,e,t,Uv,(()=>yy(i,n,r)),1)}function dy(e){const t=ls(),n=fs();if(_y(t,n),Td(t[Ni])){const r=e((()=>Sy(t,n)),t);vv(0,bv(t,n),r)}}function hy(e){const t=ls();if(Td(t[Ni])){const n=fs(),r=Sv(t[Si],n);r.loadingState===ov.NOT_STARTED&&vv(1,bv(t,n),e((()=>yy(r,t,n)),t))}}function py(e,t,n,r=!1){const i=n[Ii],o=i[Si];if(so(i))return;ngDevMode&&ao(t,i);const s=bv(i,t);if(ngDevMode&&St(s,"Expected a defer block state defined"),vy(s[dv],e)&&vy(s[lv]??-1,e)){const a=i[Ni],u=Sv(o,t),c=!r&&Td(a)&&(null!==Iv(u)||null!==Cv(u,uv.Loading)||Cv(u,uv.Placeholder));ngDevMode&&c&&St(Kv,"Expected scheduling function to be defined");const l=c?Kv:fy;try{l(e,s,n,t,i)}catch(e){rp(i,e)}}}function fy(e,t,n,r,i){const o=function(e,t,n){const r=Sv(t[Si],n);switch(e){case uv.Complete:return r.primaryTmplIndex;case uv.Loading:return r.loadingTmplIndex;case uv.Error:return r.errorTmplIndex;case uv.Placeholder:return r.placeholderTmplIndex;default:return ngDevMode&&Ct(`Unexpected defer block state: ${e}`),null}}(e,i,r);if(null!==o){t[dv]=e;const a=i[Si],u=Ho(a,o+qi),c=0;let l;if(hp(n,c),e===uv.Complete){const e=Sv(a,r),t=e.providers;if(t&&t.length>0){const n=i[Ni],r=(s=n)instanceof Yf&&"function"==typeof s.injector.__ngOutletInjector,o=r?n:n.get(Zr);l=o.get(jm).getOrCreateInjector(e,o,t,ngDevMode?"DeferBlock Injector":""),r&&(l=function(e,t){return e.injector.__ngOutletInjector(t)}(n,l))}}const d=af(n,u.tView.ssrId),h=up(i,u,null,{dehydratedView:d,injector:l});dp(n,h,c,lp(u,d)),wp(h)}var s}function gy(e,t,n,r,i){const o=Date.now(),s=Sv(i[Si],r);if(null===t[hv]||t[hv]<=o){t[hv]=null;const a=Iv(s),u=null!==t[pv];if(e!==uv.Loading||null===a||u){e>uv.Loading&&u&&(t[pv](),t[pv]=null,t[lv]=null),fy(e,t,n,r,i);const a=Cv(s,e);null!==a&&(t[hv]=o+a,my(a,t,r,n,i))}else{t[lv]=e;const o=my(a,t,r,n,i);t[pv]=o}}else t[lv]=e}function my(e,t,n,r,i){return Hv(e,(()=>{const e=t[lv];t[hv]=null,t[lv]=null,null!==e&&py(e,n,r)}),i)}function vy(e,t){return e<t}function yy(e,t,n){t[Ni]&&Wv(t[Ni])&&Ey(e,t,n)}function Ey(e,t,n){const r=t[Ni],i=t[Si];if(e.loadingState!==ov.NOT_STARTED)return e.loadingPromise??Promise.resolve();const o=bv(t,n),s=function(e,t){return Ho(e,t.primaryTmplIndex+qi)}(i,e);e.loadingState=ov.IN_PROGRESS,yv(1,o);let a=e.dependencyResolverFn;if(ngDevMode){const e=r.get(qv,null,{optional:!0});e&&(a=e.intercept(a))}const u=r.get(Gm),c=u.add();return a?(e.loadingPromise=Promise.allSettled(a()).then((n=>{let r=!1;const i=[],o=[];for(const e of n){if("fulfilled"!==e.status){r=!0;break}{const t=e.value,n=Dr(t)||Tr(t);if(n)i.push(n);else{const e=Ar(t);e&&o.push(e)}}}if(e.loadingPromise=null,u.remove(c),r){if(e.loadingState=ov.FAILED,null===e.errorTmplIndex){const e=Ed(t),n=new je(750,ngDevMode&&`Loading dependencies for \`@defer\` block failed, but no \`@error\` block was configured${e}. Consider using the \`@error\` block to render an error state.`);rp(t,n)}}else{e.loadingState=ov.COMPLETE;const t=s.tView;if(i.length>0){t.directiveRegistry=wv(t.directiveRegistry,i);const n=Fr(!1,...i.map((e=>e.type)));e.providers=n}o.length>0&&(t.pipeRegistry=wv(t.pipeRegistry,o))}})),e.loadingPromise):(e.loadingPromise=Promise.resolve().then((()=>{e.loadingPromise=null,e.loadingState=ov.COMPLETE,u.remove(c)})),e.loadingPromise)}function _y(e,t){const n=e[t.index];ngDevMode&&po(n),py(uv.Placeholder,t,n)}function by(e,t,n){ngDevMode&&St(e.loadingPromise,"Expected loading Promise to exist on this defer block"),e.loadingPromise.then((()=>{e.loadingState===ov.COMPLETE?(ngDevMode&&Dv(e),py(uv.Complete,t,n)):e.loadingState===ov.FAILED&&py(uv.Error,t,n)}))}function Sy(e,t){const n=e[Si],r=e[t.index],i=e[Ni];if(ngDevMode&&po(r),!Wv(i))return;const o=bv(e,t),s=Sv(n,t);switch(Ev(o),s.loadingState){case ov.NOT_STARTED:py(uv.Loading,t,r),Ey(s,e,t),s.loadingState===ov.IN_PROGRESS&&by(s,t,r);break;case ov.IN_PROGRESS:py(uv.Loading,t,r),by(s,t,r);break;case ov.COMPLETE:ngDevMode&&Dv(s),py(uv.Complete,t,r);break;case ov.FAILED:py(uv.Error,t,r);break;default:ngDevMode&&Ct("Unknown defer block state")}}function Cy(e,t,n,r){const i=ls(),o=ws();if(Qm(i,o,t)){const s=ds(),a=Hs();qh(a,i,e,t,n,r),ngDevMode&&Xh(s.data,a,"attr."+e,o)}return Cy}function Iy(e,t){ngDevMode&&yt(2,t.length,"should have at least 3 values"),ngDevMode&&ft(t.length%2,1,"should have an odd number of values");let n=!1,r=Cs();for(let i=1;i<t.length;i+=2)n=Qm(e,r++,t[i])||n;if(Is(r),!n)return mh;let i=t[0];for(let e=1;e<t.length;e+=2)i+=on(t[e])+t[e+1];return i}function wy(e,t,n,r){return Qm(e,ws(),n)?t+on(n)+r:mh}function Dy(e,t,n,r,i,o){const s=Jm(e,Cs(),n,i);return Ds(2),s?t+on(n)+r+on(i)+o:mh}function Ty(e,t,n,r,i,o,s,a){const u=Zm(e,Cs(),n,i,s);return Ds(3),u?t+on(n)+r+on(i)+o+on(s)+a:mh}function Ay(e,t,n,r,i,o,s,a,u,c){const l=Xm(e,Cs(),n,i,s,u);return Ds(4),l?t+on(n)+r+on(i)+o+on(s)+a+on(u)+c:mh}function Oy(e,t,n,r,i,o,s,a,u,c,l,d){const h=Cs();let p=Xm(e,h,n,i,s,u);return p=Qm(e,h+4,l)||p,Ds(5),p?t+on(n)+r+on(i)+o+on(s)+a+on(u)+c+on(l)+d:mh}function Ny(e,t,n,r,i,o,s,a,u,c,l,d,h,p){const f=Cs();let g=Xm(e,f,n,i,s,u);return g=Jm(e,f+4,l,h)||g,Ds(6),g?t+on(n)+r+on(i)+o+on(s)+a+on(u)+c+on(l)+d+on(h)+p:mh}function My(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g){const m=Cs();let v=Xm(e,m,n,i,s,u);return v=Zm(e,m+4,l,h,f)||v,Ds(7),v?t+on(n)+r+on(i)+o+on(s)+a+on(u)+c+on(l)+d+on(h)+p+on(f)+g:mh}function Py(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v){const y=Cs();let E=Xm(e,y,n,i,s,u);return E=Xm(e,y+4,l,h,f,m)||E,Ds(8),E?t+on(n)+r+on(i)+o+on(s)+a+on(u)+c+on(l)+d+on(h)+p+on(f)+g+on(m)+v:mh}function xy(e,t,n,r,i,o){const s=ls(),a=wy(s,t,n,r);if(a!==mh){const n=Hs();qh(n,s,e,a,i,o),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-1,t,r)}return xy}function Ry(e,t,n,r,i,o,s,a){const u=ls(),c=Dy(u,t,n,r,i,o);if(c!==mh){const n=Hs();qh(n,u,e,c,s,a),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-2,t,r,o)}return Ry}function ky(e,t,n,r,i,o,s,a,u,c){const l=ls(),d=Ty(l,t,n,r,i,o,s,a);if(d!==mh){const n=Hs();qh(n,l,e,d,u,c),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-3,t,r,o,a)}return ky}function Ly(e,t,n,r,i,o,s,a,u,c,l,d){const h=ls(),p=Ay(h,t,n,r,i,o,s,a,u,c);if(p!==mh){const n=Hs();qh(n,h,e,p,l,d),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-4,t,r,o,a,c)}return Ly}function Fy(e,t,n,r,i,o,s,a,u,c,l,d,h,p){const f=ls(),g=Oy(f,t,n,r,i,o,s,a,u,c,l,d);if(g!==mh){const n=Hs();qh(n,f,e,g,h,p),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-5,t,r,o,a,c,d)}return Fy}function Uy(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g){const m=ls(),v=Ny(m,t,n,r,i,o,s,a,u,c,l,d,h,p);if(v!==mh){const n=Hs();qh(n,m,e,v,f,g),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-6,t,r,o,a,c,d,p)}return Uy}function jy(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v){const y=ls(),E=My(y,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g);if(E!==mh){const n=Hs();qh(n,y,e,E,m,v),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-7,t,r,o,a,c,d,p,g)}return jy}function Vy(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v,y,E){const _=ls(),b=Py(_,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v);if(b!==mh){const n=Hs();qh(n,_,e,b,y,E),ngDevMode&&Xh(ds().data,n,"attr."+e,Cs()-8,t,r,o,a,c,d,p,g,v)}return Vy}function By(e,t,n,r){const i=ls(),o=Iy(i,t);if(o!==mh){const s=Hs();if(qh(s,i,e,o,n,r),ngDevMode){const n=[t[0]];for(let e=2;e<t.length;e+=2)n.push(t[e]);Xh(ds().data,s,"attr."+e,Cs()-n.length+1,...n)}}return By}function $y(e,t){return ngDevMode&&dt(e,0,32767),ngDevMode&&dt(t,0,32767),e<<17|t<<2}function Hy(e){return ngDevMode&<(e,"expected number"),e>>17&32767}function Gy(e){return ngDevMode&<(e,"expected number"),2|e}function qy(e){return ngDevMode&<(e,"expected number"),(131068&e)>>2}function zy(e,t){return ngDevMode&<(e,"expected number"),ngDevMode&&dt(t,0,32767),-131069&e|t<<2}function Wy(e){return ngDevMode&<(e,"expected number"),1|e}function Ky(e,t,n,r){const i=e[n+1],o=null===t;let s=r?Hy(i):qy(i),a=!1;for(;0!==s&&(!1===a||o);){ngDevMode&&wt(e,s);const n=e[s],i=e[s+1];Yy(n,t)&&(a=!0,e[s+1]=r?Wy(i):Gy(i)),s=r?Hy(i):qy(i)}a&&(e[n+1]=r?Gy(i):Wy(i))}function Yy(e,t){return ngDevMode&>(Array.isArray(t),!0,"Expected that 'tStylingKey' has been unwrapped"),null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&qn(e,t)>=0}const Qy={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Jy(e){return e.substring(Qy.key,Qy.keyEnd)}function Zy(e){return e.substring(Qy.value,Qy.valueEnd)}function Xy(e,t){const n=Qy.textEnd;return n===t?-1:(t=Qy.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Qy.key=t,n),nE(e,t,n))}function eE(e,t){const n=Qy.textEnd;let r=Qy.key=nE(e,t,n);return n===r?-1:(r=Qy.keyEnd=function(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=rE(e,r,n,58),r=Qy.value=nE(e,r,n),r=Qy.valueEnd=function(e,t,n){let r=-1,i=-1,o=-1,s=t,a=s;for(;s<n;){const u=e.charCodeAt(s++);if(59===u)return a;34===u||39===u?a=s=iE(e,u,s,n):t===s-4&&85===o&&82===i&&76===r&&40===u?a=s=iE(e,41,s,n):u>32&&(a=s),o=i,i=r,r=-33&u}return a}(e,r,n),rE(e,r,n,59))}function tE(e){Qy.key=0,Qy.keyEnd=0,Qy.value=0,Qy.valueEnd=0,Qy.textEnd=e.length}function nE(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function rE(e,t,n,r){return(t=nE(e,t,n))<n&&(ngDevMode&&e.charCodeAt(t)!==r&&oE(e,String.fromCharCode(r),t),t++),t}function iE(e,t,n,r){let i=-1,o=n;for(;o<r;){const n=e.charCodeAt(o++);if(n==t&&92!==i)return o;i=92==n&&92===i?0:n}throw ngDevMode?oE(e,String.fromCharCode(t),r):new Error}function oE(e,t,n){throw ngDevMode&&ft("string"==typeof e,!0,"String expected here"),Ct(`Malformed style at location ${n} in string '`+e.substring(0,n)+"[>>"+e.substring(n,n+1)+"<<]"+e.slice(n+1)+`'. Expecting '${t}'.`)}function sE(e,t,n){const r=ls(),i=ws();if(Qm(r,i,t)){const o=ds(),s=Hs();Lh(o,s,r,e,t,r[Pi],n,!1),ngDevMode&&Xh(o.data,s,e,i)}return sE}function aE(e,t,n,r,i){const o=i?"class":"style";ip(e,n,t.inputs[o],o,r)}function uE(e,t,n){return fE(e,t,n,!1),uE}function cE(e,t){return fE(e,t,null,!0),cE}function lE(e){gE(_E,dE,e,!1)}function dE(e,t){for(let n=function(e){return tE(e),eE(e,nE(e,0,Qy.textEnd))}(t);n>=0;n=eE(t,n))_E(e,Jy(t),Zy(t))}function hE(e){gE(bE,pE,e,!0)}function pE(e,t){for(let n=function(e){return tE(e),Xy(e,nE(e,0,Qy.textEnd))}(t);n>=0;n=Xy(t,n))Hn(e,Jy(t),!0)}function fE(e,t,n,r){const i=ls(),o=ds(),s=Ds(2);o.firstUpdatePass&&vE(o,e,s,r),t!==mh&&Qm(i,s,t)&&SE(o,o.data[Bs()],i,i[Pi],e,i[s+1]=function(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=rt(ul(e)))),e}(t,n),r,s)}function gE(e,t,n,r){const i=ds(),o=Ds(2);i.firstUpdatePass&&vE(i,null,o,r);const s=ls();if(n!==mh&&Qm(s,o,n)){const a=i.data[Bs()];if(wE(a,r)&&!mE(i,o)){if(ngDevMode){const e=i.data[o];ft(Array.isArray(e)?e[1]:e,!1,"Styling linked list shadow input should be marked as 'false'")}let e=r?a.classesWithoutHost:a.stylesWithoutHost;ngDevMode&&!1===r&&null!==e&&ft(e.endsWith(";"),!0,"Expecting static portion to end with ';'"),null!==e&&(n=it(e,n||"")),aE(i,a,s,n,r)}else!function(e,t,n,r,i,o,s,a){i===mh&&(i=Wn);let u=0,c=0,l=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;null!==l||null!==d;){ngDevMode&&yt(u,999,"Are we stuck in infinite loop?"),ngDevMode&&yt(c,999,"Are we stuck in infinite loop?");const h=u<i.length?i[u+1]:void 0,p=c<o.length?o[c+1]:void 0;let f,g=null;l===d?(u+=2,c+=2,h!==p&&(g=d,f=p)):null===d||null!==l&&l<d?(u+=2,g=l):(ngDevMode&&St(d,"Expecting to have a valid key"),c+=2,g=d,f=p),null!==g&&SE(e,t,n,r,g,f,s,a),l=u<i.length?i[u]:null,d=c<o.length?o[c]:null}}(i,a,s,s[Pi],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return Wn;const r=[],i=ul(n);if(Array.isArray(i))for(let t=0;t<i.length;t++)e(r,i[t],!0);else if("object"==typeof i)for(const t in i)i.hasOwnProperty(t)&&e(r,t,i[t]);else"string"==typeof i?t(r,i):ngDevMode&&Ct("Unsupported styling type "+typeof i+": "+i);return r}(e,t,n),r,o)}}function mE(e,t){return t>=e.expandoStartIndex}function vE(e,t,n,r){ngDevMode&&vo(e);const i=e.data;if(null===i[n+1]){const o=i[Bs()];ngDevMode&&St(o,"TNode expected");const s=mE(e,n);wE(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const i=Ns(e);let o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=EE(n=yE(null,e,t,n,r),t.attrs,r),o=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=yE(i,e,t,n,r),null===o){let n=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==qy(r))return e[Hy(r)]}(e,t,r);void 0!==n&&Array.isArray(n)&&(n=yE(null,e,t,n[1],r),n=EE(n,t.attrs,r),function(e,t,n,r){const i=n?t.classBindings:t.styleBindings;ngDevMode&>(qy(i),0,"Expecting to have at least one template styling binding."),e[Hy(i)]=r}(e,t,r,n))}else o=function(e,t,n){let r;const i=t.directiveEnd;ngDevMode&>(t.directiveStylingLast,-1,"By the time this function gets called at least one hostBindings-node styling instruction must have executed.");for(let o=1+t.directiveStylingLast;o<i;o++)r=EE(r,e[o].hostAttrs,n);return EE(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){ngDevMode&&vo(ds());let s=o?t.classBindings:t.styleBindings,a=Hy(s),u=qy(s);e[r]=n;let c,l=!1;if(Array.isArray(n)){const e=n;c=e[1],(null===c||qn(e,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){const t=Hy(e[a+1]);e[r+1]=$y(t,a),0!==t&&(e[t+1]=zy(e[t+1],r)),e[a+1]=(d=e[a+1],h=r,ngDevMode&<(d,"expected number"),ngDevMode&&dt(h,0,32767),131071&d|h<<17)}else e[r+1]=$y(a,0),0!==a&&(e[a+1]=zy(e[a+1],r)),a=r;else e[r+1]=$y(u,0),ngDevMode&&ft(0!==a&&0===u,!1,"Adding template bindings after hostBindings is not allowed."),0===a?a=r:e[u+1]=zy(e[u+1],r),u=r;var d,h;l&&(e[r+1]=Gy(e[r+1])),Ky(e,c,r,!0),Ky(e,c,r,!1),function(e,t,n,r,i){const o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&qn(o,t)>=0&&(n[r+1]=Wy(n[r+1]))}(t,c,e,r,o),s=$y(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function yE(e,t,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=t[a],ngDevMode&&St(o,"expected to be defined"),r=EE(r,o.hostAttrs,i),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function EE(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let o=0;o<t.length;o++){const s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Hn(e,s,!!n||t[++o]))}return void 0===e?null:e}function _E(e,t,n){Hn(e,t,ul(n))}function bE(e,t,n){const r=String(t);""===r||r.includes(" ")||Hn(e,r,n)}function SE(e,t,n,r,i,o,s,a){if(!(3&t.type))return;const u=e.data,c=u[a+1];var l;IE((l=c,ngDevMode&<(l,"expected number"),1&~l?void 0:CE(u,t,n,i,qy(c),s)))||(IE(o)||function(e){return ngDevMode&<(e,"expected number"),!(2&~e)}(c)&&(o=CE(u,null,n,i,a,s)),function(e,t,n,r,i){if(t)i?(ngDevMode&&ngDevMode.rendererAddClass++,e.addClass(n,r)):(ngDevMode&&ngDevMode.rendererRemoveClass++,e.removeClass(n,r));else{let t=-1===r.indexOf("-")?void 0:xd.DashCase;null==i?(ngDevMode&&ngDevMode.rendererRemoveStyle++,e.removeStyle(n,r,t)):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),t|=xd.Important),ngDevMode&&ngDevMode.rendererSetStyle++,e.setStyle(n,r,i,t))}}(r,s,Bo(Bs(),n),i,o))}function CE(e,t,n,r,i,o){const s=null===t;let a;for(;i>0;){const t=e[i],o=Array.isArray(t),u=o?t[1]:t,c=null===u;let l=n[i+1];l===mh&&(l=c?Wn:void 0);let d=c?Gn(l,r):u===r?l:void 0;if(o&&!IE(d)&&(d=Gn(t,r)),IE(d)&&(a=d,s))return a;const h=e[i+1];i=s?Hy(h):qy(h)}if(null!==t){let e=o?t.residualClasses:t.residualStyles;null!=e&&(a=Gn(e,r))}return a}function IE(e){return void 0!==e}function wE(e,t){return!!(e.flags&(t?8:16))}function DE(e,t,n){gE(Hn,pE,wy(ls(),e,t,n),!0)}function TE(e,t,n,r,i){gE(Hn,pE,Dy(ls(),e,t,n,r,i),!0)}function AE(e,t,n,r,i,o,s){gE(Hn,pE,Ty(ls(),e,t,n,r,i,o,s),!0)}function OE(e,t,n,r,i,o,s,a,u){gE(Hn,pE,Ay(ls(),e,t,n,r,i,o,s,a,u),!0)}function NE(e,t,n,r,i,o,s,a,u,c,l){gE(Hn,pE,Oy(ls(),e,t,n,r,i,o,s,a,u,c,l),!0)}function ME(e,t,n,r,i,o,s,a,u,c,l,d,h){gE(Hn,pE,Ny(ls(),e,t,n,r,i,o,s,a,u,c,l,d,h),!0)}function PE(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f){gE(Hn,pE,My(ls(),e,t,n,r,i,o,s,a,u,c,l,d,h,p,f),!0)}function xE(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m){gE(Hn,pE,Py(ls(),e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m),!0)}function RE(e){gE(Hn,pE,Iy(ls(),e),!0)}function kE(){const e=ls()[Li][Oi];return ngDevMode&&St(e,"Expected component instance to be defined"),e}class LE{destroy(e){}updateValue(e,t){}swap(e,t){const n=Math.min(e,t),r=Math.max(e,t),i=this.detach(r);if(r-n>1){const e=this.detach(n);this.attach(n,i),this.attach(r,e)}else this.attach(n,i)}move(e,t){this.attach(t,this.detach(e))}}function FE(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function UE(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function jE(e,t,n,r,i){if(UE(e,t,r,n(r,i)))e.updateValue(r,i);else{const t=e.create(r,i);e.attach(r,t)}}function VE(e,t,n,r){const i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}class BE{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;const t=this.kvMap.get(e);return void 0!==this._vMap&&this._vMap.has(t)?(this.kvMap.set(e,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,t){if(this.kvMap.has(e)){let n=this.kvMap.get(e);ngDevMode&&vt(n,t,`Detected a duplicated value ${t} for the key ${e}`),void 0===this._vMap&&(this._vMap=new Map);const r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,t)}else this.kvMap.set(e,t)}forEach(e){for(let[t,n]of this.kvMap)if(e(n,t),void 0!==this._vMap){const r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,t)}}}function $E(e,t,n){Ef("NgControlFlow");const r=ls(),i=ws(),o=QE(r,qi+e);if(Qm(r,i,t)){const e=c(null);try{if(hp(o,0),-1!==t){const e=JE(r[Si],qi+t),i=af(o,e.tView.ssrId);dp(o,up(r,e,n,{dehydratedView:i}),0,lp(e,i))}}finally{c(e)}}else{const e=cp(o,0);void 0!==e&&(e[Oi]=n)}}class HE{constructor(e,t,n){this.lContainer=e,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Qi}}function GE(e){return e}function qE(e,t){return t}class zE{constructor(e,t,n){this.hasEmptyBlock=e,this.trackByFn=t,this.liveCollection=n}}function WE(e,t,n,r,i,o,s,a,u,c,l,d,h){Ef("NgControlFlow"),ngDevMode&&pt(s,`A track expression must be a function, was ${typeof s} instead.`);const p=void 0!==u,f=ls(),g=a?s.bind(f[Li][Oi]):s,m=new zE(p,g);f[qi+e]=m,tv(e+1,t,n,r,i,o),p&&(ngDevMode&&St(c,"Missing number of declarations for the empty repeater block."),ngDevMode&&St(l,"Missing number of bindings for the empty repeater block."),tv(e+2,u,c,l,d,h))}class KE extends LE{constructor(e,t,n){super(),this.lContainer=e,this.hostLView=t,this.templateTNode=n,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Qi}at(e){return this.getLView(e)[Oi].$implicit}attach(e,t){const n=t[Ti];this.needsIndexUpdate||=e!==this.length,dp(this.lContainer,t,e,lp(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,function(e,t){const n=Hd(e,t);return ngDevMode&&go(n),n}(this.lContainer,e)}create(e,t){const n=af(this.lContainer,this.templateTNode.tView.ssrId);return up(this.hostLView,this.templateTNode,new HE(this.lContainer,t,e),{dehydratedView:n})}destroy(e){Gd(e[Si],e)}updateValue(e,t){this.getLView(e)[Oi].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Oi].$index=e}getLView(e){return function(e,t){const n=cp(e,t);return ngDevMode&&go(n),n}(this.lContainer,e)}}function YE(e){const t=c(null),n=Bs();try{const t=ls(),r=t[Si],i=t[n];if(void 0===i.liveCollection){const e=n+1,o=QE(t,e),s=JE(r,e);i.liveCollection=new KE(o,t,s)}else i.liveCollection.reset();const o=i.liveCollection;if(function(e,t,n){let r,i,o=0,s=e.length-1;if(Array.isArray(t)){let a=t.length-1;for(;o<=s&&o<=a;){const u=e.at(o),c=t[o],l=FE(o,u,o,c,n);if(0!==l){l<0&&e.updateValue(o,c),o++;continue}const d=e.at(s),h=t[a],p=FE(s,d,a,h,n);if(0!==p){p<0&&e.updateValue(s,h),s--,a--;continue}const f=n(o,u),g=n(s,d),m=n(o,c);if(Object.is(m,g)){const t=n(a,h);Object.is(t,f)?(e.swap(o,s),e.updateValue(s,h),a--,s--):e.move(s,o),e.updateValue(o,c),o++}else if(r??=new BE,i??=VE(e,o,s,n),UE(e,r,o,m))e.updateValue(o,c),o++,s++;else if(i.has(m))r.set(f,e.detach(o)),s--;else{const n=e.create(o,t[o]);e.attach(o,n),o++,s++}}for(;o<=a;)jE(e,r,n,o,t[o]),o++}else if(null!=t){const a=t[Symbol.iterator]();let u=a.next();for(;!u.done&&o<=s;){const t=e.at(o),c=u.value,l=FE(o,t,o,c,n);if(0!==l)l<0&&e.updateValue(o,c),o++,u=a.next();else{r??=new BE,i??=VE(e,o,s,n);const l=n(o,c);if(UE(e,r,o,l))e.updateValue(o,c),o++,s++,u=a.next();else if(i.has(l)){const i=n(o,t);r.set(i,e.detach(o)),s--}else e.attach(o,e.create(o,c)),o++,s++,u=a.next()}}for(;!u.done;)jE(e,r,n,e.length,u.value),u=a.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach((t=>{e.destroy(t)}))}(o,e,i.trackByFn),o.updateIndexes(),i.hasEmptyBlock){const e=ws(),i=0===o.length;if(Qm(t,e,i)){const e=n+2,o=QE(t,e);if(i){const n=JE(r,e),i=af(o,n.tView.ssrId);dp(o,up(t,n,void 0,{dehydratedView:i}),0,lp(n,i))}else hp(o,0)}}}finally{c(t)}}function QE(e,t){const n=e[t];return ngDevMode&&po(n),n}function JE(e,t){const n=Ho(e,t);return ngDevMode&&co(n),n}function ZE(e,t,n,r){const i=ls(),o=ds(),s=qi+e;ngDevMode&&ft(Cs(),o.bindingStartIndex,"elements should be created before any bindings"),ngDevMode&&wt(i,s);const a=i[Pi],u=o.firstCreatePass?function(e,t,n,r,i,o){ngDevMode&&mo(t),ngDevMode&&ngDevMode.firstCreatePass++;const s=t.consts,a=Ch(t,e,2,r,Ko(s,i));return Uh(t,n,a,Ko(s,o)),null!==a.attrs&&zf(a,a.attrs,!1),null!==a.mergedAttrs&&zf(a,a.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,a),a}(s,o,i,t,n,r):o.data[s],c=t_(o,i,u,a,t,e);i[s]=c;const l=no(u);return ngDevMode&&o.firstCreatePass&&function(e,t,n,r,i){if(null!==r&&!i&&null!==n&&("undefined"!=typeof HTMLUnknownElement&&HTMLUnknownElement&&e instanceof HTMLUnknownElement||"undefined"!=typeof customElements&&n.indexOf("-")>-1&&!customElements.get(n))&&!bd(r,n)){const e=yd(t),r=`'${e?"@Component":"@NgModule"}.schemas'`;let i=`'${n}' is not a known element${Ed(t)}:\n`;if(i+=`1. If '${n}' is an Angular component, then verify that it is ${e?"included in the '@Component.imports' of this component":"a part of an @NgModule where this component is declared"}.\n`,n&&n.indexOf("-")>-1?i+=`2. If '${n}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${r} of this component to suppress this message.`:i+=`2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${r} of this component.`,cd)throw new je(304,i);console.error(Ve(304,i))}}(c,i,u.value,o.schemas,l),vs(u,!0),gh(a,c,u),!ev(u)&&Ys()&&oh(o,i,c,u),0===is.lFrame.elementDepthCount&&Mu(c,i),is.lFrame.elementDepthCount++,l&&(Ah(o,i,u),Th(o,u,i)),null!==r&&Oh(i,u),ZE}function XE(){let e=fs();ngDevMode&&St(e,"No parent node to close."),ys()?Es():(ngDevMode&&ho(fs()),e=e.parent,vs(e,!1));const t=e;ngDevMode&&aa(t,3),function(e){return is.skipHydrationRootTNode===e}(t)&&(is.skipHydrationRootTNode=null),is.lFrame.elementDepthCount--;const n=ds();return n.firstCreatePass&&(Js(n,e),eo(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return!!(8&e.flags)}(t)&&aE(n,t,ls(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return!!(16&e.flags)}(t)&&aE(n,t,ls(),t.stylesWithoutHost,!1),XE}function e_(e,t,n,r){return ZE(e,t,n,r),XE(),e_}let t_=(e,t,n,r,i,o)=>(Qs(!0),Vd(r,i,Ws()));function n_(e,t,n,r,i,o){const s=t[Ti],a=!s||as()||ev(n)||Hc(s,o);if(Qs(a),a)return Vd(r,i,Ws());const u=Xp(s,e,t,n);if(ngDevMode&&xp(u,Node.ELEMENT_NODE,i,t,n),ngDevMode&&Fc(u),Bc(s,o)&&(ngDevMode&&kp(u.nextSibling,t,n),jc(s,o,u.nextSibling)),s&&(Eu(n)||_u(u)))if(to(n))!function(e){is.skipHydrationRootTNode=e}(n),lh(u),ngDevMode&&function(e){if(!ngDevMode)throw new Error("Calling `markRNodeAsSkippedByHydration` in prod mode is not supported and likely a mistake.");kc(e,{status:xc.Skipped}),ngDevMode.componentsSkippedHydration++}(u);else if(ngDevMode)throw function(e){const t=`${$p(e)}\n\n`;return new je(-504,"The `ngSkipHydration` flag is applied on a node that doesn't act as a component host. Hydration can be skipped only on per-component basis.\n\n"+t+"Please move the `ngSkipHydration` attribute to the component host element.\n\n")}(u);return u}function r_(e,t,n){const r=ls(),i=ds(),o=e+qi;ngDevMode&&wt(r,o),ngDevMode&&ft(Cs(),i.bindingStartIndex,"element containers should be created before any bindings");const s=i.firstCreatePass?function(e,t,n,r,i){ngDevMode&&ngDevMode.firstCreatePass++;const o=t.consts,s=Ko(o,r),a=Ch(t,e,8,"ng-container",s);return null!==s&&zf(a,s,!0),Uh(t,n,a,Ko(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(o,i,r,t,n):i.data[o];vs(s,!0);const a=s_(i,r,s,e);return r[o]=a,Ys()&&oh(i,r,a,s),Mu(a,r),no(s)&&(Ah(i,r,s),Th(i,s,r)),null!=n&&Oh(r,s),r_}function i_(){let e=fs();const t=ds();return ys()?Es():(ngDevMode&&ho(e),e=e.parent,vs(e,!1)),ngDevMode&&aa(e,8),t.firstCreatePass&&(Js(t,e),eo(e)&&t.queries.elementEnd(e)),i_}function o_(e,t,n){return r_(e,t,n),i_(),o_}let s_=(e,t,n,r)=>(Qs(!0),jd(t[Pi],ngDevMode?"ng-container":""));function a_(e,t,n,r){let i;const o=t[Ti],s=!o||as()||ev(n);if(Qs(s),s)return jd(t[Pi],ngDevMode?"ng-container":"");const a=Xp(o,e,t,n);ngDevMode&&kp(a,t,n);const u=function(e,t){const n=e.data;let r=n[yc]?.[t]??null;return null===r&&n[_c]?.[t]&&(r=$c(e,t)),r}(o,r);return ngDevMode&<(u,"Unexpected state: hydrating an <ng-container>, but no hydration info is available."),jc(o,r,a),i=ef(u,a),ngDevMode&&(xp(i,Node.COMMENT_NODE,null,t,n),Fc(i)),i}function u_(){return ls()}function c_(e,t,n){const r=ls(),i=ws();if(Qm(r,i,t)){const o=ds(),s=Hs();Lh(o,s,r,e,t,r[Pi],n,!0),ngDevMode&&Xh(o.data,s,e,i)}return c_}function l_(e,t,n){const r=ls(),i=ws();if(Qm(r,i,t)){const o=ds(),s=Hs();Lh(o,s,r,e,t,np(Ns(o.data),s,r),n,!0),ngDevMode&&Xh(o.data,s,e,i)}return l_}"undefined"==typeof ngI18nClosureMode&&(Xe.ngI18nClosureMode="undefined"!=typeof goog&&"function"==typeof goog.getMsg);const d_=void 0;var h_=["en",[["a","p"],["AM","PM"],d_],[["AM","PM"],d_,d_],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],d_,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],d_,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",d_,"{1} 'at' {0}",d_],[".",",",";","%","+","-","E","×","‰","∞","NaN",":"],["#,##0.###","#,##0%","¤#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let p_={};function f_(e,t,n){"string"!=typeof t&&(n=t,t=e[__.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),p_[t]=e,n&&(p_[t][__.ExtraData]=n)}function g_(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=y_(t);if(n)return n;const r=t.split("-")[0];if(n=y_(r),n)return n;if("en"===r)return h_;throw new je(701,ngDevMode&&`Missing locale data for the locale "${e}".`)}function m_(e){return g_(e)[__.CurrencyCode]||null}function v_(e){return g_(e)[__.PluralCase]}function y_(e){return e in p_||(p_[e]=Xe.ng&&Xe.ng.common&&Xe.ng.common.locales&&Xe.ng.common.locales[e]),p_[e]}function E_(){p_={}}var __;!function(e){e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData"}(__||(__={}));const b_=["zero","one","two","few","many"],S_="en-US",C_={marker:"element"},I_={marker:"ICU"};var w_;!function(e){e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT"}(w_||(w_={}));let D_=S_;function T_(e){ngDevMode&&St(e,"Expected localeId to be defined"),"string"==typeof e&&(D_=e.toLowerCase().replace(/_/g,"-"))}function A_(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?th(e,0,n):(ngDevMode&&wt(n,i),jo(n[i]))}function O_(e,t,n,r,i){const o=t.insertBeforeIndex;if(Array.isArray(o)){ngDevMode&&It(r);let s=r,a=null;if(3&t.type||(a=s,s=i),null!==s&&-1===t.componentOffset)for(let t=1;t<o.length;t++)Qd(e,s,n[o[t]],a,!1)}}function N_(e,t){if(ngDevMode&&ft(t.insertBeforeIndex,null,"We expect that insertBeforeIndex is not set"),e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];M_(r)||P_(r,t)&&null===x_(r)&&R_(r,t.index)}}function M_(e){return!(64&e.type)}function P_(e,t){return M_(t)||e.index>t.index}function x_(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function R_(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(ih(A_,O_),e.insertBeforeIndex=t)}function k_(e,t){const n=e.data[t];if(null===n||"string"==typeof n)return null;!ngDevMode||n.hasOwnProperty("tView")||n.hasOwnProperty("currentCaseLViewIndex")||Ct("We expect to get 'null'|'TIcu'|'TIcuContainer', but got: "+n);const r=n.hasOwnProperty("currentCaseLViewIndex")?n:n.value;return ngDevMode&&lo(r),r}function L_(e,t,n){const r=Ih(e,n,64,null,null);return N_(t,r),r}function F_(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function U_(e){return e>>>17}function j_(e){return(131070&e)>>>1}function V_(e){return 1&e}let B_=0,$_=0;function H_(e,t,n){const r=e[Pi];switch(n){case Node.COMMENT_NODE:return jd(r,t);case Node.TEXT_NODE:return Fd(r,t);case Node.ELEMENT_NODE:return Vd(r,t,null)}}let G_=(e,t,n,r)=>(Qs(!0),H_(e,n,r));function q_(e,t,n,r){return Qs(!0),H_(e,n,r)}function z_(e,t,n,r){ngDevMode&&It(r);const i=n[Pi];let o,s=null;for(let a=0;a<t.length;a++){const u=t[a];if("string"==typeof u){const e=t[++a];null===n[e]&&(ngDevMode&&ngDevMode.rendererCreateTextNode++,ngDevMode&&wt(n,e),n[e]=G_(n,e,u,Node.TEXT_NODE))}else if("number"==typeof u)switch(1&u){case 0:const c=U_(u);let l,d;if(null===s&&(s=c,o=Xd(i,r)),c===s?(l=r,d=o):(l=null,d=jo(n[c])),null!==d){ngDevMode&&It(d);const t=j_(u);ngDevMode&&_t(t,qi,"Missing ref");const r=n[t];ngDevMode&&It(r),Qd(i,d,r,l,!1);const o=k_(e,t);if(null!==o&&"object"==typeof o){ngDevMode&&lo(o);const t=F_(o,n);null!==t&&z_(e,o.create[t],n,n[o.anchorIdx])}}break;case 1:const h=u>>>1,p=t[++a],f=t[++a];zh(i,Bo(h,n),null,null,p,f,null);break;default:if(ngDevMode)throw new je(700,`Unable to determine the type of mutate operation for "${u}"`)}else switch(u){case I_:const e=t[++a],r=t[++a];null===n[r]&&(ngDevMode&&ft(typeof e,"string",`Expected "${e}" to be a comment node value`),ngDevMode&&ngDevMode.rendererCreateComment++,ngDevMode&&Eo(n,r),Mu(n[r]=G_(n,r,e,Node.COMMENT_NODE),n));break;case C_:const i=t[++a],o=t[++a];null===n[o]&&(ngDevMode&&ft(typeof i,"string",`Expected "${i}" to be an element node tag name`),ngDevMode&&ngDevMode.rendererCreateElement++,ngDevMode&&Eo(n,o),Mu(n[o]=G_(n,o,i,Node.ELEMENT_NODE),n));break;default:ngDevMode&&Ct(`Unable to determine the type of mutate operation for "${u}"`)}}}function W_(e,t,n,r,i){for(let o=0;o<n.length;o++){const s=n[o],a=n[++o];if(s&i){let i="";for(let s=o+1;s<=o+a;s++){const o=n[s];if("string"==typeof o)i+=o;else if("number"==typeof o)if(o<0)i+=on(t[r-o]);else{const a=o>>>2;switch(3&o){case 1:const o=n[++s],u=n[++s],c=e.data[a];ngDevMode&&St(c,"Experting TNode or string"),"string"==typeof c?zh(t[Pi],t[a],null,c,o,i,u):Lh(e,c,t,o,i,t[Pi],u,!1);break;case 0:const l=t[a];null!==l&&Ud(t[Pi],l,i);break;case 2:Y_(e,k_(e,a),t,i);break;case 3:K_(e,k_(e,a),r,t)}}}}else{const i=n[o+1];if(i>0&&!(3&~i)){const n=k_(e,i>>>2);t[n.currentCaseLViewIndex]<0&&K_(e,n,r,t)}}o+=a}}function K_(e,t,n,r){ngDevMode&&wt(r,t.currentCaseLViewIndex);let i=r[t.currentCaseLViewIndex];if(null!==i){let o=B_;i<0&&(i=r[t.currentCaseLViewIndex]=~i,o=-1),W_(e,r,t.update[i],n,o)}}function Y_(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=v_(t)(parseInt(e,10)),r=b_[n];return void 0!==r?r:"other"}(t,D_);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(F_(t,n)!==i&&(Q_(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const r=n[t.anchorIdx];r&&(ngDevMode&&It(r),z_(e,t.create[i],n,r))}}function Q_(e,t,n){let r=F_(t,n);if(null!==r){const i=t.remove[r];for(let t=0;t<i.length;t++){const r=i[t];if(r>0){const e=Bo(r,n);null!==e&&ch(n[Pi],e)}else Q_(e,k_(e,~r),n)}}}function J_(){const e=[];let t,n,r=-1;function i(e,t){r=0;const i=F_(e,t);null!==i?(ngDevMode&&dt(i,0,e.cases.length-1),n=e.remove[i]):n=Wn}function o(){if(r<n.length){const s=n[r++];if(ngDevMode&<(s,"Expecting OpCode number"),s>0){const e=t[s];return ngDevMode&&It(e),e}{e.push(r,n);const a=~s,u=t[Si].data[a];return ngDevMode&&lo(u),i(u,t),o()}}return 0===e.length?null:(n=e.pop(),r=e.pop(),o())}return function(n,r){for(t=r;e.length;)e.pop();return ngDevMode&&ao(n,r),i(n.value,r),o}}function Z_(e){const t=e||(Array.isArray(this)?this:[]);let n=[];for(let e=0;e<t.length;e++){const r=t[e++],i=t[e],o=(r&w_.COMMENT)===w_.COMMENT,s=(r&w_.APPEND_EAGERLY)===w_.APPEND_EAGERLY,a=r>>>w_.SHIFT;n.push(`lView[${a}] = document.${o?"createComment":"createText"}(${JSON.stringify(i)});`),s&&n.push(`parent.appendChild(lView[${a}]);`)}return n}function X_(e){const t=new nb(e||(Array.isArray(this)?this:[]));let n=[];function r(e){const n=e>>>2;switch(3&e){case 0:return`(lView[${n}] as Text).textContent = $$$`;case 1:const e=t.consumeString(),r=t.consumeFunction();return`(lView[${n}] as Element).setAttribute('${e}', ${r?`(${r})($$$)`:"$$$"})`;case 2:return`icuSwitchCase(${n}, $$$)`;case 3:return`icuUpdateCase(${n})`}throw new Error("unexpected OpCode")}for(;t.hasMore();){let e=t.consumeNumber(),i=t.consumeNumber();const o=t.i+i,s=[];let a="";for(;t.i<o;){let e=t.consumeNumberOrString();if("string"==typeof e)a+=e;else if(e<0)a+="${lView[i"+e+"]}";else{const t=r(e);s.push(t.replace("$$$","`"+a+"`")+";"),a=""}}n.push(`if (mask & 0b${e.toString(2)}) { ${s.join(" ")} }`)}return n}function eb(e){const t=new nb(e||(Array.isArray(this)?this:[]));let n=[];function r(e){const n=U_(e),r=j_(e);switch(V_(e)){case 0:return`(lView[${n}] as Element).appendChild(lView[${i}])`;case 1:return`(lView[${r}] as Element).setAttribute("${t.consumeString()}", "${t.consumeString()}")`}throw new Error("Unexpected OpCode: "+V_(e))}let i=-1;for(;t.hasMore();){let e=t.consumeNumberStringOrMarker();if(e===I_){const e=t.consumeString();i=t.consumeNumber(),n.push(`lView[${i}] = document.createComment("${e}")`)}else if(e===C_){const e=t.consumeString();i=t.consumeNumber(),n.push(`lView[${i}] = document.createElement("${e}")`)}else if("string"==typeof e)i=t.consumeNumber(),n.push(`lView[${i}] = document.createTextNode("${e}")`);else{if("number"!=typeof e)throw new Error("Unexpected value");{const t=r(e);t&&n.push(t)}}}return n}function tb(e){const t=e||(Array.isArray(this)?this:[]);let n=[];for(let e=0;e<t.length;e++){const r=t[e];r>0?n.push(`remove(lView[${r}])`):n.push(`removeNestedICU(${~r})`)}return n}class nb{constructor(e){this.i=0,this.codes=e}hasMore(){return this.i<this.codes.length}consumeNumber(){let e=this.codes[this.i++];return lt(e,"expecting number in OpCode"),e}consumeString(){let e=this.codes[this.i++];return ht(e,"expecting string in OpCode"),e}consumeFunction(){let e=this.codes[this.i++];if(null===e||"function"==typeof e)return e;throw new Error("expecting function in OpCode")}consumeNumberOrString(){let e=this.codes[this.i++];return"string"==typeof e||lt(e,"expecting number or string in OpCode"),e}consumeNumberStringOrMarker(){let e=this.codes[this.i++];return"string"==typeof e||"number"==typeof e||e==I_||e==C_||lt(e,"expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode"),e}}const rb=/�(\d+):?\d*�/gi,ib=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,ob=/�(\d+)�/,sb=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,ab="�",ub=/�\/?\*(\d+:\d+)�/gi,cb=/�(\/?[#*]\d+):?\d*�/gi,lb=/\uE500/g;function db(e,t){if(!ngDevMode)throw new Error("This method should be guarded with `ngDevMode` so that it can be tree shaken in production!");Object.defineProperty(e,"debug",{get:t,enumerable:!1})}function hb(e,t,n,r,i,o,s){const a=wh(e,r,1,null);let u=a<<w_.SHIFT,c=ms();t===c&&(c=null),null===c&&(u|=w_.APPEND_EAGERLY),s&&(u|=w_.COMMENT,void 0===Rd&&(Rd=J_())),i.push(u,null===o?"":o);const l=Ih(e,a,s?32:1,null===o?ngDevMode?"{{?}}":"":o,null);N_(n,l);const d=l.index;return vs(l,!1),null!==c&&t!==c&&function(e,t){ngDevMode&&co(e);let n=e.insertBeforeIndex;null===n?(ih(A_,O_),n=e.insertBeforeIndex=[null,t]):(ft(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(c,d),l}function pb(e,t,n,r,i,o,s,a){const u=a.match(rb),c=hb(t,n,r,s,i,u?null:a,!1).index;u&&fb(o,a,c,null,0,null),e.push({kind:0,index:c})}function fb(e,t,n,r,i,o){ngDevMode&&bt(n,qi,"Index must be in absolute LView offset");const s=e.length,a=s+1;e.push(null,null);const u=s+2;ngDevMode&&db(e,X_);const c=t.split(rb);let l=0;for(let t=0;t<c.length;t++){const n=c[t];if(1&t){const t=i+parseInt(n,10);e.push(-1-t),l|=mb(t)}else""!==n&&e.push(n)}return e.push(n<<2|(r?1:0)),r&&e.push(r,o),e[s]=l,e[a]=e.length-u,l}function gb(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function mb(e){return 1<<Math.min(e,31)}function vb(e){let t,n,r="",i=0,o=!1;for(;null!==(t=ub.exec(e));)o?t[0]===`${ab}/*${n}${ab}`&&(i=t.index,o=!1):(r+=e.substring(i,t.index+t[0].length),n=t[1],o=!0);return ngDevMode&&ft(o,!1,`Tag mismatch: unable to find the end of the sub-template in the translation "${e}"`),r+=e.slice(i),r}function yb(e,t,n,r,i,o,s){ngDevMode&&St(o,"ICU expression must be defined");let a=0;const u={type:o.type,currentCaseLViewIndex:wh(t,n,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(mb(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(r,o,s),function(e,t,n){const r=e.data[t];ngDevMode&&ft(null===r||r.hasOwnProperty("tView"),!0,"We expect to get 'null'|'TIcuContainer'"),null===r?e.data[t]=n:(ngDevMode&&aa(r,32),r.value=n)}(t,s,u);const c=o.values,l=[];for(let e=0;e<c.length;e++){const s=c[e],d=[];for(let e=0;e<s.length;e++){const t=s[e];if("string"!=typeof t){const n=d.push(t)-1;s[e]=`\x3c!--�${n}�--\x3e`}}const h=[];l.push(h),a=bb(h,t,u,n,r,i,o.cases[e],s.join(""),d)|a}a&&function(e,t,n){e.push(t,1,n<<2|3)}(r,a,s),e.push({kind:3,index:s,cases:l,currentCaseLViewIndex:u.currentCaseLViewIndex})}function Eb(e){const t=[],n=[];let r=1,i=0;const o=_b(e=e.replace(sb,(function(e,t,n){return r="select"===n?0:1,i=parseInt(t.slice(1),10),""})));for(let e=0;e<o.length;){let i=o[e++].trim();1===r&&(i=i.replace(/\s*(?:=)?(\w+)\s*/,"$1")),i.length&&t.push(i);const s=_b(o[e++]);t.length>n.length&&n.push(s)}return{type:r,mainBinding:i,cases:t,values:n}}function _b(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(e);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=e.substring(t,i);sb.test(n)?r.push(Eb(n)):r.push(n),t=i+1}}else{if(0==n.length){const n=e.substring(t,i);r.push(n),t=i+1}n.push("{")}}const s=e.substring(t);return r.push(s),r}function bb(e,t,n,r,i,o,s,a,u){const c=[],l=[],d=[];ngDevMode&&(db(c,eb),db(l,tb),db(d,X_)),n.cases.push(s),n.create.push(c),n.remove.push(l),n.update.push(d);const h=ml(nc()).getInertBodyElement(a);ngDevMode&&St(h,"Unable to generate inert body element");const p=ql(h)||h;return p?Sb(e,t,n,r,i,c,l,d,p,o,u,0):0}function Sb(e,t,n,r,i,o,s,a,u,c,l,d){let h=0,p=u.firstChild;for(;p;){const u=wh(t,r,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:const f=p,g=f.tagName.toLowerCase();if(Ol.hasOwnProperty(g)){wb(o,C_,g,c,u),t.data[u]=g;const m=f.attributes;for(let e=0;e<m.length;e++){const t=m.item(e),n=t.name.toLowerCase();t.value.match(rb)?xl.hasOwnProperty(n)?Nl[n]?fb(a,t.value,u,t.name,0,_l):fb(a,t.value,u,t.name,0,null):ngDevMode&&console.warn(`WARNING: ignoring unsafe attribute value ${n} on element ${g} (see ${Ue})`):Db(o,u,t)}const v={kind:1,index:u,children:[]};e.push(v),h=Sb(v.children,t,n,r,i,o,s,a,p,u,l,d+1)|h,Cb(s,u,d)}break;case Node.TEXT_NODE:const m=p.textContent||"",v=m.match(rb);wb(o,null,v?"":m,c,u),Cb(s,u,d),v&&(h=fb(a,m,u,null,0,null)|h),e.push({kind:0,index:u});break;case Node.COMMENT_NODE:const y=ob.exec(p.textContent||"");if(y){const n=parseInt(y[1],10),a=l[n];wb(o,I_,ngDevMode?`nested ICU ${n}`:"",c,u),yb(e,t,r,i,c,a,u),Ib(s,u,d)}}p=p.nextSibling}return h}function Cb(e,t,n){0===n&&e.push(t)}function Ib(e,t,n){0===n&&(e.push(~t),e.push(t))}function wb(e,t,n,r,i){var o,s;null!==t&&e.push(t),e.push(n,i,(0,o=r,s=i,ngDevMode&&bt(o,0,"Missing parent index"),ngDevMode&&_t(s,0,"Missing ref index"),o<<17|s<<1))}function Db(e,t,n){e.push(t<<1|1,n.name,n.value)}const Tb=0,Ab=/\[(�.+?�?)\]/,Ob=/\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g,Nb=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Mb=/{([A-Z0-9_]+)}/g,Pb=/�I18N_EXP_(ICU(_\d+)?)�/g,xb=/\/\*/,Rb=/\d+\:(\d+)/;function kb(e,t,n=-1){const r=ds(),i=ls(),o=qi+e;ngDevMode&&St(r,"tView should be defined");const s=Ko(r.consts,t),a=ms();r.firstCreatePass&&function(e,t,n,r,i,o){const s=ms(),a=[],u=[],c=[[]],l=[[]];ngDevMode&&(db(a,Z_),db(u,X_)),i=function(e,t){if(function(e){return-1===e}(t))return vb(e);{const n=e.indexOf(`:${t}${ab}`)+2+t.toString().length,r=e.search(new RegExp(`${ab}\\/\\*\\d+:${t}${ab}`));return vb(e.substring(n,r))}}(i,o);const d=(h=i,h.replace(lb," ")).split(cb);var h;for(let o=0;o<d.length;o++){let h=d[o];if(1&o){const t=47===h.charCodeAt(0),n=h.charCodeAt(t?1:0);ngDevMode&&Dt(n,42,35);const r=qi+Number.parseInt(h.substring(t?2:1));if(t)c.shift(),l.shift(),vs(ms(),!1);else{const t=L_(e,c[0],r);c.unshift([]),vs(t,!0);const i={kind:2,index:r,children:[],type:35===n?0:1};l[0].push(i),l.unshift(i.children)}}else{const o=_b(h);for(let d=0;d<o.length;d++){let h=o[d];if(1&d){const o=h;if("object"!=typeof o)throw new Error(`Unable to parse ICU expression in "${i}" message.`);const d=hb(e,s,c[0],n,a,ngDevMode?`ICU ${r}:${o.mainBinding}`:"",!0).index;ngDevMode&&bt(d,qi,"Index must be in absolute LView offset"),yb(l[0],e,n,u,t,o,d)}else{const t=h;ngDevMode&&ht(t,"Parsed ICU part should be string"),""!==t&&pb(l[0],e,s,c[0],a,u,n,t)}}}}e.data[r]={create:a,update:u,ast:l[0]}}(r,null===a?0:a.index,i,o,s,n),2===r.type?i[Li][Ci]|=32:i[Ci]|=32;const u=r.data[o],c=Yd(r,a===i[Di]?null:a,i),l=a&&8&a.type?i[a.index]:null;!function(e,t,n,r){const i=e[Pi];for(let o=0;o<t.length;o++){const s=t[o++],a=t[o],u=(s&w_.COMMENT)===w_.COMMENT,c=(s&w_.APPEND_EAGERLY)===w_.APPEND_EAGERLY,l=s>>>w_.SHIFT;let d=e[l],h=!1;null===d&&(d=e[l]=G_(e,l,a,u?Node.COMMENT_NODE:Node.TEXT_NODE),h=Ys()),c&&null!==n&&h&&Qd(i,n,d,r,!1)}}(i,u.create,c,l),Ts(!0)}function Lb(){Ts(!1)}function Fb(e,t,n){kb(e,t,n),Lb()}function Ub(e,t){const n=ds();ngDevMode&&St(n,"tView should be defined");const r=Ko(n.consts,t);!function(e,t,n){const r=fs().index,i=[];if(ngDevMode&&db(i,X_),e.firstCreatePass&&null===e.data[t]){for(let e=0;e<n.length;e+=2){const t=n[e],o=n[e+1];if(""!==o){if(ib.test(o))throw new Error(`ICU expressions are not supported in attributes. Message: "${o}".`);fb(i,o,r,t,gb(i),null)}}e.data[t]=i}}(n,e+qi,r)}function jb(e){return Qm(ls(),ws(),e)&&(B_|=1<<Math.min($_,31)),$_++,jb}function Vb(e){!function(e,t,n){if($_>0){ngDevMode&&St(e,"tView should be defined");const r=e.data[n];W_(e,t,Array.isArray(r)?r:r.update,Cs()-$_-1,B_)}B_=0,$_=0}(ds(),ls(),e+qi)}function Bb(e,t={}){return function(e,t={}){let n=e;if(Ab.test(e)){const e={},t=[Tb];n=n.replace(Ob,((n,r,i)=>{const o=r||i,s=e[o]||[];if(s.length||(o.split("|").forEach((e=>{const t=e.match(Rb),n=t?parseInt(t[1],10):Tb,r=xb.test(e);s.push([n,r,e])})),e[o]=s),!s.length)throw new Error(`i18n postprocess: unmatched placeholder - ${o}`);const a=t[t.length-1];let u=0;for(let e=0;e<s.length;e++)if(s[e][0]===a){u=e;break}const[c,l,d]=s[u];return l?t.pop():a!==c&&t.push(c),s.splice(u,1),d}))}return Object.keys(t).length?(n=n.replace(Nb,((e,n,r,i,o,s)=>t.hasOwnProperty(r)?`${n}${t[r]}${s}`:e)),n=n.replace(Mb,((e,n)=>t.hasOwnProperty(n)?t[n]:e)),n=n.replace(Pb,((e,n)=>{if(t.hasOwnProperty(n)){const r=t[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${e} with key: ${n}`);return r.shift()}return e})),n):n}(e,t)}function $b(e,t,n,r){const i=ls(),o=ds(),s=fs();return Gb(o,i,i[Pi],s,e,t,r),$b}function Hb(e,t){const n=fs(),r=ls(),i=ds();return Gb(i,r,np(Ns(i.data),n,r),n,e,t),Hb}function Gb(e,t,n,r,i,o,s){const a=no(r),u=e.firstCreatePass&&tp(e),c=t[Oi],l=ep(t);ngDevMode&&aa(r,15);let d=!0;if(3&r.type||s){const h=$o(r,t),p=s?s(h):h,f=l.length,g=s?e=>s(jo(e[r.index])):r.index;let m=null;if(!s&&a&&(m=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let e=0;e<i.length-1;e+=2){const o=i[e];if(o===n&&i[e+1]===r){const n=t[Ai],r=i[e+2];return n.length>r?n[r]:null}"string"==typeof o&&(e+=2)}return null}(e,t,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,d=!1;else{o=zb(r,t,c,o,!1);const e=n.listen(p,i,o);ngDevMode&&ngDevMode.rendererAddEventListener++,l.push(o,e),u&&u.push(i,g,f,f+1)}}else o=zb(r,t,c,o,!1);const h=r.outputs;let p;if(d&&null!==h&&(p=h[i])){const e=p.length;if(e)for(let n=0;n<e;n+=2){const e=p[n];ngDevMode&&wt(t,e);const s=p[n+1],a=t[e],c=a[s];if(ngDevMode&&(null==(f=c)||"function"!=typeof f.subscribe))throw new Error(`@Output ${s} not initialized in '${a.constructor.name}'.`);const d=c.subscribe(o),h=l.length;l.push(o,d),u&&u.push(i,r.index,h,-(h+1))}}var f}function qb(e,t,n,r){const i=c(null);try{return xo(6,t,n),!1!==n(r)}catch(t){return rp(e,t),!1}finally{xo(7,t,n),c(i)}}function zb(e,t,n,r,i){return function o(s){if(s===Function)return r;wp(e.componentOffset>-1?qo(e.index,t):t);let a=qb(t,n,r,s),u=o.__ngNextListenerFn__;for(;u;)a=qb(t,n,u,s)&&a,u=u.__ngNextListenerFn__;return i&&!1===a&&s.preventDefault(),a}}function Wb(e=1){return function(e){return(is.lFrame.contextLView=Jo(e,is.lFrame.contextLView))[Oi]}(e)}function Kb(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const e=t.indexOf(5);if(!(1&e))return t[e+1]}return null}(e);for(let i=0;i<t.length;i++){const o=t[i];if("*"!==o){if(null===r?fr(e,o,!0):gr(r,o))return i}else n=i}return n}function Yb(e){const t=ls()[Li][Di];if(!t.projection){const n=e?e.length:1,r=t.projection=Vn(n,null),i=r.slice();let o=t.child;for(;null!==o;){const t=e?Kb(o,e):0;null!==t&&(i[t]?i[t].projectionNext=o:r[t]=o,i[t]=o),o=o.next}}}function Qb(e,t=0,n){const r=ls(),i=ds(),o=Ch(i,qi+e,16,null,n||null);null===o.projection&&(o.projection=t),Es(),(!r[Ti]||as())&&32&~o.flags&&function(e,t,n){ph(t[Pi],0,t,n,Kd(e,n,t),eh(n.parent||t[Di],n,t))}(i,r,o)}function Jb(e,t,n){return Zb(e,"",t,"",n),Jb}function Zb(e,t,n,r,i){const o=ls(),s=wy(o,t,n,r);if(s!==mh){const n=ds(),a=Hs();Lh(n,a,o,e,s,o[Pi],i,!1),ngDevMode&&Xh(n.data,a,e,Cs()-1,t,r)}return Zb}function Xb(e,t,n,r,i,o,s){const a=ls(),u=Dy(a,t,n,r,i,o);if(u!==mh){const n=ds(),i=Hs();Lh(n,i,a,e,u,a[Pi],s,!1),ngDevMode&&Xh(n.data,i,e,Cs()-2,t,r,o)}return Xb}function eS(e,t,n,r,i,o,s,a,u){const c=ls(),l=Ty(c,t,n,r,i,o,s,a);if(l!==mh){const n=ds(),i=Hs();Lh(n,i,c,e,l,c[Pi],u,!1),ngDevMode&&Xh(n.data,i,e,Cs()-3,t,r,o,a)}return eS}function tS(e,t,n,r,i,o,s,a,u,c,l){const d=ls(),h=Ay(d,t,n,r,i,o,s,a,u,c);if(h!==mh){const n=ds(),i=Hs();Lh(n,i,d,e,h,d[Pi],l,!1),ngDevMode&&Xh(n.data,i,e,Cs()-4,t,r,o,a,c)}return tS}function nS(e,t,n,r,i,o,s,a,u,c,l,d,h){const p=ls(),f=Oy(p,t,n,r,i,o,s,a,u,c,l,d);if(f!==mh){const n=ds(),i=Hs();Lh(n,i,p,e,f,p[Pi],h,!1),ngDevMode&&Xh(n.data,i,e,Cs()-5,t,r,o,a,c,d)}return nS}function rS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f){const g=ls(),m=Ny(g,t,n,r,i,o,s,a,u,c,l,d,h,p);if(m!==mh){const n=ds(),i=Hs();Lh(n,i,g,e,m,g[Pi],f,!1),ngDevMode&&Xh(n.data,i,e,Cs()-6,t,r,o,a,c,d,p)}return rS}function iS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m){const v=ls(),y=My(v,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g);if(y!==mh){const n=ds(),i=Hs();Lh(n,i,v,e,y,v[Pi],m,!1),ngDevMode&&Xh(n.data,i,e,Cs()-7,t,r,o,a,c,d,p,g)}return iS}function oS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v,y){const E=ls(),_=Py(E,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v);if(_!==mh){const n=ds(),i=Hs();Lh(n,i,E,e,_,E[Pi],y,!1),ngDevMode&&Xh(n.data,i,e,Cs()-8,t,r,o,a,c,d,p,g,v)}return oS}function sS(e,t,n){const r=ls(),i=Iy(r,t);if(i!==mh){const o=ds(),s=Hs();if(Lh(o,s,r,e,i,r[Pi],n,!1),ngDevMode){const n=[t[0]];for(let e=2;e<t.length;e+=2)n.push(t[e]);Xh(o.data,s,e,Cs()-n.length+1,...n)}}return sS}function aS(e,t,n,r){Ig(e,t,n,r)}function uS(e,t,n){Cg(e,t,n)}function cS(e){const t=ls(),n=ds(),r=Ms();Ps(r+1);const i=Dg(n,r);if(e.dirty&&zo(t)===!(2&~i.metadata.flags)){if(null===i.matches)e.reset([]);else{const n=Tg(t,r);e.reset(n,hu),e.notifyOnChanges()}return!0}return!1}function lS(){return bg(ls(),Ms())}function dS(e,t,n,r,i){Fg(t,Ig(e,n,r,i))}function hS(e,t,n,r){Fg(e,Cg(t,n,r))}function pS(e=1){Ps(Ms()+e)}function fS(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function gS(e){return Go(function(){const e=is.lFrame.contextLView;return ngDevMode&&St(e,"contextLView must be defined."),e}(),qi+e)}function mS(e,t,n){lE(wy(ls(),e,t,n))}function vS(e,t,n,r,i){lE(Dy(ls(),e,t,n,r,i))}function yS(e,t,n,r,i,o,s){lE(Ty(ls(),e,t,n,r,i,o,s))}function ES(e,t,n,r,i,o,s,a,u){lE(Ay(ls(),e,t,n,r,i,o,s,a,u))}function _S(e,t,n,r,i,o,s,a,u,c,l){lE(Oy(ls(),e,t,n,r,i,o,s,a,u,c,l))}function bS(e,t,n,r,i,o,s,a,u,c,l,d,h){lE(Ny(ls(),e,t,n,r,i,o,s,a,u,c,l,d,h))}function SS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f){lE(My(ls(),e,t,n,r,i,o,s,a,u,c,l,d,h,p,f))}function CS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m){lE(Py(ls(),e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m))}function IS(e){lE(Iy(ls(),e))}function wS(e,t,n,r,i){return fE(e,wy(ls(),t,n,r),i,!1),wS}function DS(e,t,n,r,i,o,s){return fE(e,Dy(ls(),t,n,r,i,o),s,!1),DS}function TS(e,t,n,r,i,o,s,a,u){return fE(e,Ty(ls(),t,n,r,i,o,s,a),u,!1),TS}function AS(e,t,n,r,i,o,s,a,u,c,l){return fE(e,Ay(ls(),t,n,r,i,o,s,a,u,c),l,!1),AS}function OS(e,t,n,r,i,o,s,a,u,c,l,d,h){return fE(e,Oy(ls(),t,n,r,i,o,s,a,u,c,l,d),h,!1),OS}function NS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f){return fE(e,Ny(ls(),t,n,r,i,o,s,a,u,c,l,d,h,p),f,!1),NS}function MS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m){return fE(e,My(ls(),t,n,r,i,o,s,a,u,c,l,d,h,p,f,g),m,!1),MS}function PS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v,y){return fE(e,Py(ls(),t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m,v),y,!1),PS}function xS(e,t,n){return fE(e,Iy(ls(),t),n,!1),xS}function RS(e,t=""){const n=ls(),r=ds(),i=e+qi;ngDevMode&&ft(Cs(),r.bindingStartIndex,"text nodes should be created before any bindings"),ngDevMode&&wt(n,i);const o=r.firstCreatePass?Ch(r,i,1,t,null):r.data[i],s=kS(r,n,o,t,e);n[i]=s,Ys()&&oh(r,n,s,o),vs(o,!1)}let kS=(e,t,n,r,i)=>(Qs(!0),Fd(t[Pi],r));function LS(e,t,n,r,i){const o=t[Ti],s=!o||as()||ev(n)||Hc(o,i);if(Qs(s),s)return Fd(t[Pi],r);const a=Xp(o,e,t,n);return ngDevMode&&xp(a,Node.TEXT_NODE,null,t,n),ngDevMode&&Fc(a),a}function FS(e){return US("",e,""),FS}function US(e,t,n){const r=ls(),i=wy(r,e,t,n);return i!==mh&&op(r,Bs(),i),US}function jS(e,t,n,r,i){const o=ls(),s=Dy(o,e,t,n,r,i);return s!==mh&&op(o,Bs(),s),jS}function VS(e,t,n,r,i,o,s){const a=ls(),u=Ty(a,e,t,n,r,i,o,s);return u!==mh&&op(a,Bs(),u),VS}function BS(e,t,n,r,i,o,s,a,u){const c=ls(),l=Ay(c,e,t,n,r,i,o,s,a,u);return l!==mh&&op(c,Bs(),l),BS}function $S(e,t,n,r,i,o,s,a,u,c,l){const d=ls(),h=Oy(d,e,t,n,r,i,o,s,a,u,c,l);return h!==mh&&op(d,Bs(),h),$S}function HS(e,t,n,r,i,o,s,a,u,c,l,d,h){const p=ls(),f=Ny(p,e,t,n,r,i,o,s,a,u,c,l,d,h);return f!==mh&&op(p,Bs(),f),HS}function GS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f){const g=ls(),m=My(g,e,t,n,r,i,o,s,a,u,c,l,d,h,p,f);return m!==mh&&op(g,Bs(),m),GS}function qS(e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m){const v=ls(),y=Py(v,e,t,n,r,i,o,s,a,u,c,l,d,h,p,f,g,m);return y!==mh&&op(v,Bs(),y),qS}function zS(e){const t=ls(),n=Iy(t,e);return n!==mh&&op(t,Bs(),n),zS}function WS(e,t,n){Pg(t)&&(t=t());const r=ls(),i=ws();if(Qm(r,i,t)){const o=ds(),s=Hs();Lh(o,s,r,e,t,r[Pi],n,!1),ngDevMode&&Xh(o.data,s,e,i)}return WS}function KS(e,t){const n=Pg(e);return n&&e.set(t),n}function YS(e,t){const n=ls(),r=ds(),i=fs();return Gb(r,n,n[Pi],i,e,t),YS}function QS(e,t,n,r,i){if(e=ut(e),Array.isArray(e))for(let o=0;o<e.length;o++)QS(e[o],t,n,r,i);else{const o=ds(),s=ls(),a=fs();let u=zr(e)?e:ut(e.provide);const c=ti(e);ngDevMode&&Yt(new xa(a,s),u,(()=>{zt(e,i)}));const l=1048575&a.providerIndexes,d=a.directiveStart,h=a.providerIndexes>>20;if(zr(e)||!e.multi){const r=new oa(c,i,Eh),p=XS(u,t,i?l:l+h,d);-1===p?(ba(va(a,s),o,u),JS(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(r),s.push(r)):(n[p]=r,s[p]=r)}else{const p=XS(u,t,l+h,d),f=XS(u,t,l,l+h),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){ba(va(a,s),o,u);const l=function(e,t,n,r,i){const o=new oa(e,n,Eh);return o.multi=[],o.index=t,o.componentProviders=0,ZS(o,i,r&&!n),o}(i?tC:eC,n.length,i,r,c);!i&&m&&(n[f].providerFactory=l),JS(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(l),s.push(l)}else{const t=ZS(n[i?f:p],c,!i&&r);JS(o,e,p>-1?p:f,t)}!i&&r&&m&&n[f].componentProviders++}}}function JS(e,t,n,r){const i=zr(t),o=!!t.useClass;if(i||o){const s=(o?ut(t.useClass):t).prototype.ngOnDestroy;if(s){const o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){ngDevMode&&St(r,"indexInFactory when registering multi factory destroy hook");const e=o.indexOf(n);-1===e?o.push(n,[r,s]):o[e+1].push(r,s)}else o.push(n,s)}}}function ZS(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function XS(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function eC(e,t,n,r){return nC(this.multi,[])}function tC(e,t,n,r){const i=this.multi;let o;if(this.providerFactory){const e=this.providerFactory.componentProviders,t=Aa(n,n[Si],this.providerFactory.index,r);o=t.slice(0,e),nC(i,o);for(let n=e;n<t.length;n++)o.push(t[n])}else o=[],nC(i,o);return o}function nC(e,t){for(let n=0;n<e.length;n++){const r=e[n];t.push(r())}return t}function rC(e,t=[]){return n=>{n.providersResolver=(n,r)=>function(e,t,n){const r=ds();if(r.firstCreatePass){const i=ro(e);QS(n,r.data,r.blueprint,i,!0),QS(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}class iC{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){const t=Fr(!1,e.type),n=t.length>0?Um([t],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}static{this.ɵprov=At({token:iC,providedIn:"environment",factory:()=>new iC(In(Zr))})}}function oC(e){Ef("NgStandalone"),e.getStandaloneInjector=t=>t.get(iC).getOrCreateStandaloneInjector(e)}function sC(e,t,n){const r=e.ɵcmp;r.directiveDefs=xr(t,!1),r.pipeDefs=xr(n,!0)}function aC(e,t){return qe((()=>{const n=Nr(e,!0);n.declarations=uC(t.declarations||Wn),n.imports=uC(t.imports||Wn),n.exports=uC(t.exports||Wn),t.bootstrap&&(n.bootstrap=uC(t.bootstrap)),qf.registerNgModule(e,t)}))}function uC(e){if("function"==typeof e)return e;const t=Ln(e);return t.some(ct)?()=>t.map(ut).map(cC):t.map(cC)}function cC(e){return Ff(e)?e.ngModule:e}function lC(e,t,n){const r=Ss()+e,i=ls();return i[r]===mh?Km(i,r,n?t.call(n):t()):Ym(i,r)}function dC(e,t,n,r){return bC(ls(),Ss(),e,t,n,r)}function hC(e,t,n,r,i){return SC(ls(),Ss(),e,t,n,r,i)}function pC(e,t,n,r,i,o){return CC(ls(),Ss(),e,t,n,r,i,o)}function fC(e,t,n,r,i,o,s){return IC(ls(),Ss(),e,t,n,r,i,o,s)}function gC(e,t,n,r,i,o,s,a){const u=Ss()+e,c=ls(),l=Xm(c,u,n,r,i,o);return Qm(c,u+4,s)||l?Km(c,u+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):Ym(c,u+5)}function mC(e,t,n,r,i,o,s,a,u){const c=Ss()+e,l=ls(),d=Xm(l,c,n,r,i,o);return Jm(l,c+4,s,a)||d?Km(l,c+6,u?t.call(u,n,r,i,o,s,a):t(n,r,i,o,s,a)):Ym(l,c+6)}function vC(e,t,n,r,i,o,s,a,u,c){const l=Ss()+e,d=ls();let h=Xm(d,l,n,r,i,o);return Zm(d,l+4,s,a,u)||h?Km(d,l+7,c?t.call(c,n,r,i,o,s,a,u):t(n,r,i,o,s,a,u)):Ym(d,l+7)}function yC(e,t,n,r,i,o,s,a,u,c,l){const d=Ss()+e,h=ls(),p=Xm(h,d,n,r,i,o);return Xm(h,d+4,s,a,u,c)||p?Km(h,d+8,l?t.call(l,n,r,i,o,s,a,u,c):t(n,r,i,o,s,a,u,c)):Ym(h,d+8)}function EC(e,t,n,r){return wC(ls(),Ss(),e,t,n,r)}function _C(e,t){ngDevMode&&wt(e,t);const n=e[t];return n===mh?void 0:n}function bC(e,t,n,r,i,o){const s=t+n;return Qm(e,s,i)?Km(e,s+1,o?r.call(o,i):r(i)):_C(e,s+1)}function SC(e,t,n,r,i,o,s){const a=t+n;return Jm(e,a,i,o)?Km(e,a+2,s?r.call(s,i,o):r(i,o)):_C(e,a+2)}function CC(e,t,n,r,i,o,s,a){const u=t+n;return Zm(e,u,i,o,s)?Km(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):_C(e,u+3)}function IC(e,t,n,r,i,o,s,a,u){const c=t+n;return Xm(e,c,i,o,s,a)?Km(e,c+4,u?r.call(u,i,o,s,a):r(i,o,s,a)):_C(e,c+4)}function wC(e,t,n,r,i,o){let s=t+n,a=!1;for(let t=0;t<i.length;t++)Qm(e,s++,i[t])&&(a=!0);return a?Km(e,s,r.apply(o,i)):_C(e,s)}function DC(e,t){const n=ds();let r;const i=e+qi;n.firstCreatePass?(r=function(e,t){if(t){if(ngDevMode){t.filter((t=>t.name===e)).length>1&&console.warn(Ve(313,function(e){const t=ls(),n=t[Li][Oi],r=yd(t);return`Multiple pipes match the name \`${e}\`${n?` in the '${n.constructor.name}' component`:""}. ${"check "+(r?"'@Component.imports' of this component":"the imports of this module")}`}(e)))}for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}if(ngDevMode)throw new je(-302,function(e){const t=ls(),n=t[Li][Oi],r=yd(t);return`The pipe '${e}' could not be found${n?` in the '${n.constructor.name}' component`:""}. ${"Verify that it is "+(r?"included in the '@Component.imports' of this component":"declared or imported in this module")}`}(e))}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=kn(r.type,!0));let s;ngDevMode&&(s=$t({injector:new xa(fs(),ls()),token:r.type}));const a=fn(Eh);try{const e=ha(!1),t=o();return ha(e),fS(n,ls(),i,t),t}finally{fn(a),ngDevMode&&$t(s)}}function TC(e,t,n){const r=e+qi,i=ls(),o=Go(i,r);return PC(i,r)?bC(i,Ss(),t,o.transform,n,o):o.transform(n)}function AC(e,t,n,r){const i=e+qi,o=ls(),s=Go(o,i);return PC(o,i)?SC(o,Ss(),t,s.transform,n,r,s):s.transform(n,r)}function OC(e,t,n,r,i){const o=e+qi,s=ls(),a=Go(s,o);return PC(s,o)?CC(s,Ss(),t,a.transform,n,r,i,a):a.transform(n,r,i)}function NC(e,t,n,r,i,o){const s=e+qi,a=ls(),u=Go(a,s);return PC(a,s)?IC(a,Ss(),t,u.transform,n,r,i,o,u):u.transform(n,r,i,o)}function MC(e,t,n){const r=e+qi,i=ls(),o=Go(i,r);return PC(i,r)?wC(i,Ss(),t,o.transform,n,o):o.transform.apply(o,n)}function PC(e,t){return e[Si].data[t].pure}function xC(e,t){return Mp(e,t)}function RC(e,t){return()=>{try{return qf.getComponentDependencies(e,t).dependencies}catch(t){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,t),t}}}function kC(e,t){const n=Dr(e);null!==n&&(n.debugInfo=t)}const LC={ɵɵattribute:Cy,ɵɵattributeInterpolate1:xy,ɵɵattributeInterpolate2:Ry,ɵɵattributeInterpolate3:ky,ɵɵattributeInterpolate4:Ly,ɵɵattributeInterpolate5:Fy,ɵɵattributeInterpolate6:Uy,ɵɵattributeInterpolate7:jy,ɵɵattributeInterpolate8:Vy,ɵɵattributeInterpolateV:By,ɵɵdefineComponent:Er,ɵɵdefineDirective:Ir,ɵɵdefineInjectable:At,ɵɵdefineInjector:Nt,ɵɵdefineNgModule:Sr,ɵɵdefinePipe:wr,ɵɵdirectiveInject:Eh,ɵɵgetInheritedFactory:ka,ɵɵinject:In,ɵɵinjectAttribute:Ua,ɵɵinvalidFactory:_h,ɵɵinvalidFactoryDep:wn,ɵɵtemplateRefExtractor:xC,ɵɵresetView:ps,ɵɵHostDirectivesFeature:Im,ɵɵNgOnChangesFeature:Do,ɵɵProvidersFeature:rC,ɵɵCopyDefinitionFeature:Cm,ɵɵInheritDefinitionFeature:gm,ɵɵInputTransformsFeature:Nm,ɵɵStandaloneFeature:oC,ɵɵnextContext:Wb,ɵɵnamespaceHTML:zs,ɵɵnamespaceMathML:qs,ɵɵnamespaceSVG:Gs,ɵɵenableBindings:us,ɵɵdisableBindings:cs,ɵɵelementStart:ZE,ɵɵelementEnd:XE,ɵɵelement:e_,ɵɵelementContainerStart:r_,ɵɵelementContainerEnd:i_,ɵɵelementContainer:o_,ɵɵpureFunction0:lC,ɵɵpureFunction1:dC,ɵɵpureFunction2:hC,ɵɵpureFunction3:pC,ɵɵpureFunction4:fC,ɵɵpureFunction5:gC,ɵɵpureFunction6:mC,ɵɵpureFunction7:vC,ɵɵpureFunction8:yC,ɵɵpureFunctionV:EC,ɵɵgetCurrentView:u_,ɵɵrestoreView:hs,ɵɵlistener:$b,ɵɵprojection:Qb,ɵɵsyntheticHostProperty:l_,ɵɵsyntheticHostListener:Hb,ɵɵpipeBind1:TC,ɵɵpipeBind2:AC,ɵɵpipeBind3:OC,ɵɵpipeBind4:NC,ɵɵpipeBindV:MC,ɵɵprojectionDef:Yb,ɵɵhostProperty:c_,ɵɵproperty:sE,ɵɵpropertyInterpolate:Jb,ɵɵpropertyInterpolate1:Zb,ɵɵpropertyInterpolate2:Xb,ɵɵpropertyInterpolate3:eS,ɵɵpropertyInterpolate4:tS,ɵɵpropertyInterpolate5:nS,ɵɵpropertyInterpolate6:rS,ɵɵpropertyInterpolate7:iS,ɵɵpropertyInterpolate8:oS,ɵɵpropertyInterpolateV:sS,ɵɵpipe:DC,ɵɵqueryRefresh:cS,ɵɵqueryAdvance:pS,ɵɵviewQuery:uS,ɵɵviewQuerySignal:hS,ɵɵloadQuery:lS,ɵɵcontentQuery:aS,ɵɵcontentQuerySignal:dS,ɵɵreference:gS,ɵɵclassMap:hE,ɵɵclassMapInterpolate1:DE,ɵɵclassMapInterpolate2:TE,ɵɵclassMapInterpolate3:AE,ɵɵclassMapInterpolate4:OE,ɵɵclassMapInterpolate5:NE,ɵɵclassMapInterpolate6:ME,ɵɵclassMapInterpolate7:PE,ɵɵclassMapInterpolate8:xE,ɵɵclassMapInterpolateV:RE,ɵɵstyleMap:lE,ɵɵstyleMapInterpolate1:mS,ɵɵstyleMapInterpolate2:vS,ɵɵstyleMapInterpolate3:yS,ɵɵstyleMapInterpolate4:ES,ɵɵstyleMapInterpolate5:_S,ɵɵstyleMapInterpolate6:bS,ɵɵstyleMapInterpolate7:SS,ɵɵstyleMapInterpolate8:CS,ɵɵstyleMapInterpolateV:IS,ɵɵstyleProp:uE,ɵɵstylePropInterpolate1:wS,ɵɵstylePropInterpolate2:DS,ɵɵstylePropInterpolate3:TS,ɵɵstylePropInterpolate4:AS,ɵɵstylePropInterpolate5:OS,ɵɵstylePropInterpolate6:NS,ɵɵstylePropInterpolate7:MS,ɵɵstylePropInterpolate8:PS,ɵɵstylePropInterpolateV:xS,ɵɵclassProp:cE,ɵɵadvance:vh,ɵɵtemplate:tv,ɵɵconditional:$E,ɵɵdefer:Qv,ɵɵdeferWhen:Jv,ɵɵdeferOnIdle:Xv,ɵɵdeferOnImmediate:ty,ɵɵdeferOnTimer:ry,ɵɵdeferOnHover:oy,ɵɵdeferOnInteraction:ay,ɵɵdeferOnViewport:cy,ɵɵdeferPrefetchWhen:Zv,ɵɵdeferPrefetchOnIdle:ey,ɵɵdeferPrefetchOnImmediate:ny,ɵɵdeferPrefetchOnTimer:iy,ɵɵdeferPrefetchOnHover:sy,ɵɵdeferPrefetchOnInteraction:uy,ɵɵdeferPrefetchOnViewport:ly,ɵɵdeferEnableTimerScheduling:Yv,ɵɵrepeater:YE,ɵɵrepeaterCreate:WE,ɵɵrepeaterTrackByIndex:GE,ɵɵrepeaterTrackByIdentity:qE,ɵɵcomponentInstance:kE,ɵɵtext:RS,ɵɵtextInterpolate:FS,ɵɵtextInterpolate1:US,ɵɵtextInterpolate2:jS,ɵɵtextInterpolate3:VS,ɵɵtextInterpolate4:BS,ɵɵtextInterpolate5:$S,ɵɵtextInterpolate6:HS,ɵɵtextInterpolate7:GS,ɵɵtextInterpolate8:qS,ɵɵtextInterpolateV:zS,ɵɵi18n:Fb,ɵɵi18nAttributes:Ub,ɵɵi18nExp:jb,ɵɵi18nStart:kb,ɵɵi18nEnd:Lb,ɵɵi18nApply:Vb,ɵɵi18nPostprocess:Bb,ɵɵresolveWindow:Sd,ɵɵresolveDocument:Cd,ɵɵresolveBody:Id,ɵɵsetComponentScope:sC,ɵɵsetNgModuleScope:aC,ɵɵregisterNgModuleType:lm,ɵɵgetComponentDepsFactory:RC,ɵsetClassDebugInfo:kC,ɵɵsanitizeHtml:Wl,ɵɵsanitizeStyle:Kl,ɵɵsanitizeResourceUrl:Ql,ɵɵsanitizeScript:Jl,ɵɵsanitizeUrl:Yl,ɵɵsanitizeUrlOrResourceUrl:ed,ɵɵtrustConstantHtml:Zl,ɵɵtrustConstantResourceUrl:Xl,ɵɵvalidateIframeAttribute:pm,forwardRef:at,resolveForwardRef:ut,ɵɵtwoWayProperty:WS,ɵɵtwoWayBindingSet:KS,ɵɵtwoWayListener:YS,ɵɵInputFlags:er};let FC=null;function UC(){FC=null}const jC=[];let VC=!1;function BC(){if(!VC){VC=!0;try{for(let e=jC.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=jC[e];n.declarations&&n.declarations.every($C)&&(jC.splice(e,1),ZC(t,n))}}finally{VC=!1}}}function $C(e){return Array.isArray(e)?e.every($C):!!ut(e)}function HC(e,t={}){GC(e,t),void 0!==t.id&&lm(e,t.id),function(e,t){jC.push({moduleType:e,ngModule:t})}(e,t)}function GC(e,t,n=!1){ngDevMode&&St(e,"Required value moduleType"),ngDevMode&&St(t,"Required value ngModule");const r=Ln(t.declarations||Wn);let i=null;Object.defineProperty(e,en,{configurable:!0,get:()=>{if(null===i){if(ngDevMode&&t.imports&&t.imports.indexOf(e)>-1)throw new Error(`'${sn(e)}' module can't import itself`);const n=li({usage:0,kind:"NgModule",type:e});i=n.compileNgModule(LC,`ng:///${e.name}/ɵmod.js`,{type:e,bootstrap:Ln(t.bootstrap||Wn).map(ut),declarations:r.map(ut),imports:Ln(t.imports||Wn).map(ut).map(tI),exports:Ln(t.exports||Wn).map(ut).map(tI),schemas:t.schemas?Ln(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])}return i}});let o=null;Object.defineProperty(e,tn,{get:()=>{if(null===o){const t=li({usage:0,kind:"NgModule",type:e});o=t.compileFactory(LC,`ng:///${e.name}/ɵfac.js`,{name:e.name,type:e,deps:$a(e),target:t.FactoryTarget.NgModule,typeArgumentCount:0})}return o},configurable:!!ngDevMode});let s=null;Object.defineProperty(e,Lt,{get:()=>{if(null===s){ngDevMode&&zC(e,n);const r={name:e.name,type:e,providers:t.providers||Wn,imports:[(t.imports||Wn).map(ut),(t.exports||Wn).map(ut)]},i=li({usage:0,kind:"NgModule",type:e});s=i.compileInjector(LC,`ng:///${e.name}/ɵinj.js`,r)}return s},configurable:!!ngDevMode})}function qC(e,t){return`Unexpected "${sn(e)}" found in the "declarations" array of the ${t}, "${sn(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`}function zC(e,t,n){if(YC.get(e))return;if(Or(e))return;let r;if(YC.set(e,!0),e=ut(e),n){if(r=Nr(e),!r)throw new Error(`Unexpected value '${e.name}' imported by the module '${n.name}'. Please add an @NgModule annotation.`)}else r=Nr(e,!0);const i=[],o=Dd(r.declarations),s=Dd(r.imports);Ln(s).map(WC).forEach((t=>{l(t,e),zC(t,!1,e)}));const a=Dd(r.exports);o.forEach((function(t){Dr(t=ut(t))||Tr(t)||Ar(t)||i.push(`Unexpected value '${sn(t)}' declared by the module '${sn(e)}'. Please add a @Pipe/@Directive/@Component annotation.`)})),o.forEach((function(e){const t=Tr(e=ut(e));!Dr(e)&&t&&0==t.selectors.length&&i.push(`Directive ${sn(e)} has no selector, please add it!`)})),o.forEach((t=>function(e,t){const n=Dr(e=ut(e))||Tr(e)||Ar(e);if(n?.standalone){const n=`"${sn(t)}" NgModule`;i.push(qC(e,n))}}(t,e)));const u=[...o.map(ut),...Ln(s.map(JC)).map(ut)];a.forEach((function(t){const n=(Dr(t=ut(t))?"component":Tr(t)&&"directive")||Ar(t)&&"pipe";n&&-1===u.lastIndexOf(t)&&i.push(`Can't export ${n} ${sn(t)} from ${sn(e)} as it was neither declared nor imported!`)})),o.forEach((n=>function(t,n){t=ut(t);const r=KC.get(t);if(r&&r!==e){if(!n){const n=[r,e].map(sn).sort();i.push(`Type ${sn(t)} is part of the declarations of 2 modules: ${n[0]} and ${n[1]}! Please consider moving ${sn(t)} to a higher module that imports ${n[0]} and ${n[1]}. You can also create a new NgModule that exports and includes ${sn(t)} then import that NgModule in ${n[0]} and ${n[1]}.`)}}else KC.set(t,e)}(n,t)));const c=function(e,t){let n=null;return r(e.__annotations__),r(e.decorators),n;function r(e){e&&e.forEach(i)}function i(e){n||(Object.getPrototypeOf(e).ngMetadataName==t?n=e:e.type&&Object.getPrototypeOf(e.type).ngMetadataName==t&&(n=e.args[0]))}}(e,"NgModule");if(c&&(c.imports&&Ln(c.imports).map(WC).forEach((t=>{l(t,e),zC(t,!1,e)})),c.bootstrap&&Fn(c.bootstrap,(function(e){Dr(e=ut(e))||i.push(`${sn(e)} cannot be used as an entry component.`),Or(e)&&i.push(`The \`${sn(e)}\` class is a standalone component, which can not be used in the \`@NgModule.bootstrap\` array. Use the \`bootstrapApplication\` function for bootstrap instead.`)})),c.bootstrap&&Fn(c.bootstrap,(function(e){e=ut(e),KC.get(e)||Or(e)||i.push(`Component ${sn(e)} is not part of any NgModule or the module has not been imported into your module.`)}))),i.length)throw new Error(i.join("\n"));function l(e,t){const n=Dr(e=ut(e))||Tr(e);if(null!==n&&!n.standalone)throw new Error(`Unexpected directive '${e.name}' imported by the module '${t.name}'. Please add an @NgModule annotation.`);const r=Ar(e);if(null!==r&&!r.standalone)throw new Error(`Unexpected pipe '${e.name}' imported by the module '${t.name}'. Please add an @NgModule annotation.`)}}function WC(e){return(e=ut(e)).ngModule||e}let KC=new WeakMap,YC=new WeakMap;function QC(){KC=new WeakMap,YC=new WeakMap,jC.length=0,Rr.clear()}function JC(e){const t=Nr(e=ut(e));return null===t?[e]:Ln(Dd(t.exports).map((e=>Nr(e)?(zC(e,!1),JC(e)):e)))}function ZC(e,t){const n=Ln(t.declarations||Wn),r=eI(e);n.forEach((t=>{(t=ut(t)).hasOwnProperty(Jt)?XC(Dr(t),r):t.hasOwnProperty(Zt)||t.hasOwnProperty(Xt)||(t.ngSelectorScope=e)}))}function XC(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map((e=>e.hasOwnProperty(Jt)?Dr(e):Tr(e))).filter((e=>!!e)),e.pipeDefs=()=>Array.from(t.compilation.pipes).map((e=>Ar(e))),e.schemas=t.schemas,e.tView=null}function eI(e){if(Uf(e)){if(Hf){const t=qf.getNgModuleScope(e);return{schemas:Nr(e,!0).schemas||null,...t}}return function(e){const t=Nr(e,!0);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Dd(t.imports).forEach((e=>{const t=eI(e);t.exported.directives.forEach((e=>n.compilation.directives.add(e))),t.exported.pipes.forEach((e=>n.compilation.pipes.add(e)))})),Dd(t.declarations).forEach((e=>{Ar(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)})),Dd(t.exports).forEach((e=>{const t=e;if(Uf(t)){const e=eI(t);e.exported.directives.forEach((e=>{n.compilation.directives.add(e),n.exported.directives.add(e)})),e.exported.pipes.forEach((e=>{n.compilation.pipes.add(e),n.exported.pipes.add(e)}))}else Ar(t)?n.exported.pipes.add(t):n.exported.directives.add(t)})),t.transitiveCompileScopes=n,n}(e)}if(Or(e)){if(null!==(Dr(e)||Tr(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==Ar(e))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (ɵmod property)`)}function tI(e){return Ff(e)?e.ngModule:e}let nI=0;function rI(e,t){("undefined"==typeof ngDevMode||ngDevMode)&&et();let n=null;!function(e,t){im(t)&&(tm.set(e,t),nm.add(e))}(e,t),sI(e,t),Object.defineProperty(e,Jt,{get:()=>{if(null===n){const r=li({usage:0,kind:"component",type:e});if(im(t)){const n=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&n.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&n.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),t.styleUrl&&n.push(` - styleUrl: ${t.styleUrl}`),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=FC;let o=t.preserveWhitespaces;void 0===o&&(o=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let s=t.encapsulation;void 0===s&&(s=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:Xn.Emulated);const a=t.templateUrl||`ng:///${e.name}/template.html`,u={...uI(e,t),typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:o,styles:"string"==typeof t.styles?[t.styles]:t.styles||Wn,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:s,interpolation:t.interpolation,viewProviders:t.viewProviders||null};nI++;try{if(u.usesInheritance&&cI(e),n=r.compileComponent(LC,a,u),t.standalone){const r=Ln(t.imports||Wn),{directiveDefs:i,pipeDefs:o}=function(e,t){let n=null,r=null;return{directiveDefs:()=>{if(Hf){if(ngDevMode)for(const n of t)$f(n,e);return Bf(e)?[...qf.getStandaloneComponentScope(e,t).compilation.directives].map((e=>Dr(e)||Tr(e))).filter((e=>null!==e)):[]}if(null===n){n=[Dr(e)];const r=new Set([e]);for(const i of t){ngDevMode&&$f(i,e);const t=ut(i);if(!r.has(t))if(r.add(t),Nr(t)){const e=eI(t);for(const t of e.exported.directives){const e=Dr(t)||Tr(t);e&&!r.has(t)&&(r.add(t),n.push(e))}}else{const e=Dr(t)||Tr(t);e&&n.push(e)}}}return n},pipeDefs:()=>{if(Hf){if(ngDevMode)for(const n of t)$f(n,e);return Bf(e)?[...qf.getStandaloneComponentScope(e,t).compilation.pipes].map((e=>Ar(e))).filter((e=>null!==e)):[]}if(null===r){r=[];const e=new Set;for(const n of t){const t=ut(n);if(!e.has(t))if(e.add(t),Nr(t)){const n=eI(t);for(const t of n.exported.pipes){const n=Ar(t);n&&!e.has(t)&&(e.add(t),r.push(n))}}else{const e=Ar(t);e&&r.push(e)}}}return r}}}(e,r);n.directiveDefs=i,n.pipeDefs=o,n.dependencies=()=>r.map(ut)}}finally{nI--}if(0===nI&&BC(),void 0!==e.ngSelectorScope){const t=eI(e.ngSelectorScope);XC(n,t)}if(t.schemas){if(!t.standalone)throw new Error(`The 'schemas' was specified for the ${sn(e)} but is only valid on a component that is standalone.`);n.schemas=t.schemas}else t.standalone&&(n.schemas=[])}return n},configurable:!!ngDevMode})}function iI(e,t){let n=null;sI(e,t||{}),Object.defineProperty(e,Zt,{get:()=>{if(null===n){const r=oI(e,t||{}),i=li({usage:0,kind:"directive",type:e});n=i.compileDirective(LC,r.sourceMapUrl,r.metadata)}return n},configurable:!!ngDevMode})}function oI(e,t){const n=e&&e.name,r=`ng:///${n}/ɵdir.js`,i=li({usage:0,kind:"directive",type:e}),o=uI(e,t);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&cI(e),{metadata:o,sourceMapUrl:r}}function sI(e,t){let n=null;Object.defineProperty(e,tn,{get:()=>{if(null===n){const r=oI(e,t),i=li({usage:0,kind:"directive",type:e});n=i.compileFactory(LC,`ng:///${e.name}/ɵfac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:$a(e),target:i.FactoryTarget.Directive})}return n},configurable:!!ngDevMode})}function aI(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function uI(e,t){const n=Ba(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||zn,propMetadata:r,inputs:t.inputs||Wn,outputs:t.outputs||Wn,queries:dI(e,r,hI),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!aI(e),exportAs:(i=t.exportAs,void 0===i?null:gI(i)),providers:t.providers||null,viewQueries:dI(e,r,pI),isStandalone:!!t.standalone,isSignal:!!t.signals,hostDirectives:t.hostDirectives?.map((e=>"function"==typeof e?{directive:e}:e))||null};var i}function cI(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)Tr(n)||Dr(n)||!vI(n)||iI(n,null),n=Object.getPrototypeOf(n)}function lI(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?gI(n):ut(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly,isSignal:!!t.isSignal};var n}function dI(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const o=t[i];o.forEach((t=>{if(n(t)){if(!t.selector)throw new Error(`Can't construct a query for the property "${i}" of "${sn(e)}" since the query selector wasn't defined.`);if(o.some(fI))throw new Error("Cannot combine @Input decorators with query decorators");r.push(lI(i,t))}}))}return r}function hI(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function pI(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function fI(e){return"Input"===e.ngMetadataName}function gI(e){return e.split(",").map((e=>e.trim()))}const mI=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function vI(e){const t=Ba();if(mI.some((n=>t.hasLifecycleHook(e,n))))return!0;const n=t.propMetadata(e);for(const e in n){const t=n[e];for(let e=0;e<t.length;e++){const n=t[e],r=n.ngMetadataName;if(fI(n)||hI(n)||pI(n)||"Output"===r||"HostBinding"===r||"HostListener"===r)return!0}}return!1}function yI(e,t){let n=null,r=null;Object.defineProperty(e,tn,{get:()=>{if(null===r){const n=EI(e,t),i=li({usage:0,kind:"pipe",type:n.type});r=i.compileFactory(LC,`ng:///${n.name}/ɵfac.js`,{name:n.name,type:n.type,typeArgumentCount:0,deps:$a(e),target:i.FactoryTarget.Pipe})}return r},configurable:!!ngDevMode}),Object.defineProperty(e,Xt,{get:()=>{if(null===n){const r=EI(e,t),i=li({usage:0,kind:"pipe",type:r.type});n=i.compilePipe(LC,`ng:///${r.name}/ɵpipe.js`,r)}return n},configurable:!!ngDevMode})}function EI(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure,isStandalone:!!t.standalone}}const _I=Ye("Directive",((e={})=>e),void 0,void 0,((e,t)=>iI(e,t))),bI=Ye("Component",((e={})=>({changeDetection:Zn.Default,...e})),_I,void 0,((e,t)=>rI(e,t))),SI=Ye("Pipe",(e=>({pure:!0,...e})),void 0,void 0,((e,t)=>yI(e,t))),CI=Ze("Input",(e=>e?"string"==typeof e?{alias:e}:e:{})),II=Ze("Output",(e=>({alias:e}))),wI=Ze("HostBinding",(e=>({hostPropertyName:e}))),DI=Ze("HostListener",((e,t)=>({eventName:e,args:t}))),TI=Ye("NgModule",(e=>e),void 0,void 0,((e,t)=>HC(e,t)));class AI{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const OI=new AI("17.3.8");class NI{log(e){console.log(e)}warn(e){console.warn(e)}static{this.ɵfac=function(e){return new(e||NI)}}static{this.ɵprov=At({token:NI,factory:NI.ɵfac,providedIn:"platform"})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(NI,[{type:Wa,args:[{providedIn:"platform"}]}],null,null);let MI=new class{constructor(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}reset(){this.resolverToTokenToDependencies=new WeakMap,this.resolverToProviders=new WeakMap,this.standaloneInjectorToComponent=new WeakMap}};function PI(){return MI}function xI(e){e instanceof xa||Ct("getNodeInjectorContext must be called with a NodeInjector");const t=Ma(e),n=Pa(e);if(null!==n)return ao(n,t),{lView:t,tNode:n}}function RI(e){let t=null;return void 0===e||(t=e instanceof xa?Ma(e):e),t}function kI(e){const t=PI().resolverToProviders.get(e)??[];if(function(e){return e instanceof Xr&&e.scopes.has("platform")}(e))return t;const n=function(e){const{standaloneInjectorToComponent:t}=PI();if(t.has(e))return t.get(e);const n=e.get(Mm,null,{self:!0,optional:!0});return null===n||null===n.instance?null:n.instance.constructor}(e);if(null===n)return t;const r=function(e){const t=new Map,n=function(e,t){return(n,r)=>{if(e.has(n)||e.set(n,[r]),!t.has(r))for(const t of e.keys()){const n=e.get(t);let i=Rt(r);if(i||(i=Rt(r.ngModule)),!i)return;const o=n[0];let s=!1;Fn(i.imports,(n=>{s||(s=n.ngModule===o||n===o,s&&e.get(t)?.unshift(r))}))}t.add(r)}}(t,new Set);return jr(e,n,[],new Set),t}(n),i=[];for(const e of t){const t=e.provider,o=t.provide;if(o===Kn||o===Qn)continue;let s=r.get(t)??[];const a=Dr(n);!!a?.standalone&&(s=[n,...s]),i.push({...e,importPath:s})}return i}function LI(e){const t=[e];return FI(e,t),t}function FI(e,t){const n=function(e){if(e instanceof Xr)return e.parent;let t,n;if(e instanceof xa)t=Pa(e),n=Ma(e);else{if(e instanceof Jn)return null;if(e instanceof Yf)return e.parentInjector;Ct("getInjectorParent only support injectors of type R3Injector, NodeInjector, NullInjector, ChainedInjector")}const r=_a(t,n);if(ua(r)){const e=ca(r),t=la(r,n),i=t[Si].data[e+8];return new xa(i,t)}{const e=n[Ni],t=e.injector?.parent;if(t instanceof xa)return t}return null}(e);if(null===n){if(e instanceof xa){const e=t[0];if(e instanceof xa){const n=function(e){let t;e instanceof xa?t=Ma(e):Ct("getModuleInjectorOfNodeInjector must be called with a NodeInjector");const n=t[Ni],r=n instanceof Yf?n.parentInjector:n.parent;return r||Ct("NodeInjector must have some connection to the module injector tree"),r}(e);null===n&&Ct("NodeInjector must have some connection to the module injector tree"),t.push(n),FI(n,t)}return t}}else t.push(n),FI(n,t);return t}const UI="ng",jI={ɵgetDependenciesFromInjectable:function(e,t){const n=e.get(t,null,{self:!0,optional:!0});if(null===n)throw new Error(`Unable to determine instance of ${t} in given injector`);const r=function(e,t){const{resolverToTokenToDependencies:n}=PI();if(!(t instanceof xa))return n.get(t)?.get?.(e)??[];const r=Ma(t),i=n.get(r);return(i?.get(e)??[]).filter((e=>{const n=e.injectedIn?.tNode;if(void 0===n)return!1;const r=Pa(t);return co(n),co(r),n===r}))}(t,e),i=LI(e),o=r.map((e=>{const t={value:e.value},n=e.flags;t.flags={optional:!(8&~n),host:!(1&~n),self:!(2&~n),skipSelf:!(4&~n)};for(let n=0;n<i.length;n++){const r=i[n];if(0!==n||!t.flags.skipSelf){if(t.flags.host&&r instanceof Zr)break;if(null!==r.get(e.token,null,{self:!0,optional:!0})){if(t.flags.host){null!==i[0].get(e.token,null,{...t.flags,optional:!0})&&(t.providedIn=r);break}t.providedIn=r;break}if(0===n&&t.flags.self)break}}return e.token&&(t.token=e.token),t}));return{instance:n,dependencies:o}},ɵgetInjectorProviders:function(e){return e instanceof xa?function(e){const t=Pa(e),{resolverToProviders:n}=PI();return n.get(t)??[]}(e):e instanceof Zr?kI(e):void Ct("getInjectorProviders only supports NodeInjector and EnvironmentInjector")},ɵgetInjectorResolutionPath:LI,ɵgetInjectorMetadata:function(e){if(e instanceof xa){const t=Ma(e),n=Pa(e);return ao(n,t),{type:"element",source:$o(n,t)}}return e instanceof Xr?{type:"environment",source:e.source??null}:e instanceof Jn?{type:"null",source:null}:null},ɵsetProfiler:e=>{Po=e},getDirectiveMetadata:function(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=Dr(t);if(n)return{inputs:Xu(n.inputs),outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?Zn.OnPush:Zn.Default};const r=Tr(t);return r?{inputs:Xu(r.inputs),outputs:r.outputs}:null},getComponent:Hu,getContext:Gu,getListeners:Qu,getOwningComponent:qu,getHostElement:Yu,getInjector:Wu,getRootComponents:zu,getDirectives:Ku,applyChanges:function(e){ngDevMode&&St(e,"component"),wp(Ou(e)),zu(e).forEach((e=>function(e){const t=Ou(e);t[Ci]|=1024,yp(t)}(e)))},isSignal:Ag};let VI=!1;function BI(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Xe;ngDevMode&&St(t,"function not defined"),n[UI]??={},n[UI][e]=t}}const $I=new jt(""),HI=new jt("");class GI{constructor(e,t,n){this._ngZone=e,this.registry=t,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,WI||(zI(n),n.addToWindow(t)),this._watchAngularEvents(),e.run((()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular((()=>{this._ngZone.onStable.subscribe({next:()=>{Sf.assertNotInAngularZone(),queueMicrotask((()=>{this._isZoneStable=!0,this._runCallbacksIfReady()}))}})}))}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask((()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}}));else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter((t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((e=>({source:e.source,creationLocation:e.creationLocation,data:e.data}))):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout((()=>{this._callbacks=this._callbacks.filter((e=>e.timeoutId!==r)),e()}),t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,t,n){return[]}static{this.ɵfac=function(e){return new(e||GI)(In(Sf),In(qI),In(HI))}}static{this.ɵprov=At({token:GI,factory:GI.ɵfac})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(GI,[{type:Wa}],(()=>[{type:Sf},{type:qI},{type:void 0,decorators:[{type:Nn,args:[HI]}]}]),null);class qI{constructor(){this._applications=new Map}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return WI?.findTestabilityInTree(this,e,t)??null}static{this.ɵfac=function(e){return new(e||qI)}}static{this.ɵprov=At({token:qI,factory:qI.ɵfac,providedIn:"platform"})}}function zI(e){WI=e}let WI;function KI(e){return!!e&&"function"==typeof e.then}function YI(e){return!!e&&"function"==typeof e.subscribe}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(qI,[{type:Wa,args:[{providedIn:"platform"}]}],null,null);const QI=new jt(ngDevMode?"Application Initializer":"");class JI{constructor(){if(this.initialized=!1,this.done=!1,this.donePromise=new Promise(((e,t)=>{this.resolve=e,this.reject=t})),this.appInits=Dn(QI,{optional:!0})??[],("undefined"==typeof ngDevMode||ngDevMode)&&!Array.isArray(this.appInits))throw new je(-209,`Unexpected type of the \`APP_INITIALIZER\` token value (expected an array, but got ${typeof this.appInits}). Please check that the \`APP_INITIALIZER\` token is configured as a \`multi: true\` provider.`)}runInitializers(){if(this.initialized)return;const e=[];for(const t of this.appInits){const n=t();if(KI(n))e.push(n);else if(YI(n)){const t=new Promise(((e,t)=>{n.subscribe({complete:e,error:t})}));e.push(t)}}const t=()=>{this.done=!0,this.resolve()};Promise.all(e).then((()=>{t()})).catch((e=>{this.reject(e)})),0===e.length&&t(),this.initialized=!0}static{this.ɵfac=function(e){return new(e||JI)}}static{this.ɵprov=At({token:JI,factory:JI.ɵfac,providedIn:"root"})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(JI,[{type:Wa,args:[{providedIn:"root"}]}],(()=>[]),null);const ZI=new jt(ngDevMode?"appBootstrapListener":"");function XI(){ngDevMode&&function(){if(!VI){VI=!0,"undefined"!=typeof window&&(MI.reset(),Gt((e=>function(e){const{context:t,type:n}=e;0===n?function(e,t){const n=RI(e.injector);null===n&&Ct("An Inject event must be run within an injection context.");const r=MI.resolverToTokenToDependencies;if(r.has(n)||r.set(n,new WeakMap),!function(e){return null!==e&&("object"==typeof e||"function"==typeof e||"symbol"==typeof e)}(e.token))return;const i=r.get(n);i.has(e.token)||i.set(e.token,[]);const{token:o,value:s,flags:a}=t;St(e.token,"Injector profiler context token is undefined.");const u=i.get(e.token);St(u,"Could not resolve dependencies for token."),e.injector instanceof xa?u.push({token:o,value:s,flags:a,injectedIn:xI(e.injector)}):u.push({token:o,value:s,flags:a})}(t,e.service):1===n?function(e,t){const{value:n}=t;let r;if(null===RI(e.injector)&&Ct("An InjectorCreatedInstance event must be run within an injection context."),"object"==typeof n&&(r=n?.constructor),void 0===r||!function(e){const t=Dr(e);return!!t?.standalone}(r))return;const i=e.injector.get(Zr,null,{optional:!0});if(null===i)return;const{standaloneInjectorToComponent:o}=MI;o.has(i)||o.set(i,r)}(t,e.instance):2===n&&function(e,t){const{resolverToProviders:n}=MI;let r;r=e?.injector instanceof xa?Pa(e.injector):e.injector,null===r&&Ct("A ProviderConfigured event must be run within an injection context."),n.has(r)||n.set(r,[]),n.get(r).push(t)}(t,e.providerRecord)}(e))));for(const[e,t]of Object.entries(jI))BI(e,t)}}()}function ew(){M=()=>{throw new je(600,ngDevMode&&"Writing to signals is not allowed in a `computed` or an `effect` by default. Use `allowSignalWrites` in the `CreateEffectOptions` to enable this inside effects.")}}function tw(e){return e.isBoundToModule}class nw{constructor(e,t){this.name=e,this.token=t}}function rw(e,t,n){try{const r=n();return KI(r)?r.catch((n=>{throw t.runOutsideAngular((()=>e.handleError(n))),n})):r}catch(n){throw t.runOutsideAngular((()=>e.handleError(n))),n}}function iw(e,t){return Array.isArray(t)?t.reduce(iw,e):{...e,...t}}class ow{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Dn(eu),this.afterRenderEffectManager=Dn(Lf),this.externalTestViews=new Set,this.beforeRender=new be,this.afterTick=new be,this.componentTypes=[],this.components=[],this.isStable=Dn(Gm).hasPendingTasks.pipe(Ae((e=>!e))),this._injector=Dn(Zr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,t){("undefined"==typeof ngDevMode||ngDevMode)&&this.warnIfDestroyed();const n=e instanceof lf;if(!this._injector.get(JI).done){const t=!n&&Or(e),r=("undefined"==typeof ngDevMode||ngDevMode)&&"Cannot bootstrap as there are still asynchronous initializers running."+(t?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new je(405,r)}let r;r=n?e:this._injector.get(hf).resolveComponentFactory(e),this.componentTypes.push(r.componentType);const i=tw(r)?void 0:this._injector.get(Mm),o=t||r.selector,s=r.create(Qa.NULL,[],o,i),a=s.location.nativeElement,u=s.injector.get($I,null);return u?.registerApplication(a),s.onDestroy((()=>{this.detachView(s.hostView),sw(this.components,s),u?.unregisterApplication(a)})),this._loadComponent(s),("undefined"==typeof ngDevMode||ngDevMode)&&this._injector.get(NI).log("Angular is running in development mode."),s}tick(){this._tick(!0)}_tick(e){if(("undefined"==typeof ngDevMode||ngDevMode)&&this.warnIfDestroyed(),this._runningTick)throw new je(101,ngDevMode&&"ApplicationRef.tick is called recursively");const t=c(null);try{if(this._runningTick=!0,this.detectChangesInAttachedViews(e),"undefined"==typeof ngDevMode||ngDevMode)for(let e of this._views)e.checkNoChanges()}catch(e){this.internalErrorHandler(e)}finally{this.afterTick.next(),this._runningTick=!1,c(t)}}detectChangesInAttachedViews(e){let t=0;const n=this.afterRenderEffectManager;for(;;){if(t===vp)throw new je(103,ngDevMode&&"Infinite change detection while refreshing application views. Ensure afterRender or queueStateUpdate hooks are not continuously causing updates.");if(e){const e=0===t;this.beforeRender.next(e);for(let{_lView:t,notifyErrorHandler:n}of this._views)cw(t,e,n)}if(t++,n.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some((({_lView:e})=>lw(e)))&&(n.execute(),![...this.externalTestViews.keys(),...this._views].some((({_lView:e})=>lw(e)))))break}}attachView(e){("undefined"==typeof ngDevMode||ngDevMode)&&this.warnIfDestroyed();const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){("undefined"==typeof ngDevMode||ngDevMode)&&this.warnIfDestroyed();const t=e;sw(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const t=this._injector.get(ZI,[]);if(ngDevMode&&!Array.isArray(t))throw new je(-209,`Unexpected type of the \`APP_BOOTSTRAP_LISTENER\` token value (expected an array, but got ${typeof t}). Please check that the \`APP_BOOTSTRAP_LISTENER\` token is configured as a \`multi: true\` provider.`);[...this._bootstrapListeners,...t].forEach((t=>t(e)))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach((e=>e())),this._views.slice().forEach((e=>e.destroy()))}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return("undefined"==typeof ngDevMode||ngDevMode)&&this.warnIfDestroyed(),this._destroyListeners.push(e),()=>sw(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new je(406,ngDevMode&&"This instance of the `ApplicationRef` has already been destroyed.");const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){("undefined"==typeof ngDevMode||ngDevMode)&&this._destroyed&&console.warn(Ve(406,"This instance of the `ApplicationRef` has already been destroyed."))}static{this.ɵfac=function(e){return new(e||ow)}}static{this.ɵprov=At({token:ow,factory:ow.ɵfac,providedIn:"root"})}}function sw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let aw;function uw(e){aw??=new WeakMap;const t=aw.get(e);if(t)return t;const n=e.isStable.pipe(Le((e=>e))).toPromise().then((()=>{}));return aw.set(e,n),e.onDestroy((()=>aw?.delete(e))),n}function cw(e,t,n){(t||lw(e))&&function(e,t,n){let r;n?(r=0,e[Ci]|=1024):r=64&e[Ci]?0:1,yp(e,t,r)}(e,n,t)}function lw(e){return Zo(e)}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(ow,[{type:Wa,args:[{providedIn:"root"}]}],null,null);class dw{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}class hw{compileModuleSync(e){return new Lm(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const t=this.compileModuleSync(e),n=Dd(Nr(e).declarations).reduce(((e,t)=>{const n=Dr(t);return n&&e.push(new Qf(n)),e}),[]);return new dw(t,n)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static{this.ɵfac=function(e){return new(e||hw)}}static{this.ɵprov=At({token:hw,factory:hw.ɵfac,providedIn:"root"})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(hw,[{type:Wa,args:[{providedIn:"root"}]}],null,null);const pw=new jt(ngDevMode?"compilerOptions":"");class fw{}function gw(e,t,n){ngDevMode&&function(e,t="Type passed in is not NgModuleType, it does not have 'ɵmod' property."){Nr(e)||Ct(t)}(n);const r=new Lm(n);if("undefined"!=typeof ngJitMode&&!ngJitMode)return Promise.resolve(r);const i=e.get(pw,[]).concat(t);if(function(e){if(null!==FC){if(e.defaultEncapsulation!==FC.defaultEncapsulation)return void(ngDevMode&&console.error("Provided value for `defaultEncapsulation` can not be changed once it has been set."));if(e.preserveWhitespaces!==FC.preserveWhitespaces)return void(ngDevMode&&console.error("Provided value for `preserveWhitespaces` can not be changed once it has been set."))}FC=e}({defaultEncapsulation:mw(i.map((e=>e.defaultEncapsulation))),preserveWhitespaces:mw(i.map((e=>e.preserveWhitespaces)))}),0===tm.size)return Promise.resolve(r);const o=i.flatMap((e=>e.providers??[]));if(0===o.length)return Promise.resolve(r);const s=li({usage:0,kind:"NgModule",type:n}),a=Qa.create({providers:o}).get(s.ResourceLoader);return em((e=>Promise.resolve(a.get(e)))).then((()=>r))}function mw(e){for(let t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}class vw{constructor(){this.zone=Dn(Sf),this.applicationRef=Dn(ow)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run((()=>{this.applicationRef.tick()}))}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.ɵfac=function(e){return new(e||vw)}}static{this.ɵprov=At({token:vw,factory:vw.ɵfac,providedIn:"root"})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(vw,[{type:Wa,args:[{providedIn:"root"}]}],null,null);const yw=new jt("undefined"==typeof ngDevMode||ngDevMode?"provideZoneChangeDetection token":"");function Ew(e){return[{provide:Sf,useFactory:e},{provide:Kn,multi:!0,useFactory:()=>{const e=Dn(vw,{optional:!0});if(("undefined"==typeof ngDevMode||ngDevMode)&&null===e)throw new je(402,"A required Injectable was not found in the dependency injection tree. If you are bootstrapping an NgModule, make sure that the `BrowserModule` is imported.");return()=>e.initialize()}},{provide:Kn,multi:!0,useFactory:()=>{const e=Dn(Cw);return()=>{e.initialize()}}},{provide:eu,useFactory:_w}]}function _w(){const e=Dn(Sf),t=Dn(Xa);return n=>e.runOutsideAngular((()=>t.handleError(n)))}function bw(e){const t=Ew((()=>new Sf(Sw(e))));return kr(["undefined"==typeof ngDevMode||ngDevMode?{provide:yw,useValue:!0}:[],t])}function Sw(e){return{enableLongStackTrace:"undefined"!=typeof ngDevMode&&!!ngDevMode,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}class Cw{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=Dn(Sf),this.pendingTasks=Dn(Gm)}initialize(){if(this.initialized)return;this.initialized=!0;let e=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(e=this.pendingTasks.add()),this.zone.runOutsideAngular((()=>{this.subscription.add(this.zone.onStable.subscribe((()=>{Sf.assertNotInAngularZone(),queueMicrotask((()=>{null===e||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(this.pendingTasks.remove(e),e=null)}))})))})),this.subscription.add(this.zone.onUnstable.subscribe((()=>{Sf.assertInAngularZone(),e??=this.pendingTasks.add()})))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.ɵfac=function(e){return new(e||Cw)}}static{this.ɵprov=At({token:Cw,factory:Cw.ɵfac,providedIn:"root"})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(Cw,[{type:Wa,args:[{providedIn:"root"}]}],null,null);const Iw=new jt(ngDevMode?"LocaleId":"",{providedIn:"root",factory:()=>Dn(Iw,dn.Optional|dn.SkipSelf)||("undefined"!=typeof ngI18nClosureMode&&ngI18nClosureMode&&"undefined"!=typeof goog&&"en"!==goog.LOCALE?goog.LOCALE:"undefined"!=typeof $localize&&$localize.locale||S_)}),ww=new jt(ngDevMode?"DefaultCurrencyCode":"",{providedIn:"root",factory:()=>"USD"}),Dw=new jt(ngDevMode?"Translations":""),Tw=new jt(ngDevMode?"TranslationsFormat":"");var Aw;!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(Aw||(Aw={}));const Ow=new jt(ngDevMode?"PlatformDestroyListeners":"");class Nw{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e="zone.js",t){return"noop"===e?new Af:"zone.js"===e?new Sf(t):e}(t?.ngZone,Sw({eventCoalescing:t?.ngZoneEventCoalescing,runCoalescing:t?.ngZoneRunCoalescing}));return n.run((()=>{const t=(r=e.moduleType,i=this.injector,o=Ew((()=>n)),new km(r,i,o));var r,i,o;if(("undefined"==typeof ngDevMode||ngDevMode)&&null!==t.injector.get(yw,null))throw new je(207,"`bootstrapModule` does not support `provideZoneChangeDetection`. Use `BootstrapOptions` instead.");const s=t.injector.get(Xa,null);if(("undefined"==typeof ngDevMode||ngDevMode)&&null===s)throw new je(402,"No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular((()=>{const e=n.onError.subscribe({next:e=>{s.handleError(e)}});t.onDestroy((()=>{sw(this._modules,t),e.unsubscribe()}))})),rw(s,n,(()=>{const e=t.injector.get(JI);return e.runInitializers(),e.donePromise.then((()=>(T_(t.injector.get(Iw,S_)||S_),this._moduleDoBootstrap(t),t)))}))}))}bootstrapModule(e,t=[]){const n=iw({},t);return gw(this.injector,n,e).then((e=>this.bootstrapModuleFactory(e,n)))}_moduleDoBootstrap(e){const t=e.injector.get(ow);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((e=>t.bootstrap(e)));else{if(!e.instance.ngDoBootstrap)throw new je(-403,ngDevMode&&`The module ${rt(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,ngDevMode&&"The platform has already been destroyed!");this._modules.slice().forEach((e=>e.destroy())),this._destroyListeners.forEach((e=>e()));const e=this._injector.get(Ow,null);e&&(e.forEach((e=>e())),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.ɵfac=function(e){return new(e||Nw)(In(Qa))}}static{this.ɵprov=At({token:Nw,factory:Nw.ɵfac,providedIn:"platform"})}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(Nw,[{type:Wa,args:[{providedIn:"platform"}]}],(()=>[{type:Qa}]),null);let Mw=null;const Pw=new jt(ngDevMode?"AllowMultipleToken":"");function xw(e){if(Mw&&!Mw.get(Pw,!1))throw new je(400,ngDevMode&&"There can be only one platform. Destroy the previous one to create a new one.");XI(),ew(),Mw=e;const t=e.get(Nw);return jw(e),t}function Rw(e,t,n=[]){const r=`Platform: ${t}`,i=new jt(r);return(t=[])=>{let o=Fw();if(!o||o.injector.get(Pw,!1)){const o=[...n,...t,{provide:i,useValue:!0}];e?e(o):xw(kw(o,r))}return Lw(i)}}function kw(e=[],t){return Qa.create({name:t,providers:[{provide:Wr,useValue:"platform"},{provide:Ow,useValue:new Set([()=>Mw=null])},...e]})}function Lw(e){const t=Fw();if(!t)throw new je(401,ngDevMode&&"No platform exists!");if(("undefined"==typeof ngDevMode||ngDevMode)&&!t.injector.get(e,null))throw new je(400,"A platform with a different configuration has been created. Please destroy it first.");return t}function Fw(){return Mw?.get(Nw)??null}function Uw(){Fw()?.destroy()}function jw(e){const t=e.get(oc,null);t?.forEach((e=>e()))}function Vw(){return"undefined"==typeof ngDevMode||!!ngDevMode}function Bw(){("undefined"==typeof ngDevMode||ngDevMode)&&(Xe.ngDevMode=!1)}function $w(e){const t=dm(e);if(!t)throw Gw(e);return new Lm(t)}function Hw(e){const t=dm(e);if(!t)throw Gw(e);return t}function Gw(e){return new Error(`No module with ID ${e} loaded`)}class qw{static{this.__NG_ELEMENT_ID__=zw}}function zw(e){return function(e,t,n){if(to(e)&&!n){const n=qo(e.index,t);return new Dp(n,n)}if(47&e.type){const e=t[Li];return new Dp(e,t)}return null}(fs(),ls(),!(16&~e))}class Ww extends qw{}class Kw extends Ww{}class Yw{constructor(e,t){this.name=e,this.callback=t}}function Qw(e){return e.map((e=>e.nativeElement))}class Jw{constructor(e){this.nativeNode=e}get parent(){const e=this.nativeNode.parentNode;return e?new Zw(e):null}get injector(){return Wu(this.nativeNode)}get componentInstance(){const e=this.nativeNode;return e&&(Hu(e)||qu(e))}get context(){return Hu(this.nativeNode)||Gu(this.nativeNode)}get listeners(){return Qu(this.nativeNode).filter((e=>"dom"===e.type))}get references(){return function(e){const t=Tu(e);if(null===t)return{};if(void 0===t.localRefs){const e=t.lView;if(null===e)return{};t.localRefs=function(e,t){const n=e[Si].data[t];if(n&&n.localNames){const t={};let r=n.index+1;for(let i=0;i<n.localNames.length;i+=2)t[n.localNames[i]]=e[r],r++;return t}return null}(e,t.nodeIndex)}return t.localRefs||{}}(this.nativeNode)}get providerTokens(){return function(e){const t=Tu(e),n=t?t.lView:null;if(null===n)return[];const r=n[Si],i=r.data[t.nodeIndex],o=[],s=1048575&i.providerIndexes,a=i.directiveEnd;for(let e=s;e<a;e++){let t=r.data[e];void 0!==(u=t).type&&void 0!==u.declaredInputs&&void 0!==u.findHostDirectiveDefs&&(t=t.type),o.push(t)}var u;return o}(this.nativeNode)}}class Zw extends Jw{constructor(e){ngDevMode&&It(e),super(e)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const e=Tu(this.nativeNode),t=e?e.lView:null;return null!==t?t[Si].data[e.nodeIndex].value:this.nativeNode.nodeName}get properties(){const e=Tu(this.nativeNode),t=e?e.lView:null;if(null===t)return{};const n=t[Si].data,r=n[e.nodeIndex],i={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const r=Object.getOwnPropertyDescriptors(n);for(let n in r)if(!n.startsWith("__")&&!n.startsWith("on")){const r=e[n];Xw(r)&&(t[n]=r)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,i),function(e,t,n,r){let i=t.propertyBindings;if(null!==i)for(let t=0;t<i.length;t++){const o=i[t],s=r[o].split(wd),a=s[0];if(s.length>1){let t=s[1];for(let e=1;e<s.length-1;e++)t+=on(n[o+e-1])+s[e+1];e[a]=t}else e[a]=n[o]}}(i,r,t,n),i}get attributes(){const e={},t=this.nativeElement;if(!t)return e;const n=Tu(t),r=n?n.lView:null;if(null===r)return{};const i=r[Si].data[n.nodeIndex].attrs,o=[];if(i){let t=0;for(;t<i.length;){const n=i[t];if("string"!=typeof n)break;const r=i[t+1];e[n]=r,o.push(n.toLowerCase()),t+=2}}for(const n of t.attributes)o.includes(n.name)||(e[n.name]=n.value);return e}get styles(){const e=this.nativeElement;return e?.style??{}}get classes(){const e={},t=this.nativeElement.className;return("string"!=typeof t?t.baseVal.split(" "):t.split(" ")).forEach((t=>e[t]=!0)),e}get childNodes(){const e=this.nativeNode.childNodes,t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(sD(r))}return t}get children(){const e=this.nativeElement;if(!e)return[];const t=e.children,n=[];for(let e=0;e<t.length;e++){const r=t[e];n.push(sD(r))}return n}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return eD(this,e,t,!0),t}queryAllNodes(e){const t=[];return eD(this,e,t,!1),t}triggerEventHandler(e,t){const n=this.nativeNode,r=[];this.listeners.forEach((i=>{if(i.name===e){const e=i.callback;e.call(n,t),r.push(e)}})),"function"==typeof n.eventListeners&&n.eventListeners(e).forEach((e=>{if(-1!==e.toString().indexOf("__ngUnwrap__")){const i=e("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,t)}}))}}function Xw(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function eD(e,t,n,r){const i=Tu(e.nativeNode),o=i?i.lView:null;null!==o?tD(o[Si].data[i.nodeIndex],o,t,n,r,e.nativeNode):iD(e.nativeNode,t,n,r)}function tD(e,t,n,r,i,o){ngDevMode&&ao(e,t);const s=function(e,t){const n=null===e?-1:e.index;return-1!==n?(ngDevMode&&ao(e,t),jo(t[n])):null}(e,t);if(11&e.type){if(rD(s,n,r,i,o),to(e)){const s=qo(e.index,t);s&&s[Si].firstChild&&tD(s[Si].firstChild,s,n,r,i,o)}else e.child&&tD(e.child,t,n,r,i,o),s&&iD(s,n,r,i);const a=t[e.index];Xi(a)&&nD(a,n,r,i,o)}else if(4&e.type){const s=t[e.index];rD(s[Ki],n,r,i,o),nD(s,n,r,i,o)}else if(16&e.type){const s=t[Li],a=s[Di].projection[e.projection];if(Array.isArray(a))for(let e of a)rD(e,n,r,i,o);else if(a){const e=s[Ii];tD(e[Si].data[a.index],e,n,r,i,o)}}else e.child&&tD(e.child,t,n,r,i,o);if(o!==s){const s=2&e.flags?e.projectionNext:e.next;s&&tD(s,t,n,r,i,o)}}function nD(e,t,n,r,i){for(let o=Qi;o<e.length;o++){const s=e[o],a=s[Si].firstChild;a&&tD(a,s,t,n,r,i)}}function rD(e,t,n,r,i){if(i!==e){const i=sD(e);if(!i)return;(r&&i instanceof Zw&&t(i)&&-1===n.indexOf(i)||!r&&t(i)&&-1===n.indexOf(i))&&n.push(i)}}function iD(e,t,n,r){const i=e.childNodes,o=i.length;for(let e=0;e<o;e++){const o=i[e],s=sD(o);s&&((r&&s instanceof Zw&&t(s)&&-1===n.indexOf(s)||!r&&t(s)&&-1===n.indexOf(s))&&n.push(s),iD(o,t,n,r))}}new Map;const oD="__ng_debug__";function sD(e){return e instanceof Node?(e.hasOwnProperty(oD)||(e[oD]=e.nodeType==Node.ELEMENT_NODE?new Zw(e):new Jw(e)),e[oD]):null}class aD{constructor(){}supports(e){return qm(e)}create(e){return new cD(e)}}const uD=(e,t)=>t;class cD{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||uD}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const o=!n||t&&t.currentIndex<pD(n,r,i)?t:n,s=pD(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);const e=s-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;t<=o&&o<e&&(i[n]=r+1)}i[o.previousIndex]=t-e}}s!==a&&e(o,s,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!qm(e))throw new je(900,ngDevMode&&`Error trying to diff '${rt(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),o=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,(e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),o=!0),i=i._next,t++})),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):e=this._addAfter(new lD(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new hD),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hD),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}}class lD{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class dD{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class hD{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new dD,this.map.set(t,n)),n.add(e)}get(e,t){const n=e,r=this.map.get(n);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pD(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class fD{constructor(){}supports(e){return e instanceof Map||zm(e)}create(){return new gD}}class gD{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||zm(e)))throw new je(900,ngDevMode&&`Error trying to diff '${rt(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,((e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}})),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new mD(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((n=>t(e[n],n)))}}class mD{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vD(){return new yD([new aD])}class yD{static{this.ɵprov=At({token:yD,providedIn:"root",factory:vD})}constructor(e){this.factories=e}static create(e,t){if(null!=t){const n=t.factories.slice();e=e.concat(n)}return new yD(e)}static extend(e){return{provide:yD,useFactory:t=>yD.create(e,t||vD()),deps:[[yD,new xn,new Mn]]}}find(e){const t=this.factories.find((t=>t.supports(e)));if(null!=t)return t;throw new je(901,ngDevMode&&`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}function ED(){return new _D([new fD])}class _D{static{this.ɵprov=At({token:_D,providedIn:"root",factory:ED})}constructor(e){this.factories=e}static create(e,t){if(t){const n=t.factories.slice();e=e.concat(n)}return new _D(e)}static extend(e){return{provide:_D,useFactory:t=>_D.create(e,t||ED()),deps:[[_D,new xn,new Mn]]}}find(e){const t=this.factories.find((t=>t.supports(e)));if(t)return t;throw new je(901,ngDevMode&&`Cannot find a differ supporting object '${e}'`)}}const bD=[new fD],SD=[new aD],CD=new yD(SD),ID=new _D(bD),wD=Rw(null,"core",[]);class DD{constructor(e){}static{this.ɵfac=function(e){return new(e||DD)(In(ow))}}static{this.ɵmod=Sr({type:DD})}static{this.ɵinj=Nt({})}}function TD(e){}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(DD,[{type:TI}],(()=>[{type:ow}]),null);class AD{constructor(){this.window=null,this.observer=null,this.options=Dn(dc),this.ngZone=Dn(Sf)}start(){if("undefined"==typeof PerformanceObserver||this.options?.disableImageSizeWarning&&this.options?.disableImageLazyLoadWarning)return;this.observer=this.initPerformanceObserver();const e=nc(),t=e.defaultView;if(void 0!==t){this.window=t;const n=()=>{setTimeout(this.scanImages.bind(this),200)};this.ngZone.runOutsideAngular((()=>{"complete"===e.readyState?n():this.window?.addEventListener("load",n,{once:!0})}))}}ngOnDestroy(){this.observer?.disconnect()}initPerformanceObserver(){if("undefined"==typeof PerformanceObserver)return null;const e=new PerformanceObserver((e=>{const t=e.getEntries();if(0===t.length)return;const n=t[t.length-1],r=n.element?.src??"";r.startsWith("data:")||r.startsWith("blob:")||(this.lcpImageUrl=r)}));return e.observe({type:"largest-contentful-paint",buffered:!0}),e}scanImages(){const e=nc().querySelectorAll("img");let t,n=!1;var r;e.forEach((r=>{if(!this.options?.disableImageSizeWarning)for(const t of e)!t.getAttribute("ng-img")&&this.isOversized(t)&&(i=t.src,console.warn(Ve(-913,`An image with src ${i} has intrinsic file dimensions much larger than its rendered size. This can negatively impact application loading performance. For more information about addressing or disabling this warning, see https://angular.io/errors/NG0913`)));var i;!this.options?.disableImageLazyLoadWarning&&this.lcpImageUrl&&r.src===this.lcpImageUrl&&(t=!0,("lazy"!==r.loading||r.getAttribute("ng-img"))&&(n=!0))})),t&&!n&&this.lcpImageUrl&&!this.options?.disableImageLazyLoadWarning&&(r=this.lcpImageUrl,console.warn(Ve(-913,`An image with src ${r} is the Largest Contentful Paint (LCP) element but was given a "loading" value of "lazy", which can negatively impact application loading performance. This warning can be addressed by changing the loading value of the LCP image to "eager", or by using the NgOptimizedImage directive's prioritization utilities. For more information about addressing or disabling this warning, see https://angular.io/errors/NG0913`)))}isOversized(e){if(!this.window)return!1;const t=this.window.getComputedStyle(e);let n=parseFloat(t.getPropertyValue("width")),r=parseFloat(t.getPropertyValue("height"));const i=t.getPropertyValue("box-sizing");if("cover"===t.getPropertyValue("object-fit"))return!1;if("border-box"===i){const e=t.getPropertyValue("padding-top"),i=t.getPropertyValue("padding-right"),o=t.getPropertyValue("padding-bottom"),s=t.getPropertyValue("padding-left");n-=parseFloat(i)+parseFloat(s),r-=parseFloat(e)+parseFloat(o)}const o=e.naturalWidth,s=e.naturalHeight,a=this.window.devicePixelRatio*n,u=this.window.devicePixelRatio*r;return o-a>=1200||s-u>=1200}static{this.ɵfac=function(e){return new(e||AD)}}static{this.ɵprov=At({token:AD,factory:AD.ɵfac,providedIn:"root"})}}function OD(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e;"undefined"!=typeof ngDevMode&&!ngDevMode||void 0===t||function(e){if(Od(e),!Dr(e).standalone)throw new je(907,`The ${sn(e)} component is not marked as standalone, but Angular expects to have a standalone component here. Please make sure the ${sn(e)} component has the \`standalone: true\` flag in the decorator.`)}(t);const i=function(e=[]){if(Mw)return Mw;XI();const t=kw(e);return Mw=t,ew(),jw(t),t}(r),o=[bw(),...n||[]],s=new Fm({providers:o,parent:i,debugName:"undefined"==typeof ngDevMode||ngDevMode?"Environment Injector":"",runEnvironmentInitializers:!1}).injector,a=s.get(Sf);return a.run((()=>{s.resolveInjectorInitializers();const e=s.get(Xa,null);if(("undefined"==typeof ngDevMode||ngDevMode)&&!e)throw new je(402,"No `ErrorHandler` found in the Dependency Injection tree.");let n;a.runOutsideAngular((()=>{n=a.onError.subscribe({next:t=>{e.handleError(t)}})}));const r=()=>s.destroy(),o=i.get(Ow);return o.add(r),s.onDestroy((()=>{n.unsubscribe(),o.delete(r)})),rw(e,a,(()=>{const e=s.get(JI);return e.runInitializers(),e.donePromise.then((()=>{T_(s.get(Iw,S_)||S_);const e=s.get(ow);return void 0!==t&&e.bootstrap(t),("undefined"==typeof ngDevMode||ngDevMode)&&s.get(AD).start(),e}))}))}))}catch(e){return Promise.reject(e)}}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(AD,[{type:Wa,args:[{providedIn:"root"}]}],null,null);class ND{constructor(){this.appRef=Dn(ow),this.taskService=Dn(Gm),this.pendingRenderTaskId=null,this.shouldRefreshViews=!1}notify(e=0){this.shouldRefreshViews||=0===e,null===this.pendingRenderTaskId&&(this.pendingRenderTaskId=this.taskService.add(),this.raceTimeoutAndRequestAnimationFrame())}async raceTimeoutAndRequestAnimationFrame(){const e=new Promise((e=>setTimeout(e))),t="function"==typeof Xe.requestAnimationFrame?new Promise((e=>requestAnimationFrame((()=>e())))):null;await Promise.race([e,t]),this.tick()}tick(){try{this.appRef.destroyed||this.appRef._tick(this.shouldRefreshViews)}finally{this.shouldRefreshViews=!1;const e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static{this.ɵfac=function(e){return new(e||ND)}}static{this.ɵprov=At({token:ND,factory:ND.ɵfac,providedIn:"root"})}}function MD(){return kr([{provide:uf,useExisting:ND},{provide:Sf,useClass:Af}])}function PD(e,t){const n=e[Si];for(let i=qi;i<n.bindingStartIndex;i++)if(Xi(e[i])){const o=e[i];if(i!==n.bindingStartIndex-1){const s=n.data[i],a=Sv(n,s);if(null!==(r=a)&&"object"==typeof r&&"number"==typeof r.primaryTmplIndex){t.push({lContainer:o,lView:e,tNode:s,tDetails:a});continue}}for(let e=Qi;e<o.length;e++)PD(o[e],t)}else Zi(e[i])&&PD(e[i],t);var r}("undefined"==typeof ngDevMode||ngDevMode)&&Hm(ND,[{type:Wa,args:[{providedIn:"root"}]}],null,null);let xD=!1,RD=!1;const kD=1e4;function LD(){return kr([{provide:Gc,useFactory:()=>{let e=!0;if(Td()){const t=Dn(fc,{optional:!0});if(e=!!t?.get(Dc,null),!e&&"undefined"!=typeof ngDevMode&&ngDevMode){const e=Dn(NI),t=Ve(-505,"Angular hydration was requested on the client, but there was no serialized information present in the server response, thus hydration was not enabled. Make sure the `provideClientHydration()` is included into the list of providers in the server part of the application configuration.");e.warn(t)}}return e&&Ef("NgHydration"),e}},{provide:Kn,useValue:()=>{RD=!!Dn(Wc,{optional:!0}),Td()&&Dn(Gc)&&(function(){const e=nc();let t;for(const n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===Ac){t=n;break}if(!t)throw new je(-507,"undefined"!=typeof ngDevMode&&ngDevMode&&"Angular hydration logic detected that HTML content of this page was modified after it was produced during server side rendering. Make sure that there are no optimizations that remove comment nodes from HTML enabled on your CDN. Angular hydration relies on HTML produced by the server, including whitespaces and comment nodes.")}(),xD||(xD=!0,Oc=Nc,t_=n_,kS=LS,s_=a_,nv=iv,sg=dg,ag=lg,of=sf,Ph=xh,G_=q_))},multi:!0},{provide:zc,useFactory:()=>Td()&&Dn(Gc)},{provide:ZI,useFactory:()=>{if(Td()&&Dn(Gc)){const e=Dn(ow),t=Dn(Qa);return()=>{(function(e,t){const n=uw(e);if("undefined"!=typeof ngDevMode&&ngDevMode){const e=kD,r=t.get(NI),i=t.get(Sf).runOutsideAngular((()=>setTimeout((()=>function(e,t){const n=`Angular hydration expected the ApplicationRef.isStable() to emit \`true\`, but it didn't happen within ${e}ms. Angular hydration logic depends on the application becoming stable as a signal to complete hydration process.`;t.warn(Ve(-506,n))}(e,r)),e)));n.finally((()=>clearTimeout(i)))}return n})(e,t).then((()=>{!function(e){const t=e._views;for(const e of t){const t=Pc(e);null!==t&&null!==t[bi]&&(Zi(t)?Yp(t):(Yp(t[bi]),Kp(t)),ngDevMode&&ngDevMode.dehydratedViewsCleanupRuns++)}}(e),"undefined"!=typeof ngDevMode&&ngDevMode&&function(e){const t=e.get(NI),n=`Angular hydrated ${ngDevMode.hydratedComponents} component(s) and ${ngDevMode.hydratedNodes} node(s), ${ngDevMode.componentsSkippedHydration} component(s) were skipped. Learn more at https://angular.io/guide/hydration.`;t.log(n)}(t)}))}}return()=>{}},multi:!0}])}function FD(){return kr([{provide:Wc,useValue:!0}])}class UD{constructor(){this.views=[],this.indexByContent=new Map}add(e){const t=JSON.stringify(e);if(!this.indexByContent.has(t)){const n=this.views.length;return this.views.push(e),this.indexByContent.set(t,n),n}return this.indexByContent.get(t)}getAll(){return this.views}}let jD=0;function VD(e){return e.ssrId||(e.ssrId="t"+jD++),e.ssrId}function BD(e,t,n){const r=[];return pp(e,t,n,r),r.length}function $D(e){const t=[];return fp(e,t),t.length}function HD(e,t){const n=e[bi];return n&&!n.hasAttribute(vu)?JD(n,e,t):null}function GD(e,t){const n=Vo(e[bi]),r=HD(n,t),i=jo(n[bi]),o=`${r}|${JD(i,e[Ii],t)}`;n[Pi].setAttribute(i,Tc,o)}function qD(e,t){const n=new UD,r=new Map,i=e._views;for(const e of i){const i=Pc(e);if(null!==i){const e={serializedViewCollection:n,corruptedTextNodes:r};Xi(i)?GD(i,e):HD(i,e),ZD(r,t)}}const o=n.getAll();e.injector.get(fc).set(Dc,o)}function zD(e,t){const n=[];let r="";for(let i=Qi;i<e.length;i++){let o,s,a,u=e[i];if(io(u)&&(u=u[qi],Xi(u))){s=$D(u)+1,GD(u,t);const e=Vo(u[bi]);a={[Cc]:e[Si].ssrId,[Sc]:s}}if(!a){const n=u[Si];1===n.type?(o=n.ssrId,s=1):(o=VD(n),s=BD(n,u,n.firstChild)),a={[Cc]:o,[Sc]:s,...YD(e[i],t)}}const c=JSON.stringify(a);if(n.length>0&&c===r){const e=n[n.length-1];e[bc]??=1,e[bc]++}else r=c,n.push(a)}return n}function WD(e,t,n){const r=t.index-qi;e[Ic]??={},e[Ic][r]=function(e,t){let n,r,i,o=e.parent;for(;null!==o&&Zp(o,t);)o=o.parent;null!==o&&3&o.type?(n=o.index,r=jo(t[n]),i=on(n-qi)):(n=i=gc,r=t[Li][bi]);let s=jo(t[e.index]);if(12&e.type){const n=sh(t,e);n&&(s=n)}let a=rf(r,s,i);if(null===a&&r!==s&&(a=rf(r.ownerDocument.body,s,mc),null===a))throw function(e,t){const n=`${Bp(e,t,!1)}\n\n`,r=Gp();throw new je(-502,"During serialization, Angular was unable to find an element in the DOM:\n\n"+n+r)}(t,e);return a}(t,n)}function KD(e,t){const n=t.index-qi;e[wc]??=[],e[wc].includes(n)||e[wc].push(n)}function YD(e,t){const n={},r=e[Si];for(let o=qi;o<r.bindingStartIndex;o++){const s=r.data[o],a=o-qi;if(null!=(i=s)&&"object"==typeof i&&(null===i.insertBeforeIndex||"number"==typeof i.insertBeforeIndex||Array.isArray(i.insertBeforeIndex)))if(Zp(s,e)&&XD(s))KD(n,s);else{if(Array.isArray(s.projection))for(const t of s.projection)if(t){if(Array.isArray(t))throw Fp(jo(e[o]));oo(t)||Su(t)||(Zp(t,e)?KD(n,t):WD(n,t,e))}if(QD(n,s,e),Xi(e[o])){const r=s.tView;null!==r&&(n[Ec]??={},n[Ec][a]=VD(r));const i=e[o][bi];if(Array.isArray(i)){const e=jo(i);e.hasAttribute(vu)||JD(e,i,t)}n[_c]??={},n[_c][a]=zD(e[o],t)}else if(Array.isArray(e[o])){const n=jo(e[o][bi]);n.hasAttribute(vu)||JD(n,e[o],t)}else if(8&s.type)n[yc]??={},n[yc][a]=BD(r,e,s.child);else if(16&s.type){let t=s.next;for(;null!==t&&16&t.type;)t=t.next;t&&!Su(t)&&WD(n,t,e)}else if(1&s.type){const n=jo(e[o]);""===n.textContent?t.corruptedTextNodes.set(n,"ngetn"):n.nextSibling?.nodeType===Node.TEXT_NODE&&t.corruptedTextNodes.set(n,"ngtns")}}}var i;return n}function QD(e,t,n){t.projectionNext&&t.projectionNext!==t.next&&!Su(t.projectionNext)&&WD(e,t.projectionNext,n),null===t.prev&&null!==t.parent&&Zp(t.parent,n)&&!Zp(t,n)&&WD(e,t,n)}function JD(e,t,n){const r=t[Pi];if(function(e){return!(32&~e[Ci])}(t)&&!RD||function(e){const t=e[Oi];return!!t?.constructor&&Dr(t.constructor)?.encapsulation===Xn.ShadowDom}(t))return r.setAttribute(e,vu,""),null;{const i=YD(t,n),o=n.serializedViewCollection.add(i);return r.setAttribute(e,Tc,o.toString()),o}}function ZD(e,t){for(const[n,r]of e)n.after(t.createComment(r))}function XD(e){let t=e;for(;null!=t;){if(to(t))return!0;t=t.parent}return!1}function eT(e,t){!t&&si(eT);const n=t?.injector??Dn(Qa),r=n.get(ow);let i=!1;const o=()=>{i||r.destroyed||(i=!0,e())};Mf(o,{injector:n,runOnServer:!0}),queueMicrotask(o)}function tT(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function nT(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function rT(e){return li({usage:1,kind:"directive",type:e.type}).compileDirectiveDeclaration(LC,`ng:///${e.type.name}/ɵfac.js`,e)}function iT(e){Hm(e.type,e.decorators,e.ctorParameters??null,e.propDecorators??null)}function oT(e){return li({usage:1,kind:"component",type:e.type}).compileComponentDeclaration(LC,`ng:///${e.type.name}/ɵcmp.js`,e)}function sT(e){return li({usage:1,kind:aT(e.target),type:e.type}).compileFactoryDeclaration(LC,`ng:///${e.type.name}/ɵfac.js`,e)}function aT(e){switch(e){case ai.Directive:return"directive";case ai.Component:return"component";case ai.Injectable:return"injectable";case ai.Pipe:return"pipe";case ai.NgModule:return"NgModule"}}function uT(e){return li({usage:1,kind:"injectable",type:e.type}).compileInjectableDeclaration(LC,`ng:///${e.type.name}/ɵprov.js`,e)}function cT(e){return li({usage:1,kind:"NgModule",type:e.type}).compileInjectorDeclaration(LC,`ng:///${e.type.name}/ɵinj.js`,e)}function lT(e){return li({usage:1,kind:"NgModule",type:e.type}).compileNgModuleDeclaration(LC,`ng:///${e.type.name}/ɵmod.js`,e)}function dT(e){return li({usage:1,kind:"pipe",type:e.type}).compilePipeDeclaration(LC,`ng:///${e.type.name}/ɵpipe.js`,e)}function hT(e,t){Ef("NgSignals");const n=D(e);return t?.equal&&(n[u].equal=t.equal),ngDevMode&&(n.toString=()=>`[Computed: ${n()}]`),n}function pT(e){const t=c(null);try{return e()}finally{c(t)}}const fT=new jt("",{providedIn:"root",factory:()=>Dn(gT)});class gT{static{this.ɵprov=At({token:gT,providedIn:"root",factory:()=>new mT})}}class mT{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Dn(Gm),this.taskId=null}scheduleEffect(e){if(this.enqueue(e),null===this.taskId){const e=this.taskId=this.pendingTasks.add();queueMicrotask((()=>{this.flush(),this.pendingTasks.remove(e),this.taskId=null}))}}enqueue(e){const t=e.creationZone;this.queues.has(t)||this.queues.set(t,new Set);const n=this.queues.get(t);n.has(e)||(this.queuedEffectCount++,n.add(e))}flush(){for(;this.queuedEffectCount>0;)for(const[e,t]of this.queues)null===e?this.flushQueue(t):e.run((()=>this.flushQueue(t)))}flushQueue(e){for(const t of e)e.delete(t),this.queuedEffectCount--,t.run()}}class vT{constructor(e,t,n,r,i,o){this.scheduler=e,this.effectFn=t,this.creationZone=n,this.injector=i,this.watcher=function(e,t,n){const r=Object.create(F);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const i=e=>{r.cleanupFn=e};return r.ref={notify:()=>m(r),run:()=>{if(null===r.fn)return;if(s)throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!E(r))return;r.hasRun=!0;const e=v(r);try{r.cleanupFn(),r.cleanupFn=L,r.fn(i)}finally{y(r,e)}},cleanup:()=>r.cleanupFn(),destroy:()=>function(e){(function(e){return null===e.fn&&null===e.schedule})(e)||(_(e),e.cleanupFn(),e.fn=null,e.schedule=null,e.cleanupFn=L)}(r),[u]:r},r.ref}((e=>this.runEffect(e)),(()=>this.schedule()),o),this.unregisterOnDestroy=r?.onDestroy((()=>this.destroy()))}runEffect(e){try{this.effectFn(e)}catch(e){const t=this.injector.get(Xa,null,{optional:!0});t?.handleError(e)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function yT(e,t){Ef("NgSignals"),ngDevMode&&vf(yT,"Call `effect` outside of a reactive context. For example, schedule the effect inside the component constructor."),!t?.injector&&si(yT);const n=t?.injector??Dn(Qa),r=!0!==t?.manualCleanup?n.get(tu):null,i=new vT(n.get(fT),e,"undefined"==typeof Zone?null:Zone.current,r,n,t?.allowSignalWrites??!1),o=n.get(qw,null,{optional:!0});return o&&8&o._lView[Ci]?(o._lView[Hi]??=[]).push(i.watcher.notify):i.watcher.notify(),i}function ET(e,t){ngDevMode&&Od(e);const n=Dr(e),r=t.elementInjector||Jr();return new Qf(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function _T(e){const t=Dr(e);if(!t)return null;const n=new Qf(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}function bT(...e){return e.reduce(((e,t)=>Object.assign(e,t,{providers:[...e.providers,...t.providers]})),{providers:[]})}"undefined"!=typeof ngDevMode&&ngDevMode&&(Xe.$localize??=function(){throw new Error("It looks like your application or one of its dependencies is using i18n.\nAngular 9 introduced a global `$localize()` function that needs to be loaded.\nPlease run `ng add @angular/localize` from the Angular CLI.\n(For non-CLI projects, add `import '@angular/localize/init';` to your `polyfills.ts` file.\nFor server-side rendering applications add the import to your `main.server.ts` file.)")});var ST,CT=n(1606),IT=n(8792),wT=n(5420),DT={now:function(){return(DT.delegate||Date).now()},delegate:void 0},TT=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=DT);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return j(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,s=n._timestampProvider,a=n._windowTime;r||(i.push(t),!o&&i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var s=n.now(),a=0,u=1;u<r.length&&r[u]<=s;u+=2)a=u;a&&r.splice(0,a+1)}},t}(be),AT=new Uint8Array(16);function OT(){if(!ST&&!(ST="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ST(AT)}const NT=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var MT=[],PT=0;PT<256;++PT)MT.push((PT+256).toString(16).substr(1));const xT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(MT[e[t+0]]+MT[e[t+1]]+MT[e[t+2]]+MT[e[t+3]]+"-"+MT[e[t+4]]+MT[e[t+5]]+"-"+MT[e[t+6]]+MT[e[t+7]]+"-"+MT[e[t+8]]+MT[e[t+9]]+"-"+MT[e[t+10]]+MT[e[t+11]]+MT[e[t+12]]+MT[e[t+13]]+MT[e[t+14]]+MT[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&NT.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},RT=function(e,t,n){var r=(e=e||{}).random||(e.rng||OT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return xT(r)};var kT=n(4409);function LT(e){return e?.contentType===CT.CatalogContentType.POST}const FT="storefront-invalidation",UT="exp-bidirectional-router-event";var jT=n(4762);function VT(e){return t=>(n,r)=>{for(const i of t){const t=e(n,r,i);if(0!==t)return t}return e(n,r)}}function BT(e,t,n){const r=e[n.key],i=t[n.key];let o=0;switch(n.valueType){case"STRING":o=r.toString().localeCompare(i.toString());break;case"INT":o=parseInt(r,10)-parseInt(i,10)}return n.direction===CT.SortDirection.ASC?o:-o}const $T=VT((function(e,t,n){return n?n.index?(n.index.direction===CT.SortDirection.ASC?1:-1)*(e.index-t.index):n.publicationDate?(n.publicationDate.direction===CT.SortDirection.ASC?1:-1)*(e.publicationDate-t.publicationDate):n.property?BT(e.properties,t.properties,n.property):void 0:function(e,t){return e.publicationDate===t.publicationDate?e.id>t.id?1:-1:t.publicationDate-e.publicationDate}(e,t)}));VT((function(e,t,n){return n?n.name?function(e,t,n){const r=e.localeCompare(t);return n.direction===CT.SortDirection.ASC?r:-r}(e.name,t.name,n.name):n.property?BT(e.properties,t.properties,n.property):void 0:function(e,t){return e.id>t.id?1:-1}(e,t)}));var HT=n(7802);let GT=null;function qT(){return GT}class zT{}class WT{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:WT,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:WT,providedIn:"platform",useFactory:()=>window.navigation})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:WT,decorators:[{type:Wa,args:[{providedIn:"platform",useFactory:()=>window.navigation}]}]});const KT=new jt(ngDevMode?"DocumentToken":"");class YT{historyGo(e){throw new Error(ngDevMode?"Not implemented":"")}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:YT,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:YT,providedIn:"platform",useFactory:()=>Dn(JT)})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:YT,decorators:[{type:Wa,args:[{providedIn:"platform",useFactory:()=>Dn(JT)}]}]});const QT=new jt(ngDevMode?"Location Initialized":"");class JT extends YT{constructor(){super(),this._doc=Dn(KT),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return qT().getBaseHref(this._doc)}onPopState(e){const t=qT().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){const t=qT().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,t,n){this._history.pushState(e,t,n)}replaceState(e,t,n){this._history.replaceState(e,t,n)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:JT,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:JT,providedIn:"platform",useFactory:()=>new JT})}}function ZT(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function XT(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-("/"===e[n-1]?1:0);return e.slice(0,r)+e.slice(n)}function eA(e){return e&&"?"!==e[0]?"?"+e:e}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:JT,decorators:[{type:Wa,args:[{providedIn:"platform",useFactory:()=>new JT}]}],ctorParameters:()=>[]});class tA{historyGo(e){throw new Error(ngDevMode?"Not implemented":"")}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:tA,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:tA,providedIn:"root",useFactory:()=>Dn(rA)})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:tA,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:()=>Dn(rA)}]}]});const nA=new jt(ngDevMode?"appBaseHref":"");class rA extends tA{constructor(e,t){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??Dn(KT).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return ZT(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+eA(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+eA(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+eA(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:rA,deps:[{token:YT},{token:nA,optional:!0}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:rA,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:rA,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:YT},{type:void 0,decorators:[{type:Mn},{type:Nn,args:[nA]}]}]});class iA extends tA{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=t&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){const t=this._platformLocation.hash??"#";return t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=ZT(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+eA(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+eA(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:iA,deps:[{token:YT},{token:nA,optional:!0}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:iA})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:iA,decorators:[{type:Wa}],ctorParameters:()=>[{type:YT},{type:void 0,decorators:[{type:Mn},{type:Nn,args:[nA]}]}]});class oA{constructor(e){this._subject=new fu,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const t=this._locationStrategy.getBaseHref();this._basePath=function(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(XT(aA(t))),this._locationStrategy.onPopState((e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})}))}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+eA(t))}normalize(e){return oA.stripTrailingSlash(function(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,aA(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._locationStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+eA(t)),n)}replaceState(e,t="",n=null){this._locationStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+eA(t)),n)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe((e=>{this._notifyUrlChangeListeners(e.url,e.state)})),()=>{const t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach((n=>n(e,t)))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static{this.normalizeQueryParams=eA}static{this.joinWithSlash=ZT}static{this.stripTrailingSlash=XT}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:oA,deps:[{token:tA}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:oA,providedIn:"root",useFactory:sA})}}function sA(){return new oA(In(tA))}function aA(e){return e.replace(/\/index.html$/,"")}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:oA,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:sA}]}],ctorParameters:()=>[{type:tA}]});const uA={ADP:[void 0,void 0,0],AFN:[void 0,"؋",0],ALL:[void 0,void 0,0],AMD:[void 0,"֏",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"₼"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"৳"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN¥","¥"],COP:[void 0,"$",2],CRC:[void 0,"₡",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"Kč",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E£"],ESP:[void 0,"₧",0],EUR:["€"],FJD:[void 0,"$"],FKP:[void 0,"£"],GBP:["£"],GEL:[void 0,"₾"],GHS:[void 0,"GH₵"],GIP:[void 0,"£"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["₪"],INR:["₹"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["¥",void 0,0],KHR:[void 0,"៛"],KMF:[void 0,"CF",0],KPW:[void 0,"₩",0],KRW:["₩",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"₸"],LAK:[void 0,"₭",0],LBP:[void 0,"L£",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"₮",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"₦"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["₱"],PKR:[void 0,"Rs",2],PLN:[void 0,"zł"],PYG:[void 0,"₲",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"₽"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"£"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"£"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"£",0],THB:[void 0,"฿"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"₺"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"₴"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["₫",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["¤"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var cA,lA,dA,hA,pA;!function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific"}(cA||(cA={})),function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other"}(lA||(lA={})),function(e){e[e.Format=0]="Format",e[e.Standalone=1]="Standalone"}(dA||(dA={})),function(e){e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short"}(hA||(hA={})),function(e){e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full"}(pA||(pA={}));const fA={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};var gA;function mA(e,t){return CA(g_(e)[__.DateFormat],t)}function vA(e,t){return CA(g_(e)[__.TimeFormat],t)}function yA(e,t){return CA(g_(e)[__.DateTimeFormat],t)}function EA(e,t){const n=g_(e),r=n[__.NumberSymbols][t];if(void 0===r){if(t===fA.CurrencyDecimal)return n[__.NumberSymbols][fA.Decimal];if(t===fA.CurrencyGroup)return n[__.NumberSymbols][fA.Group]}return r}function _A(e,t){return g_(e)[__.NumberFormats][t]}!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(gA||(gA={}));const bA=v_;function SA(e){if(!e[__.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[__.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function CA(e,t){for(let n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function IA(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const wA=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,DA={},TA=/((?:[^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]*)/;var AA,OA,NA;function MA(e,t,n,r){let i=function(e){if(zA(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[t,n=1,r=1]=e.split("-").map((e=>+e));return PA(t,n-1,r)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(wA))return function(e){const t=new Date(0);let n=0,r=0;const i=e[8]?t.setUTCFullYear:t.setFullYear,o=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(t,s,a,u,c),t}(n)}const t=new Date(e);if(!zA(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=xA(n,t)||t;let o,s=[];for(;t;){if(o=TA.exec(t),!o){s.push(t);break}{s=s.concat(o.slice(1));const e=s.pop();if(!e)break;t=e}}let a=i.getTimezoneOffset();r&&(a=qA(r,a),i=function(e,t,n){const r=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(qA(t,r)-r))}(i,r));let u="";return s.forEach((e=>{const t=function(e){if(GA[e])return GA[e];let t;switch(e){case"G":case"GG":case"GGG":t=FA(NA.Eras,hA.Abbreviated);break;case"GGGG":t=FA(NA.Eras,hA.Wide);break;case"GGGGG":t=FA(NA.Eras,hA.Narrow);break;case"y":t=LA(OA.FullYear,1,0,!1,!0);break;case"yy":t=LA(OA.FullYear,2,0,!0,!0);break;case"yyy":t=LA(OA.FullYear,3,0,!1,!0);break;case"yyyy":t=LA(OA.FullYear,4,0,!1,!0);break;case"Y":t=HA(1);break;case"YY":t=HA(2,!0);break;case"YYY":t=HA(3);break;case"YYYY":t=HA(4);break;case"M":case"L":t=LA(OA.Month,1,1);break;case"MM":case"LL":t=LA(OA.Month,2,1);break;case"MMM":t=FA(NA.Months,hA.Abbreviated);break;case"MMMM":t=FA(NA.Months,hA.Wide);break;case"MMMMM":t=FA(NA.Months,hA.Narrow);break;case"LLL":t=FA(NA.Months,hA.Abbreviated,dA.Standalone);break;case"LLLL":t=FA(NA.Months,hA.Wide,dA.Standalone);break;case"LLLLL":t=FA(NA.Months,hA.Narrow,dA.Standalone);break;case"w":t=$A(1);break;case"ww":t=$A(2);break;case"W":t=$A(1,!0);break;case"d":t=LA(OA.Date,1);break;case"dd":t=LA(OA.Date,2);break;case"c":case"cc":t=LA(OA.Day,1);break;case"ccc":t=FA(NA.Days,hA.Abbreviated,dA.Standalone);break;case"cccc":t=FA(NA.Days,hA.Wide,dA.Standalone);break;case"ccccc":t=FA(NA.Days,hA.Narrow,dA.Standalone);break;case"cccccc":t=FA(NA.Days,hA.Short,dA.Standalone);break;case"E":case"EE":case"EEE":t=FA(NA.Days,hA.Abbreviated);break;case"EEEE":t=FA(NA.Days,hA.Wide);break;case"EEEEE":t=FA(NA.Days,hA.Narrow);break;case"EEEEEE":t=FA(NA.Days,hA.Short);break;case"a":case"aa":case"aaa":t=FA(NA.DayPeriods,hA.Abbreviated);break;case"aaaa":t=FA(NA.DayPeriods,hA.Wide);break;case"aaaaa":t=FA(NA.DayPeriods,hA.Narrow);break;case"b":case"bb":case"bbb":t=FA(NA.DayPeriods,hA.Abbreviated,dA.Standalone,!0);break;case"bbbb":t=FA(NA.DayPeriods,hA.Wide,dA.Standalone,!0);break;case"bbbbb":t=FA(NA.DayPeriods,hA.Narrow,dA.Standalone,!0);break;case"B":case"BB":case"BBB":t=FA(NA.DayPeriods,hA.Abbreviated,dA.Format,!0);break;case"BBBB":t=FA(NA.DayPeriods,hA.Wide,dA.Format,!0);break;case"BBBBB":t=FA(NA.DayPeriods,hA.Narrow,dA.Format,!0);break;case"h":t=LA(OA.Hours,1,-12);break;case"hh":t=LA(OA.Hours,2,-12);break;case"H":t=LA(OA.Hours,1);break;case"HH":t=LA(OA.Hours,2);break;case"m":t=LA(OA.Minutes,1);break;case"mm":t=LA(OA.Minutes,2);break;case"s":t=LA(OA.Seconds,1);break;case"ss":t=LA(OA.Seconds,2);break;case"S":t=LA(OA.FractionalSeconds,1);break;case"SS":t=LA(OA.FractionalSeconds,2);break;case"SSS":t=LA(OA.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=UA(AA.Short);break;case"ZZZZZ":t=UA(AA.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=UA(AA.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=UA(AA.Long);break;default:return null}return GA[e]=t,t}(e);u+=t?t(i,n,a):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),u}function PA(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function xA(e,t){const n=function(e){return g_(e)[__.LocaleId]}(e);if(DA[n]??={},DA[n][t])return DA[n][t];let r="";switch(t){case"shortDate":r=mA(e,pA.Short);break;case"mediumDate":r=mA(e,pA.Medium);break;case"longDate":r=mA(e,pA.Long);break;case"fullDate":r=mA(e,pA.Full);break;case"shortTime":r=vA(e,pA.Short);break;case"mediumTime":r=vA(e,pA.Medium);break;case"longTime":r=vA(e,pA.Long);break;case"fullTime":r=vA(e,pA.Full);break;case"short":const t=xA(e,"shortTime"),n=xA(e,"shortDate");r=RA(yA(e,pA.Short),[t,n]);break;case"medium":const i=xA(e,"mediumTime"),o=xA(e,"mediumDate");r=RA(yA(e,pA.Medium),[i,o]);break;case"long":const s=xA(e,"longTime"),a=xA(e,"longDate");r=RA(yA(e,pA.Long),[s,a]);break;case"full":const u=xA(e,"fullTime"),c=xA(e,"fullDate");r=RA(yA(e,pA.Full),[u,c])}return r&&(DA[n][t]=r),r}function RA(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function kA(e,t,n="-",r,i){let o="";(e<0||i&&e<=0)&&(i?e=1-e:(e=-e,o=n));let s=String(e);for(;s.length<t;)s="0"+s;return r&&(s=s.slice(s.length-t)),o+s}function LA(e,t,n=0,r=!1,i=!1){return function(o,s){let a=function(e,t){switch(e){case OA.FullYear:return t.getFullYear();case OA.Month:return t.getMonth();case OA.Date:return t.getDate();case OA.Hours:return t.getHours();case OA.Minutes:return t.getMinutes();case OA.Seconds:return t.getSeconds();case OA.FractionalSeconds:return t.getMilliseconds();case OA.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((n>0||a>-n)&&(a+=n),e===OA.Hours)0===a&&-12===n&&(a=12);else if(e===OA.FractionalSeconds)return u=t,kA(a,3).substring(0,u);var u;const c=EA(s,fA.MinusSign);return kA(a,t,c,r,i)}}function FA(e,t,n=dA.Format,r=!1){return function(i,o){return function(e,t,n,r,i,o){switch(n){case NA.Months:return function(e,t,n){const r=g_(e),i=CA([r[__.MonthsFormat],r[__.MonthsStandalone]],t);return CA(i,n)}(t,i,r)[e.getMonth()];case NA.Days:return function(e,t,n){const r=g_(e),i=CA([r[__.DaysFormat],r[__.DaysStandalone]],t);return CA(i,n)}(t,i,r)[e.getDay()];case NA.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(o){const e=function(e){const t=g_(e);return SA(t),(t[__.ExtraData][2]||[]).map((e=>"string"==typeof e?IA(e):[IA(e[0]),IA(e[1])]))}(t),n=function(e,t,n){const r=g_(e);SA(r);const i=CA([r[__.ExtraData][0],r[__.ExtraData][1]],t)||[];return CA(i,n)||[]}(t,i,r),o=e.findIndex((e=>{if(Array.isArray(e)){const[t,n]=e,r=s>=t.hours&&a>=t.minutes,i=s<n.hours||s===n.hours&&a<n.minutes;if(t.hours<n.hours){if(r&&i)return!0}else if(r||i)return!0}else if(e.hours===s&&e.minutes===a)return!0;return!1}));if(-1!==o)return n[o]}return function(e,t,n){const r=g_(e),i=CA([r[__.DayPeriodsFormat],r[__.DayPeriodsStandalone]],t);return CA(i,n)}(t,i,r)[s<12?0:1];case NA.Eras:return function(e,t){return CA(g_(e)[__.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(i,o,e,t,n,r)}}function UA(e){return function(t,n,r){const i=-1*r,o=EA(n,fA.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case AA.Short:return(i>=0?"+":"")+kA(s,2,o)+kA(Math.abs(i%60),2,o);case AA.ShortGMT:return"GMT"+(i>=0?"+":"")+kA(s,1,o);case AA.Long:return"GMT"+(i>=0?"+":"")+kA(s,2,o)+":"+kA(Math.abs(i%60),2,o);case AA.Extended:return 0===r?"Z":(i>=0?"+":"")+kA(s,2,o)+":"+kA(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}!function(e){e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended"}(AA||(AA={})),function(e){e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day"}(OA||(OA={})),function(e){e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras"}(NA||(NA={}));const jA=0,VA=4;function BA(e){const t=e.getDay(),n=0===t?-3:VA-t;return PA(e.getFullYear(),e.getMonth(),e.getDate()+n)}function $A(e,t=!1){return function(n,r){let i;if(t){const e=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,t=n.getDate();i=1+Math.floor((t+e)/7)}else{const e=BA(n),t=function(e){const t=PA(e,jA,1).getDay();return PA(e,0,1+(t<=VA?VA:VA+7)-t)}(e.getFullYear()),r=e.getTime()-t.getTime();i=1+Math.round(r/6048e5)}return kA(i,e,EA(r,fA.MinusSign))}}function HA(e,t=!1){return function(n,r){return kA(BA(n).getFullYear(),e,EA(r,fA.MinusSign),t)}}const GA={};function qA(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function zA(e){return e instanceof Date&&!isNaN(e.valueOf())}const WA=/^(\d+)?\.((\d+)(-(\d+))?)?$/,KA=22,YA=".",QA="0",JA=";",ZA=",",XA="#";function eO(e,t,n,r,i,o,s=!1){let a="",u=!1;if(isFinite(e)){let c=function(e){let t,n,r,i,o,s=Math.abs(e)+"",a=0;for((n=s.indexOf(YA))>-1&&(s=s.replace(YA,"")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;s.charAt(r)===QA;r++);if(r===(o=s.length))t=[0],n=1;else{for(o--;s.charAt(o)===QA;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=Number(s.charAt(r))}return n>KA&&(t=t.splice(0,KA-1),a=n-1,n=1),{digits:t,exponent:a,integerLen:n}}(e);s&&(c=function(e){if(0===e.digits[0])return e;const t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));let l=t.minInt,d=t.minFrac,h=t.maxFrac;if(o){const e=o.match(WA);if(null===e)throw new Error(`${o} is not a valid digit info`);const t=e[1],n=e[3],r=e[5];null!=t&&(l=nO(t)),null!=n&&(d=nO(n)),null!=r?h=nO(r):null!=n&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen;const o=Math.min(Math.max(t,i),n);let s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let e=s;e<r.length;e++)r[e]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let e=1;e<s;e++)r[e]=0}if(a>=5)if(s-1<0){for(let t=0;t>s;t--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let u=0!==o;const c=t+e.integerLen,l=r.reduceRight((function(e,t,n,r){return t+=e,r[n]=t<10?t:t-10,u&&(0===r[n]&&n>=c?r.pop():u=!1),t>=10?1:0}),0);l&&(r.unshift(l),e.integerLen++)}(c,d,h);let p=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(u=p.every((e=>!e));f<l;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?m=p.splice(f,p.length):(m=p,p=[0]);const v=[];for(p.length>=t.lgSize&&v.unshift(p.splice(-t.lgSize,p.length).join(""));p.length>t.gSize;)v.unshift(p.splice(-t.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(EA(n,r)),m.length&&(a+=EA(n,i)+m.join("")),g&&(a+=EA(n,fA.Exponential)+"+"+g)}else a=EA(n,fA.Infinity);return a=e<0&&!u?t.negPre+a+t.negSuf:t.posPre+a+t.posSuf,a}function tO(e,t="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(JA),i=r[0],o=r[1],s=-1!==i.indexOf(YA)?i.split(YA):[i.substring(0,i.lastIndexOf(QA)+1),i.substring(i.lastIndexOf(QA)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(XA));for(let e=0;e<u.length;e++){const t=u.charAt(e);t===QA?n.minFrac=n.maxFrac=e+1:t===XA?n.maxFrac=e+1:n.posSuf+=t}const c=a.split(ZA);if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){const e=i.length-n.posPre.length-n.posSuf.length,t=o.indexOf(XA);n.negPre=o.substring(0,t).replace(/'/g,""),n.negSuf=o.slice(t+e).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function nO(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}class rO{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:rO,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:rO,providedIn:"root",useFactory:e=>new oO(e),deps:[{token:Iw}]})}}function iO(e,t,n,r){let i=`=${e}`;if(t.indexOf(i)>-1)return i;if(i=n.getPluralCategory(e,r),t.indexOf(i)>-1)return i;if(t.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${e}"`)}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:rO,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:e=>new oO(e),deps:[Iw]}]}]});class oO extends rO{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(bA(t||this.locale)(e)){case lA.Zero:return"zero";case lA.One:return"one";case lA.Two:return"two";case lA.Few:return"few";case lA.Many:return"many";default:return"other"}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:oO,deps:[{token:Iw}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:oO})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:oO,decorators:[{type:Wa}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[Iw]}]}]});const sO=/\s+/,aO=[];class uO{constructor(e,t){this._ngEl=e,this._renderer=t,this.initialClasses=aO,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(sO):aO}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(sO):e}ngDoCheck(){for(const e of this.initialClasses)this._updateState(e,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const t of e)this._updateState(t,!0);else if(null!=e)for(const t of Object.keys(e))this._updateState(t,Boolean(e[t]));this._applyStateDiff()}_updateState(e,t){const n=this.stateMap.get(e);void 0!==n?(n.enabled!==t&&(n.changed=!0,n.enabled=t),n.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const t=e[0],n=e[1];n.changed?(this._toggleClass(t,n.enabled),n.changed=!1):n.touched||(n.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),n.touched=!1}}_toggleClass(e,t){if(ngDevMode&&"string"!=typeof e)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${rt(e)}`);(e=e.trim()).length>0&&e.split(sO).forEach((e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)}))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:uO,deps:[{token:du},{token:ff}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:uO,isStandalone:!0,selector:"[ngClass]",inputs:{klass:["class","klass"],ngClass:"ngClass"},ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:uO,decorators:[{type:_I,args:[{selector:"[ngClass]",standalone:!0}]}],ctorParameters:()=>[{type:du},{type:ff}],propDecorators:{klass:[{type:CI,args:["class"]}],ngClass:[{type:CI,args:["ngClass"]}]}});class cO{constructor(e){this._viewContainerRef=e,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(e){return void 0!==e.ngComponentOutletNgModule||void 0!==e.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(e){return void 0!==e.ngComponentOutlet||void 0!==e.ngComponentOutletContent||void 0!==e.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=xm(this.ngComponentOutletNgModule,lO(t)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(lO(t)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:t,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(const[t,n]of this._inputsUsed)n?(e.setInput(t,this.ngComponentOutletInputs[t]),this._inputsUsed.set(t,!1)):(e.setInput(t,void 0),this._inputsUsed.delete(t))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:cO,deps:[{token:Xf}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:cO,isStandalone:!0,selector:"[ngComponentOutlet]",inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},usesOnChanges:!0,ngImport:r})}}function lO(e){return e.get(Mm).injector}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:cO,decorators:[{type:_I,args:[{selector:"[ngComponentOutlet]",standalone:!0}]}],ctorParameters:()=>[{type:Xf}],propDecorators:{ngComponentOutlet:[{type:CI}],ngComponentOutletInputs:[{type:CI}],ngComponentOutletInjector:[{type:CI}],ngComponentOutletContent:[{type:CI}],ngComponentOutletNgModule:[{type:CI}],ngComponentOutletNgModuleFactory:[{type:CI}]}});class dO{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class hO{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){"undefined"!=typeof ngDevMode&&!ngDevMode||null==e||"function"==typeof e||console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;if(!this._differ&&t)if("undefined"==typeof ngDevMode||ngDevMode)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch{let n=`Cannot find a differ supporting object '${t}' of type '${e=t,e.name||typeof e}'. NgFor only supports binding to Iterables, such as Arrays.`;throw"object"==typeof t&&(n+=" Did you mean to use the keyvalue pipe?"),new je(-2200,n)}else this._differ=this._differs.find(t).create(this.ngForTrackBy)}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=this._viewContainer;e.forEachOperation(((e,n,r)=>{if(null==e.previousIndex)t.createEmbeddedView(this._template,new dO(e.item,this._ngForOf,-1,-1),null===r?void 0:r);else if(null==r)t.remove(null===n?void 0:n);else if(null!==n){const i=t.get(n);t.move(i,r),pO(i,e)}}));for(let e=0,n=t.length;e<n;e++){const r=t.get(e).context;r.index=e,r.count=n,r.ngForOf=this._ngForOf}e.forEachIdentityChange((e=>{pO(t.get(e.currentIndex),e)}))}static ngTemplateContextGuard(e,t){return!0}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:hO,deps:[{token:Xf},{token:Tp},{token:yD}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:hO,isStandalone:!0,selector:"[ngFor][ngForOf]",inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},ngImport:r})}}function pO(e,t){e.context.$implicit=t.item}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:hO,decorators:[{type:_I,args:[{selector:"[ngFor][ngForOf]",standalone:!0}]}],ctorParameters:()=>[{type:Xf},{type:Tp},{type:yD}],propDecorators:{ngForOf:[{type:CI}],ngForTrackBy:[{type:CI}],ngForTemplate:[{type:CI}]}});class fO{constructor(e,t){this._viewContainer=e,this._context=new gO,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){mO("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){mO("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,t){return!0}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:fO,deps:[{token:Xf},{token:Tp}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:fO,isStandalone:!0,selector:"[ngIf]",inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:fO,decorators:[{type:_I,args:[{selector:"[ngIf]",standalone:!0}]}],ctorParameters:()=>[{type:Xf},{type:Tp}],propDecorators:{ngIf:[{type:CI}],ngIfThen:[{type:CI}],ngIfElse:[{type:CI}]}});class gO{constructor(){this.$implicit=null,this.ngIf=null}}function mO(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${rt(t)}'.`)}class vO{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}class yO{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const t=e===this._ngSwitch;return"undefined"!=typeof ngDevMode&&!ngDevMode||t===(e==this._ngSwitch)||console.warn(Ve(2001,`As of Angular v17 the NgSwitch directive uses strict equality comparison === instead of == to match different cases. Previously the case value "${SO(e)}" matched switch expression value "${SO(this._ngSwitch)}", but this is no longer the case with the stricter equality check. Your comparison results return different results using === vs. == and you should adjust your ngSwitch expression and / or values to conform with the strict equality requirements.`)),this._lastCasesMatched||=t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const t of this._defaultViews)t.enforceState(e)}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:yO,deps:[],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:yO,isStandalone:!0,selector:"[ngSwitch]",inputs:{ngSwitch:"ngSwitch"},ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:yO,decorators:[{type:_I,args:[{selector:"[ngSwitch]",standalone:!0}]}],propDecorators:{ngSwitch:[{type:CI}]}});class EO{constructor(e,t,n){this.ngSwitch=n,"undefined"!=typeof ngDevMode&&!ngDevMode||n||bO("ngSwitchCase","NgSwitchCase"),n._addCase(),this._view=new vO(e,t)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:EO,deps:[{token:Xf},{token:Tp},{token:yO,host:!0,optional:!0}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:EO,isStandalone:!0,selector:"[ngSwitchCase]",inputs:{ngSwitchCase:"ngSwitchCase"},ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:EO,decorators:[{type:_I,args:[{selector:"[ngSwitchCase]",standalone:!0}]}],ctorParameters:()=>[{type:Xf},{type:Tp},{type:yO,decorators:[{type:Mn},{type:Rn}]}],propDecorators:{ngSwitchCase:[{type:CI}]}});class _O{constructor(e,t,n){"undefined"!=typeof ngDevMode&&!ngDevMode||n||bO("ngSwitchDefault","NgSwitchDefault"),n._addDefault(new vO(e,t))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:_O,deps:[{token:Xf},{token:Tp},{token:yO,host:!0,optional:!0}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:_O,isStandalone:!0,selector:"[ngSwitchDefault]",ngImport:r})}}function bO(e,t){throw new je(2e3,`An element with the "${e}" attribute (matching the "${t}" directive) must be located inside an element with the "ngSwitch" attribute (matching "NgSwitch" directive)`)}function SO(e){return"string"==typeof e?`'${e}'`:String(e)}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:_O,decorators:[{type:_I,args:[{selector:"[ngSwitchDefault]",standalone:!0}]}],ctorParameters:()=>[{type:Xf},{type:Tp},{type:yO,decorators:[{type:Mn},{type:Rn}]}]});class CO{constructor(e){this._localization=e,this._caseViews={}}set ngPlural(e){this._updateView(e)}addCase(e,t){this._caseViews[e]=t}_updateView(e){this._clearViews();const t=iO(e,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[t])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(e){e&&(this._activeView=e,this._activeView.create())}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:CO,deps:[{token:rO}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:CO,isStandalone:!0,selector:"[ngPlural]",inputs:{ngPlural:"ngPlural"},ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:CO,decorators:[{type:_I,args:[{selector:"[ngPlural]",standalone:!0}]}],ctorParameters:()=>[{type:rO}],propDecorators:{ngPlural:[{type:CI}]}});class IO{constructor(e,t,n,r){this.value=e;const i=!isNaN(Number(e));r.addCase(i?`=${e}`:e,new vO(n,t))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:IO,deps:[{token:"ngPluralCase",attribute:!0},{token:Tp},{token:Xf},{token:CO,host:!0}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:IO,isStandalone:!0,selector:"[ngPluralCase]",ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:IO,decorators:[{type:_I,args:[{selector:"[ngPluralCase]",standalone:!0}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:ja,args:["ngPluralCase"]}]},{type:Tp},{type:Xf},{type:CO,decorators:[{type:Rn}]}]});class wO{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){const[n,r]=e.split("."),i=-1===n.indexOf("-")?void 0:xd.DashCase;null!=t?this._renderer.setStyle(this._ngEl.nativeElement,n,r?`${t}${r}`:t,i):this._renderer.removeStyle(this._ngEl.nativeElement,n,i)}_applyChanges(e){e.forEachRemovedItem((e=>this._setStyle(e.key,null))),e.forEachAddedItem((e=>this._setStyle(e.key,e.currentValue))),e.forEachChangedItem((e=>this._setStyle(e.key,e.currentValue)))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wO,deps:[{token:du},{token:_D},{token:ff}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:wO,isStandalone:!0,selector:"[ngStyle]",inputs:{ngStyle:"ngStyle"},ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wO,decorators:[{type:_I,args:[{selector:"[ngStyle]",standalone:!0}]}],ctorParameters:()=>[{type:du},{type:_D},{type:ff}],propDecorators:{ngStyle:[{type:CI,args:["ngStyle"]}]}});class DO{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){const e=this._viewContainerRef;if(this._viewRef&&e.remove(e.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const t=this._createContextForwardProxy();this._viewRef=e.createEmbeddedView(this.ngTemplateOutlet,t,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,n)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,t,n),get:(e,t,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,n)}})}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:DO,deps:[{token:Xf}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:DO,isStandalone:!0,selector:"[ngTemplateOutlet]",inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},usesOnChanges:!0,ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:DO,decorators:[{type:_I,args:[{selector:"[ngTemplateOutlet]",standalone:!0}]}],ctorParameters:()=>[{type:Xf}],propDecorators:{ngTemplateOutletContext:[{type:CI}],ngTemplateOutlet:[{type:CI}],ngTemplateOutletInjector:[{type:CI}]}});const TO=[uO,cO,hO,fO,DO,wO,yO,EO,_O,CO,IO];function AO(e,t){return new je(2100,ngDevMode&&`InvalidPipeArgument: '${t}' for pipe '${rt(e)}'`)}const OO=new class{createSubscription(e,t){return e.then(t,(e=>{throw e}))}dispose(e){}},NO=new class{createSubscription(e,t){return pT((()=>e.subscribe({next:t,error:e=>{throw e}})))}dispose(e){pT((()=>e.unsubscribe()))}};class MO{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,(t=>this._updateLatestValue(e,t)))}_selectStrategy(e){if(KI(e))return OO;if(YI(e))return NO;throw AO(MO,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:MO,deps:[{token:qw}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:MO,isStandalone:!0,name:"async",pure:!1})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:MO,decorators:[{type:SI,args:[{name:"async",pure:!1,standalone:!0}]}],ctorParameters:()=>[{type:qw}]});class PO{transform(e){if(null==e)return null;if("string"!=typeof e)throw AO(PO,e);return e.toLowerCase()}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:PO,deps:[],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:PO,isStandalone:!0,name:"lowercase"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:PO,decorators:[{type:SI,args:[{name:"lowercase",standalone:!0}]}]});const xO=/(?:[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\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\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\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\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\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;class RO{transform(e){if(null==e)return null;if("string"!=typeof e)throw AO(RO,e);return e.replace(xO,(e=>e[0].toUpperCase()+e.slice(1).toLowerCase()))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:RO,deps:[],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:RO,isStandalone:!0,name:"titlecase"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:RO,decorators:[{type:SI,args:[{name:"titlecase",standalone:!0}]}]});class kO{transform(e){if(null==e)return null;if("string"!=typeof e)throw AO(kO,e);return e.toUpperCase()}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:kO,deps:[],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:kO,isStandalone:!0,name:"uppercase"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:kO,decorators:[{type:SI,args:[{name:"uppercase",standalone:!0}]}]});const LO=new jt(ngDevMode?"DATE_PIPE_DEFAULT_TIMEZONE":""),FO=new jt(ngDevMode?"DATE_PIPE_DEFAULT_OPTIONS":"");class UO{constructor(e,t,n){this.locale=e,this.defaultTimezone=t,this.defaultOptions=n}transform(e,t,n,r){if(null==e||""===e||e!=e)return null;try{const i=t??this.defaultOptions?.dateFormat??"mediumDate",o=n??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return MA(e,i,r||this.locale,o)}catch(e){throw AO(UO,e.message)}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:UO,deps:[{token:Iw},{token:LO,optional:!0},{token:FO,optional:!0}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:UO,isStandalone:!0,name:"date"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:UO,decorators:[{type:SI,args:[{name:"date",standalone:!0}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[Iw]}]},{type:void 0,decorators:[{type:Nn,args:[LO]},{type:Mn}]},{type:void 0,decorators:[{type:Nn,args:[FO]},{type:Mn}]}]});const jO=/#/g;class VO{constructor(e){this._localization=e}transform(e,t,n){if(null==e)return"";if("object"!=typeof t||null===t)throw AO(VO,t);return t[iO(e,Object.keys(t),this._localization,n)].replace(jO,e.toString())}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:VO,deps:[{token:rO}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:VO,isStandalone:!0,name:"i18nPlural"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:VO,decorators:[{type:SI,args:[{name:"i18nPlural",standalone:!0}]}],ctorParameters:()=>[{type:rO}]});class BO{transform(e,t){if(null==e)return"";if("object"!=typeof t||"string"!=typeof e)throw AO(BO,t);return t.hasOwnProperty(e)?t[e]:t.hasOwnProperty("other")?t.other:""}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:BO,deps:[],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:BO,isStandalone:!0,name:"i18nSelect"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:BO,decorators:[{type:SI,args:[{name:"i18nSelect",standalone:!0}]}]});class $O{transform(e){return JSON.stringify(e,null,2)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:$O,deps:[],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:$O,isStandalone:!0,name:"json",pure:!1})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:$O,decorators:[{type:SI,args:[{name:"json",pure:!1,standalone:!0}]}]});class HO{constructor(e){this.differs=e,this.keyValues=[],this.compareFn=GO}transform(e,t=GO){if(!e||!(e instanceof Map)&&"object"!=typeof e)return null;this.differ??=this.differs.find(e).create();const n=this.differ.diff(e),r=t!==this.compareFn;return n&&(this.keyValues=[],n.forEachItem((e=>{this.keyValues.push({key:e.key,value:e.currentValue})}))),(n||r)&&(this.keyValues.sort(t),this.compareFn=t),this.keyValues}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:HO,deps:[{token:_D}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:HO,isStandalone:!0,name:"keyvalue",pure:!1})}}function GO(e,t){const n=e.key,r=t.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;const i=String(n),o=String(r);return i==o?0:i<o?-1:1}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:HO,decorators:[{type:SI,args:[{name:"keyvalue",pure:!1,standalone:!0}]}],ctorParameters:()=>[{type:_D}]});class qO{constructor(e){this._locale=e}transform(e,t,n){if(!KO(e))return null;n||=this._locale;try{return function(e,t,n){return eO(e,tO(_A(t,cA.Decimal),EA(t,fA.MinusSign)),t,fA.Group,fA.Decimal,n)}(YO(e),n,t)}catch(e){throw AO(qO,e.message)}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:qO,deps:[{token:Iw}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:qO,isStandalone:!0,name:"number"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:qO,decorators:[{type:SI,args:[{name:"number",standalone:!0}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[Iw]}]}]});class zO{constructor(e){this._locale=e}transform(e,t,n){if(!KO(e))return null;n||=this._locale;try{return function(e,t,n){return eO(e,tO(_A(t,cA.Percent),EA(t,fA.MinusSign)),t,fA.Group,fA.Decimal,n,!0).replace(new RegExp("%","g"),EA(t,fA.PercentSign))}(YO(e),n,t)}catch(e){throw AO(zO,e.message)}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:zO,deps:[{token:Iw}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:zO,isStandalone:!0,name:"percent"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:zO,decorators:[{type:SI,args:[{name:"percent",standalone:!0}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[Iw]}]}]});class WO{constructor(e,t="USD"){this._locale=e,this._defaultCurrencyCode=t}transform(e,t=this._defaultCurrencyCode,n="symbol",r,i){if(!KO(e))return null;i||=this._locale,"boolean"==typeof n&&(("undefined"==typeof ngDevMode||ngDevMode)&&console&&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".'),n=n?"symbol":"code");let o=t||this._defaultCurrencyCode;"code"!==n&&(o="symbol"===n||"symbol-narrow"===n?function(e,t,n="en"){const r=function(e){return g_(e)[__.Currencies]}(n)[e]||uA[e]||[],i=r[1];return"narrow"===t&&"string"==typeof i?i:r[0]||e}(o,"symbol"===n?"wide":"narrow",i):n);try{return function(e,t,n,r,i){const o=tO(_A(t,cA.Currency),EA(t,fA.MinusSign));return o.minFrac=function(e){let t;const n=uA[e];return n&&(t=n[2]),"number"==typeof t?t:2}(r),o.maxFrac=o.minFrac,eO(e,o,t,fA.CurrencyGroup,fA.CurrencyDecimal,i).replace("¤",n).replace("¤","").trim()}(YO(e),i,o,t,r)}catch(e){throw AO(WO,e.message)}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:WO,deps:[{token:Iw},{token:ww}],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:WO,isStandalone:!0,name:"currency"})}}function KO(e){return!(null==e||""===e||e!=e)}function YO(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(`${e} is not a number`);return e}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:WO,decorators:[{type:SI,args:[{name:"currency",standalone:!0}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[Iw]}]},{type:void 0,decorators:[{type:Nn,args:[ww]}]}]});class QO{transform(e,t,n){if(null==e)return null;if(!this.supports(e))throw AO(QO,e);return e.slice(t,n)}supports(e){return"string"==typeof e||Array.isArray(e)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:QO,deps:[],target:ai.Pipe})}static{this.ɵpipe=dT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:QO,isStandalone:!0,name:"slice",pure:!1})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:QO,decorators:[{type:SI,args:[{name:"slice",pure:!1,standalone:!0}]}]});const JO=[MO,kO,PO,$O,QO,qO,zO,RO,WO,UO,VO,BO,HO];class ZO{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:ZO,deps:[],target:ai.NgModule})}static{this.ɵmod=lT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:ZO,imports:[uO,cO,hO,fO,DO,wO,yO,EO,_O,CO,IO,MO,kO,PO,$O,QO,qO,zO,RO,WO,UO,VO,BO,HO],exports:[uO,cO,hO,fO,DO,wO,yO,EO,_O,CO,IO,MO,kO,PO,$O,QO,qO,zO,RO,WO,UO,VO,BO,HO]})}static{this.ɵinj=cT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:ZO})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:ZO,decorators:[{type:TI,args:[{imports:[TO,JO],exports:[TO,JO]}]}]});const XO="browser";function eN(e){return e===XO}function tN(e){return"server"===e}new AI("17.3.8");class nN{static{this.ɵprov=At({token:nN,providedIn:"root",factory:()=>eN(Dn(sc))?new rN(Dn(KT),window):new iN})}}class rN{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){const t=function(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=n.currentNode;for(;r;){const e=r.shadowRoot;if(e){const n=e.getElementById(t)||e.querySelector(`[name="${t}"]`);if(n)return n}r=n.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}}class iN{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}}const oN="20";function sN(e,t){return aN(e)?new URL(e):new URL(e,t.location.href)}function aN(e){return/^https?:\/\//.test(e)}function uN(e){return aN(e)?new URL(e).hostname:e}const cN=e=>e.src,lN=new jt(ngDevMode?"ImageLoader":"",{providedIn:"root",factory:()=>cN});function dN(e,t){return function(n){(function(e){if("string"!=typeof e||""===e.trim())return!1;try{return new URL(e),!0}catch{return!1}})(n)||function(e,t){throw new je(2959,ngDevMode&&`Image loader has detected an invalid path (\`${e}\`). To fix this, supply a path using one of the following formats: ${t.join(" or ")}`)}(n,t||[]),n=function(e){return e.endsWith("/")?e.slice(0,-1):e}(n);const r=[{provide:lN,useValue:t=>{return aN(t.src)&&function(e,t){throw new je(2959,ngDevMode&&`Image loader has detected a \`<img>\` tag with an invalid \`ngSrc\` attribute: ${t}. 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 (\`${e}\`).`)}(n,t.src),e(n,{...t,src:(r=t.src,r.startsWith("/")?r.slice(1):r)});var r}}];return r}}dN((function(e,t){let n="format=auto";return t.width&&(n+=`,width=${t.width}`),t.isPlaceholder&&(n+=`,quality=${oN}`),`${e}/cdn-cgi/image/${n}/${t.src}`}),ngDevMode?["https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>"]:void 0);const hN={name:"Cloudinary",testUrl:function(e){return pN.test(e)}},pN=/https?\:\/\/[^\/]+\.cloudinary\.com\/.+/;dN((function(e,t){let n=`f_auto,${t.isPlaceholder?"q_auto:low":"q_auto"}`;return t.width&&(n+=`,w_${t.width}`),`${e}/image/upload/${n}/${t.src}`}),ngDevMode?["https://res.cloudinary.com/mysite","https://mysite.cloudinary.com","https://subdomain.mysite.com"]:void 0);const fN={name:"ImageKit",testUrl:function(e){return gN.test(e)}},gN=/https?\:\/\/[^\/]+\.imagekit\.io\/.+/;dN((function(e,t){const{src:n,width:r}=t,i=[];r&&i.push(`w-${r}`),t.isPlaceholder&&i.push(`q-${oN}`);const o=i.length?[e,`tr:${i.join(",")}`,n]:[e,n];return new URL(o.join("/")).href}),ngDevMode?["https://ik.imagekit.io/mysite","https://subdomain.mysite.com"]:void 0);const mN={name:"Imgix",testUrl:function(e){return vN.test(e)}},vN=/https?\:\/\/[^\/]+\.imgix\.net\/.+/;dN((function(e,t){const n=new URL(`${e}/${t.src}`);return n.searchParams.set("auto","format"),t.width&&n.searchParams.set("w",t.width.toString()),t.isPlaceholder&&n.searchParams.set("q",oN),n.href}),ngDevMode?["https://somepath.imgix.net/"]:void 0);const yN={name:"Netlify",testUrl:function(e){return EN.test(e)}},EN=/https?\:\/\/[^\/]+\.netlify\.app\/.+/;function _N(e,t=!0){return`The NgOptimizedImage directive ${t?`(activated on an <img> element with the \`ngSrc="${e}"\`) `:""}has detected that`}function bN(e){if(!ngDevMode)throw new je(2958,`Unexpected invocation of the ${e} in the prod mode. Please make sure that the prod mode is enabled for production builds.`)}new Map([["height","h"],["fit","fit"],["quality","q"],["q","q"],["position","position"]]);class SN{constructor(){this.images=new Map,this.window=null,this.observer=null,bN("LCP checker");const e=Dn(KT).defaultView;void 0!==e&&"undefined"!=typeof PerformanceObserver&&(this.window=e,this.observer=this.initPerformanceObserver())}initPerformanceObserver(){const e=new PerformanceObserver((e=>{const t=e.getEntries();if(0===t.length)return;const n=t[t.length-1],r=n.element?.src??"";if(r.startsWith("data:")||r.startsWith("blob:"))return;const i=this.images.get(r);i&&(i.priority||i.alreadyWarnedPriority||(i.alreadyWarnedPriority=!0,function(e){const t=_N(e);console.error(Ve(2955,`${t} 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.`))}(r)),i.modified&&!i.alreadyWarnedModified&&(i.alreadyWarnedModified=!0,function(e){const t=_N(e);console.warn(Ve(2964,`${t} this image is the Largest Contentful Paint (LCP) element and has had its "ngSrc" attribute modified. This can cause slower loading performance. It is recommended not to modify the "ngSrc" property on any image which could be the LCP element.`))}(r)))}));return e.observe({type:"largest-contentful-paint",buffered:!0}),e}registerImage(e,t,n){if(!this.observer)return;const r={priority:n,modified:!1,alreadyWarnedModified:!1,alreadyWarnedPriority:!1};this.images.set(sN(e,this.window).href,r)}unregisterImage(e){this.observer&&this.images.delete(sN(e,this.window).href)}updateImage(e,t){const n=sN(e,this.window).href,r=this.images.get(n);r&&(r.modified=!0,this.images.set(sN(t,this.window).href,r),this.images.delete(n))}ngOnDestroy(){this.observer&&(this.observer.disconnect(),this.images.clear())}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:SN,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:SN,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:SN,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});const CN=new Set(["localhost","127.0.0.1","0.0.0.0"]),IN=new jt(ngDevMode?"PRECONNECT_CHECK_BLOCKLIST":"");class wN{constructor(){this.document=Dn(KT),this.preconnectLinks=null,this.alreadySeen=new Set,this.window=null,this.blocklist=new Set(CN),bN("preconnect link checker");const e=this.document.defaultView;void 0!==e&&(this.window=e);const t=Dn(IN,{optional:!0});t&&this.populateBlocklist(t)}populateBlocklist(e){Array.isArray(e)?DN(e,(e=>{this.blocklist.add(uN(e))})):this.blocklist.add(uN(e))}assertPreconnect(e,t){if(!this.window)return;const n=sN(e,this.window);this.blocklist.has(n.hostname)||this.alreadySeen.has(n.origin)||(this.alreadySeen.add(n.origin),this.preconnectLinks??=this.queryPreconnectLinks(),this.preconnectLinks.has(n.origin)||console.warn(Ve(2956,`${_N(t)} 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:\n <link rel="preconnect" href="${n.origin}">`)))}queryPreconnectLinks(){const e=new Set,t=Array.from(this.document.querySelectorAll("link[rel=preconnect]"));for(let n of t){const t=sN(n.href,this.window);e.add(t.origin)}return e}ngOnDestroy(){this.preconnectLinks?.clear(),this.alreadySeen.clear()}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wN,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wN,providedIn:"root"})}}function DN(e,t){for(let n of e)Array.isArray(n)?DN(n,t):t(n)}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wN,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});const TN=new jt("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set});class AN{constructor(){this.preloadedImages=Dn(TN),this.document=Dn(KT)}createPreloadLinkTag(e,t,n,r){if(ngDevMode&&this.preloadedImages.size>=5)throw new je(2961,ngDevMode&&'The `NgOptimizedImage` directive has detected that more than 5 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(t))return;this.preloadedImages.add(t);const i=e.createElement("link");e.setAttribute(i,"as","image"),e.setAttribute(i,"href",t),e.setAttribute(i,"rel","preload"),e.setAttribute(i,"fetchpriority","high"),r&&e.setAttribute(i,"imageSizes",r),n&&e.setAttribute(i,"imageSrcset",n),e.appendChild(this.document.head,i)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:AN,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:AN,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:AN,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});const ON=/^((\s*\d+w\s*(,|$)){1,})$/,NN=/^((\s*\d+(\.\d+)?x\s*(,|$)){1,})$/,MN=[1,2],PN=[mN,fN,hN,yN];class xN{constructor(){this.imageLoader=Dn(lN),this.config=function(e){let t={};return e.breakpoints&&(t.breakpoints=e.breakpoints.sort(((e,t)=>e-t))),Object.assign({},lc,e,t)}(Dn(dc)),this.renderer=Dn(ff),this.imgElement=Dn(du).nativeElement,this.injector=Dn(Qa),this.isServer=tN(Dn(sc)),this.preloadLinkCreator=Dn(AN),this.lcpObserver=ngDevMode?this.injector.get(SN):null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){if(Ef("NgOptimizedImage"),ngDevMode){const n=this.injector.get(Sf);RN(this,"ngSrc",this.ngSrc),function(e,t){if(null==t)return;RN(e,"ngSrcset",t);const n=t,r=ON.test(n),i=NN.test(n);if(i&&function(e,t){if(!t.split(",").every((e=>""===e||parseFloat(e)<=3)))throw new je(2952,`${_N(e.ngSrc)} the \`ngSrcset\` contains an unsupported image density:\`${t}\`. NgOptimizedImage generally recommends a max image density of 2x but supports image densities up to 3x. The human eye cannot distinguish between image densities greater than 2x - which makes them unnecessary for most use cases. Images that will be pinch-zoomed are typically the primary use case for 3x images. Please remove the high density descriptor and try again.`)}(e,n),!r&&!i)throw new je(2952,`${_N(e.ngSrc)} \`ngSrcset\` has an invalid value (\`${t}\`). 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").`)}(this,this.ngSrcset),function(e){if(e.src)throw new je(2950,`${_N(e.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.`)}(this),this.ngSrcset&&function(e){if(e.srcset)throw new je(2951,`${_N(e.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.`)}(this),function(e){let t=e.ngSrc.trim();if(t.startsWith("data:"))throw t.length>50&&(t=t.substring(0,50)+"..."),new je(2952,`${_N(e.ngSrc,!1)} \`ngSrc\` is a Base64-encoded string (${t}). 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.`)}(this),function(e){const t=e.ngSrc.trim();if(t.startsWith("blob:"))throw new je(2952,`${_N(e.ngSrc)} \`ngSrc\` was set to a blob URL (${t}). 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.`)}(this),this.fill?(function(e){if(e.width||e.height)throw new je(2952,`${_N(e.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.`)}(this),n.runOutsideAngular((()=>function(e,t,n){const r=n.listen(t,"load",(()=>{r(),i();const n=t.clientHeight;e.fill&&0===n&&console.warn(Ve(2952,`${_N(e.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.`))})),i=n.listen(t,"error",(()=>{r(),i()}))}(this,this.imgElement,this.renderer)))):(function(e){let t=[];if(void 0===e.width&&t.push("width"),void 0===e.height&&t.push("height"),t.length>0)throw new je(2954,`${_N(e.ngSrc)} these required attributes are missing: ${t.map((e=>`"${e}"`)).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.`)}(this),void 0!==this.height&&kN(this,this.height,"height"),void 0!==this.width&&kN(this,this.width,"width"),n.runOutsideAngular((()=>function(e,t,n){const r=n.listen(t,"load",(()=>{r(),i();const n=window.getComputedStyle(t);let o=parseFloat(n.getPropertyValue("width")),s=parseFloat(n.getPropertyValue("height"));if("border-box"===n.getPropertyValue("box-sizing")){const e=n.getPropertyValue("padding-top"),t=n.getPropertyValue("padding-right"),r=n.getPropertyValue("padding-bottom"),i=n.getPropertyValue("padding-left");o-=parseFloat(t)+parseFloat(i),s-=parseFloat(e)+parseFloat(r)}const a=o/s,u=0!==o&&0!==s,c=t.naturalWidth,l=t.naturalHeight,d=c/l,h=e.width,p=e.height,f=h/p,g=Math.abs(f-d)>.1,m=u&&Math.abs(d-a)>.1;if(g)console.warn(Ve(2952,`${_N(e.ngSrc)} the aspect ratio of the image does not match the aspect ratio indicated by the width and height attributes. \nIntrinsic image size: ${c}w x ${l}h (aspect-ratio: ${LN(d)}). \nSupplied width and height attributes: ${h}w x ${p}h (aspect-ratio: ${LN(f)}). \nTo fix this, update the width and height attributes.`));else if(m)console.warn(Ve(2952,`${_N(e.ngSrc)} the aspect ratio of the rendered image does not match the image's intrinsic aspect ratio. \nIntrinsic image size: ${c}w x ${l}h (aspect-ratio: ${LN(d)}). \nRendered image size: ${o}w x ${s}h (aspect-ratio: ${LN(a)}). \nThis 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(!e.ngSrcset&&u){const t=2*o,n=2*s;(c-t>=1e3||l-n>=1e3)&&console.warn(Ve(2960,`${_N(e.ngSrc)} the intrinsic image is significantly larger than necessary. \nRendered image size: ${o}w x ${s}h. \nIntrinsic image size: ${c}w x ${l}h. \nRecommended intrinsic image size: ${t}w x ${n}h. \nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of 2. To improve loading time, resize the image or consider using the "ngSrcset" and "sizes" attributes.`))}})),i=n.listen(t,"error",(()=>{r(),i()}))}(this,this.imgElement,this.renderer)))),function(e){if(e.loading&&e.priority)throw new je(2952,`${_N(e.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.`);if("string"==typeof e.loading&&!["auto","eager","lazy"].includes(e.loading))throw new je(2952,`${_N(e.ngSrc)} the \`loading\` attribute has an invalid value (\`${e.loading}\`). To fix this, provide a valid value ("lazy", "eager", or "auto").`)}(this),this.ngSrcset||function(e){let t=e.sizes;if(t?.match(/((\)|,)\s|^)\d+px/))throw new je(2952,`${_N(e.ngSrc,!1)} \`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.`)}(this),e=this,t=this.imageLoader,function(e){if(e.placeholderConfig&&!e.placeholder)throw new je(2952,`${_N(e.ngSrc,!1)} \`placeholderConfig\` options were provided for an image that does not use the \`placeholder\` attribute, and will have no effect.`)}(e),function(e,t){if(!0===e.placeholder&&t===cN)throw new je(2963,`${_N(e.ngSrc)} the \`placeholder\` attribute is set to true but no image loader is configured (i.e. the default one is being used), which would result in the same image being used for the primary image and its placeholder. To fix this, provide a loader or remove the \`placeholder\` attribute from the image.`)}(e,t),function(e){if(e.placeholder&&"string"==typeof e.placeholder&&e.placeholder.startsWith("data:")){if(e.placeholder.length>1e4)throw new je(2965,`${_N(e.ngSrc)} the \`placeholder\` attribute is set to a data URL which is longer than 10000 characters. This is strongly discouraged, as large inline placeholders directly increase the bundle size of Angular and hurt page load performance. To fix this, generate a smaller data URL placeholder.`);e.placeholder.length>4e3&&console.warn(Ve(2965,`${_N(e.ngSrc)} the \`placeholder\` attribute is set to a data URL which is longer than 4000 characters. This is discouraged, as large inline placeholders directly increase the bundle size of Angular and hurt page load performance. For better loading performance, generate a smaller data URL placeholder.`))}}(e),function(e,t){if(t===cN){let t="";for(const n of PN)if(n.testUrl(e)){t=n.name;break}t&&console.warn(Ve(2962,`NgOptimizedImage: It looks like your images may be hosted on the ${t} 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${t}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.`))}}(this.ngSrc,this.imageLoader),function(e,t){e.ngSrcset&&t===cN&&console.warn(Ve(2963,`${_N(e.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.`))}(this,this.imageLoader),function(e,t){e.loaderParams&&t===cN&&console.warn(Ve(2963,`${_N(e.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.`))}(this,this.imageLoader),null!==this.lcpObserver&&this.injector.get(Sf).runOutsideAngular((()=>{this.lcpObserver.registerImage(this.getRewrittenSrc(),this.ngSrc,this.priority)})),this.priority&&this.injector.get(wN).assertPreconnect(this.getRewrittenSrc(),this.ngSrc)}var e,t;this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const e=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),e,this.sizes)}ngOnChanges(e){if(ngDevMode&&function(e,t,n){["ngSrcset","width","height","priority","fill","loading","sizes","loaderParams","disableOptimizedSrcset"].forEach((n=>{if(t.hasOwnProperty(n)&&!t[n].isFirstChange())throw"ngSrc"===n&&(e={ngSrc:t[n].previousValue}),function(e,t){let n;return n="width"===t||"height"===t?`Changing \`${t}\` may result in different attribute value applied to the underlying image element and cause layout shifts on a page.`:`Changing the \`${t}\` would have no effect on the underlying image element, because the resource loading has already occurred.`,new je(2953,`${_N(e.ngSrc)} \`${t}\` was updated after initialization. The NgOptimizedImage directive will not react to this input change. ${n} To fix this, either switch \`${t}\` to a static value or wrap the image element in an *ngIf that is gated on the necessary value.`)}(e,n)}))}(this,e),e.ngSrc&&!e.ngSrc.isFirstChange()){const e=this._renderedSrc;this.updateSrcAndSrcset(!0);const t=this._renderedSrc;null!==this.lcpObserver&&e&&t&&e!==t&&this.injector.get(Sf).runOutsideAngular((()=>{this.lcpObserver?.updateImage(e,t)}))}}callImageLoader(e){let t=e;return this.loaderParams&&(t.loaderParams=this.loaderParams),this.imageLoader(t)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){const e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){const e=ON.test(this.ngSrcset);return this.ngSrcset.split(",").filter((e=>""!==e)).map((t=>{t=t.trim();const n=e?parseFloat(t):parseFloat(t)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:n})} ${t}`})).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){const{breakpoints:e}=this.config;let t=e;"100vw"===this.sizes?.trim()&&(t=e.filter((e=>e>=640)));return t.map((e=>`${this.callImageLoader({src:this.ngSrc,width:e})} ${e}w`)).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);const t=this.getRewrittenSrc();let n;return this.setHostAttribute("src",t),this.ngSrcset?n=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(n=this.getAutomaticSrcset()),n&&this.setHostAttribute("srcset",n),n}getFixedSrcset(){return MN.map((e=>`${this.callImageLoader({src:this.ngSrc,width:this.width*e})} ${e}x`)).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==cN&&!e}generatePlaceholder(e){const{placeholderResolution:t}=this.config;return!0===e?`url(${this.callImageLoader({src:this.ngSrc,width:t,isPlaceholder:!0})})`:"string"==typeof e&&e.startsWith("data:")?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")||Boolean(e.blur)}removePlaceholderOnLoad(e){const t=()=>{const e=this.injector.get(qw);n(),r(),this.placeholder=!1,e.markForCheck()},n=this.renderer.listen(e,"load",t),r=this.renderer.listen(e,"error",t)}ngOnDestroy(){ngDevMode&&(this.priority||null===this._renderedSrc||null===this.lcpObserver||this.lcpObserver.unregisterImage(this._renderedSrc))}setHostAttribute(e,t){this.renderer.setAttribute(this.imgElement,e,t)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:xN,deps:[],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"16.1.0",version:"17.3.8",type:xN,isStandalone:!0,selector:"img[ngSrc]",inputs:{ngSrc:["ngSrc","ngSrc",FN],ngSrcset:"ngSrcset",sizes:"sizes",width:["width","width",nT],height:["height","height",nT],loading:"loading",priority:["priority","priority",tT],loaderParams:"loaderParams",disableOptimizedSrcset:["disableOptimizedSrcset","disableOptimizedSrcset",tT],fill:["fill","fill",tT],placeholder:["placeholder","placeholder",UN],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},host:{properties:{"style.position":'fill ? "absolute" : null',"style.width":'fill ? "100%" : null',"style.height":'fill ? "100%" : null',"style.inset":'fill ? "0" : null',"style.background-size":'placeholder ? "cover" : null',"style.background-position":'placeholder ? "50% 50%" : null',"style.background-repeat":'placeholder ? "no-repeat" : null',"style.background-image":"placeholder ? generatePlaceholder(placeholder) : null","style.filter":'placeholder && shouldBlurPlaceholder(placeholderConfig) ? "blur(15px)" : null'}},usesOnChanges:!0,ngImport:r})}}function RN(e,t,n){const r="string"==typeof n,i=r&&""===n.trim();if(!r||i)throw new je(2952,`${_N(e.ngSrc)} \`${t}\` has an invalid value (\`${n}\`). To fix this, change the value to a non-empty string.`)}function kN(e,t,n){const r="number"==typeof t&&t>0,i="string"==typeof t&&/^\d+$/.test(t.trim())&&parseInt(t)>0;if(!r&&!i)throw new je(2952,`${_N(e.ngSrc)} \`${n}\` has an invalid value. To fix this, provide \`${n}\` as a number greater than 0.`)}function LN(e){return Number.isInteger(e)?e:e.toFixed(2)}function FN(e){return"string"==typeof e?e:ul(e)}function UN(e){return"string"==typeof e&&e.startsWith("data:")?e:tT(e)}var jN;iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:xN,decorators:[{type:_I,args:[{standalone:!0,selector:"img[ngSrc]",host:{"[style.position]":'fill ? "absolute" : null',"[style.width]":'fill ? "100%" : null',"[style.height]":'fill ? "100%" : null',"[style.inset]":'fill ? "0" : null',"[style.background-size]":'placeholder ? "cover" : null',"[style.background-position]":'placeholder ? "50% 50%" : null',"[style.background-repeat]":'placeholder ? "no-repeat" : null',"[style.background-image]":"placeholder ? generatePlaceholder(placeholder) : null","[style.filter]":'placeholder && shouldBlurPlaceholder(placeholderConfig) ? "blur(15px)" : null'}}]}],propDecorators:{ngSrc:[{type:CI,args:[{required:!0,transform:FN}]}],ngSrcset:[{type:CI}],sizes:[{type:CI}],width:[{type:CI,args:[{transform:nT}]}],height:[{type:CI,args:[{transform:nT}]}],loading:[{type:CI}],priority:[{type:CI,args:[{transform:tT}]}],loaderParams:[{type:CI}],disableOptimizedSrcset:[{type:CI,args:[{transform:tT}]}],fill:[{type:CI,args:[{transform:tT}]}],placeholder:[{type:CI,args:[{transform:UN}]}],placeholderConfig:[{type:CI}],src:[{type:CI}],srcset:[{type:CI}]}}),function(e){e.ENTITLEMENT_TOKEN="entitlementToken",e.ENTITLEMENT_REFRESH_TOKEN="entitlementRefreshToken",e.ENTITLEMENT_ROLES="entitlementRoles"}(jN||(jN={}));var VN=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function BN(e){return q(null==e?void 0:e.then)}function $N(e){return q(e[ge])}function HN(e){return Symbol.asyncIterator&&q(null==e?void 0:e[Symbol.asyncIterator])}function GN(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var qN="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function zN(e){return q(null==e?void 0:e[qN])}function WN(e){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof G?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,(function(){var t,n,r;return V(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,G(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,G(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,G(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function KN(e){return q(null==e?void 0:e.getReader)}function YN(e){if(e instanceof ye)return e;if(null!=e){if($N(e))return i=e,new ye((function(e){var t=i[ge]();if(q(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(VN(e))return r=e,new ye((function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()}));if(BN(e))return n=e,new ye((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,te)}));if(HN(e))return QN(e);if(zN(e))return t=e,new ye((function(e){var n,r;try{for(var i=B(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()}));if(KN(e))return QN(WN(e))}var t,n,r,i;throw GN(e)}function QN(e){return new ye((function(t){(function(e,t){var n,r,i,o,s,a,u,c;return s=this,a=void 0,c=function(){var s,a;return V(this,(function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=B(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}(e),u.label=1;case 1:return[4,n.next()];case 2:if((r=u.sent()).done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),i={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))},new((u=void 0)||(u=Promise))((function(e,t){function n(e){try{i(c.next(e))}catch(e){t(e)}}function r(e){try{i(c.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof u?i:new u((function(e){e(i)}))).then(n,r)}i((c=c.apply(s,a||[])).next())}))})(e,t).catch((function(e){return t.error(e)}))}))}function JN(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var o=t.schedule((function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()}),r);if(e.add(o),!i)return o}function ZN(e,t){return void 0===t&&(t=0),we((function(n,r){n.subscribe(De(r,(function(n){return JN(r,e,(function(){return r.next(n)}),t)}),(function(){return JN(r,e,(function(){return r.complete()}),t)}),(function(n){return JN(r,e,(function(){return r.error(n)}),t)})))}))}function XN(e,t){return void 0===t&&(t=0),we((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function eM(e,t){if(!e)throw new Error("Iterable cannot be null");return new ye((function(n){JN(n,t,(function(){var r=e[Symbol.asyncIterator]();JN(n,t,(function(){r.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}function tM(e,t){return t?function(e,t){if(null!=e){if($N(e))return function(e,t){return YN(e).pipe(XN(t),ZN(t))}(e,t);if(VN(e))return function(e,t){return new ye((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}(e,t);if(BN(e))return function(e,t){return YN(e).pipe(XN(t),ZN(t))}(e,t);if(HN(e))return eM(e,t);if(zN(e))return function(e,t){return new ye((function(n){var r;return JN(n,t,(function(){r=e[qN](),JN(n,t,(function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void n.error(e)}i?n.complete():n.next(t)}),0,!0)})),function(){return q(null==r?void 0:r.return)&&r.return()}}))}(e,t);if(KN(e))return function(e,t){return eM(WN(e),t)}(e,t)}throw GN(e)}(e,t):YN(e)}var nM,rM=function(e){function t(t,n){return e.call(this)||this}return j(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(Y),iM={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=iM.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,H([e,t],$(n))):setInterval.apply(void 0,H([e,t],$(n)))},clearInterval:function(e){var t=iM.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},oM=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return j(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),iM.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&iM.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=e||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,K(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(rM),sM=1,aM={};function uM(e){return e in aM&&(delete aM[e],!0)}var cM=function(e){var t=sM++;return aM[t]=!0,nM||(nM=Promise.resolve()),nM.then((function(){return uM(t)&&e()})),t},lM=function(e){uM(e)},dM={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=dM.delegate;return((null==n?void 0:n.setImmediate)||cM).apply(void 0,H([],$(e)))},clearImmediate:function(e){var t=dM.delegate;return((null==t?void 0:t.clearImmediate)||lM)(e)},delegate:void 0},hM=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return j(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=dM.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){var i;if(void 0===r&&(r=0),null!=r?r>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);var o=t.actions;null!=n&&(null===(i=o[o.length-1])||void 0===i?void 0:i.id)!==n&&(dM.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))},t}(oM),pM=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=DT.now,e}(),fM=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return j(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var n,r=this.actions;e=e||r.shift();do{if(n=e.execute(e.state,e.delay))break}while((e=r[0])&&e.id===t&&r.shift());if(this._active=!1,n){for(;(e=r[0])&&e.id===t&&r.shift();)e.unsubscribe();throw n}},t}(function(e){function t(t,n){void 0===n&&(n=pM.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return j(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(pM)))(hM);function gM(e){return e[e.length-1]}function mM(e){return(t=gM(e))&&q(t.schedule)?e.pop():void 0;var t}function vM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tM(e,mM(e))}var yM=Array.isArray,EM=Object.getPrototypeOf,_M=Object.prototype,bM=Object.keys;var SM=Array.isArray;function CM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=mM(e),r=function(e){return q(gM(e))?e.pop():void 0}(e),i=function(e){if(1===e.length){var t=e[0];if(yM(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&EM(r)===_M){var n=bM(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}(e),o=i.args,s=i.keys;if(0===o.length)return tM([],n);var a=new ye(function(e,t,n){return void 0===n&&(n=me),function(r){IM(t,(function(){for(var i=e.length,o=new Array(i),s=i,a=i,u=function(i){IM(t,(function(){var u=tM(e[i],t),c=!1;u.subscribe(De(r,(function(e){o[i]=e,c||(c=!0,a--),a||r.next(n(o.slice()))}),(function(){--s||r.complete()})))}),r)},c=0;c<i;c++)u(c)}),r)}}(o,n,s?function(e){return function(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}(s,e)}:me));return r?a.pipe(function(e){return Ae((function(t){return function(e,t){return SM(t)?e.apply(void 0,H([],$(t))):e(t)}(e,t)}))}(r)):a}function IM(e,t,n){e?JN(n,e,t):t()}function wM(e,t,n){return void 0===n&&(n=1/0),q(t)?wM((function(n,r){return Ae((function(e,i){return t(n,e,r,i)}))(YN(e(n,r)))}),n):("number"==typeof t&&(n=t),we((function(t,r){return function(e,t,n,r,i,o,s,a){var u=[],c=0,l=0,d=!1,h=function(){!d||u.length||c||t.complete()},p=function(e){return c<r?f(e):u.push(e)},f=function(e){c++;var i=!1;YN(n(e,l++)).subscribe(De(t,(function(e){t.next(e)}),(function(){i=!0}),void 0,(function(){if(i)try{c--;for(;u.length&&c<r;)e=void 0,e=u.shift(),f(e);h()}catch(e){t.error(e)}var e})))};return e.subscribe(De(t,p,(function(){d=!0,h()}))),function(){}}(t,r,e,n)})))}function DM(e){return void 0===e&&(e=1/0),wM(me,e)}function TM(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return DM(1)(tM(e,mM(e)))}function AM(e){return new ye((function(t){YN(e()).subscribe(t)}))}function OM(e,t){var n=q(e)?e:function(){return e},r=function(e){return e.error(n())};return new ye(t?function(e){return t.schedule(r,0,e)}:r)}function NM(){return we((function(e,t){var n=null;e._refCount++;var r=De(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}var MM=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Ie(t)&&(r.lift=t.lift),r}return j(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new Y;var n=this.getSubject();t.add(this.source.subscribe(De(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t},t.prototype.refCount=function(){return NM()(this)},t}(ye);function PM(e,t){return we((function(n,r){var i=null,o=0,s=!1,a=function(){return s&&!i&&r.complete()};n.subscribe(De(r,(function(n){null==i||i.unsubscribe();var s=0,u=o++;YN(e(n,u)).subscribe(i=De(r,(function(e){return r.next(t?t(n,e,u,s++):e)}),(function(){i=null,a()})))}),(function(){s=!0,a()})))}))}function xM(e,t){return q(t)?wM(e,t,1):wM(e,1)}function RM(e,t,n){var r=q(e)||t||n?{next:e,error:t,complete:n}:e;return r?we((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(De(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):me}function kM(e){return we((function(t,n){var r,i=null,o=!1;i=t.subscribe(De(n,void 0,void 0,(function(s){r=YN(e(s,kM(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0}))),o&&(i.unsubscribe(),i=null,r.subscribe(n))}))}function LM(e){return e<=0?function(){return Me}:we((function(t,n){var r=[];t.subscribe(De(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var i=B(r),o=i.next();!o.done;o=i.next()){var s=o.value;n.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}function FM(e){return we((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}class UM extends zT{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class jM extends UM{static makeCurrent(){var e;e=new jM,GT??=e}onAndCancel(e,t,n){return e.addEventListener(t,n),()=>{e.removeEventListener(t,n)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(VM=VM||document.querySelector("base"),VM?VM.getAttribute("href"):null);return null==t?null:new URL(t,document.baseURI).pathname}resetBaseElement(){VM=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,e)}}let VM=null;class BM{build(){return new XMLHttpRequest}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:BM,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:BM})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:BM,decorators:[{type:Wa}]});const $M=new jt(ngDevMode?"EventManagerPlugins":"");class HM{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach((e=>{e.manager=this})),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find((t=>t.supports(e))),!t)throw new je(5101,("undefined"==typeof ngDevMode||ngDevMode)&&`No event manager plugin found for event ${e}`);return this._eventNameToPlugin.set(e,t),t}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:HM,deps:[{token:$M},{token:Sf}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:HM})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:HM,decorators:[{type:Wa}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[$M]}]},{type:Sf}]});class GM{constructor(e){this._doc=e}}const qM="ng-app-id";class zM{constructor(e,t,n,r={}){this.doc=e,this.appId=t,this.nonce=n,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=tN(r),this.resetHostNodes()}addStyles(e){for(const t of e)1===this.changeUsageCount(t,1)&&this.onStyleAdded(t)}removeStyles(e){for(const t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach((e=>e.remove())),e.clear());for(const e of this.getAllStyles())this.onStyleRemoved(e);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){const t=this.styleRef;t.get(e)?.elements?.forEach((e=>e.remove())),t.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${qM}="${this.appId}"]`);if(e?.length){const t=new Map;return e.forEach((e=>{null!=e.textContent&&t.set(e.textContent,e)})),t}return null}changeUsageCount(e,t){const n=this.styleRef;if(n.has(e)){const r=n.get(e);return r.usage+=t,r.usage}return n.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){const n=this.styleNodesInDOM,r=n?.get(t);if(r?.parentNode===e)return n.delete(t),r.removeAttribute(qM),("undefined"==typeof ngDevMode||ngDevMode)&&r.setAttribute("ng-style-reused",""),r;{const n=this.doc.createElement("style");return this.nonce&&n.setAttribute("nonce",this.nonce),n.textContent=t,this.platformIsServer&&n.setAttribute(qM,this.appId),e.appendChild(n),n}}addStyleToHost(e,t){const n=this.getStyleElement(e,t),r=this.styleRef,i=r.get(t)?.elements;i?i.push(n):r.set(t,{elements:[n],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:zM,deps:[{token:KT},{token:rc},{token:cc,optional:!0},{token:sc}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:zM})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:zM,decorators:[{type:Wa}],ctorParameters:()=>[{type:Document,decorators:[{type:Nn,args:[KT]}]},{type:void 0,decorators:[{type:Nn,args:[rc]}]},{type:void 0,decorators:[{type:Nn,args:[cc]},{type:Mn}]},{type:void 0,decorators:[{type:Nn,args:[sc]}]}]});const WM={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/"},KM=/%COMP%/g,YM="%COMP%",QM=`_nghost-${YM}`,JM=`_ngcontent-${YM}`,ZM=new jt(ngDevMode?"RemoveStylesOnCompDestroy":"",{providedIn:"root",factory:()=>!0});function XM(e,t){return t.map((t=>t.replace(KM,e)))}class eP{constructor(e,t,n,r,i,o,s,a=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=r,this.doc=i,this.platformId=o,this.ngZone=s,this.nonce=a,this.rendererByCompId=new Map,this.platformIsServer=tN(o),this.defaultRenderer=new tP(e,i,s,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Xn.ShadowDom&&(t={...t,encapsulation:Xn.Emulated});const n=this.getOrCreateRenderer(e,t);return n instanceof aP?n.applyToHost(e):n instanceof sP&&n.applyStyles(),n}getOrCreateRenderer(e,t){const n=this.rendererByCompId;let r=n.get(t.id);if(!r){const i=this.doc,o=this.ngZone,s=this.eventManager,a=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,c=this.platformIsServer;switch(t.encapsulation){case Xn.Emulated:r=new aP(s,a,t,this.appId,u,i,o,c);break;case Xn.ShadowDom:return new oP(s,a,e,t,i,o,this.nonce,c);default:r=new sP(s,a,t,u,i,o,c)}n.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:eP,deps:[{token:HM},{token:zM},{token:rc},{token:ZM},{token:KT},{token:sc},{token:Sf},{token:cc}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:eP})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:eP,decorators:[{type:Wa}],ctorParameters:()=>[{type:HM},{type:zM},{type:void 0,decorators:[{type:Nn,args:[rc]}]},{type:void 0,decorators:[{type:Nn,args:[ZM]}]},{type:Document,decorators:[{type:Nn,args:[KT]}]},{type:Object,decorators:[{type:Nn,args:[sc]}]},{type:Sf},{type:void 0,decorators:[{type:Nn,args:[cc]}]}]});class tP{constructor(e,t,n,r){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,t){return t?this.doc.createElementNS(WM[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(iP(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(iP(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?this.doc.querySelector(e):e;if(!n)throw new je(-5104,("undefined"==typeof ngDevMode||ngDevMode)&&`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=WM[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=WM[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&(xd.DashCase|xd.Important)?e.style.setProperty(t,n,r&xd.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&xd.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){null!=e&&(("undefined"==typeof ngDevMode||ngDevMode)&&this.throwOnSyntheticProps&&rP(t,"property"),e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n){if(("undefined"==typeof ngDevMode||ngDevMode)&&this.throwOnSyntheticProps&&rP(t,"listener"),"string"==typeof e&&!(e=qT().getGlobalEventTarget(this.doc,e)))throw new Error(`Unsupported event target ${e} for event ${t}`);return this.eventManager.addEventListener(e,t,this.decoratePreventDefault(n))}decoratePreventDefault(e){return t=>{if("__ngUnwrap__"===t)return e;!1===(this.platformIsServer?this.ngZone.runGuarded((()=>e(t))):e(t))&&t.preventDefault()}}}const nP="@".charCodeAt(0);function rP(e,t){if(e.charCodeAt(0)===nP)throw new je(5105,`Unexpected synthetic ${t} ${e} found. Please make sure that:\n - Either \`BrowserAnimationsModule\` or \`NoopAnimationsModule\` are imported in your application.\n - There is corresponding configuration for the animation named \`${e}\` defined in the \`animations\` field of the \`@Component\` decorator (see https://angular.io/api/core/Component#animations).`)}function iP(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class oP extends tP{constructor(e,t,n,r,i,o,s,a){super(e,i,o,a),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=XM(r.id,r.styles);for(const e of u){const t=document.createElement("style");s&&t.setAttribute("nonce",s),t.textContent=e,this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class sP extends tP{constructor(e,t,n,r,i,o,s,a){super(e,i,o,s),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=a?XM(a,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class aP extends sP{constructor(e,t,n,r,i,o,s,a){const u=r+"-"+n.id;var c;super(e,t,n,i,o,s,a,u),this.contentAttr=(c=u,JM.replace(KM,c)),this.hostAttr=function(e){return QM.replace(KM,e)}(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class uP extends GM{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:uP,deps:[{token:KT}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:uP})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:uP,decorators:[{type:Wa}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[KT]}]}]});const cP=["alt","control","meta","shift"],lP={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},dP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class hP extends GM{constructor(e){super(e)}supports(e){return null!=hP.parseEventName(e)}addEventListener(e,t,n){const r=hP.parseEventName(t),i=hP.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular((()=>qT().onAndCancel(e,r.domEventName,i)))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=hP._normalizeKey(t.pop());let i="",o=t.indexOf("code");if(o>-1&&(t.splice(o,1),i="code."),cP.forEach((e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")})),i+=r,0!=t.length||0===r.length)return null;const s={};return s.domEventName=n,s.fullKey=i,s}static matchEventFullKeyCode(e,t){let n=lP[e.key]||e.key,r="";return t.indexOf("code.")>-1&&(n=e.code,r="code."),!(null==n||!n)&&(n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),cP.forEach((t=>{t!==n&&(0,dP[t])(e)&&(r+=t+".")})),r+=n,r===t)}static eventCallback(e,t,n){return r=>{hP.matchEventFullKeyCode(r,e)&&n.runGuarded((()=>t(r)))}}static _normalizeKey(e){return"esc"===e?"escape":e}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:hP,deps:[{token:KT}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:hP})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:hP,decorators:[{type:Wa}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[KT]}]}]});const pP=(Rw(wD,"browser",[{provide:sc,useValue:XO},{provide:oc,useValue:function(){jM.makeCurrent()},multi:!0},{provide:KT,useFactory:function(){return tc(document),document},deps:[]}]),new jt("undefined"==typeof ngDevMode||ngDevMode?"BrowserModule Providers Marker":"")),fP=[{provide:HI,useClass:class{addToWindow(e){Xe.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new je(5103,("undefined"==typeof ngDevMode||ngDevMode)&&"Could not find testability for element.");return r},Xe.getAllAngularTestabilities=()=>e.getAllTestabilities(),Xe.getAllAngularRootElements=()=>e.getAllRootElements(),Xe.frameworkStabilizers||(Xe.frameworkStabilizers=[]),Xe.frameworkStabilizers.push((e=>{const t=Xe.getAllAngularTestabilities();let n=t.length;const r=function(){n--,0==n&&e()};t.forEach((e=>{e.whenStable(r)}))}))}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?qT().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}},deps:[]},{provide:$I,useClass:GI,deps:[Sf,qI,HI]},{provide:GI,useClass:GI,deps:[Sf,qI,HI]}],gP=[{provide:Wr,useValue:"root"},{provide:Xa,useFactory:function(){return new Xa},deps:[]},{provide:$M,useClass:uP,multi:!0,deps:[KT,Sf,sc]},{provide:$M,useClass:hP,multi:!0,deps:[KT]},eP,zM,HM,{provide:pf,useExisting:eP},{provide:class{},useClass:BM,deps:[]},"undefined"==typeof ngDevMode||ngDevMode?{provide:pP,useValue:!0}:[]];class mP{constructor(e){if(("undefined"==typeof ngDevMode||ngDevMode)&&e)throw new je(5100,"Providers from the `BrowserModule` have already been loaded. If you need access to common directives such as NgIf and NgFor, import the `CommonModule` instead.")}static withServerTransition(e){return{ngModule:mP,providers:[{provide:rc,useValue:e.appId}]}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:mP,deps:[{token:pP,optional:!0,skipSelf:!0}],target:ai.NgModule})}static{this.ɵmod=lT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:mP,exports:[ZO,DD]})}static{this.ɵinj=cT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:mP,providers:[...gP,...fP],imports:[ZO,DD]})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:mP,decorators:[{type:TI,args:[{providers:[...gP,...fP],exports:[ZO,DD]}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Mn},{type:xn},{type:Nn,args:[pP]}]}]});class vP{constructor(e){this._doc=e,this._dom=qT()}addTag(e,t=!1){return e?this._getOrCreateElement(e,t):null}addTags(e,t=!1){return e?e.reduce(((e,n)=>(n&&e.push(this._getOrCreateElement(n,t)),e)),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const t=this._doc.querySelectorAll(`meta[${e}]`);return t?[].slice.call(t):[]}updateTag(e,t){if(!e)return null;t=t||this._parseSelector(e);const n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,t=!1){if(!t){const t=this._parseSelector(e),n=this.getTags(t).filter((t=>this._containsAttributes(e,t)))[0];if(void 0!==n)return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(e,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(e,t){return Object.keys(e).forEach((n=>t.setAttribute(this._getMetaKeyMap(n),e[n]))),t}_parseSelector(e){const t=e.name?"name":"property";return`${t}="${e[t]}"`}_containsAttributes(e,t){return Object.keys(e).every((n=>t.getAttribute(this._getMetaKeyMap(n))===e[n]))}_getMetaKeyMap(e){return yP[e]||e}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:vP,deps:[{token:KT}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:vP,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:vP,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[KT]}]}]});const yP={httpEquiv:"http-equiv"};class EP{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:EP,deps:[{token:KT}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:EP,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:EP,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[KT]}]}]});const _P={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},bP=new jt("HammerGestureConfig"),SP=new jt("HammerLoader");class CP{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const e in this.overrides)t.get(e).set(this.overrides[e]);return t}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:CP,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:CP})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:CP,decorators:[{type:Wa}]});class IP extends GM{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r,this._loaderPromise=null}supports(e){return!(!_P.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(("undefined"==typeof ngDevMode||ngDevMode)&&this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||r.runOutsideAngular((()=>this.loader()));let i=!1,o=()=>{i=!0};return r.runOutsideAngular((()=>this._loaderPromise.then((()=>{if(!window.Hammer)return("undefined"==typeof ngDevMode||ngDevMode)&&this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(o=()=>{});i||(o=this.addEventListener(e,t,n))})).catch((()=>{("undefined"==typeof ngDevMode||ngDevMode)&&this.console.warn(`The "${t}" event cannot be bound because the custom Hammer.JS loader failed.`),o=()=>{}})))),()=>{o()}}return r.runOutsideAngular((()=>{const i=this._config.buildHammer(e),o=function(e){r.runGuarded((function(){n(e)}))};return i.on(t,o),()=>{i.off(t,o),"function"==typeof i.destroy&&i.destroy()}}))}isCustomEvent(e){return this._config.events.indexOf(e)>-1}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:IP,deps:[{token:KT},{token:bP},{token:NI},{token:SP,optional:!0}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:IP})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:IP,decorators:[{type:Wa}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[KT]}]},{type:CP,decorators:[{type:Nn,args:[bP]}]},{type:NI},{type:void 0,decorators:[{type:Mn},{type:Nn,args:[SP]}]}]});class wP{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wP,deps:[],target:ai.NgModule})}static{this.ɵmod=lT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:wP})}static{this.ɵinj=cT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wP,providers:[{provide:$M,useClass:IP,multi:!0,deps:[KT,bP,NI,[new Mn,SP]]},{provide:bP,useClass:CP,deps:[]}]})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wP,decorators:[{type:TI,args:[{providers:[{provide:$M,useClass:IP,multi:!0,deps:[KT,bP,NI,[new Mn,SP]]},{provide:bP,useClass:CP,deps:[]}]}]}]});class DP{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:DP,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:DP,providedIn:"root",useExisting:at((()=>TP))})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:DP,decorators:[{type:Wa,args:[{providedIn:"root",useExisting:at((()=>TP))}]}]});class TP extends DP{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case zl.NONE:return t;case zl.HTML:return cl(t,"HTML")?ul(t):Gl(this._doc,String(t)).toString();case zl.STYLE:return cl(t,"Style")?ul(t):t;case zl.SCRIPT:if(cl(t,"Script"))return ul(t);throw new je(5200,("undefined"==typeof ngDevMode||ngDevMode)&&"unsafe value used in a script context");case zl.URL:return cl(t,"URL")?ul(t):_l(String(t));case zl.RESOURCE_URL:if(cl(t,"ResourceURL"))return ul(t);throw new je(5201,("undefined"==typeof ngDevMode||ngDevMode)&&`unsafe value used in a resource URL context (see ${Ue})`);default:throw new je(5202,("undefined"==typeof ngDevMode||ngDevMode)&&`Unexpected SecurityContext ${e} (see ${Ue})`)}}bypassSecurityTrustHtml(e){return dl(e)}bypassSecurityTrustStyle(e){return hl(e)}bypassSecurityTrustScript(e){return pl(e)}bypassSecurityTrustUrl(e){return fl(e)}bypassSecurityTrustResourceUrl(e){return gl(e)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:TP,deps:[{token:KT}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:TP,providedIn:"root"})}}var AP;iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:TP,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Nn,args:[KT]}]}]}),function(e){e[e.NoHttpTransferCache=0]="NoHttpTransferCache",e[e.HttpTransferCacheOptions=1]="HttpTransferCacheOptions"}(AP||(AP={})),new AI("17.3.8");const OP="primary",NP=Symbol("RouteTitle");class MP{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function xP(e){return new MP(e)}function RP(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let t=0;t<r.length;t++){const n=r[t],o=e[t];if(n.startsWith(":"))i[n.substring(1)]=o;else if(n!==o.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function kP(e,t){const n=e?LP(e):void 0,r=t?LP(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let r=0;r<n.length;r++)if(i=n[r],!FP(e[i],t[i]))return!1;return!0}function LP(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function FP(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;const n=[...e].sort(),r=[...t].sort();return n.every(((e,t)=>r[t]===e))}return e===t}function UP(e){return e.length>0?e[e.length-1]:null}function jP(e){return(t=e)&&(t instanceof ye||q(t.lift)&&q(t.subscribe))?e:KI(e)?tM(Promise.resolve(e)):vM(e);var t}const VP={exact:function e(t,n,r){if(!QP(t.segments,n.segments))return!1;if(!qP(t.segments,n.segments,r))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i],r))return!1}return!0},subset:HP},BP={exact:function(e,t){return kP(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((n=>FP(e[n],t[n])))},ignored:()=>!0};function $P(e,t,n){return VP[n.paths](e.root,t.root,n.matrixParams)&&BP[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function HP(e,t,n){return GP(e,t,t.segments,n)}function GP(e,t,n,r){if(e.segments.length>n.length){const i=e.segments.slice(0,n.length);return!!QP(i,n)&&!t.hasChildren()&&!!qP(i,n,r)}if(e.segments.length===n.length){if(!QP(e.segments,n))return!1;if(!qP(e.segments,n,r))return!1;for(const n in t.children){if(!e.children[n])return!1;if(!HP(e.children[n],t.children[n],r))return!1}return!0}{const i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!!QP(e.segments,i)&&!!qP(e.segments,i,r)&&!!e.children[OP]&&GP(e.children[OP],t,o,r)}}function qP(e,t,n){return t.every(((t,r)=>BP[n](e[r].parameters,t.parameters)))}class zP{constructor(e=new KP([],{}),t={},n=null){if(this.root=e,this.queryParams=t,this.fragment=n,("undefined"==typeof ngDevMode||ngDevMode)&&e.segments.length>0)throw new je(4015,"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(){return this._queryParamMap??=xP(this.queryParams),this._queryParamMap}toString(){return XP.serialize(this)}}class KP{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Object.values(t).forEach((e=>e.parent=this))}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ex(this)}}class YP{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=xP(this.parameters),this._parameterMap}toString(){return ax(this)}}function QP(e,t){return e.length===t.length&&e.every(((e,n)=>e.path===t[n].path))}class JP{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:JP,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:JP,providedIn:"root",useFactory:()=>new ZP})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:JP,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:()=>new ZP}]}]});class ZP{parse(e){const t=new px(e);return new zP(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${tx(e.root,!0)}`,n=function(e){const t=Object.entries(e).map((([e,t])=>Array.isArray(t)?t.map((t=>`${rx(e)}=${rx(t)}`)).join("&"):`${rx(e)}=${rx(t)}`)).filter((e=>e));return t.length?`?${t.join("&")}`:""}(e.queryParams);var r;return`${t}${n}${"string"==typeof e.fragment?`#${r=e.fragment,encodeURI(r)}`:""}`}}const XP=new ZP;function ex(e){return e.segments.map((e=>ax(e))).join("/")}function tx(e,t){if(!e.hasChildren())return ex(e);if(t){const t=e.children[OP]?tx(e.children[OP],!1):"",n=[];return Object.entries(e.children).forEach((([e,t])=>{e!==OP&&n.push(`${e}:${tx(t,!1)}`)})),n.length>0?`${t}(${n.join("//")})`:t}{const t=function(e,t){let n=[];return Object.entries(e.children).forEach((([e,r])=>{e===OP&&(n=n.concat(t(r,e)))})),Object.entries(e.children).forEach((([e,r])=>{e!==OP&&(n=n.concat(t(r,e)))})),n}(e,((t,n)=>n===OP?[tx(e.children[OP],!1)]:[`${n}:${tx(t,!1)}`]));return 1===Object.keys(e.children).length&&null!=e.children[OP]?`${ex(e)}/${t[0]}`:`${ex(e)}/(${t.join("//")})`}}function nx(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rx(e){return nx(e).replace(/%3B/gi,";")}function ix(e){return nx(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ox(e){return decodeURIComponent(e)}function sx(e){return ox(e.replace(/\+/g,"%20"))}function ax(e){return`${ix(e.path)}${t=e.parameters,Object.entries(t).map((([e,t])=>`;${ix(e)}=${ix(t)}`)).join("")}`;var t}const ux=/^[^\/()?;#]+/;function cx(e){const t=e.match(ux);return t?t[0]:""}const lx=/^[^\/()?;=#]+/,dx=/^[^=?&#]+/,hx=/^[^&#]+/;class px{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new KP([],{}):new KP([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[OP]=new KP(e,t)),n}parseSegment(){const e=cx(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new je(4009,("undefined"==typeof ngDevMode||ngDevMode)&&`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new YP(ox(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=function(e){const t=e.match(lx);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=cx(this.remaining);e&&(n=e,this.capture(n))}e[ox(t)]=ox(n)}parseQueryParam(e){const t=function(e){const t=e.match(dx);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(hx);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=sx(t),i=sx(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=cx(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new je(4010,("undefined"==typeof ngDevMode||ngDevMode)&&`Cannot parse url '${this.url}'`);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=OP);const o=this.parseChildren();t[i]=1===Object.keys(o).length?o[OP]:new KP([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new je(4011,("undefined"==typeof ngDevMode||ngDevMode)&&`Expected "${e}".`)}}function fx(e){return e.segments.length>0?new KP([],{[OP]:e}):e}function gx(e){const t={};for(const[n,r]of Object.entries(e.children)){const e=gx(r);if(n===OP&&0===e.segments.length&&e.hasChildren())for(const[n,r]of Object.entries(e.children))t[n]=r;else(e.segments.length>0||e.hasChildren())&&(t[n]=e)}return function(e){if(1===e.numberOfChildren&&e.children[OP]){const t=e.children[OP];return new KP(e.segments.concat(t.segments),t.children)}return e}(new KP(e.segments,t))}function mx(e){return e instanceof zP}function vx(e){let t;const n=fx(function n(r){const i={};for(const e of r.children){const t=n(e);i[e.outlet]=t}const o=new KP(r.url,i);return r===e&&(t=o),o}(e.root));return t??n}function yx(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(0===t.length)return bx(i,i,i,n,r);const o=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Cx(!0,0,e);let t=0,n=!1;const r=e.reduce(((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Object.entries(r.outlets).forEach((([e,n])=>{t[e]="string"==typeof n?n.split("/"):n})),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach(((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))})),e):[...e,r]}),[]);return new Cx(n,t,r)}(t);if(o.toRoot())return bx(i,i,new KP([],{}),n,r);const s=function(e,t,n){if(e.isAbsolute)return new Ix(t,!0,0);if(!n)return new Ix(t,!1,NaN);if(null===n.parent)return new Ix(n,!0,0);const r=Ex(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new je(4005,("undefined"==typeof ngDevMode||ngDevMode)&&"Invalid number of '../'");i=r.segments.length}return new Ix(r,!1,i-o)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(o,i,e),a=s.processChildren?Dx(s.segmentGroup,s.index,o.commands):wx(s.segmentGroup,s.index,o.commands);return bx(i,s.segmentGroup,a,n,r)}function Ex(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function _x(e){return"object"==typeof e&&null!=e&&e.outlets}function bx(e,t,n,r,i){let o,s={};r&&Object.entries(r).forEach((([e,t])=>{s[e]=Array.isArray(t)?t.map((e=>`${e}`)):`${t}`})),o=e===t?n:Sx(e,t,n);const a=fx(gx(o));return new zP(a,s,i)}function Sx(e,t,n){const r={};return Object.entries(e.children).forEach((([e,i])=>{r[e]=i===t?n:Sx(i,t,n)})),new KP(e.segments,r)}class Cx{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ex(n[0]))throw new je(4003,("undefined"==typeof ngDevMode||ngDevMode)&&"Root segment cannot have matrix parameters");const r=n.find(_x);if(r&&r!==UP(n))throw new je(4004,("undefined"==typeof ngDevMode||ngDevMode)&&"{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ix{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function wx(e,t,n){if(e??=new KP([],{}),0===e.segments.length&&e.hasChildren())return Dx(e,t,n);const r=function(e,t,n){let r=0,i=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;const t=e.segments[i],s=n[r];if(_x(s))break;const a=`${s}`,u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Nx(a,u,t))return o;r+=2}else{if(!Nx(a,{},t))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new KP(e.segments.slice(0,r.pathIndex),{});return t.children[OP]=new KP(e.segments.slice(r.pathIndex),e.children),Dx(t,0,i)}return r.match&&0===i.length?new KP(e.segments,{}):r.match&&!e.hasChildren()?Tx(e,t,n):r.match?Dx(e,0,i):Tx(e,t,n)}function Dx(e,t,n){if(0===n.length)return new KP(e.segments,{});{const r=function(e){return _x(e[0])?e[0].outlets:{[OP]:e}}(n),i={};if(Object.keys(r).some((e=>e!==OP))&&e.children[OP]&&1===e.numberOfChildren&&0===e.children[OP].segments.length){const r=Dx(e.children[OP],t,n);return new KP(e.segments,r.children)}return Object.entries(r).forEach((([n,r])=>{"string"==typeof r&&(r=[r]),null!==r&&(i[n]=wx(e.children[n],t,r))})),Object.entries(e.children).forEach((([e,t])=>{void 0===r[e]&&(i[e]=t)})),new KP(e.segments,i)}}function Tx(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){const o=n[i];if(_x(o)){const e=Ax(o.outlets);return new KP(r,e)}if(0===i&&Ex(n[0])){const o=e.segments[t];r.push(new YP(o.path,Ox(n[0]))),i++;continue}const s=_x(o)?o.outlets[OP]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&Ex(a)?(r.push(new YP(s,Ox(a))),i+=2):(r.push(new YP(s,{})),i++)}return new KP(r,{})}function Ax(e){const t={};return Object.entries(e).forEach((([e,n])=>{"string"==typeof n&&(n=[n]),null!==n&&(t[e]=Tx(new KP([],{}),0,n))})),t}function Ox(e){const t={};return Object.entries(e).forEach((([e,n])=>t[e]=`${n}`)),t}function Nx(e,t,n){return e==n.path&&kP(t,n.parameters)}const Mx="imperative";var Px,xx,Rx;!function(e){e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped"}(Px||(Px={}));class kx{constructor(e,t){this.id=e,this.url=t}}class Lx extends kx{constructor(e,t,n="imperative",r=null){super(e,t),this.type=Px.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fx extends kx{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n,this.type=Px.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}!function(e){e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected"}(xx||(xx={})),function(e){e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy"}(Rx||(Rx={}));class Ux extends kx{constructor(e,t,n,r){super(e,t),this.reason=n,this.code=r,this.type=Px.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jx extends kx{constructor(e,t,n,r){super(e,t),this.reason=n,this.code=r,this.type=Px.NavigationSkipped}}class Vx extends kx{constructor(e,t,n,r){super(e,t),this.error=n,this.target=r,this.type=Px.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bx extends kx{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r,this.type=Px.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $x extends kx{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r,this.type=Px.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hx extends kx{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i,this.type=Px.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Gx extends kx{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r,this.type=Px.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qx extends kx{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r,this.type=Px.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zx{constructor(e){this.route=e,this.type=Px.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wx{constructor(e){this.route=e,this.type=Px.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(e){this.snapshot=e,this.type=Px.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yx{constructor(e){this.snapshot=e,this.type=Px.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qx{constructor(e){this.snapshot=e,this.type=Px.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jx{constructor(e){this.snapshot=e,this.type=Px.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zx{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n,this.type=Px.Scroll}toString(){const e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}}class Xx{}class eR{constructor(e){this.url=e}}class tR{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new nR,this.attachRef=null}}class nR{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new tR,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:nR,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:nR,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:nR,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});class rR{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=iR(e,this._root);return t?t.children.map((e=>e.value)):[]}firstChild(e){const t=iR(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=oR(e,this._root);return t.length<2?[]:t[t.length-2].children.map((e=>e.value)).filter((t=>t!==e))}pathFromRoot(e){return oR(e,this._root).map((e=>e.value))}}function iR(e,t){if(e===t.value)return t;for(const n of t.children){const t=iR(e,n);if(t)return t}return null}function oR(e,t){if(e===t.value)return[t];for(const n of t.children){const r=oR(e,n);if(r.length)return r.unshift(t),r}return[]}class sR{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function aR(e){const t={};return e&&e.children.forEach((e=>t[e.value.outlet]=e)),t}class uR extends rR{constructor(e,t){super(e),this.snapshot=t,fR(this,e)}toString(){return this.snapshot.toString()}}function cR(e){const t=function(e){const t=new hR([],{},{},"",{},OP,e,null,{});return new pR("",new sR(t,[]))}(e),n=new Ce([new YP("",{})]),r=new Ce({}),i=new Ce({}),o=new Ce({}),s=new Ce(""),a=new lR(n,r,o,s,i,OP,e,t.root);return a.snapshot=t.root,new uR(new sR(a,[]),t)}class lR{constructor(e,t,n,r,i,o,s,a){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=i,this.outlet=o,this.component=s,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(Ae((e=>e[NP])))??vM(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Ae((e=>xP(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ae((e=>xP(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dR(e,t,n="emptyOnly"){let r;const{routeConfig:i}=e;return r=null===t||"always"!==n&&""!==i?.path&&(t.component||t.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.data,...i?.data,...e._resolvedData}},i&&yR(i)&&(r.resolve[NP]=i.title),r}class hR{get title(){return this.data?.[NP]}constructor(e,t,n,r,i,o,s,a,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=xP(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=xP(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map((e=>e.toString())).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class pR extends rR{constructor(e,t){super(t),this.url=e,fR(this,t)}toString(){return gR(this._root)}}function fR(e,t){t.value._routerState=e,t.children.forEach((t=>fR(e,t)))}function gR(e){const t=e.children.length>0?` { ${e.children.map(gR).join(", ")} } `:"";return`${e.value}${t}`}function mR(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,kP(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),kP(t.params,n.params)||e.paramsSubject.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!kP(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.urlSubject.next(n.url),kP(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function vR(e,t){const n=kP(e.params,t.params)&&function(e,t){return QP(e,t)&&e.every(((e,n)=>kP(e.parameters,t[n].parameters)))}(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||vR(e.parent,t.parent))}function yR(e){return"string"==typeof e.title||null===e.title}class ER{constructor(){this.activated=null,this._activatedRoute=null,this.name=OP,this.activateEvents=new fu,this.deactivateEvents=new fu,this.attachEvents=new fu,this.detachEvents=new fu,this.parentContexts=Dn(nR),this.location=Dn(Xf),this.changeDetector=Dn(qw),this.environmentInjector=Dn(Zr),this.inputBinder=Dn(bR,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new je(4012,("undefined"==typeof ngDevMode||ngDevMode)&&"Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new je(4012,("undefined"==typeof ngDevMode||ngDevMode)&&"Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new je(4012,("undefined"==typeof ngDevMode||ngDevMode)&&"Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new je(4013,("undefined"==typeof ngDevMode||ngDevMode)&&"Cannot activate an already activated outlet");this._activatedRoute=e;const n=this.location,r=e.snapshot.component,i=this.parentContexts.getOrCreateContext(this.name).children,o=new _R(e,i,n.injector);this.activated=n.createComponent(r,{index:n.length,injector:o,environmentInjector:t??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:ER,deps:[],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:ER,isStandalone:!0,selector:"router-outlet",inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],usesOnChanges:!0,ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:ER,decorators:[{type:_I,args:[{selector:"router-outlet",exportAs:"outlet",standalone:!0}]}],propDecorators:{name:[{type:CI}],activateEvents:[{type:II,args:["activate"]}],deactivateEvents:[{type:II,args:["deactivate"]}],attachEvents:[{type:II,args:["attach"]}],detachEvents:[{type:II,args:["detach"]}]}});class _R{__ngOutletInjector(e){return new _R(this.route,this.childContexts,e)}constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===lR?this.route:e===nR?this.childContexts:this.parent.get(e,t)}}const bR=new jt("");class SR{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:t}=e,n=CM([t.queryParams,t.params,t.data]).pipe(PM((([e,t,n],r)=>(n={...e,...t,...n},0===r?vM(n):Promise.resolve(n))))).subscribe((n=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||null===t.component)return void this.unsubscribeFromRouteData(e);const r=_T(t.component);if(r)for(const{templateName:t}of r.inputs)e.activatedComponentRef.setInput(t,n[t]);else this.unsubscribeFromRouteData(e)}));this.outletDataSubscriptions.set(e,n)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:SR,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:SR})}}function CR(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const i=function(e,t,n){return t.children.map((t=>{for(const r of n.children)if(e.shouldReuseRoute(t.value,r.value.snapshot))return CR(e,t,r);return CR(e,t)}))}(e,t,n);return new sR(r,i)}{if(e.shouldAttach(t.value)){const n=e.retrieve(t.value);if(null!==n){const r=n.route;return r.value._futureSnapshot=t.value,r.children=t.children.map((t=>CR(e,t))),r}}const n=(r=t.value,new lR(new Ce(r.url),new Ce(r.params),new Ce(r.queryParams),new Ce(r.fragment),new Ce(r.data),r.outlet,r.component,r)),i=t.children.map((t=>CR(e,t)));return new sR(n,i)}var r}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:SR,decorators:[{type:Wa}]});const IR="ngNavigationCancelingError";function wR(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=mx(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=DR(ngDevMode&&`Redirecting to "${e.serialize(n)}"`,xx.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function DR(e,t){const n=new Error(`NavigationCancelingError: ${e||""}`);return n[IR]=!0,n.cancellationCode=t,n}function TR(e){return!!e&&e[IR]}class AR{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:AR,deps:[],target:ai.Component})}static{this.ɵcmp=oT({minVersion:"14.0.0",version:"17.3.8",type:AR,isStandalone:!0,selector:"ng-component",ngImport:r,template:"<router-outlet></router-outlet>",isInline:!0,dependencies:[{kind:"directive",type:ER,selector:"router-outlet",inputs:["name"],outputs:["activate","deactivate","attach","detach"],exportAs:["outlet"]}]})}}function OR(e,t="",n=!1){for(let r=0;r<e.length;r++){const i=e[r];MR(i,PR(t,i),n)}}function NR(e,t){if(t&&Uf(t))throw new je(4014,`Invalid configuration of route '${e}'. You are using 'loadComponent' with a module, but it must be used with standalone components. Use 'loadChildren' instead.`);if(t&&!Or(t))throw new je(4014,`Invalid configuration of route '${e}'. The component must be standalone.`)}function MR(e,t,n){if("undefined"==typeof ngDevMode||ngDevMode){if(!e)throw new je(4014,`\n Invalid configuration of route '${t}': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n `);if(Array.isArray(e))throw new je(4014,`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.redirectTo&&!e.component&&!e.loadComponent&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==OP)throw new je(4014,`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new je(4014,`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new je(4014,`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new je(4014,`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&(e.component||e.loadComponent))throw new je(4014,`Invalid configuration of route '${t}': redirectTo and component/loadComponent cannot be used together`);if(e.component&&e.loadComponent)throw new je(4014,`Invalid configuration of route '${t}': component and loadComponent cannot be used together`);if(e.redirectTo&&e.canActivate)throw new je(4014,`Invalid configuration of route '${t}': redirectTo and canActivate cannot be used together. Redirects happen before activation so canActivate will never be executed.`);if(e.path&&e.matcher)throw new je(4014,`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(!(void 0!==e.redirectTo||e.component||e.loadComponent||e.children||e.loadChildren))throw new je(4014,`Invalid configuration of route '${t}'. One of the following must be provided: component, loadComponent, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new je(4014,`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new je(4014,`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch){const n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new je(4014,`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. ${n}`)}n&&NR(t,e.component)}e.children&&OR(e.children,t,n)}function PR(e,t){return t?e||t.path?e&&!t.path?`${e}/`:!e&&t.path?t.path:`${e}/${t.path}`:"":e}function xR(e){const t=e.children&&e.children.map(xR),n=t?{...e,children:t}:{...e};return n.component||n.loadComponent||!t&&!n.loadChildren||!n.outlet||n.outlet===OP||(n.component=AR),n}function RR(e){return e.outlet||OP}function kR(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:AR,decorators:[{type:bI,args:[{template:"<router-outlet></router-outlet>",imports:[ER],standalone:!0}]}]});let LR=!1;class FR{constructor(e,t,n,r,i){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=i}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),mR(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=aR(t);e.children.forEach((e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]})),Object.values(r).forEach((e=>{this.deactivateRouteAndItsChildren(e,n)}))}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=aR(e);for(const e of Object.values(i))this.deactivateRouteAndItsChildren(e,r);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet),r=n&&e.value.component?n.children:t,i=aR(e);for(const e of Object.values(i))this.deactivateRouteAndItsChildren(e,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){const r=aR(t);e.children.forEach((e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new Jx(e.value.snapshot))})),e.children.length&&this.forwardEvent(new Yx(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(mR(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const n=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(n.contexts),t.attachRef=n.componentRef,t.route=n.route.value,t.outlet&&t.outlet.attach(n.componentRef,n.route.value),mR(n.route.value),this.activateChildRoutes(e,null,t.children)}else{const n=kR(r.snapshot);t.attachRef=null,t.route=r,t.injector=n,t.outlet&&t.outlet.activateWith(r,t.injector),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n);if("undefined"==typeof ngDevMode||ngDevMode){const e=n.getOrCreateContext(r.outlet).outlet;e&&this.inputBindingEnabled&&!e.supportsBindingToComponentInputs&&!LR&&(console.warn("'withComponentInputBinding' feature is enabled but this application is using an outlet that may not support binding to component inputs."),LR=!0)}}}class UR{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class jR{constructor(e,t){this.component=e,this.route=t}}function VR(e,t,n){const r=e._root;return $R(r,t?t._root:null,n,[r.value])}function BR(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||Pt(e)?t.get(e):e:r}function $R(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=aR(t);return e.children.forEach((e=>{!function(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const u=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!QP(e.url,t.url);case"pathParamsOrQueryParamsChange":return!QP(e.url,t.url)||!kP(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vR(e,t)||!kP(e.queryParams,t.queryParams);default:return!vR(e,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new UR(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?$R(e,t,a?a.children:null,r,i):$R(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new jR(a.outlet.component,s))}else s&&HR(t,a,i),i.canActivateChecks.push(new UR(r)),o.component?$R(e,null,a?a.children:null,r,i):$R(e,null,n,r,i)}(e,o[e.value.outlet],n,r.concat([e.value]),i),delete o[e.value.outlet]})),Object.entries(o).forEach((([e,t])=>HR(t,n.getContext(e),i))),i}function HR(e,t,n){const r=aR(e),i=e.value;Object.entries(r).forEach((([e,r])=>{i.component?HR(r,t?t.children.getContext(e):null,n):HR(r,t,n)})),i.component&&t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new jR(t.outlet.component,i)):n.canDeactivateChecks.push(new jR(null,i))}function GR(e){return"function"==typeof e}function qR(e){return e instanceof Oe||"EmptyError"===e?.name}const zR=Symbol("INITIAL_VALUE");function WR(){return PM((e=>CM(e.map((e=>e.pipe(Pe(1),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=mM(e);return we((function(t,r){(n?TM(e,t,n):TM(e,t)).subscribe(r)}))}(zR))))).pipe(Ae((e=>{for(const t of e)if(!0!==t){if(t===zR)return zR;if(!1===t||t instanceof zP)return t}return!0})),Ne((e=>e!==zR)),Pe(1))))}function KR(e){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ve(e)}(RM((t=>{if(mx(t))throw wR(e,t)})),Ae((e=>!0===e)))}class YR{constructor(e){this.segmentGroup=e||null}}class QR extends Error{constructor(e){super(),this.urlTree=e}}function JR(e){return OM(new YR(e))}class ZR{constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return vM(n);if(r.numberOfChildren>1||!r.children[OP])return i=e.redirectTo,OM(new je(4e3,("undefined"==typeof ngDevMode||ngDevMode)&&`Only absolute redirects can have named outlets. redirectTo: '${i}'`));r=r.children[OP]}var i}applyRedirectCommands(e,t,n){const r=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),e,n);if(t.startsWith("/"))throw new QR(r);return r}applyRedirectCreateUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new zP(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Object.entries(e).forEach((([e,r])=>{if("string"==typeof r&&r.startsWith(":")){const i=r.substring(1);n[e]=t[i]}else n[e]=r})),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let o={};return Object.entries(t.children).forEach((([t,i])=>{o[t]=this.createSegmentGroup(e,i,n,r)})),new KP(i,o)}createSegments(e,t,n,r){return t.map((t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n)))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new je(4001,("undefined"==typeof ngDevMode||ngDevMode)&&`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}const XR={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ek(e,t,n,r,i){const o=tk(e,t,n);return o.matched?(r=function(e,t){return e.providers&&!e._injector&&(e._injector=Um(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function(e,t,n,r){const i=t.canMatch;return i&&0!==i.length?vM(i.map((r=>{const i=BR(r,e);return jP(function(e){return e&&GR(e.canMatch)}(i)?i.canMatch(t,n):ii(e,(()=>i(t,n))))}))).pipe(WR(),KR(r)):vM(!0)}(r,t,n,i).pipe(Ae((e=>!0===e?o:{...XR})))):vM(o)}function tk(e,t,n){if("**"===t.path)return function(e){return{matched:!0,parameters:e.length>0?UP(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...XR}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const r=(t.matcher||RP)(n,e,t);if(!r)return{...XR};const i={};Object.entries(r.posParams??{}).forEach((([e,t])=>{i[e]=t.path}));const o=r.consumed.length>0?{...i,...r.consumed[r.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:r.consumed,remainingSegments:n.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function nk(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some((n=>rk(e,t,n)&&RR(n)!==OP))}(e,n,r))return{segmentGroup:new KP(t,function(e,t){const n={};n[OP]=t;for(const t of e)if(""===t.path&&RR(t)!==OP){const e=new KP([],{});n[RR(t)]=e}return n}(r,new KP(n,e.children))),slicedSegments:[]};if(0===n.length&&function(e,t,n){return n.some((n=>rk(e,t,n)))}(e,n,r)){const t=new KP(e.segments,function(e,t,n,r){const i={};for(const o of n)if(rk(e,t,o)&&!r[RR(o)]){const e=new KP([],{});i[RR(o)]=e}return{...r,...i}}(e,n,r,e.children));return{segmentGroup:t,slicedSegments:n}}return{segmentGroup:new KP(e.segments,e.children),slicedSegments:n}}function rk(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class ik{}class ok{constructor(e,t,n,r,i,o,s){this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=r,this.urlTree=i,this.paramsInheritanceStrategy=o,this.urlSerializer=s,this.applyRedirects=new ZR(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new je(4002,"undefined"==typeof ngDevMode||ngDevMode?`Cannot match any routes. URL Segment: '${e.segmentGroup}'`:`'${e.segmentGroup}'`)}recognize(){const e=nk(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(Ae((e=>{const t=new hR([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},OP,this.rootComponentType,null,{}),n=new sR(t,e),r=new pR("",n),i=function(e,t,n=null,r=null){return yx(vx(e),t,n,r)}(t,[],this.urlTree.queryParams,this.urlTree.fragment);return i.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(i),this.inheritParamsAndData(r._root,null),{state:r,tree:i}})))}match(e){return this.processSegmentGroup(this.injector,this.config,e,OP).pipe(kM((e=>{if(e instanceof QR)return this.urlTree=e.urlTree,this.match(e.urlTree.root);if(e instanceof YR)throw this.noMatchError(e);throw e})))}inheritParamsAndData(e,t){const n=e.value,r=dR(n,t,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach((e=>this.inheritParamsAndData(e,n)))}processSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,n,n.segments,r,!0).pipe(Ae((e=>e instanceof sR?[e]:[])))}processChildren(e,t,n){const r=[];for(const e of Object.keys(n.children))"primary"===e?r.unshift(e):r.push(e);return tM(r).pipe(xM((r=>{const i=n.children[r],o=function(e,t){const n=e.filter((e=>RR(e)===t));return n.push(...e.filter((e=>RR(e)!==t))),n}(t,r);return this.processSegmentGroup(e,o,i,r)})),function(e,t){return we(function(e,t,n,r,i){return function(r,i){var o=n,s=t,a=0;r.subscribe(De(i,(function(t){var n=a++;s=o?e(s,t,n):(o=!0,t),i.next(s)}),void 0))}}(e,t,arguments.length>=2))}(((e,t)=>(e.push(...t),e))),xe(null),function(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Ne((function(t,n){return e(t,n,r)})):me,LM(1),n?xe(t):Re((function(){return new Oe})))}}(),wM((e=>{if(null===e)return JR(n);const t=ak(e);return("undefined"==typeof ngDevMode||ngDevMode)&&function(e){const t={};e.forEach((e=>{const n=t[e.value.outlet];if(n){const t=n.url.map((e=>e.toString())).join("/"),r=e.value.url.map((e=>e.toString())).join("/");throw new je(4006,("undefined"==typeof ngDevMode||ngDevMode)&&`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value}))}(t),t.sort(((e,t)=>e.value.outlet===OP?-1:t.value.outlet===OP?1:e.value.outlet.localeCompare(t.value.outlet))),vM(t)})))}processSegment(e,t,n,r,i,o){return tM(t).pipe(xM((s=>this.processSegmentAgainstRoute(s._injector??e,t,s,n,r,i,o).pipe(kM((e=>{if(e instanceof YR)return vM(null);throw e}))))),Le((e=>!!e)),kM((e=>{if(qR(e))return function(e,t,n){return 0===t.length&&!e.children[n]}(n,r,i)?vM(new ik):JR(n);throw e})))}processSegmentAgainstRoute(e,t,n,r,i,o,s){return function(e,t,n,r){return!!(RR(e)===r||r!==OP&&rk(t,n,e))&&tk(t,e,n).matched}(n,r,i,o)?void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,r,n,i,o):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(e,r,t,n,i,o):JR(r):JR(r)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o){const{matched:s,consumedSegments:a,positionalParamSegments:u,remainingSegments:c}=tk(t,r,i);if(!s)return JR(t);if(r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31)){if(ngDevMode)throw new je(4016,`Detected possible infinite redirect when redirecting from '${this.urlTree}' to '${r.redirectTo}'.\nThis is currently a dev mode only error but will become a call stack size exceeded error in production in a future major version.`);this.allowRedirects=!1}const l=this.applyRedirects.applyRedirectCommands(a,r.redirectTo,u);return this.applyRedirects.lineralizeSegments(r,l).pipe(wM((r=>this.processSegment(e,n,t,r.concat(c),o,!1))))}matchSegmentAgainstRoute(e,t,n,r,i){const o=ek(t,n,r,e,this.urlSerializer);return"**"===n.path&&(t.children={}),o.pipe(PM((o=>o.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(PM((({routes:r})=>{const s=n._loadedInjector??e,{consumedSegments:a,remainingSegments:u,parameters:c}=o,l=new hR(a,c,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function(e){return e.data||{}}(n),RR(n),n.component??n._loadedComponent??null,n,function(e){return e.resolve||{}}(n)),{segmentGroup:d,slicedSegments:h}=nk(t,a,u,r);if(0===h.length&&d.hasChildren())return this.processChildren(s,r,d).pipe(Ae((e=>null===e?null:new sR(l,e))));if(0===r.length&&0===h.length)return vM(new sR(l,[]));const p=RR(n)===i;return this.processSegment(s,r,d,h,p?OP:i,!0).pipe(Ae((e=>new sR(l,e instanceof sR?[e]:[]))))})))):JR(t))))}getChildConfig(e,t,n){return t.children?vM({routes:t.children,injector:e}):t.loadChildren?void 0!==t._loadedRoutes?vM({routes:t._loadedRoutes,injector:t._loadedInjector}):function(e,t,n,r){const i=t.canLoad;return void 0===i||0===i.length?vM(!0):vM(i.map((r=>{const i=BR(r,e);return jP(function(e){return e&&GR(e.canLoad)}(i)?i.canLoad(t,n):ii(e,(()=>i(t,n))))}))).pipe(WR(),KR(r))}(e,t,n,this.urlSerializer).pipe(wM((n=>n?this.configLoader.loadChildren(e,t).pipe(RM((e=>{t._loadedRoutes=e.routes,t._loadedInjector=e.injector}))):function(e){return OM(DR(("undefined"==typeof ngDevMode||ngDevMode)&&`Cannot load children because the guard of the route "path: '${e.path}'" returned false`,xx.GuardRejected))}(t)))):vM({routes:[],injector:e})}}function sk(e){const t=e.value.routeConfig;return t&&""===t.path}function ak(e){const t=[],n=new Set;for(const r of e){if(!sk(r)){t.push(r);continue}const e=t.find((e=>r.value.routeConfig===e.value.routeConfig));void 0!==e?(e.children.push(...r.children),n.add(e)):t.push(r)}for(const e of n){const n=ak(e.children);t.push(new sR(e.value,n))}return t.filter((e=>!n.has(e)))}function uk(e){const t=e.children.map((e=>uk(e))).flat();return[e,...t]}function ck(e){return PM((t=>{const n=e(t);return n?tM(n).pipe(Ae((()=>t))):vM(t)}))}class lk{buildTitle(e){let t,n=e.root;for(;void 0!==n;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find((e=>e.outlet===OP));return t}getResolvedTitleForRoute(e){return e.data[NP]}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:lk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:lk,providedIn:"root",useFactory:()=>Dn(dk)})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:lk,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:()=>Dn(dk)}]}]});class dk extends lk{constructor(e){super(),this.title=e}updateTitle(e){const t=this.buildTitle(e);void 0!==t&&this.title.setTitle(t)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:dk,deps:[{token:EP}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:dk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:dk,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:EP}]});const hk=new jt("undefined"==typeof ngDevMode||ngDevMode?"router config":"",{providedIn:"root",factory:()=>({})}),pk=new jt(ngDevMode?"ROUTES":"");class fk{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=Dn(hw)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return vM(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const t=jP(e.loadComponent()).pipe(Ae(gk),RM((t=>{this.onLoadEndListener&&this.onLoadEndListener(e),("undefined"==typeof ngDevMode||ngDevMode)&&NR(e.path??"",t),e._loadedComponent=t})),FM((()=>{this.componentLoaders.delete(e)}))),n=new MM(t,(()=>new be)).pipe(NM());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return vM({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);const n=function(e,t,n,r){return jP(e.loadChildren()).pipe(Ae(gk),wM((e=>e instanceof Pm||Array.isArray(e)?vM(e):tM(t.compileModuleAsync(e)))),Ae((t=>{let i,o;r&&r(e);let s=!1;Array.isArray(t)?(o=t,s=!0):(i=t.create(n).injector,o=i.get(pk,[],{optional:!0,self:!0}).flat());const a=o.map(xR);return("undefined"==typeof ngDevMode||ngDevMode)&&OR(a,e.path,s),{routes:a,injector:i}})))}(t,this.compiler,e,this.onLoadEndListener),r=n.pipe(FM((()=>{this.childrenLoaders.delete(t)}))),i=new MM(r,(()=>new be)).pipe(NM());return this.childrenLoaders.set(t,i),i}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:fk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:fk,providedIn:"root"})}}function gk(e){return(t=e)&&"object"==typeof t&&"default"in t?e.default:e;var t}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:fk,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});class mk{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:mk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:mk,providedIn:"root",useFactory:()=>Dn(vk)})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:mk,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:()=>Dn(vk)}]}]});class vk{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:vk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:vk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:vk,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});const yk=new jt(ngDevMode?"view transition helper":""),Ek=new jt(ngDevMode?"view transition options":"");function _k(e,t,n){const r=e.get(Ek),i=e.get(KT);return e.get(Sf).runOutsideAngular((()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise((e=>setTimeout(e)));let o;const s=new Promise((e=>{o=e})),a=i.startViewTransition((()=>(o(),function(e){return new Promise((t=>{xf(t,{injector:e})}))}(e)))),{onViewTransitionCreated:u}=r;return u&&ii(e,(()=>u({transition:a,from:t,to:n}))),s}))}class bk{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new be,this.transitionAbortSubject=new be,this.configLoader=Dn(fk),this.environmentInjector=Dn(Zr),this.urlSerializer=Dn(JP),this.rootContexts=Dn(nR),this.location=Dn(oA),this.inputBindingEnabled=null!==Dn(bR,{optional:!0}),this.titleStrategy=Dn(lk),this.options=Dn(hk,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=Dn(mk),this.createViewTransition=Dn(yk,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>vM(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=e=>this.events.next(new Wx(e)),this.configLoader.onLoadStartListener=e=>this.events.next(new zx(e))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const t=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:t})}setupNavigations(e,t,n){return this.transitions=new Ce({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Mx,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ne((e=>0!==e.id)),Ae((e=>({...e,extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)}))),PM((t=>{let n=!1,r=!1;return vM(t).pipe(PM((n=>{if(this.navigationId>t.id){const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`:"";return this.cancelNavigationTransition(t,e,xx.SupersededByNewNavigation),Me}this.currentTransition=t,this.currentNavigation={id:n.id,initialUrl:n.rawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const r=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),i=n.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!r&&"reload"!==i){const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation to ${n.rawUrl} was ignored because it is the same as the current Router URL.`:"";return this.events.next(new jx(n.id,this.urlSerializer.serialize(n.rawUrl),e,Rx.IgnoredSameUrlNavigation)),n.resolve(null),Me}if(this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return vM(n).pipe(PM((e=>{const t=this.transitions?.getValue();return this.events.next(new Lx(e.id,this.urlSerializer.serialize(e.extractedUrl),e.source,e.restoredState)),t!==this.transitions?.getValue()?Me:Promise.resolve(e)})),function(e,t,n,r,i,o){return wM((s=>function(e,t,n,r,i,o,s="emptyOnly"){return new ok(e,t,n,r,i,s,o).recognize()}(e,t,n,r,s.extractedUrl,i,o).pipe(Ae((({state:e,tree:t})=>({...s,targetSnapshot:e,urlAfterRedirects:t}))))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),RM((e=>{t.targetSnapshot=e.targetSnapshot,t.urlAfterRedirects=e.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:e.urlAfterRedirects};const n=new Bx(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(n)})));if(r&&this.urlHandlingStrategy.shouldProcessUrl(n.currentRawUrl)){const{id:e,extractedUrl:r,source:i,restoredState:o,extras:s}=n,a=new Lx(e,this.urlSerializer.serialize(r),i,o);this.events.next(a);const u=cR(this.rootComponentType).snapshot;return this.currentTransition=t={...n,targetSnapshot:u,urlAfterRedirects:r,extras:{...s,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=r,vM(t)}{const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation was ignored because the UrlHandlingStrategy indicated neither the current URL ${n.currentRawUrl} nor target URL ${n.rawUrl} should be processed.`:"";return this.events.next(new jx(n.id,this.urlSerializer.serialize(n.extractedUrl),e,Rx.IgnoredByUrlHandlingStrategy)),n.resolve(null),Me}})),RM((e=>{const t=new $x(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)})),Ae((e=>(this.currentTransition=t={...e,guards:VR(e.targetSnapshot,e.currentSnapshot,this.rootContexts)},t))),function(e,t){return wM((n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?vM({...n,guardsResult:!0}):function(e,t,n,r){return tM(e).pipe(wM((e=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?vM(o.map((o=>{const s=kR(t)??i,a=BR(o,s);return jP(function(e){return e&&GR(e.canDeactivate)}(a)?a.canDeactivate(e,t,n,r):ii(s,(()=>a(e,t,n,r)))).pipe(Le())}))).pipe(WR()):vM(!0)}(e.component,e.route,n,t,r))),Le((e=>!0!==e),!0))}(s,r,i,e).pipe(wM((n=>n&&function(e){return"boolean"==typeof e}(n)?function(e,t,n,r){return tM(t).pipe(xM((t=>TM(function(e,t){return null!==e&&t&&t(new Kx(e)),vM(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new Qx(e)),vM(!0)}(t.route,r),function(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map((e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e))).filter((e=>null!==e)).map((t=>AM((()=>vM(t.guards.map((i=>{const o=kR(t.node)??n,s=BR(i,o);return jP(function(e){return e&&GR(e.canActivateChild)}(s)?s.canActivateChild(r,e):ii(o,(()=>s(r,e)))).pipe(Le())}))).pipe(WR())))));return vM(i).pipe(WR())}(e,t.path,n),function(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;return r&&0!==r.length?vM(r.map((r=>AM((()=>{const i=kR(t)??n,o=BR(r,i);return jP(function(e){return e&&GR(e.canActivate)}(o)?o.canActivate(t,e):ii(i,(()=>o(t,e)))).pipe(Le())}))))).pipe(WR()):vM(!0)}(e,t.route,n)))),Le((e=>!0!==e),!0))}(r,o,e,t):vM(n))),Ae((e=>({...n,guardsResult:e}))))}))}(this.environmentInjector,(e=>this.events.next(e))),RM((e=>{if(t.guardsResult=e.guardsResult,mx(e.guardsResult))throw wR(this.urlSerializer,e.guardsResult);const n=new Hx(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.events.next(n)})),Ne((e=>!!e.guardsResult||(this.cancelNavigationTransition(e,"",xx.GuardRejected),!1))),ck((e=>{if(e.guards.canActivateChecks.length)return vM(e).pipe(RM((e=>{const t=new Gx(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)})),PM((e=>{let t=!1;return vM(e).pipe((n=this.paramsInheritanceStrategy,r=this.environmentInjector,wM((e=>{const{targetSnapshot:t,guards:{canActivateChecks:i}}=e;if(!i.length)return vM(e);const o=new Set(i.map((e=>e.route))),s=new Set;for(const e of o)if(!s.has(e))for(const t of uk(e))s.add(t);let a=0;return tM(s).pipe(xM((e=>o.has(e)?function(e,t,n,r){const i=e.routeConfig,o=e._resolve;return void 0===i?.title||yR(i)||(o[NP]=i.title),function(e,t,n,r){const i=LP(e);if(0===i.length)return vM({});const o={};return tM(i).pipe(wM((i=>function(e,t,n,r){const i=kR(t)??r,o=BR(e,i);return jP(o.resolve?o.resolve(t,n):ii(i,(()=>o(t,n))))}(e[i],t,n,r).pipe(Le(),RM((e=>{o[i]=e}))))),LM(1),(s=o,Ae((function(){return s}))),kM((e=>qR(e)?Me:OM(e))));var s}(o,e,t,r).pipe(Ae((t=>(e._resolvedData=t,e.data=dR(e,e.parent,n).resolve,null))))}(e,t,n,r):(e.data=dR(e,e.parent,n).resolve,vM(void 0)))),RM((()=>a++)),LM(1),wM((t=>a===s.size?vM(e):Me)))}))),RM({next:()=>t=!0,complete:()=>{t||this.cancelNavigationTransition(e,"undefined"==typeof ngDevMode||ngDevMode?"At least one route resolver didn't emit any value.":"",xx.NoDataFromResolver)}}));var n,r})),RM((e=>{const t=new qx(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);this.events.next(t)})))})),ck((e=>{const t=e=>{const n=[];e.routeConfig?.loadComponent&&!e.routeConfig._loadedComponent&&n.push(this.configLoader.loadComponent(e.routeConfig).pipe(RM((t=>{e.component=t})),Ae((()=>{}))));for(const r of e.children)n.push(...t(r));return n};return CM(t(e.targetSnapshot.root)).pipe(xe(null),Pe(1))})),ck((()=>this.afterPreactivation())),PM((()=>{const{currentSnapshot:e,targetSnapshot:n}=t,r=this.createViewTransition?.(this.environmentInjector,e.root,n.root);return r?tM(r).pipe(Ae((()=>t))):vM(t)})),Ae((n=>{const r=function(e,t,n){const r=CR(e,t._root,n?n._root:void 0);return new uR(r,t)}(e.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return this.currentTransition=t={...n,targetRouterState:r},this.currentNavigation.targetRouterState=r,t})),RM((()=>{this.events.next(new Xx)})),(o=this.rootContexts,s=e.routeReuseStrategy,a=e=>this.events.next(e),u=this.inputBindingEnabled,Ae((e=>(new FR(s,e.targetRouterState,e.currentRouterState,a,u).activate(o),e)))),Pe(1),RM({next:e=>{n=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Fx(e.id,this.urlSerializer.serialize(e.extractedUrl),this.urlSerializer.serialize(e.urlAfterRedirects))),this.titleStrategy?.updateTitle(e.targetRouterState.snapshot),e.resolve(!0)},complete:()=>{n=!0}}),(i=this.transitionAbortSubject.pipe(RM((e=>{throw e}))),we((function(e,t){YN(i).subscribe(De(t,(function(){return t.complete()}),ne)),!t.closed&&e.subscribe(t)}))),FM((()=>{if(!n&&!r){const e="undefined"==typeof ngDevMode||ngDevMode?`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`:"";this.cancelNavigationTransition(t,e,xx.SupersededByNewNavigation)}this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)})),kM((n=>{if(r=!0,TR(n))this.events.next(new Ux(t.id,this.urlSerializer.serialize(t.extractedUrl),n.message,n.cancellationCode)),TR(i=n)&&mx(i.url)?this.events.next(new eR(n.url)):t.resolve(!1);else{this.events.next(new Vx(t.id,this.urlSerializer.serialize(t.extractedUrl),n,t.targetSnapshot??void 0));try{t.resolve(e.errorHandler(n))}catch(e){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(e)}}var i;return Me})));var i,o,s,a,u})))}cancelNavigationTransition(e,t,n){const r=new Ux(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:bk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:bk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:bk,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});class Sk{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Sk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Sk,providedIn:"root",useFactory:()=>Dn(Ik)})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Sk,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:()=>Dn(Ik)}]}]});class Ck{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}class Ik extends Ck{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Ik,deps:null,target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Ik,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Ik,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});class wk{static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wk,providedIn:"root",useFactory:()=>Dn(Dk)})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:wk,decorators:[{type:Wa,args:[{providedIn:"root",useFactory:()=>Dn(Dk)}]}]});class Dk extends wk{constructor(){super(...arguments),this.location=Dn(oA),this.urlSerializer=Dn(JP),this.options=Dn(hk,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=Dn(mk),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new zP,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=cR(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe((t=>{"popstate"===t.type&&e(t.url,t.state)}))}handleRouterEvent(e,t){if(e instanceof Lx)this.stateMemento=this.createStateMemento();else if(e instanceof jx)this.rawUrlTree=t.initialUrl;else if(e instanceof Bx){if("eager"===this.urlUpdateStrategy&&!t.extras.skipLocationChange){const e=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(e,t)}}else e instanceof Xx?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t))):e instanceof Ux&&(e.code===xx.GuardRejected||e.code===xx.NoDataFromResolver)?this.restoreHistory(t):e instanceof Vx?this.restoreHistory(t,!0):e instanceof Fx&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){const n=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl){const e=this.browserPageId,r={...t.extras.state,...this.generateNgRouterState(t.id,e)};this.location.replaceState(n,"",r)}else{const e={...t.extras.state,...this.generateNgRouterState(t.id,this.browserPageId+1)};this.location.go(n,"",e)}}restoreHistory(e,t=!1){if("computed"===this.canceledNavigationResolution){const t=this.browserPageId,n=this.currentPageId-t;0!==n?this.location.historyGo(n):this.currentUrlTree===e.finalUrl&&0===n&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,ɵrouterPageId:t}:{navigationId:e}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Dk,deps:null,target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Dk,providedIn:"root"})}}var Tk;function Ak(e,t){e.events.pipe(Ne((e=>e instanceof Fx||e instanceof Ux||e instanceof Vx||e instanceof jx)),Ae((e=>e instanceof Fx||e instanceof jx?Tk.COMPLETE:e instanceof Ux&&(e.code===xx.Redirect||e.code===xx.SupersededByNewNavigation)?Tk.REDIRECTING:Tk.FAILED)),Ne((e=>e!==Tk.REDIRECTING)),Pe(1)).subscribe((()=>{t()}))}function Ok(e){throw e}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Dk,decorators:[{type:Wa,args:[{providedIn:"root"}]}]}),function(e){e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING"}(Tk||(Tk={}));const Nk={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Mk={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};class Pk{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=Dn(NI),this.stateManager=Dn(wk),this.options=Dn(hk,{optional:!0})||{},this.pendingTasks=Dn(Gm),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=Dn(bk),this.urlSerializer=Dn(JP),this.location=Dn(oA),this.urlHandlingStrategy=Dn(mk),this._events=new be,this.errorHandler=this.options.errorHandler||Ok,this.navigated=!1,this.routeReuseStrategy=Dn(Sk),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=Dn(pk,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!Dn(bR,{optional:!0}),this.eventsSubscription=new Y,this.isNgZoneEnabled=Dn(Sf)instanceof Sf&&Sf.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(ngDevMode?`Unhandled Navigation Error: ${e}`:e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const e=this.navigationTransitions.events.subscribe((e=>{try{const n=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(null!==n&&null!==r)if(this.stateManager.handleRouterEvent(e,r),e instanceof Ux&&e.code!==xx.Redirect&&e.code!==xx.SupersededByNewNavigation)this.navigated=!0;else if(e instanceof Fx)this.navigated=!0;else if(e instanceof eR){const r=this.urlHandlingStrategy.merge(e.url,n.currentRawUrl),i={info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||(t=n.source,t!==Mx)};this.scheduleNavigation(r,Mx,null,i,{resolve:n.resolve,reject:n.reject,promise:n.promise})}(function(e){return!(e instanceof Xx||e instanceof eR)})(e)&&this._events.next(e)}catch(e){this.navigationTransitions.transitionAbortSubject.next(e)}var t}));this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Mx,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener(((e,t)=>{setTimeout((()=>{this.navigateToSyncWithBrowser(e,"popstate",t)}),0)}))}navigateToSyncWithBrowser(e,t,n){const r={replaceUrl:!0},i=n?.navigationId?n:null;if(n){const e={...n};delete e.navigationId,delete e.ɵrouterPageId,0!==Object.keys(e).length&&(r.state=e)}const o=this.parseUrl(e);this.scheduleNavigation(o,t,i,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){("undefined"==typeof ngDevMode||ngDevMode)&&OR(e),this.config=e.map(xR),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:i,queryParamsHandling:o,preserveFragment:s}=t,a=s?this.currentUrlTree.fragment:i;let u,c=null;switch(o){case"merge":c={...this.currentUrlTree.queryParams,...r};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}null!==c&&(c=this.removeEmptyProps(c));try{u=vx(n?n.snapshot:this.routerState.snapshot.root)}catch(t){"string"==typeof e[0]&&e[0].startsWith("/")||(e=[]),u=this.currentUrlTree.root}return yx(u,e,c,a??null)}navigateByUrl(e,t={skipLocationChange:!1}){("undefined"==typeof ngDevMode||ngDevMode)&&this.isNgZoneEnabled&&!Sf.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=mx(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,Mx,null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new je(4008,("undefined"==typeof ngDevMode||ngDevMode)&&`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(n=!0===t?{...Nk}:!1===t?{...Mk}:t,mx(e))return $P(this.currentUrlTree,e,n);const r=this.parseUrl(e);return $P(this.currentUrlTree,r,n)}removeEmptyProps(e){return Object.entries(e).reduce(((e,[t,n])=>(null!=n&&(e[t]=n),e)),{})}scheduleNavigation(e,t,n,r,i){if(this.disposed)return Promise.resolve(!1);let o,s,a;i?(o=i.resolve,s=i.reject,a=i.promise):a=new Promise(((e,t)=>{o=e,s=t}));const u=this.pendingTasks.add();return Ak(this,(()=>{queueMicrotask((()=>this.pendingTasks.remove(u)))})),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:o,reject:s,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch((e=>Promise.reject(e)))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Pk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Pk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Pk,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[]});class xk{constructor(e,t,n,r,i,o){this.router=e,this.route=t,this.tabIndexAttribute=n,this.renderer=r,this.el=i,this.locationStrategy=o,this.href=null,this.commands=null,this.onChanges=new be,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const s=i.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===s||"area"===s,this.isAnchorElement?this.subscription=e.events.subscribe((e=>{e instanceof Fx&&this.updateHref()})):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,t,n,r,i){const o=this.urlTree;if(null===o)return!0;if(this.isAnchorElement){if(0!==e||t||n||r||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0}const s={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(o,s),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const e=this.urlTree;this.href=null!==e&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;const t=null===this.href?null:ed(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){const n=this.renderer,r=this.el.nativeElement;null!==t?n.setAttribute(r,e,t):n.removeAttribute(r,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:xk,deps:[{token:Pk},{token:lR},{token:"tabindex",attribute:!0},{token:ff},{token:du},{token:tA}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"16.1.0",version:"17.3.8",type:xk,isStandalone:!0,selector:"[routerLink]",inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",tT],skipLocationChange:["skipLocationChange","skipLocationChange",tT],replaceUrl:["replaceUrl","replaceUrl",tT],routerLink:"routerLink"},host:{listeners:{click:"onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)"},properties:{"attr.target":"this.target"}},usesOnChanges:!0,ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:xk,decorators:[{type:_I,args:[{selector:"[routerLink]",standalone:!0}]}],ctorParameters:()=>[{type:Pk},{type:lR},{type:void 0,decorators:[{type:ja,args:["tabindex"]}]},{type:ff},{type:du},{type:tA}],propDecorators:{target:[{type:wI,args:["attr.target"]},{type:CI}],queryParams:[{type:CI}],fragment:[{type:CI}],queryParamsHandling:[{type:CI}],state:[{type:CI}],info:[{type:CI}],relativeTo:[{type:CI}],preserveFragment:[{type:CI,args:[{transform:tT}]}],skipLocationChange:[{type:CI,args:[{transform:tT}]}],replaceUrl:[{type:CI,args:[{transform:tT}]}],routerLink:[{type:CI}],onClick:[{type:DI,args:["click",["$event.button","$event.ctrlKey","$event.shiftKey","$event.altKey","$event.metaKey"]]}]}});class Rk{get isActive(){return this._isActive}constructor(e,t,n,r,i){this.router=e,this.element=t,this.renderer=n,this.cdr=r,this.link=i,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new fu,this.routerEventsSubscription=e.events.subscribe((e=>{e instanceof Fx&&this.update()}))}ngAfterContentInit(){vM(this.links.changes,vM(null)).pipe(DM()).subscribe((e=>{this.update(),this.subscribeToEachLinkOnChanges()}))}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter((e=>!!e)).map((e=>e.onChanges));this.linkInputChangesSubscription=tM(e).pipe(DM()).subscribe((e=>{this._isActive!==this.isLinkActive(this.router)(e)&&this.update()}))}set routerLinkActive(e){const t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter((e=>!!e))}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){this.links&&this.router.navigated&&queueMicrotask((()=>{const e=this.hasActiveLinks();this.classes.forEach((t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)})),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))}))}isLinkActive(e){const t=function(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>{const r=n.urlTree;return!!r&&e.isActive(r,t)}}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Rk,deps:[{token:Pk},{token:du},{token:ff},{token:qw},{token:xk,optional:!0}],target:ai.Directive})}static{this.ɵdir=rT({minVersion:"14.0.0",version:"17.3.8",type:Rk,isStandalone:!0,selector:"[routerLinkActive]",inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},queries:[{propertyName:"links",predicate:xk,descendants:!0}],exportAs:["routerLinkActive"],usesOnChanges:!0,ngImport:r})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Rk,decorators:[{type:_I,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive",standalone:!0}]}],ctorParameters:()=>[{type:Pk},{type:du},{type:ff},{type:qw},{type:xk,decorators:[{type:Mn}]}],propDecorators:{links:[{type:Qg,args:[xk,{descendants:!0}]}],routerLinkActiveOptions:[{type:CI}],ariaCurrentWhenActive:[{type:CI}],isActiveChange:[{type:II}],routerLinkActive:[{type:CI}]}});class kk{}class Lk{preload(e,t){return t().pipe(kM((()=>vM(null))))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Lk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Lk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Lk,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});class Fk{preload(e,t){return vM(null)}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Fk,deps:[],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Fk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Fk,decorators:[{type:Wa,args:[{providedIn:"root"}]}]});class Uk{constructor(e,t,n,r,i){this.router=e,this.injector=n,this.preloadingStrategy=r,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(Ne((e=>e instanceof Fx)),xM((()=>this.preload()))).subscribe((()=>{}))}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t){r.providers&&!r._injector&&(r._injector=Um(r.providers,e,`Route: ${r.path}`));const t=r._injector??e,i=r._loadedInjector??t;(r.loadChildren&&!r._loadedRoutes&&void 0===r.canLoad||r.loadComponent&&!r._loadedComponent)&&n.push(this.preloadConfig(t,r)),(r.children||r._loadedRoutes)&&n.push(this.processRoutes(i,r.children??r._loadedRoutes))}return tM(n).pipe(DM())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,(()=>{let n;n=t.loadChildren&&void 0===t.canLoad?this.loader.loadChildren(e,t):vM(null);const r=n.pipe(wM((n=>null===n?vM(void 0):(t._loadedRoutes=n.routes,t._loadedInjector=n.injector,this.processRoutes(n.injector??e,n.routes)))));return t.loadComponent&&!t._loadedComponent?tM([r,this.loader.loadComponent(t)]).pipe(DM()):r}))}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Uk,deps:[{token:Pk},{token:hw},{token:Zr},{token:kk},{token:fk}],target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Uk,providedIn:"root"})}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Uk,decorators:[{type:Wa,args:[{providedIn:"root"}]}],ctorParameters:()=>[{type:Pk},{type:hw},{type:Zr},{type:kk},{type:fk}]});const jk=new jt("");class Vk{constructor(e,t,n,r,i={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=n,this.zone=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=Dn(Zr),i.scrollPositionRestoration||="disabled",i.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe((e=>{e instanceof Lx?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Fx?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof jx&&e.code===Rx.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))}))}consumeScrollEvents(){return this.transitions.events.subscribe((e=>{e instanceof Zx&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))}))}scheduleScrollEvent(e,t){this.zone.runOutsideAngular((async()=>{await new Promise((e=>{setTimeout((()=>{e()})),xf((()=>{e()}),{injector:this.environmentInjector})})),this.zone.run((()=>{this.transitions.events.next(new Zx(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}))}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Vk,deps:"invalid",target:ai.Injectable})}static{this.ɵprov=uT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Vk})}}function Bk(e,t){return{ɵkind:e,ɵproviders:t}}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Vk,decorators:[{type:Wa}],ctorParameters:()=>[{type:JP},{type:bk},{type:nN},{type:Sf},{type:void 0}]});const $k=new jt("",{providedIn:"root",factory:()=>!1});function Hk(){const e=Dn(Qa);return t=>{const n=e.get(ow);if(t!==n.components[0])return;const r=e.get(Pk),i=e.get(Gk);1===e.get(qk)&&r.initialNavigation(),e.get(Wk,null,dn.Optional)?.setUpPreloading(),e.get(jk,null,dn.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}const Gk=new jt("undefined"==typeof ngDevMode||ngDevMode?"bootstrap done indicator":"",{factory:()=>new be}),qk=new jt("undefined"==typeof ngDevMode||ngDevMode?"initial navigation":"",{providedIn:"root",factory:()=>1});function zk(){let e=[];return e="undefined"==typeof ngDevMode||ngDevMode?[{provide:Kn,multi:!0,useFactory:()=>{const e=Dn(Pk);return()=>e.events.subscribe((e=>{console.group?.(`Router Event: ${e.constructor.name}`),console.log(function(e){switch(e.type){case Px.ActivationEnd:return`ActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case Px.ActivationStart:return`ActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case Px.ChildActivationEnd:return`ChildActivationEnd(path: '${e.snapshot.routeConfig?.path||""}')`;case Px.ChildActivationStart:return`ChildActivationStart(path: '${e.snapshot.routeConfig?.path||""}')`;case Px.GuardsCheckEnd:return`GuardsCheckEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state}, shouldActivate: ${e.shouldActivate})`;case Px.GuardsCheckStart:return`GuardsCheckStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case Px.NavigationCancel:return`NavigationCancel(id: ${e.id}, url: '${e.url}')`;case Px.NavigationSkipped:return`NavigationSkipped(id: ${e.id}, url: '${e.url}')`;case Px.NavigationEnd:return`NavigationEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}')`;case Px.NavigationError:return`NavigationError(id: ${e.id}, url: '${e.url}', error: ${e.error})`;case Px.NavigationStart:return`NavigationStart(id: ${e.id}, url: '${e.url}')`;case Px.ResolveEnd:return`ResolveEnd(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case Px.ResolveStart:return`ResolveStart(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case Px.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${e.route.path})`;case Px.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${e.route.path})`;case Px.RoutesRecognized:return`RoutesRecognized(id: ${e.id}, url: '${e.url}', urlAfterRedirects: '${e.urlAfterRedirects}', state: ${e.state})`;case Px.Scroll:const t=e.position?`${e.position[0]}, ${e.position[1]}`:null;return`Scroll(anchor: '${e.anchor}', position: '${t}')`}}(e)),console.log(e),console.groupEnd?.()}))}}]:[],Bk(1,e)}const Wk=new jt("undefined"==typeof ngDevMode||ngDevMode?"router preloader":""),Kk=[ER,xk,Rk,AR],Yk=new jt("undefined"==typeof ngDevMode||ngDevMode?"router duplicate forRoot guard":"ROUTER_FORROOT_GUARD"),Qk=[oA,{provide:JP,useClass:ZP},Pk,nR,{provide:lR,useFactory:function(e){return e.routerState.root},deps:[Pk]},fk,"undefined"==typeof ngDevMode||ngDevMode?{provide:$k,useValue:!0}:[]];class Jk{constructor(e){}static forRoot(e,t){return{ngModule:Jk,providers:[Qk,("undefined"==typeof ngDevMode||ngDevMode)&&t?.enableTracing?zk().ɵproviders:[],{provide:pk,multi:!0,useValue:e},{provide:Yk,useFactory:Zk,deps:[[Pk,new Mn,new xn]]},{provide:hk,useValue:t||{}},t?.useHash?{provide:tA,useClass:iA}:{provide:tA,useClass:rA},{provide:jk,useFactory:()=>{const e=Dn(nN),t=Dn(Sf),n=Dn(hk),r=Dn(bk),i=Dn(JP);return n.scrollOffset&&e.setOffset(n.scrollOffset),new Vk(i,r,e,t,n)}},t?.preloadingStrategy?(n=t.preloadingStrategy,Bk(0,[{provide:Wk,useExisting:Uk},{provide:kk,useExisting:n}])).ɵproviders:[],t?.initialNavigation?Xk(t):[],t?.bindToComponentInputs?Bk(8,[SR,{provide:bR,useExisting:SR}]).ɵproviders:[],t?.enableViewTransitions?Bk(9,[{provide:yk,useValue:_k},{provide:Ek,useValue:{skipNextTransition:!1}}]).ɵproviders:[],[{provide:eL,useFactory:Hk},{provide:ZI,multi:!0,useExisting:eL}]]};var n}static forChild(e){return{ngModule:Jk,providers:[{provide:pk,multi:!0,useValue:e}]}}static{this.ɵfac=sT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Jk,deps:[{token:Yk,optional:!0}],target:ai.NgModule})}static{this.ɵmod=lT({minVersion:"14.0.0",version:"17.3.8",ngImport:r,type:Jk,imports:[ER,xk,Rk,AR],exports:[ER,xk,Rk,AR]})}static{this.ɵinj=cT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Jk})}}function Zk(e){if(("undefined"==typeof ngDevMode||ngDevMode)&&e)throw new je(4007,"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"}function Xk(e){return["disabled"===e.initialNavigation?Bk(3,[{provide:QI,multi:!0,useFactory:()=>{const e=Dn(Pk);return()=>{e.setUpLocationChangeListener()}}},{provide:qk,useValue:2}]).ɵproviders:[],"enabledBlocking"===e.initialNavigation?Bk(2,[{provide:qk,useValue:0},{provide:QI,multi:!0,deps:[Qa],useFactory:e=>{const t=e.get(QT,Promise.resolve());return()=>t.then((()=>new Promise((t=>{const n=e.get(Pk),r=e.get(Gk);Ak(n,(()=>{t(!0)})),e.get(bk).afterPreactivation=()=>(t(!0),r.closed?vM(void 0):r),n.initialNavigation()}))))}}]).ɵproviders:[]]}iT({minVersion:"12.0.0",version:"17.3.8",ngImport:r,type:Jk,decorators:[{type:TI,args:[{imports:Kk,exports:Kk}]}],ctorParameters:()=>[{type:void 0,decorators:[{type:Mn},{type:Nn,args:[Yk]}]}]});const eL=new jt("undefined"==typeof ngDevMode||ngDevMode?"Router Initializer":"");async function tL(e,t,n,r){if("publication"in r)e.publication=r.publication;else if(n.publication){let r=n.publication;if(Array.isArray(r)&&(r=r[0]),r){try{e.publication=await t.getPublication(r,!0)}catch(n){e.publication=await t.getPublicationFromCache(r)}return}}}async function nL(e,t,n,r){if("issue"in r)e.issue=r.issue;else if(n.issue){let r=n.issue;if(Array.isArray(r)&&(r=r[0]),r){try{e.issue=await t.getIssue(r,!0)}catch(n){e.issue=await t.getIssueFromCache(r).catch((()=>null))}return}}}async function rL(e,t,n,r){if("content"in r)e.content=r.content;else if(n.content){let r=n.content;if(Array.isArray(r)&&(r=r[0]),r){try{e.content=await t.getCatalogContent(r,!0)}catch(n){e.content=await t.getCatalogContentFromCache(r).catch((()=>null))}return}}}async function iL(e,t,n,r){if("post"in r)e.post=r.post;else if(n.post){let r=n.post;if(Array.isArray(r)&&(r=r[0]),r){try{e.post=await t.getCatalogContent(r,!0)}catch(n){e.post=await t.getCatalogContentFromCache(r).catch((()=>null))}return void(e.post&&!LT(e.post)&&console.warn("post from context / url is not referring to an actual post. Did you want to pass an different ID?"))}}}async function oL(e,t,n,r){if("category"in r)e.category=r.category;else if(n.category){let r=n.category;if(Array.isArray(r)&&(r=r[0]),r){try{e.category=await t.getCategory(r,!0)}catch(n){e.category=await t.getCategory(r,!1)}return}}}async function sL(e,t,n,r){if("taxonomy"in r)e.taxonomy=r.taxonomy;else if(n.taxonomy){let r=n.taxonomy;if(Array.isArray(r)&&(r=r[0]),r){try{e.taxonomy=await t.getTaxonomy(r,null,!0,null)}catch(n){e.taxonomy=await t.getTaxonomy(r,null,!1,null)}return}}}async function aL(e,t,n,r){if("collection"in r)e.collection=r.collection;else if(n.collection){let r=n.collection;if(Array.isArray(r)&&(r=r[0]),r){try{e.collection=await t.getCollection(r,!0)}catch(n){e.collection=await t.getCollection(r,!1)}return}}}new AI("17.3.8");var uL,cL,lL=n(3464),dL=n(4620),hL=n(4664);!function(e){e.Android="android",e.iOS="ios",e.Unknown="unknown",e.WindowsPhone="Windows Phone"}(uL||(uL={})),function(e){e.Linux="linux",e.MacOS="mac_os",e.Unix="unix",e.Unknown="unknown",e.Windows="windows"}(cL||(cL={}));const pL=(()=>{let e=null;return()=>{if(e)return e;const t=navigator.userAgent||navigator.vendor||window.opera||void 0,n=()=>[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some((e=>t.match(e))),r=()=>/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(t.toLowerCase()),i=()=>!n()&&!r(),o=i(),s=n(),a=r(),u=()=>n()?/windows phone/i.test(t)?uL.WindowsPhone:/android/i.test(t)?uL.Android:/iPad|iPhone|iPod/.test(t)&&!window.MSStream?uL.iOS:uL.Unknown:void 0,c=()=>i()?-1!==t.indexOf("Win")?cL.Windows:-1!==t.indexOf("Mac")?cL.MacOS:-1!==t.indexOf("X11")?cL.Unix:-1!==t.indexOf("Linux")?cL.Linux:cL.Unknown:void 0,l=()=>u()??c(),d=u(),h=l()===uL.Android,p=l()===uL.iOS||l()===cL.MacOS,f=l()===uL.Unknown,g=c(),m=l()===cL.Windows,v=l()===cL.Linux||l()===cL.Unix;return e={isDesktop:o,desktopOS:g,isWindowsDesktop:m,isLinuxOrUnixDesktop:v,isMobile:s,mobileOS:d,isAndroidDevice:h,isAppleDevice:p,isUnknownMobileDevice:f,isTablet:a,userAgent:t},e}})();var fL=function(e,t){return function(n,r){t(n,r,e)}};const gL=(0,dL.zk)();let mL=class{platformId;route;router;document;purpleEnv;purpleService;baseUrl;viewContext={};outletContext={};viewContextSubject=new Ce(null);viewContextChangeSubject=new Ce(null);baseUrlSubject=new TT(1);baseUrl$=this.baseUrlSubject.asObservable();dataCollectionSubject=new Ce(null);moveToSlideSubject=new be;closeModalSubject=new be;closeModalCompleteSubject=new be;$functions;viewContext$=tM(this.viewContextSubject.pipe(Ne((e=>e))),fM);viewContextChange$=tM(this.viewContextChangeSubject.pipe(Ne((e=>e))),fM);activeTocItemSubject=new Ce(null);dataSources={};dataCollectionComponents={};metadata={};userAttributes=null;params={};removedParams=null;accountData={};initialUrl;activeOutlet;navigationCount=0;cancellations$=new be;brand;path;isCustomerDomainUsed;isCustomDomainUsedSubject=new TT(1);dynamicResourcesVersion;constructor(e,t,n,r,i,o){this.platformId=e,this.route=t,this.router=n,this.document=r,this.purpleEnv=i,this.purpleService=o}init(){this.route.queryParams.subscribe((e=>{this.removedParams={};for(let t in this.params)e[t]||(this.removedParams[t]=null);this.params=e,this.updateParamsContext()})),this.router.events.pipe(Ne((e=>e instanceof Fx))).subscribe((()=>{const e=this.getActiveOutlet();e!==this.activeOutlet&&(this.activeOutlet=e,this.notify(null))})),this.router.events.pipe(Ne((e=>e instanceof Lx&&!!this.router.getCurrentNavigation()))).subscribe((()=>{const e=this.router.getCurrentNavigation();e.extras?.replaceUrl?"popstate"===e.trigger&&this.navigationCount>0&&this.navigationCount--:this.navigationCount++})),this.purpleService.getState("userAttributes").then((e=>{this.userAttributes=e?JSON.parse(e):{},this.notify({userAttributes:this.userAttributes})}))}setData(e,t){this.viewContext[e]=t,this.notify({[e]:t})}toResourceUrl(e){if(this.purpleEnv.isUniversal){const t=globalThis.appData;if(!t&&!this.metadata)return console.error("No metadata available for toResourceUrl"),e;const n=new URL(this.document.location.href).origin,r=`${this.getIsCustomerDomainUsed()?n:this.purpleEnv.KIOSK_BASE_URL}/delivery`,i=t?.preview??("true"==this.metadata.preview_app||1==this.metadata.preview_app);return(0,hL.q1)(this.metadata.app_id??t?.appWebConfig.id,r,e,i,this.dynamicResourcesVersion)}return e}setOutletData(e,t,n){this.outletContext[n]||(this.outletContext[n]={}),this.outletContext[n][e]=t,this.notify({[e]:t})}clearOutletData(e=this.getActiveOutlet(),t=null){t?e in this.outletContext&&delete this.outletContext[e][t]:(delete this.outletContext[e],delete this.dataSources[e],delete this.dataCollectionComponents[e])}setDataArray(e){let t={};e.forEach((({key:e,value:n})=>{this.viewContext[e]=t[e]=n})),this.notify(t)}setMultipleData(e,t){Object.keys(e).forEach((t=>{this.viewContext[t]=e[t]})),this.notify({...e,...t??{}})}getCurrentViewContext(){return this.viewContextSubject.value}getCurrentViewContextChange(){return this.viewContextChangeSubject.value}notify(e,t){const n=t?this.getContext(t):this.getContext();t&&t!==OP||this.setBodyAttributes(n),this.viewContextSubject.next(n),e&&this.viewContextChangeSubject.next({value:n,change:e})}setBodyAttributes(e){const t="data-storefront-",n=this.document.body;n.getAttributeNames().filter((e=>e.startsWith(t))).forEach((e=>this.document.body.removeAttribute(e))),Object.keys(e).forEach((r=>{if(e[r]){const i="object"==typeof e[r]?e[r].id:e[r];i&&n.setAttribute(`${t}${r}`,i)}}))}registerDataSource(e,t){this.dataSources[t]||(this.dataSources[t]=[]),e.registered=!0,this.dataSources[t].push(e)}unregisterDataSource(e){Object.keys(this.dataSources).forEach((t=>{this.dataSources[t]&&(this.dataSources[t]=this.dataSources[t].filter((t=>t!==e)))})),e.registered=!1,e.hasContextKey()?e.cleanupContextData():tN(this.platformId)||this.notify(null)}getAllDataSources(){return Object.keys(this.dataSources).reduce(((e,t)=>[...e,...this.dataSources[t]]),[])}updateDataSources(){const e=this.getAllDataSources();return Promise.all(e.map((e=>e.update())))}getDataCollectionComponents(e){return this.dataCollectionComponents[e||this.getActiveOutlet()]||[]}registerDataCollectionComponent(e){const t=e.outlet||this.getActiveOutlet();this.dataCollectionComponents[t]||(this.dataCollectionComponents[t]=[]),this.dataCollectionComponents[t].push(e),e.getDependingDataCollections().filter((e=>e.getLatestData())).forEach((t=>{e.notifyHasData({component:t,data:t.getLatestData()})}))}unregisterDataCollectionComponent(e){this.dataCollectionComponents[e.outlet]&&(this.dataCollectionComponents[e.outlet]=this.dataCollectionComponents[e.outlet].filter((t=>t!==e)))}notifyContainerComponents(e){const t=this.getDataCollectionComponents(e.component.outlet);t&&t.forEach((t=>{t.getDependingDataCollections()?.includes(e.component)&&t.notifyHasData(e)}))}async updateMetadata(){return this.metadata={...await this.purpleService.getMetadata(),today:lL().format("YYYY-MM-DD"),connection_state:this.metadata.connection_state},await this.purpleService.setState("storefront-entitlement-token",this.metadata[CT.METADATA_KEY.ENTITLEMENT_TOKEN]),Object.keys(this.outletContext).forEach((e=>{this.notify(this.metadata,e)})),this.metadata}updateDeviceSettings(){if(eN(this.platformId)){let e=pL().isDesktop?"desktop":"tablet",t="portrait";(gL.innerWidth<533||gL.innerHeight<533)&&"desktop"!==e&&(e="phone"),gL.innerWidth>gL.innerHeight&&(t="landscape");const n={device_type:e,device_orientation:t,device_width:gL.innerWidth,device_height:gL.innerHeight};this.setMultipleData(n)}}clear(){this.viewContext={userTags:this.viewContext.userTags},delete this.dataSources[this.getActiveOutlet()],this.updateDeviceSettings()}setMetadata(e,t){this.metadata[e]=t,this.notify({[e]:t})}setFullMetadata(e){this.metadata=e,this.notify(e)}getMetadata(){return{...this.metadata}}setUserAttribute(e,t){this.userAttributes||(this.userAttributes={}),this.userAttributes[e]=t,this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes}),this.getActiveOutlet()!==OP&&this.notify({userAttributes:this.userAttributes},OP)}setUserAttributes(e){Object.keys(e).forEach((t=>{this.userAttributes[t]=e[t]})),this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes})}getUserAttributes(){return{...this.userAttributes}}getAccountData(){return{...this.accountData}}setAccountData(e){this.accountData={...e},this.notify({accountData:this.accountData})}async updateAccountData(){this.accountData=await this.purpleService.getAccountUserData(),this.notify({accountData:this.accountData})}getActiveOutlet(){const e=this.route.children[this.route.children.length-1];return e?e.outlet:"primary"}set$Functions(e){this.$functions&&console.warn("set$Functions was called twice. This should only be called once at startup"),this.$functions=e}async updateParamsContext(){let e=!1;const t=this.cancellations$.subscribe((()=>e=!0));try{if(e)throw new Error("cancelled");const t=await async function(e,t,n){const r={};return await Promise.all([nL(r,e,t,n),rL(r,e,t,n),iL(r,e,t,n),tL(r,e,t,n),oL(r,e,t,n),aL(r,e,t,n),sL(r,e,t,n)]),"search-result"in n&&(r["search-result"]=n["search-result"]),"bookmark"in n&&(r.bookmark=n.bookmark),r}(this.purpleService,this.params,{});if(e)throw new Error("cancelled");let n={...this.removedParams??{},...this.params};this.setMultipleData(t,n),this.removedParams=null}catch(e){}finally{t.unsubscribe()}}getParams(){return{...this.params}}async update(){return Promise.all([this.updateMetadata(),this.updateParamsContext(),this.updateDataSources()])}setInitialUrl(e){this.initialUrl=e,this.notify({initialUrl:this.initialUrl})}getContext(e=this.getActiveOutlet()){const t=this.outletContext[e];return{...this.removedParams,...this.metadata,...this.params,...this.viewContext,...t,initialUrl:this.initialUrl,userAttributes:this.userAttributes,accountData:this.accountData,outlet:e}}isLoggedIn(){const e=this.getMetadata(),t=this.getAccountData();return!!e.entitlement_token||!(!t||!t.token)}cancelPendingParamUpdates(){this.cancellations$.next()}setBrand(e){this.brand=e}getBrand(){return this.brand}setPath(e){if(void 0===this.getIsCustomerDomainUsed()&&console.error("ContextService: called setPath before setIsCustomerDomainUsed"),"string"==typeof e)this.path=e;else if("primary"===e.snapshot.outlet){const t=e.snapshot.url,n=t.slice(this.getIsCustomerDomainUsed()?0:1,t.length).map((e=>e.path)).join("/")||"/";this.path=n}}getPath(){return this.path}setBaseUrl(e){this.baseUrl=e,this.baseUrlSubject.next(e)}getBaseUrl(){return this.baseUrl}setIsCustomerDomainUsed(e){this.isCustomDomainUsedSubject.next(e),this.isCustomerDomainUsed=e}getIsCustomDomainUsed(){return this.isCustomDomainUsedSubject.pipe(Pe(1)).toPromise()}getIsCustomerDomainUsed(){return void 0===this.isCustomerDomainUsed&&console.debug("ACHTUNG getIsCustomerDomainUsed called before it was set"),this.isCustomerDomainUsed}setDynamicResourcesVersion(e){this.dynamicResourcesVersion=e}getDynamicResourcesVersion(){return this.dynamicResourcesVersion}getHomeUrl(){const e=new URL(gL.location.href);return this.getIsCustomerDomainUsed()?e.pathname="":e.pathname=e.pathname.split("/")[1]+"/",e.href}closeModal(e){this.closeModalSubject.next(e)}notifyAll(){this.notify({})}};mL=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Wa({providedIn:"root"}),fL(0,Nn(sc)),fL(3,Nn(KT)),fL(4,Nn(PW))],mL);let vL=class{router;route;location;contextService;currentRouteBSubject=new Ce(null);currentRoute$=this.currentRouteBSubject.asObservable();afterPopState$=new Ce(!1);brand="";previousStatePath="";constructor(e,t,n,r){this.router=e,this.route=t,this.location=n,this.contextService=r,this.brand=this.contextService.getIsCustomerDomainUsed()?"":this.contextService.getBrand()}initWidgetRouter(){const e=this.getActiveRouteState();this.sendRouteState(e)}changeUrl(e){if(console.debug("bidirectional changeRoute from widget: ",e),!e.path||this.afterPopState$.value)return;this.brand&&(e.path=this.brand+`${e.path.startsWith("/")?"":"/"}${e.path}`);const t=this.convertObjectToString(e);if(this.previousStatePath!==t)if(this.previousStatePath=t,e.forceReload)this.router.navigate([e.path],{queryParams:e.queryParams?Object.fromEntries(e.queryParams):{},queryParamsHandling:e.queryParamsHandling??"merge"});else{const t=this.router.createUrlTree([e.path],{queryParams:e.queryParams?Object.fromEntries(e.queryParams):{},queryParamsHandling:e.queryParamsHandling??""}).toString();this.location.go(t,"",{navigationId:RT()})}}sendRouteState(e){const t={...e,path:e.path.startsWith("/")?e.path.substring(1):e.path};this.previousStatePath=this.convertObjectToString(t),this.brand&&(e.path=e.path.replace(this.brand,""),e.path.indexOf("//")>-1&&(e.path=e.path.replace("//","/"))),console.debug("bidirectional changeRoute from client: ",e),this.currentRouteBSubject.next(e)}getActiveRouteState(){return{path:this.getUrlWithoutParams(),queryParams:new Map(Object.entries(this.route.snapshot.queryParams))}}getUrlWithoutParams(){let e=this.router.parseUrl(this.router.url);return e.queryParams={},e.fragment=null,e.toString()}convertObjectToString(e){const t=Object.fromEntries(e.queryParams);return JSON.stringify({...e,queryParams:t})}};vL=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Wa({providedIn:"root"})],vL);class yL{injector;version={major:1,minor:0};router;constructor(e){this.injector=e,this.router=new EL(e)}}class EL{injector;version={major:1,minor:0};currentRoute;listenersMap=new WeakMap;bidiRouterService;initialLoad=!0;constructor(e){this.injector=e,this.bidiRouterService=this.injector.get(vL),this.bidiRouterService.currentRoute$.subscribe((e=>{this.currentRoute=e,this.shareState()}))}getCurrentRoute(){return Promise.resolve(this.currentRoute)}changeRoute(e){try{return this.bidiRouterService.changeUrl(e),Promise.resolve(!0)}catch(e){return console.error(e),Promise.reject(!1)}}addRouteChangeListener(e){try{if(this.initialLoad&&(window.addEventListener("popstate",(e=>{this.bidiRouterService.afterPopState$.next(!0),setTimeout((()=>{this.bidiRouterService.afterPopState$.next(!1)}),2e3)})),this.initialLoad=!1),this.bidiRouterService.afterPopState$.value)return;if(this.listenersMap.has(e))return void console.debug("Bidirectional Router listener already exists");const t=t=>{e(t.detail)};window.addEventListener(UT,t),this.listenersMap.set(e,t),this.shareState(),console.debug("Bidirectional Router listener added, state sent",this.currentRoute)}catch(e){console.error(e)}}removeRouteChangeListener(e){const t=this.listenersMap.get(e);t?(window.removeEventListener(UT,t),this.listenersMap.delete(e)):console.debug("Bidirectional Router listener does not exist")}shareState(){const e=new CustomEvent(UT,{detail:this.currentRoute});window.dispatchEvent(e)}}class _L{properties;content;constructor(e,t){this.properties=e,this.content=t}isValidConfiguration(){return!!this.properties||!!this.content}}class bL{data;constructor(e){this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return this.data?.purpose?.consents}vendorGrant(e){return this.data?.vendor?.consents?.[e]}}class SL{hasConsent(e){return!1}getVendorGrant(e){return!1}getPurposeGrants(e){return{}}}class CL{tcData;customConsentData;updateTCData(e){this.tcData=e}updateCustomConsentData(e){this.customConsentData=e}hasConsent(e){return!(!this.tcData?.hasConsent(e)&&!this.customConsentData?.hasConsent(e))}getVendorGrant(e){return!(!this.tcData?.getVendorGrant(e)&&!this.customConsentData?.getVendorGrant(e))}getPurposeGrants(e){return{...this.tcData?.getPurposeGrants(e),...this.customConsentData?.getPurposeGrants(e)}}}class IL{identifier;constructor(e){this.identifier=e}}class wL{consentManagementPlatformConfiguration;resolveInitialization;init$=new Promise((e=>{this.resolveInitialization=e}));consentInfo=new CL;cmpLoadedFirstTime=!1;constructor(e){this.consentManagementPlatformConfiguration=e,this.init()}getConfig(){return this.consentManagementPlatformConfiguration}init(){this.addScriptToDocument().catch((e=>{console.error(`Error while adding ${this.consentManagementPlatformConfiguration.identifier} script to document:`,e)})).then((()=>{console.debug(`Script added: ${this.consentManagementPlatformConfiguration.identifier}`),this.resolveInitialization()}))}isCMPLoadedFirstTime(){return!this.cmpLoadedFirstTime&&(this.cmpLoadedFirstTime=!0,!0)}hasConsent(e){const t=this.consentInfo.hasConsent(e);return t?console.debug(`Consent granted for: ${e}`):console.debug(`No consent granted for: ${e}`),t}getConsent(e){const t=e.vendorId;return{vendorId:t,vendorGrant:this.consentInfo.getVendorGrant(t),purposeGrants:this.consentInfo.getPurposeGrants(t)}}gdprRequired(){return!1}gdprAvailable(){throw Error("Not supported for this CMP!")}applyScriptConfiguration(e,t){t.properties&&Object.keys(t.properties).forEach((n=>{e.setAttribute(n,t.properties[n])})),t.content&&(e.text=t.content)}}class DL extends IL{isValidConfiguration(){return!0}}class TL extends wL{constructor(){super(new DL("PXPDefault"))}async addScriptToDocument(){}async showPrivacyManager(){return{}}async grantConsent(e){}hasConsent(e){return!0}getConsent(e){return{vendorId:e.vendorId,vendorGrant:!0,purposeGrants:{}}}}class AL extends SL{data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return this.data?.purposeConsents}vendorGrant(e){return this.data?.vendorConsents?.[e]}}class OL extends IL{scriptConfiguration;blockingScriptConfiguration;constructor(e,t){super("ConsentManager"),this.scriptConfiguration=e,this.blockingScriptConfiguration=t}isValidConfiguration(){return!!this.scriptConfiguration.properties}}class NL extends wL{async addScriptToDocument(){const e=this.getConfig().scriptConfiguration.isValidConfiguration(),t=this.getConfig().blockingScriptConfiguration.isValidConfiguration();e?(t&&this.includeBlockingScript(),await this.includeConsentScript()):console.warn("Script configuration is not valid!")}includeBlockingScript(){const e=document.createElement("script");this.applyScriptConfiguration(e,this.getConfig().blockingScriptConfiguration),document.head.insertBefore(e,document.head.firstChild)}async includeConsentScript(){const e=this;return new Promise((t=>{const n=document.createElement("script");n.onload=()=>{window.__cmp("addEventListener",["consent",async()=>{console.debug(`${this.consentManagementPlatformConfiguration.identifier}, addEventListener, consent loaded`),await e.updateConsentInfo(),e.isCMPLoadedFirstTime()&&t()},!1],null)},this.applyScriptConfiguration(n,this.getConfig().scriptConfiguration),document.head.insertBefore(n,document.head.firstChild)}))}async showPrivacyManager(){return window.__cmp("showScreen")}async grantConsent(e){window.__cmp("setVendorConsent",[e.vendorId,1]),e.purposeIds?.length>0&&e.purposeIds.forEach((e=>{window.__cmp("setPurposeConsent",[e,1])}))}async updateConsentInfo(){console.debug(`${this.consentManagementPlatformConfiguration.identifier}, updateConsentInfo`);const e=await window.__cmp("getCMPData");console.debug(`${this.consentManagementPlatformConfiguration.identifier}, getCMPData, data:`,e),this.consentInfo.updateCustomConsentData(new AL(e))}}var ML,PL=n(8287);class xL extends SL{data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return this.data?.grants?.[e]?.purposeGrants}vendorGrant(e){return this.data?.grants?.[e]?.vendorGrant}}class RL extends IL{baseEndpoint;messagingLibraryEndpoint;accountId;propertyId;propertyName;privacyManagerId;constructor(e,t,n,r,i,o){super("SourcePoint"),this.baseEndpoint=e,this.messagingLibraryEndpoint=t,this.accountId=n,this.propertyId=r,this.propertyName=i,this.privacyManagerId=o}isValidConfiguration(){return!!(this.baseEndpoint&&this.accountId&&this.propertyName&&this.privacyManagerId)}}class kL extends wL{async addScriptToDocument(){PL(),this.includeClientConfigurationScript(),this.includeMessagingLibraryScript(),await this.handleTFCEventListener()}includeClientConfigurationScript(){const e=document.createElement("script");e.type="text/javascript",e.innerHTML=`\n window._sp_queue = [];\n window._sp_ = {\n config: {\n accountId: ${this.getConfig().accountId},\n baseEndpoint: '${this.getConfig().baseEndpoint}',\n propertyId: ${this.getConfig().propertyId},\n propertyHref: '${this.getConfig().propertyName}'\n },\n gdpr: {}\n };`,document.head.appendChild(e)}includeMessagingLibraryScript(){const e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=this.getConfig().messagingLibraryEndpoint,document.head.appendChild(e)}async handleTFCEventListener(){const e=this;return new Promise((t=>{window.__tcfapi("addEventListener",2,(async function(n,r){r?(console.debug(`${e.consentManagementPlatformConfiguration.identifier}, addEventListener, eventStatus: ${n.eventStatus}`),"useractioncomplete"!==n.eventStatus&&"tcloaded"!==n.eventStatus||(await e.updateConsentInfo(new bL(n)),e.isCMPLoadedFirstTime()&&t())):console.warn("Script configuration is not valid!")}))}))}showPrivacyManager(){const e=this.getConfig().privacyManagerId;return window._sp_.loadPrivacyManagerModal(e)}async grantConsent(e){const t=this;await window.__tcfapi("postCustomConsent",2,(function(e,n){console.debug(`${t.consentManagementPlatformConfiguration.identifier}, postCustomConsent, success:`,n),console.debug(`${t.consentManagementPlatformConfiguration.identifier}, postCustomConsent, data:`,e),n&&t.consentInfo.updateCustomConsentData(new xL(e))}),[e.vendorId],e.purposeIds,[])}gdprRequired(){return!0}gdprAvailable(){return!!window._sp_.gdpr}async updateConsentInfo(e){console.debug(`${this.consentManagementPlatformConfiguration.identifier}, updateConsentInfo`),this.consentInfo.updateTCData(e),console.debug(`${this.consentManagementPlatformConfiguration.identifier}, updateConsentInfo, tcdata:`,e);const t=this;await window.__tcfapi("getCustomVendorConsents",2,(function(e,n){console.debug(`${t.consentManagementPlatformConfiguration.identifier}, getCustomVendorConsents, success:`,n),console.debug(`${t.consentManagementPlatformConfiguration.identifier}, getCustomVendorConsents, data:`,e),n&&t.consentInfo.updateCustomConsentData(new xL(e))}))}}!function(e){e.TRAFFECTIVE_AD="traffective_ad"}(ML||(ML={}));class LL extends SL{data;constructor(e){super(),this.data=e}hasConsent(e){return this.vendorGrant(e)}getVendorGrant(e){return this.vendorGrant(e)}getPurposeGrants(e){return{}}vendorGrant(e){return this.data?.consents?.[e]}}class FL extends IL{vendorId;endpoint;scriptConfiguration;constructor(e,t,n){super("Traffective"),this.vendorId=e,this.endpoint=t,this.scriptConfiguration=n}isValidConfiguration(){return!!this.scriptConfiguration.properties}}class UL extends wL{async addScriptToDocument(){this.getConfig().scriptConfiguration.isValidConfiguration()?await this.includeConsentScript():console.warn("Script configuration is not valid!")}async includeConsentScript(){const e=this;await new Promise((t=>{const n=document.createElement("script");n.id="open-cmp-stub",n.type="text/javascript",n.src=this.getConfig().endpoint,n.onload=()=>{window.__tcfapi("addEventListener",2,(async(n,r)=>{r?(console.debug(`${e.consentManagementPlatformConfiguration.identifier}, addEventListener, eventStatus: ${n.eventStatus}`),"useractioncomplete"!==n.eventStatus&&"tcloaded"!==n.eventStatus||(await e.updateConsentInfo(new bL(n),new LL(n.customVendors)),e.isCMPLoadedFirstTime()&&t())):console.warn("Script configuration is not valid!")}))},this.applyScriptConfiguration(n,this.getConfig().scriptConfiguration),document.head.insertBefore(n,document.head.firstChild)}))}async showPrivacyManager(){return window.__tcfapi("showUi",2,(function(){}))}async grantConsent(e){}hasConsent(e){return ML.TRAFFECTIVE_AD===e&&(e=this.getConfig().vendorId),super.hasConsent(e)}async updateConsentInfo(e,t){console.debug(`${this.consentManagementPlatformConfiguration.identifier}, updateConsentInfo`),this.consentInfo.updateTCData(e),console.debug(`${this.consentManagementPlatformConfiguration.identifier}, updateConsentInfo, tcdata:`,e),this.consentInfo.updateCustomConsentData(t),console.debug(`${this.consentManagementPlatformConfiguration.identifier}, updateConsentInfo, customConsentData:`,t)}}class jL{kioskConfigService;experienceConfigService;resolveInitialization;init$=new Promise((e=>this.resolveInitialization=e));currentCMP;constructor(e,t){this.kioskConfigService=e,this.experienceConfigService=t,this.init()}async init(){const e=this.kioskConfigService.getConfig().subscribe((async t=>{const n=await this.experienceConfigService.getExperienceConfig().toPromise(),r=t.kioskConfig.cmpProvider||n?.cmpProvider;this.currentCMP=this.createCMP(r,t.kioskConfig,n),this.currentCMP.init$.then((()=>{this.resolveInitialization()})),e.unsubscribe()}))}createCMP(e,t,n){switch(e){case"sourcepoint":{const e=new RL("https://cdn.privacy-mgmt.com","https://cdn.privacy-mgmt.com/wrapperMessagingWithoutDetection.js",parseInt(t.sourcePointAccountId,10),parseInt(t.sourcePointPropertyId,10),t.sourcePointPropertyName,t.sourcePointPrivacyManagerId);return new kL(e)}case"consentmanager":{const e=new OL(new _L(n.consentManager?.script?.properties,n.consentManager?.script?.content),new _L(n.consentManager?.blockingScript?.properties,n.consentManager?.blockingScript?.content));return new NL(e)}case"traffective":{const e=new FL(t.cmpVendorIdTraffectiveAd||n?.traffective_ad?.cmpVendorIdTraffectiveAd,"https://cdn.opencmp.net/tcf-v2/cmp-stub-latest.js",new _L(n?.traffectiveCmp?.script?.properties,n?.traffectiveCmp?.script?.content));return new UL(e)}default:return new TL}}}let VL=class{kioskConfigService;experienceConfigService;platformId;resolveInitialization;init$=new Promise((e=>this.resolveInitialization=e));CMPManager;consentAwareSDKs=new Set;constructor(e,t,n){this.kioskConfigService=e,this.experienceConfigService=t,this.platformId=n,this.init()}init(){eN(this.platformId)?(this.CMPManager=new jL(this.kioskConfigService,this.experienceConfigService),this.CMPManager.init$.then((()=>{this.resolveInitialization()}))):this.resolveInitialization()}registerConsentAwareSDK(e){this.consentAwareSDKs.add(e)}async showPrivacyManager(){return this.CMPManager.currentCMP.showPrivacyManager()}hasConsent(e){return this.CMPManager.currentCMP.hasConsent(e)}getConsent(e){if(!e)throw{code:CT.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!e.vendorId)throw{code:CT.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};return this.CMPManager.currentCMP.getConsent(e)}async grantConsent(e){if(!e)throw{code:CT.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!e.vendorId)throw{code:CT.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};if(this.CMPManager.currentCMP.gdprRequired()&&!this.CMPManager.currentCMP.gdprAvailable())throw{code:CT.ERROR_CODE.UNKNOWN_CODE,message:"gdpr is not enabled"};await this.CMPManager.currentCMP.grantConsent(e)}};var BL,$L;VL=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Wa({providedIn:"root"}),(BL=2,$L=Nn(sc),function(e,t){$L(e,t,BL)})],VL);var HL=function(e,t){return HL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},HL(e,t)};function GL(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}HL(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qL=function(){return qL=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},qL.apply(this,arguments)};function zL(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function WL(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(s,a)}u((r=r.apply(e,t||[])).next())}))}function KL(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}function YL(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var QL="Invariant Violation",JL=Object.setPrototypeOf,ZL=void 0===JL?function(e,t){return e.__proto__=t,e}:JL,XL=function(e){function t(n){void 0===n&&(n=QL);var r=e.call(this,"number"==typeof n?QL+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=QL,ZL(r,t.prototype),r}return GL(t,e),t}(Error);function eF(e,t){if(!e)throw new XL(t)}var tF,nF=["debug","log","warn","error","silent"],rF=nF.indexOf("log");function iF(e){return function(){if(nF.indexOf(e)>=rF)return(console[e]||console.log).apply(console,arguments)}}(tF=eF||(eF={})).debug=iF("debug"),tF.log=iF("log"),tF.warn=iF("warn"),tF.error=iF("error");var oF="3.8.1";function sF(e){try{return e()}catch{}}var aF=sF((function(){return globalThis}))||sF((function(){return window}))||sF((function(){return self}))||sF((function(){return global}))||sF((function(){return sF.constructor("return this")()})),uF=new Map;function cF(e){var t=uF.get(e)||1;return uF.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function lF(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.apply(void 0,YL(["number"==typeof t?fF(t):t],n,!1))}}var dF=Object.assign((function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e||eF(e,fF(t,n))}),{debug:lF(eF.debug),log:lF(eF.log),warn:lF(eF.warn),error:lF(eF.error)});function hF(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new XL(fF(e,t))}var pF=Symbol.for("ApolloErrorMessageHandler_"+oF);function fF(e,t){if(void 0===t&&(t=[]),e){var n=t.map((function(e){return"string"==typeof e?e:function(e,t){void 0===t&&(t=0);var n=cF("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?n:t}),t).split(JSON.stringify(n)).join("<undefined>")}(e,2).slice(0,1e3)}));return aF[pF]&&aF[pF](e,n)||"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:oF,message:e,args:n})))}}function gF(e,t){if(!e)throw new Error(t)}function mF(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}const vF=/\r\n|[\n\r]/g;function yF(e,t){let n=0,r=1;for(const i of e.body.matchAll(vF)){if("number"==typeof i.index||mF(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function EF(e){return _F(e.source,yF(e.source,e.start))}function _F(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?n:0,u=t.column+a,c=`${e.name}:${s}:${u}\n`,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return c+bF([[`${s} |`,n[0]],...n.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",n[e+1]]])}return c+bF([[s-1+" |",l[i-1]],[`${s} |`,d],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function bF(e){const t=e.filter((([e,t])=>void 0!==t)),n=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(n)+(t?" "+t:""))).join("\n")}class SF extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:s,positions:a,path:u,originalError:c,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=u??void 0,this.originalError=c??void 0,this.nodes=CF(Array.isArray(o)?o:o?[o]:void 0);const d=CF(null===(n=this.nodes)||void 0===n?void 0:n.map((e=>e.loc)).filter((e=>null!=e)));this.source=s??(null==d||null===(r=d[0])||void 0===r?void 0:r.source),this.positions=a??d?.map((e=>e.start)),this.locations=a&&s?a.map((e=>yF(s,e))):d?.map((e=>yF(e.source,e.start)));const h=function(e){return"object"==typeof e&&null!==e}(c?.extensions)?c?.extensions:void 0;this.extensions=null!==(i=l??h)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,SF):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+EF(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+_F(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function CF(e){return void 0===e||0===e.length?void 0:e}function IF(e,t,n){return new SF(`Syntax Error: ${n}`,{source:e,positions:[t]})}class wF{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class DF{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const TF={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},AF=new Set(Object.keys(TF));function OF(e){const t=e?.kind;return"string"==typeof t&&AF.has(t)}var NF,MF,PF,xF;function RF(e){return 9===e||32===e}function kF(e){return e>=48&&e<=57}function LF(e){return e>=97&&e<=122||e>=65&&e<=90}function FF(e){return LF(e)||95===e}function UF(e){return LF(e)||kF(e)||95===e}function jF(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const s=e[t],a=VF(s);a!==s.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&a<n&&(n=a))}return e.map(((e,t)=>0===t?e:e.slice(n))).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function VF(e){let t=0;for(;t<e.length&&RF(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(NF||(NF={})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(MF||(MF={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(PF||(PF={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(xF||(xF={}));class BF{constructor(e){const t=new DF(xF.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==xF.EOF)do{if(e.next)e=e.next;else{const t=KF(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===xF.COMMENT);return e}}function $F(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function HF(e,t){return GF(e.charCodeAt(t))&&qF(e.charCodeAt(t+1))}function GF(e){return e>=55296&&e<=56319}function qF(e){return e>=56320&&e<=57343}function zF(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return xF.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function WF(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new DF(t,n,r,o,s,i)}function KF(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return YF(e,i);case 33:return WF(e,xF.BANG,i,i+1);case 36:return WF(e,xF.DOLLAR,i,i+1);case 38:return WF(e,xF.AMP,i,i+1);case 40:return WF(e,xF.PAREN_L,i,i+1);case 41:return WF(e,xF.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return WF(e,xF.SPREAD,i,i+3);break;case 58:return WF(e,xF.COLON,i,i+1);case 61:return WF(e,xF.EQUALS,i,i+1);case 64:return WF(e,xF.AT,i,i+1);case 91:return WF(e,xF.BRACKET_L,i,i+1);case 93:return WF(e,xF.BRACKET_R,i,i+1);case 123:return WF(e,xF.BRACE_L,i,i+1);case 124:return WF(e,xF.PIPE,i,i+1);case 125:return WF(e,xF.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?iU(e,i):ZF(e,i)}if(kF(t)||45===t)return QF(e,i,t);if(FF(t))return oU(e,i);throw IF(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":$F(t)||HF(n,i)?`Unexpected character: ${zF(e,i)}.`:`Invalid character: ${zF(e,i)}.`)}return WF(e,xF.EOF,r,r)}function YF(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if($F(e))++i;else{if(!HF(n,i))break;i+=2}}return WF(e,xF.COMMENT,t,i,n.slice(t+1,i))}function QF(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),kF(o))throw IF(e.source,i,`Invalid number, unexpected digit after 0: ${zF(e,i)}.`)}else i=JF(e,i,o),o=r.charCodeAt(i);if(46===o&&(s=!0,o=r.charCodeAt(++i),i=JF(e,i,o),o=r.charCodeAt(i)),(69===o||101===o)&&(s=!0,o=r.charCodeAt(++i),(43===o||45===o)&&(o=r.charCodeAt(++i)),i=JF(e,i,o),o=r.charCodeAt(i)),46===o||FF(o))throw IF(e.source,i,`Invalid number, expected digit but got: ${zF(e,i)}.`);return WF(e,s?xF.FLOAT:xF.INT,t,i,r.slice(t,i))}function JF(e,t,n){if(!kF(n))throw IF(e.source,t,`Invalid number, expected digit but got: ${zF(e,t)}.`);const r=e.source.body;let i=t+1;for(;kF(r.charCodeAt(i));)++i;return i}function ZF(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return s+=n.slice(o,i),WF(e,xF.STRING,t,i+1,s);if(92!==r){if(10===r||13===r)break;if($F(r))++i;else{if(!HF(n,i))throw IF(e.source,i,`Invalid character within String: ${zF(e,i)}.`);i+=2}}else{s+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?XF(e,i):eU(e,i):rU(e,i);s+=t.value,i+=t.size,o=i}}throw IF(e.source,i,"Unterminated string.")}function XF(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!$F(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|nU(e),r<0)break}throw IF(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function eU(e,t){const n=e.source.body,r=tU(n,t+2);if($F(r))return{value:String.fromCodePoint(r),size:6};if(GF(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=tU(n,t+8);if(qF(e))return{value:String.fromCodePoint(r,e),size:12}}throw IF(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function tU(e,t){return nU(e.charCodeAt(t))<<12|nU(e.charCodeAt(t+1))<<8|nU(e.charCodeAt(t+2))<<4|nU(e.charCodeAt(t+3))}function nU(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function rU(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw IF(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function iU(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,a="";const u=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){a+=n.slice(s,o),u.push(a);const r=WF(e,xF.BLOCK_STRING,t,o+3,jF(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if($F(r))++o;else{if(!HF(n,o))throw IF(e.source,o,`Invalid character within String: ${zF(e,o)}.`);o+=2}else a+=n.slice(s,o),u.push(a),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,a="",s=o,i=o;else a+=n.slice(s,o),s=o+1,o+=4}throw IF(e.source,o,"Unterminated string.")}function oU(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&UF(n.charCodeAt(i));)++i;return WF(e,xF.NAME,t,i,n.slice(t,i))}const sU=10,aU=2;function uU(e){return cU(e,[])}function cU(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:cU(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>aU)return"[Array]";const n=Math.min(sU,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(cU(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>aU?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map((([e,n])=>e+": "+cU(n,t))).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}const lU=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=uU(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class dU{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||gF(!1,`Body must be a string. Received: ${uU(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||gF(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||gF(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class hU{constructor(e,t={}){const n=function(e){return lU(e,dU)}(e)?e:new dU(e);this._lexer=new BF(n),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(xF.NAME);return this.node(e,{kind:PF.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:PF.DOCUMENT,definitions:this.many(xF.SOF,this.parseDefinition,xF.EOF)})}parseDefinition(){if(this.peek(xF.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===xF.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw IF(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(xF.BRACE_L))return this.node(e,{kind:PF.OPERATION_DEFINITION,operation:NF.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(xF.NAME)&&(n=this.parseName()),this.node(e,{kind:PF.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(xF.NAME);switch(e.value){case"query":return NF.QUERY;case"mutation":return NF.MUTATION;case"subscription":return NF.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(xF.PAREN_L,this.parseVariableDefinition,xF.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:PF.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(xF.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(xF.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(xF.DOLLAR),this.node(e,{kind:PF.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:PF.SELECTION_SET,selections:this.many(xF.BRACE_L,this.parseSelection,xF.BRACE_R)})}parseSelection(){return this.peek(xF.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(xF.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:PF.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(xF.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(xF.PAREN_L,t,xF.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(xF.COLON),this.node(t,{kind:PF.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(xF.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(xF.NAME)?this.node(e,{kind:PF.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:PF.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:PF.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:PF.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case xF.BRACKET_L:return this.parseList(e);case xF.BRACE_L:return this.parseObject(e);case xF.INT:return this.advanceLexer(),this.node(t,{kind:PF.INT,value:t.value});case xF.FLOAT:return this.advanceLexer(),this.node(t,{kind:PF.FLOAT,value:t.value});case xF.STRING:case xF.BLOCK_STRING:return this.parseStringLiteral();case xF.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:PF.BOOLEAN,value:!0});case"false":return this.node(t,{kind:PF.BOOLEAN,value:!1});case"null":return this.node(t,{kind:PF.NULL});default:return this.node(t,{kind:PF.ENUM,value:t.value})}case xF.DOLLAR:if(e){if(this.expectToken(xF.DOLLAR),this._lexer.token.kind===xF.NAME){const e=this._lexer.token.value;throw IF(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:PF.STRING,value:e.value,block:e.kind===xF.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:PF.LIST,values:this.any(xF.BRACKET_L,(()=>this.parseValueLiteral(e)),xF.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:PF.OBJECT,fields:this.any(xF.BRACE_L,(()=>this.parseObjectField(e)),xF.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(xF.COLON),this.node(t,{kind:PF.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(xF.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(xF.AT),this.node(t,{kind:PF.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(xF.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(xF.BRACKET_R),t=this.node(e,{kind:PF.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(xF.BANG)?this.node(e,{kind:PF.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:PF.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(xF.STRING)||this.peek(xF.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(xF.BRACE_L,this.parseOperationTypeDefinition,xF.BRACE_R);return this.node(e,{kind:PF.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(xF.COLON);const n=this.parseNamedType();return this.node(e,{kind:PF.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:PF.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:PF.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(xF.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(xF.BRACE_L,this.parseFieldDefinition,xF.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(xF.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:PF.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(xF.PAREN_L,this.parseInputValueDef,xF.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(xF.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(xF.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:PF.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:PF.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:PF.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(xF.EQUALS)?this.delimitedMany(xF.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:PF.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(xF.BRACE_L,this.parseEnumValueDefinition,xF.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:PF.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw IF(this._lexer.source,this._lexer.token.start,`${pU(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:PF.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(xF.BRACE_L,this.parseInputValueDef,xF.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===xF.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(xF.BRACE_L,this.parseOperationTypeDefinition,xF.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:PF.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:PF.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:PF.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:PF.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:PF.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:PF.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:PF.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(xF.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:PF.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(xF.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(MF,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new wF(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw IF(this._lexer.source,t.start,`Expected ${fU(e)}, found ${pU(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==xF.NAME||t.value!==e)throw IF(this._lexer.source,t.start,`Expected "${e}", found ${pU(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===xF.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=e??this._lexer.token;return IF(this._lexer.source,t.start,`Unexpected ${pU(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==xF.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw IF(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function pU(e){const t=e.value;return fU(e.kind)+(null!=t?` "${t}"`:"")}function fU(e){return function(e){return e===xF.BANG||e===xF.DOLLAR||e===xF.AMP||e===xF.PAREN_L||e===xF.PAREN_R||e===xF.SPREAD||e===xF.COLON||e===xF.EQUALS||e===xF.AT||e===xF.BRACKET_L||e===xF.BRACKET_R||e===xF.BRACE_L||e===xF.PIPE||e===xF.BRACE_R}(e)?`"${e}"`:e}const gU=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function mU(e){return vU[e.charCodeAt(0)]}const vU=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],yU=Object.freeze({});function EU(e,t,n=TF){const r=new Map;for(const e of Object.values(PF))r.set(e,_U(t,e));let i,o,s,a=Array.isArray(e),u=[e],c=-1,l=[],d=e;const h=[],p=[];do{c++;const e=c===u.length,v=e&&0!==l.length;if(e){if(o=0===p.length?void 0:h[h.length-1],d=s,s=p.pop(),v)if(a){d=d.slice();let e=0;for(const[t,n]of l){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[e,t]of l)d[e]=t}c=i.index,u=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(s){if(o=a?c:u[c],d=s[o],null==d)continue;h.push(o)}let y;if(!Array.isArray(d)){var f,g;OF(d)||gF(!1,`Invalid AST Node: ${uU(d)}.`);const n=e?null===(f=r.get(d.kind))||void 0===f?void 0:f.leave:null===(g=r.get(d.kind))||void 0===g?void 0:g.enter;if(y=n?.call(t,d,o,s,h,p),y===yU)break;if(!1===y){if(!e){h.pop();continue}}else if(void 0!==y&&(l.push([o,y]),!e)){if(!OF(y)){h.pop();continue}d=y}}var m;void 0===y&&v&&l.push([o,d]),e?h.pop():(i={inArray:a,index:c,keys:u,edits:l,prev:i},a=Array.isArray(d),u=a?d:null!==(m=n[d.kind])&&void 0!==m?m:[],c=-1,l=[],s&&p.push(s),s=d)}while(void 0!==i);return 0!==l.length?l[l.length-1][1]:e}function _U(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}const bU={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>SU(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=IU("(",SU(e.variableDefinitions,", "),")"),n=SU([e.operation,SU([e.name,t]),SU(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+IU(" = ",n)+IU(" ",SU(r," "))},SelectionSet:{leave:({selections:e})=>CU(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=IU("",e,": ")+t;let s=o+IU("(",SU(n,", "),")");return s.length>80&&(s=o+IU("(\n",wU(SU(n,"\n")),"\n)")),SU([s,SU(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+IU(" ",SU(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>SU(["...",IU("on ",e),SU(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${IU("(",SU(n,", "),")")} on ${t} ${IU("",SU(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every((e=>0===e.length||RF(e.charCodeAt(0)))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!i||e.length>70||c||o||s;let d="";const h=i&&RF(e.charCodeAt(0));return(l&&!h||o)&&(d+="\n"),d+=n,(l||c)&&(d+="\n"),'"""'+d+'"""'}(e):function(e){return`"${e.replace(gU,mU)}"`}(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+SU(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+SU(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+IU("(",SU(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>IU("",e,"\n")+SU(["schema",SU(t," "),CU(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>IU("",e,"\n")+SU(["scalar",t,SU(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>IU("",e,"\n")+SU(["type",t,IU("implements ",SU(n," & ")),SU(r," "),CU(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>IU("",e,"\n")+t+(DU(n)?IU("(\n",wU(SU(n,"\n")),"\n)"):IU("(",SU(n,", "),")"))+": "+r+IU(" ",SU(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>IU("",e,"\n")+SU([t+": "+n,IU("= ",r),SU(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>IU("",e,"\n")+SU(["interface",t,IU("implements ",SU(n," & ")),SU(r," "),CU(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>IU("",e,"\n")+SU(["union",t,SU(n," "),IU("= ",SU(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>IU("",e,"\n")+SU(["enum",t,SU(n," "),CU(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>IU("",e,"\n")+SU([t,SU(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>IU("",e,"\n")+SU(["input",t,SU(n," "),CU(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>IU("",e,"\n")+"directive @"+t+(DU(n)?IU("(\n",wU(SU(n,"\n")),"\n)"):IU("(",SU(n,", "),")"))+(r?" repeatable":"")+" on "+SU(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>SU(["extend schema",SU(e," "),CU(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>SU(["extend scalar",e,SU(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>SU(["extend type",e,IU("implements ",SU(t," & ")),SU(n," "),CU(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>SU(["extend interface",e,IU("implements ",SU(t," & ")),SU(n," "),CU(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>SU(["extend union",e,SU(t," "),IU("= ",SU(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>SU(["extend enum",e,SU(t," "),CU(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>SU(["extend input",e,SU(t," "),CU(n)]," ")}};function SU(e,t=""){var n;return null!==(n=e?.filter((e=>e)).join(t))&&void 0!==n?n:""}function CU(e){return IU("{\n",wU(SU(e,"\n")),"\n}")}function IU(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function wU(e){return IU(" ",e.replace(/\n/g,"\n "))}function DU(e){var t;return null!==(t=e?.some((e=>e.includes("\n"))))&&void 0!==t&&t}function TU(e){return e.kind===PF.FIELD||e.kind===PF.FRAGMENT_SPREAD||e.kind===PF.INLINE_FRAGMENT}function AU(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,r=e.name.value;dF(n&&1===n.length,65,r);var i=n[0];dF(i.name&&"if"===i.name.value,66,r);var o=i.value;dF(o&&("Variable"===o.kind||"BooleanValue"===o.kind),67,r),t.push({directive:e,ifArgument:i})}})),t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],dF(void 0!==i,64,n.name.value)):i=r.value.value,"skip"===n.name.value?!i:i}))}function OU(e,t,n){var r=new Set(e),i=r.size;return EU(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return yU}}),n?!r.size:r.size<i}function NU(e){return e&&OU(["client","export"],e,!0)}const MU=()=>Object.create(null),{forEach:PU,slice:xU}=Array.prototype,{hasOwnProperty:RU}=Object.prototype;class kU{constructor(e=!0,t=MU){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return PU.call(e,(e=>t=t.getChildTrie(e))),RU.call(t,"data")?t.data:t.data=this.makeData(xU.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=this.weakness&&LU(e[n])?t.weak:t.strong;t=r&&r.get(e[n])}return t&&t.data}getChildTrie(e){const t=this.weakness&&LU(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new kU(this.weakness,this.makeData)),n}}function LU(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var FU="function"==typeof WeakMap&&"ReactNative"!==sF((function(){return navigator.product})),UU="function"==typeof WeakSet,jU="function"==typeof Symbol&&"function"==typeof Symbol.for,VU=jU&&Symbol.asyncIterator;function BU(e){return null!==e&&"object"==typeof e}function $U(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw hF(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&r.push(e)})),typeof n>"u"&&(dF(1===r.length,69,r.length),n=r[0].name.value),qL(qL({},e),{definitions:YL([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function HU(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function GU(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return dF(r,70,n),r||null;default:return null}}function qU(e){return{__ref:String(e)}}function zU(e){return!(!e||"object"!=typeof e||"string"!=typeof e.__ref)}function WU(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map((function(e){return WU(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var o=(r||{})[n.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return WU(n,t,e,r),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw hF(79,t.value,n.kind);e[t.value]=null}}sF((function(){return window.document.createElement})),sF((function(){return navigator.userAgent.indexOf("jsdom")>=0}));var KU=["connection","include","skip","client","rest","export","nonreactive"],YU=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(QU(i),")")}return n.connection.key}var o=e;if(t){var s=QU(t);o+="(".concat(s,")")}return n&&Object.keys(n).forEach((function(e){-1===KU.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(QU(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=QU;return QU=e,t}}),QU=function(e){return JSON.stringify(e,JU)};function JU(e,t){return BU(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function ZU(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return WU(n,r,i,t)})),n}return null}function XU(e){return e.alias?e.alias.value:e.name.value}function ej(e,t,n){for(var r,i=0,o=t.selections;i<o.length;i++)if(tj(u=o[i])){if("__typename"===u.name.value)return e[XU(u)]}else r?r.push(u):r=[u];if("string"==typeof e.__typename)return e.__typename;if(r)for(var s=0,a=r;s<a.length;s++){var u,c=ej(e,GU(u=a[s],n).selectionSet,n);if("string"==typeof c)return c}}function tj(e){return"Field"===e.kind}function nj(e){dF(e&&"Document"===e.kind,71);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw hF(72,e.kind);return e}));return dF(t.length<=1,73,t.length),e}function rj(e){return nj(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function ij(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function oj(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function sj(e){nj(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"===i.kind&&!t&&(t=i)}if(t)return t;throw hF(78)}function aj(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&WU(t,e.variable.name,e.defaultValue)})),t}function uj(e){return e}var cj=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=UU?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new kU(FU,(function(e){return{key:e}})))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(uj,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;nj(e);var n=this.transform(e);return this.resultCache.add(n),t&&(t.value=n),n},e.prototype.concat=function(t){var n=this;return new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);if(t)return dF(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)}},e}(),lj=FU?new WeakMap:void 0,dj=function(e){var t;return t=lj?.get(e),t||(t=function(e){return EU(e,bU)}(e),lj?.set(e,t)),t},hj=Array.isArray;function pj(e){return Array.isArray(e)&&e.length>0}var fj={kind:PF.FIELD,name:{kind:PF.NAME,value:"__typename"}};function gj(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===PF.FRAGMENT_SPREAD&&gj(t[e.name.value],t)}))}function mj(e){return gj(rj(e)||function(e){dF("Document"===e.kind,75),dF(e.definitions.length<=1,76);var t=e.definitions[0];return dF("FragmentDefinition"===t.kind,77),t}(e),HU(oj(e)))?null:e}function vj(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function yj(e,t){nj(t);for(var n=vj(""),r=vj(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!hj(i)){if(i.kind===PF.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===PF.FRAGMENT_DEFINITION)return r(i.name.value)}return null},o=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===PF.OPERATION_DEFINITION&&++o;var a=function(e){var t=new Map,n=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))})),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach((function(t,n){n(e)&&(r=t)})),r}}(e),u=function(e){return pj(e)&&e.map(a).some((function(e){return e&&e.remove}))},c=new Map,l=!1,d={enter:function(e){if(u(e.directives))return l=!0,null}},h=EU(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var s=i(o);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(u(e.directives))return l=!0,null;var s=i(o);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){c.set(JSON.stringify(r),e)},leave:function(e,t,n,i){return e===c.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===PF.FIELD&&"__typename"===e.name.value}))?(r(e.name.value).removed=!0,l=!0,null):void 0}},Directive:{leave:function(e){if(a(e))return l=!0,null}}});if(!l)return t;var p=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){p(r(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},f=new Set;h.definitions.forEach((function(e){e.kind===PF.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){f.add(e)})):e.kind===PF.FRAGMENT_DEFINITION&&0===o&&!r(e.name.value).removed&&f.add(e.name.value)})),f.forEach((function(e){p(r(e)).fragmentSpreads.forEach((function(e){f.add(e)}))}));var g={enter:function(e){if(function(e){return!(f.has(e)&&!r(e).removed)}(e.name.value))return null}};return mj(EU(h,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return qL(qL({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var Ej=Object.assign((function(e){return EU(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==PF.OPERATION_DEFINITION){var r=e.selections;if(r&&!r.some((function(e){return tj(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(tj(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return qL(qL({},e),{selections:YL(YL([],r,!0),[fj],!1)})}}}}})}),{added:function(e){return e===fj}});function _j(e){if("query"===sj(e).operation)return e;var t=EU(e,{OperationDefinition:{enter:function(e){return qL(qL({},e),{operation:"query"})}}});return t}function bj(e){return nj(e),yj([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var Sj=Object.prototype.hasOwnProperty;function Cj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ij(e)}function Ij(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Dj,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var wj=function(e,t,n){return this.merge(e[n],t[n])},Dj=function(){function e(e){void 0===e&&(e=wj),this.reconciler=e,this.isObject=BU,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return BU(t)&&BU(e)?(Object.keys(t).forEach((function(i){if(Sj.call(e,i)){var o=e[i];if(t[i]!==o){var s=n.reconciler.apply(n,YL([e,t,i],r,!1));s!==o&&((e=n.shallowCopyForMerge(e))[i]=s)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return BU(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):qL({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function Tj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oj(e,t,n){return t&&Aj(e.prototype,t),n&&Aj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Nj=function(){return"function"==typeof Symbol},Mj=function(e){return Nj()&&!!Symbol[e]},Pj=function(e){return Mj(e)?Symbol[e]:"@@"+e};Nj()&&!Mj("observable")&&(Symbol.observable=Symbol("observable"));var xj=Pj("iterator"),Rj=Pj("observable"),kj=Pj("species");function Lj(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function Fj(e){var t=e.constructor;return void 0!==t&&null===(t=t[kj])&&(t=void 0),void 0!==t?t:zj}function Uj(e){Uj.log?Uj.log(e):setTimeout((function(){throw e}))}function jj(e){Promise.resolve().then((function(){try{e()}catch(e){Uj(e)}}))}function Vj(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=Lj(t,"unsubscribe");n&&n.call(t)}}catch(e){Uj(e)}}function Bj(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function $j(e,t,n){e._state="running";var r=e._observer;try{var i=Lj(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(Bj(e),!i)throw n;i.call(r,n);break;case"complete":Bj(e),i&&i.call(r)}}catch(e){Uj(e)}"closed"===e._state?Vj(e):"running"===e._state&&(e._state="ready")}function Hj(e,t,n){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:n});if("ready"!==e._state)return e._state="buffering",e._queue=[{type:t,value:n}],void jj((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&($j(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}));$j(e,t,n)}}var Gj=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new qj(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(Bj(this),Vj(this))},Oj(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),qj=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Hj(this._subscription,"next",e)},t.error=function(e){Hj(this._subscription,"error",e)},t.complete=function(){Hj(this._subscription,"complete")},Oj(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),zj=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new Gj(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Fj(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(Fj(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Fj(this),r=arguments.length>1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var s=!i;if(i=!0,!s||r)try{o=e(o,t)}catch(e){return n.error(e)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Fj(this);return new i((function(t){var r,o=0;return function e(s){r=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):e(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=Fj(this);return new n((function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){r.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[Rj]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=Lj(t,Rj);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof zj}(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Mj("iterator")&&(r=Lj(t,xj)))return new n((function(e){jj((function(){if(!e.closed){for(var n,i=function(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Tj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tj(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(r.call(t));!(n=i()).done;){var o=n.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){jj((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)((function(e){jj((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Oj(e,null,[{key:kj,get:function(){return this}}]),e}();Nj()&&Object.defineProperty(zj,Symbol("extensions"),{value:{symbol:Rj,hostReportError:Uj},configurable:!0}),function(e){var t,n=(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof module<"u"?module:Function("return this")()).Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch{}}else t="@@observable"}();var Wj=zj.prototype,Kj="@@observable";Wj[Kj]||(Wj[Kj]=function(){return this});var Yj=Object.prototype.toString;function Qj(e){return Jj(e)}function Jj(e,t){switch(Yj.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=Jj(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=Jj(e[n],t)})),r;default:return e}}function Zj(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function Xj(e,t,n){return new zj((function(r){var i=r.next,o=r.error,s=r.complete,a=0,u=!1,c={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++a;var n=function(){return e(t)};c=c.then(n,n).then((function(e){--a,i&&i.call(r,e),u&&d.complete()}),(function(e){throw--a,e})).catch((function(e){o&&o.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var d={next:l(t,i),error:l(n,o),complete:function(){u=!0,a||s&&s.call(r)}},h=e.subscribe(d);return function(){return h.unsubscribe()}}))}function eV(e){function t(t){Object.defineProperty(e,t,{value:zj})}return jU&&Symbol.species&&t(Symbol.species),t("@@species"),e}function tV(e){return e&&"function"==typeof e.then}var nV=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),Zj(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),Zj(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?tV(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Zj(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new zj(t)]),tV(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return GL(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(zj);function rV(e){return"incremental"in e}function iV(e){return BU(e)&&"payload"in e}function oV(e,t){var n=e,r=new Dj;return rV(t)&&pj(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var s=i[o],a=isNaN(+s)?{}:[];a[s]=t,t=a}n=r.merge(n,t)})),n}function sV(e){return pj(aV(e))}function aV(e){var t=pj(e.errors)?e.errors.slice(0):[];return rV(e)&&pj(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function uV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}function cV(e,t){return uV(e,t,t.variables&&{variables:uV(qL(qL({},e&&e.variables),t.variables))})}function lV(e){return new zj((function(t){t.error(e)}))}eV(nV);var dV=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function hV(e,t){return t?t(e):zj.of()}function pV(e){return"function"==typeof e?new gV(e):e}function fV(e){return e.request.length<=1}var gV=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return zj.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(pV).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=pV(n),o=pV(r||new e(hV));return fV(i)&&fV(o)?new e((function(e){return t(e)?i.request(e)||zj.of():o.request(e)||zj.of()})):new e((function(e,n){return t(e)?i.request(e,n)||zj.of():o.request(e,n)||zj.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=qL({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=qL(qL({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return qL({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?ij(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw hF(41,i)}return e}(t))))||zj.of()},e.concat=function(t,n){var r=pV(t);if(fV(r))return r;var i=pV(n);return fV(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||zj.of()}))||zj.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||zj.of()}))||zj.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(hV)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw hF(34)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}();gV.empty;var mV=gV.from;gV.split,gV.concat;var vV=gV.execute;function yV(e){var t={next:function(){return e.read()}};return VU&&(t[Symbol.asyncIterator]=function(){return this}),t}function EV(e){var t=e;if(function(e){return!!e.body}(e)&&(t=e.body),function(e){return!(!VU||!e[Symbol.asyncIterator])}(t))return function(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function(e){return!!e.getReader}(t))return yV(t.getReader());if(function(e){return!!e.stream}(t))return yV(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return function(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,n){e.then((function(e){t({value:e,done:!1})})).catch(n)})))}};return VU&&(n[Symbol.asyncIterator]=function(){return this}),n}(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return function(e){var t=null,n=null,r=!1,i=[],o=[];function s(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function a(e){n=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function u(){r=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",a),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",s),e.on("error",a),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise((function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])}))}};return VU&&(c[Symbol.asyncIterator]=function(){return this}),c}(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var _V=Symbol(),bV=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,s=n.networkError,a=n.errorMessage,u=n.extraInfo,c=e.call(this,a)||this;return c.name="ApolloError",c.graphQLErrors=r||[],c.protocolErrors=i||[],c.clientErrors=o||[],c.networkError=s||null,c.message=a||function(e){var t=YL(YL(YL([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map((function(e){return BU(e)&&e.message||"Error message not found."})).join("\n")}(c),c.extraInfo=u,c.__proto__=t.prototype,c}return GL(t,e),t}(Error),SV=Object.prototype.hasOwnProperty;function CV(e){var t={};return e.split("\n").forEach((function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function IV(e,t){e.status>=300&&dV(e,function(){try{return JSON.parse(t)}catch{return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var wV=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=hF(37,t,e.message);throw r.parseError=e,r}return n},DV={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},TV=function(e,t){return t(e)};var AV=sF((function(){return fetch})),OV=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?TV:i,s=e.includeExtensions,a=e.preserveHeaderCase,u=e.useGETForQueries,c=e.includeUnusedVariables,l=void 0!==c&&c,d=zL(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),h={http:{includeExtensions:s,preserveHeaderCase:a},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new gV((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,n),i=e.getContext(),s={};if(i.clientAwareness){var a=i.clientAwareness,c=a.name,d=a.version;c&&(s["apollographql-client-name"]=c),d&&(s["apollographql-client-version"]=d)}var p=qL(qL({},s),i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:p};if(OU(["client"],e.query)){var g=bj(e.query);if(!g)return lV(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=g}var m,v=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach((function(e){i=qL(qL(qL({},i),e.options),{headers:qL(qL({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=qL(qL({},o),e.http)})),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);return Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]=e[t]})),n}var r=Object.create(null);Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(r).forEach((function(e){i[r[e].originalName]=r[e].value})),i}(i.headers,o.preserveHeaderCase));var s=e.operationName,a=e.extensions,u=e.variables,c=e.query,l={operationName:s,variables:u};return o.includeExtensions&&(l.extensions=a),o.includeQuery&&(l.query=t(c,dj)),{options:i,body:l}}(e,o,DV,h,f),y=v.options,E=v.body;E.variables&&!l&&(E.variables=function(e,t){var n=qL({},e),r=new Set(Object.keys(e));return EU(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach((function(e){delete n[e]})),n}(E.variables,e.query)),!y.signal&&typeof AbortController<"u"&&(m=new AbortController,y.signal=m.signal);var _,b="OperationDefinition"===(_=sj(e.query)).kind&&"subscription"===_.operation,S=OU(["defer"],e.query);if(u&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),S||b){y.headers=y.headers||{};var C="multipart/mixed;";b?C+="boundary=graphql;subscriptionSpec=1.0,application/json":S&&(C+="deferSpec=20220824,application/json"),y.headers.accept=C}if("GET"===y.method){var I=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=wV(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=wV(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var s="",a=e,u=e.indexOf("#");-1!==u&&(s=e.substr(u),a=e.substr(0,u));var c=-1===a.indexOf("?")?"?":"&";return{newURI:a+c+n.join("&")+s}}(t,E),w=I.newURI,D=I.parseError;if(D)return lV(D);t=w}else try{y.body=wV(E,"Payload")}catch(_){return lV(_)}return new zj((function(n){var i=r||sF((function(){return fetch}))||AV,o=n.next.bind(n);return i(t,y).then((function(t){var n;e.setContext({response:t});var r=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?function(e,t){var n;return WL(this,void 0,void 0,(function(){var r,i,o,s,a,u,c,l,d,h,p,f,g,m,v,y,E,_,b,S,C,I,w;return KL(this,(function(D){switch(D.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),o="boundary=",s=i?.includes(o)?i?.substring(i?.indexOf(o)+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",a="\r\n--".concat(s),u="",c=EV(e),l=!0,D.label=1;case 1:return l?[4,c.next()]:[3,3];case 2:for(d=D.sent(),h=d.value,p=d.done,f="string"==typeof h?h:r.decode(h),g=u.length-a.length+1,l=!p,m=(u+=f).indexOf(a,g);m>-1;){if(v=void 0,I=[u.slice(0,m),u.slice(m+a.length)],u=I[1],y=(v=I[0]).indexOf("\r\n\r\n"),E=CV(v.slice(0,y)),(_=E["content-type"])&&-1===_.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(b=v.slice(y))if(S=IV(e,b),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)iV(S)?(C={},"payload"in S&&(C=qL({},S.payload)),"errors"in S&&(C=qL(qL({},C),{extensions:qL(qL({},"extensions"in C?C.extensions:null),(w={},w[_V]=S.errors,w))})),t(C)):t(S);else if(1===Object.keys(S).length&&"hasNext"in S&&!S.hasNext)return[2];m=u.indexOf(a)}return[3,1];case 3:return[2]}}))}))}(t,o):function(e){return function(t){return t.text().then((function(e){return IV(t,e)})).then((function(n){return t.status>=300&&dV(t,n,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(n)&&!SV.call(n,"data")&&!SV.call(n,"errors")&&dV(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),n}))}}(e)(t).then(o)})).then((function(){m=void 0,n.complete()})).catch((function(e){m=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){m&&m.abort()}}))}))},NV=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,OV(t).request)||this;return n.options=t,n}return GL(t,e),t}(gV);const{toString:MV,hasOwnProperty:PV}=Object.prototype,xV=Function.prototype.toString,RV=new Map;function kV(e,t){try{return LV(e,t)}finally{RV.clear()}}function LV(e,t){if(e===t)return!0;const n=MV.call(e);if(n!==MV.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(VV(e,t))return!0;const n=FV(e),r=FV(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!PV.call(t,n[e]))return!1;for(let r=0;r<i;++r){const i=n[r];if(!LV(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(VV(e,t))return!0;const r=e.entries(),i="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,o]=e.value;if(!t.has(n)||i&&!LV(o,t.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=xV.call(e);return n===xV.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,jV)}}return!1}function FV(e){return Object.keys(e).filter(UV,e)}function UV(e){return void 0!==this[e]}const jV="{ [native code] }";function VV(e,t){let n=RV.get(e);if(n){if(n.has(t))return!0}else RV.set(e,n=new Set);return n.add(t),!1}function BV(){}class $V{constructor(e=1/0,t=BV){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let HV=null;const GV={};let qV=1;function zV(e){try{return e()}catch{}}const WV="@wry/context:Slot",KV=zV((()=>globalThis))||zV((()=>global))||Object.create(null),YV=KV[WV]||Array[WV]||function(e){try{Object.defineProperty(KV,WV,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",qV++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=HV;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===GV)break;return e!==HV&&(HV.slots[this.id]=t),!0}return HV&&(HV.slots[this.id]=GV),!1}getValue(){if(this.hasValue())return HV.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=HV;HV={parent:o,slots:i};try{return t.apply(r,n)}finally{HV=o}}static bind(e){const t=HV;return function(){const n=HV;try{return HV=t,e.apply(this,arguments)}finally{HV=n}}}static noContext(e,t,n){if(!HV)return e.apply(n,t);{const r=HV;try{return HV=null,e.apply(n,t)}finally{HV=r}}}}),QV=new YV,{hasOwnProperty:JV}=Object.prototype,ZV=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function XV(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const eB=[],tB=100;function nB(e,t){if(!e)throw new Error(t||"assertion failure")}function rB(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class iB{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++iB.count}peek(){if(1===this.value.length&&!aB(this))return oB(this),this.value[0]}recompute(e){return nB(!this.recomputing,"already recomputing"),oB(this),aB(this)?function(e,t){return fB(e),QV.withValue(e,sB,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{XV(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!aB(e)&&cB(e)}(e),rB(e.value)}(this,e):rB(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,uB(this),XV(this))}dispose(){this.setDirty(),fB(this),lB(this,((e,t)=>{e.setDirty(),gB(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=eB.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(ZV(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),eB.push(this.deps),this.deps=null)}}function oB(e){const t=QV.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),aB(e)?dB(t,e):hB(t,e),t}function sB(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function aB(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function uB(e){lB(e,dB)}function cB(e){lB(e,hB)}function lB(e,t){const n=e.parents.size;if(n){const r=ZV(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function dB(e,t){nB(e.childValues.has(t)),nB(aB(t));const n=!aB(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=eB.pop()||new Set;e.dirtyChildren.add(t),n&&uB(e)}function hB(e,t){nB(e.childValues.has(t)),nB(!aB(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),pB(e,t),!aB(e)&&cB(e)}function pB(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(eB.length<tB&&eB.push(n),e.dirtyChildren=null))}function fB(e){e.childValues.size>0&&e.childValues.forEach(((t,n)=>{gB(e,n)})),e.forgetDeps(),nB(null===e.dirtyChildren)}function gB(e,t){t.parents.delete(e),e.childValues.delete(t),pB(e,t)}iB.count=0;const mB={setDirty:!0,dispose:!0,forget:!0};function vB(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=QV.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(XV(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&JV.call(mB,n)?n:"setDirty";ZV(r).forEach((e=>e[i]())),t.delete(e),XV(r)}},r}let yB;function EB(...e){return(yB||(yB=new kU("function"==typeof WeakMap))).lookupArray(e)}const _B=new Set;function bB(e,{max:t=Math.pow(2,16),makeCacheKey:n=EB,keyArgs:r,subscribe:i}=Object.create(null)){const o=new $V(t,(e=>e.dispose())),s=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=o.get(t);s||(o.set(t,s=new iB(e)),s.subscribe=i,s.forget=()=>o.delete(t));const a=s.recompute(Array.prototype.slice.call(arguments));return o.set(t,s),_B.add(o),QV.hasValue()||(_B.forEach((e=>e.clean())),_B.clear()),a};function a(e){const t=o.get(e);t&&t.setDirty()}function u(e){const t=o.get(e);if(t)return t.peek()}function c(e){return o.delete(e)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),s.dirtyKey=a,s.dirty=function(){a(n.apply(null,arguments))},s.peekKey=u,s.peek=function(){return u(n.apply(null,arguments))},s.forgetKey=c,s.forget=function(){return c(n.apply(null,arguments))},s.makeCacheKey=n,s.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(s)}var SB=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=bB($U)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(qL(qL({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(qL(qL({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=zL(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=zL(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(qL(qL({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(qL(qL({},e),{data:i})),i)}})},e}(),CB=function(e){function t(n,r,i,o){var s,a=e.call(this,n)||this;if(a.message=n,a.path=r,a.query=i,a.variables=o,Array.isArray(a.path)){a.missing=a.message;for(var u=a.path.length-1;u>=0;--u)a.missing=((s={})[a.path[u]]=a.missing,s)}else a.missing=a.path;return a.__proto__=t.prototype,a}return GL(t,e),t}(Error),IB=Object.prototype.hasOwnProperty;function wB(e){return null==e}function DB(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=wB(r)?wB(i)?void 0:{_id:i}:{id:r}),wB(r)&&!wB(i)&&(r=i),!wB(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var TB={dataIdFromObject:DB,addTypename:!0,resultCaching:!0,canonizeResults:!1};function AB(e){var t=e.canonizeResults;return void 0===t?TB.canonizeResults:t}var OB=/^[_a-z][_0-9a-z]*/i;function NB(e){var t=e.match(OB);return t?t[0]:e}function MB(e,t,n){return!!BU(t)&&(hj(t)?t.every((function(t){return MB(e,t,n)})):e.selections.every((function(e){if(tj(e)&&AU(e,n)){var r=XU(e);return IB.call(t,r)&&(!e.selectionSet||MB(e.selectionSet,t[r],n))}return!0})))}function PB(e){return BU(e)&&!zU(e)&&!hj(e)}function xB(e,t){var n=HU(oj(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var RB=Object.create(null),kB=function(){return RB},LB=Object.create(null),FB=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return zU(e)?n.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return zU(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return qU(e);if(zU(e))return e;var r=n.policies.identify(e)[0];if(r){var i=qU(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return qL({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),IB.call(this.data,e)){var n=this.data[e];if(n&&IB.call(n,t))return n[t]}return"__typename"===t&&IB.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof BB?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),IB.call(this.data,e)?this.data[e]:this instanceof BB?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;zU(e)&&(e=e.__ref),zU(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){dF("string"==typeof n,1);var s=new Dj(HB).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var a=Object.create(null);i||(a.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==s[e]){a[e]=1;var t=NB(e);t!==e&&!r.policies.hasKeyArgs(s.__typename,t)&&(a[t]=1),void 0===s[e]&&!(r instanceof BB)&&delete s[e]}})),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete a.__typename,Object.keys(a).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,s=!0,a={DELETE:RB,INVALIDATE:LB,isReference:zU,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||qU(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(u){var c=NB(u),l=r[u];if(void 0!==l){var d="function"==typeof t?t:t[u]||t[c];if(d){var h=d===kB?RB:d(l,qL(qL({},a),{fieldName:c,storeFieldName:u,storage:n.getStorage(e,u)}));h===LB?n.group.dirty(e,u):(h===RB&&(h=void 0),h!==l&&(i[u]=h,o=!0,l=h))}void 0!==l&&(s=!1)}})),o)return this.merge(e,i),s&&(this instanceof BB?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,s?((r={})[s]=kB,r):kB)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(IB.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof BB&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){IB.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&IB.call(e,n)||t.delete(n)})),e){var n=e.__META,r=zL(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof BB?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){IB.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof BB;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!IB.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){zU(e)&&(t[e.__ref]=!0),BU(e)&&Object.keys(e).forEach((function(t){var n=e[t];BU(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),UB=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?vB():null,this.keyMaker=new kU(FU)},e.prototype.depend=function(e,t){if(this.d){this.d(jB(e,t));var n=NB(t);n!==t&&this.d(jB(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(jB(e,t),"__exists"===t?"forget":"setDirty")},e}();function jB(e,t){return t+"#"+e}function VB(e,t){GB(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,s=e.call(this,n,new UB(i))||this;return s.stump=new $B(s),s.storageTrie=new kU(FU),o&&s.replace(o),s}return GL(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(FB||(FB={}));var BB=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return GL(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){kV(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return qL(qL({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return IB.call(this.data,t)?qL(qL({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(FB),$B=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new UB(t.group.caching,t.group))||this}return GL(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(BB);function HB(e,t,n){var r=e[n],i=t[n];return kV(r,i)?r:i}function GB(e){return!!(e instanceof FB&&e.group.caching)}var qB,zB,WB=function(){function e(){this.known=new(UU?WeakSet:Set),this.pool=new kU(FU),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return BU(e)&&this.known.has(e)},e.prototype.pass=function(e){if(BU(e)){var t=function(e){return BU(e)?hj(e)?e.slice(0):qL({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(BU(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(a=this.pool.lookupArray(r)).array||this.known.add(a.array=r),a.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],s=this.sortedKeys(e);o.push(s.json);var a,u=o.length;if(s.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(a=this.pool.lookupArray(o)).object){var c=a.object=Object.create(i);this.known.add(c),s.sorted.forEach((function(e,t){c[e]=o[u+t]}))}return a.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),KB=Object.assign((function(e){if(BU(e)){void 0===qB&&YB();var t=qB.admit(e),n=zB.get(t);return void 0===n&&zB.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:YB});function YB(){qB=new WB,zB=new(FU?WeakMap:Map)}function QB(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var JB=function(){function e(e){var t=this;this.knownResults=new(FU?WeakMap:Map),this.config=uV(e,{addTypename:!1!==e.addTypename,canonizeResults:AB(e)}),this.canon=e.canon||new WB,this.executeSelectionSet=bB((function(e){var n,r=e.context.canonizeResults,i=QB(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?qL(qL({},o),{result:t.canon.admit(o.result)}):o:(VB(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:QB,makeCacheKey:function(e,t,n,r){if(GB(n.store))return n.store.makeCacheKey(e,zU(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=bB((function(e){return VB(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(GB(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new WB},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,o=e.variables,s=e.returnPartialData,a=void 0===s||s,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;o=qL(qL({},aj(function(e){var t=rj(e);return dF(t&&"query"===t.operation,74),t}(n))),o);var d,h=qU(i),p=this.executeSelectionSet({selectionSet:sj(n).selectionSet,objectOrReference:h,enclosingRef:h,context:qL({store:t,query:n,policies:l,variables:o,varString:KB(o),canonizeResults:c},xB(n,this.config.fragments))});if(p.missing&&(d=[new CB(ZB(p.missing),p.missing,n,o)],!a))throw d[0];return{result:p.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,n,r){if(GB(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,o=e.context;if(zU(r)&&!o.policies.rootTypenamesById[r.__ref]&&!o.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var s,a=o.variables,u=o.policies,c=o.store.getFieldValue(r,"__typename"),l=[],d=new Dj;function h(e,t){var n;return e.missing&&(s=d.merge(s,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof c&&!u.rootIdsByTypename[c]&&l.push({__typename:c});var p=new Set(n.selections);p.forEach((function(e){var n,f;if(AU(e,a))if(tj(e)){var g=u.readField({fieldName:e.name.value,field:e,variables:o.variables,from:r},o),m=XU(e);void 0===g?Ej.added(e)||(s=d.merge(s,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(zU(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):hj(g)?g=h(t.executeSubSelectedArray({field:e,array:g,enclosingRef:i,context:o}),m):e.selectionSet?null!=g&&(g=h(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:zU(g)?g:i,context:o}),m)):o.canonizeResults&&(g=t.canon.pass(g)),void 0!==g&&l.push(((f={})[m]=g,f))}else{var v=GU(e,o.lookupFragment);if(!v&&e.kind===PF.FRAGMENT_SPREAD)throw hF(7,e.name.value);v&&u.fragmentMatches(v,c)&&v.selectionSet.selections.forEach(p.add,p)}}));var f={result:Ij(l),missing:s},g=o.canonizeResults?this.canon.admit(f):f;return g.result&&this.knownResults.set(g.result,n),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,s=e.context,a=new Dj;function u(e,n){var r;return e.missing&&(t=a.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map((function(e,t){return null===e?null:hj(e)?u(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:s}),t):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:zU(e)?e:o,context:s}),t):e})),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function ZB(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var XB=new YV,e$=new WeakMap;function t$(e){var t=e$.get(e);return t||e$.set(e,t={vars:new Set,dep:vB()}),t}function n$(e){t$(e).vars.forEach((function(t){return t.forgetCache(e)}))}function r$(e){var t=new Set,n=new Set,r=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){t$(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var s=Array.from(n);n.clear(),s.forEach((function(t){return t(e)}))}}else{var a=XB.getValue();a&&(i(a),t$(a).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),t$(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}var i$=Object.create(null);function o$(e){var t=JSON.stringify(e);return i$[t]||(i$[t]=Object.create(null))}function s$(e){var t=o$(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=u$(e,(function(e){var i=d$(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&IB.call(t,e[0])&&(i=d$(t,e,l$)),dF(void 0!==i,2,e.join("."),t),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function a$(e){var t=o$(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,s=u$(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return d$(t,e)}else{var s=n.slice(1);if(i&&IB.call(i,s)){var a=e.slice(0);return a[0]=s,d$(i,a)}}else if(r&&pj(r.directives)){var u=n.slice(1),c=r.directives.find((function(e){return e.name.value===u})),l=c&&ZU(c,i);return l&&d$(l,e.slice(1))}})),a=JSON.stringify(s);return(t||"{}"!==a)&&(o+=":"+a),o})}function u$(e,t){var n=new Dj;return c$(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var s=r.length-1;s>=0;--s)(i={})[r[s]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function c$(e){var t=o$(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){hj(t)?(c$(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),hj(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function l$(e,t){return e[t]}function d$(e,t,n){return n=n||l$,h$(t.reduce((function e(t,r){return hj(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function h$(e){return BU(e)?hj(e)?e.map(h$):u$(Object.keys(e).sort(),(function(t){return d$(e,t)})):e}function p$(e){return void 0!==e.args?e.args:e.field?ZU(e.field,e.variables):null}YU.setStringify(KB);var f$=function(){},g$=function(e,t){return t.fieldName},m$=function(e,t,n){return(0,n.mergeObjects)(e,t)},v$=function(e,t){return t},y$=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=qL({dataIdFromObject:DB},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,s=t&&t.storeObject||e,a=qL(qL({},t),{typename:i,storeObject:s,readField:t&&t.readField||function(){var e=_$(arguments,s);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),u=i&&this.getTypePolicy(i),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var l=c(qL(qL({},e),s),a);if(!hj(l)){o=l;break}c=s$(l)}return o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,o=r.mutationType,s=r.subscriptionType,a=zL(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),IB.call(t.toBeAdded,n)?t.toBeAdded[n].push(a):t.toBeAdded[n]=[a]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?m$:!1===t?v$:e.merge}s(r,t.merge),r.keyFn=!1===i?f$:hj(i)?s$(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var a=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===a?g$:hj(a)?a$(a):"function"==typeof a?a:r.keyFn,"function"==typeof u&&(r.read=u),s(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||g$)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(dF(!r||r===e,3,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(OB);(!r||r[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!IB.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,i){if(n.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach((function(e){return r.add(e)}))}}))),r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,o=zL(r,["fields"]);Object.assign(n,o),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),a=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&a.indexOf(t)<0&&a.push(t)},c=!(!n||!this.fuzzySubtypes.size),l=0;l<a.length;++l){var d=a[l];if(d.has(o))return s.has(o)||s.add(o),!0;d.forEach(u),c&&l===a.length-1&&MB(e.selectionSet,n,r)&&(c=!1,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),o=i&&i.keyFn;if(o&&n)for(var s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},a=p$(e);o;){var u=o(a,s);if(!hj(u)){t=u||r;break}o=a$(u)}return void 0===t&&(t=e.field?function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return WU(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return WU(r,n,i,t)}))),YU(e.name.value,r,n)}(e.field,e.variables):YU(r,p$(e))),!1===t?r:r===NB(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=NB(i),s=t.store.getFieldValue(n,i),a=this.getFieldPolicy(e.typename,o,!1),u=a&&a.read;if(u){var c=E$(this,n,e,t,t.store.getStorage(zU(n)?n.__ref:n,i));return XB.withValue(this.cache,u,[s,c])}return s}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,s=n.typename,a=n.merge;return a===m$?b$(r.store)(e,t):a===v$?t:(r.overwrite&&(e=void 0),a(e,t,E$(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},e}();function E$(e,t,n,r,i){var o=e.getStoreFieldName(n),s=NB(o),a=n.variables||r.variables,u=r.store,c=u.toReference,l=u.canRead;return{args:p$(n),field:n.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:zU,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(_$(arguments,t,a),r)},mergeObjects:b$(r.store)}}function _$(e,t,n){var r,i=e[0],o=e[1],s=e.length;return"string"==typeof i?r={fieldName:i,from:s>1?o:t}:(r=qL({},i),IB.call(r,"from")||(r.from=t)),void 0===r.variables&&(r.variables=n),r}function b$(e){return function(t,n){if(hj(t)||hj(n))throw hF(6);if(BU(t)&&BU(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(zU(t)&&PB(n))return e.merge(t.__ref,n),t;if(PB(t)&&zU(n))return e.merge(t,n.__ref),n;if(PB(t)&&PB(n))return qL(qL({},t),n)}return n}}function S$(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:qL(qL({},e),{clientOnly:t,deferred:n})),i}var C$,I$=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,s=t.variables,a=t.overwrite,u=rj(r),c=new Dj;s=qL(qL({},aj(u)),s);var l=qL(qL({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:s,varString:KB(s)},xB(r,this.fragments)),{overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:l});if(!zU(d))throw hF(9,i);return l.incomingById.forEach((function(t,r){var i=t.storeObject,o=t.mergeTree,s=(t.fieldNodeSet,qU(r));if(o&&o.map.size){var a=n.applyMerges(o,s,i,l);if(zU(a))return;i=a}e.merge(r,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,a=this.cache.policies,u=Object.create(null),c=n&&a.rootTypenamesById[n]||ej(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof c&&(u.__typename=c);var l=function(){var e=_$(arguments,u,o.variables);if(zU(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=a.readField(qL(qL({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return a.readField(e,o)},d=new Set;this.flattenFields(i,r,o,c).forEach((function(e,n){var i,o=XU(n),h=r[o];if(d.add(n),void 0!==h){var p=a.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),f=D$(s,p),g=t.processFieldValue(h,n,n.selectionSet?S$(e,!1,!1):e,f),m=void 0;n.selectionSet&&(zU(g)||PB(g))&&(m=l("__typename",g));var v=a.getMergeFunction(c,n.name.value,m);v?f.info={field:n,typename:c,merge:v}:O$(s,p),u=e.merge(u,((i={})[p]=g,i))}}));try{var h=a.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:l}),p=h[0],f=h[1];n=n||p,f&&(u=o.merge(u,f))}catch(e){if(!n)throw e}if("string"==typeof n){var g=qU(n),m=o.written[n]||(o.written[n]=[]);if(m.indexOf(i)>=0||(m.push(i),this.reader&&this.reader.isFresh(r,g,i,o)))return g;var v=o.incomingById.get(n);return v?(v.storeObject=o.merge(v.storeObject,u),v.mergeTree=T$(v.mergeTree,s),d.forEach((function(e){return v.fieldNodeSet.add(e)}))):o.incomingById.set(n,{storeObject:u,mergeTree:A$(s)?void 0:s,fieldNodeSet:d}),g}return u},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?hj(e)?e.map((function(e,o){var s=i.processFieldValue(e,t,n,D$(r,o));return O$(r,o),s})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=ej(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,s=new kU(!1);return function e(a,u){var c=s.lookup(a,u.clientOnly,u.deferred);c.visited||(c.visited=!0,a.selections.forEach((function(s){if(AU(s,n.variables)){var a=u.clientOnly,c=u.deferred;if(!(a&&c)&&pj(s.directives)&&s.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(a=!0),"defer"===t){var r=ZU(e,n.variables);(!r||!1!==r.if)&&(c=!0)}})),tj(s)){var l=i.get(s);l&&(a=a&&l.clientOnly,c=c&&l.deferred),i.set(s,S$(n,a,c))}else{var d=GU(s,n.lookupFragment);if(!d&&s.kind===PF.FRAGMENT_SPREAD)throw hF(11,s.name.value);d&&o.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,S$(n,a,c))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var o,s=this;if(e.map.size&&!zU(n)){var a=hj(n)||!zU(t)&&!PB(t)?void 0:t,u=n;a&&!i&&(i=[zU(a)?a.__ref:a]);var c,l=function(e,t){return hj(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=l(a,t),o=l(u,t);if(void 0!==o){i&&i.push(t);var d=s.applyMerges(e,n,o,r,i);d!==o&&(c=c||new Map).set(t,d),i&&dF(i.pop()===t)}})),c&&(n=hj(u)?u.slice(0):qL({},u),c.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(o=r.store).getStorage.apply(o,i)):n},e}(),w$=[];function D$(e,t){var n=e.map;return n.has(t)||n.set(t,w$.pop()||{map:new Map}),n.get(t)}function T$(e,t){if(e===t||!t||A$(t))return e;if(!e||A$(e))return t;var n=e.info&&t.info?qL(qL({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,T$(e,t.map.get(n))),o.delete(n)})),o.forEach((function(n){i.map.set(n,T$(t.map.get(n),e.map.get(n)))}))}return i}function A$(e){return!e||!(e.info||e.map.size)}function O$(e,t){var n=e.map,r=n.get(t);r&&A$(r)&&(w$.push(r),n.delete(t))}function N$(e){return!!e&&e<7}function M$(e,t,n,r){var i=t.data,o=zL(t,["data"]),s=n.data;return kV(o,zL(n,["data"]))&&P$(sj(e).selectionSet,i,s,{fragmentMap:HU(oj(e)),variables:r})}function P$(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e)||(i.add(e),!AU(e,r.variables))||x$(e))return!0;if(tj(e)){var o=XU(e),s=t&&t[o],a=n&&n[o],u=e.selectionSet;if(!u)return kV(s,a);var c=Array.isArray(s),l=Array.isArray(a);if(c!==l)return!1;if(c&&l){var d=s.length;if(a.length!==d)return!1;for(var h=0;h<d;++h)if(!P$(u,s[h],a[h],r))return!1;return!0}return P$(u,s,a,r)}var p=GU(e,r.fragmentMap);return p?!!x$(p)||P$(p.selectionSet,t,n,r):void 0}))}function x$(e){return!!e.directives&&e.directives.some(R$)}function R$(e){return"nonreactive"===e.name.value}new Set,function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new cj(Ej),n.assumeImmutableResults=!0,n.makeVar=r$,n.txCount=0,n.config=function(e){return uV(TB,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new y$({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}GL(t,e),t.prototype.init=function(){var e=this.data=new FB.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new I$(this,this.storeReader=new JB({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:AB(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=bB((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(GB(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,KB({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(qL(qL({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof CB)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(e){if(IB.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(qL(qL({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){t$(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&n$(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){KB.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(zU(e))return e.__ref;try{return this.policies.identify(e)[0]}catch{}},t.prototype.evict=function(e){if(!e.id){if(IB.call(e,"id"))return!1;e=qL(qL({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{! --this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),KB.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),n$(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,s=e.removeOptimistic,a=e.onWatchUpdated,u=function(e){var i=n,o=i.data,s=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=o,n.optimisticData=s}},c=new Set;return a&&!this.txCount&&this.broadcastWatches(qL(qL({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),a&&c.size?(this.broadcastWatches(qL(qL({},e),{onWatchUpdated:function(e,t){var n=a.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||(!n||!kV(n.result,r.result))&&e.callback(e.lastDiff=r,n)}}(SB),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(C$||(C$={}));var k$=Object.assign,L$=(Object.hasOwnProperty,function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=U$)}catch{}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.waitForOwnResult=j$(i.fetchPolicy),o.isTornDown=!1;var s=n.defaultOptions.watchQuery,a=(void 0===s?{}:s).fetchPolicy,u=void 0===a?"cache-first":a,c=i.fetchPolicy,l=void 0===c?u:c,d=i.initialFetchPolicy,h=void 0===d?"standby"===l?u:l:d;o.options=qL(qL({},i),{initialFetchPolicy:h,fetchPolicy:l}),o.queryId=r.queryId||n.generateQueryId();var p=rj(o.query);return o.queryName=p&&p.name&&p.name.value,o}return GL(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||C$.ready,r=qL(qL({},t),{loading:N$(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(!j$(o)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(r.data=s.result),kV(r.data,{})&&(r.data=void 0),s.complete?(delete r.partial,s.complete&&r.networkStatus===C$.loading&&("cache-first"===o||"cache-only"===o)&&(r.networkStatus=C$.ready,r.loading=!1)):r.partial=!0}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!M$(this.query,this.last.result,e,this.variables):!kV(this.last.result,e))||t&&!kV(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||kV(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return t.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",e&&!kV(this.options.variables,e)&&(t.variables=this.options.variables=qL(qL({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,C$.refetch)},t.prototype.fetchMore=function(e){var t=this,n=qL(qL({},e.query?e:qL(qL(qL(qL({},this.options),{query:this.options.query}),e),{variables:qL(qL({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=C$.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(r,n,C$.fetchMore).then((function(a){return t.queryManager.removeQuery(r),i.networkStatus===C$.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:a.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:a.data})},onWatchUpdated:function(e){s.add(e.query)}}),a})).finally((function(){s.has(t.query)||F$(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=uV(this.options,e||{});k$(this.options,t)},t.prototype.setVariables=function(e){return kV(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},C$.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n)return void(t&&(clearTimeout(t.timeout),delete this.pollingInfo));if(!t||t.interval!==n){dF(n,20),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(N$(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},C$.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!kV(t,this.last.variables)&&(n=void 0),this.last=qL({result:this.queryManager.assumeImmutableResults?e:Qj(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===C$.refetch||t===C$.fetchMore||t===C$.poll,i=this.options.variables,o=this.options.fetchPolicy,s=uV(this.options,e||{}),a=r?s:k$(this.options,s),u=this.transformDocument(a.query);this.lastQuery=u,r||(this.updatePolling(),e&&e.variables&&!kV(e.variables,i)&&"standby"!==a.fetchPolicy&&a.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",a),void 0===t&&(t=C$.setVariables)));var c=u===a.query?a:qL(qL({},a),{query:u});this.waitForOwnResult&&(this.waitForOwnResult=j$(c.fetchPolicy));var l=function(){n.concast===p&&(n.waitForOwnResult=!1)},d=c.variables&&qL({},c.variables),h=this.fetch(c,t),p=h.concast,f=h.fromLink,g={next:function(e){l(),n.reportResult(e,d)},error:function(e){l(),n.reportError(e,d)}};return!r&&(f||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=g),p.addObserver(g),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&Zj(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=qL(qL({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:C$.error,loading:!1});this.updateLastResult(n,t),Zj(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(zj));function F$(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=r,"function"==typeof r?r.apply(this,arguments):n}}):e.reobserve()}function U$(e){}function j$(e){return"network-only"===e||"no-cache"===e||"standby"===e}eV(L$);var V$=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Cj(t.resolvers,e)})):this.resolvers=Cj(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return WL(this,void 0,void 0,(function(){return KL(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,s).then((function(e){return qL(qL({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return OU(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return bj(e)},e.prototype.prepareContext=function(e){var t=this.cache;return qL(qL({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),WL(this,void 0,void 0,(function(){return KL(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return qL(qL({},t),e.exportedVariables)}))]:[2,qL({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return EU(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})),t))return yU}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:_j(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),WL(this,void 0,void 0,(function(){var s,a,u,c,l,d,h,p,f,g;return KL(this,(function(m){return s=sj(e),a=oj(e),u=HU(a),c=this.collectSelectionsToResolve(s,u),l=s.operation,d=l?l.charAt(0).toUpperCase()+l.slice(1):"Query",p=(h=this).cache,f=h.client,g={fragmentMap:u,context:qL(qL({},n),{cache:p,client:f}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,r){return WL(this,void 0,void 0,(function(){var i,o,s,a,u,c=this;return KL(this,(function(l){return i=r.fragmentMap,o=r.context,s=r.variables,a=[n],u=function(e){return WL(c,void 0,void 0,(function(){var u,c;return KL(this,(function(l){return(t||r.selectionsToResolve.has(e))&&AU(e,s)?tj(e)?[2,this.resolveField(e,t,n,r).then((function(t){var n;typeof t<"u"&&a.push(((n={})[XU(e)]=t,n))}))]:(function(e){return"InlineFragment"===e.kind}(e)?u=e:(u=i[e.name.value],dF(u,16,e.name.value)),u&&u.typeCondition&&(c=u.typeCondition.name.value,r.fragmentMatcher(n,c,o))?[2,this.resolveSelectionSet(u.selectionSet,t,n,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return Ij(a)}))]}))}))},e.prototype.resolveField=function(e,t,n,r){return WL(this,void 0,void 0,(function(){var i,o,s,a,u,c,l,d,h,p=this;return KL(this,(function(f){return n?(i=r.variables,o=e.name.value,s=XU(e),a=o!==s,u=n[s]||n[o],c=Promise.resolve(u),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=n.__typename||r.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(h=d[a?o:s])&&(c=Promise.resolve(XB.withValue(this.cache,h,[n,ZU(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.then((function(n){var i,o;if(void 0===n&&(n=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=n)}))})),!e.selectionSet||null==n)return n;var s=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?p.resolveSubSelectedArray(e,t||s,n,r):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||s,n,r):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(i){if(!r.has(i)){var o=new Set;r.set(i,o),EU(i,{Directive:function(e,t,r,i,s){"client"===e.name.value&&s.forEach((function(e){n(e)&&TU(e)&&o.add(e)}))},FragmentSpread:function(r,i,s,a,u){var c=t[r.name.value];dF(c,17,r.name.value);var l=e(c);l.size>0&&(u.forEach((function(e){n(e)&&TU(e)&&o.add(e)})),o.add(r),l.forEach((function(e){o.add(e)})))}})}return r.get(i)}(e)},e}(),B$=new(FU?WeakMap:Map);function $$(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return B$.set(e,(B$.get(e)+1)%1e15),n.apply(this,arguments)})}function H$(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var G$=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;B$.has(n)||(B$.set(n,0),$$(n,"evict"),$$(n,"modify"),$$(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||C$.loading;return this.variables&&this.networkStatus!==C$.loading&&!kV(this.variables,e.variables)&&(t=C$.setVariables),kV(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){H$(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&kV(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!kV(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():F$(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;H$(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(N$(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=qL(qL({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});(!this.lastWatch||!kV(r,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===B$.get(this.cache)&&kV(t,n.variables)&&kV(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new Dj,s=pj(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&pj(e.incremental)){var a=oV(this.getDiff().result,e);e.data=a}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=s,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(q$(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:B$.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var s=i.getDiffOptions(n.variables),a=o.diff(s);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(a,s),a.complete&&(e.data=a.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=C$.ready},e.prototype.markError=function(e){return this.networkStatus=C$.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function q$(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!sV(e);return!r&&n&&e.data&&(r=!0),r}var z$=Object.prototype.hasOwnProperty,W$=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,s=void 0!==o&&o,a=e.onBroadcast,u=e.ssrMode,c=void 0!==u&&u,l=e.clientAwareness,d=void 0===l?{}:l,h=e.localState,p=e.assumeImmutableResults,f=void 0===p?!!t.assumeImmutableResults:p,g=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(FU?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var m=new cj((function(e){return g.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=s,this.clientAwareness=d,this.localState=h||new V$({cache:t}),this.ssrMode=c,this.assumeImmutableResults=f,this.documentTransform=i?m.concat(i).concat(m):m,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(hF(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,s=e.updateQueries,a=e.refetchQueries,u=void 0===a?[]:a,c=e.awaitRefetchQueries,l=void 0!==c&&c,d=e.update,h=e.onQueryUpdated,p=e.fetchPolicy,f=void 0===p?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":p,g=e.errorPolicy,m=void 0===g?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":g,v=e.keepRootFields,y=e.context;return WL(this,void 0,void 0,(function(){var e,t,n,a;return KL(this,(function(c){switch(c.label){case 0:return dF(r,24),dF("network-only"===f||"no-cache"===f,25),e=this.generateMutationId(),r=this.cache.transformForLink(this.transform(r)),t=this.getDocumentInfo(r).hasClientExports,i=this.getVariables(r,i),t?[4,this.localState.addExportedVariables(r,i,y)]:[3,2];case 1:i=c.sent(),c.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:f,errorPolicy:m,context:y,updateQueries:s,update:d,keepRootFields:v}),this.broadcastQueries(),a=this,[2,new Promise((function(t,c){return Xj(a.getObservableFromLink(r,qL(qL({},y),{optimisticResponse:o}),i,!1),(function(t){if(sV(t)&&"none"===m)throw new bV({graphQLErrors:aV(t)});n&&(n.loading=!1,n.error=null);var c=qL({},t);return"function"==typeof u&&(u=u(c)),"ignore"===m&&sV(c)&&delete c.errors,a.markMutationResult({mutationId:e,result:c,document:r,variables:i,fetchPolicy:f,errorPolicy:m,context:y,update:d,updateQueries:s,awaitRefetchQueries:l,refetchQueries:u,removeOptimistic:o?e:void 0,onQueryUpdated:h,keepRootFields:v})})).subscribe({next:function(e){a.broadcastQueries(),(!("hasNext"in e)||!1===e.hasNext)&&t(e)},error:function(t){n&&(n.loading=!1,n.error=t),o&&a.cache.removeOptimistic(e),a.broadcastQueries(),c(t instanceof bV?t:new bV({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&q$(r,e.errorPolicy)){if(rV(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),rV(r)&&pj(r.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),a=void 0;s.result&&(a=oV(s.result,r)),typeof a<"u"&&(r.data=a,i.push({result:a,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,o){var s=e.observableQuery,a=s&&s.queryName;if(a&&z$.call(u,a)){var c=u[a],l=n.queries.get(o),d=l.document,h=l.variables,p=t.diff({query:d,variables:h,returnPartialData:!0,optimistic:!1}),f=p.result;if(p.complete&&f){var g=c(f,{mutationResult:r,queryName:d&&ij(d)||void 0,queryVariables:h});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:h})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var s=e.update,a=!function(e){return rV(e)||function(e){return"hasNext"in e&&"data"in e}(e)}(r)||rV(r)&&!r.hasNext;if(s){if(!o){var u=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(r=qL(qL({},r),{data:u.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}a&&s(t,r,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&a&&t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return c.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(qL(qL({},t),{result:{data:r}}),e)}catch{}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:NU(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:OU(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:yj([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:aj(rj(e)),asQuery:qL(qL({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?qL(qL({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return qL(qL({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);typeof(e=qL(qL({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new G$(this),r=new L$({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),dF(e.query,26),dF("Document"===e.query.kind,27),dF(!e.returnPartialData,28),dF(!e.pollInterval,29),this.fetchQuery(t,qL(qL({},e),{query:this.transform(e.query)})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(hF(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=C$.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?r.set(e,!1):function(e){return BU(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}(e)?r.set(t.transform(e),!1):BU(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,s=t.document;if(o){if("all"===e)return void n.set(i,o);var a=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||a&&r.has(a)||s&&r.has(s))&&(n.set(i,o),a&&r.set(a,!0),s&&r.set(s,!0))}})),i.size&&i.forEach((function(e){var r=cF("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new L$({queryManager:t,queryInfo:i,options:qL(qL({},e),{fetchPolicy:"network-only"})});dF(o.queryId===r),i.setObservableQuery(o),n.set(r,o)})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,a=void 0===s?{}:s;n=this.transform(n),o=this.getVariables(n,o);var u=function(e){return t.getObservableFromLink(n,a,e).map((function(o){"no-cache"!==r&&(q$(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=sV(o),a=function(e){return!!e.extensions&&Array.isArray(e.extensions[_V])}(o);if(s||a){var u={};throw s&&(u.graphQLErrors=o.errors),a&&(u.protocolErrors=o.extensions[_V]),new bV(u)}return o}))};if(this.getDocumentInfo(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,a).then(u);return new zj((function(e){var t=null;return c.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,o=this;void 0===r&&(r=null!==(i=t?.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s,a=this.getDocumentInfo(e),u=a.serverQuery,c=a.clientQuery;if(u){var l=this.inFlightLinkObservables,d=this.link,h={query:u,variables:n,operationName:ij(u)||void 0,context:this.prepareContext(qL(qL({},t),{forceFetch:!r}))};if(t=h.context,r){var p=dj(u),f=l.get(p)||new Map;l.set(p,f);var g=KB(n);if(!(s=f.get(g))){var m=new nV([vV(d,h)]);f.set(g,s=m),m.beforeNext((function(){f.delete(g)&&f.size<1&&l.delete(p)}))}}else s=new nV([vV(d,h)])}else s=new nV([zj.of({data:{}})]),t=this.prepareContext(t);return c&&(s=Xj(s,(function(e){return o.localState.runResolvers({document:c,remoteResult:e,context:t,variables:n})}))),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return Xj(this.getObservableFromLink(i,n.context,n.variables),(function(o){var s=aV(o),a=s.length>0;if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new bV({graphQLErrors:s}));e.markResult(o,i,n,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:C$.ready};return a&&"ignore"!==n.errorPolicy&&(u.errors=s,u.networkStatus=C$.error),u}),(function(t){var n=function(e){return e.hasOwnProperty("graphQLErrors")}(t)?t:new bV({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n){var r=this;void 0===n&&(n=C$.loading);var i,o,s=t.query,a=this.getVariables(s,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,f=t.returnPartialData,g=void 0!==f&&f,m=t.notifyOnNetworkStatusChange,v=void 0!==m&&m,y=t.context,E=void 0===y?{}:y,_=Object.assign({},t,{query:s,variables:a,fetchPolicy:d,errorPolicy:p,returnPartialData:g,notifyOnNetworkStatusChange:v,context:E}),b=function(e){_.variables=e;var i=r.fetchQueryByPolicy(u,_,n);return"standby"!==_.fetchPolicy&&i.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),i},S=function(){return r.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){S(),setTimeout((function(){return i.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)i=new nV(this.localState.addExportedVariables(_.query,_.variables,_.context).then(b).then((function(e){return e.sources}))),o=!0;else{var C=b(_.variables);o=C.fromLink,i=new nV(C.sources)}return i.promise.then(S,S),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,s=e.removeOptimistic,a=void 0===s?o?cF("refetchQueries"):void 0:s,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&a||!1,removeOptimistic:a,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof G$&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,s=e.diff;if(u){if(!s){var a=i.queryInfo;a.reset(),s=a.getDiff()}r=u(i,s,o)}(!u||!0===r)&&(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),a&&this.cache.removeOptimistic(a),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,s=t.fetchPolicy,a=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context,d=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:o,networkStatus:n});var p=function(){return e.getDiff(o)},f=function(t,n){void 0===n&&(n=e.networkStatus||C$.loading);var s=t.result,a=function(e){return zj.of(qL({data:e,loading:N$(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:s},context:l,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return a(e.data||void 0)})):"none"===u&&n===C$.refetch&&Array.isArray(t.missing)?a(void 0):a(s)},g="no-cache"===s?0:n===C$.refetch&&"merge"!==a?1:2,m=function(){return r.getResultsFromLink(e,g,{query:i,variables:o,context:l,fetchPolicy:s,errorPolicy:u})},v=d&&"number"==typeof h&&h!==n&&N$(n);switch(s){default:case"cache-first":return(y=p()).complete?{fromLink:!1,sources:[f(y,e.markReady())]}:c||v?{fromLink:!0,sources:[f(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var y;return(y=p()).complete||c||v?{fromLink:!0,sources:[f(y),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[f(p(),e.markReady())]};case"network-only":return v?{fromLink:!0,sources:[f(p()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return v?{fromLink:!0,sources:[f(e.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new G$(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return qL(qL({},t),{clientAwareness:this.clientAwareness})},e}(),K$=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw hF(13);var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,s=e.documentTransform,a=e.ssrMode,u=void 0!==a&&a,c=e.ssrForceFetchDelay,l=void 0===c?0:c,d=e.connectToDevTools,h=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:d,p=e.queryDeduplication,f=void 0===p||p,g=e.defaultOptions,m=e.assumeImmutableResults,v=void 0===m?o.assumeImmutableResults:m,y=e.resolvers,E=e.typeDefs,_=e.fragmentMatcher,b=e.name,S=e.version,C=e.link;C||(C=n?new NV({uri:n,credentials:r,headers:i}):gV.empty()),this.link=C,this.cache=o,this.disableNetworkFetches=u||l>0,this.queryDeduplication=f,this.defaultOptions=g||Object.create(null),this.typeDefs=E,l&&setTimeout((function(){return t.disableNetworkFetches=!1}),l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),h&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version=oF,this.localState=new V$({cache:o,client:this,resolvers:y,fragmentMatcher:_}),this.queryManager=new W$({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:s,queryDeduplication:f,ssrMode:u,clientAwareness:{name:b,version:S},localState:this.localState,assumeImmutableResults:v,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=cV(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=qL(qL({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=cV(this.defaultOptions.query,e)),dF("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=qL(qL({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=cV(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return vV(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),Y$=new Map,Q$=new Map,J$=!0,Z$=!1;function X$(e){return e.replace(/[\s,]+/g," ").trim()}function eH(e){var t=X$(e);if(!Y$.has(t)){var n=function(e,t){return new hU(e,t).parseDocument()}(e,{experimentalFragmentVariables:Z$,allowLegacyFragmentVariables:Z$});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Y$.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(function(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=function(e){return X$(e.source.body.substring(e.start,e.end))}(e.loc),o=Q$.get(r);o&&!o.has(i)?J$&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Q$.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)})),qL(qL({},e),{definitions:n})}(n)))}return Y$.get(t)}function tH(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),eH(r)}var nH=tH,rH=function(){Y$.clear(),Q$.clear()},iH=function(){J$=!1},oH=function(){Z$=!0},sH=function(){Z$=!1};(function(e){e.gql=nH,e.resetCaches=rH,e.disableFragmentWarnings=iH,e.enableExperimentalFragmentVariables=oH,e.disableExperimentalFragmentVariables=sH})(tH||(tH={})),tH.default=tH;var aH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},uH={},cH={},lH={};Object.defineProperty(lH,"__esModule",{value:!0});var dH,hH={};Object.defineProperty(hH,"__esModule",{value:!0}),hH.APP_STATE_TYPE=void 0,function(e){e.STARTED="STARTED",e.RESUMED="RESUMED",e.PAUSED="PAUSED",e.STOPPED="STOPPED"}(dH||(hH.APP_STATE_TYPE=dH={}));var pH={};Object.defineProperty(pH,"__esModule",{value:!0});var fH,gH,mH={};Object.defineProperty(mH,"__esModule",{value:!0}),mH.CONNECTION_TYPE=mH.CONNECTION_STATE=void 0,function(e){e.ONLINE="ONLINE",e.OFFLINE="OFFLINE"}(fH||(mH.CONNECTION_STATE=fH={})),function(e){e.TYPE_3G="TYPE_3G",e.TYPE_WLAN="TYPE_WLAN"}(gH||(mH.CONNECTION_TYPE=gH={}));var vH,yH,EH={};Object.defineProperty(EH,"__esModule",{value:!0}),EH.DisplayMode=EH.DISPLAY_MODE=void 0,function(e){e.EMBEDDED="embedded",e.MODAL="modal"}(vH||(EH.DISPLAY_MODE=vH={})),function(e){e.EMBEDDED="EMBEDDED",e.MODAL="MODAL"}(yH||(EH.DisplayMode=yH={}));var _H,bH={};Object.defineProperty(bH,"__esModule",{value:!0}),bH.ENTITLEMENT_MODE=void 0,function(e){e.ENTITLEMENT="entitlement",e.OAUTH="oauth",e.NONE="none"}(_H||(bH.ENTITLEMENT_MODE=_H={}));var SH={};Object.defineProperty(SH,"__esModule",{value:!0});var CH={};Object.defineProperty(CH,"__esModule",{value:!0});var IH,wH={};Object.defineProperty(wH,"__esModule",{value:!0}),wH.ISSUE_STATE=void 0,function(e){e.PURCHASABLE="PURCHASABLE",e.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",e.DOWNLOADING="DOWNLOADING",e.AVAILABLE="AVAILABLE",e.INSTALLING="INSTALLING",e.UPDATE="UPDATE",e.INSTALLED="INSTALLED",e.LOCKED="LOCKED",e.COMING_SOON="COMING_SOON",e.INDEXING="INDEXING",e.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",e.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(IH||(wH.ISSUE_STATE=IH={}));var DH={};Object.defineProperty(DH,"__esModule",{value:!0});var TH,AH={};Object.defineProperty(AH,"__esModule",{value:!0}),AH.MEDIA_PLAYBACK_STATE=void 0,function(e){e.NONE="NONE",e.ERROR="ERROR",e.LOADING="LOADING",e.READY="READY",e.PLAYING="PLAYING"}(TH||(AH.MEDIA_PLAYBACK_STATE=TH={}));var OH,NH={};Object.defineProperty(NH,"__esModule",{value:!0}),NH.Platform=void 0,function(e){e.ANDROID="android",e.IOS="ios"}(OH||(NH.Platform=OH={}));var MH,PH={};Object.defineProperty(PH,"__esModule",{value:!0}),PH.PUBLICATION_TYPE=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(MH||(PH.PUBLICATION_TYPE=MH={}));var xH={};Object.defineProperty(xH,"__esModule",{value:!0});var RH={};Object.defineProperty(RH,"__esModule",{value:!0});var kH={};Object.defineProperty(kH,"__esModule",{value:!0});var LH={};Object.defineProperty(LH,"__esModule",{value:!0});var FH,UH,jH={};Object.defineProperty(jH,"__esModule",{value:!0}),jH.OpenFileMode=jH.OpenFileTarget=void 0,function(e){e.INTERNAL="INTERNAL",e.EXTERNAL="EXTERNAL"}(FH||(jH.OpenFileTarget=FH={})),function(e){e.MODAL="MODAL",e.EMBEDDED="EMBEDDED"}(UH||(jH.OpenFileMode=UH={}));var VH={};Object.defineProperty(VH,"__esModule",{value:!0});var BH,$H={};Object.defineProperty($H,"__esModule",{value:!0}),$H.METADATA_KEY=void 0,function(e){e.APP_ID="app_id",e.APP_VERSION="app_version",e.BUNDLE_ID="bundle_id",e.DEEPLINK_SCHEME="deeplink_scheme",e.PREVIEW_APP="preview_app",e.DEVICE_ID="device_id",e.DEVICE_MODEL="device_model",e.DEVICE_OS="device_os",e.PLATFORM="platform",e.LOCALE="locale",e.MANAGER_BASE_URL="manager_base_url",e.PUSH_REGISTRATION_TOKEN="push_registration_token",e.ENTITLEMENT_LOGIN="entitlement_login",e.ENTITLEMENT_TOKEN="entitlement_token",e.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",e.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",e.ENTITLEMENT_MODE="entitlement_mode",e.ISSUE_ID="issue_id",e.ISSUE_NAME="issue_name",e.PUBLICATION_ID="publication_id",e.PUBLICATION_NAME="publication_name",e.PAGE_ID="page_id",e.PAGE_ALIAS="page_alias",e.PAGE_TITLE="page_title",e.PAGE_INDEX="page_index",e.PAGE_FILENAME="page_filename",e.PURPLE_VERSION="purple_version",e.ONBOARDING_MODE="onboarding_mode"}(BH||($H.METADATA_KEY=BH={}));var HH={};Object.defineProperty(HH,"__esModule",{value:!0});var GH={};Object.defineProperty(GH,"__esModule",{value:!0});var qH,zH={};Object.defineProperty(zH,"__esModule",{value:!0}),zH.SUBSCRIPTION_STATE=void 0,function(e){e.NONE="NONE",e.PURCHASING="PURCHASING",e.VALIDATING="VALIDATING",e.PURCHASED="PURCHASED"}(qH||(zH.SUBSCRIPTION_STATE=qH={}));var WH={};Object.defineProperty(WH,"__esModule",{value:!0});var KH,YH,QH={};Object.defineProperty(QH,"__esModule",{value:!0}),QH.UPDATE_STOREFRONT_ERROR_CODE=QH.UPDATE_STOREFRONT_TYPE=void 0,function(e){e.PARTIAL="PARTIAL",e.FULL="FULL",e.LOGIN="LOGIN",e.LOGOUT="LOGOUT"}(KH||(QH.UPDATE_STOREFRONT_TYPE=KH={})),function(e){e.OFFLINE="OFFLINE",e.UNKNOWN="UNKNOWN"}(YH||(QH.UPDATE_STOREFRONT_ERROR_CODE=YH={}));var JH={};Object.defineProperty(JH,"__esModule",{value:!0});var ZH={};Object.defineProperty(ZH,"__esModule",{value:!0});var XH,eG,tG={},nG={};Object.defineProperty(nG,"__esModule",{value:!0}),nG.AppSubscriptionType=nG.AppSubscriptionDuration=void 0,function(e){e.SEVEN_DAYS="SEVEN_DAYS",e.TWO_WEEKS="TWO_WEEKS",e.ONE_MONTH="ONE_MONTH",e.TWO_MONTHS="TWO_MONTHS",e.THREE_MONTHS="THREE_MONTHS",e.SIX_MONTHS="SIX_MONTHS",e.ONE_YEAR="ONE_YEAR"}(XH||(nG.AppSubscriptionDuration=XH={})),function(e){e.FREE="FREE",e.AUTORENEWABLE="AUTORENEWABLE",e.NONAUTORENEWABLE="NONAUTORENEWABLE"}(eG||(nG.AppSubscriptionType=eG={}));var rG,iG={};Object.defineProperty(iG,"__esModule",{value:!0}),iG.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(e){e.DAY="DAY",e.WEEK="WEEK",e.MONTH="MONTH",e.YEAR="YEAR"}(rG||(iG.AppSubscriptionAdditionalBackIssueUnlocksType=rG={}));var oG={};Object.defineProperty(oG,"__esModule",{value:!0});var sG,aG,uG,cG,lG={};Object.defineProperty(lG,"__esModule",{value:!0}),lG.ContentResourceType=lG.CatalogBundleType=lG.CatalogContentType=lG.Access=void 0,function(e){e.FREE="FREE",e.HIDDEN="HIDDEN",e.PURCHASABLE="PURCHASABLE"}(sG||(lG.Access=sG={})),function(e){e.ISSUE="ISSUE",e.POST="POST",e.BUNDLE="BUNDLE"}(aG||(lG.CatalogContentType=aG={})),function(e){e.ISSUE="ISSUE",e.DOSSIER="DOSSIER"}(uG||(lG.CatalogBundleType=uG={})),function(e){e.ASSET="ASSET",e.CONTENT_BUNDLE="CONTENT_BUNDLE"}(cG||(lG.ContentResourceType=cG={}));var dG,hG,pG={};Object.defineProperty(pG,"__esModule",{value:!0}),pG.IssueType=pG.PurchaseOption=void 0,function(e){e.APP_STORE_PURCHASE="APP_STORE_PURCHASE",e.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",e.ENTITLEMENT="ENTITLEMENT",e.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",e.TRIAL="TRIAL",e.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT"}(dG||(pG.PurchaseOption=dG={})),function(e){e.ARTICLE="ARTICLE",e.ISSUE="ISSUE"}(hG||(pG.IssueType=hG={}));var fG,gG,mG={};Object.defineProperty(mG,"__esModule",{value:!0}),mG.CatalogIssueStateError=mG.CatalogIssueInstallState=void 0,function(e){e.NOT_INSTALLED="NOT_INSTALLED",e.INCOMPLETE="INCOMPLETE",e.COMPLETE="COMPLETE"}(fG||(mG.CatalogIssueInstallState=fG={})),function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(gG||(mG.CatalogIssueStateError=gG={}));var vG={};Object.defineProperty(vG,"__esModule",{value:!0});var yG={};Object.defineProperty(yG,"__esModule",{value:!0});var EG,_G={};Object.defineProperty(_G,"__esModule",{value:!0}),_G.PublicationType=void 0,function(e){e.KIOSK="KIOSK",e.CHANNEL="CHANNEL"}(EG||(_G.PublicationType=EG={}));var bG={};Object.defineProperty(bG,"__esModule",{value:!0});var SG={};Object.defineProperty(SG,"__esModule",{value:!0});var CG,IG={};Object.defineProperty(IG,"__esModule",{value:!0}),IG.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(CG||(IG.SortDirection=CG={}));var wG={};Object.defineProperty(wG,"__esModule",{value:!0});var DG={};Object.defineProperty(DG,"__esModule",{value:!0});var TG={};Object.defineProperty(TG,"__esModule",{value:!0});var AG={};Object.defineProperty(AG,"__esModule",{value:!0});var OG={};Object.defineProperty(OG,"__esModule",{value:!0});var NG={};Object.defineProperty(NG,"__esModule",{value:!0});var MG,PG={};Object.defineProperty(PG,"__esModule",{value:!0}),PG.ERROR_CODE=void 0,function(e){e.ACCESS_DENIED="ACCESS_DENIED",e.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",e.ALREADY_OWNED="ALREADY_OWNED",e.CANCELLED="CANCELLED",e.CONFIGURATION_ERROR="CONFIGURATION_ERROR",e.DUPLICATE_CODE="DUPLICATE_CODE",e.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",e.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",e.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.INVALID_CODE="INVALID_CODE",e.INVALID_CREDENTIALS="INVALID_CREDENTIALS",e.NETWORK="NETWORK",e.NO_ISSUES_FOUND="NO_ISSUES_FOUND",e.NOT_AVAILABLE="NOT_AVAILABLE",e.NOT_FOUND="NOT_FOUND",e.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",e.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",e.NOT_HANDLED="NOT_HANDLED",e.NOTHING_LOADED="NOTHING_LOADED",e.NOT_LOGGED_IN="NOT_LOGGED_IN",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.UNKNOWN="UNKNOWN",e.UNKNOWN_CODE="UNKNOWN_CODE",e.UNKNOWN_OFFER="UNKNOWN_OFFER",e.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",e.UNKNOWN_VENDOR="UNKNOWN_VENDOR",e.USER_DEACTIVATED="USER_DEACTIVATED",e.VALIDATION_FAILED="VALIDATION_FAILED"}(MG||(PG.ERROR_CODE=MG={}));var xG={};Object.defineProperty(xG,"__esModule",{value:!0});var RG,kG,LG,FG,UG={};Object.defineProperty(UG,"__esModule",{value:!0}),UG.ListOperation=UG.IntOperation=UG.DateOperation=UG.StringOperation=void 0,function(e){e.EQUAL="EQUAL",e.CONTAINS="CONTAINS",e.STARTS_WITH="STARTS_WITH",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.REGEX="REGEX"}(RG||(UG.StringOperation=RG={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(kG||(UG.DateOperation=kG={})),function(e){e.GREATER_THAN="GREATER_THAN",e.LESS_THAN="LESS_THAN",e.EQUAL="EQUAL"}(LG||(UG.IntOperation=LG={})),function(e){e.CONTAINS="CONTAINS",e.CONTAINS_ONLY="CONTAINS_ONLY"}(FG||(UG.ListOperation=FG={}));var jG={};Object.defineProperty(jG,"__esModule",{value:!0});var VG={};Object.defineProperty(VG,"__esModule",{value:!0});var BG={};Object.defineProperty(BG,"__esModule",{value:!0});var $G={};Object.defineProperty($G,"__esModule",{value:!0});var HG={};Object.defineProperty(HG,"__esModule",{value:!0});var GG={};Object.defineProperty(GG,"__esModule",{value:!0});var qG={};Object.defineProperty(qG,"__esModule",{value:!0});var zG={};Object.defineProperty(zG,"__esModule",{value:!0});var WG={};Object.defineProperty(WG,"__esModule",{value:!0});var KG={};Object.defineProperty(KG,"__esModule",{value:!0});var YG={};Object.defineProperty(YG,"__esModule",{value:!0});var QG={};Object.defineProperty(QG,"__esModule",{value:!0});var JG={};Object.defineProperty(JG,"__esModule",{value:!0});var ZG={};Object.defineProperty(ZG,"__esModule",{value:!0});var XG={};Object.defineProperty(XG,"__esModule",{value:!0});var eq={};Object.defineProperty(eq,"__esModule",{value:!0});var tq={};Object.defineProperty(tq,"__esModule",{value:!0});var nq={};Object.defineProperty(nq,"__esModule",{value:!0});var rq={};Object.defineProperty(rq,"__esModule",{value:!0});var iq={};Object.defineProperty(iq,"__esModule",{value:!0});var oq={};Object.defineProperty(oq,"__esModule",{value:!0});var sq={};Object.defineProperty(sq,"__esModule",{value:!0});var aq={};Object.defineProperty(aq,"__esModule",{value:!0});var uq,cq={};Object.defineProperty(cq,"__esModule",{value:!0}),cq.PublicationProductType=void 0,function(e){e.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",e.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(uq||(cq.PublicationProductType=uq={}));var lq={};Object.defineProperty(lq,"__esModule",{value:!0});var dq={};Object.defineProperty(dq,"__esModule",{value:!0});var hq={};Object.defineProperty(hq,"__esModule",{value:!0});var pq={};Object.defineProperty(pq,"__esModule",{value:!0});var fq,gq={};Object.defineProperty(gq,"__esModule",{value:!0}),gq.SystemConsentStatus=void 0,function(e){e.GRANTED="GRANTED",e.DENIED="DENIED",e.UNDETERMINED="UNDETERMINED"}(fq||(gq.SystemConsentStatus=fq={}));var mq={};Object.defineProperty(mq,"__esModule",{value:!0});var vq={};Object.defineProperty(vq,"__esModule",{value:!0});var yq={};Object.defineProperty(yq,"__esModule",{value:!0});var Eq,_q={};Object.defineProperty(_q,"__esModule",{value:!0}),_q.SearchResultSortCriteria=void 0,function(e){e.RELEVANCE="RELEVANCE",e.PUB_DATE_DESC="PUB_DATE_DESC"}(Eq||(_q.SearchResultSortCriteria=Eq={}));var bq,Sq={};Object.defineProperty(Sq,"__esModule",{value:!0}),Sq.SearchField=void 0,function(e){e.CONTENT="CONTENT",e.CONTENT_NAME="CONTENT_NAME",e.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",e.CUSTOM_TERMS="CUSTOM_TERMS"}(bq||(Sq.SearchField=bq={}));var Cq={};Object.defineProperty(Cq,"__esModule",{value:!0});var Iq={};Object.defineProperty(Iq,"__esModule",{value:!0});var wq,Dq={};Object.defineProperty(Dq,"__esModule",{value:!0}),Dq.StartDownloadError=void 0,function(e){e.NETWORK="NETWORK",e.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",e.PAYMENT_REQUIRED="PAYMENT_REQUIRED",e.NOT_FOUND="NOT_FOUND",e.UNKNOWN="UNKNOWN"}(wq||(Dq.StartDownloadError=wq={}));var Tq={};Object.defineProperty(Tq,"__esModule",{value:!0});var Aq={};Object.defineProperty(Aq,"__esModule",{value:!0});var Oq={};Object.defineProperty(Oq,"__esModule",{value:!0});var Nq={};Object.defineProperty(Nq,"__esModule",{value:!0});var Mq={};Object.defineProperty(Mq,"__esModule",{value:!0});var Pq={};Object.defineProperty(Pq,"__esModule",{value:!0});var xq={};Object.defineProperty(xq,"__esModule",{value:!0});var Rq={};Object.defineProperty(Rq,"__esModule",{value:!0});var kq={};Object.defineProperty(kq,"__esModule",{value:!0});var Lq={};Object.defineProperty(Lq,"__esModule",{value:!0});var Fq={};Object.defineProperty(Fq,"__esModule",{value:!0});var Uq={};Object.defineProperty(Uq,"__esModule",{value:!0});var jq={};Object.defineProperty(jq,"__esModule",{value:!0});var Vq={};Object.defineProperty(Vq,"__esModule",{value:!0});var Bq={};Object.defineProperty(Bq,"__esModule",{value:!0});var $q={};Object.defineProperty($q,"__esModule",{value:!0});var Hq={};Object.defineProperty(Hq,"__esModule",{value:!0});var Gq={};Object.defineProperty(Gq,"__esModule",{value:!0});var qq={};Object.defineProperty(qq,"__esModule",{value:!0});var zq={};Object.defineProperty(zq,"__esModule",{value:!0});var Wq={};Object.defineProperty(Wq,"__esModule",{value:!0}),function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(nG,e),n(iG,e),n(oG,e),n(lG,e),n(pG,e),n(mG,e),n(vG,e),n(yG,e),n(_G,e),n(bG,e),n(SG,e),n(IG,e),n(wG,e),n(DG,e),n(TG,e),n(AG,e),n(OG,e),n(NG,e),n(PG,e),n(xG,e),n(UG,e),n(jG,e),n(VG,e),n(BG,e),n($G,e),n(HG,e),n(GG,e),n(qG,e),n(zG,e),n(WG,e),n(KG,e),n(YG,e),n(QG,e),n(JG,e),n(ZG,e),n(XG,e),n(eq,e),n(tq,e),n(nq,e),n(rq,e),n(iq,e),n(oq,e),n(sq,e),n(aq,e),n(cq,e),n(lq,e),n(dq,e),n(hq,e),n(pq,e),n(gq,e),n(mq,e),n(vq,e),n(yq,e),n(_q,e),n(Sq,e),n(Cq,e),n(Iq,e),n(Dq,e),n(Tq,e),n(Aq,e),n(Oq,e),n(Nq,e),n(Mq,e),n(Pq,e),n(xq,e),n(Rq,e),n(kq,e),n(Lq,e),n(Fq,e),n(Uq,e),n(jq,e),n(Vq,e),n(Bq,e),n($q,e),n(Hq,e),n(Gq,e),n(qq,e),n(zq,e),n(Wq,e)}(tG);var Kq,Yq={},Qq={};Object.defineProperty(Qq,"__esModule",{value:!0}),Qq.ElementAlignment=void 0,function(e){e.TOP_LEFT="TOP_LEFT",e.TOP_CENTER="TOP_CENTER",e.TOP_RIGHT="TOP_RIGHT",e.CENTER_LEFT="CENTER_LEFT",e.CENTER_CENTER="CENTER_CENTER",e.CENTER_RIGHT="CENTER_RIGHT",e.BOTTOM_LEFT="BOTTOM_LEFT",e.BOTTOM_CENTER="BOTTOM_CENTER",e.BOTTOM_RIGHT="BOTTOM_RIGHT"}(Kq||(Qq.ElementAlignment=Kq={}));var Jq={};Object.defineProperty(Jq,"__esModule",{value:!0}),function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Qq,e),n(Jq,e)}(Yq);var Zq={},Xq={};Object.defineProperty(Xq,"__esModule",{value:!0});var ez={};Object.defineProperty(ez,"__esModule",{value:!0});var tz={};Object.defineProperty(tz,"__esModule",{value:!0});var nz={};Object.defineProperty(nz,"__esModule",{value:!0});var rz={};Object.defineProperty(rz,"__esModule",{value:!0});var iz={};Object.defineProperty(iz,"__esModule",{value:!0});var oz={};Object.defineProperty(oz,"__esModule",{value:!0});var sz={};Object.defineProperty(sz,"__esModule",{value:!0});var az={};Object.defineProperty(az,"__esModule",{value:!0});var uz={};Object.defineProperty(uz,"__esModule",{value:!0});var cz={};Object.defineProperty(cz,"__esModule",{value:!0});var lz={};Object.defineProperty(lz,"__esModule",{value:!0});var dz={};Object.defineProperty(dz,"__esModule",{value:!0});var hz,pz={};Object.defineProperty(pz,"__esModule",{value:!0}),pz.ProrationMode=void 0,function(e){e.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",e.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",e.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",e.DEFERRED="DEFERRED"}(hz||(pz.ProrationMode=hz={}));var fz={};Object.defineProperty(fz,"__esModule",{value:!0}),function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Xq,e),n(ez,e),n(tz,e),n(nz,e),n(rz,e),n(iz,e),n(oz,e),n(sz,e),n(az,e),n(uz,e),n(cz,e),n(lz,e),n(dz,e),n(pz,e),n(fz,e)}(Zq);var gz={},mz={};Object.defineProperty(mz,"__esModule",{value:!0});var vz={};Object.defineProperty(vz,"__esModule",{value:!0});var yz={};Object.defineProperty(yz,"__esModule",{value:!0});var Ez={};Object.defineProperty(Ez,"__esModule",{value:!0});var _z={};Object.defineProperty(_z,"__esModule",{value:!0}),_z.LAST_VISITED_PATH=void 0,_z.LAST_VISITED_PATH="lastVisitedPath",function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(mz,e),n(vz,e),n(yz,e),n(Ez,e),n(_z,e)}(gz);var bz,Sz={},Cz={};Object.defineProperty(Cz,"__esModule",{value:!0}),Cz.AssignLocalPurchasesMode=void 0,function(e){e.UNASSIGNED="UNASSIGNED",e.REASSIGN="REASSIGN",e.ASSIGN="ASSIGN"}(bz||(Cz.AssignLocalPurchasesMode=bz={})),function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Cz,e)}(Sz),function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(lH,e),n(hH,e),n(pH,e),n(mH,e),n(EH,e),n(bH,e),n(SH,e),n(CH,e),n(wH,e),n(DH,e),n(AH,e),n(NH,e),n(PH,e),n(xH,e),n(RH,e),n(kH,e),n(LH,e),n(jH,e),n(VH,e),n($H,e),n(HH,e),n(GH,e),n(zH,e),n(WH,e),n(QH,e),n(JH,e),n(ZH,e),n(tG,e),n(Yq,e),n(Zq,e),n(gz,e),n(Sz,e)}(cH),function(e){var t=aH&&aH.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=aH&&aH.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(cH,e)}(uH);var Iz=(e=>(e.NOT_IMPLEMENTED="not implemented. Please override this method",e))(Iz||{});class wz{version;addConnectionStateListener(e){}addLifecycleListener(e){}closeOnboarding(e){console.warn("app.closeOnboarding:"+Iz.NOT_IMPLEMENTED)}async performActionUrl(e){console.warn("app.performActionUrl:"+Iz.NOT_IMPLEMENTED)}async performAuthentication(e){return console.warn("app.performAuthentication:"+Iz.NOT_IMPLEMENTED),{values:new Map}}removeConnectionStateListener(e){}removeLifecycleListener(e){}}class Dz{version;async getDisplayConfig(){return{controlsEnabled:!1,displayMode:uH.DisplayMode.EMBEDDED,statusBarEnabled:!1,titleBarEnabled:!1}}getDisplayMode(e){this.getDisplayConfig().then((t=>e(t.displayMode.toLowerCase())))}isControlsEnabled(e){this.getDisplayConfig().then((t=>e(t.controlsEnabled)))}isStatusBarEnabled(e){this.getDisplayConfig().then((t=>e(t.statusBarEnabled)))}isTitleBarEnabled(e){this.getDisplayConfig().then((t=>e(t.titleBarEnabled)))}}class Tz{version;async assignLocalPurchases(e){return Promise.resolve(void 0)}async getUserData(){return Promise.resolve({token:void 0})}async login(e){return Promise.resolve(void 0)}async logout(){return Promise.resolve(void 0)}}class Az{version;async createBookmark(e){return console.warn("bookmark.createBookmark:"+Iz.NOT_IMPLEMENTED),null}async deleteBookmark(e){console.warn("bookmark.deleteBookmark:"+Iz.NOT_IMPLEMENTED)}async getBookmarks(){return console.warn("bookmark.getBookmarks:"+Iz.NOT_IMPLEMENTED),{bookmarks:[]}}}class Oz{version;open(e){return Promise.resolve()}}const Nz="pageInfo { hasNextPage, endCursor }";function Mz(e){return e?"totalCount":""}const Pz=e=>`preview_${e}`,xz=tH`
|
3
|
+
fragment TaxonomySummaryFragment on Taxonomy {
|
4
|
+
id
|
5
|
+
internalId
|
6
|
+
name
|
7
|
+
type
|
8
|
+
parentId
|
9
|
+
seoMetadata @include(if: $includeContentSeoMetadata) {
|
10
|
+
key
|
11
|
+
value
|
12
|
+
}
|
13
|
+
properties {
|
14
|
+
key
|
15
|
+
value
|
16
|
+
}
|
17
|
+
}
|
18
|
+
`,Rz=tH`
|
19
|
+
fragment ContentFragment on Content {
|
20
|
+
__typename
|
21
|
+
id
|
22
|
+
version
|
23
|
+
name
|
24
|
+
description
|
25
|
+
index
|
26
|
+
alias
|
27
|
+
externalId
|
28
|
+
publicationDate
|
29
|
+
unpublishDate
|
30
|
+
lastModified
|
31
|
+
access
|
32
|
+
productId
|
33
|
+
purchaseData {
|
34
|
+
purchased
|
35
|
+
purchasedBy
|
36
|
+
}
|
37
|
+
publication {
|
38
|
+
id
|
39
|
+
}
|
40
|
+
properties (filter: $propertyFilter) {
|
41
|
+
key
|
42
|
+
value
|
43
|
+
}
|
44
|
+
seoMetadata @include(if: $includeContentSeoMetadata) {
|
45
|
+
key
|
46
|
+
value
|
47
|
+
}
|
48
|
+
thumbnails {
|
49
|
+
kind
|
50
|
+
url
|
51
|
+
properties {
|
52
|
+
key
|
53
|
+
value
|
54
|
+
}
|
55
|
+
}
|
56
|
+
categories
|
57
|
+
tags
|
58
|
+
}
|
59
|
+
`,kz=tH`
|
60
|
+
fragment ContentBlockFragment on ContentBlock {
|
61
|
+
id
|
62
|
+
type
|
63
|
+
parentId
|
64
|
+
children
|
65
|
+
sequence
|
66
|
+
html
|
67
|
+
level
|
68
|
+
properties {
|
69
|
+
key
|
70
|
+
value
|
71
|
+
type
|
72
|
+
}
|
73
|
+
}
|
74
|
+
`,Lz=tH`
|
75
|
+
fragment IssueFragment on Issue {
|
76
|
+
contentLength
|
77
|
+
numberOfPages
|
78
|
+
previewContentLength
|
79
|
+
resources @include(if: $includeResources) {
|
80
|
+
id
|
81
|
+
url
|
82
|
+
type
|
83
|
+
contentLength
|
84
|
+
properties {
|
85
|
+
key
|
86
|
+
value
|
87
|
+
type
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
`,Fz=tH`
|
92
|
+
fragment PostFragment on Post {
|
93
|
+
postType
|
94
|
+
bundleId
|
95
|
+
bundles {
|
96
|
+
id
|
97
|
+
bundleType
|
98
|
+
}
|
99
|
+
taxonomies {
|
100
|
+
...TaxonomySummaryFragment
|
101
|
+
}
|
102
|
+
authors {
|
103
|
+
name
|
104
|
+
email
|
105
|
+
}
|
106
|
+
bundleId
|
107
|
+
content @include(if: $includeBlocks) {
|
108
|
+
...ContentBlockFragment
|
109
|
+
}
|
110
|
+
|
111
|
+
previewContentBlocks @include(if: $includeBlocks) {
|
112
|
+
...ContentBlockFragment
|
113
|
+
}
|
114
|
+
|
115
|
+
contentHtml @include(if: $includeHtml)
|
116
|
+
previewContentHtml @include(if: $includeHtml)
|
117
|
+
resources @include(if: $includeResources) {
|
118
|
+
id
|
119
|
+
url
|
120
|
+
type
|
121
|
+
contentLength
|
122
|
+
properties {
|
123
|
+
key
|
124
|
+
value
|
125
|
+
type
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
${kz}
|
131
|
+
`,Uz=tH`
|
132
|
+
fragment BundleFragment on Bundle {
|
133
|
+
bundleType
|
134
|
+
taxonomies {
|
135
|
+
...TaxonomySummaryFragment
|
136
|
+
}
|
137
|
+
authors {
|
138
|
+
name
|
139
|
+
email
|
140
|
+
}
|
141
|
+
contents @include(if: $includeBundledContent) {
|
142
|
+
id
|
143
|
+
content {
|
144
|
+
...ContentFragment
|
145
|
+
...PostFragment
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
`,jz=tH`
|
150
|
+
fragment PostSearchResultFragment on PostSearchResult {
|
151
|
+
post {
|
152
|
+
...ContentFragment
|
153
|
+
...PostFragment
|
154
|
+
},
|
155
|
+
excerpt
|
156
|
+
}
|
157
|
+
`;var Vz=(e=>(e.APP_PERFORM_ACTION_URL="APP_PERFORM_ACTION_URL",e.APP_BROWSER_GET_DISPLAY_CONFIG="APP_BROWSER_GET_DISPLAY_CONFIG",e.ACCOUNT_ASSIGN_LOCAL_PURCHASES="ACCOUNT_ASSIGN_LOCAL_PURCHASES",e.ACCOUNT_GET_USER_DATA="ACCOUNT_GET_USER_DATA",e.ACCOUNT_LOGIN="ACCOUNT_LOGIN",e.ACCOUNT_LOGOUT="ACCOUNT_LOGOUT",e.BOOKMARK_CREATE="BOOKMARK_CREATE",e.BOOKMARK_DELETE="BOOKMARK_DELETE",e.BOOKMARK_GET="BOOKMARK_GET",e.CATALOG_GET_CATEGORIES="CATALOG_GET_CATEGORIES",e.CATALOG_GET_ISSUES="CATALOG_GET_ISSUES",e.CATALOG_GET_METADATA="CATALOG_GET_METADATA",e.CATALOG_GET_CONTENT="CATALOG_GET_CONTENT",e.CATALOG_GET_PRODUCTS="CATALOG_GET_PRODUCTS",e.CATALOG_GET_PUBLICATION_PRODUCTS="CATALOG_GET_PUBLICATION_PRODUCTS",e.CATALOG_GET_PUBLICATIONS="CATALOG_GET_PUBLICATIONS",e.CATALOG_GET_SUBSCRIPTIONS="CATALOG_GET_PUBLICATIONS",e.CATALOG_SEARCH="CATALOG_SEARCH",e.CATALOG_GET_ISSUE_STATES="CATALOG_GET_ISSUE_STATES",e.CATALOG_GET_MENUS="CATALOG_GET_MENUS",e.CATALOG_GET_TAXONOMIES="CATALOG_GET_TAXONOMIES",e.CATALOG_GET_COLLECTIONS="CATALOG_GET_COLLECTIONS",e.CATALOG_GET_APP_SETTINGS="CATALOG_GET_APP_SETTINGS",e.CATALOG_GET_REDIRECTS="CATALOG_GET_REDIRECTS",e.CATALOG_LOOKUP_PATH_SEGMENTS="CATALOG_LOOKUP_PATH_SEGMENTS",e.CLOSE_VIEW="CLOSE_VIEW",e.CONTENT_OPEN="CONTENT_OPEN",e.ENTITLEMENT_GET_USER_DATA="ENTITLEMENT_GET_USER_DATA",e.ENTITLEMENT_LOGIN="ENTITLEMENT_LOGIN",e.ENTITLEMENT_LOGIN_OAUTH="ENTITLEMENT_LOGIN_OAUTH",e.ENTITLEMENT_LOGOUT="ENTITLEMENT_LOGOUT",e.ENTITLEMENT_INVALIDATE_TOKENS="ENTITLEMENT_INVALIDATE_TOKENS",e.ENTITLEMENT_CHECK_OAUTH="ENTITLEMENT_CHECK_OAUTH",e.ENTITLEMENT_VERIFY_ACCESS_TOKEN="ENTITLEMENT_VERIFY_ACCESS_TOKEN",e.CONSENT_GET_CONSENT="CONSENT_GET_CONSENT",e.CONSENT_GRANT_CONSENT="CONSENT_GRANT_CONSENT",e.CONSENT_SHOW_PRIVACY_MANAGER="CONSENT_SHOW_PRIVACY_MANAGER",e.CONSENT_GET_SYSTEM_CONSENT="CONSENT_GET_SYSTEM_CONSENT",e.CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER="CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER",e.ENV_RESOURCE_URL="ENV_RESOURCE_URL",e.ENV_RESIZE="ENV_RESIZE",e.ENV_CSS_URLS="ENV_CSS_URLS",e.ENV_INIT="ENV_INIT",e.ENV_TITLE="ENV_TITLE",e.ENV_PRINT="ENV_PRINT",e.ENV_BACK="ENV_BACK",e.ENV_FORWARD="ENV_FORWARD",e.ENV_RELOAD="ENV_RELOAD",e.ENV_LOCATION="ENV_LOCATION",e.ISSUE_GET_BASE_URL="ISSUE_GET_BASE_URL",e.ISSUE_GET_PAGES="ISSUE_GET_PAGES",e.ISSUE_GET_TOC="ISSUE_GET_TOC",e.ISSUE_PAGER_GET_INFO="ISSUE_PAGER_GET_INFO",e.ISSUE_PAGER_NAVIGATE_TO="ISSUE_PAGER_NAVIGATE_TO",e.MEDIA_START_AUDIO="MEDIA_START_AUDIO",e.MEDIA_PAUSE_AUDIO="MEDIA_PAUSE_AUDIO",e.MEDIA_RESUME_AUDIO="MEDIA_RESUME_AUDIO",e.MEDIA_STOP_AUDIO="MEDIA_STOP_AUDIO",e.MEDIA_SEEK_TO="MEDIA_SEEK_TO",e.MEDIA_GET_PLAYBACK_RATE="MEDIA_GET_PLAYBACK_RATE",e.MEDIA_SET_PLAYBACK_RATE="MEDIA_SET_PLAYBACK_RATE",e.METADATA_GET_METADATA="METADATA_GET_METADATA",e.SHARE_SHARE="SHARE_SHARE",e.STATE_GET_STATE="STATE_GET_STATE",e.STATE_SET_STATE="STATE_SET_STATE",e.STORE_ADD_SUBSCRIPTION_CODES="STORE_ADD_SUBSCRIPTION_CODES",e.STORE_ADD_SUBSCRIPTION_CODE="STORE_ADD_SUBSCRIPTION_CODE",e.STORE_GET_PRICES="STORE_GET_PRICES",e.STORE_GET_SUBSCRIPTION_CODES="STORE_GET_SUBSCRIPTION_CODES",e.STORE_OPEN_CODE_REDEMPTION="STORE_OPEN_CODE_REDEMPTION",e.STORE_PURCHASE="STORE_PURCHASE",e.STORE_REMOVE_SUBSCRIPTION_CODE="STORE_REMOVE_SUBSCRIPTION_CODE",e.STORE_REMOVE_SUBSCRIPTION_CODES="STORE_REMOVE_SUBSCRIPTION_CODES",e.STORE_RESTORE_PURCHASES="STORE_RESTORE_PURCHASES",e.STORE_SUBSCRIBE="STORE_SUBSCRIBE",e.TRACKING_TRACK_ACTION="TRACKING_TRACK_ACTION",e.TRACKING_TRACK_VIEW="TRACKING_TRACK_VIEW",e.TRACKING_TRACK_PURCHASE="TRACKING_TRACK_PURCHASE",e.TRACKING_SET_USER_ATTRIBUTE="TRACKING_SET_USER_ATTRIBUTE",e))(Vz||{}),Bz=(e=>(e.ANDROID="ANDROID",e.IOS="IOS",e.WEB="WEB",e))(Bz||{}),$z=(e=>(e.CONNECTIONS_STATE="APP_CONNECTION_STATE",e.LIFECYCLE="APP_LIFECYCLE",e.CATALOG_INVALIDATION="CATALOG_INVALIDATION",e.MEDIA_STATUS="MEDIA_STATUS",e.MEDIA_PROGRESS="MEDIA_PROGRESS",e.ISSUE_PAGER_STATE="ISSUE_PAGER_STATE",e))($z||{});class Hz{constructor(e,t){this.major=e,this.minor=t}toString(){return`${this.major}.${this.minor}`}}var Gz=(e=>(e.INVALIDATION="CATALOG:INVALIDATION",e.MEDIA_STATUS="MEDIA:STATUS",e.MEDIA_PROGRESS="MEDIA:PROGRESS",e.ISSUE_PAGER_STATE="ISSUEPAGER:STATE",e))(Gz||{});const qz={sendEvent:(e,t)=>{window.dispatchEvent(new CustomEvent(e,{detail:t}))},addListener(e,t){window.addEventListener(e,t)},removeListener(e,t){window.removeEventListener(e,t)}};class zz{constructor(e,t,n,r,i,o){this.getConfig=e,this.thisPurple=t,this.client=n,this.appInfo=r,this.deviceInfo=i,this.authorization=o}get config(){return this.getConfig()}version=new Hz(1,12);getDataOrThrow(e){if(e.data)return e.data;throw{message:e.errors[0].message,code:"UNKNOWN"}}async queryWithAuthRetry(e,t){let n=await this.client.query({query:e,variables:{...t,appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),authorization:this.authorization()}});if(n.errors?.some((e=>"INVALID_ENTITLEMENT_TOKEN"===e.extensions.code))){if(console.warn("err: INVALID_ENTITLEMENT_TOKEN, refreshing token and retrying again"),!this.getConfig().entitlementRefreshToken)return this.logoutAndReturnResponse(n,"Error during refresh: no refreshToken");try{await this.thisPurple.entitlement.refreshAccessToken()}catch(e){return this.logoutAndReturnResponse(n,"Error during refresh: logging user out",e)}console.debug("refreshed accessToken, retrying query again"),n=await this.client.query({query:e,variables:{...t,appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),authorization:this.authorization()}})}return this.getDataOrThrow(n)}logoutAndReturnResponse(e,t,n){return console.error(t,n),this.thisPurple.entitlement.clearLocalData(),this.getDataOrThrow(e)}toPage(e,t){return{totalCount:e.totalCount,cursor:e.pageInfo.endCursor,hasNextPage:e.pageInfo.hasNextPage,nodes:e.edges.map(t).filter((e=>!!e))}}getPublications=async e=>{e=this.convertPublicationsParams(e);const t=e?.contentsParams,n=t?.fetchOptions,r=(await this.queryWithAuthRetry(function(e,t){return tH`
|
158
|
+
query CatalogPublicationQuery(
|
159
|
+
$appInfo: AppInfo!,
|
160
|
+
$deviceInfo: DeviceInfo!,
|
161
|
+
$authorization: Authorization!,
|
162
|
+
$filter: PublicationFilter,
|
163
|
+
$sort: [PublicationComparator!],
|
164
|
+
$first: Int,
|
165
|
+
$after: String,
|
166
|
+
$includeContents: Boolean!,
|
167
|
+
$contentFilter: ContentFilter,
|
168
|
+
$contentSort: [ContentComparator!],
|
169
|
+
$contentFirst: Int,
|
170
|
+
$contentAfter: String,
|
171
|
+
$includeBundledContent: Boolean!,
|
172
|
+
$includeResources: Boolean!,
|
173
|
+
$includeBlocks: Boolean!,
|
174
|
+
$includeHtml: Boolean!,
|
175
|
+
$includeContentSeoMetadata: Boolean!,
|
176
|
+
$propertyFilter: PropertyFilter
|
177
|
+
) {
|
178
|
+
catalog(
|
179
|
+
appInfo: $appInfo,
|
180
|
+
deviceInfo: $deviceInfo,
|
181
|
+
authorization: $authorization
|
182
|
+
) {
|
183
|
+
publicationsConnection(
|
184
|
+
filter: $filter,
|
185
|
+
sort: $sort,
|
186
|
+
first: $first,
|
187
|
+
after: $after
|
188
|
+
) {
|
189
|
+
${Nz}
|
190
|
+
${Mz(e?.totalCount)}
|
191
|
+
edges {
|
192
|
+
publication: node {
|
193
|
+
...PublicationFragment
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
${function(e){return tH`
|
201
|
+
fragment PublicationFragment on Publication {
|
202
|
+
id
|
203
|
+
name
|
204
|
+
description
|
205
|
+
type
|
206
|
+
language
|
207
|
+
index
|
208
|
+
currentContentId
|
209
|
+
contentsConnection(
|
210
|
+
filter: $contentFilter,
|
211
|
+
sort: $contentSort,
|
212
|
+
first: $contentFirst,
|
213
|
+
after: $contentAfter
|
214
|
+
) @include(if: $includeContents) {
|
215
|
+
${Nz},
|
216
|
+
${Mz(e?.totalCount)},
|
217
|
+
edges {
|
218
|
+
node {
|
219
|
+
...ContentFragment
|
220
|
+
...IssueFragment
|
221
|
+
...PostFragment
|
222
|
+
...BundleFragment
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
properties {
|
227
|
+
key
|
228
|
+
value
|
229
|
+
}
|
230
|
+
thumbnails {
|
231
|
+
kind
|
232
|
+
url
|
233
|
+
properties {
|
234
|
+
key
|
235
|
+
value
|
236
|
+
}
|
237
|
+
},
|
238
|
+
tocSettings {
|
239
|
+
pageLabelsEnabled
|
240
|
+
style
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
${Rz}
|
245
|
+
${Lz}
|
246
|
+
${Fz}
|
247
|
+
${Uz}
|
248
|
+
${xz}
|
249
|
+
`}(t)}
|
250
|
+
`}(e?.fetchOptions,n),{filter:e?.publicationFilter,sort:e?.sort,first:e?.first,after:e?.after,includeContents:!!e?.includeContents,contentFilter:t?.contentFilter,contentSort:t?.sort,contentFirst:t?.first,contentAfter:t?.after,includeBundledContent:!!n?.includeBundledContent,includeResources:!!n?.includeResources,includeBlocks:!!n?.includeBlocks,includeHtml:!!n?.includeHtml,includeContentSeoMetadata:!!n?.seoMetadata,propertyFilter:n?.properties})).catalog;return this.toPage(r.publicationsConnection,(e=>this.mapPublication(e.publication)))};mapProperties(e){return e.reduce(((e,t)=>({...e,[t.key]:t.value})),{})}mapSeoMetadata(e){return e?.reduce(((e,t)=>({...e,[t.key]:t.value})),{})}mapThumbnails(e){return e.reduce(((e,t)=>({...e,[t.kind]:t.url})),{})}mapThumbnailsExtended(e){return e.reduce(((e,t)=>(e[t.kind]={kind:t.kind,url:t.url,properties:this.mapProperties(t.properties)},e)),{})}mapPublication(e){return{id:e.id,currentContentId:e.currentContentId,currentIssueId:e.currentContentId,description:e.description,freeConsumable:e.freeConsumable,index:e.index,contents:e.contentsConnection?this.toPage(e.contentsConnection,(e=>this.mapContent(e.node))):null,language:e.language,name:e.name,printSubscriptionEnabled:e.printSubscriptionEnabled,properties:this.mapProperties(e.properties),thumbnails:this.mapThumbnails(e.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails),type:e.type,tocSettings:e.tocSettings}}mapIssueToCatalogPreviewIssue(e){return{id:Pz(e.id),contentLength:e.contentLength,numberOfPages:e.numberOfPages,state:this.getIssueState(e.id),version:e.version}}getIssueState(e){return{installState:uH.CatalogIssueInstallState.NOT_INSTALLED,downloading:!1,issueId:e,progress:0,updateAvailable:!1}}mapIssue(e){const t=this.mapContent(e);if(t?.contentType!==uH.CatalogContentType.ISSUE)throw new Error(`mapIssue received contentType: ${t.contentType}`);return t}mapIssueSpecificFields(e){return{comingSoon:!1,contentLength:e.contentLength,numberOfPages:e.numberOfPages,previewIssue:e.previewContentLength>0?this.mapIssueToCatalogPreviewIssue(e):void 0,state:this.getIssueState(e.id),purchasable:e.access===uH.Access.PURCHASABLE,type:uH.IssueType.ISSUE,externalIssueId:e.externalId,purchased:e.purchaseData.purchased,purchasedBy:e.purchaseData.purchased,categories:e.categories,tags:e.tags,resources:e.resources?.map((e=>this.mapResource(e)))}}mapPost(e){const t=this.mapContent(e);if(t?.contentType!==uH.CatalogContentType.POST)throw new Error("mapPost received contentType: "+t.contentType);return t}mapPostSpecificFields(e){return{postType:e.postType,content:e.content?.map((e=>this.mapPostBlock(e))),contentHtml:e.contentHtml,authors:e.authors?.map((e=>this.mapAuthor(e))),resources:e.resources?.map((e=>this.mapResource(e))),previewResources:e.previewResources?.map((e=>this.mapResource(e))),taxonomies:e.taxonomies.map((e=>this.mapTaxonomySummary(e))),bundleId:e.bundleId,bundles:e.bundles.map((e=>this.mapBundleSummary(e)))}}mapBundle(e){const t=this.mapContent(e);if(t?.contentType!==uH.CatalogContentType.BUNDLE)throw new Error("mapBundle received contentType: "+t.contentType);return t}mapPostBlock(e){return{id:e.id,html:e.html,children:e.children,level:e.level,properties:this.mapProperties(e.properties),sequence:e.sequence,type:e.type,parentId:e.parentId}}mapBundleSummary(e){return{id:e.id,bundleType:e.bundleType}}mapAuthor(e){return{name:e.name,email:e.email}}mapBundleSpecificFields(e){return{bundleType:e.bundleType,taxonomies:e.taxonomies.map((e=>this.mapTaxonomySummary(e))),contents:e.contents?.map((e=>this.mapBundleContent(e))),authors:e.authors?.map((e=>this.mapAuthor(e)))}}mapBundleContent(e){return{id:e.id,post:this.mapPost(e.content)}}mapContent(e){const t=e.__typename.toUpperCase(),n={contentType:t,id:e.id,publicationId:e.publication.id,version:e.version,name:e.name,description:e.description??"",alias:e.alias,externalId:e.externalId,publicationDate:Wz(e.publicationDate),lastModified:Wz(e.lastModified),unpublishDate:Wz(e.unpublishDate),index:e.index,productId:e.productId,access:e.access,purchaseData:e.purchaseData,properties:this.mapProperties(e.properties),seoMetadata:this.mapSeoMetadata(e.seoMetadata),thumbnails:this.mapThumbnails(e.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails)};switch(t){case uH.CatalogContentType.ISSUE:return{...n,...this.mapIssueSpecificFields(e)};case uH.CatalogContentType.BUNDLE:return{...n,...this.mapBundleSpecificFields(e)};case uH.CatalogContentType.POST:return{...n,...this.mapPostSpecificFields(e)};default:return}}mapResource(e){return{id:e.id,url:e.url,properties:this.mapProperties(e.properties),contentLength:e.contentLength,type:e.type}}mapPathSegmentLookupResult(e){return{identifier:e.identifier,matches:e.matches.map((e=>this.mapPathSegmentMatch(e))).filter((e=>!!e))}}mapPathSegmentMatch(e){switch(e.__typename){case"ContentMatch":return{type:"CONTENT",contentType:e.contentType,id:e.id,postType:e.postType};case"TaxonomyMatch":return{type:"TAXONOMY",id:e.id,identifier:e.identifier,name:e.name,taxonomyType:e.taxonomyType,parentIdentifier:e.parentIdentifier};case"CollectionMatch":return{type:"COLLECTION",id:e.id,name:e.name};case"RedirectMatch":return{type:"REDIRECT",id:e.id,identifier:e.identifier,redirectType:e.redirectType,statusCode:e.statusCode,target:e.target};default:return}}mapTaxonomy(e){return{id:e.id,internalId:e.internalId,name:e.name,description:e.description,seoMetadata:this.mapSeoMetadata(e.seoMetadata),properties:this.mapProperties(e.properties),thumbnails:this.mapThumbnails(e.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails),type:e.type,parentId:e.parentId,contents:e.contentsConnection?this.toPage(e.contentsConnection,(e=>this.mapContent(e.node))):null}}mapTaxonomySummary(e){return{id:e.id,internalId:e.internalId,name:e.name,seoMetadata:this.mapSeoMetadata(e.seoMetadata),properties:this.mapProperties(e.properties),type:e.type,parentId:e.parentId}}mapCollection(e){return{id:e.id,name:e.name,properties:e.properties?this.mapProperties(e.properties):null,elements:e.elementsConnection?this.toPage(e.elementsConnection,(e=>this.mapCollectionElement(e.node))):void 0}}mapCollectionElement(e){if("ContentElement"===e.__typename)return{id:e.id,sortIndex:e.sortIndex,type:"CONTENT",content:this.mapContent(e.content)}}mapIssueSearchResult(e){return{contentType:uH.CatalogContentType.ISSUE,issue:this.mapIssue(e.issue),pageHits:e.pagesConnection.edges.map((({node:e})=>({excerpt:e.excerpt,pageIndex:e.pageIndex,pageNumber:e.pageNumber,pageLabel:e.pageLabel,pageTitle:e.pageTitle,elementAlias:e.elementAlias})))}}mapPostSearchResult(e){return{contentType:uH.CatalogContentType.POST,excerpt:e.excerpt,post:this.mapPost(e.post)}}mapBundleSearchResult(e){return{contentType:uH.CatalogContentType.BUNDLE,bundle:this.mapBundle(e.bundle),posts:e.posts.map((e=>this.mapPostSearchResult(e)))}}mapSearchResult(e){switch(e.__typename){case"IssueSearchResult":return this.mapIssueSearchResult(e);case"PostSearchResult":return this.mapPostSearchResult(e);case"BundleSearchResult":return this.mapBundleSearchResult(e);default:return}}mapRedirect(e){return{id:e.id,identifier:e.identifier,statusCode:e.statusCode,target:e.target,type:e.type}}mapMenu(e){return{id:e.id,name:e.name,properties:this.mapProperties(e.properties),items:e.items?.map((e=>this.mapMenuItem(e)))}}mapMenuItem(e){return{id:e.id,name:e.name,properties:this.mapProperties(e.properties),title:e.title,description:e.description,target:e.target,cssClasses:e.cssClasses,sortIndex:e.sortIndex,url:e.url,parentId:e.parentId,thumbnailsExtended:this.mapThumbnailsExtended(e.thumbnails)}}getIssues=async e=>{const t=this.convertIssueParams(e);return this.getContents(t)};async getLocalIssues(){return Promise.resolve({issues:[],previewIssues:[]})}getContents=async e=>{const t=e?.fetchOptions,n=(await this.queryWithAuthRetry(function(e){return tH`
|
251
|
+
query CatalogContentsQuery(
|
252
|
+
$appInfo: AppInfo!,
|
253
|
+
$deviceInfo: DeviceInfo!,
|
254
|
+
$authorization: Authorization!,
|
255
|
+
$filter: ContentFilter,
|
256
|
+
$sort: [ContentComparator!],
|
257
|
+
$first: Int,
|
258
|
+
$after: String,
|
259
|
+
$includeBundledContent: Boolean!,
|
260
|
+
$includeResources: Boolean!,
|
261
|
+
$includeBlocks: Boolean!,
|
262
|
+
$includeHtml: Boolean!,
|
263
|
+
$includeContentSeoMetadata: Boolean!,
|
264
|
+
$propertyFilter: PropertyFilter
|
265
|
+
) {
|
266
|
+
catalog(
|
267
|
+
appInfo: $appInfo,
|
268
|
+
deviceInfo: $deviceInfo,
|
269
|
+
authorization: $authorization
|
270
|
+
) {
|
271
|
+
contentsConnection(
|
272
|
+
filter: $filter,
|
273
|
+
sort: $sort,
|
274
|
+
first: $first,
|
275
|
+
after: $after
|
276
|
+
) {
|
277
|
+
${Nz}
|
278
|
+
${Mz(e?.totalCount)}
|
279
|
+
edges {
|
280
|
+
content: node {
|
281
|
+
__typename
|
282
|
+
...ContentFragment
|
283
|
+
...PostFragment
|
284
|
+
...IssueFragment
|
285
|
+
...BundleFragment
|
286
|
+
}
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
${Rz}
|
292
|
+
${Fz}
|
293
|
+
${Uz}
|
294
|
+
${Lz}
|
295
|
+
${xz}
|
296
|
+
`}(t),{filter:e?.contentFilter,sort:e?.sort,first:e?.first,after:e?.after,includeBlocks:!!t?.includeBlocks,includeHtml:!!t?.includeHtml,includeResources:!!t?.includeResources,includeBundledContent:!!t?.includeBundledContent,includeContentSeoMetadata:!!t?.seoMetadata,propertyFilter:t?.properties})).catalog;return this.toPage(n.contentsConnection,(e=>this.mapContent(e.content)))};getMenus=async e=>{const t=(await this.queryWithAuthRetry(function(e){return tH`
|
297
|
+
query MenuQuery(
|
298
|
+
$appInfo: AppInfo!,
|
299
|
+
$deviceInfo: DeviceInfo!,
|
300
|
+
$authorization: Authorization!,
|
301
|
+
$filter: MenuFilter,
|
302
|
+
$first: Int,
|
303
|
+
$after: String,
|
304
|
+
$includeItems: Boolean!
|
305
|
+
) {
|
306
|
+
catalog(
|
307
|
+
appInfo: $appInfo
|
308
|
+
deviceInfo: $deviceInfo
|
309
|
+
authorization: $authorization
|
310
|
+
) {
|
311
|
+
menusConnection(filter: $filter, first: $first, after: $after) {
|
312
|
+
edges {
|
313
|
+
node {
|
314
|
+
id
|
315
|
+
name
|
316
|
+
properties {
|
317
|
+
key
|
318
|
+
value
|
319
|
+
type
|
320
|
+
}
|
321
|
+
items @include(if: $includeItems) {
|
322
|
+
id
|
323
|
+
sortIndex
|
324
|
+
parentId
|
325
|
+
url
|
326
|
+
name
|
327
|
+
title
|
328
|
+
description
|
329
|
+
target
|
330
|
+
cssClasses
|
331
|
+
properties {
|
332
|
+
key
|
333
|
+
value
|
334
|
+
type
|
335
|
+
}
|
336
|
+
thumbnails {
|
337
|
+
kind
|
338
|
+
url
|
339
|
+
properties {
|
340
|
+
key
|
341
|
+
value
|
342
|
+
}
|
343
|
+
}
|
344
|
+
}
|
345
|
+
}
|
346
|
+
},
|
347
|
+
${Nz}
|
348
|
+
${Mz(e?.totalCount)}
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
`}(e?.fetchOptions),{filter:e?.menuFilter,first:e?.first,after:e?.after,includeItems:!!e?.includeItems})).catalog;return this.toPage(t.menusConnection,(e=>this.mapMenu(e.node)))};getCollections=async e=>{const t=e?.elementsParams,n=e?.fetchOptions,r=t?.fetchOptions,i=(await this.queryWithAuthRetry(function(e,t){return tH`
|
353
|
+
query CatalogCollections(
|
354
|
+
$appInfo: AppInfo!,
|
355
|
+
$deviceInfo: DeviceInfo!,
|
356
|
+
$authorization: Authorization!,
|
357
|
+
$filter: CollectionFilter,
|
358
|
+
$sort: [CollectionComparator!],
|
359
|
+
$first: Int,
|
360
|
+
$after: String,
|
361
|
+
$includeElements: Boolean!,
|
362
|
+
$elementsFirst: Int,
|
363
|
+
$elementsAfter: String,
|
364
|
+
$includeBundledContent: Boolean!,
|
365
|
+
$includeResources: Boolean!,
|
366
|
+
$includeBlocks: Boolean!,
|
367
|
+
$includeHtml: Boolean!,
|
368
|
+
$includeContentSeoMetadata: Boolean!,
|
369
|
+
$propertyFilter: PropertyFilter
|
370
|
+
) {
|
371
|
+
catalog(appInfo: $appInfo, deviceInfo: $deviceInfo, authorization: $authorization) {
|
372
|
+
collectionsConnection(
|
373
|
+
filter: $filter
|
374
|
+
sort: $sort
|
375
|
+
first: $first
|
376
|
+
after: $after
|
377
|
+
) {
|
378
|
+
${Nz}
|
379
|
+
${Mz(e?.totalCount)}
|
380
|
+
edges {
|
381
|
+
node {
|
382
|
+
id
|
383
|
+
name
|
384
|
+
properties {
|
385
|
+
key
|
386
|
+
value
|
387
|
+
}
|
388
|
+
elementsConnection(
|
389
|
+
first: $elementsFirst,
|
390
|
+
after: $elementsAfter
|
391
|
+
) @include(if: $includeElements) {
|
392
|
+
${Nz}
|
393
|
+
${Mz(t?.totalCount)}
|
394
|
+
edges {
|
395
|
+
node {
|
396
|
+
__typename
|
397
|
+
... on ContentElement {
|
398
|
+
id
|
399
|
+
sortIndex
|
400
|
+
content {
|
401
|
+
...ContentFragment
|
402
|
+
...IssueFragment
|
403
|
+
...PostFragment
|
404
|
+
...BundleFragment
|
405
|
+
}
|
406
|
+
}
|
407
|
+
}
|
408
|
+
}
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
}
|
413
|
+
}
|
414
|
+
}
|
415
|
+
${Rz}
|
416
|
+
${Lz}
|
417
|
+
${Fz}
|
418
|
+
${Uz}
|
419
|
+
${xz}
|
420
|
+
`}(n,r),{filter:e?.collectionFilter,sort:e?.sort,first:e?.first,after:e?.after,includeElements:!!e?.includeElements,elementsFirst:t?.first,elementsAfter:t?.after,includeBlocks:!!r?.includeBlocks,includeHtml:!!r?.includeHtml,includeResources:!!r?.includeResources,includeBundledContent:!!r?.includeBundledContent,includeContentSeoMetadata:!!r?.seoMetadata,propertyFilter:r?.properties})).catalog;return this.toPage(i.collectionsConnection,(e=>this.mapCollection(e.node)))};getCategories=async e=>{const t=this.convertCategoriesParams(e),n=await this.getTaxonomies(t);return this.convertToCategoryPage(n)};getTaxonomies=async e=>{const t=e?.contentsParams,n=t?.fetchOptions,r=(await this.queryWithAuthRetry(function(e,t){return tH`
|
421
|
+
query CatalogTaxonomiesQuery(
|
422
|
+
$appInfo: AppInfo!,
|
423
|
+
$deviceInfo: DeviceInfo!,
|
424
|
+
$authorization: Authorization!,
|
425
|
+
$filter: TaxonomyFilter,
|
426
|
+
$sort: [TaxonomyComparator!],
|
427
|
+
$first: Int,
|
428
|
+
$after: String,
|
429
|
+
$includeTaxonomySeoMetadata: Boolean!,
|
430
|
+
$includeContents: Boolean!,
|
431
|
+
$contentFilter: ContentFilter,
|
432
|
+
$contentSort: [ContentComparator!],
|
433
|
+
$contentFirst: Int,
|
434
|
+
$contentAfter: String,
|
435
|
+
$includeBundledContent: Boolean!,
|
436
|
+
$includeResources: Boolean!,
|
437
|
+
$includeBlocks: Boolean!,
|
438
|
+
$includeHtml: Boolean!,
|
439
|
+
$includeContentSeoMetadata: Boolean!,
|
440
|
+
$propertyFilter: PropertyFilter
|
441
|
+
) {
|
442
|
+
catalog(
|
443
|
+
appInfo: $appInfo,
|
444
|
+
deviceInfo: $deviceInfo,
|
445
|
+
authorization: $authorization
|
446
|
+
) {
|
447
|
+
taxonomiesConnection(
|
448
|
+
first: $first,
|
449
|
+
after: $after,
|
450
|
+
sort: $sort,
|
451
|
+
filter: $filter
|
452
|
+
) {
|
453
|
+
${Nz}
|
454
|
+
${Mz(e?.totalCount)}
|
455
|
+
edges {
|
456
|
+
node {
|
457
|
+
__typename
|
458
|
+
...TaxonomyFragment
|
459
|
+
}
|
460
|
+
}
|
461
|
+
}
|
462
|
+
}
|
463
|
+
}
|
464
|
+
${function(e){return tH`
|
465
|
+
fragment TaxonomyFragment on Taxonomy {
|
466
|
+
id
|
467
|
+
internalId
|
468
|
+
name
|
469
|
+
description
|
470
|
+
type
|
471
|
+
parentId
|
472
|
+
seoMetadata @include(if: $includeTaxonomySeoMetadata) {
|
473
|
+
key
|
474
|
+
value
|
475
|
+
}
|
476
|
+
properties {
|
477
|
+
key
|
478
|
+
value
|
479
|
+
}
|
480
|
+
thumbnails {
|
481
|
+
kind
|
482
|
+
url
|
483
|
+
properties {
|
484
|
+
key
|
485
|
+
value
|
486
|
+
}
|
487
|
+
}
|
488
|
+
contentsConnection(
|
489
|
+
filter: $contentFilter,
|
490
|
+
sort: $contentSort,
|
491
|
+
first: $contentFirst,
|
492
|
+
after: $contentAfter
|
493
|
+
) @include(if: $includeContents) {
|
494
|
+
${Nz},
|
495
|
+
${Mz(e?.totalCount)},
|
496
|
+
edges {
|
497
|
+
node {
|
498
|
+
...ContentFragment
|
499
|
+
...IssueFragment
|
500
|
+
...PostFragment
|
501
|
+
...BundleFragment
|
502
|
+
}
|
503
|
+
}
|
504
|
+
}
|
505
|
+
}
|
506
|
+
|
507
|
+
${Rz}
|
508
|
+
${Lz}
|
509
|
+
${Fz}
|
510
|
+
${Uz}
|
511
|
+
${xz}
|
512
|
+
`}(t)}
|
513
|
+
`}(e?.fetchOptions,n),{filter:e?.taxonomyFilter,sort:e?.sort,first:e?.first,after:e?.after,includeTaxonomySeoMetadata:!!e?.fetchOptions?.seoMetadata,includeContents:!!e?.includeContents,contentFilter:t?.contentFilter,contentSort:t?.sort,contentFirst:t?.first,contentAfter:t?.after,includeBundledContent:!!n?.includeBundledContent,includeResources:!!n?.includeResources,includeBlocks:!!n?.includeBlocks,includeHtml:!!n?.includeHtml,includeContentSeoMetadata:!!n?.seoMetadata,propertyFilter:n?.properties})).catalog;return this.toPage(r.taxonomiesConnection,(e=>this.mapTaxonomy(e.node)))};getAppSettings=async e=>{const t=(await this.queryWithAuthRetry(function(e){return tH`
|
514
|
+
query AppSettingsQuery(
|
515
|
+
$appInfo: AppInfo!
|
516
|
+
$deviceInfo: DeviceInfo!
|
517
|
+
$authorization: Authorization!
|
518
|
+
$filter: AppSettingFilter
|
519
|
+
$first: Int
|
520
|
+
$after: String
|
521
|
+
) {
|
522
|
+
catalog(
|
523
|
+
appInfo: $appInfo
|
524
|
+
deviceInfo: $deviceInfo
|
525
|
+
authorization: $authorization
|
526
|
+
) {
|
527
|
+
appSettingsConnection(filter: $filter, first: $first, after: $after) {
|
528
|
+
edges {
|
529
|
+
node {
|
530
|
+
key
|
531
|
+
value
|
532
|
+
}
|
533
|
+
},
|
534
|
+
${Nz}
|
535
|
+
${Mz(e?.totalCount)}
|
536
|
+
}
|
537
|
+
}
|
538
|
+
}
|
539
|
+
`}(e?.fetchOptions),{filter:e?.appSettingFilter,first:e?.first,after:e?.after})).catalog;return this.toPage(t.appSettingsConnection,(e=>e.node))};getRedirects=async e=>{const t=(await this.queryWithAuthRetry(function(e){return tH`
|
540
|
+
query RedirectsQuery(
|
541
|
+
$appInfo: AppInfo!
|
542
|
+
$deviceInfo: DeviceInfo!
|
543
|
+
$authorization: Authorization!
|
544
|
+
$filter: RedirectFilter,
|
545
|
+
$first: Int,
|
546
|
+
$after: String
|
547
|
+
) {
|
548
|
+
catalog(
|
549
|
+
appInfo: $appInfo
|
550
|
+
deviceInfo: $deviceInfo
|
551
|
+
authorization: $authorization
|
552
|
+
) {
|
553
|
+
redirectsConnection(filter: $filter, first: $first, after: $after) {
|
554
|
+
edges {
|
555
|
+
node {
|
556
|
+
id
|
557
|
+
identifier
|
558
|
+
type
|
559
|
+
target
|
560
|
+
statusCode
|
561
|
+
}
|
562
|
+
},
|
563
|
+
${Nz}
|
564
|
+
${Mz(e?.totalCount)}
|
565
|
+
}
|
566
|
+
}
|
567
|
+
}
|
568
|
+
`}(e?.fetchOptions),{filter:e?.redirectFilter,first:e?.first,after:e?.after})).catalog;return this.toPage(t.redirectsConnection,(e=>this.mapRedirect(e.node)))};lookupPathSegments=async e=>(await this.queryWithAuthRetry(tH`
|
569
|
+
query LookupPathSegmentsQuery(
|
570
|
+
$appInfo: AppInfo!
|
571
|
+
$deviceInfo: DeviceInfo!
|
572
|
+
$authorization: Authorization!
|
573
|
+
$pathSegments: [String!]!
|
574
|
+
) {
|
575
|
+
catalog(
|
576
|
+
appInfo: $appInfo
|
577
|
+
deviceInfo: $deviceInfo
|
578
|
+
authorization: $authorization
|
579
|
+
) {
|
580
|
+
lookupPathSegments(pathSegments: $pathSegments) {
|
581
|
+
identifier
|
582
|
+
matches {
|
583
|
+
__typename
|
584
|
+
... on ContentMatch {
|
585
|
+
id
|
586
|
+
contentType
|
587
|
+
postType
|
588
|
+
}
|
589
|
+
... on TaxonomyMatch {
|
590
|
+
id
|
591
|
+
identifier
|
592
|
+
parentIdentifier
|
593
|
+
name
|
594
|
+
taxonomyType
|
595
|
+
}
|
596
|
+
... on CollectionMatch {
|
597
|
+
id
|
598
|
+
name
|
599
|
+
}
|
600
|
+
... on RedirectMatch {
|
601
|
+
id
|
602
|
+
identifier
|
603
|
+
redirectType
|
604
|
+
target
|
605
|
+
statusCode
|
606
|
+
}
|
607
|
+
}
|
608
|
+
}
|
609
|
+
}
|
610
|
+
}
|
611
|
+
`,{pathSegments:e.pathSegments})).catalog.lookupPathSegments.map((e=>this.mapPathSegmentLookupResult(e)));search=async e=>{const t=!!e.phrase||!!e.issueFilter;let n=e.contentFilter;if(t){const t={contentType:{value:uH.CatalogContentType.ISSUE}};n=e.issueFilter?{AND:[t,e.issueFilter]}:t}let r=e.sort;if(!r&&e.options?.sortBy)switch(e.options?.sortBy){case uH.SearchResultSortCriteria.RELEVANCE:r=[{relevance:{direction:uH.SortDirection.DESC}}];break;case uH.SearchResultSortCriteria.PUB_DATE_DESC:r=[{publicationDate:{direction:uH.SortDirection.DESC}}]}let i=e.options?.pageSort;!i&&e.options?.sortPages&&(i=[{index:{direction:uH.SortDirection.ASC}}]);const o=e.fetchOptions,s=(await this.queryWithAuthRetry(function(e){return tH`
|
612
|
+
query CatalogSearchQuery(
|
613
|
+
$appInfo: AppInfo!,
|
614
|
+
$deviceInfo: DeviceInfo!,
|
615
|
+
$authorization: Authorization!,
|
616
|
+
$phrase: String!,
|
617
|
+
$fields: [SearchField!],
|
618
|
+
$fuzzy: Boolean,
|
619
|
+
$pageSort: [IssuePageComparator!]
|
620
|
+
$sort: [ContentSearchResultComparator!]
|
621
|
+
$findAll: Boolean,
|
622
|
+
$contentFilter: ContentFilter,
|
623
|
+
$first: Int,
|
624
|
+
$after: String,
|
625
|
+
$includeHtml: Boolean!,
|
626
|
+
$includeBlocks: Boolean!,
|
627
|
+
$includeResources: Boolean!,
|
628
|
+
$includeBundledContent: Boolean!,
|
629
|
+
$includeContentSeoMetadata: Boolean!,
|
630
|
+
$propertyFilter: PropertyFilter
|
631
|
+
) {
|
632
|
+
catalog(
|
633
|
+
appInfo: $appInfo,
|
634
|
+
deviceInfo: $deviceInfo,
|
635
|
+
authorization: $authorization
|
636
|
+
) {
|
637
|
+
contentSearchConnection(
|
638
|
+
searchPhrase: $phrase,
|
639
|
+
searchFields: $fields,
|
640
|
+
contentFilter: $contentFilter,
|
641
|
+
fuzzyMatching: $fuzzy,
|
642
|
+
sort: $sort,
|
643
|
+
findAllWords: $findAll,
|
644
|
+
first: $first,
|
645
|
+
after: $after
|
646
|
+
) {
|
647
|
+
${Nz}
|
648
|
+
${Mz(e?.totalCount)}
|
649
|
+
edges {
|
650
|
+
searchResult: node {
|
651
|
+
__typename
|
652
|
+
... on IssueSearchResult {
|
653
|
+
issue {
|
654
|
+
...ContentFragment
|
655
|
+
...IssueFragment
|
656
|
+
}
|
657
|
+
pagesConnection(
|
658
|
+
sort: $pageSort
|
659
|
+
) {
|
660
|
+
edges {
|
661
|
+
node {
|
662
|
+
excerpt
|
663
|
+
pageIndex
|
664
|
+
pageNumber
|
665
|
+
pageLabel
|
666
|
+
pageTitle
|
667
|
+
elementAlias
|
668
|
+
}
|
669
|
+
}
|
670
|
+
}
|
671
|
+
}
|
672
|
+
...PostSearchResultFragment
|
673
|
+
... on BundleSearchResult {
|
674
|
+
bundle {
|
675
|
+
...ContentFragment
|
676
|
+
...BundleFragment
|
677
|
+
}
|
678
|
+
posts {
|
679
|
+
...PostSearchResultFragment
|
680
|
+
}
|
681
|
+
}
|
682
|
+
}
|
683
|
+
}
|
684
|
+
}
|
685
|
+
}
|
686
|
+
}
|
687
|
+
${jz}
|
688
|
+
${Lz}
|
689
|
+
${Rz}
|
690
|
+
${Uz}
|
691
|
+
${Fz}
|
692
|
+
${xz}
|
693
|
+
`}(o),{phrase:e.searchPhrase??e.phrase,fields:e.searchFields,fuzzy:e.options?.fuzzy,sort:r,findAll:e.options?.findAll,contentFilter:n,pageSort:i,first:e.first,after:e.after,includeHtml:!!o?.includeHtml,includeBlocks:!!o?.includeBlocks,includeBundledContent:!!o?.includeBundledContent,includeResources:!!o?.includeResources,includeContentSeoMetadata:!!o?.seoMetadata,propertyFilter:o?.properties})).catalog;return this.toPage(s.contentSearchConnection,(e=>this.mapSearchResult(e.searchResult)))};async getIssueStates(e){return Promise.resolve(e.issues.reduce(((e,t)=>({[t.issueId]:{issueId:t.issueId,installState:uH.CatalogIssueInstallState.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}})),{}))}async startDownload(e){return console.warn("catalog.startDownload:"+Iz.NOT_IMPLEMENTED),{}}async pauseDownload(e){console.warn("catalog.pauseDownload:"+Iz.NOT_IMPLEMENTED)}addInvalidationListener(e){qz.addListener(Gz.INVALIDATION,e)}addIssueStateListener(e,t){}async deleteIssue(e){console.warn("catalog.deleteIssue:"+Iz.NOT_IMPLEMENTED)}async deleteIssues(e){return console.warn("catalog.deleteIssues:"+Iz.NOT_IMPLEMENTED),{}}getMetadata(){return Promise.resolve({activePurchaseTypes:[]})}async getPublicationProducts(e){return console.warn("catalog.getPublicationProducts:"+Iz.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}}async getSubscriptions(e){return console.warn("catalog.getSubscriptions:"+Iz.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}}async pauseDownloads(e){return console.warn("catalog.pauseDownloads:"+Iz.NOT_IMPLEMENTED),{}}removeInvalidationListener(e){qz.removeListener(Gz.INVALIDATION,e)}removeIssueStateListener(e,t){}async startDownloads(e){return console.warn("catalog.startDownloads:"+Iz.NOT_IMPLEMENTED),{}}async syncLocalIssues(e){console.warn("catalog.syncLocalIssues:"+Iz.NOT_IMPLEMENTED)}async getProducts(e){return console.warn("catalog.getProducts:"+Iz.NOT_IMPLEMENTED),{issues:[],subscriptions:[],publicationProducts:[],contents:[]}}convertIssueParams(e){return e?{contentFilter:this.issueToContentFilter(e.issueFilter,!0),sort:e.sort&&e.sort.map((e=>this.issueToContentSort(e))),first:e.first,after:e.after}:{contentFilter:this.issueToContentFilter(void 0,!0)}}convertCategoriesParams(e){return e?{taxonomyFilter:this.categoryToTaxonomyFilter(e.categoryFilter,!0),sort:e.sort&&e.sort.map((e=>this.categoryToTaxonomySort(e))),first:e.first,after:e.after,includeContents:e.includeIssues,contentsParams:e.includeIssues?this.convertIssueParams(e.issuesParams):void 0}:{taxonomyFilter:this.categoryToTaxonomyFilter(void 0,!0)}}convertPublicationsParams(e){let t=e?.contentsParams;return e?.includeIssues&&(console.warn('PublicationParams: deprecated "includeIssues" used',e),t=this.convertIssueParams(e?.issuesParams)),{...e,publicationFilter:this.pubToPubFilter(e?.publicationFilter),sort:e?.sort?.map((e=>this.pubToPubSort(e))),includeContents:e?.includeContents||e?.includeIssues,contentsParams:t}}convertToCategoryPage(e){return{hasNextPage:e.hasNextPage,totalCount:e.totalCount,cursor:e.cursor,nodes:e.nodes.map((e=>({id:e.id,name:e.name,type:e.type,parentCategoryId:e.parentId,thumbnails:e.thumbnails,properties:e.properties,issues:e.contents})))}}issueToContentSort(e){return e&&{index:e.index,publicationDate:e.publicationDate,property:e.property}}categoryToTaxonomySort(e){return e&&{name:e.name,property:e.property}}pubToPubSort(e){if(e)return e.currentIssuePublicationDate&&console.warn('PublicationComparator: deprecated "currentIssuePublicationDate" use',e),{index:e.index,property:e.property,currentContentPublicationDate:e.currentContentPublicationDate||e.currentIssuePublicationDate}}categoryToTaxonomyFilter(e,t){const n=e&&{AND:e.AND&&e.AND.map((e=>this.categoryToTaxonomyFilter(e,!1))),OR:e.OR&&e.OR.map((e=>this.categoryToTaxonomyFilter(e,!1))),id:e.id,parentId:e.parentCategoryId,name:e.name,properties:e.properties,contents:this.issueListToContentListFilter(e.issues)};return t?this.wrapAsCategoryFilter(n):n}issueToContentFilter(e,t){const n=e&&{AND:e.AND&&e.AND.map((e=>this.issueToContentFilter(e,!1))),OR:e.OR&&e.OR.map((e=>this.issueToContentFilter(e,!1))),id:e.id,externalId:e.externalIssueId,alias:e.alias,publicationDate:e.publicationDate,access:this.purchasableToAccessFilter(e.purchasable),purchased:e.purchased,publication:this.pubToPubFilter(e.publication)||this.issueTypeToPubFilter(e.type),properties:e.properties,taxonomies:this.stringListToTaxonomyListFilter("category",e.categories)||this.stringListToTaxonomyListFilter("tag",e.tags)};return t?this.wrapAsIssueFilter(n):n}purchasableToAccessFilter(e){return e&&{value:uH.Access.FREE,negated:e.value}}stringListToTaxonomyListFilter(e,t){if(t)return{negated:t.negated,content:this.stringListContentToTaxonomyListContentFilter(e,t.content),size:t.size}}stringListContentToTaxonomyListContentFilter(e,t){if(t)return{operation:t.operation,value:this.stringFilterToTaxonomyFilter(e,t.value)}}stringFilterToTaxonomyFilter(e,t){return{AND:[{type:{value:e}},{id:t}]}}issueTypeToPubFilter(e){if(e)return{type:{negated:e.negated,value:"ARTICLE"===e.value?uH.PublicationType.CHANNEL:uH.PublicationType.KIOSK}}}pubToPubFilter(e){if(!e)return;let t=e.contents;return!e.contents&&e.issues&&(console.warn('PublicationFilter: deprecated "issues" used',e),t=this.issueListToContentListFilter(e.issues)),{AND:e.AND&&e.AND.map((e=>this.pubToPubFilter(e))),OR:e.OR&&e.OR.map((e=>this.pubToPubFilter(e))),id:e.id,type:e.type,language:e.language,properties:e.properties,contents:t}}issueListToContentListFilter(e){return e&&{negated:e.negated,content:this.issueListContentToContentListContentFilter(e.content),size:e.size}}issueListContentToContentListContentFilter(e){return e&&{operation:e.operation,value:this.issueToContentFilter(e.value,!0)}}wrapAsCategoryFilter(e){return e?{AND:[{type:{value:"category"}},e]}:{type:{value:"category"}}}wrapAsIssueFilter(e){return e?{AND:[{contentType:{value:uH.CatalogContentType.ISSUE}},e]}:{contentType:{value:uH.CatalogContentType.ISSUE}}}}function Wz(e){return new Date(e).getTime()}class Kz{constructor(e){this._getMetadata=e}version;getMetadata(e,t,n){return Promise.resolve({...this._getMetadata(n)})}}const Yz=tH`
|
694
|
+
fragment AppWebConfigurationFields on AppWebConfiguration {
|
695
|
+
id
|
696
|
+
dynamicResources {
|
697
|
+
lastModified
|
698
|
+
}
|
699
|
+
favicons {
|
700
|
+
url
|
701
|
+
mimeType
|
702
|
+
}
|
703
|
+
entitlementConfig {
|
704
|
+
__typename
|
705
|
+
... on EntitlementConfig {
|
706
|
+
dummy
|
707
|
+
}
|
708
|
+
... on OAuthConfig {
|
709
|
+
clientId
|
710
|
+
tokenUrl
|
711
|
+
loginUrl
|
712
|
+
logoutUrl
|
713
|
+
}
|
714
|
+
}
|
715
|
+
}
|
716
|
+
`;class Qz{version;getState(e,t){let n;n="string"==typeof e?e:e.key;let r=localStorage.getItem("storefront-"+n);if(void 0===r&&(r=null),!t)return Promise.resolve({key:n,value:r});t(n,r)}setState(e,t){let n,r;return"string"==typeof e?(n=e,r=t):(n=e.key,r=e.value),null==r?localStorage.removeItem("storefront-"+n):localStorage.setItem("storefront-"+n,r),Promise.resolve()}}class Jz{constructor(e,t,n,r,i){this.setConfigValue=e,this.getConfig=t,this.client=n,this.appInfo=r,this.deviceInfo=i}version=new Hz(2,0);get config(){return this.getConfig()}sanitizeCode(e){return e.substring(0,255).trim().toUpperCase()}async addSubscriptionCode(e){const t=this.sanitizeCode(e.code);if(this.config.subscriptionCodes.includes(t))throw{code:"DUPLICATE_CODE",message:`Code is already added: ${e.code}`};try{if(!((await this.client.mutate({mutation:tH`
|
717
|
+
mutation CheckSubscriptionCodes(
|
718
|
+
$appInfo: AppInfo!,
|
719
|
+
$deviceInfo: DeviceInfo!
|
720
|
+
$subscriptionCodes: [String!]!
|
721
|
+
) {
|
722
|
+
subscriptionCodes(
|
723
|
+
appInfo: $appInfo
|
724
|
+
deviceInfo: $deviceInfo
|
725
|
+
codes: $subscriptionCodes
|
726
|
+
) {
|
727
|
+
codes {
|
728
|
+
code
|
729
|
+
valid
|
730
|
+
}
|
731
|
+
}
|
732
|
+
}
|
733
|
+
`,variables:{appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),subscriptionCodes:[t]}})).data.subscriptionCodes.codes.filter((e=>e.code===t&&e.valid)).length>0))throw{code:"INVALID_CODE",message:`Code is invalid: ${e.code}`};this.setConfigValue("subscriptionCodes",this.config.subscriptionCodes.concat(t)),qz.sendEvent(Gz.INVALIDATION,{})}catch(e){throw console.warn(e),e}}addSubscriptionCodes(e,t){console.warn("store.addSubscriptionCodes:"+Iz.NOT_IMPLEMENTED),t({success:!0})}getPrices(e,t){return console.warn("store.getPrices:"+Iz.NOT_IMPLEMENTED),Promise.resolve({priceInfos:[]})}getSubscriptionCodes(e){const t=this.config.subscriptionCodes;if("function"!=typeof e)return Promise.resolve({subscriptionCodes:t});e(t)}async openCodeRedemption(){console.warn("store.purchase:"+Iz.NOT_IMPLEMENTED)}purchase(e,t){return console.warn("store.purchase:"+Iz.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof e?e:e.productId})}async removeSubscriptionCode(e){const t=this.sanitizeCode(e.code),n=this.config.subscriptionCodes,r=n.indexOf(t);if(!(r>-1))throw{code:"UNKNOWN_CODE",message:`No such code found: ${e.code}`};n.splice(r,1),this.setConfigValue("subscriptionCodes",n),qz.sendEvent(Gz.INVALIDATION,{})}removeSubscriptionCodes(e,t){}restorePurchases(e){console.warn("store.restorePurchases:"+Iz.NOT_IMPLEMENTED)}setPurchaseStateListener(e){}subscribe(e,t){return console.warn("store.subscribe:"+Iz.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof e?e:e.productId})}}class Zz{version;async setUserAttribute(e){console.warn("tracking.setUserAttribute:"+Iz.NOT_IMPLEMENTED)}trackAction(e,t,n){console.warn("tracking.trackAction:"+Iz.NOT_IMPLEMENTED)}trackPurchase(e,t,n,r,i,o,s){console.warn("tracking.trackPurchase:"+Iz.NOT_IMPLEMENTED)}trackView(e,t,n){console.warn("tracking.trackView:"+Iz.NOT_IMPLEMENTED)}async debug(e){console.warn("tracking.debug:"+Iz.NOT_IMPLEMENTED)}}const Xz=tH`
|
734
|
+
fragment EntitlementFields on EntitlementResult {
|
735
|
+
... on EntitlementError {
|
736
|
+
code
|
737
|
+
message
|
738
|
+
}
|
739
|
+
... on EntitlementUserData {
|
740
|
+
accessToken
|
741
|
+
refreshToken
|
742
|
+
roles
|
743
|
+
}
|
744
|
+
}
|
745
|
+
`;class eW{constructor(e,t,n,r,i,o){this.getMetadata=e,this.setConfigValue=t,this.getConfig=n,this.client=r,this.appInfo=i,this.deviceInfo=o}version;get config(){return this.getConfig()}async entitlementMutation(e,t,n){try{const r=await this.client.mutate({mutation:e,variables:{...t,appInfo:this.appInfo(),deviceInfo:this.deviceInfo()}});return this.handleEntitlementResult(n(r.data))}catch(e){throw{code:e.code||uH.ERROR_CODE.UNKNOWN,message:e.message,error:e}}}getUserData(){return Promise.resolve({username:this.config.entitlementLogin,accessToken:this.config.entitlementToken,refreshToken:this.config.entitlementRefreshToken})}getRedirectUri(){const e=new URL(location.protocol+"//"+location.host+location.pathname+location.search),t=new URL(this.config.baseUrl).host;return e.host.indexOf(t)>-1||e.host.indexOf("localhost")>-1?e.pathname=e.pathname.split("/")[1]+"/":e.pathname="",e.pathname=e.pathname+"oauth/callback",e.toString()}async login(e){if(e.externalToken)return this.loginWithExternalToken(e.externalToken);{const t=this.config.entitlementConfig;switch(t.mode){case uH.ENTITLEMENT_MODE.ENTITLEMENT:return this.loginWithUsernameAndPassword(e.username,e.password);case uH.ENTITLEMENT_MODE.OAUTH:return this.loginWithOauth(t,e.state);default:throw{code:uH.ERROR_CODE.CONFIGURATION_ERROR,message:"No Entitlement configured"}}}}async loginWithExternalToken(e){return await this.entitlementMutation(tH`
|
746
|
+
mutation LoginWithExternalToken(
|
747
|
+
$appInfo: AppInfo!,
|
748
|
+
$deviceInfo: DeviceInfo!,
|
749
|
+
$externalToken: String!,
|
750
|
+
) {
|
751
|
+
loginWithExternalToken(
|
752
|
+
appInfo: $appInfo,
|
753
|
+
deviceInfo: $deviceInfo,
|
754
|
+
externalToken: $externalToken,
|
755
|
+
) {
|
756
|
+
... EntitlementFields
|
757
|
+
}
|
758
|
+
}${Xz}`,{externalToken:e},(e=>e.loginWithExternalToken))}async loginWithUsernameAndPassword(e,t){return await this.entitlementMutation(tH`
|
759
|
+
mutation Login(
|
760
|
+
$appInfo: AppInfo!,
|
761
|
+
$deviceInfo: DeviceInfo!,
|
762
|
+
$username: String!,
|
763
|
+
$password: String
|
764
|
+
) {
|
765
|
+
login(
|
766
|
+
appInfo: $appInfo,
|
767
|
+
deviceInfo: $deviceInfo,
|
768
|
+
username: $username,
|
769
|
+
password: $password
|
770
|
+
) {
|
771
|
+
... EntitlementFields
|
772
|
+
}
|
773
|
+
}
|
774
|
+
|
775
|
+
${Xz}`,{username:e,password:t},(e=>e.login))}async loginWithOauth(e,t){const n=new URL(e.loginUrl);n.searchParams.set("response_type","code"),n.searchParams.set("client_id",e.clientId),n.searchParams.set("device_id",this.config.deviceId);const r=this.getRedirectUri();n.searchParams.set("redirectUri",r);const i=function(){var e=new Uint32Array(28);return window.crypto.getRandomValues(e),Array.from(e,tW).join("")}(),o=await async function(e){var t=await function(e){const t=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",t)}(e),n=function(e){for(var t="",n=new Uint8Array(e),r=n.byteLength,i=0;i<r;i++)t+=String.fromCharCode(n[i]);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(t);return n}(i);if(n.searchParams.set("code_challenge",o),n.searchParams.set("code_challenge_method","S256"),!this.config.deviceId)throw{code:"MISSING_DEVICE_ID",message:"oauth is only available if an deviceId was specified"};const s=t||{};s.verifier=i,s.tokenRedirectUrl=r;const a=encodeURIComponent(btoa(JSON.stringify(s)));return n.searchParams.set("state",a),localStorage.setItem("loginState",a),window.location.href=n.toString(),new Promise((()=>{}))}async checkForOauthEntitlement(){const e=localStorage.getItem("loginState"),t=localStorage.getItem("logoutState");return e?this.handleOauthLogin(e):t?this.handleOauthLogout(t):void 0}async handleOauthLogin(e){const t=new URL(window.location.href),n=t.searchParams.get("code"),r=t.searchParams.get("state");if(e&&e!=r)throw{code:uH.ERROR_CODE.INVALID_CREDENTIALS,message:"Invalid State"};localStorage.removeItem("loginState");const i=JSON.parse(atob(decodeURIComponent(r))),o=JSON.parse(localStorage.getItem("AppWebConfiguration"));if(o.entitlementConfig.mode!==uH.ENTITLEMENT_MODE.OAUTH)throw{code:uH.ERROR_CODE.CONFIGURATION_ERROR,message:"Invalid entitlement mode"};const s=o.entitlementConfig,a=s.clientId,u=s.tokenUrl;let c=new FormData;c.append("grant_type","authorization_code"),c.append("code",n),c.append("redirect_uri",i.tokenRedirectUrl),c.append("code_verifier",i.verifier),c.append("client_id",a);let l=await(await fetch(u,{method:"POST",body:c})).json();if(l.error)throw{code:uH.ERROR_CODE.INVALID_CREDENTIALS,message:"Error when retrieving token"};if(l.access_token){const e={accessToken:l.access_token,refreshToken:l.refresh_token,roles:l.roles,state:i};return this.setConfigValue("entitlementToken",e.accessToken),this.setConfigValue("entitlementRefreshToken",e.refreshToken),this.setConfigValue("entitlementRoles",e.roles),qz.sendEvent(Gz.INVALIDATION,{}),e.state?.redirectUrl}}async logout(e){const t=this.config.entitlementToken,n=this.config.entitlementRefreshToken;if(!t)throw new Error("No accessToken to logout");try{const r=this.config.entitlementConfig;if(r.mode===uH.ENTITLEMENT_MODE.OAUTH&&r.logoutUrl){const t=new URL(r.logoutUrl);return t.searchParams.set("redirect_uri",this.getRedirectUri()),t.searchParams.set("device_id",this.config.deviceId),localStorage.setItem("logoutState",JSON.stringify({redirectUri:e?.state?.redirectUrl??"purple://app/home/open"})),window.location.href=t.href,new Promise((()=>{}))}await this.client.mutate({mutation:tH`
|
776
|
+
mutation Logout(
|
777
|
+
$appInfo: AppInfo!,
|
778
|
+
$deviceInfo: DeviceInfo!,
|
779
|
+
$accessToken: String!,
|
780
|
+
$refreshToken: String
|
781
|
+
) {
|
782
|
+
logout(
|
783
|
+
appInfo: $appInfo,
|
784
|
+
deviceInfo: $deviceInfo,
|
785
|
+
accessToken: $accessToken,
|
786
|
+
refreshToken: $refreshToken
|
787
|
+
)
|
788
|
+
}`,variables:{appInfo:this.appInfo(),deviceInfo:this.deviceInfo(),accessToken:t,refreshToken:n}}),this.clearLocalData()}catch(e){throw console.warn(e),e}}async handleOauthLogout(e){localStorage.removeItem("logoutState");const t=JSON.parse(e);return this.clearLocalData(),Promise.resolve(t.redirectUri)}async refreshAccessToken(){const e=this.config.entitlementRefreshToken;if(!e)throw{code:"NO_REFRESH_TOKEN",message:"Tried to refresh without refresh token"};return await this.entitlementMutation(tH`
|
789
|
+
mutation RefreshAccessToken(
|
790
|
+
$appInfo: AppInfo!,
|
791
|
+
$deviceInfo: DeviceInfo!,
|
792
|
+
$refreshToken: String!
|
793
|
+
) {
|
794
|
+
refreshAccessToken(
|
795
|
+
appInfo: $appInfo,
|
796
|
+
deviceInfo: $deviceInfo
|
797
|
+
refreshToken: $refreshToken
|
798
|
+
) {
|
799
|
+
... EntitlementFields
|
800
|
+
}
|
801
|
+
}
|
802
|
+
${Xz}`,{refreshToken:e},(e=>e.refreshAccessToken))}mapLoginResult(e){return{accessToken:e.accessToken,refreshToken:e.refreshToken,roles:e.roles}}mapEntitlementResult(e){return e.accessToken?this.mapEntitlementUserData(e):this.mapEntitlementError(e)}mapEntitlementUserData(e){return{accessToken:e.accessToken,refreshToken:e.refreshToken,roles:e.roles}}mapEntitlementError(e){return{message:e.message,code:this.mapEntitlementErrorCode(e.code)}}mapEntitlementErrorCode(e){switch(e){case"WRONG_PASSWORD_OR_USERNAME":case"WRONG_PASSWORD":case"AUTHENTICATION_ERROR":return uH.ERROR_CODE.INVALID_CREDENTIALS;case"USER_DEACTIVATED":return uH.ERROR_CODE.USER_DEACTIVATED;case"INSTALLATION_LIMIT_EXCEEDED":return uH.ERROR_CODE.INSTALLATION_LIMIT_EXCEEDED;case"SYSTEM_ERROR_IN_REMOTE_SYSTEM":case"PARAMETER_ERROR_IN_REMOTE_SYSTEM":return uH.ERROR_CODE.CONFIGURATION_ERROR;default:return uH.ERROR_CODE.UNKNOWN}}handleEntitlementResult(e,t){const n=this.mapEntitlementResult(e);if(function(e){return"code"in e}(n))throw console.warn(n),n;return t&&this.setConfigValue("entitlementLogin",t),this.setConfigValue("entitlementToken",n.accessToken),n.refreshToken&&this.setConfigValue("entitlementRefreshToken",n.refreshToken),n.roles&&this.setConfigValue("entitlementRoles",n.roles),qz.sendEvent(Gz.INVALIDATION,{}),this.mapLoginResult(n)}invalidateTokens(e){e?.refreshTokenOnly&&this.setConfigValue("entitlementToken",`devtest_${this.config.entitlementToken}`),e?.accessTokenOnly&&this.setConfigValue("entitlementRefreshToken",`devtest_${this.config.entitlementRefreshToken}`)}clearLocalData(){this.setConfigValue("entitlementLogin",null),this.setConfigValue("entitlementToken",null),this.setConfigValue("entitlementRefreshToken",null),this.setConfigValue("entitlementRoles",null),qz.sendEvent(Gz.INVALIDATION,{})}async verifyAccessToken(e){return await this.entitlementMutation(tH`
|
803
|
+
mutation VerifyToken(
|
804
|
+
$appInfo: AppInfo!,
|
805
|
+
$deviceInfo: DeviceInfo!,
|
806
|
+
$accessToken: String!
|
807
|
+
) {
|
808
|
+
verify(
|
809
|
+
appInfo: $appInfo,
|
810
|
+
deviceInfo: $deviceInfo,
|
811
|
+
accessToken: $accessToken
|
812
|
+
) {
|
813
|
+
... EntitlementFields
|
814
|
+
}
|
815
|
+
}
|
816
|
+
${Xz}`,{accessToken:e.accessToken},(e=>e.verify))}}function tW(e){return("0"+e.toString(16)).substr(-2)}const nW="purple-catalog-audio-context";class rW{version;audioElement;title;playbackRate=1;constructor(){this.audioElement=document.getElementById(nW),this.audioElement||this.setupAudioElement(),this.setupEventListeners()}setupAudioElement(){this.audioElement=document.createElement("audio"),this.audioElement.id=nW,document.body.append(this.audioElement)}setupEventListeners(){this.audioElement.addEventListener("playing",(()=>this.sendStatus({playbackState:"PLAYING"}))),this.audioElement.addEventListener("pause",(()=>this.sendStatus({playbackState:this.audioElement.src?"READY":"NONE"}))),this.audioElement.addEventListener("timeupdate",(()=>this.sendProgress({currentTime:1e3*this.audioElement.currentTime,duration:1e3*this.audioElement.duration}))),this.audioElement.addEventListener("waiting",(()=>this.sendStatus({playbackState:"LOADING"})))}sendStatus(e){const t={displayName:this.title,url:this.audioElement.src,...e};qz.sendEvent(Gz.MEDIA_STATUS,t)}sendProgress(e){qz.sendEvent(Gz.MEDIA_PROGRESS,e)}addProgressListener(e){qz.addListener(Gz.MEDIA_PROGRESS,e)}addStatusListener(e){qz.addListener(Gz.MEDIA_STATUS,e)}async getPlaybackRate(e){return{playbackRate:this.playbackRate}}async pauseAudio(){this.audioElement.pause()}removeProgressListener(e){qz.removeListener(Gz.MEDIA_PROGRESS,e)}removeStatusListener(e){qz.removeListener(Gz.MEDIA_STATUS,e)}resumeAudio(){return this.audioElement.play()}async seekTo(e){"number"==typeof e&&(e={time:e}),this.audioElement.currentTime=e.time/1e3}async setPlaybackRate(e){return"number"==typeof e&&(e={playbackRate:e}),this.playbackRate=e.playbackRate,this.audioElement.playbackRate=this.playbackRate,{playbackRate:this.audioElement.playbackRate}}async startAudio(e,t){"string"==typeof e&&(e={displayName:e,url:t}),this.audioElement.src=e.url,this.audioElement.playbackRate=this.playbackRate,this.title=e.displayName;try{return this.audioElement.play()}catch{this.sendStatus({playbackState:"ERROR"})}}stopAudio(){this.audioElement.pause(),this.audioElement.currentTime=0,this.audioElement.src=null,this.title=null,this.sendStatus({playbackState:"NONE"}),this.sendProgress({duration:-1,currentTime:0})}}class iW{version;async getBaseUrl(){return console.warn("issue.getBaseUrl:"+Iz.NOT_IMPLEMENTED),{baseUrl:""}}async getPages(e){return console.warn("issue.getPages:"+Iz.NOT_IMPLEMENTED),[]}async getToc(e){return console.warn("issue.getToc:"+Iz.NOT_IMPLEMENTED),[]}async openFile(e){console.warn("issue.openFile:"+Iz.NOT_IMPLEMENTED)}}class oW{version;async share(e){console.warn("Share.share:"+Iz.NOT_IMPLEMENTED)}}class sW{constructor(e){this.getPagerInfo=e}version;getInfo(){return Promise.resolve(this.getPagerInfo())}navigateTo(e){return Promise.resolve(void 0)}addIssueChangeListener(e){}removeIssueChangeListener(e){}retryLoad(){}}class aW{version;getConsent(e){throw new Error("Method not implemented.")}grantConsent(e){throw new Error("Method not implemented.")}showPrivacyManager(){throw new Error("Method not implemented.")}getSystemConsent(){throw new Error("Method not implemented.")}showSystemPrivacyManager(){throw new Error("Method not implemented.")}}function uW(e){return new gV((function(t,n){return new zj((function(r){var i,o,s;try{i=n(t).subscribe({next:function(i){i.errors&&(s=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(s=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){s||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var n=e.call(this)||this;return n.link=uW(t),n}GL(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(gV);class cW{constructor(e,t){this.config=e,this.onConfigChange=t;const n=uW((({graphQLErrors:e})=>{e?.forEach((e=>this.config.onGraphQLError(e)))})),r=new NV({uri:`${this.config.contentUrl}/graphql`});this.client=new K$({cache:this.cache,link:mV([n,r]),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}}}),this.account=new Tz,this.app=new wz,this.appBrowser=new Dz,this.bookmark=new Az,this.content=new Oz,this.entitlement=new eW((()=>this.configToMetadata()),((e,t)=>this.setConfigValue(e,t)),(()=>e),this.client,this.appInfo,this.deviceInfo),this.issue=new iW,this.issuePager=new sW((()=>this.pagerInfo)),this.media=new rW,this.metadata=new Kz((e=>this.configToMetadata(e))),this.share=new oW,this.state=new Qz,this.store=new Jz(((e,t)=>this.setConfigValue(e,t)),(()=>e),this.client,this.appInfo,this.deviceInfo),this.tracking=new Zz,this.consent=new aW,this.catalog=null,this.storefront=null}version;app;appBrowser;account;bookmark;content;consent;catalog;entitlement;experience;issue;issuePager;media;share;storefront;metadata;state;store;tracking;pageData={};pagerInfo;cache=new hW;client;appInfo(){return{appId:this.config.appId,appVersion:this.config.appVersion,preview:this.config.preview}}deviceInfo(){return{deviceId:this.config.deviceId,deviceModel:this.config.deviceModel,locale:this.config.locale,smallestScreenWidthDp:this.config.smallestScreenWidthDp,deviceOs:this.config.deviceOs,platform:(this.config.platform??"web").toUpperCase()}}authorization(){return{accessToken:this.config.entitlementToken,subscriptionCodes:this.config.subscriptionCodes,accountAccessToken:this.config.accountAccessToken}}closeView(){console.warn("closeView:"+Iz.NOT_IMPLEMENTED)}setConfig(e,t){this.config=e,this.onConfigChange({...this.config},t)}setConfigValue(e,t){this.config[e]=t,this.setConfig(this.config,e)}setPageData(e,t){this.pageData[e]=t}setIssuePagerInfo(e){this.pagerInfo=e}configToMetadata(e){const t=this.pageData[e]||{};return this.config.preview=this.config.preview||!1,{app_id:this.config.appId,app_version:this.config.appVersion,bundle_id:this.config.bundleId,device_id:this.config.deviceId,device_model:this.config.deviceModel,device_os:this.config.deviceOs,entitlement_forced_login_enabled:this.config.entitlementForcedLoginEnabled,entitlement_login:this.config.entitlementLogin,entitlement_login_mode:this.config.entitlementLoginMode,entitlement_mode:this.config.entitlementConfig.mode,entitlement_token:this.config.entitlementToken,locale:this.config.locale,manager_base_url:this.config.baseUrl,platform:this.config.platform,preview_app:this.config.preview.toString(),purple_version:this.config.purple_version,issue_id:this.config.issueId,issue_name:this.config.issueName,publication_Id:this.config.publicationId,publication_name:this.config.publicationName,page_id:t.id,page_alias:t.alias,page_label:t.label,page_title:t.title,page_filename:t.filename,page_number:t.number}}}class lW extends cW{constructor(e,t){super(e,t),this.config=e,this.onConfigChange=t,this.catalog=new zz((()=>this.config),this,this.client,this.appInfo,this.deviceInfo,this.authorization)}static async getAppIdByPath(e,t,n=!1){const r=dW(t),i=await r.query({query:tH`
|
817
|
+
query AppWebConfigForPath(
|
818
|
+
$path: String!
|
819
|
+
$preview: Boolean! = false
|
820
|
+
) {
|
821
|
+
appConfigurationForPath(
|
822
|
+
path: $path,
|
823
|
+
preview: $preview
|
824
|
+
) {
|
825
|
+
... AppWebConfigurationFields
|
826
|
+
}
|
827
|
+
}
|
828
|
+
${Yz}
|
829
|
+
`,variables:{path:e,preview:n}});return r.stop(),lW.mapAppConfiguration(i.data.appConfigurationForPath)}static async getAppIdByDomain(e,t,n=!1){const r=dW(t),i=await r.query({query:tH`
|
830
|
+
query AppWebConfigForDomain(
|
831
|
+
$domainName: String!
|
832
|
+
$preview: Boolean! = false
|
833
|
+
) {
|
834
|
+
appConfigurationForDomain(
|
835
|
+
domainName: $domainName,
|
836
|
+
preview: $preview
|
837
|
+
) {
|
838
|
+
... AppWebConfigurationFields
|
839
|
+
}
|
840
|
+
}
|
841
|
+
${Yz}
|
842
|
+
`,variables:{domainName:e,preview:n}});return r.stop(),lW.mapAppConfiguration(i.data.appConfigurationForDomain)}static mapAppConfiguration(e){return e?{id:e.id,dynamicResources:{lastModified:e.dynamicResources?.lastModified},favicons:e.favicons.map((e=>lW.mapFavicons(e))),entitlementConfig:lW.mapEntitlementConfig(e.entitlementConfig)}:null}static mapFavicons(e){if(e)return{url:e.url,mimeType:e.mimeType}}static mapEntitlementConfig(e){switch(e?.__typename){case"EntitlementConfig":return{mode:uH.ENTITLEMENT_MODE.ENTITLEMENT};case"OAuthConfig":return{mode:uH.ENTITLEMENT_MODE.OAUTH,clientId:e.clientId,loginUrl:e.loginUrl,tokenUrl:e.tokenUrl,logoutUrl:e.logoutUrl};default:return{mode:uH.ENTITLEMENT_MODE.NONE}}}}function dW(e){return new K$({uri:e+"/graphql",cache:new hW,defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}class hW extends SB{read=()=>null;write=()=>{};diff=()=>({});watch=()=>()=>{};reset=async()=>{};evict=()=>!1;restore=()=>this;extract=()=>({});removeOptimistic=()=>{};batch=()=>{};performTransaction=()=>{};recordOptimisticTransaction=()=>{};transformDocument=e=>e;transformForLink=e=>e;identify=()=>{};gc=()=>[];modify=()=>!1;readQuery=()=>null;readFragment=()=>null;writeQuery=()=>{};writeFragment=()=>{};updateQuery=()=>null;updateFragment=()=>null}var pW=n(1937),fW=function(e,t){return function(n,r){t(n,r,e)}};const gW="PURPLE_API_CACHE",mW={hasNextPage:!1,totalCount:0,cursor:"",nodes:[]},vW="PURPLE_CACHE_VERSION",yW="3.6.0";let EW=class{platformId;router;injector;purpleEnv;transferState;PURPLE_API_CACHE={};PURPLE_CONTENT_CACHE={};PURPLE_COLLECTION_CACHE={};PURPLE_MENU_CACHE={};PURPLE_PUBLICATION_CACHE={};PURPLE_TAXONOMY_CACHE={};PURPLE_API_ERRORS={};DOWNLOAD_HANDLERS={};IMAGE_SRCS=[];bookmarksSubject=new Ce(null);bookmarks=this.bookmarksSubject.asObservable();initedSubject=new TT(1);inited$=this.initedSubject.asObservable();repeatablePublicationProductsSubject=new Ce(null);repeatablePublicationProducts=this.repeatablePublicationProductsSubject.asObservable();connectionStateSubject=new Ce(null);connectionState$=this.connectionStateSubject.asObservable();_downloadOptions={};get downloadOptions(){return this._downloadOptions}purpleConfig;purpleRef;issuePagerInfo;implUsedDirectly=!1;isContentLocked(e,t){return!1}constructor(e,t,n,r,i){this.platformId=e,this.router=t,this.injector=n,this.purpleEnv=r,this.transferState=i}async init(e=!1,t,n,r,i,o,s,a,u,c,l){this.purpleConfig=o,t.loadConfig(s),e?this.initServerPlatform(s,o,a,u,c,r,i):this.initAppPlatform(),window.PurpleService=this,this.initPurpleExperience(l,n),this.subscribeToConfigLoaderService(t),await this.initCache(),this.initListeners();try{window.storefrontHooks.onPurpleServiceInit?.()}catch(e){console.error("Error in onPurpleServiceInit hook:",e)}this.initedSubject.next(!0),this.initedSubject.complete()}getPurpleConfig(){return this.purpleConfig}async updateRepeatablePublicationProducts(){let e;const t={publicationProductFilter:{AND:[{type:{value:CT.PublicationProductType.REPEATABLE_ISSUE_PURCHASE}},{hidden:{value:!1}}]},maxUnlockableContents:1};try{e=await this.getPublicationProducts(t)}catch(t){console.warn("Failed to load repeatable publication products",t),e=[]}return this.repeatablePublicationProductsSubject.next(e),e}async getRepeatablePublicationProductByPublicationId(e){return(await this.repeatablePublicationProducts.pipe(Ne((e=>!!e)),Pe(1)).toPromise()).find((t=>!!t.publications[e]))}nextInvalidation(){let e;const t=new Promise(((t,n)=>e=t));return window.addEventListener(FT,(()=>e())),t}async invalidate(){this.bustApiCache(),await Promise.all([wT.Vf.invalidateKnownDownloadHandlers().then((()=>this.updateDownloadHandlerStates())),this.updateRepeatablePublicationProducts()]),window.dispatchEvent(new CustomEvent(FT,{})),this.onMaybeSubscriptionsChanged()}async onMaybeSubscriptionsChanged(){const e=await this.getState("storefront-purchased-subs").then((e=>e&&JSON.parse(e))),t=(await this.getSubscriptions({subscriptionFilter:{purchased:{value:!0}}},!0)).nodes;IT(e,t)||(window.storefrontHooks?.subscriptionsChanged?.({subscriptions:t}),await this.setState("storefront-purchased-subs",JSON.stringify(t))),this.injector.get(mL).notifyAll()}addImageSrc(e){this.IMAGE_SRCS.indexOf(e)<0&&this.IMAGE_SRCS.push(e)}getAlternativeSrc(e){const t=e.split("?")[0];return this.IMAGE_SRCS.find((e=>e?.split("?")[0]===t))||t}setConfigValue(e,t){this.purpleRef.setConfigValue(e,t)}setPageData(e,t){this.purpleRef.setPageData(e,t)}setIssuePagerInfo(e){this.purpleRef.setIssuePagerInfo(e)}isIssuePager(){return!!this.issuePagerInfo}setCurrentPagerIssueId(e){if(this.issuePagerInfo){const t=this.issuePagerInfo.issues.findIndex((t=>t.id===e));-1!==t&&(this.issuePagerInfo.currentIndex=t,this.issuePagerInfo.visibleIndex=t)}}async getDownloadHandler(e,t){const n=wT.Vf.getStateKey({issue:e}),r=this.DOWNLOAD_HANDLERS[n]&&await this.DOWNLOAD_HANDLERS[n];return r?(e&&r.issue&&e.id===r.issue.id&&!IT(e,r.issue)&&await r.setIssue(e),r):(this.DOWNLOAD_HANDLERS[n]=new Promise((n=>{const r=this.downloadOptions,i=new wT.Vf({issue:e,autoUpdate:!!r.autoUpdateBehavior,issueSourceProperty:r.issueSourceProperty,issuePageProperty:r.issuePageProperty,issueSequenceProperty:r.issueSequenceProperty,issueCoverFilter:r.issueCoverFilter});i.init(!0,!1).then((()=>{i.publication=this.PURPLE_PUBLICATION_CACHE[i.issue.publicationId];const e={...i.getAggregatedIssueState(),error:null},r=new Ce(e);i.addUpdateListener((e=>r.next(e))),i.updates$=r,t&&i.updates$.pipe(Ne((e=>!(!e||!e.error)))).subscribe((e=>{const n=function(e,t){const n=[e];return t&&(n.push(t.name),n.push(t.id)),n}(e.error,i.getIssues().find((t=>t.id===e.issueId)));t.alert({text:"ERROR_DOWNLOAD",args:n},"DIALOG_ERROR")})),n(i)}))})),this.DOWNLOAD_HANDLERS[n])}async destroyDownloadHandler(e){for(const t in this.DOWNLOAD_HANDLERS)if(await this.DOWNLOAD_HANDLERS[t]===e){e.updates$.observers.length||(e.destroy(),delete this.DOWNLOAD_HANDLERS[e.getOwnStateKey()]);break}}async updateDownloadHandlers(){return Promise.all(Object.values(this.DOWNLOAD_HANDLERS).map((async e=>{const t=await e;if(t.downloadStarted&&t.autoUpdate)try{await t.update()}catch(e){console.warn("error updating download handler",e)}else t.updateState(!1,!0)})))}async updateDownloadHandlerStates(){return Promise.all(Object.values(this.DOWNLOAD_HANDLERS).map((e=>e.then((e=>e.updateState(!1,!0))))))}async loginAccount(e){return this.purpleRef.account?.login({token:e})}logoutAccount(){return this.purpleRef.account?.logout()}assignLocalPurchases(e){return this.purpleRef.account?.assignLocalPurchases({mode:e})}async getAccountUserData(){return this.purpleRef.account?.getUserData()}overrideAppPerformActionUrlApi(e){this.purpleRef.app.performActionUrl=async({actionUrl:t})=>{if("undefined"!=typeof WP&&WP.instance){const e=WP.instance.getCurrentPlayer();if(e.ctx.actionHandler.processAction({open:{URL:t}},null,e))return}e.openUrl(t)}}openActionUrl(e,t,n){const r="purple-action-url-frame";if(e.startsWith("purple://")&&this.purpleRef.app.performActionUrl&&!t)this.purpleRef.app.performActionUrl({actionUrl:e});else if(t){let t=document.getElementById(r);t||(t=document.createElement("iframe"),t.style.opacity="0",t.id=r,document.body.appendChild(t)),t.src=e}else n?window.open(e,n):window.location.href=e}async performAuthentication(e,t){return this.purpleRef.app.performAuthentication({url:e,callbackParamName:t||"callbackurl"})}addConnectionStateListener(e){this.purpleRef.app.addConnectionStateListener(e)}removeConnectionStateListener(e){this.purpleRef.app.removeConnectionStateListener(e)}addLifecycleListener(e){this.purpleRef.app.addLifecycleListener(e)}removeLifecycleListener(e){this.purpleRef.app.removeLifecycleListener(e)}async getDisplayMode(){return(await this.purpleRef.appBrowser.getDisplayConfig()).displayMode}async isTitleBarEnabled(){return(await this.purpleRef.appBrowser.getDisplayConfig()).titleBarEnabled}overrideBookmarkApis(e){this.purpleRef.bookmark.createBookmark=async t=>{const n={...t,id:RT(),contentType:CT.CatalogContentType.ISSUE,createdAt:(new Date).getTime(),contentId:t.issueId,issueId:t.issueId,issueType:void 0,sharingEnabled:t.sharingEnabled,customData:{...t.customData}},r=(await this.purpleRef.bookmark.getBookmarks()).bookmarks;return r.push(n),await this.setState(`bookmarks-${e.appId}`,JSON.stringify(r)),{bookmark:n}},this.purpleRef.bookmark.getBookmarks=async()=>({bookmarks:JSON.parse(await this.getState(`bookmarks-${e.appId}`))||[]}),this.purpleRef.bookmark.deleteBookmark=async({id:t})=>{const n=(await this.purpleRef.bookmark.getBookmarks()).bookmarks.filter((e=>e.id!==t));await this.setState(`bookmarks-${e.appId}`,JSON.stringify(n))}}async getBookmarks(){return this.bookmarks.pipe(Pe(1)).toPromise()}async updateBookmarks(){const e=(await this.purpleRef.bookmark.getBookmarks()).bookmarks;return this.bookmarksSubject.next(e),e}async createBookmark(e){const t=await this.purpleRef.bookmark.createBookmark(e);return await this.updateBookmarks(),t}async deleteBookmark(e){await this.purpleRef.bookmark.deleteBookmark(e),await this.updateBookmarks()}async deleteBookmarks(e){for(const t of e)await this.purpleRef.bookmark.deleteBookmark({id:t});await this.updateBookmarks()}overrideCatalogApis(){this.purpleRef.catalog.getSubscriptions=async e=>mW,this.purpleRef.catalog.getPublicationProducts=async e=>mW}async getPublications(e,t=!1){return this.withApiCache("getPublications",this.purpleRef.catalog.getPublications,e,t).then((e=>(e.nodes.forEach((e=>{this.PURPLE_PUBLICATION_CACHE[e.id]=e,e.issues&&e.issues.nodes.forEach((e=>this.PURPLE_CONTENT_CACHE[e.id]=e))})),e)))}async getIssues(e,t=!1,n=!1){const r=(0,HT.oQ)(e);return n&&(r.fetchOptions={includeResources:!0}),this.withApiCache("getContents",this.purpleRef.catalog.getContents,r,t).then((e=>(e.nodes.forEach((e=>this.PURPLE_CONTENT_CACHE[e.id]=e)),e)))}async getLocalIssues(e,t=!1,n){const r=(await this.purpleRef.catalog.getLocalIssues()).issues.filter((e=>n?e.state.installState===n:e.state.installState!==CT.CatalogIssueInstallState.NOT_INSTALLED));let i=[];if(!r.length)return{issues:i};try{if(t){for(const e of r){let t={};try{t=await this.getIssueFromCache(e.id)}catch(e){}i.push({...CW,...e,...t})}e.issueFilter&&(i=i.filter((t=>(0,jT.tU)(e.issueFilter,t))))}else{const t={...e,issueFilter:SW(r.map((e=>e.id)),e.issueFilter)};i=(await this.getIssues(t,!0)).nodes}}catch(t){const n=await Promise.all(r.map((async(e,t)=>{let n=CW;try{n={...n,...await this.getIssue(e.id).catch((()=>null))}}catch(e){console.error(e)}const r={...n,...e};return this.PURPLE_CONTENT_CACHE[e.id]||(this.PURPLE_CONTENT_CACHE[e.id]=r),r})));i=n.filter((t=>(0,jT.tU)(e.issueFilter,t)))}return i=i.sort($T(e.sort??[])),i.forEach((e=>{const t=r.find((t=>t.id===e.id&&t.version===e.version));t&&(e.state=t.state)})),{issues:i}}async getCatalogContents(e,t=!1,n=!1){return n&&(e.fetchOptions={...e.fetchOptions,includeResources:!0}),this.withApiCache("getContents",this.purpleRef.catalog.getContents||this.purpleRef.catalog.getIssues,e,t).then((e=>(e.nodes.forEach((e=>this.PURPLE_CONTENT_CACHE[e.id]=e)),e)))}async getCollections(e,t=!1){return this.withApiCache("getCollections",this.purpleRef.catalog.getCollections,e,t).then((e=>(e.nodes.forEach((e=>this.PURPLE_COLLECTION_CACHE[e.id]=e)),e)))}async getCategories(e,t=!1){const n=(0,HT.s7)(e);return console.log("params",e),console.log("mappedParams",n),this.withApiCache("getCategories",this.purpleRef.catalog.getCategories,e,t).then((e=>(e.nodes.forEach((e=>this.PURPLE_TAXONOMY_CACHE[e.id]=e)),e)))}async getTaxonomies(e,t=!1){return this.withApiCache("getTaxonomies",this.purpleRef.catalog.getTaxonomies,e,t).then((t=>(t.nodes.forEach((t=>this.PURPLE_TAXONOMY_CACHE[this.getTaxonomyCacheKey(t,e)]=t)),t)))}async getMenus(e,t=!1){return await this.withApiCache("getMenus",this.purpleRef.catalog.getMenus,e,t)}async getSubscriptions(e,t=!1){return this.withApiCache("getSubscriptions",this.purpleRef.catalog.getSubscriptions,e,t)}async getCatalogAppSettings(e){return this.purpleRef.catalog.getAppSettings(e)}async search(e,t=!1){return this.withApiCache("search",this.purpleRef.catalog.search,e,t).then((e=>(e.nodes.forEach((e=>{const t=function(e){return function(e){return e.contentType===CT.CatalogContentType.ISSUE}(e)?e.issue:function(e){return e.contentType===CT.CatalogContentType.POST}(e)?e.post:function(e){return e.contentType===CT.CatalogContentType.BUNDLE}(e)?e.bundle:void 0}(e);this.PURPLE_CONTENT_CACHE[t.id]=t})),e)))}async getIssueStates(e){return this.purpleRef.catalog.getIssueStates(e)}addInvalidationListener(e){this.isCatalogAPIAvailable()&&this.purpleRef.catalog.addInvalidationListener(e)}removeInvalidationListener(e){this.purpleRef.catalog.removeInvalidationListener(e)}addIssueStateListener=(e,t)=>this.purpleRef.catalog.addIssueStateListener(e,t);removeIssueStateListener=(e,t)=>this.purpleRef.catalog.removeIssueStateListener(e,t);async getPublicationProducts(e){return this.purpleRef.catalog.getPublicationProducts(e).then((e=>e.nodes))}async getCatalogMetadata(){return this.purpleRef.catalog.getMetadata()}async getProducts(e){return this.purpleRef.catalog.getProducts({productId:e})}async getRedirects(e){const t="getRedirects_"+pW(e),n=this.transferState.hasKey(t);if(t&&n){const e=this.transferState.get(t,null);return this.transferState.remove(t),e}return this.withApiCache("getRedirects",this.purpleRef.catalog.getRedirects,e).then((e=>(this.transferState.onSerialize(t,(()=>e)),e)))}async lookupPathSegments(e){const t="lookupPathSegments_"+pW({pathSegments:e}),n=this.transferState.hasKey(t);if(t&&n){const e=this.transferState.get(t,null);return this.transferState.remove(t),e}return this.withApiCache("lookupPathSegments",this.purpleRef.catalog.lookupPathSegments,{pathSegments:e}).then((e=>(this.transferState.onSerialize(t,(()=>e)),e)))}isCatalogAPIAvailable(){return!!this.purpleRef.catalog}overrideConsentApis(){const e=this.injector.get(VL);this.purpleRef.consent.getConsent=async t=>e.getConsent(t),this.purpleRef.consent.grantConsent=async t=>{e.grantConsent(t)},this.purpleRef.consent.showPrivacyManager=()=>e.showPrivacyManager()}overrideContentOpenApi(e,t){this.purpleRef.content.open=async n=>{let r=!1;const i={OR:n.issueIds.map((e=>({id:{value:e}})))},o=(await this.getIssues({issueFilter:i})).nodes||[];if(!o.length)throw{code:"NO_ISSUES_FOUND"};const s=new Map;if(n.issueIds.forEach((e=>{const t=o.filter((t=>t.id===e));if(t.length>0){const n=t[0];n.access==CT.Access.FREE||n.purchaseData.purchased||(r=!0),s.set(e,n)}})),0===s.size)throw{code:"PAYMENT_REQUIRED"};const a=[];s.forEach(((e,t)=>{const n={id:t,name:e.name,publication:e.publication};a.push(n)}));const u=Math.max(a.findIndex((e=>e.id===n.initialIssue?.id)),0);this.issuePagerInfo={visibleIndex:u,currentIndex:u,issues:a,displayConfig:n.config},this.setIssuePagerInfo(this.issuePagerInfo);const c=a[u].id,l=n.initialIssue?.initialPage,d={};l&&(l.id?d.actionUrl=`purple://kiosk/issue/current/page/${l.id}/open`:l.index?d.actionUrl=`purple://kiosk/issue/current/page/index/${l.index}/open`:l.alias&&(d.actionUrl=`purple://kiosk/issue/current/page/alias/${l.alias}/open`)),n.config?.titleBar||(d.titleBar="false"),r&&(d.customerPreview=r);let h=[e.brand,"presenter",c];e.useCustomerDomain&&(h=["presenter",c]),t.navigate(h,{queryParams:d,queryParamsHandling:"merge"})}}async openContent(e){return new Promise(((t,n)=>{this.purpleRef.content.open(e).then((e=>t(e)),(e=>n(e)))}))}overrideCloseViewJsApi(){this.purpleRef.closeView=()=>{PP.InternalBrowser.stop()}}closeView(){this.purpleRef.closeView()}async getEntitlementUserData(){return this.purpleRef.entitlement.getUserData()}async login(e,t,n){const r={};if(e&&(r.username=e,r.password=t),this.purpleEnv.isUniversal){let e=n?.redirectUrl||JSON.parse(sessionStorage.getItem(CT.LAST_VISITED_PATH)).lastVisitedPath;e||(e=this.injector.get(mL).getHomeUrl());const t={redirectUrl:e};r.state=t}return this.purpleRef.entitlement.login(r)}async logout(e){const t={};if(this.purpleEnv.isUniversal){let n=e?.redirectUrl;n||(n=this.injector.get(mL).getHomeUrl());const r={redirectUrl:n};t.state=r}return this.purpleRef.entitlement.logout(t)}async checkForOauthEntitlement(){return await this.purpleRef.entitlement.checkForOauthEntitlement()}async loginWithToken(e){await this.purpleRef.entitlement.verifyAccessToken({accessToken:e})}async getMetadata(e){return this.purpleRef.metadata.getMetadata({keys:Object.values(CT.METADATA_KEY)})}share=e=>this.purpleRef.share.share(e);overrideStateApi(){this.purpleRef.state.version={major:2,minor:0}}async getState(e){return(await this.purpleRef.state.getState({key:e})).value}async setState(e,t){await this.purpleRef.state.setState({key:e,value:t})}async purchase(e){return this.purpleRef.store.purchase(e)}async subscribe(e,t,n){let r;if(t){const e=(await this.getSubscriptions({})).nodes.find((e=>e.purchased));r=e&&{oldProductId:e.productId,prorationMode:t}}return this.purpleRef.store.subscribe({productId:e,replaceProductParams:r,offerId:n})}async restorePurchases(){return this.purpleRef.store.restorePurchases()}async getPrice(e){return this.purpleRef.store.getPrices({productIds:[e]}).then((e=>e.priceInfos[0]))}async addSubscriptionCode(e){return this.purpleRef.store.addSubscriptionCode({code:e})}async removeSubscriptionCode(e){return this.purpleRef.store.removeSubscriptionCode({code:e})}async getSubscriptionCodes(){return(await this.purpleRef.store.getSubscriptionCodes()).subscriptionCodes}async getPrices(e){return this.purpleRef.store.getPrices({productIds:e})}async overrideTrackingApis(e){this.overrideLegacyTrackingApis(this.purpleRef,e),this.purpleRef.tracking.setUserAttribute=async t=>{e.setUserAttribute(t)},this.purpleRef.tracking.debug=async t=>{e.toggleLogging(t.logging)}}overrideLegacyTrackingApis(e,t){e.tracking.trackView=async(e,n)=>{"string"==typeof e?e={key:e,optionalParams:n}:n=e.optionalParams,t.sendView(e.key,n)},e.tracking.trackAction=async(e,n)=>{"string"==typeof e?e={key:e,optionalParams:n}:n=e.optionalParams,t.sendEvent(e.key,n)},e.tracking.trackPurchase=async(e,n)=>{"string"==typeof e?e={key:e,optionalParams:n}:n=e.optionalParams,t.sendPurchase(e.key,n)}}async trackAction(e,t){const n={key:AW(e),optionalParams:OW(t||{})};return this.purpleRef.tracking.trackAction(n)}async trackView(e,t){const n={key:AW(e),optionalParams:OW(t||{})};return this.purpleRef.tracking.trackView(n)}async trackPurchase(e){return e.key=AW(e.key),e.optionalParams&&(e.optionalParams=OW(e.optionalParams)),this.purpleRef.tracking.trackPurchase(e)}async setUserAttribute(e){return e.key=AW(e.key),this.purpleRef.tracking.setUserAttribute(e)}async initCache(){let e="";eN(this.platformId)&&(e=await this.getState(gW));const[t]=await Promise.all([this.getState(vW),this.updateBookmarks(),this.updateRepeatablePublicationProducts()]);yW===t?(this.PURPLE_API_CACHE=this.deserializeCache(e)||{},this.fillObjectCaches()):(console.debug(`Cache version: ${t}, Experience version: ${yW}: ignoring cache`),this.setState(vW,yW))}deserializeCache(e){if(e){const t=JSON.parse(e);if(this.doCacheEviction(t,168),t&&"object"==typeof t)return Object.keys(t).filter((e=>t[e].value)).reduce(((e,n)=>{const r=Promise.resolve(t[n].value);return r.timestamp=t[n].timestamp,r.value=t[n].value,{...e,[n]:r}}),{})}}doCacheEviction(e,t){let n=0;const r=Date.now()-1e3*t*60*60;for(const[t,i]of Object.entries(e))i?.timestamp<r&&(delete e[t],n++);n>0&&console.debug(`Removed ${n} obsolete cache entries (age > ${t}h)`)}fillObjectCaches(){Object.keys(this.PURPLE_API_CACHE).forEach((e=>{const t=e.indexOf(":"),n=e.slice(0,t),r=e.slice(t+1),i=this.PURPLE_API_CACHE[e];switch(n){case"getPublications":i.value.nodes.forEach((e=>this.PURPLE_PUBLICATION_CACHE[e.id]=e));break;case"getCategories":i.value.nodes.forEach((e=>this.PURPLE_TAXONOMY_CACHE[e.id]=e));break;case"getContents":i.value.nodes.forEach((e=>this.PURPLE_CONTENT_CACHE[e.id]=e));break;case"getCollections":i.value.nodes.forEach((e=>this.PURPLE_COLLECTION_CACHE[e.id]=e));break;case"getTaxonomies":i.value.nodes.forEach((e=>this.PURPLE_TAXONOMY_CACHE[this.getTaxonomyCacheKey(e,JSON.parse(r))]=e))}}))}getApiCache(e,t){const n=`${e}:${JSON.stringify(t)}`;if(this.PURPLE_API_CACHE[n])return this.PURPLE_API_CACHE[n];throw new Error("No cache entry")}withApiCache(e,t,n,r=!1){const i=`${e}:${JSON.stringify(n)}`;let o;return this.implUsedDirectly&&(o=Zone.current.scheduleMacroTask(i,(()=>{}),{},(()=>{}),(()=>{}))),!r&&this.PURPLE_API_CACHE[i]||this.createCacheEntry(i,t(n)),this.PURPLE_API_CACHE[i].then((e=>(o&&o.invoke(),e))).catch((e=>{throw o.invoke(),e}))}createCacheEntry(e,t){const n=this.PURPLE_API_CACHE[e];var r,i;this.PURPLE_API_CACHE[e]=(r=t,i=Date.now(),isFinite(i)||(i=Date.now()),r instanceof Promise||(r=Promise.resolve(r)),r.timestamp=i,r);const o=this.PURPLE_API_CACHE[e];o.then((t=>{o.value=t,delete this.PURPLE_API_ERRORS[e],this.serializeCache()}),(t=>{delete this.PURPLE_API_CACHE[e],n&&(this.PURPLE_API_CACHE[e]=n),this.serializeCache(),this.PURPLE_API_ERRORS[e]=o}))}serializeCache(){if(this.PURPLE_API_CACHE){let e="",t=0;const n=[],r=Object.keys(this.PURPLE_API_CACHE).filter((e=>this.PURPLE_API_CACHE[e].value)).reduce(((e,t)=>(e[t]={timestamp:this.PURPLE_API_CACHE[t].timestamp,value:this.PURPLE_API_CACHE[t].value},n.push([t,e[t].timestamp]),e)),{});for(;e=JSON.stringify(r),!(2*e.length<=5e6)&&(0==t&&n.sort(((e,t)=>t[1]-e[1])),n.length);)if(delete r[n.pop()[0]],t++,t>10){console.warn(`Tried to shrink PURPLE_API_CACHE ${t} times, still has size ${2*e.length} > 5000000`);break}eN(this.platformId)&&this.setState(gW,e)}}clearCache(){this.setState(gW,"")}bustApiCache(){this.PURPLE_API_CACHE={},this.PURPLE_CONTENT_CACHE={},this.PURPLE_PUBLICATION_CACHE={},this.clearCache()}getTaxonomyCacheKey(e,t){return[e.type,e.id,t?.fetchOptions?.seoMetadata&&"seo"].filter((e=>!!e)).join("-")}getPublicationsFromCache(e){return this.getApiCache("getPublications",e)}getIssuesFromCache(e){const t=(0,HT.oQ)(e);return this.getApiCache("getContents",t)}getCatalogContentsFromCache(e){return this.getApiCache("getContents",e)}getCollectionsFromCache(e){return this.getApiCache("getCollections",e)}getCategoriesFromCache(e){return this.getApiCache("getCategories",e)}getTaxonomiesFromCache(e){return this.getApiCache("getTaxonomies",e)}getCatalogMenusFromCache(e){return this.getApiCache("getMenus",e)}searchFromCache(e){return this.getApiCache("search",e)}async getIssue(e,t=!1,n){try{if(this.PURPLE_CONTENT_CACHE[e]&&!t)return this.PURPLE_CONTENT_CACHE[e];{const n={first:1};return e&&(n.issueFilter={id:{value:e}}),(await this.getIssues(n,t)).nodes[0]}}catch(t){if(this.PURPLE_CONTENT_CACHE[e])return this.PURPLE_CONTENT_CACHE[e];if(n){const t={...CW,...n};return this.PURPLE_CONTENT_CACHE[e]=t,t}throw t}}getIssueFromCache(e){if(this.PURPLE_CONTENT_CACHE[e])return this.PURPLE_CONTENT_CACHE[e];{const t=this.getIssuesFromCache({first:1,issueFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getCatalogContent(e,t=!1,n){try{if(this.PURPLE_CONTENT_CACHE[e]&&!t&&MW(this.PURPLE_CONTENT_CACHE[e],n))return this.PURPLE_CONTENT_CACHE[e];{const r={first:1,fetchOptions:n,contentFilter:{id:{value:e}}},i=(await this.getCatalogContents(r,t)).nodes[0];if(!i)throw new Error("CatalogContent not found");return i}}catch(t){if(this.PURPLE_CONTENT_CACHE[e])return this.PURPLE_CONTENT_CACHE[e];throw t}}getCatalogContentFromCache(e){if(this.PURPLE_CONTENT_CACHE[e])return this.PURPLE_CONTENT_CACHE[e];{const t=this.getCatalogContentsFromCache({first:1,contentFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getCollection(e,t=!1,n){try{if(this.PURPLE_COLLECTION_CACHE[e]&&!t)return this.PURPLE_COLLECTION_CACHE[e];{const r={first:1};e&&(r.collectionFilter={id:{value:e}}),n&&(r.elementsParams=n);const i=(await this.getCollections(r,t)).nodes[0];if(!i)throw new Error(`Collection ${e} not found`);return i}}catch(t){if(this.PURPLE_COLLECTION_CACHE[e])return this.PURPLE_COLLECTION_CACHE[e];throw t}}getCollectionFromCache(e){if(this.PURPLE_COLLECTION_CACHE[e])return this.PURPLE_COLLECTION_CACHE[e];{const t=this.getCollectionsFromCache({first:1,collectionFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getMenu(e,t=!1,n){try{if(this.PURPLE_MENU_CACHE[e]&&!t)return this.PURPLE_MENU_CACHE[e];{const r={first:1,...n};e&&(r.contentFilter={id:{value:e}});const i=(await this.getMenus(r,t)).nodes[0];if(!i)throw new Error("CatalogMenu not found");return i}}catch(t){if(this.PURPLE_MENU_CACHE[e])return this.PURPLE_MENU_CACHE[e];throw t}}getCatalogMenuFromCache(e){if(this.PURPLE_MENU_CACHE[e])return this.PURPLE_MENU_CACHE[e];{const t=this.getCatalogMenusFromCache({first:1,issueFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getPublication(e,t=!1){if(this.PURPLE_PUBLICATION_CACHE[e]&&!t)return this.PURPLE_PUBLICATION_CACHE[e];{const n={first:1};return n.publicationFilter={id:{value:e}},(await this.getPublications(n,t)).nodes[0]}}getPublicationFromCache(e){if(this.PURPLE_PUBLICATION_CACHE[e])return this.PURPLE_PUBLICATION_CACHE[e];{const t=this.getPublicationsFromCache({first:1,publicationFilter:{id:{value:e}}});return{...t.then((e=>e.nodes[0])),timestamp:t.timestamp}}}async getCategory(e,t=!1){if(this.PURPLE_TAXONOMY_CACHE[e])return this.PURPLE_TAXONOMY_CACHE[e];{const n={first:1};return e&&(n.categoryFilter={id:{value:e}}),(await this.getCategories(n,t)).nodes[0]}}async getTaxonomy(e,t,n=!1,r){const i=this.getTaxonomyCacheKey({id:e,type:t},{fetchOptions:r});if(this.PURPLE_TAXONOMY_CACHE[i])return this.PURPLE_TAXONOMY_CACHE[i];{const i={id:{value:e}},o={first:1,fetchOptions:r,taxonomyFilter:t?{AND:[i,{type:{value:t}}]}:i};return(await this.getTaxonomies(o,n)).nodes[0]}}initServerPlatform(e,t,n,r,i,o,s){s.loadConfig(),this.initPurpleRef(o,t),this.implUsedDirectly=!0,this.overrideJsApisForServer(e,t,n,r,i),window.purple=this.purpleRef}initPurpleRef(e,t){const n=Object.values(jN);this.purpleRef=new lW(t,((t,r)=>{this.updateEntitlementStorage(n,"entitlementUserData",r,t),this.updateSubscriptionCodeStorage(r,t),e.updateMetadata()}))}updateEntitlementStorage(e,t,n,r){if(e.includes(n)){const e=JSON.parse(localStorage.getItem(t))||{};e[n]=r[n],localStorage.setItem(t,JSON.stringify(e))}}updateSubscriptionCodeStorage(e,t){if("subscriptionCodes"===e){const e=t.subscriptionCodes||[];localStorage.setItem("subscriptionCodes",JSON.stringify(e))}}overrideJsApisForServer(e,t,n,r,i){this.overrideAppPerformActionUrlApi(r),this.overrideBookmarkApis(t),this.overrideCatalogApis(),this.overrideConsentApis(),this.overrideContentOpenApi(e,n),this.overrideTrackingApis(i),this.overrideCloseViewJsApi(),this.overrideStateApi()}initAppPlatform(){this.purpleRef=window.purple}initPurpleExperience(e,t){this.purpleRef.experience=new yL(this.injector),this.purpleRef.experience.global=t.getGlobalData(),this.purpleRef.experience.appWebConfig=e}subscribeToConfigLoaderService(e){e.getConfig().pipe(Le()).subscribe((e=>{this._downloadOptions=e[kT.O.DOWNLOAD_OPTIONS]||{},window.isIssueLocked&&(this.isContentLocked=window.isIssueLocked)}))}initListeners(){this.addInvalidationListener((()=>this.invalidate()));let e=!0;this.addLifecycleListener((t=>{e||window.dispatchEvent(new CustomEvent("storefront-lifecycle",{detail:t})),e=!1})),this.addConnectionStateListener((e=>{this.connectionStateSubject.next(e)}))}};EW=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}([Wa({providedIn:"root"}),fW(0,Nn(sc)),fW(3,Nn(PW))],EW);class _W{static injector}async function bW(e,t,n=(e=>Promise.resolve(!e.purchaseData.purchased)),r=null,i=!0,o){let s,a,u;if(o||(o=_W.injector.get(EW)),Array.isArray(e)?a=e.filter((e=>!!e)):s=e,a?u=a.map((e=>e.issue||e)):s?(r?(await s.initializeIssues(),u=s.getIssues(i),u.length&&function(e,t,n){const r=e.getIssues(!0);return e.issue?.id!==t.id&&!r.find((e=>e.id===t.id))||!!r.find((e=>n[e.id]&&!IT(e,n[e.id])))}(s,t,r)&&(await s.initializeIssues(!0),u=s.getIssues(i))):(await s.initializeIssues(!0),u=s.getIssues(i)),u=u.filter((e=>e.type!==CT.IssueType.ISSUE))):u=[],u.length){const e=[];for(const t of u)await n(t,o)&&t.previewIssue?e.push(t.previewIssue.id):e.push(t.id);return e}return[await n(t,o)&&t.previewIssue?t.previewIssue.id:t.id]}function SW(e,t){let n;const r={OR:e.map((e=>({id:{value:e}})))};return n=t?{AND:[r,t]}:r,n}const CW={contentType:CT.CatalogContentType.ISSUE,id:null,name:null,index:null,description:null,version:null,state:null,type:null,publicationId:null,comingSoon:null,purchasable:void 0,purchased:void 0,access:CT.Access.PURCHASABLE,purchasedBy:null,properties:{},numberOfPages:null,contentLength:null,publicationDate:null,lastModified:null,thumbnails:{default:null},thumbnailsExtended:{},tags:[],categories:[],purchaseData:{purchased:void 0,purchasedBy:[]}};function IW(e,t,n,r=""){let i=e?{[r+"ISSUE_ID"]:e.id,[r+"ISSUE_NAME"]:e.name,[r+"ISSUE_TYPE"]:e.type,[r+"ISSUE_CATEGORIES"]:e.categories&&e.categories.join(","),[r+"ISSUE_TAGS"]:e.tags&&e.tags.join(","),[r+"ISSUE_PRODUCT_ID"]:e.productId,[r+"ISSUE_PURCHASABLE"]:"boolean"==typeof e.purchasable?e.purchasable.toString():e.purchasable,[r+"ISSUE_PURCHASED"]:"boolean"==typeof e.purchased?e.purchased.toString():e.purchased,...e.properties?Object.keys(e.properties).reduce(((t,n)=>({...t,[`${r}ISSUE_PROPERTY_${AW(n)}`]:e.properties[n]})),{}):{}}:{};return n&&(i={...i,[r+"ISSUE_PRICE"]:n.formattedPrice,[r+"ISSUE_PRICE_VALUE"]:n.price.toString(),[r+"ISSUE_PRICE_CURRENCY"]:n.currency}),t&&(i={...i,...DW(t,r),[r+"ISSUE_LATEST"]:t.currentIssueId===e.id?"true":"false"}),i}function wW(e,t){let n=e?{ISSUE_TYPE:e.type,ISSUE_CATEGORIES:e.categories&&e.categories.join(","),ISSUE_TAGS:e.tags&&e.tags.join(","),ISSUE_PRODUCT_ID:e.productId,ISSUE_PURCHASABLE:"boolean"==typeof e.purchasable?e.purchasable.toString():e.purchasable,ISSUE_PURCHASED:"boolean"==typeof e.purchased?e.purchased.toString():e.purchased}:{};return t&&(n={...n,...TW(t),ISSUE_LATEST:t.currentIssueId===e.id?"true":"false"}),n}function DW(e,t=""){return e?{[t+"PUBLICATION_ID"]:e.id,[t+"PUBLICATION_NAME"]:e.name,[t+"PUBLICATION_TYPE"]:e.type,...e.properties?Object.keys(e.properties).reduce(((n,r)=>({...n,[`${t}PUBLICATION_PROPERTY_${AW(r)}`]:e.properties[r]})),{}):{}}:{}}function TW(e){return e?{PUBLICATION_TYPE:e.type}:{}}function AW(e){return e.toUpperCase().replace(/-/g,"_")}function OW(e){return Object.keys(e).reduce(((t,n)=>((e[n]||"boolean"==typeof e[n])&&(t[AW(n)]=e[n]),t)),{})}function NW(e){return Object.values([wT.rg.ISSUE_ARTICLE,wT.rg.READ_MODE_ARTICLE]).includes(e)}function MW(e,t){return n=e,n?.contentType===CT.CatalogContentType.BUNDLE?(!t.includeBundledContent||t.includeBundledContent&&!!e.contents)&&(!t.seoMetadata||t.seoMetadata&&!!e.seoMetadata):LT(e)?(!t.includeBlocks||t.includeBlocks&&!!e.content)&&(!t.includeHtml||t.includeHtml&&!!e.contentHtml)&&(!t.includeResources||t.includeResources&&!!e.resources)&&(!t.seoMetadata||t.seoMetadata&&!!e.seoMetadata):!!function(e){return e?.contentType===CT.CatalogContentType.ISSUE}(e)||void 0;var n}CT.Access.PURCHASABLE;const PW=new jt("PurpleEnvironment");new jt("PurpleEnvironmentBackend")},4620:(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function i(e={},t={}){Object.keys(t).forEach((n=>{void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&i(e[n],t[n])}))}n.d(t,{YE:()=>s,zk:()=>u});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const e="undefined"!=typeof document?document:{};return i(e,o),e}const a={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function u(){const e="undefined"!=typeof window?window:{};return i(e,a),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nc=void 0;var __webpack_exports__={};(()=>{"use strict";const e={oval:__webpack_require__(2017).A,puff:__webpack_require__(1224).A,rings:__webpack_require__(9622).A,spinningCircles:__webpack_require__(2447).A,tail:__webpack_require__(5300).A,dots:__webpack_require__(3600).A,segments:__webpack_require__(2959).A};var t,n,r=__webpack_require__(4409);!function(e){e.NONE="none",e.HIDE="hide",e.SHRINK="shrink"}(t||(t={})),function(e){e.BACK="back",e.MENU="menu"}(n||(n={})),t.SHRINK,n.MENU;const i={CONTENT_TITLE:"%s",CONTENT_DESCRIPTION:"%s",CONTENT_PUBLICATION_TITLE:"%s",CONTENT_ACTION_PURCHASE:"Purchase for %s",CONTENT_ACTION_PURCHASE_LOADING:"Loading price...",CONTENT_ACTION_PURCHASE_UNAVAILABLE:"Price not available",CONTENT_ERROR:"Error loading content data",CONTENT_ERROR_BUTTON:"Try again",CONTENT_UPDATE_BADGE_MESSAGE:"Update available",CONTENT_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",CONTENT_DESCRIPTION_TOGGLE_EXPAND:"Show more",CONTENT_ACTION_READ:"Read",CONTENT_ACTION_SUBSCRIBE:"Subscribe",CONTENT_ACTION_COUPON:"Coupon",CONTENT_ACTION_LOGIN:"Login",ISSUE_DESCRIPTION_TOGGLE_EXPAND:"Show more",ISSUE_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",ISSUE_ACTION_READ:"Read",ISSUE_ACTION_PURCHASE:"Purchase for %s",ISSUE_ACTION_PURCHASE_LOADING:"Loading price...",ISSUE_ACTION_PURCHASE_UNAVAILABLE:"Price not available",ISSUE_ACTION_DOWNLOAD:"Download",ISSUE_ACTION_PREVIEW:"Preview",ISSUE_ACTION_SUBSCRIBE:"Subscribe",ISSUE_ACTION_DOWNLOADING:"Downloading...",ISSUE_ACTION_DELETE:"Delete",ISSUE_ACTION_LOGIN:"Login",ISSUE_ACTION_CANCEL:"Cancel",ISSUE_ACTION_COUPON:"Coupon",ISSUE_ERROR:"Error loading issue data",ISSUE_ERROR_BUTTON:"Try again",ISSUE_DOWNLOAD_CONFIRM_TITLE:"Download issue",ISSUE_DOWNLOAD_CONFIRM_MESSAGE:'Downloading issue "%(issue.name)s" will occupy %(download.totalSize)s MB on your device. Do you want to download this issue?',ISSUE_DOWNLOAD_CONFIRM_OK:"OK",ISSUE_DOWNLOAD_CONFIRM_CANCEL:"Cancel",ISSUE_TITLE:"%s",ISSUE_DESCRIPTION:"%s",ISSUE_PUBLICATION_TITLE:"%s",ISSUE_DELETE_TITLE:"Delete issue",ISSUE_DELETE_MESSAGE:'Do you really want to delete the issue %s"?',ISSUE_DELETE_CONFIRM:"Delete",ISSUE_DELETE_CANCEL:"Cancel",ISSUE_UPDATE_BADGE_MESSAGE:"Update available",ISSUE_UPDATE_TITLE:"Update available",ISSUE_UPDATE_MESSAGE:'A new version of this issue "%s" is available. Would you like to read the old version or the new one?',ISSUE_UPDATE_NEW_VERSION:"Read new version",ISSUE_UPDATE_OLD_VERSION:"Read old version",PUBLICATION_TITLE:"%s",PUBLICATION_DESCRIPTION:"%s",PUBLICATION_ISSUES_PER_YEAR:"<strong>%s issues</strong> published per year",PUBLICATION_CONTENTS_PER_YEAR:"<strong>%s contents</strong> published per year",PUBLICATION_SUBSCRIPTIONS_TITLE:"Store Subscriptions",PUBLICATION_SUBSCRIPTIONS_HEADER:"Introduction text regarding subscriptions",PUBLICATION_SUBSCRIPTIONS_FOOTER:"<strong>Terms of use</strong> Terms of use go here",PUBLICATION_SUBSCRIPTIONS_RESTORE_PURCHASES:"Restore Purchases",PUBLICATION_SUBSCRIPTIONS_MANAGE_SUBSCRIPTIONS:"Manage Subscriptions",DROPDOWN_ISSUE_STATE_RESET:"All Issues",DROPDOWN_ISSUE_STATE_PURCHASED:"My Issues",DROPDOWN_ISSUE_STATE_LOCAL:"My Downloads",DROPDOWN_CATEGORY_RESET:"All categories",TOGGLE_PUBLICATION_TYPE_KIOSK:"Issues",TOGGLE_PUBLICATION_TYPE_CHANNEL:"Articles",SEARCH_FIELD_PLACEHOLDER:"Search...",SEARCH_RESULT_TITLE:"Search results",SEARCH_RESULT_EMPTY_TITLE:"Search Results",SEARCH_RESULT_TOGGLE_EXPAND:"Show more",SEARCH_RESULT_TOGGLE_COLLAPSE:"Show less",SEARCH_RESULT_PAGE_HIT_EXCERPT:"%s",SEARCH_RESULT_PAGE_LABEL_MESSAGE:"Page %s",SEARCH_RESULT_NO_SEARCH:"Please enter a search phrase.",SEARCH_RESULT_NO_RESULT:'No content was found for your search phrase "%1$s". Please try again.',LOGIN_TITLE:"Login",LOGIN_TEASER:"Log in for more content.",LOGIN_TEASER_RELOGIN:"You have been logged out. Please log in again.",LOGIN_HELP:'Forgotten your password? <a href="https://sprylab.com" target="_blank">recover</a>',LOGIN_USERNAME_PLACEHOLDER:"Email",LOGIN_PASSWORD_PLACEHOLDER:"Password",LOGIN_SUBMIT_BUTTON:"Log in",LOGIN_LOGOUT_TITLE:"Logout",LOGIN_LOGOUT_TEASER:"You can log out here.",LOGIN_LOGOUT_HELP:"",LOGIN_LOGOUT_BUTTON:"Log out",LOGOUT_TITLE:"Logout",LOGOUT_MESSAGE:"Do you really want to logout?",LOGOUT_BUTTON_CONFIRM:"Logout",LOGOUT_BUTTON_CANCEL:"Cancel",COUPON_TITLE:"Coupon",COUPON_TEASER:"Here you can enter your coupon code.",COUPON_CODE_TITLE:"Please enter your coupon code",COUPON_CODE_PLACEHOLDER:"coupon code",COUPON_SUBMIT_BUTTON:"Activate",COUPON_ACTIVATED_TITLE:"Your activated coupon codes",COUPON_DEACTIVATE_BUTTON:"Delete",COUPON_VALID_TITLE:"Add coupon",COUPON_VALID_MESSAGE:"The code you entered is valid.",COUPON_VALID_BUTTON_OK:"OK",COUPON_VALID_BUTTON_CANCEL:"Cancel",COUPON_DEACTIVATE_TITLE:"Deactivate coupon code",COUPON_DEACTIVATE_MESSAGE:'Do you really want to deactivate the code %s"?',COUPON_DEACTIVATE_BUTTON_CONFIRM:"OK",COUPON_DEACTIVATE_BUTTON_CANCEL:"Cancel",DIALOG_TITLE:"Dialog",DIALOG_ERROR:"Error",ERROR_SUBSCRIPTION:"The subscription could not be purchased. Please try again later.",ERROR_PURCHASE:"The purchase could not be completed. %s",ERROR_PUBLICATION_COMPLETION:"Product data could not be loaded. %s",ERROR_SEARCH:"The search could not be performed. Please try again later",ERROR_LOGIN:"The login could not be performed. %s",ERROR_COUPON_INVALID:"The code you entered is not valid.",ERROR_COUPON_INVALID_BUTTON:"OK",ERROR_COUPON_EXISTS:"This code is already added.",ERROR_COUPON_EXISTS_BUTTON:"OK",ERROR_COUPON_OFFLINE:"No internet connection! This code could not be added.",ERROR_COUPON_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE:"This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_OFFLINE:"No internet connection! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_UNKNOWN:"Code is unknown! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_UNKNOWN_BUTTON:"OK",ERROR_DOWNLOAD:"Download failed for %2$s. %1$s",ERROR_PREVIEW_OPEN:"Error opening preview. %s",ERROR_CONTENT_OPEN:"Error opening content. %s",ACCESS_DENIED:"Access denied.",ALREADY_LOGGED_IN:"You are already logged in.",USER_DEACTIVATED:"Your account is deactivated.",INSTALLATION_LIMIT_EXCEEDED:"The limit of simultaneously logged in devices has been reached.",ALREADY_OWNED:"You already own this product.",CANCELLED:"Process was cancelled by user.",CONFIGURATION_ERROR:"Error in remote system.",ISSUE_NOT_FOUND:"The requested content could not be found.",INSUFFICIENT_SPACE:"The storage on your device is not sufficient.",INVALID_CREDENTIALS:"Please check your username and password.",NETWORK:"Please check your internet connection.",NO_ISSUES_FOUND:"The requested content could not be found.",NOT_FOUND:"The requested content could not be found.",NOT_LOGGED_IN:"You are not logged in.",PAYMENT_REQUIRED:"Access denied.",RESOURCE_NOT_FOUND:"The requested resource could not be found.",UNKNOWN:"An unknown error occurred.",UNKNOWN_OFFER:"The requested offer could not be found.",UNKNOWN_PRODUCT:"The requested product could not be found.",UNKNOWN_VENDOR:"Vendor is unknown.",VALIDATION_FAILED:"The purchase could not be validated.",PULL_TO_REFRESH_PULL:"Pull to refresh",PULL_TO_REFRESH_RELEASE:"Release to refresh",LIST_NO_RESULTS:"There is no content matching the filter criteria.",LIST_ERROR:"Error loading data. %s",LIST_ERROR_BUTTON:"Reload",LIST_ACTION_SELECT_ALL:"Select all",LIST_ACTION_UNSELECT_ALL:"Un-select all",LIST_ACTION_CONFIRM:"Confirm",LIST_ACTION_RESET:"Reset",LIST_ACTION_NEXT:"Next Page Set",LIST_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",BOOKMARK_TITLE:"%s",MENU_ITEM:"%s",BOOKMARK_CREATION_DATE_MESSAGE:"Added on %s",BOOKMARK_PAGE_LABEL_MESSAGE:"Page %s",BOOKMARK_NO_RESULTS:"There are no bookmarks.",BOOKMARK_ERROR:"Error loading bookmarks",BOOKMARK_ERROR_BUTTON:"Reload",BOOKMARK_DELETE_TITLE:"Delete bookmark",BOOKMARK_DELETE_MESSAGE:"Are you sure you want to delete this bookmark?",BOOKMARK_DELETE_MESSAGE_WITH_TITLE:'Are you sure you want to delete the bookmark for "%s"?',BOOKMARK_DELETE_All_TITLE:"Delete bookmarks",BOOKMARK_DELETE_ALL_MESSAGE:"Are you sure you want to delete all bookmarks?",BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE:'Are you sure you want to delete all bookmarks for the issue "%s"?',BOOKMARK_DELETE_CONFIRM:"Delete",BOOKMARK_DELETE_CANCEL:"Cancel",ERROR_DELETE_BOOKMARK:"This bookmark could not deleted. %s",ERROR_DELETE_BOOKMARK_WITH_TITLE:'The bookmark for "%2$s" could not deleted. %1$s',ERROR_DELETE_ALL_BOOKMARKS:"Not all bookmarks could be deleted. %s",ERROR_ADD_BOOKMARK:"Bookmark could not be created. %1$s",ERROR_SHARE:"Content could not be shared.",PUBLICATION_COMPLETION_TITLE:"Complete your collection",PUBLICATION_COMPLETION_PROMOTION_TEXT:"Get all %1$s back issues and save over %2$s<br>Was %3$s Now %4$s",PUBLICATION_COMPLETION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_TITLE:"%s",SUBSCRIPTION_ISSUES_PROMOTION:"%1$s issues for %2$s.",SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION:"%1$s issues for the price of %2$s.<br>Was %3$s Now %4$s.",SUBSCRIPTION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE:"Price not available",SUBSCRIPTION_PRICE:"%s",SUBSCRIPTION_PRICE_FINAL:"Then %1$s / %2$s %3$s",SUBSCRIPTION_PRICE_INTRODUCTORY:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_PRICE_TRIAL:"Free for %1$s %2$s",SUBSCRIPTION_PRICE_DISCOUNT:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_DESCRIPTION:"%s",MONTH:"Month",MONTHS:"Months",YEAR:"Year",YEARS:"Years",WEEK:"Week",WEEKS:"Weeks",DAY:"Day",DAYS:"Days",RESTORE_PURCHASES:"Restore purchases",RESTORE_PURCHASES_CONFIRM:"Do you want to restore your purchases?",RESTORE_PURCHASES_SUCCEEDED:"Purchases restored successfully",RESTORE_PURCHASES_FAILED:"Restoring purchased failed",VIEW_ERROR:"Error loading data. %s",VIEW_ERROR_BUTTON:"Reload",ERROR_PRODUCT:"Product data could not be loaded. %s",ERROR_DEEP_LINK_LANDING:"Shared issue could not be opened. %s",APP_MENU_XML_ERROR_MESSAGE:"An Error occured loading app_menu.xml: %s (message: %s)",APP_MENU_XML_ERROR_TITLE:"Error loading app menu",APP_MENU_XML_ERROR_CONFIRM:"Ok",TOC_TITLE:"TABLE OF CONTENTS"};r.O.URL,r.O.VIEW,r.O.MESSAGE,r.O.APP_BAR,r.O.VIEW,r.O.MESSAGE,r.O.APP_BAR,t.NONE,t.NONE,n.BACK,r.O.NAVIGATION,r.O.DOWNLOAD_OPTIONS;var o=__webpack_require__(1606);const s="tail",a=["DIALOG_ERROR","ERROR_DEEP_LINK_LANDING",...Object.keys(o.ERROR_CODE)].reduce(((e,t)=>({...e,[t]:i[t]})),{});var u=__webpack_require__(4664),c=__webpack_require__(5420),l=__webpack_require__(4620);const d=(0,l.YE)(),h=(0,l.zk)(),p={message:"",actions:[],tag:"div",container:d.body,messages:{DIALOG_MESSAGE_OK:"OK",DIALOG_MESSAGE_CONFIRM:"Confirm",DIALOG_MESSAGE_CANCEL:"Cancel"}};class f{config;element;keydownListener=e=>{if(e.stopPropagation(),e.preventDefault(),13===e.which){const e=this.config.actions[this.config.actions.length-1];e&&(e.callback(),this.destroy())}};constructor(e){this.config={...p,...e,messages:{...p.messages,...(e||{}).messages}},this.element=d.createElement(this.config.tag)}render(){h.addEventListener("keypress",this.keydownListener,{once:!0}),this.element.classList.add("purple-dialog");const e=/apple/i.test(navigator.vendor);this.element.classList.add(e?"ios":"android"),this.element.addEventListener("touchstart",(e=>e.preventDefault()));const t=d.createElement("section");if(this.config.title){const e=d.createElement("h1");e.innerHTML=this.config.title,t.appendChild(e)}const n=d.createElement("p");n.innerHTML=this.config.message,t.appendChild(n);const r=d.createElement("div");this.config.actions.forEach((e=>{const t=d.createElement("button");e.type&&t.classList.add(e.type),t.innerText=this.config.messages[e.message]||e.message,t.addEventListener("touchstart",(e=>e.stopPropagation()),{passive:!0}),t.addEventListener("click",(()=>{e.callback(),this.destroy()})),r.append(t)})),t.appendChild(r),this.element.appendChild(t),this.config.container.appendChild(this.element)}destroy(){this.element.remove()}}const g=(0,l.zk)(),m={show:(e,t,n,r)=>new Promise((i=>{for(const e of t){const t=e.callback;e.callback=()=>{t(),i()}}new f({message:e,actions:t,title:n,...r}).render()})),confirm:(e,t,n)=>new Promise(((r,i)=>{new f({message:e,actions:[{message:"DIALOG_MESSAGE_CANCEL",type:"cancel",callback:i},{message:"DIALOG_MESSAGE_CONFIRM",type:"confirm",callback:r}],title:t,...n}).render()})),alert:(e,t,n)=>new Promise((r=>{new f({message:e,actions:[{message:"DIALOG_MESSAGE_OK",callback:r}],title:t,...n}).render()}))};g.PurpleDialog=m;var v=__webpack_require__(9471),y=__webpack_require__(2591),E=__webpack_require__.n(y),_=__webpack_require__(1740),b=__webpack_require__.n(_),S=__webpack_require__(8128),C=__webpack_require__.n(S),I=__webpack_require__(855),w=__webpack_require__.n(I),D=__webpack_require__(3051),T=__webpack_require__.n(D),A=__webpack_require__(3656),O=__webpack_require__.n(A),N=__webpack_require__(3122),M={};M.styleTagTransform=O(),M.setAttributes=w(),M.insert=C().bind(null,"head"),M.domAPI=b(),M.insertStyleElement=T(),E()(N.A,M),N.A&&N.A.locals&&N.A.locals;var P,x=__webpack_require__(7035),R={};R.styleTagTransform=O(),R.setAttributes=w(),R.insert=C().bind(null,"head"),R.domAPI=b(),R.insertStyleElement=T(),E()(x.A,R),x.A&&x.A.locals&&x.A.locals,function(e){e.SHARING="SHARING",e.PUSH="PUSH"}(P||(P={}));const k={openContent:{mode:o.DisplayMode.MODAL,titleBar:!1},openContentFallback:{type:"navigate",url:"resource://dynamic/storefront/index.html#/home(modal:popup/issueDetails/SLIDE_IN)?issue=%(issue.id)s"},mode:P.SHARING},L=l.window.purple;class F{spinner;htmlAboveSpinner;htmlBelowSpinner;messages;issue;config;addLoadingContents(){this.spinner=l.document.createElement("svg"),this.spinner.innerHTML=e[s],this.spinner.classList.add("storefront-spinner"),this.spinner.setAttribute("type",s),this.htmlAboveSpinner=l.document.createElement("div"),this.htmlAboveSpinner.classList.add("custom-html","above","uninitialized"),this.htmlBelowSpinner=l.document.createElement("div"),this.htmlBelowSpinner.classList.add("custom-html","below","uninitialized"),l.document.body.appendChild(this.htmlAboveSpinner),l.document.body.appendChild(this.spinner),l.document.body.appendChild(this.htmlBelowSpinner)}addCustomHTMLContents(){this.config.customHTML?.aboveSpinner&&(this.htmlAboveSpinner.innerHTML=this.config.customHTML.aboveSpinner,this.htmlAboveSpinner.classList.remove("uninitialized")),this.config.customHTML?.belowSpinner&&(this.htmlBelowSpinner.innerHTML=this.config.customHTML.belowSpinner,this.htmlBelowSpinner.classList.remove("uninitialized"))}async initMessages(){const e=await(0,u.hI)("resource://dynamic/storefront/assets/messages.json").catch((e=>({})));this.messages={...a,...e}}async navigateOrActionUrl(e){return async function(e,t,n){if(e.startsWith("purple://")&&window.purple.app.performActionUrl)return window.purple.app.performActionUrl({actionUrl:e});window.location.href=e}(e=(0,v.vsprintf)(e,{issue:this.issue}))}async initConfig(){const e=await(0,u.hI)("resource://dynamic/storefront/deep-link-landing/config.json").catch((e=>({})));this.config={...k,...e}}async initIssue({issueId:e,externalIssueId:t}){let n;e?n={id:{value:e}}:t&&(n={externalIssueId:{value:t}}),this.issue=(await L.catalog.getIssues({issueFilter:n})).nodes[0]}getIssueId(){return new URL(l.window.location.href).searchParams.get("issue")}getExternalIssueId(){return new URL(l.window.location.href).searchParams.get("external-issue-id")}hasAccess(e){return e.access===o.Access.FREE||e.access===o.Access.PURCHASABLE&&e.purchaseData.purchased}async openIssue(){const e=new c.Vf({issue:this.issue});return await e.init(),e.open({initialIssueId:this.issue.id,openContentConfig:this.config.openContent})}async setSharedIssueState(){return L.state.setState({key:"SHARED_ISSUE",value:this.issue.id})}addVisibilityListener(){l.document.addEventListener("visibilitychange",(e=>{"visible"===l.document.visibilityState&&L.app.performActionUrl({actionUrl:"purple://app/home/open"})}))}async handleError(e){return this.spinner.classList.add("hidden"),e?.code||(e={...e,code:o.ERROR_CODE.UNKNOWN}),await m.alert((0,v.vsprintf)(this.messages.ERROR_DEEP_LINK_LANDING,[e.code]),this.messages.DIALOG_ERROR),L.app.performActionUrl({actionUrl:"purple://app/home/open"})}getMode(){let e=new URL(l.window.location.href).searchParams.get("mode");if(e&&![P.PUSH,P.SHARING].includes(e))throw console.error("only allowed mode params: SHARING or PUSH"),{code:o.ERROR_CODE.ERROR_ILLEGAL_ARGUMENTS};return e||(e=this.config.mode),e}async handleOpenContentFallback(){switch(this.config.openContentFallback.type){case"navigate":await this.navigateOrActionUrl(this.config.openContentFallback.url);break;case"preview":this.issue.previewIssue?await this.openIssue():await this.navigateOrActionUrl(this.config.openContentFallback.fallback.url);break;default:console.error("unknown fallback type "+this.config.openContentFallback)}}async run(){this.addLoadingContents();const e=this.getIssueId(),t=this.getExternalIssueId();try{if(!e&&!t)throw{code:o.ERROR_CODE.ISSUE_NOT_FOUND};await Promise.all([this.initMessages(),this.initConfig(),this.initIssue({issueId:e,externalIssueId:t})]),this.addCustomHTMLContents();const n=this.getMode();switch(this.addVisibilityListener(),n){case P.SHARING:this.setSharedIssueState(),await this.openIssue();break;case P.PUSH:this.hasAccess(this.issue)?await this.openIssue():this.handleOpenContentFallback();break;default:console.error("unhandled mode "+n)}}catch(e){this.handleError(e)}}}document.addEventListener("DOMContentLoaded",(()=>(new F).run()))})()})();
|