@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 @@
|
|
1
|
+
var vb=Object.freeze,Uw=Object.defineProperty,Ri=(ee,_)=>vb(Uw(ee,"raw",{value:vb(_||ee.slice())})),_b,Eb,yb,Cb,Sb,bb,Ib,Tb,Db,Ob,Ab,Pb,Mb,wb,Rb,Nb,Lb,xb,kb,Fb,Ub,Bb,jb,Vb,$b,Kb,Hb,Wb;(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([["main"],{3057:ee=>{"use strict";function _(c){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(l){return typeof l}:function(l){return l&&"function"==typeof Symbol&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(c)}ee.exports=function(){for(var l,p,E=[],v=window,U=v;U;){try{if(U.frames.__tcfapiLocator){l=U;break}}catch{}if(U===v.top)break;U=U.parent}l||(function $(){var B=v.document,ne=!!v.frames.__tcfapiLocator;if(!ne)if(B.body){var te=B.createElement("iframe");te.style.cssText="display:none",te.name="__tcfapiLocator",B.body.appendChild(te)}else setTimeout($,5);return!ne}(),v.__tcfapi=function(){for(var $=arguments.length,B=new Array($),ne=0;ne<$;ne++)B[ne]=arguments[ne];if(!B.length)return E;"setGdprApplies"===B[0]?B.length>3&&2===parseInt(B[1],10)&&"boolean"==typeof B[3]&&(p=B[3],"function"==typeof B[2]&&B[2]("set",!0)):"ping"===B[0]?"function"==typeof B[2]&&B[2]({gdprApplies:p,cmpLoaded:!1,cmpStatus:"stub"}):E.push(B)},v.addEventListener("message",function($){var B="string"==typeof $.data,ne={};if(B)try{ne=JSON.parse($.data)}catch{}else ne=$.data;var te="object"===_(ne)&&null!==ne?ne.__tcfapiCall:null;te&&window.__tcfapi(te.command,te.version,function(me,V){var Z={__tcfapiReturn:{returnValue:me,success:V,callId:te.callId}};$&&$.source&&$.source.postMessage&&$.source.postMessage(B?JSON.stringify(Z):Z,"*")},te.parameter)},!1))}},5846:(ee,_,c)=>{"use strict";c.d(_,{Vf:()=>Z,rg:()=>fe});var ne,l=c(467),p=c(4404),v=c(7879),U=c(4648),$=c(9360),B=c(5244);const te=(0,$.zk)(),me=c(7783),V="DOWNLOAD_HANDLERS";class Z{static getStateKey(I){return I.issue?I.issue.properties[I.issueSourceProperty||pe.issueSourceProperty]||I.issue.id:I.sourceIssueId?I.sourceIssueId:me(I)}static updateKnownDownloadHandlers(I){return(0,l.A)(function*(){const S=yield Z.getKnownDownloadHandlers();if(S.indexOf(I)<0)return S.push(I),Z.knownDownloadHandlers=S,Y(V,JSON.stringify(S));Z.knownDownloadHandlers=S})()}static getKnownDownloadHandlers(){return(0,l.A)(function*(){return yield Z.stateKnownDownloadHandlers,Z.knownDownloadHandlers})()}static invalidateKnownDownloadHandlers(){return(0,l.A)(function*(){return Z.knownDownloadHandlers=[],Y(V,null)})()}static mergeWithDefaultOptions(I){return{...I,issueCoverFilter:I.issueCoverFilter||pe.issueCoverFilter,issueSourceProperty:I.issueSourceProperty||pe.issueSourceProperty,issuePageProperty:I.issuePageProperty||pe.issuePageProperty,issueSequenceProperty:I.issueSequenceProperty||pe.issueSequenceProperty}}static toSourceIssueParams(I){var S;const N=(I=Z.mergeWithDefaultOptions(I)).sourceIssueId||(null===(S=I.issue)||void 0===S?void 0:S.properties[I.issueSourceProperty]);if(N){let W=I.issueCoverFilter;const X=JSON.stringify(W);return X.includes("$sourceIssueId")?(W=JSON.parse(X.replace(/\$sourceIssueId/g,N)),{first:1,issueFilter:W}):void console.error("Failed to replace $sourceIssueId with ".concat(N))}}constructor(I){if(this.listeners=[],this.issueStateListeners=[],this.issueStates={},this.updating=!1,this.downloadStarted=!1,this.autoUpdate=!1,this.listenersSuspended=!1,(I=Z.mergeWithDefaultOptions(I)).issue&&!I.issue.properties[I.issueSourceProperty])this.issue=I.issue;else{var S,N,W;const X=(null===(S=I.issue)||void 0===S?void 0:S.properties[I.issueSourceProperty])||I.sourceIssueId,J=null===(N=Z.toSourceIssueParams(I))||void 0===N?void 0:N.issueFilter;((null===(W=I.issue)||void 0===W?void 0:W.type)===p.IssueType.ISSUE||I.issue&&J&&(0,U.tU)(J,I.issue))&&(this.issue=I.issue),this.issueFilter={properties:{key:I.issueSourceProperty,value:X}},this.comparators=[{property:{key:I.issuePageProperty,direction:p.SortDirection.ASC,valueType:"INT"}},{property:{key:I.issueSequenceProperty,direction:p.SortDirection.ASC,valueType:"INT"}}]}I.autoUpdate&&(this.autoUpdate=I.autoUpdate),this.stateKey=Z.getStateKey(I),this.options=I}init(I,S){var N=this;return(0,l.A)(function*(){if(yield N.getStateData(),yield N.initializeIssues(S),I){if(N.listenersSuspended=!0,yield N.updateIssueStates(),N.addIssueStateListeners(),N.downloadStarted&&N.autoUpdate)try{yield N.continueDownload()}catch{}N.listenersSuspended=!1}})()}addUpdateListener(I){this.listeners.push(I)}getAggregatedIssueState(){var I;if(1===this.issues.length){var S;const He=this.issues[0],Oe=this.issueStates[He.id],it={...Oe,overallSize:He.contentLength,overallSizeToDownload:Math.floor((null!==(S=1-(null==Oe?void 0:Oe.progress)/100)&&void 0!==S?S:0)*He.contentLength)};return this.downloadStarted||(it.error=null),it}console.warn("DownloadHandler created for group of issues, this is not supported in template 10 / Experience 2");let N=p.CatalogIssueInstallState.NOT_INSTALLED,W=0,X=0,J=!1,Ce=!1,ue=!0,ge=null;for(const He in this.issueStates){const Oe=this.issueStates[He];if(Oe){const it=this.issues.find(Ze=>Ze.id===He);it&&(W+=it.contentLength,X+=Oe.progress/100*it.contentLength,Oe.downloading&&(J=!0),Oe.updateAvailable&&(Ce=!0),Oe.installState!==p.CatalogIssueInstallState.COMPLETE&&(ue=!1),Oe.error&&this.downloadStarted&&(ge=Oe.error),(Oe.installState===p.CatalogIssueInstallState.INCOMPLETE||Oe.installState===p.CatalogIssueInstallState.COMPLETE)&&(N=p.CatalogIssueInstallState.INCOMPLETE))}}return N=ue?p.CatalogIssueInstallState.COMPLETE:N,{installState:N,progress:ue?100:Math.round(W?X/W*100:0),downloading:J,updateAvailable:Ce,error:ge,issueId:null===(I=this.issue)||void 0===I?void 0:I.id,overallSize:W,overallSizeToDownload:W-Math.floor(X)}}getIssues(I=!1){return JSON.parse(JSON.stringify(I?this.additionalIssues:this.issues))}download(){var I=this;return(0,l.A)(function*(){yield I.initializeIssues(!0);const S=I.getAggregatedIssueState();if(S.installState!==p.CatalogIssueInstallState.COMPLETE||S.updateAvailable){I.listenersSuspended=!0,I.updating=!1,I.downloadStarted=!0,I.error=null,I.saveState();try{const N=I.issues.map(X=>X.id),W=yield I.downloadIssues(N);if(W&&W.results){const X=Object.keys(W.results).filter(J=>!W.results[J].success);if(X.length)throw X.forEach(J=>{I.issueStates[J].error=W.results[J].errorCode}),I.updateState(),X.length<Object.keys(W.results).length&&(yield I.delete()),{code:W.results[X[0]].errorCode}}return I.removeErrorStates(),I.updateState(!1,!1,!0),I.listenersSuspended=!1,W}catch(N){throw console.warn(N),I.downloadStarted=!1,I.error=null,I.saveState(),yield I.updateIssueStates(),I.updateState(),I.listenersSuspended=!1,N}}})()}pause(){var I=this;return(0,l.A)(function*(){const S=I.issues.map(N=>N.id).filter(N=>I.issueStates[N]&&!I.issueStates[N].error);return I.pauseDownloads(S)})()}update(){var I=this;return(0,l.A)(function*(){yield I.syncLocalIssues(),yield I.updateIssueStatesFromLocalIssues();const S=I.issues.filter(N=>I.issueStates[N.id]&&I.issueStates[N.id].updateAvailable).map(N=>N.id);if(S.length)return I.removeIssueStateListeners(),I.addIssueStateListeners(),I.updating=!0,I.updateState(!0),I.saveState(),I.downloadIssues(S)})()}continueDownload(){const I=this.issues.filter(S=>this.issueStates[S.id]&&this.issueStates[S.id].installState!==p.CatalogIssueInstallState.COMPLETE&&!this.issueStates[S.id].downloading).map(S=>S.id);if(I.length)return this.updating=!0,this.updateState(!0),this.downloadIssues(I)}delete(I=!1){var S=this;return(0,l.A)(function*(){S.removeIssueStateListeners(),S.updating=!1,S.saveState();let N=S.issues.map(W=>W.id);yield S.deleteIssues(N),yield S.initializeIssues(!0),yield S.updateIssueStates(),S.updateState(!1,I),S.downloadStarted=!1,S.saveState(),S.addIssueStateListeners()})()}deleteIssues(I){return le()&&I.length>1?te.purple.catalog.deleteIssues({issueIds:I}):1===I.length?te.purple.catalog.deleteIssue({issueId:I[0]}):Promise.all(I.map(S=>te.purple.catalog.deleteIssue({issueId:S}).catch(N=>console.warn("Error deleting issue ",N))))}syncLocalIssues(){var I=this;return(0,l.A)(function*(){if(le())return te.purple.catalog.syncLocalIssues({issueIds:I.getIssues().map(S=>S.id)})})()}open(I){var S=this;return(0,l.A)(function*(){const N=S.issues.find(Oe=>Oe.id===(null==I?void 0:I.initialIssueId))||S.issue;let W=I.initialPublication;const X=yield(0,v.Lb)(I.initialIssueOnly?[N]:S,N,Oe=>Promise.resolve(!Oe.purchaseData.purchased),null,!1!==I.additionalIssuesOnly),J=I.initialIssueOnly?N.type:S.getContentType(),Ce=X.find(Oe=>{var it;return Oe===N.id||Oe===(null===(it=N.previewIssue)||void 0===it?void 0:it.id)}),ue=[];if(S.publication||ue.push({id:{value:S.issue.publicationId}}),!W&&N&&ue.push({id:{value:N.publicationId}}),ue.length){const Oe=1===ue.length?ue[0]:{OR:ue.map(Ze=>Ze)},it=(yield te.purple.catalog.getPublications({publicationFilter:Oe})).nodes;S.publication=S.publication||it.find(Ze=>S.issue.publicationId===Ze.id),W=W||it.find(Ze=>N.publicationId===Ze.id)}let ge=null;null!=I.pageIndex&&(ge={index:I.pageIndex}),I.elementAlias&&(ge={...ge,initialElement:{aliasOrId:I.elementAlias}});const De={type:J};De.optionalParams=N?(0,v.P8)((0,v.yC)(N,W)):{},(0,v.Gw)(J)&&(De.optionalParams={...De.optionalParams,...(0,v.P8)((0,v.bJ)(S.issue,S.publication,null,"SOURCE_"))});const He={issueIds:X,initialIssue:{id:Ce,initialPage:ge},config:{mode:p.DisplayMode.MODAL,titleBar:J===fe.ISSUE},tracking:De};if(null!=I&&I.checkLocalIssues){const Oe=(yield te.purple.catalog.getLocalIssues()).issues;!!S.issues.find(Ze=>!Oe.find(we=>we.id===Ze.id))&&(yield S.syncLocalIssues()),He.skipSync=!0}return null!=I&&I.openContentConfig&&(He.config=I.openContentConfig),te.purple.content.open(He)})()}destroy(){this.removeIssueStateListeners()}downloadIssues(I){return(0,l.A)(function*(){return le()&&I.length>1?te.purple.catalog.startDownloads({issueIds:I}):Promise.all(I.map(S=>te.purple.catalog.startDownload({issueId:S}).catch(N=>({success:!1,errorCode:N.code})))).then(S=>({results:S.reduce((N,W,X)=>({...N,[I[X]]:W||{success:!0}}),{})}))})()}pauseDownloads(I){return(0,l.A)(function*(){return le()?te.purple.catalog.pauseDownloads({issueIds:I}):Promise.all(I.map(S=>te.purple.catalog.pauseDownload({issueId:S})))})()}initializeIssues(I=!1){var S=this;return(0,l.A)(function*(){if(yield S.getStateData(),S.issues=[],S.additionalIssues=S.dataFromState.additionalIssues||[],S.issue||(S.issue=S.dataFromState.issue||(yield S.getSourceIssueFromAPI())),S.issue&&(S.issues=[S.issue]),S.issueFilter){try{(I||!S.dataFromState.additionalIssues||S.isOutdated())&&(S.additionalIssues=yield S.getIssuesFromAPI(),Z.updateKnownDownloadHandlers(S.getOwnStateKey()))}catch{console.warn("error updating issue information. Falling back to previously used data")}S.issue&&(S.additionalIssues=S.additionalIssues.filter(N=>N.id!==S.issue.id)),S.issues=[...S.issues,...S.additionalIssues],S.saveState()}})()}isOutdated(){if(Z.knownDownloadHandlers.indexOf(this.getOwnStateKey())<0)return!0;const I=[this.dataFromState.issue,...this.dataFromState.additionalIssues].filter(W=>!!W);return!![this.issue,...this.additionalIssues].filter(W=>!!W).find(W=>!!I.find(X=>X.access===W.access&&X.productId===W.productId&&X.purchaseData.purchased!==W.purchaseData.purchased))}getSourceIssueFromAPI(){var I=this;return(0,l.A)(function*(){const S=Z.toSourceIssueParams(I.options);return S?te.purple.catalog.getIssues(S).then(N=>N.nodes[0],()=>null):null})()}getIssuesFromAPI(){var I=this;return(0,l.A)(function*(){const S=[];let N;do{var W;const X=(0,B.oQ)({issueFilter:I.issueFilter,sort:I.comparators,after:null===(W=N)||void 0===W?void 0:W.cursor});N=yield te.purple.catalog.getContents(X),S.push(...N.nodes)}while(N.hasNextPage);return S})()}updateIssueStatesFromLocalIssues(){var I=this;return(0,l.A)(function*(){(yield te.purple.catalog.getLocalIssues()).issues.filter(N=>!!I.issues.find(W=>W.id===N.id)).forEach(N=>{I.issueStates[N.id]=N.state,I.issues.find(W=>W.id===N.id).version=N.version}),I.saveState()})()}updateIssueStates(){var I=this;return(0,l.A)(function*(){I.issueStates=yield te.purple.catalog.getIssueStates({issues:I.issues.map(S=>({issueId:S.id,issueVersion:S.version}))})})()}removeErrorStates(){this.issues.forEach(I=>{this.issueStates[I.id]&&delete this.issueStates[I.id].error})}addIssueStateListeners(){this.issues.forEach(I=>{const S=W=>{this.issueStates[W.issueId]=W,this.listenersSuspended||this.updateState()},N={issueId:I.id,issueVersion:I.version,publicationId:I.publicationId};this.issueStateListeners.push({params:N,listener:S}),te.purple.catalog.addIssueStateListener(N,S)})}removeIssueStateListeners(){this.issueStateListeners.forEach(I=>te.purple.catalog.removeIssueStateListener(I.params,I.listener)),this.issueStateListeners=[]}updateState(I=!1,S=!1,N=!1){const W=this.getAggregatedIssueState();this.trackStateUpdate(W,N),!I&&W.installState===p.CatalogIssueInstallState.COMPLETE&&!W.updateAvailable&&(this.updating=!1,this.saveState()),(this.downloadStarted&&(W.downloading||W.error&&W.error!==this.error)||W.installState!==p.CatalogIssueInstallState.INCOMPLETE||S)&&this.listeners.forEach(X=>X({...W,updating:this.updating})),this.error=W.error}trackStateUpdate(I,S){if(this.installState&&I.installState!==this.installState||I.error||S){let N;if(I.error&&I.error!==this.error)N=w.DOWNLOAD_FAILED;else if(S)N=w.DOWNLOAD_STARTED;else switch(I.installState){case p.CatalogIssueInstallState.COMPLETE:N=w.DOWNLOADED;break;case p.CatalogIssueInstallState.NOT_INSTALLED:N=this.downloadStarted&&this.installState===p.CatalogIssueInstallState.INCOMPLETE?w.DOWNLOAD_CANCELLED:w.DELETED}N&&this.handleTrackAction(N),this.installState=I.installState,this.saveState()}}handleTrackAction(I){const S=this.getContentType("_COLLECTION"),N=(0,v.Dh)("".concat(S,"_").concat(I)),W=(0,v.P8)((0,v.bJ)(this.issue,this.publication));te.purple.tracking.trackAction({key:N,optionalParams:W})}getOwnStateKey(){return this.stateKey}getContentType(I=""){return this.issue&&this.issue.type===p.IssueType.ISSUE?this.additionalIssues&&this.additionalIssues.length?fe.READ_MODE_ARTICLE+I:fe.ISSUE:this.additionalIssues&&this.additionalIssues.length?fe.ISSUE_ARTICLE+I:fe.ARTICLE}setIssue(I){var S=this;return(0,l.A)(function*(){S.removeIssueStateListeners();const N=S.issue;S.issue=I,S.issues[S.issues.findIndex(W=>W===N)]=I,yield S.updateIssueStates(),S.updateState(),S.addIssueStateListeners(),S.saveState()})()}getStateData(){var I=this;return(0,l.A)(function*(){const S=(yield Q(I.getOwnStateKey())).value;try{I.dataFromState=JSON.parse(S)||{}}catch{I.dataFromState={}}I.downloadStarted=I.dataFromState.downloadStarted,I.updating=I.dataFromState.updating,I.installState=I.dataFromState.installState,I.error=I.dataFromState.error})()}saveState(){if(this.stateKey){const I={downloadStarted:this.downloadStarted,updating:this.updating,additionalIssues:this.additionalIssues,issue:this.issue,installState:this.installState,error:this.error};this.dataFromState=I,Y(this.getOwnStateKey(),JSON.stringify(I))}}}function le(){return!!te.purple.catalog.startDownloads}function Q(j){return z.apply(this,arguments)}function z(){return(z=(0,l.A)(function*(j){return te.purple?te.purple.state.version.major>=2?te.purple.state.getState({key:j}):new Promise((I,S)=>{te.purple.state.getState(j,(N,W)=>I({key:N,value:W}))}):{key:j,value:null}})).apply(this,arguments)}function Y(j,I){return ve.apply(this,arguments)}function ve(){return(ve=(0,l.A)(function*(j,I){te.purple&&(te.purple.state.version.major>=2?te.purple.state.setState({key:j,value:I}):te.purple.state.setState(j,I))})).apply(this,arguments)}(ne=Z).stateKnownDownloadHandlers=Q(V).then(({value:I})=>I?JSON.parse(I):[]).then(j=>(ne.knownDownloadHandlers=j,j));const pe={issueSourceProperty:"purple_source_issue",issuePageProperty:"purple_page_number",issueSequenceProperty:"purple_seq_number",issueCoverFilter:{AND:[{OR:[{type:{value:p.IssueType.ISSUE}},{properties:{key:"cover",value:"true"}}]},{properties:{key:"purple_source_issue",value:"$sourceIssueId"}}]}};var fe=function(j){return j.ISSUE="ISSUE",j.ARTICLE="ARTICLE",j.ISSUE_ARTICLE="ISSUE_ARTICLE",j.READ_MODE_ARTICLE="READ_MODE_ARTICLE",j}(fe||{}),w=function(j){return j.DOWNLOAD_STARTED="DOWNLOAD_STARTED",j.DOWNLOAD_CANCELLED="DOWNLOAD_CANCELLED",j.DELETED="DELETED",j.DOWNLOADED="DOWNLOADED",j.DOWNLOAD_FAILED="DOWNLOAD_FAILED",j}(w||{})},1794:(ee,_,c)=>{"use strict";c.d(_,{Z:()=>K});var l=c(467),p=c(177),E=c(4438),v=c(9047),U=c(4404),$=c(3726),B=c(5964),ne=c(1594),te=c(5245),me=c(152),V=c(6697),Z=c(6883),le=c(7616),Q=c(6843),z=c(873),Y=c(4452),ve=c(8075),pe=c(9745),fe=c(4945),w=c(4338),j=c(3178),I=c(2962),S=c(7598),N=c(7879),W=c(8890),X=c(8004),J=c(5483),Ce=c(1510),ue=c(5204),ge=c(244),De=c(8745),He=c(9118),Oe=c(3377),it=c(1025),Ze=c(8471),we=c(1652);let ze=(()=>{var ce;class Be{constructor(ut,je){this.purpleService=ut,this.globalService=je}init(){var ut=this;return(0,l.A)(function*(){if(!ut.globalService.getData("appSettings")){const je=Zone.current.scheduleMacroTask("AppSettings-resolved",()=>{},{},()=>{},()=>{});try{let mt=yield ut.purpleService.getCatalogAppSettings({first:200}),Nt=mt.nodes;for(;mt.hasNextPage;)mt=yield ut.purpleService.getCatalogAppSettings({first:200,after:mt.cursor}),Nt=Nt.concat(mt.nodes);ut.setGlobalSettings(Nt)}catch(mt){console.warn("Error getting app settings:",mt)}finally{je.invoke()}}})()}setGlobalSettings(ut){var je;const mt=this.convertToNestedStructure(ut);this.globalService.setData("appSettings",{...null!==(je=this.globalService.getData("appSettings"))&&void 0!==je?je:{},...mt})}convertToNestedStructure(ut){let je={};for(let{key:mt,value:Nt}of ut)this.setValue(je,mt.split("."),Nt);return je}setValue(ut,je,mt){let Nt=je.length-1;for(let zt=0;zt<Nt;++zt){let fn=je[zt];if(!(fn in ut)){const or=!isNaN(Number(je[zt+1]))||"_element_count"===je[zt+1];ut[fn]=or?[]:{}}ut=ut[fn]}(!ut[je[Nt]]||"object"!=typeof ut[je[Nt]])&&(ut[je[Nt]]=mt)}}return(ce=Be).\u0275fac=function(ut){return new(ut||ce)(E.KVO(Ze.Wj),E.KVO(we.d))},ce.\u0275prov=E.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),Be})();var Ye=c(2884),be=c(4520),Fe=c(5820),he=c(4748),Ne=c(2838),st=c(8482);function R(ce,Be){if(1&ce&&E.nrm(0,"storefront-app-bar",5),2&ce){const qe=E.XpG();E.Y8G("config",qe.appBarConfig)}}function A(ce,Be){1&ce&&E.nrm(0,"storefront-side-menu")}function L(ce,Be){1&ce&&(E.qex(0),E.nrm(1,"router-outlet"),E.bVm())}function G(ce,Be){if(1&ce&&E.nrm(0,"storefront-tab-navigation",5),2&ce){const qe=E.XpG();E.Y8G("config",qe.navigationConfig)}}let K=(()=>{var ce;class Be{get isApp(){return this.purpleEnv.isApp}get hasCustomSideMenu(){return this.appMenuService.hasCustomSideMenu()}constructor(ut,je,mt,Nt,zt,fn,or,Bn,Cn,yn,Lr,Wt,Xt,sn,tn,jn,Sn,Ht,On,Gn,$n,qn,Kn,Qn,Rr,Pn,Dt,ke,Je,ot){this.store=ut,this.router=je,this.renderer=mt,this.eventActionService=Nt,this.ngZone=zt,this.contextService=or,this.userTagService=Bn,this.appMenuService=Cn,this.cleanUpService=yn,this.document=Lr,this.purpleEnv=Wt,this.platformId=Xt,this.configLoaderService=sn,this.kioskConfigService=tn,this.actionUrlService=jn,this.analyticsService=Sn,this.purpleService=Ht,this.transferState=On,this.host=Gn,this.globalService=$n,this.elementRef=qn,this.appSettingsService=Kn,this.experienceConfigService=Qn,this.viewService=Rr,this.anchorService=Pn,this.appRef=Dt,this.ssrService=ke,this.resourceService=Je,this.traffectiveAdService=ot,this.firstNavigation=!0,this.delta=0,Be.appInstanceInjector=fn,console.debug("\n=== Env ===\nCATALOG_API_BASE_URL: ".concat(Wt.CATALOG_API_BASE_URL,"\nKIOSK_BASE_URL: ").concat(Wt.KIOSK_BASE_URL,"\nMANAGER_BASE_URL: ").concat(Wt.MANAGER_BASE_URL,"\nisApp: ").concat(Wt.isApp,"\nisUniversal: ").concat(Wt.isUniversal,"\n"))}updateLoggedIn(){this.loggedIn=this.contextService.isLoggedIn()}ngOnInit(){var ut=this;return(0,l.A)(function*(){(0,p.UE)(ut.platformId)&&ut.appRef.isStable.pipe((0,B.p)(je=>je),(0,ne.$)()).subscribe(()=>{var je;let mt=new Event("PrebootComplete");document.dispatchEvent(mt),null!==(je=window)&&void 0!==je&&null!==(je=je.prebootData)&&void 0!==je&&null!==(je=je.apps)&&void 0!==je&&je.length&&(window.prebootData.apps=[]),ut.ssrService.updatePrebootStatus(!0)}),ut.router.events.pipe((0,B.p)(je=>je instanceof v._d),(0,ne.$)()).subscribe(je=>ut.init(je)),ut.router.events.pipe((0,B.p)(je=>je instanceof v._d),(0,te.i)(1)).subscribe(je=>ut.contextService.setPath(je))})()}init(ut){var je=this;return(0,l.A)(function*(){var mt;if(je.globalService.init(),je.purpleEnv.isUniversal){var Nt,zt,fn,or,Bn;const tn=ut.snapshot.queryParams.skipSSR;if(tn&&(0,p.Vy)(je.platformId))return;let jn={};localStorage.getItem("entitlementUserData")&&(0,p.UE)(je.platformId)&&(jn=JSON.parse(localStorage.getItem("entitlementUserData"))||{});let Sn=[];localStorage.getItem("subscriptionCodes")&&(0,p.UE)(je.platformId)&&(Sn=JSON.parse(localStorage.getItem("subscriptionCodes"))||[]);let Ht="true"===ut.snapshot.queryParams.preview;const On=ut.snapshot.url;let Gn=null===(Nt=On[0])||void 0===Nt?void 0:Nt.path;"preview"===Gn&&(Ht=!0,Gn=On[1].path),je.contextService.setBrand(Gn);const $n={brand:Gn,preview:Ht},qn=je.host||je.document.location.host,Kn=yield(0,N.RX)(qn,je.contextService.getBrand(),je.transferState,je.contextService,Ht);localStorage.setItem("AppWebConfiguration",JSON.stringify(Kn)),je.contextService.setPath(ut);const Qn=null==Kn?void 0:Kn.id;if(!Qn)throw new Error("No appId found for "+qn+" brand: "+je.contextService.getBrand());let Rr=localStorage.getItem("deviceId");Rr||(Rr=(0,Z.A)(),localStorage.setItem("deviceId",Rr)),$n.useCustomerDomain=je.contextService.getIsCustomerDomainUsed();const Pn=new URL(window.location.href).origin,Dt=(0,p.UE)(je.platformId)&&je.contextService.getIsCustomerDomainUsed()?Pn:window._env.CATALOG_API_BASE_URL,ke={entitlementConfig:Kn.entitlementConfig,appId:Qn,appVersion:"",bundleId:"",deviceId:Rr,deviceModel:"web",deviceOs:"web",baseUrl:"".concat(window._env.MANAGER_BASE_URL,"/delivery"),contentUrl:Dt,subscriptionCodes:Sn,platform:"web",preview:Ht,smallestScreenWidthDp:window.innerWidth,purple_version:null===(zt=je.purpleEnv)||void 0===zt||null===(zt=zt.buildInfo)||void 0===zt?void 0:zt.packageVersion,locale:"de_DE",onGraphQLError:Je=>{console.log(Je)}};ke[le.d.ENTITLEMENT_TOKEN]=null===(fn=jn)||void 0===fn?void 0:fn[le.d.ENTITLEMENT_TOKEN],ke[le.d.ENTITLEMENT_REFRESH_TOKEN]=null===(or=jn)||void 0===or?void 0:or[le.d.ENTITLEMENT_REFRESH_TOKEN],ke[le.d.ENTITLEMENT_ROLES]=null===(Bn=jn)||void 0===Bn?void 0:Bn[le.d.ENTITLEMENT_ROLES],(!tn||(0,p.UE)(je.platformId))&&(yield je.purpleService.init(!0,je.configLoaderService,je.globalService,je.contextService,je.kioskConfigService,ke,$n,je.router,je.actionUrlService,je.analyticsService,Kn))}else je.contextService.setIsCustomerDomainUsed(!0),je.contextService.setPath(ut),yield je.purpleService.init(!1,je.configLoaderService,je.globalService,je.contextService);je.ngZone.runOutsideAngular(()=>{(0,$.R)(window,"scroll",{passive:!0}).pipe((0,me.B)(z.Lf)).subscribe(tn=>je.ngZone.run(()=>je.onScrollEnd(tn)))}),je.anchorService.init(je.store),null===(mt=je.traffectiveAdService)||void 0===mt||mt.initDefaultConfig(je.store),je.purpleService.connectionState$.pipe((0,B.p)(tn=>!!tn),(0,W.ZE)()).subscribe(tn=>{je.contextService.setMetadata("connection_state",tn.state)}),(0,W.Ne)().subscribe(tn=>je.contextService.updateDeviceSettings());const Cn=je.globalService.getGlobalData();let yn=je.loadGlobalDataSources(Cn);je.store.select((0,fe.jZ)(Q.O.ACCESS),tn=>je.access=tn),je.contextService.init(),yield je.eventActionService.init(),yield je.userTagService.init(),yield Promise.all([je.appSettingsService.init(),je.experienceConfigService.init(),yn]),je.kioskConfigService.getConfig().subscribe(tn=>{}),je.context=yield je.contextService.viewContext$.pipe((0,B.p)(tn=>!!tn.userAttributes),(0,V.s)(1)).toPromise(),je.contextService.updateDeviceSettings(),je.contextService.viewContext$.subscribe(tn=>{je.context=tn,je.updateLoggedIn()}),window.addEventListener(S.YT,tn=>{je.onEntitlementMaybeChanged()});const Lr=yield je.purpleService.getMetadata();((yield je.purpleService.getState(z.sn))||void 0)!=Lr.entitlement_token&&je.purpleService.bustApiCache(),je.contextService.setFullMetadata({...je.contextService.getMetadata(),...Lr});const Xt=Lr.issue_id;Xt&&(yield(0,ve.CV)(je.router,{issue:Xt}));const sn=yield je.purpleService.getAccountUserData();je.contextService.setAccountData(sn),je.updateLoggedIn(),je.context=je.contextService.getContext(),je.setupViewHandling(),je.showView=!0,je.nativeAppBar=yield je.purpleService.isTitleBarEnabled(),je.nativeAppBar&&je.renderer.addClass(je.document.body,"no-app-bar"),yield je.cleanUpService.init(),je.cleanUpService.deleteExpiredIssues(),je.purpleEnv.isApp&&je.ngZone.runOutsideAngular(()=>{setInterval(()=>je.cleanUpService.deleteExpiredIssues(),6e4)})})()}onEntitlementMaybeChanged(ut){var je=this;return(0,l.A)(function*(){if(void 0===ut?ut=yield je.purpleService.getMetadata([U.METADATA_KEY.ENTITLEMENT_TOKEN]).then(fn=>fn[U.METADATA_KEY.ENTITLEMENT_TOKEN]||void 0):!1===ut&&(ut=void 0),((yield je.purpleService.getState(z.sn))||void 0)!==ut){const fn=yield je.purpleService.getEntitlementUserData(),or=yield je.purpleService.getState(z.Z_).then(Bn=>Bn?JSON.parse(Bn):void 0);je.purpleService.bustApiCache();try{var Nt,zt;null===(Nt=window.storefrontHooks)||void 0===Nt||null===(zt=Nt.entitlementChanged)||void 0===zt||zt.call(Nt,{oldState:or,newState:fn})}catch(Bn){console.error("Error in entitlementChanged hook:",Bn)}yield Promise.all([je.purpleService.setState(z.sn,"string"==typeof ut?ut:null),je.purpleService.setState(z.Z_,JSON.stringify(fn))])}})()}setupViewHandling(){this.viewService.view$.subscribe(({default:{viewConfig:ut},routerEvent:je})=>{var mt;if(this.firstNavigation&&this.contextService.setInitialUrl("#".concat(je.url)),!this.loggedIn&&null!==(mt=this.access)&&void 0!==mt&&mt.forceLogin&&this.firstNavigation)return this.firstNavigation=!1,this.eventActionService.processLoginAction({type:pe.H.LOGIN},this);this.firstNavigation=!1,this.nativeAppBar||this.store.select((0,fe.Vi)(ut.appBar),Nt=>{this.appBarConfig=Nt,this.appBarConfig?this.renderer.removeClass(this.document.body,"no-app-bar"):this.renderer.addClass(this.document.body,"no-app-bar")},j.lQ,j.lQ,"selectAppBar"),this.store.select((0,fe.LM)(ut.navigation),Nt=>{this.navigationConfig=Nt,this.navigationConfig?this.renderer.removeClass(this.document.body,"no-navigation"):this.renderer.addClass(this.document.body,"no-navigation")},j.lQ,j.lQ,"selectTabNavigation")})}onScrollEnd(ut){(0,I.IL)(document.scrollingElement)<=z._&&window.dispatchEvent(new CustomEvent(S.Zm,{detail:{emitter:document.body}})),this.updateScrolledClasses(ut)}updateScrolledClasses(ut){const je=ut.target.scrollTop||document.scrollingElement.scrollTop;let mt=parseInt(getComputedStyle(document.body).getPropertyValue("--appBarHeight"),10);if(isNaN(mt)&&(mt=z._),je>mt){if(document.body.classList.add(z.Md),this.lastScroll){const Nt=this.lastScroll-je>this.delta;je-this.lastScroll>this.delta?document.body.classList.add(z.BE):document.body.classList.remove(z.BE),Nt?document.body.classList.add(z.Ed):document.body.classList.remove(z.Ed)}this.lastScroll=je}else document.body.classList.remove(z.Md),document.body.classList.remove(z.Ed),document.body.classList.remove(z.BE),this.lastScroll=void 0}getId(){return"APP"}getContext(){return this.context}loadGlobalDataSources(ut){var je=this;return(0,l.A)(function*(){if(0===Object.keys(ut).length){const mt=[];je.store.select((0,fe.m6)(),function(){var Nt=(0,l.A)(function*(zt){zt.globalData.forEach(fn=>{let or=(0,Y.O8)(fn,je.contextService,je.store,je.elementRef.nativeElement,je.transferState,je.purpleService,je.globalService,je.document,je.resourceService);mt.push(or.loadData({global:!0}))})});return function(zt){return Nt.apply(this,arguments)}}()),yield Promise.all(mt)}})()}}return(ce=Be).\u0275fac=function(ut){return new(ut||ce)(E.rXU(w.B),E.rXU(v.Ix),E.rXU(E.sFG),E.rXU(X.G),E.rXU(E.SKi),E.rXU(E.zZn),E.rXU(J.V),E.rXU(Ce.h),E.rXU(ue.I),E.rXU(ge.I),E.rXU(p.qQ),E.rXU(N.r6),E.rXU(E.Agw),E.rXU(De.Bh),E.rXU(He.x),E.rXU(Oe.p),E.rXU(it.c),E.rXU(Ze.Wj),E.rXU(E.pJN),E.rXU("host",8),E.rXU(we.d),E.rXU(E.aKT),E.rXU(ze),E.rXU(Ye.a),E.rXU(be.z),E.rXU(Fe.X),E.rXU(E.o8S),E.rXU(he.i),E.rXU(Ne.Q),E.rXU(st.y))},ce.\u0275cmp=E.VBU({type:ce,selectors:[["storefront-root"]],features:[E.Jv_([w.B])],decls:7,vars:4,consts:[[3,"config",4,"ngIf"],[4,"ngIf"],["name","modal"],["name","presenter"],[1,"bottom-sticky-elements"],[3,"config"]],template:function(ut,je){1&ut&&(E.DNE(0,R,1,1,"storefront-app-bar",0)(1,A,1,0,"storefront-side-menu",1)(2,L,2,0,"ng-container",1),E.nrm(3,"router-outlet",2)(4,"router-outlet",3),E.j41(5,"div",4),E.DNE(6,G,1,1,"storefront-tab-navigation",0),E.k0s()),2&ut&&(E.Y8G("ngIf",!je.nativeAppBar&&je.appBarConfig),E.R7$(),E.Y8G("ngIf",!je.isApp&&!je.hasCustomSideMenu),E.R7$(),E.Y8G("ngIf",je.showView),E.R7$(4),E.Y8G("ngIf",je.navigationConfig))},styles:[".bottom-sticky-elements[_ngcontent-%COMP%]{bottom:0;left:0;right:0;position:fixed}"]}),Be})()},9286:(ee,_,c)=>{"use strict";c.d(_,{k:()=>si});var l=c(467),p=c(177),E=c(1626),v=c(4438),U=c(9383),$=c(345),B=c(9184),ne=c(9047),te=c(3709),me=c(7010),V=c(1794),Z=c(2783),le=c(6895),Q=c(6483);let z=(()=>{var dt;class jt{}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)},dt.\u0275mod=v.$C({type:dt}),dt.\u0275inj=v.G2t({imports:[p.MD,Q.h,U.pZ]}),jt})();var Y=c(1605),ve=c(6215);let pe=(()=>{var dt;class jt{}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)},dt.\u0275mod=v.$C({type:dt}),dt.\u0275inj=v.G2t({imports:[ve.O]}),jt})();var fe=c(8471),w=c(8075);const I={provide:ne.b,useClass:(()=>{var dt;class jt{shouldDetach(Ie){return!1}store(Ie,_t){}shouldAttach(Ie){return!1}retrieve(Ie){return null}shouldReuseRoute(Ie,_t){return null===_t.routeConfig&&null===Ie.routeConfig||(0,w.Yn)(Ie)===(0,w.Yn)(_t)}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac}),jt})()};let S=(()=>{var dt;class jt{constructor(Ie,_t,Te,ft){this.purpleService=Ie,this.platformId=_t,this.document=Te,this.router=ft}ngOnInit(){var Ie=this;return(0,l.A)(function*(){if((0,p.UE)(Ie.platformId)){const _t=yield Ie.purpleService.checkForOauthEntitlement();if(Ie.purpleService.bustApiCache(),Ie.purpleService.clearCache(),_t)if(_t.startsWith("/")){const ft={preview:"true"===new URL(Ie.document.location.href).searchParams.get("preview")},Et=_t.substring(1).split("/");Ie.router.navigate(Et,{queryParams:ft,replaceUrl:!0})}else Ie.purpleService.openActionUrl(_t)}})()}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(fe.Wj),v.rXU(v.Agw),v.rXU(p.qQ),v.rXU(ne.Ix))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-oauth-callback"]],decls:12,vars:0,consts:[[1,"container"],[1,"row"],["id","loader"],[1,"dot"],[1,"loading"]],template:function(Ie,_t){1&Ie&&(v.j41(0,"div",0)(1,"div",1)(2,"div",2),v.nrm(3,"div",3)(4,"div",3)(5,"div",3)(6,"div",3)(7,"div",3)(8,"div",3)(9,"div",3)(10,"div",3)(11,"div",4),v.k0s()()())},styles:['#loader{bottom:0;height:175px;left:0;margin:auto;position:absolute;right:0;top:0;width:175px}#loader .dot{bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:87.5px}#loader .dot:before{border-radius:100%;content:"";height:87.5px;left:0;position:absolute;right:0;top:0;transform:scale(0);width:87.5px}#loader .dot:nth-child(7n+1){transform:rotate(45deg)}#loader .dot:nth-child(7n+1):before{animation:.8s linear .1s normal none infinite running load;background:#00ff80 none repeat scroll 0 0}#loader .dot:nth-child(7n+2){transform:rotate(90deg)}#loader .dot:nth-child(7n+2):before{animation:.8s linear .2s normal none infinite running load;background:#00ffea none repeat scroll 0 0}#loader .dot:nth-child(7n+3){transform:rotate(135deg)}#loader .dot:nth-child(7n+3):before{animation:.8s linear .3s normal none infinite running load;background:#0af none repeat scroll 0 0}#loader .dot:nth-child(7n+4){transform:rotate(180deg)}#loader .dot:nth-child(7n+4):before{animation:.8s linear .4s normal none infinite running load;background:#0040ff none repeat scroll 0 0}#loader .dot:nth-child(7n+5){transform:rotate(225deg)}#loader .dot:nth-child(7n+5):before{animation:.8s linear .5s normal none infinite running load;background:#2a00ff none repeat scroll 0 0}#loader .dot:nth-child(7n+6){transform:rotate(270deg)}#loader .dot:nth-child(7n+6):before{animation:.8s linear .6s normal none infinite running load;background:#9500ff none repeat scroll 0 0}#loader .dot:nth-child(7n+7){transform:rotate(315deg)}#loader .dot:nth-child(7n+7):before{animation:.8s linear .7s normal none infinite running load;background:#f0f none repeat scroll 0 0}#loader .dot:nth-child(7n+8){transform:rotate(360deg)}#loader .dot:nth-child(7n+8):before{animation:.8s linear .8s normal none infinite running load;background:#ff0095 none repeat scroll 0 0}#loader .loading{background-position:50% 50%;background-repeat:no-repeat;bottom:-40px;height:20px;left:0;position:absolute;right:0;width:180px}@keyframes load{to{opacity:0;transform:scale(1)}}.spinner-message{text-align:center}\n'],encapsulation:2}),jt})();var N=c(9079),W=c(9745),X=c(4338),J=c(610),Ce=c(3178),ue=c(2962),ge=c(7879),De=c(4404),He=c(3726),Oe=c(7786),it=c(6697),Ze=c(5964),we=c(3386),ye=c(4616),ze=c(4452),Ye=c(8179),be=c(6067),Fe=c(8480),he=function(dt){return dt.ICON="ICON",dt.TEXT_ICON="TEXT_ICON",dt}(he||{});const Ne={active:!1,pullMessage:"PULL_TO_REFRESH_PULL",releaseMessage:"PULL_TO_REFRESH_RELEASE",template:he.ICON};let st=(()=>{var dt;class jt{constructor(Ie,_t,Te,ft){this.elementRef=Ie,this.renderer=_t,this.document=ft,this.defaultConfig={...Ne},this.onRefresh=Ce.lQ,this.loading=!1,this.touchStartHandler=Et=>this.onTouchStart(Et),this.touchMoveHandler=Et=>this.onTouchMove(Et),this.touchEndHandler=Et=>this.onTouchEnd(Et),this.iconStarted=!1,this.translatePipe=new be.D(Te)}ngOnInit(){this.config={...this.defaultConfig,...this.storefrontPullToRefresh},this.translatePipe.transform(this.config.pullMessage).subscribe(Ie=>this.pullMessage=Ie),this.translatePipe.transform(this.config.releaseMessage).subscribe(Ie=>this.releaseMessage=Ie)}ngAfterViewInit(){this.loader=this.renderer.createElement("div"),this.renderer.addClass(this.loader,"pull-to-refresh-loader"),this.renderer.setStyle(this.loader,"height","".concat(jt.delta,"px")),this.renderer.setStyle(this.loader,"margin-top","-".concat(jt.delta,"px")),this.config.template&&this.renderer.setAttribute(this.loader,"template",this.config.template),this.loadingSpinner=this.renderer.createElement("div"),this.renderer.addClass(this.loadingSpinner,"pull-to-refresh-loading-spinner"),this.renderer.addClass(this.loadingSpinner,"storefront-spinner"),this.renderer.setAttribute(this.loadingSpinner,"type","tail"),this.renderer.setProperty(this.loadingSpinner,"innerHTML",Fe.A.tail.replace(/\$id/g,"id-"+Date.now())),this.renderer.appendChild(this.loader,this.loadingSpinner),this.config.template===he.ICON?this.initIcon():this.initTextIcon(),this.renderer.appendChild(this.elementRef.nativeElement,this.loader),this.document.body.addEventListener("touchmove",Ce.lQ,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchstart",this.touchStartHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchmove",this.touchMoveHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchend",this.touchEndHandler,{passive:!0})}initTextIcon(){this.loadingMessage=this.renderer.createElement("div"),this.renderer.appendChild(this.loader,this.loadingMessage)}initIcon(){this.loadingIcon=this.renderer.createElement("i"),this.renderer.addClass(this.loadingIcon,"icon"),this.renderer.addClass(this.loadingIcon,"icon-spinner"),this.renderer.setStyle(this.loadingIcon,"color","var(--spinnerColor)"),this.renderer.appendChild(this.loader,this.loadingIcon)}ngOnDestroy(){this.elementRef.nativeElement.parentNode&&(this.elementRef.nativeElement.parentNode.removeEventListener("touchstart",this.touchStartHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchmove",this.touchMoveHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchend",this.touchEndHandler))}onTouchStart(Ie){this.config.active&&!this.loading&&this.document.scrollingElement.scrollTop<=0&&(delete this.currentTouch,this.renderer.setStyle(this.loader,"transition","none"),this.touchStart=(0,ue.k)(Ie))}startTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",this.pullMessage),this.iconStarted=!0}startIcon(){this.renderer.setStyle(this.loadingIcon,"display","flex"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(0deg)"),this.iconStarted=!0}onTouchMove(Ie){if(this.config.active&&!this.loading&&this.touchStart){const _t=(0,ue.k)(Ie);if(!this.currentTouch&&_t.y<this.touchStart.y)return void delete this.touchStart;if(_t.y-this.touchStart.y<jt.threshold)return;this.currentTouch=(0,ue.k)(Ie);const Te=Math.min(this.currentTouch.y-this.touchStart.y,jt.delta);this.renderer.setStyle(this.loader,"margin-top","-".concat(jt.delta-Te,"px")),this.config.template===he.ICON?this.updateIcon(Te):this.updateTextIcon(Te),Ie.cancelable&&Ie.preventDefault()}}updateTextIcon(Ie){this.iconStarted||this.startTextIcon(),this.renderer.setProperty(this.loadingMessage,"innerText",this.currentTouch.y-this.touchStart.y>jt.delta?this.releaseMessage:this.pullMessage)}updateIcon(Ie){this.iconStarted||this.startIcon();const _t=(Ie-jt.threshold)/(jt.delta-jt.threshold);this.renderer.setStyle(this.loadingIcon,"filter",1===_t?"none":"grayscale(100%)"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(".concat(320*_t,"deg)"))}onTouchEnd(Ie){this.config.active&&!this.loading&&this.touchStart&&this.currentTouch&&(this.currentTouch=(0,ue.k)(Ie),this.currentTouch.y-this.touchStart.y>jt.delta?this.refresh():this.renderer.setStyle(this.loader,"margin-top","-".concat(jt.delta,"px")),this.config.template===he.ICON?this.endIcon():this.endTextIcon())}endTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",""),this.iconStarted=!1}endIcon(){this.renderer.setStyle(this.loadingIcon,"display","none"),this.iconStarted=!1}refresh(){this.config.template===he.ICON?this.endIcon():this.endTextIcon(),this.renderer.setStyle(this.loader,"margin-top",0),this.renderer.setStyle(this.loadingSpinner,"visibility","visible"),this.loading=!0,this.renderer.setStyle(this.loader,"transition","margin-top 100ms ease"),this.renderer.setStyle(this.loader,"margin-top","".concat(-jt.delta/2,"px")),delete this.touchStart,delete this.currentTouch,this.onRefresh().then(Ie=>this.onRefreshEnd(),Ie=>this.onRefreshEnd())}onRefreshEnd(){this.loading=!1,this.renderer.setStyle(this.loader,"margin-top","-".concat(jt.delta,"px")),this.renderer.setStyle(this.loadingSpinner,"visibility","hidden")}}return(dt=jt).delta=150,dt.threshold=50,dt.\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(v.aKT),v.rXU(v.sFG),v.rXU(me.il),v.rXU(p.qQ))},dt.\u0275dir=v.FsC({type:dt,selectors:[["","storefrontPullToRefresh",""]],inputs:{storefrontPullToRefresh:"storefrontPullToRefresh",onRefresh:"onRefresh"}}),jt})();var R=c(244),A=c(8745),L=c(5483),G=c(9118);let K=(()=>{var dt;class jt{constructor(Ie,_t){this.title=Ie,this.meta=_t}updateTitle(Ie){Ie&&this.title.setTitle(Ie)}addUpdateMetaTag(Ie,_t){if(Ie&&_t){const Te={name:Ie,content:_t};this.meta.getTag(Ie)?this.meta.updateTag(Te):this.meta.addTag(Te)}}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO($.hE),v.KVO($.W8))},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"}),jt})();var ce=c(4748),Be=c(7598),qe=c(7370),ut=c(1025),je=c(1652),mt=c(4520),Nt=c(9360),zt=c(2838),fn=c(3648),or=c(8909);const Bn=["viewChild"],Cn=dt=>[dt];function yn(dt,jt){if(1&dt&&v.nrm(0,"storefront-element",6),2&dt){const Kt=jt.$implicit,Ie=v.XpG(2);v.Y8G("baseConfig",Ie.children[Kt])}}function Lr(dt,jt){if(1&dt&&(v.j41(0,"div",4),v.DNE(1,yn,1,1,"storefront-element",5),v.k0s()),2&dt){const Kt=v.XpG();v.R7$(),v.Y8G("ngForOf",Kt.visibleStickyChildren)("ngForTrackBy",Kt.trackByElement)}}function Wt(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"storefront-element",9,0),v.bIt("inViewport",function(_t){const Te=v.eBV(Kt).index,ft=v.XpG(2);return v.Njj(ft.onVisibilityChanged(Te,_t))}),v.k0s()}if(2&dt){const Kt=jt.$implicit,Ie=v.XpG(2);v.Y8G("baseConfig",Kt)("controlsSticky",Kt.sticky)("lazy",Ie.isLazy)}}function Xt(dt,jt){if(1&dt&&(v.j41(0,"div",7),v.DNE(1,Wt,2,3,"storefront-element",8),v.k0s()),2&dt){const Kt=v.XpG();v.Y8G("storefrontPullToRefresh",Kt.viewConfig.pullToRefresh)("onRefresh",Kt.onRefresh),v.R7$(),v.Y8G("ngForOf",Kt.children)("ngForTrackBy",Kt.trackByElement)}}function sn(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"div",10),v.nrm(1,"span",11),v.j41(2,"button",12),v.bIt("click",function(){v.eBV(Kt);const _t=v.XpG();return v.Njj(_t.reload())}),v.k0s()()}if(2&dt){const Kt=v.XpG();v.R7$(),v.Y8G("storefrontTranslate",Kt.viewConfig.errorMessage||"VIEW_ERROR")("storefrontTranslateArgs",v.eq3(3,Cn,Kt.dataSourceError.code)),v.R7$(),v.Y8G("storefrontTranslate",Kt.viewConfig.errorButtonLabel||"VIEW_ERROR_BUTTON")}}const tn=(0,Nt.zk)();let jn=(()=>{var dt;class jt{get className(){return this.viewConfig&&this.viewConfig.name}constructor(Ie,_t,Te,ft){this.document=_t,this.platformId=Te,this.purpleEnv=ft,this.context={},this.dataSources=[],this.visibleStickyChildren=new Set,this.isModal=!1,this.onRefresh=()=>this.update(),this.route=Ie.get(ne.nX),this.store=Ie.get(X.B),this.changeDetectorRef=Ie.get(v.gRc),this.ngZone=Ie.get(v.SKi),this.contextService=Ie.get(L.V),this.cleanUpService=Ie.get(R.I),this.elementRef=Ie.get(v.aKT),this.transferState=Ie.get(v.pJN),this.ssrService=Ie.get(ce.i),this.configLoaderService=Ie.get(A.Bh),this.kioskConfigService=Ie.get(G.x),this.purpleService=Ie.get(fe.Wj),this.metaService=Ie.get(K),this.globalService=Ie.get(je.d),this.analyticsService=Ie.get(ut.c),this.viewService=Ie.get(mt.z),this.destroyRef=Ie.get(v.abz),this.resourceService=Ie.get(zt.Q)}ngOnInit(){var Ie=this;console.debug("view init",this.getPath()),this.isLazy=!(tn.isUniversal&&!this.ssrService.currentPrebootStatus),this.route.data.subscribe(()=>{}),this.viewService.distinctView$(this.isModal).pipe((0,it.s)(1)).subscribe(function(){var _t=(0,l.A)(function*({cfg:Te}){const{viewConfig:ft,pathParams:Et,viewContext:ct}=Te;if(ct&&Ie.contextService.setMultipleData(ct),(0,ye.m)(ft)){var Lt;Ie.viewConfig=ft,Ie.viewConfig.maxAge&&Ie.metaService.addUpdateMetaTag("max-age",Ie.viewConfig.maxAge),Ie.viewConfig.errorPage&&(global.statusCode=Number((null==ct?void 0:ct.errorCode)||404));const Qt=(0,Ye.uQ)(Ie.viewConfig.title,Ie.contextService.getCurrentViewContext(),Ie.contextService.$functions,Ie.globalService.getGlobalData(),!1),rn=Ie.viewConfig.seo?(0,Ye.uQ)(Ie.viewConfig.seo,Ie.contextService.getCurrentViewContext(),Ie.contextService.$functions,Ie.globalService.getGlobalData(),!1):{};Ie.kioskConfigService.setTitle(null!==(Lt=null==rn?void 0:rn.og_title)&&void 0!==Lt?Lt:Qt),Ie.kioskConfigService.setMetadata(rn),Ie.onConfigReceived(),Ie.contextService.cancelPendingParamUpdates(),yield Ie.contextService.updateParamsContext(),Ie.outlet=Ie.contextService.getActiveOutlet(),Et&&Ie.contextService.setOutletData("pathParams",Et,Ie.outlet);let zn=!0,er=!1;Ie.store.subscribe(Ie.contextService.viewContext$,function(){var d=(0,l.A)(function*(T){if(T.outlet===Ie.outlet){if(Ie.context=T,zn&&(Ie.loadDataSources(),Ie.loadPageConfigs(),Ie.loadJsonLD(),zn=!1),!Ie.ssrService.currentPrebootStatus&&Ie.purpleEnv.isUniversal?(Ie.children=Ie.viewConfig&&Ie.viewConfig.content,Ie.childComponents.forEach(function(){var de=(0,l.A)(function*(Ae,nt){(0,Ye.ru)(Ie.children[nt],Ie.context,Ie.contextService.$functions,Ie.globalService.getGlobalData(),!1)&&(yield Ae.lazyLoad())});return function(Ae,nt){return de.apply(this,arguments)}}()),Ie.changeDetectorRef.detectChanges()):(Ie.children=Ie.viewConfig&&Ie.viewConfig.content.filter(de=>(0,Ye.ru)(de,Ie.context,Ie.contextService.$functions,Ie.globalService.getGlobalData(),!1)),Ie.changeDetectorRef.detectChanges(),Ie.childComponents.forEach(function(){var de=(0,l.A)(function*(Ae){yield Ae.lazyLoad()});return function(Ae){return de.apply(this,arguments)}}())),!er){const de=Ie.getTrackingConfig(T);de&&(Ie.store.dispatch((0,J.$3)(de)),er=!0)}zn=!1}});return function(T){return d.apply(this,arguments)}}(),Ce.lQ,Ce.lQ,"viewContext")}});return function(Te){return _t.apply(this,arguments)}}()),this.store.subscribe((0,He.R)(tn,Be.aU).pipe((0,Ze.p)(_t=>_t.detail.type===De.APP_STATE_TYPE.RESUMED)).pipe((0,we.c)(1e3)),()=>{this.handleUpdate()}),this.store.subscribe((0,He.R)(tn,Be.YT),()=>{this.handleUpdate()})}ngOnDestroy(){this.contextService.clear(),this.contextService.clearOutletData(),this.kioskConfigService.setMetadata(null,!1,!0)}reload(){tn.location.reload()}handleUpdate(){this.pullToRefresh?this.pullToRefresh.refresh():this.update(),this.cleanUpService.deleteExpiredIssues()}loadDataSources(){this.dataSources=[];const Ie=this.viewConfig.data;if(Ie){this.dataSources=Ie.map(Te=>(Te=(0,Ye.uQ)(Te,this.context,this.contextService.$functions,this.globalService.getGlobalData()),(0,ze.O8)(Te,this.contextService,this.store,this.elementRef.nativeElement,this.transferState,this.purpleService,this.globalService,this.document,this.resourceService,this.platformId))).filter(Te=>!!Te);const _t=(0,Oe.h)(...this.dataSources.map(Te=>Te.error$));this.store.subscribe(_t,Te=>this.dataSourceError=Te,Ce.lQ,Ce.lQ,"error"),this.dataSources.forEach(Te=>{Te.loadData()})}}loadPageConfigs(){const Ie=(0,Ye.uQ)(this.viewConfig.pageConfigs,this.context,this.contextService.$functions,this.globalService.getGlobalData())||null;this.contextService.setData("pageConfigs",Ie)}loadJsonLD(){let Ie=this.document.getElementById("json-ld");if(!Ie&&this.viewConfig.jsonLD&&(Ie=this.document.createElement("script"),Ie.setAttribute("id","json-ld"),Ie.setAttribute("type","application/ld+json"),document.head.appendChild(Ie)),this.viewConfig.jsonLD){let _t=(0,Ye.uQ)(this.viewConfig.jsonLD,this.context,this.contextService.$functions,this.globalService.getGlobalData());Ie.innerHTML=_t}else Ie&&(Ie.innerHTML="")}getPath(){return this.contextService.getPath()||(console.error("view.getPath called but no path in ctx service"),(0,p.Vy)(this.platformId)||tn.isUniversal?(0,w.ON)((0,qe.HJ)(this.document.location.href)):(0,w.ON)(tn.location.hash).split("#/")[1])}getTrackingConfig(Ie){const _t={...this.route.snapshot.queryParams};for(let Te in this.viewConfig.viewTrackingParams){let ft=(0,Ye.uQ)(Te,Ie,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(ft&&!(0,Ye.E7)(ft))return;let Et=(0,Ye.uQ)(this.viewConfig.viewTrackingParams[Te],Ie,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(ft&&!(0,Ye.E7)(ft))return;_t[ft]=Et}return{key:this.viewConfig.name,params:_t}}onConfigReceived(){this.document.scrollingElement.scrollTop=0}update(){var Ie=this;return(0,l.A)(function*(){yield Promise.all([Ie.contextService.update(),Ie.purpleService.updateDownloadHandlers(),Ie.purpleService.updateBookmarks(),Ie.purpleService.updateRepeatablePublicationProducts()])})()}onVisibilityChanged(Ie,_t){_t?this.visibleStickyChildren.delete(Ie):this.visibleStickyChildren.add(Ie)}trackByElement(Ie,_t){if("string"==typeof _t||"number"==typeof _t)return _t;const Te=_t.id||_t._uuid;if(!Te)throw"error trackbyElement: expected id or _uuid";return Te}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(v.zZn),v.rXU(p.qQ),v.rXU(v.Agw),v.rXU(ge.r6))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-view"]],viewQuery:function(Ie,_t){if(1&Ie&&(v.GBs(st,5),v.GBs(Bn,5)),2&Ie){let Te;v.mGM(Te=v.lsd())&&(_t.pullToRefresh=Te.first),v.mGM(Te=v.lsd())&&(_t.childComponents=Te)}},hostVars:2,hostBindings:function(Ie,_t){2&Ie&&v.HbH(_t.className)},features:[v.Jv_([X.B])],decls:3,vars:3,consts:[["viewChild",""],["class","sticky-elements",4,"ngIf"],["class","content",3,"storefrontPullToRefresh","onRefresh",4,"ngIf"],["class","view-error",4,"ngIf"],[1,"sticky-elements"],[3,"baseConfig",4,"ngFor","ngForOf","ngForTrackBy"],[3,"baseConfig"],[1,"content",3,"storefrontPullToRefresh","onRefresh"],[3,"baseConfig","controlsSticky","lazy","inViewport",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inViewport","baseConfig","controlsSticky","lazy"],[1,"view-error"],[3,"storefrontTranslate","storefrontTranslateArgs"],["mat-ripple","",1,"action-button",3,"click","storefrontTranslate"]],template:function(Ie,_t){1&Ie&&v.DNE(0,Lr,2,2,"div",1)(1,Xt,2,4,"div",2)(2,sn,3,5,"div",3),2&Ie&&(v.Y8G("ngIf",!_t.dataSourceError),v.R7$(),v.Y8G("ngIf",_t.viewConfig&&_t.children&&!_t.dataSourceError),v.R7$(),v.Y8G("ngIf",_t.dataSourceError))},dependencies:[p.Sq,p.bT,st,fn._,or.M],styles:["storefront-view{display:block;padding-top:var(--appBarHeight);padding-bottom:var(--navigationHeight);transition:all .15s ease;min-height:100vh;background-color:var(--backgroundColor)}storefront-view .content{position:relative}storefront-view .sticky-elements{position:fixed;width:100%;z-index:19}storefront-view .view-error{display:flex;flex-direction:column;align-items:flex-start;padding:var(--gutter)}storefront-view .view-error>.action-button{background-color:var(--secondaryColor);color:#fff}body.scrolled storefront-tab-navigation.scroll-hide~storefront-view{padding-bottom:0}body.scrolled storefront-tab-navigation.scroll-shrink~storefront-view{padding-bottom:var(--navigationShrinkHeight)}\n"],encapsulation:2}),jt})();var Sn=c(680);const Ht=["template"],On=["scrollContainer"],Gn=["container"];function $n(dt,jt){1&dt&&v.nrm(0,"storefront-element",7,2),2&dt&&v.Y8G("baseConfig",jt.$implicit)}let qn=(()=>{var dt;class jt extends jn{constructor(Ie,_t,Te,ft,Et){super(Ie,_t,Te,Et),this.document=_t,this.platformId=Te,this.purpleService=ft,this.purpleEnv=Et,this.context={},this.isModal=!0,this.renderer=Ie.get(v.sFG),this.router=Ie.get(ne.Ix)}static isValidAnimation(Ie){return Object.values(W.L).includes(Ie)}ngOnInit(){this.contextService.closeModalSubject.pipe((0,N.pQ)(this.destroyRef)).subscribe(Te=>{this.elementRef.nativeElement.contains(Te)?this.onClickClose():this.contextService.closeModalCompleteSubject.next(!1)}),this.hasNavigated=this.contextService.navigationCount>0,this.renderer.addClass(this.document.body,"no-scroll");const Ie=this.store.snapshot(this.route.params),_t=Ie&&Ie.animation;this.animation=_t&&jt.isValidAnimation(_t)?_t:W.L.SLIDE_IN}ngAfterViewInit(){var Ie=()=>super.ngOnInit,_t=this;return(0,l.A)(function*(){yield(0,Ce.wR)(1);const Te=getComputedStyle(_t.container.nativeElement),ft=()=>{Ie().call(_t),_t.initialized=!0},Et=parseFloat(Te.transitionDuration);Et>0&&_t.animation!==W.L.POP_UP?setTimeout(ft,Et):ft(),_t.elementRef.nativeElement.classList.add("visible"),_t.displayMode=yield _t.purpleService.getDisplayMode()})()}ngOnDestroy(){this.renderer.removeClass(this.document.body,"no-scroll"),this.contextService.clearOutletData((0,ue.kO)(this.elementRef.nativeElement))}getPath(){return this.route.snapshot.params.id}getTrackingConfig(Ie){return{...super.getTrackingConfig(Ie),popup:!0}}onConfigReceived(){}onClick(){this.initialized&&this.onClickClose()}onClickClose(){var Ie=this;return(0,l.A)(function*(){Ie.elementRef.nativeElement.classList.remove("visible");const _t=(0,p.UE)(Ie.platformId)?getComputedStyle(Ie.container.nativeElement):{},Te=()=>{Ie.store.dispatch((0,J.k4)({key:"POPUP_CLOSE_CLICKED",params:{popup:Ie.viewConfig&&Ie.viewConfig.name}})),!Ie.hasNavigated&&(0,Ce.dg)(Ie.displayMode)?Ie.purpleService.closeView():Ie.router.navigate([{outlets:{modal:null}}],{queryParamsHandling:"merge",replaceUrl:!0}),Ie.contextService.closeModalCompleteSubject.next(!0)};parseFloat(_t.transitionDuration)>0?(0,ue.L$)(Ie.container.nativeElement,"transitionend",Te):Te()})()}onClickContent(Ie){Ie.stopPropagation()}update(){return(0,l.A)(function*(){})()}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(v.zZn),v.rXU(p.qQ),v.rXU(v.Agw),v.rXU(fe.Wj),v.rXU(ge.r6))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-modal"]],viewQuery:function(Ie,_t){if(1&Ie&&(v.GBs(Ht,7,v.c1b),v.GBs(On,7,v.aKT),v.GBs(Gn,7,v.aKT)),2&Ie){let Te;v.mGM(Te=v.lsd())&&(_t.template=Te.first),v.mGM(Te=v.lsd())&&(_t.scrollContainer=Te.first),v.mGM(Te=v.lsd())&&(_t.container=Te.first)}},hostVars:1,hostBindings:function(Ie,_t){1&Ie&&v.bIt("click",function(){return _t.onClick()}),2&Ie&&v.BMQ("animation",_t.animation)},features:[v.Jv_([X.B]),v.Vt3],decls:6,vars:5,consts:[["container",""],["scrollContainer",""],["viewChild",""],[3,"click"],[1,"icon","icon-close",3,"click"],["storefrontCheckOverflowTarget","self",1,"modal-content",3,"storefrontCheckOverflow"],[3,"baseConfig",4,"ngFor","ngForOf"],[3,"baseConfig"]],template:function(Ie,_t){if(1&Ie){const Te=v.RV6();v.j41(0,"div",3,0),v.bIt("click",function(Et){return v.eBV(Te),v.Njj(_t.onClickContent(Et))}),v.j41(2,"button",4),v.bIt("click",function(){return v.eBV(Te),v.Njj(_t.onClickClose())}),v.k0s(),v.j41(3,"div",5,1),v.DNE(5,$n,2,1,"storefront-element",6),v.k0s()()}2&Ie&&(v.ZvI("modal-container ",_t.viewConfig&&_t.viewConfig.name,""),v.R7$(3),v.Y8G("storefrontCheckOverflow","vertical"),v.R7$(2),v.Y8G("ngForOf",_t.children))},dependencies:[p.Sq,fn._,Sn.G],styles:["storefront-modal{position:fixed;height:auto;bottom:0;width:100%;left:0;top:0;background:transparent;z-index:21;overflow:hidden;display:flex;justify-content:center;align-items:center;transition:background-color 60ms ease-in}storefront-modal[animation=POP_UP] .modal-container{min-width:200px;min-height:200px;max-width:90%;max-height:90%;width:auto;transform:scale(0);position:relative}storefront-modal[animation=POP_UP] .modal-container .modal-content{padding:var(--modalPadding);padding-bottom:var(--modalPaddingBottom)}storefront-modal[animation=POP_UP].visible{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:transparent}storefront-modal[animation=POP_UP].visible .modal-container{transform:scale(1);top:auto;left:auto}storefront-modal.visible{opacity:1;transition:background-color 60ms ease-out;background-color:#00000080}storefront-modal.visible .modal-container{transition:transform .2s ease-out 60ms;transform:translateY(0)}storefront-modal .modal-content{overflow:auto}storefront-modal .modal-content>storefront-element:last-child{margin-bottom:var(--modalPaddingBottom)}storefront-modal .modal-container{position:absolute;top:var(--appBarHeight);bottom:0;height:auto;width:100%;background-color:var(--modalBgColor);overflow:auto;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .15s ease-in}storefront-modal .modal-container>button.icon-close{align-self:flex-end;width:32px;height:32px;flex-shrink:0;font-size:18px;margin:var(--gutter)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom{-webkit-mask-image:linear-gradient(to bottom,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-top{-webkit-mask-image:linear-gradient(to top,black 0%,black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to top,#000,#000 calc(100% - 2 * var(--gutter)),#0000)}storefront-modal .modal-container .modal-content.scrollable-vert.scrollable-bottom.scrollable-top{-webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,0) 0%,black calc(2 * var(--gutter)),black calc(100% - 2 * var(--gutter)),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#0000,#000 calc(2 * var(--gutter)),#000 calc(100% - 2 * var(--gutter)),#0000)}\n"],encapsulation:2}),jt})();var Kn=c(5630),Qn=c(6354),Rr=c(6843),Pn=c(4945),Dt=c(7240);let ke=(()=>{var dt;class jt{constructor(Ie,_t,Te,ft,Et,ct){this.route=Ie,this.router=_t,this.store=Te,this.purpleService=ft,this.contextService=Et,this.globalService=ct,this.subscriptions=[]}ngOnInit(){var Ie=this;this.subscriptions.push(this.route.paramMap.subscribe(function(){var _t=(0,l.A)(function*(Te){const ft=Te.get("appName"),Et=Te.get("contentType"),ct=Te.get("contentId");"issue"===Et?Ie.router.navigate([ft,"presenter",ct],{queryParams:{preview:!0}}):Ie.subscriptions.push((0,Pn.jZ)(Rr.O.VIEW)(Ie.store).pipe((0,Qn.T)(Lt=>Lt.filter(Qt=>!Qt.condition||(0,Ye.ru)(Qt,void 0,Ie.contextService.$functions,Ie.globalService.getGlobalData()))),(0,Qn.T)(Lt=>Lt.find(rn=>Ie.hasContentComponent(rn.content)))).subscribe(function(){var Lt=(0,l.A)(function*(Qt){if(Qt){const rn=yield Ie.getPath(Qt,ct);Ie.router.navigate([ft,...rn.split("/")],{queryParams:{content:ct,preview:!0}})}});return function(Qt){return Lt.apply(this,arguments)}}()))});return function(Te){return _t.apply(this,arguments)}}()))}hasContentComponent(Ie){return!(!Array.isArray(Ie)||!Ie.find(_t=>0===_t.type.indexOf("content")||!!_t.content&&this.hasContentComponent(_t.content)))}getPath(Ie,_t){var Te=this;return(0,l.A)(function*(){const ft=Ie.path;if((0,Kn.qg)(ft).filter(Lt=>"string"!=typeof Lt).map(Lt=>Lt.name||null).filter(Lt=>!!Lt).length>0){const Lt=Ie.data;let Qt={};Lt&&Lt.forEach(zn=>{const er=zn.filter;Qt={...Qt,...Te.getVariableMappingFromFilter(er)}});const rn=Object.entries(Qt);if(rn.length>0){const zn=yield Te.purpleService.getCatalogContent(_t);rn.forEach(([er,d])=>{const T=d.split(".");Qt[er]=T.reduce((de,Ae)=>de[Ae],zn)})}return(0,Kn.wE)(ft,{encode:encodeURIComponent})(Qt)}return ft})()}ngOnDestroy(){this.subscriptions.length>0&&this.subscriptions.forEach(Ie=>Ie.unsubscribe())}getVariableMappingFromFilter(Ie,_t=""){let Te={};return Ie&&Object.entries(Ie).forEach(([ft,Et])=>{if(Et instanceof Array)Et.forEach(ct=>Te={...Te,...this.getVariableMappingFromFilter(ct)});else if("object"==typeof Et)Et.key&&Et.value&&"string"==typeof Et.value&&0===Et.value.indexOf(":")?Te[Et.value.substr(1)]="".concat(_t).concat(_t?".":"").concat(ft,".").concat(Et.key):Te={...Te,...this.getVariableMappingFromFilter(Et,"".concat(_t).concat(_t?".":"").concat(ft))};else if("string"==typeof Et&&0===Et.indexOf(":")){const ct=Et.substr(1);Te[ct]="".concat(_t).concat(_t?".":"").concat(ft)}}),Te}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(ne.nX),v.rXU(ne.Ix),v.rXU(me.il),v.rXU(fe.Wj),v.rXU(L.V),v.rXU(je.d))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-preview"]],decls:1,vars:0,template:function(Ie,_t){1&Ie&&v.nrm(0,"storefront-spinner")},dependencies:[Dt.t],encapsulation:2}),jt})(),Je=(()=>{var dt;class jt{constructor(Ie,_t,Te,ft){this.store=Ie,this.contextService=_t,this.document=Te,this.purpleService=ft,this.navigationAllowed=Promise.all([this.purpleService.getMetadata([De.METADATA_KEY.ENTITLEMENT_LOGIN_MODE]),this.purpleService.getDisplayMode()]).then(([Et,ct])=>!Et[De.METADATA_KEY.ENTITLEMENT_LOGIN_MODE]&&!(0,Ce.dg)(ct,Te)),(0,Pn.jZ)(Rr.O.ACCESS)(this.store).subscribe(Et=>this.access=Et)}canDeactivate(Ie,_t,Te){var ft=this;return(0,l.A)(function*(){return(yield ft.navigationAllowed)&&!ft.loginRequired()})()}loginRequired(){var Ie;return(null===(Ie=this.access)||void 0===Ie?void 0:Ie.forceLogin)&&!this.contextService.isLoggedIn()}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO(me.il),v.KVO(L.V),v.KVO(p.qQ),v.KVO(fe.Wj))},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac}),jt})();const ot=[{matcher:dt=>(0,Ce.KM)(dt)?{consumed:dt}:null,component:S},{path:"popup/:id/:animation",component:qn,outlet:"modal"},{path:"popup/:id",component:qn,outlet:"modal"},{path:"preview/:appName/:contentType/:contentId",component:ke},{path:"**",component:jn,canDeactivate:[Je],resolve:{notifyViewResolved:(dt,jt)=>(0,v.WQX)(mt.z).resolve(dt,jt)}}];let et=(()=>{var dt;class jt{handleError(Ie){throw Ie}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac}),jt})(),Ct=(()=>{var dt;class jt{constructor(Ie,_t,Te,ft){this.router=Ie,this.viewportScroller=_t,this.ngZone=Te,this.document=ft,Ie.events.pipe((0,Ze.p)(Et=>Et instanceof ne.OY)).subscribe(Et=>{this.handleScroll(Et,_t)})}handleScroll(Ie,_t){if(Ie.routerEvent instanceof ne.wF){if(Ie.routerEvent.urlAfterRedirects.includes("(modal:"))return void(this.inPopup=!0);if(this.inPopup&&(this.inPopup=!1,this.extractPathParam(Ie.routerEvent.urlAfterRedirects)===this.extractPathParam(this.lastMainView)))return;this.lastMainView=this.extractPathParam(Ie.routerEvent.urlAfterRedirects)}Ie.position?this.scrollTo(_t,Ie.position):Ie.anchor?_t.scrollToAnchor(Ie.anchor):_t.scrollToPosition([0,0])}extractPathParam(Ie){return new URL(Ie,"http://dummyurl.com").pathname}scrollTo(Ie,_t){Ie.scrollToPosition(_t),(this.document.documentElement.scrollHeight<_t[1]||this.document.documentElement.scrollWidth<_t[0])&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.scrollTo(Ie,_t),500)})}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO(ne.Ix),v.KVO(p.Xr),v.KVO(v.SKi),v.KVO(p.qQ))},dt.\u0275mod=v.$C({type:dt}),dt.\u0275inj=v.G2t({providers:[{provide:v.zcH,useClass:et},I,Je,{provide:p.hb,useFactory:Kt=>Kt.get(ge.r6).isUniversal?(console.debug("isUniversal, using path location strategy for routing"),new p.Sm(Kt.get(p.Vw))):(console.debug("!isUniversal, using hash location strategy for routing"),new p.fw(Kt.get(p.Vw))),deps:[v.zZn]}],imports:[ne.iI.forRoot(ot,{initialNavigation:"enabledNonBlocking"}),ne.iI]}),jt})();var xt=c(4871),cn=c(2596),Vn=c(9312),sr=c(5632),Bt=c(5204);function Hr(dt,jt){1&dt&&v.nrm(0,"storefront-element",6),2&dt&&v.Y8G("baseConfig",jt.$implicit)("lazy",!1)}let Br=(()=>{var dt;class jt{get dynClasses(){return[this.menuOpen?"state-open":"state-closed",this.config&&"side-".concat((this.config.side||"LEFT").toLowerCase())].filter(Ie=>!!Ie).join(" ")}constructor(Ie,_t,Te,ft,Et,ct){this.appMenuService=Ie,this.store=_t,this.changeDetectorRef=Te,this.contextService=ft,this.globalService=Et,this.destroyRef=ct}close(){this.appMenuService.setOpen(!1)}ngOnInit(){this.appMenuService.$menuOpen.pipe((0,N.pQ)(this.destroyRef),(0,Ze.p)(()=>!this.appMenuService.hasCustomSideMenu())).subscribe(Ie=>{this.menuOpen=Ie,this.changeDetectorRef.detectChanges()}),(0,Pn.jZ)(Rr.O.MENUS)(this.store).pipe((0,N.pQ)(this.destroyRef),(0,Qn.T)(Ie=>Ie.sideMenus.find(_t=>"default"===_t.id))).subscribe(Ie=>{var _t;this.config=Ie,this.children=null===(_t=this.config)||void 0===_t?void 0:_t.content.filter(Te=>(0,Ye.ru)(Te,this.contextService.getCurrentViewContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1)),this.changeDetectorRef.detectChanges()})}trackByElement(Ie,_t){if("string"==typeof _t||"number"==typeof _t)return _t;const Te=_t.id||_t._uuid;if(!Te)throw"error trackbyElement: expected id or _uuid "+JSON.stringify(_t);return Te}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(Bt.I),v.rXU(me.il),v.rXU(v.gRc),v.rXU(L.V),v.rXU(je.d),v.rXU(v.abz))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-side-menu"]],hostVars:2,hostBindings:function(Ie,_t){2&Ie&&v.HbH(_t.dynClasses)},decls:6,vars:2,consts:[[1,"side-menu-backdrop",3,"click"],[1,"side-menu",3,"click"],[1,"side-menu-header"],["mat-ripple","",1,"icon","icon-close",3,"click"],[1,"side-menu-content"],[3,"baseConfig","lazy",4,"ngFor","ngForOf","ngForTrackBy"],[3,"baseConfig","lazy"]],template:function(Ie,_t){1&Ie&&(v.j41(0,"div",0),v.bIt("click",function(){return _t.close()}),v.k0s(),v.j41(1,"nav",1),v.bIt("click",function(ft){return ft.stopPropagation()}),v.j41(2,"div",2)(3,"button",3),v.bIt("click",function(){return _t.close()}),v.k0s()(),v.j41(4,"div",4),v.DNE(5,Hr,1,2,"storefront-element",5),v.k0s()()),2&Ie&&(v.R7$(5),v.Y8G("ngForOf",_t.children)("ngForTrackBy",_t.trackByElement))},dependencies:[p.Sq,fn._],styles:["storefront-side-menu .side-menu{position:fixed;z-index:1001;top:0;left:0;height:100%;width:var(--sideMenuWidth, min(90vw, 350px));overflow-x:hidden;transform:translate(-100%);background-color:var(--sideMenuBackground, var(--backgroundColor));transition:transform var(--sideMenuTransitionTime, .3s);display:flex;flex-direction:column;padding:var(--gutter);gap:var(--gutter)}storefront-side-menu .side-menu>.side-menu-header{width:100%;display:flex}.side-left storefront-side-menu .side-menu>.side-menu-header{justify-content:end}storefront-side-menu .side-menu-backdrop{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;background-color:#000000b3;opacity:0;transition:opacity var(--sideMenuTransitionTime, .3s);pointer-events:none}.state-open .side-menu{transform:translate(0)}.state-open .side-menu-backdrop{opacity:1;pointer-events:auto}\n"],encapsulation:2}),jt})();var Xr=c(2628);let zr=(()=>{var dt;class jt{constructor(Ie,_t,Te){var ft=this;this.actions$=Ie,this.store=_t,this.purpleService=Te,this.listeners={},this.loadIssueStates$=(0,te.EH)(()=>this.actions$.pipe((0,te.gp)(Xr.Uo),(0,Qn.T)(function(){var Et=(0,l.A)(function*(ct){const Lt=ct.issues.filter(Qt=>!ft.listeners[Qt.id]);if(Lt.length){Lt.forEach(rn=>{ft.listeners[rn.id]||(ft.listeners[rn.id]=zn=>ft.store.dispatch((0,Xr.hc)({[rn.id]:zn})),ft.purpleService.addIssueStateListener({publicationId:rn.publicationId,issueVersion:rn.version,issueId:rn.id},ft.listeners[rn.id]))});const Qt=yield ft.purpleService.getIssueStates({issues:Lt.map(rn=>({issueId:rn.id,issueVersion:rn.version}))});ft.store.dispatch((0,Xr.hc)(Qt))}});return function(ct){return Et.apply(this,arguments)}}())),{dispatch:!1})}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO(te.En),v.KVO(me.il),v.KVO(fe.Wj))},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac}),jt})();var Jr=c(4579),Dr=c(3993),Tn=c(4004),fr=c(4622);let mo=(()=>{var dt;class jt{startQueueProcession(){this.zone.runOutsideAngular(()=>{setInterval(()=>{this.queue.length&&this.zone.run(()=>{this.store.dispatch((0,Tn.$W)({productIds:this.queue})),this.queue=[]})},200)})}constructor(Ie,_t,Te,ft){var Et=this;this.actions$=Ie,this.store=_t,this.zone=Te,this.purpleService=ft,this.queue=[],this.loadPrices$=(0,te.EH)(()=>this.actions$.pipe((0,te.gp)(Tn.$W),(0,Qn.T)(function(){var ct=(0,l.A)(function*(Lt){try{const Qt=yield Et.purpleService.getPrices(Lt.productIds.filter(zn=>!!zn));let rn=Lt.productIds.reduce((zn,er)=>({...zn,[er]:null}),{});rn=Qt.priceInfos.reduce((zn,er)=>({...zn,[er.productId]:er}),rn),Et.store.dispatch((0,Tn.Kx)({prices:rn}))}catch(Qt){Et.store.dispatch((0,Tn.Nb)({error:Qt,productIds:Lt.productIds}))}});return function(Lt){return ct.apply(this,arguments)}}())),{dispatch:!1}),this.loadPrice$=(0,te.EH)(()=>this.actions$.pipe((0,te.gp)(Tn.qF),(0,Dr.E)(this.store.select(fr.aJ)),(0,Qn.T)(function(){var ct=(0,l.A)(function*([Lt,Qt]){Object.keys(Qt).includes(Lt.productId)||Et.queue.push(Lt.productId)});return function(Lt){return ct.apply(this,arguments)}}())),{dispatch:!1}),this.startQueueProcession()}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO(te.En),v.KVO(me.il),v.KVO(v.SKi),v.KVO(fe.Wj))},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac}),jt})();var no=c(2099);const Ai=(0,Nt.zk)();let Pi=(()=>{var dt;class jt{constructor(Ie,_t,Te,ft,Et,ct){var Lt=this;this.actions$=Ie,this.document=_t,this.platformId=Te,this.purpleEnv=ft,this.purpleService=Et,this.viewService=ct,this.trackAction$=(0,te.EH)(()=>this.actions$.pipe((0,te.gp)(J.k4),(0,Qn.T)(function(){var Qt=(0,l.A)(function*(rn){let zn="";zn=Lt.purpleEnv.isUniversal?(0,qe.HJ)(Lt.document.location.href):Ai.location.href.split("#")[1];const er=yield gr(Lt.document,Lt.purpleService);Lt.viewService.getCurrentView().then(({default:{viewConfig:d}})=>Lt.purpleService.trackAction("STOREFRONT_".concat(rn.key),{...er,...rn.params,view:(null==d?void 0:d.name)&&(0,ge.Dh)(d.name)}))});return function(rn){return Qt.apply(this,arguments)}}())),{dispatch:!1}),this.trackView$=(0,te.EH)(()=>this.actions$.pipe((0,te.gp)(J.$3),(0,Qn.T)(function(){var Qt=(0,l.A)(function*(rn){const zn=yield gr(Lt.document,Lt.purpleService);Lt.purpleService.trackView("STOREFRONT_".concat(rn.key),{...zn,...rn.params,view:rn.key,popup:rn.popup?"true":"false"}),Lt.purpleService.trackAction("STOREFRONT_VIEW_".concat(rn.key),{...zn,...rn.params,view:rn.key,popup:rn.popup?"true":"false"})});return function(rn){return Qt.apply(this,arguments)}}())),{dispatch:!1}),this.trackPurchase$=(0,te.EH)(()=>this.actions$.pipe((0,te.gp)(J.Du),(0,Qn.T)(function(){var Qt=(0,l.A)(function*(rn){const zn=yield gr(Lt.document,Lt.purpleService),er={...rn.params,key:"STOREFRONT_".concat(rn.params.key)};er.optionalParams={...zn,...er.optionalParams},Lt.purpleService.trackPurchase(er)});return function(rn){return Qt.apply(this,arguments)}}())),{dispatch:!1})}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO(te.En),v.KVO(p.qQ),v.KVO(v.Agw),v.KVO(ge.r6),v.KVO(fe.Wj),v.KVO(mt.z))},dt.\u0275prov=v.jDH({token:dt,factory:dt.\u0275fac}),jt})();function gr(){return vo.apply(this,arguments)}function vo(){return(vo=(0,l.A)(function*(dt=Ai,jt){const Kt=new URLSearchParams("?"+dt.location.href.split("?")[1]);let _t,Te,Ie={};return Kt.get("issue")&&(_t=yield jt.getIssue(Kt.get("issue")).catch(()=>null)),Kt.get("publication")&&(Te=yield jt.getPublication(Kt.get("publication"))),_t&&(Ie={...Ie,...(0,ge.bJ)(_t)},Te||(Te=yield jt.getPublication(_t.publicationId))),Te&&(Ie={...Ie,...(0,ge.GA)(Te)}),Ie})).apply(this,arguments)}var ro=c(721),Fi=c(8301);let ni=(()=>{var dt;class jt{}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)},dt.\u0275mod=v.$C({type:dt}),dt.\u0275inj=v.G2t({imports:[p.MD,ro.u,le.r,Fi.d,Q.h]}),jt})();var oi=c(8482),uo=c(7574),Nn=c(2261),We=c(8004),gt=c(395);function wt(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"button",10),v.bIt("click",function(){v.eBV(Kt);const _t=v.XpG(2);return v.Njj(_t.onClickMenu())}),v.k0s()}}function It(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"button",11),v.bIt("click",function(){v.eBV(Kt);const _t=v.XpG(2);return v.Njj(_t.onClickBack())}),v.k0s()}}function Ut(dt,jt){if(1&dt&&(v.qex(0),v.DNE(1,wt,1,0,"button",8)(2,It,1,0,"button",9),v.bVm()),2&dt){const Kt=v.XpG();v.R7$(),v.Y8G("ngIf",!Kt.showBackButton()),v.R7$(),v.Y8G("ngIf",Kt.showBackButton())}}function an(dt,jt){1&dt&&v.nrm(0,"button",12)}function bn(dt,jt){if(1&dt){const Kt=v.RV6();v.qex(0),v.j41(1,"a",14),v.bIt("click",function(_t){v.eBV(Kt);const Te=v.XpG(2);return v.Njj(Te.onClickLogo(_t))}),v.k0s(),v.bVm()}if(2&dt){const Kt=v.XpG(2);v.R7$(),v.Y8G("href",Kt.anchorPath,v.B4B)}}function mn(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"div",15),v.bIt("click",function(_t){v.eBV(Kt);const Te=v.XpG(2);return v.Njj(Te.onClickLogo(_t))}),v.k0s()}}function Mn(dt,jt){if(1&dt&&(v.qex(0),v.DNE(1,bn,2,1,"ng-container",13)(2,mn,1,0,"ng-template",null,0,v.C5r),v.bVm()),2&dt){const Kt=v.sdS(3),Ie=v.XpG();v.R7$(),v.Y8G("ngIf",Ie.anchorFeatureEnabled)("ngIfElse",Kt)}}function pn(dt,jt){if(1&dt&&v.nrm(0,"div",16),2&dt){const Kt=v.XpG();v.Y8G("storefrontTranslate",Kt.getTitle())}}function mr(dt,jt){if(1&dt&&v.nrm(0,"storefront-element",17),2&dt){const Kt=v.XpG();v.Y8G("baseConfig",Kt.config.content)}}function _i(dt,jt){if(1&dt&&v.nrm(0,"storefront-button",17),2&dt){const Kt=v.XpG();v.Y8G("baseConfig",Kt.rightButton)}}function jr(dt,jt){1&dt&&v.nrm(0,"button",18)}function yr(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"button",19),v.bIt("click",function(){v.eBV(Kt);const _t=v.XpG();return v.Njj(_t.onClickClose())}),v.k0s()}}let Wr=(()=>{var dt;class jt{get cssClass(){return"scroll-".concat(this.config.scrollBehavior," app-bar-").concat(this.config.id)}constructor(Ie,_t,Te,ft,Et,ct,Lt,Qt,rn){this.renderer=Ie,this.document=_t,this.router=Te,this.store=ft,this.guard=Et,this.contextService=ct,this.eventActionService=Lt,this.purpleService=Qt,this.globalService=rn,this.navigationAllowed=!0,this.anchorFeatureEnabled=!1,this.anchorPath=""}ngOnInit(){var Ie=this;return(0,l.A)(function*(){Ie.contextService.viewContext$.subscribe(_t=>{Ie.context=_t,Ie.backNavigationAllowed=Ie.contextService.navigationCount>0,Ie.setRightButton()}),Ie.navigationAllowed=yield Ie.guard.navigationAllowed,Ie.store.select((0,Pn.jZ)(Rr.O.FEATURE),_t=>{if(null!=_t&&_t.anchorTags&&(Ie.anchorFeatureEnabled=_t.anchorTags,Ie.config.logo)){var Te;let ft;"object"==typeof Ie.config.logo&&Ie.config.logo.tap&&(ft=(0,Ye.v3)((0,Ye.uQ)(Ie.config.logo.tap,Ie.context,Ie.contextService.$functions,Ie.globalService.getGlobalData())),ft=ft.url||ft.path);const Et=Ie.contextService.getParams(),ct=Ie.contextService.getIsCustomerDomainUsed()?"/":Ie.contextService.getBrand();Ie.anchorPath="".concat(ct).concat(null!==(Te=ft)&&void 0!==Te?Te:"").concat(Et.preview?"?preview=true":"")}})})()}ngOnChanges(Ie){this.config={...Nn.a,...this.config},this.renderer.setAttribute(this.document.body,"app-bar-scroll-behavior",this.config.scrollBehavior)}showBackButton(){return"back"===this.config.leftButton&&this.backNavigationAllowed}onClickMenu(){this.store.dispatch((0,J.k4)({key:"APP_BAR_MENU_CLICKED"})),this.purpleService.openActionUrl("purple://app/menu/open")}onClickLogo(Ie){if(this.store.dispatch((0,J.k4)({key:"APP_BAR_LOGO_CLICKED"})),"object"==typeof this.config.logo&&this.config.logo.tap){const ft=(0,Ye.v3)((0,Ye.uQ)(this.config.logo.tap,this.context,this.contextService.$functions,this.globalService.getGlobalData()));if(ft)return this.eventActionService.processEventAction(ft,this)}const _t=this.contextService.getParams(),Te=this.contextService.getIsCustomerDomainUsed()?"/":this.contextService.getBrand();this.router.navigate([Te],{queryParams:{preview:_t.preview}})}onClickBack(){this.store.dispatch((0,J.k4)({key:"APP_BAR_BACK_CLICKED"})),window.history.back()}onClickClose(){this.purpleService.closeView()}getTitle(){return(0,Ye.uQ)(this.config.title,this.context,this.contextService.$functions,this.globalService.getGlobalData())}setRightButton(){this.rightButton=(0,Ye.v3)((0,Ye.uQ)(this.config.rightButton,this.context,this.contextService.$functions,this.globalService.getGlobalData()))}getContext(){return this.context}getId(){return this.config.id}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(v.sFG),v.rXU(p.qQ),v.rXU(ne.Ix),v.rXU(X.B),v.rXU(Je),v.rXU(L.V),v.rXU(We.G),v.rXU(fe.Wj),v.rXU(je.d))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-app-bar"]],hostVars:2,hostBindings:function(Ie,_t){2&Ie&&v.HbH(_t.cssClass)},inputs:{config:"config"},features:[v.Jv_([X.B]),v.OA$],decls:9,vars:8,consts:[["noAnchorTemplate",""],[4,"ngIf"],["style","pointer-events: none",4,"ngIf"],[1,"app-bar-content"],["class","title",3,"storefrontTranslate",4,"ngIf"],[3,"baseConfig",4,"ngIf"],["style","pointer-events: none; display: none",4,"ngIf"],["class","icon icon-close",3,"click",4,"ngIf"],["class","icon icon-menu","mat-ripple","",3,"click",4,"ngIf"],["class","icon icon-arrow-left","mat-ripple","",3,"click",4,"ngIf"],["mat-ripple","",1,"icon","icon-menu",3,"click"],["mat-ripple","",1,"icon","icon-arrow-left",3,"click"],[2,"pointer-events","none"],[4,"ngIf","ngIfElse"],[1,"logo",3,"click","href"],[1,"logo",3,"click"],[1,"title",3,"storefrontTranslate"],[3,"baseConfig"],[2,"pointer-events","none","display","none"],[1,"icon","icon-close",3,"click"]],template:function(Ie,_t){1&Ie&&(v.DNE(0,Ut,3,2,"ng-container",1)(1,an,1,0,"button",2),v.j41(2,"div",3),v.DNE(3,Mn,4,2,"ng-container",1)(4,pn,1,1,"div",4),v.k0s(),v.DNE(5,mr,1,1,"storefront-element",5)(6,_i,1,1,"storefront-button",5)(7,jr,1,0,"button",6)(8,yr,1,0,"button",7)),2&Ie&&(v.Y8G("ngIf",_t.config.leftButton&&_t.navigationAllowed),v.R7$(),v.Y8G("ngIf",!_t.navigationAllowed),v.R7$(2),v.Y8G("ngIf",_t.config.logo),v.R7$(),v.Y8G("ngIf",_t.config.title),v.R7$(),v.Y8G("ngIf",_t.config.content),v.R7$(),v.Y8G("ngIf",_t.rightButton&&_t.navigationAllowed),v.R7$(),v.Y8G("ngIf",!_t.rightButton&&_t.navigationAllowed),v.R7$(),v.Y8G("ngIf",!_t.navigationAllowed))},dependencies:[p.bT,or.M,gt.Q,U.r6,fn._],styles:["storefront-app-bar{display:var(--appBarDisplay);width:100%;justify-content:center;align-items:center;position:fixed;top:0;transition:all .15s ease;padding:var(--appBarPaddingVert) var(--appBarPaddingHoriz);z-index:999;height:var(--appBarHeight);background-color:var(--appBarColor);color:var(--appBarTextColor);--textColor: var(--appBarTextColor)}storefront-app-bar .logo{background-repeat:no-repeat;background-position:top center;background-size:contain;height:100%;width:80%;max-width:300px}storefront-app-bar .app-bar-content{position:relative;height:100%;width:auto;display:flex;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;font-size:var(--appBarFontSize);transition:all .15s ease}storefront-app-bar button,storefront-app-bar storefront-button{width:var(--appBarButtonWidth);height:100%;background-color:transparent}storefront-app-bar button.has-text,storefront-app-bar storefront-button.has-text{width:auto}body.scrolled storefront-app-bar.scroll-hide{transform:translateY(-100%)}\n"],encapsulation:2}),jt})();var Vr=c(2348);function nr(dt,jt){if(1&dt){const Kt=v.RV6();v.j41(0,"div",1),v.bIt("click",function(){const _t=v.eBV(Kt).$implicit,Te=v.XpG();return v.Njj(Te.onClickEntry(_t))}),v.nrm(1,"span",2),v.k0s()}if(2&dt){const Kt=jt.$implicit,Ie=v.XpG();v.AVh("active",Ie.isActive(Kt)),v.R7$(),v.Y8G("storefrontTranslate",Kt.text)}}let lr=(()=>{var dt;class jt{get scrollBehavior(){return"scroll-".concat(this.config.scrollBehavior)}constructor(Ie,_t,Te,ft){this.router=Ie,this.eventActionService=_t,this.store=Te,this.contextService=ft}ngOnInit(){this.store.subscribe(this.contextService.viewContext$,Ie=>this.context=Ie)}ngOnChanges(Ie){this.config={...di,...this.config}}onClickEntry(Ie){const _t=Ie,Te=Ie;if(_t.tap)this.store.dispatch((0,J.k4)({key:"TAB_NAVIGATION_CLICKED",params:{action:(0,ge.Dh)(_t.tap.type)}})),this.eventActionService.processEventAction(_t.tap,this);else{this.store.dispatch((0,J.k4)({key:"TAB_NAVIGATION_CLICKED",params:{target:(0,ge.Dh)(Te.path),...Te.params}}));const ft=this.isActive(Ie);let Et={};const ct=this.contextService.getParams(),Lt=this.contextService.getBrand();Et=ft?ct:{preview:ct.preview},Et={...Et,...Te.params};let Qt=[Lt,Te.path];this.contextService.getIsCustomerDomainUsed()&&(Qt=[Te.path]),this.router.navigate(Qt,{queryParams:Et,replaceUrl:ft})}}isActive(Ie){return!!Ie.path&&this.router.isActive(Ie.path,!1)}getId(){return this.config.id}getContext(){return this.context}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.rXU(ne.Ix),v.rXU(We.G),v.rXU(X.B),v.rXU(L.V))},dt.\u0275cmp=v.VBU({type:dt,selectors:[["storefront-tab-navigation"]],hostVars:2,hostBindings:function(Ie,_t){2&Ie&&v.HbH(_t.scrollBehavior)},inputs:{config:"config"},features:[v.Jv_([X.B]),v.OA$],decls:2,vars:1,consts:[["mat-ripple","","class","tab-navigation-entry",3,"active","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"tab-navigation-entry",3,"click"],[3,"storefrontTranslate"]],template:function(Ie,_t){1&Ie&&(v.j41(0,"div"),v.DNE(1,nr,2,3,"div",0),v.k0s()),2&Ie&&(v.R7$(),v.Y8G("ngForOf",_t.config.entries))},dependencies:[p.Sq,or.M,U.r6],styles:["storefront-tab-navigation{width:100%;display:flex;flex-direction:row;height:var(--navigationHeight);transition:height .2s ease,transform .2s ease;background-color:var(--navigationBgColor);z-index:20}storefront-tab-navigation>div{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)}storefront-tab-navigation .tab-navigation-entry{height:100%;padding:0 var(--gutter);color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex;align-items:center;justify-content:center}storefront-tab-navigation .tab-navigation-entry span{display:block;white-space:nowrap}body.scrolled-down storefront-tab-navigation.scroll-hide{transform:translateY(100%)}body.scrolled-down storefront-tab-navigation.scroll-shrink{height:var(--appBarShrinkHeight)}storefront-tab-navigation .active{color:var(--navigationActiveColor)}\n"],encapsulation:2}),jt})();const di={id:null,scrollBehavior:Vr.K.HIDE,entries:[]},Gr=(0,v.zw6)("PurpleEnvironment"),Dn=(0,v.zw6)("BuildInfo");let si=(()=>{var dt;class jt{constructor(Ie){this.injector=Ie,Vn.q.injector=this.injector}}return(dt=jt).\u0275fac=function(Ie){return new(Ie||dt)(v.KVO(v.zZn))},dt.\u0275mod=v.$C({type:dt,bootstrap:[V.Z]}),dt.\u0275inj=v.G2t({providers:[{provide:v.sZ2,useValue:"purpleStorefront"},(0,$.$x)((0,$.dE)()),X.B,sr.l,{provide:U.$E,useValue:{animation:{enterDuration:200}}},sr.l,{provide:cn.s,useFactory:(Kt,Ie,_t)=>(0,p.Vy)(_t)?new cn.A(Kt):new cn.s(Kt,Ie),deps:[ne.Ix,je.d,v.Agw]},{provide:v.hnV,useFactory:Ni,deps:[p.qQ,R.I,ce.i,v.Agw,ge.r6,v.pJN,[new v.Xx1,"host"]],multi:!0},{provide:ge.r6,useFactory:(Kt,Ie,_t)=>{if((0,p.UE)(Ie))return Kt.hasKey(Gr)?Kt.get(Gr,{}):{CATALOG_API_BASE_URL:"",KIOSK_BASE_URL:"",MANAGER_BASE_URL:"",isApp:!0};{let Te;try{Te=_t.get(ge._w)}catch{}return Te?Kt.set(Gr,Te):console.error("server should provide PURPLE_ENV_BACKEND"),Te}},deps:[v.pJN,v.Agw,v.zZn]},ce.i,fe.Wj,{provide:p.kB,useValue:"/"},{provide:oi.y,useFactory:(Kt,Ie,_t,Te,ft,Et)=>{var ct;return(0,p.UE)(_t)&&Kt.hasKey(A.tZ)?(null===(ct=Kt.get(A.tZ,{}))||void 0===ct||null===(ct=ct.ads)||void 0===ct?void 0:ct.traffective)?new oi.y(Ie,_t,Te,ft,Et):null:new oi.y(Ie,_t,Te,ft,Et)},deps:[v.pJN,L.V,v.Agw,uo.e,ne.Ix,v.SKi]}],imports:[B.wb,Ct,Z.t,le.r,ni,z,Y.P,Q.h,xt.E,me.md.forRoot({[Pn.iL]:(0,Pn.HN)(Pn.sb),[Jr.$]:Jr.F,[no.E]:no.F}),te.Vm.forRoot([Pn.L2,zr,Pi,mo]),E.q1,pe]}),jt})();function Ni(dt,jt,Kt,Ie,_t,Te,ft){return(0,l.A)(function*(){let Et;if(!(0,v.naY)()&&!_t.isApp&&!dt.location.href.includes("debug=true")&&!dt.location.href.includes("preview=true")&&(console.debug=console.log=()=>{}),Te.hasKey(Dn))Et=Te.get(Dn,{});else if((0,p.Vy)(Ie))Te.set(Dn,_t.buildInfo);else{const ct=ft&&0!==ft.indexOf("http")?"http://":"",Lt=ft&&ft.lastIndexOf("/")!==ft.length-1?"/":"";try{let Qt;Qt=_t.isApp?"./buildInfo.json":"".concat(ct).concat(ft).concat(Lt,"buildInfo.json"),Et=yield(0,Ce.hI)(Qt),Te.set(Dn,Et)}catch(Qt){console.error("Error laoding build info",Qt)}}if(Et&&!(0,p.Vy)(Ie)){let ct="Purple Experience | (c) Purple DS - Sprylab\n====================================\n";"object"==typeof Et?(ct+="Version ".concat(Et.packageVersion," | Commit @").concat(Et.commit," on ").concat(Et.branch,"\n"),ct+="Built on ".concat(Et.buildDate,", commit from ").concat(Et.commitDate)):ct+="missing build infos",console.log(ct),window.prebootData={apps:["empty"]}}})}v.wjB(V.Z,function(){return[p.bT,ne.n3,Wr,lr,Br]},[])},2261:(ee,_,c)=>{"use strict";c.d(_,{F:()=>p,a:()=>E});var l=c(2348),p=function(v){return v.BACK="back",v.MENU="menu",v}(p||{});const E={id:null,scrollBehavior:l.K.SHRINK,logo:!0,leftButton:p.MENU}},2783:(ee,_,c)=>{"use strict";c.d(_,{t:()=>B});var l=c(177),p=c(6483),E=c(9383),v=c(9805),U=c(6895),$=c(4438);let B=(()=>{var ne;class te{}return(ne=te).\u0275fac=function(V){return new(V||ne)},ne.\u0275mod=$.$C({type:ne}),ne.\u0275inj=$.G2t({imports:[l.MD,p.h,v.ButtonModule,E.pZ,U.r]}),te})()},1210:(ee,_,c)=>{"use strict";c.d(_,{$:()=>le});var l=c(177),p=c(4438),E=c(4412),v=c(8179),U=c(5964),$=c(2962),B=c(362),te=c(1184),me=c(24),V=c(5483),Z=c(1652);let le=(()=>{var Q;class z{get ghost(){return this.isGhost()}get elementId(){return(this.config||this.baseConfig).id}get id(){return this.getId()}get elementClass(){const ve=(this.config||this.baseConfig).class;return Array.isArray(ve)?ve.map(pe=>(0,v.v3)(pe)).join(" "):(0,v.v3)(ve)}get template(){return(this.config||this.baseConfig).template}constructor(ve,pe,fe,w,j){this.injector=ve,this.elementRef=pe,this.contextService=fe,this.document=w,this.globalService=j,this.contextKeys=void 0,this.baseContext={},this.delete=new p.bkB,this.processing=new p.bkB,this.configChanges$=new E.t(null),this.componentContextChanges$=new E.t({}),this.inited=new E.t(!1),this.inspectorService=ve.get(me.j)}ngOnInit(){if(this.skipRender=this.baseConfig.skipSSR&&(0,l.Vy)(this.injector.get(p.Agw)),!this.skipRender){try{this.inspectorService.registerComponent(this.elementRef.nativeElement,this)}catch{}this.outlet=(0,$.kO)(this.elementRef.nativeElement,this.document),this.configChanges$.next(this.baseConfig),this.viewContextChangesSubscription=this.contextService.viewContextChange$.pipe((0,U.p)(ve=>ve&&ve.value.outlet===this.outlet)).subscribe(ve=>{this.contextKeys||this.rebuildContextKeys(),(!this.contextKeys||this.hasAnyContextKey(ve.change)||this.hasAContextKey(ve.change))&&this.handleChange(this.configChanges$.value,ve.value,this.componentContextChanges$.value,!0,ve.change)}),this.componentContextChangesSubscription=this.componentContextChanges$.subscribe(ve=>{Object.keys(ve).length>0&&this.handleChange(this.configChanges$.value,this.contextService.getCurrentViewContext(),ve,!0)}),this.configChangesSubscription=this.configChanges$.subscribe(ve=>{this.handleChange(ve,this.contextService.getCurrentViewContext(),this.componentContextChanges$.value,!1),this.contextKeys||this.rebuildContextKeys()}),this.inited.next(!0)}}hasAContextKey(ve){if(!ve)return!1;const pe=this.getContextKey();return!(!pe||!ve[pe])}hasAnyContextKey(ve){for(const pe in ve)if(this.contextKeys.has(pe))return!0;return 0===Object.keys(ve).length}stripChildConfigs(ve){return ve}handleChange(ve,pe,fe,w,j){if(!ve||!pe||!fe)return;const I={...pe,...this.baseContext,...fe},S=(0,v.uQ)(this.stripChildConfigs({...this.defaultConfig,...this.config,...ve}),I,this.contextService.$functions,this.globalService.getGlobalData());this.context||(this.context={}),(0,v.ZY)(S,this.getConfigEscapeProperties())&&(!this.config||this.hasConfigChanged(S)||w&&this.hasContextChanged(I)||this.hasAContextKey(j))?(this.context={...this.context,...I},this.config={...JSON.parse(JSON.stringify(this.defaultConfig)),...S},this.onConfigChanges()):this.context={...this.context,...I}}rebuildContextKeys(){this.contextKeys=new Set,(0,te.Fl)(this.stripChildConfigs(structuredClone(this.baseConfig)),this.contextKeys)}ngOnChanges(ve){}ngOnDestroy(){this.skipRender||(this.configChangesSubscription&&(this.configChangesSubscription.unsubscribe(),this.viewContextChangesSubscription.unsubscribe(),this.componentContextChangesSubscription.unsubscribe()),this.inspectorService.unregisterComponent(this.elementRef.nativeElement))}getElementRef(){return this.elementRef}getContext(){return this.context}getConfigEscapeProperties(){return["content","condition"]}getType(){return this.constructor.type}getId(){return(0,v.v3)((this.config||this.baseConfig).id)}getTrackingParams(){return{}}getTrackingBaseKey(){return this.elementId||this.getType()}getErrorDialogArgs(ve){return[]}onConfigChanges(){}isGhost(){return!1}hasConfigChanged(ve){return!B(ve,this.config)}hasContextChanged(ve){if(ve.resolvedDependencies&&!this.context.resolvedDependencies)return!0;const pe=JSON.stringify(this.baseConfig);return pe.indexOf(v.mF)>-1&&!!Object.keys(ve).filter(w=>pe.indexOf("".concat(v.mF,".").concat(w))>-1||pe.indexOf("".concat(v.mF,"[").concat(w,"]"))>-1).find(w=>ve[w]!==this.context[w]&&!B(ve[w],this.context[w]))}setComponentContext(ve,pe){this.componentContextChanges$.next({...this.componentContextChanges$.getValue(),[ve]:pe})}onStateChange(ve){(!ve||ve.baseConfig||ve.baseContext)&&this.configChanges$.next(this.baseConfig)}getContextKey(){return null}}return(Q=z).\u0275fac=function(ve){return new(ve||Q)(p.rXU(p.zZn),p.rXU(p.aKT),p.rXU(V.V),p.rXU(l.qQ),p.rXU(Z.d))},Q.\u0275dir=p.FsC({type:Q,hostVars:7,hostBindings:function(ve,pe){2&ve&&(p.BMQ("id",pe.elementId)("context-id",pe.id)("template",pe.template),p.HbH(pe.elementClass),p.AVh("ghost",pe.ghost))},inputs:{baseConfig:"baseConfig",baseContext:"baseContext"},outputs:{delete:"delete",processing:"processing"},features:[p.OA$]}),z})()},395:(ee,_,c)=>{"use strict";c.d(_,{Q:()=>X});var l=c(467),p=c(177),E=c(4438),v=c(8179),U=c(1210);const $={tap:null,attributes:{}};var B=c(4338),ne=c(4049),te=c(6697),me=c(5483),V=c(8004),Z=c(9118),le=c(1652),Q=c(5820),z=c(8909),Y=c(9383),ve=c(7240);const pe=["button"],fe=(J,Ce)=>[J,Ce];function w(J,Ce){1&J&&E.nrm(0,"storefront-spinner",6)}function j(J,Ce){}function I(J,Ce){if(1&J&&(E.qex(0),E.j41(1,"a",7),E.DNE(2,j,0,0,"ng-template",8),E.k0s(),E.bVm()),2&J){const ue=E.XpG(),ge=E.sdS(5);E.R7$(),E.Y8G("href",ue.anchorPath||"/",E.B4B),E.R7$(),E.Y8G("ngTemplateOutlet",ge)}}function S(J,Ce){if(1&J&&(E.j41(0,"div",11),E.nrm(1,"img",12),E.k0s()),2&J){const ue=E.XpG(2);E.Y8G("ngClass",ue.iconLeft.cssClasses),E.R7$(),E.Y8G("src",ue.iconLeft.url,E.B4B)}}function N(J,Ce){if(1&J&&(E.DNE(0,S,2,2,"div",9),E.nrm(1,"span",10)),2&J){const ue=E.XpG();E.Y8G("ngIf",ue.iconLeft),E.R7$(),E.Y8G("storefrontTranslate",ue.message)("storefrontTranslateArgs",ue.variables)}}function W(J,Ce){if(1&J&&(E.j41(0,"div",13),E.nrm(1,"img",12),E.k0s()),2&J){const ue=E.XpG();E.Y8G("ngClass",ue.iconRight.cssClasses),E.R7$(),E.Y8G("src",ue.iconRight.url,E.B4B)}}let X=(()=>{var J;class Ce extends U.${constructor(ge,De,He,Oe,it,Ze,we,ye,ze){super(He,ge,De,we,ye),this.elementRef=ge,this.contextService=De,this.injector=He,this.eventActionService=Oe,this.changeDetectorRef=it,this.kioskConfigService=Ze,this.document=we,this.globalService=ye,this.anchorService=ze,this.defaultConfig={...$},this.processingAction=!1,this.anchorFeatureEnabled=!1,this.anchorPath=null,this.onButtonTap=new E.bkB(!1),this.variables=[],this.kioskConfigService.getConfig().pipe((0,te.s)(1)).subscribe(Ye=>this.kioskConfigData=Ye)}get hasText(){return!!this.message}get hasIconLeft(){return!!this.iconLeft}get hasIconRight(){return!!this.iconRight}ngOnInit(){var ge=()=>super.ngOnInit,De=this;return(0,l.A)(function*(){De.anchorFeatureEnabled=De.anchorService.isAnchorFeatureEnabled()&&!De.disableAnchor,ge().call(De)})()}onConfigChanges(){super.onConfigChanges();const ge=(0,v.uQ)(this.config,this.context,this.contextService.$functions,this.globalService.getGlobalData());this.button&&this.button.nativeElement&&Object.keys(ge.attributes).forEach(Oe=>{(0,v.Ol)(ge.attributes[Oe])?this.button.nativeElement.setAttribute(Oe,(0,v.v3)(ge.attributes[Oe])):this.button.nativeElement.removeAttribute(Oe)}),this.anchorFeatureEnabled&&(this.anchorPath=this.anchorService.getAnchorPath(this.config.tap,this.context,this.anchorFeaturePath)),this.variables=this.config.variables||[],this.message=this.config.message;const De=(0,v.v3)(this.config.iconLeft);Array.isArray(null==De?void 0:De.cssClasses)&&(De.cssClasses=De.cssClasses.map(Oe=>(0,v.v3)(Oe))),this.iconLeft=De;const He=(0,v.v3)(this.config.iconRight);Array.isArray(null==He?void 0:He.cssClasses)&&(He.cssClasses=He.cssClasses.map(Oe=>(0,v.v3)(Oe))),this.iconRight=He,this.changeDetectorRef.detectChanges()}onTap(ge){var De=this;return(0,l.A)(function*(){De.processingAction=!0,De.changeDetectorRef.detectChanges(),De.onButtonTap.emit(ge),!ge.defaultPrevented&&De.config.tap&&(De.anchorFeatureEnabled&&(ge.preventDefault(),ge.stopPropagation()),yield De.eventActionService.processEventAction((0,v.v3)(De.config.tap),De)),De.processingAction=!1,De.changeDetectorRef.detectChanges()})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"params"]}interpolatePath(ge,De=this.context){let He=ge?(0,ne.K)(ge,De):"";const Oe=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand()),it=new URL(window.location.href),Ze="true"===it.searchParams.get("preview")||0===it.pathname.indexOf("/preview");return"".concat(Oe).concat(He.startsWith("/")?He:"/"+He).concat(Ze?"?preview=true":"")}}return(J=Ce).type="button",J.\u0275fac=function(ge){return new(ge||J)(E.rXU(E.aKT),E.rXU(me.V),E.rXU(E.zZn),E.rXU(V.G),E.rXU(E.gRc),E.rXU(Z.x),E.rXU(p.qQ),E.rXU(le.d),E.rXU(Q.X))},J.\u0275cmp=E.VBU({type:J,selectors:[["storefront-button"]],viewQuery:function(ge,De){if(1&ge&&E.GBs(pe,5),2&ge){let He;E.mGM(He=E.lsd())&&(De.button=He.first)}},hostVars:6,hostBindings:function(ge,De){2&ge&&E.AVh("has-text",De.hasText)("has-icon-left",De.hasIconLeft)("has-icon-right",De.hasIconRight)},inputs:{anchorFeaturePath:"anchorFeaturePath",disableAnchor:"disableAnchor"},outputs:{onButtonTap:"onButtonTap"},features:[E.Jv_([B.B]),E.Vt3],decls:7,vars:8,consts:[["button",""],["noAnchorTemplate",""],["mat-ripple","",3,"click","ngClass"],["class","button-spinner",4,"ngIf"],[4,"ngIf","ngIfElse"],["class","button-icon button-icon-right",3,"ngClass",4,"ngIf"],[1,"button-spinner"],[3,"href"],[3,"ngTemplateOutlet"],["class","button-icon button-icon-left",3,"ngClass",4,"ngIf"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"button-icon","button-icon-left",3,"ngClass"],[3,"src"],[1,"button-icon","button-icon-right",3,"ngClass"]],template:function(ge,De){if(1&ge){const He=E.RV6();E.j41(0,"button",2,0),E.bIt("click",function(it){return E.eBV(He),E.Njj(De.onTap(it))}),E.DNE(2,w,1,0,"storefront-spinner",3)(3,I,3,2,"ng-container",4)(4,N,2,3,"ng-template",null,1,E.C5r)(6,W,2,2,"div",5),E.k0s()}if(2&ge){const He=E.sdS(5);E.Y8G("ngClass",E.l_i(5,fe,(null==De.config?null:De.config.buttonClass)||"",De.message?"has-text":"").join(" ")),E.R7$(2),E.Y8G("ngIf",De.processingAction),E.R7$(),E.Y8G("ngIf",De.anchorFeatureEnabled)("ngIfElse",He),E.R7$(3),E.Y8G("ngIf",De.iconRight)}},dependencies:[p.YU,p.bT,p.T3,z.M,Y.r6,ve.t],styles:["storefront-button button{display:flex;align-items:center}storefront-button button a{width:100%;display:flex;justify-content:center;align-items:center}storefront-button button a span{width:100%;display:flex;justify-content:center;align-items:center}storefront-button.has-icon-left button,storefront-button.has-icon-right button{gap:var(--menuItemIconGap)}storefront-button .button-icon{display:flex;align-items:center}storefront-button .button-icon>img{height:var(--menuItemIconHeight);object-fit:contain}\n"],encapsulation:2,changeDetection:0}),Ce})()},9805:(ee,_,c)=>{"use strict";c.r(_),c.d(_,{ButtonModule:()=>B,component:()=>ne});var l=c(177),p=c(395),E=c(6483),v=c(9383),U=c(6215),$=c(4438);let B=(()=>{var te;class me{}return(te=me).\u0275fac=function(Z){return new(Z||te)},te.\u0275mod=$.$C({type:te}),te.\u0275inj=$.G2t({imports:[l.MD,E.h,v.pZ,U.O]}),me})();const ne=p.Q},3600:(ee,_,c)=>{"use strict";c.d(_,{H:()=>l,a:()=>p});const l={allowManualTagConfig:!0},p="storefront-usertag-overwrite"},3648:(ee,_,c)=>{"use strict";c.d(_,{_:()=>I});var l=c(467),p=c(177),E=c(4438),v=c(362),$=c(4338),B=c(3178),ne=c(2962),te=c(8890),me=c(5964),V=c(1594),Z=c(8179),le=c(7879),Q=c(24),z=c(5483),Y=c(1652),ve=c(8474),pe=c(4748),fe=c(7240);const w=["viewTemplate"];function j(S,N){if(1&S&&E.nrm(0,"storefront-spinner"),2&S){const W=E.XpG();E.Aen(W.getSpinnerStyle())}}let I=(()=>{var S;class N{get type(){return this.baseConfig.type}get childId(){return this.childIdComputed}constructor(X,J,Ce,ue,ge,De,He,Oe,it,Ze,we,ye){this.elementRef=X,this.changeDetectorRef=J,this.inspectorService=Ce,this.subscriptions=ue,this.contextService=ge,this.injector=De,this.compiler=He,this.globalService=Oe,this.dataShareService=it,this.platformId=Ze,this.purpleEnv=we,this.ssrService=ye,this.baseContext={},this.delete=new E.bkB,this.lazy=!1,this.controlsSticky=!1,this.inViewport=new E.bkB,this.initialized=!1}ngOnInit(){const X={...this.contextService.getContext(),...this.baseContext};if(this.purpleEnv.isUniversal&&!(0,Z.ru)(this.baseConfig,X,this.contextService.$functions,this.globalService.getGlobalData(),!1))return;const J=(0,p.Vy)(this.platformId);this.skipRender=this.baseConfig.skipSSR&&J,this.skipRender||(this.childIdComputed=this.baseConfig.id?(0,Z.uQ)(this.baseConfig.id,this.baseContext,this.contextService.$functions,this.globalService.getGlobalData()):void 0,this.inspectorService.registerComponent(this.elementRef.nativeElement,this),(!(null==this.baseConfig.isLazy?this.lazy:this.baseConfig.isLazy)||J)&&this.initialize())}ngOnChanges(){this.component&&(!v(this.component.baseContext,this.baseContext)||!v(this.component.baseConfig,this.baseConfig))&&(this.component.baseContext={...this.baseContext},this.component.baseConfig={...this.baseConfig},this.component.onStateChange())}initialize(){var X=this;return(0,l.A)(function*(){X.initialized||(X.initialized=!0,X.viewTemplate.clear(),yield X.resolveComponentClasses(),X.controlsSticky&&((0,p.Vy)(X.platformId)||new IntersectionObserver(([Ce])=>X.inViewport.emit(Ce.isIntersecting),{rootMargin:"-10% 0px"}).observe(X.elementRef.nativeElement)),yield X.renderComponent(),X.changeDetectorRef.detectChanges())})()}resolveComponentClasses(){var X=this;return(0,l.A)(function*(){const J=yield c.e("projects_storefront_src_app_component_component_module_ts").then(c.bind(c,9674)),Ce=yield X.compiler.compileModuleAndAllComponentsAsync(J.ComponentModule);X.componentModule=Ce.ngModuleFactory.create(X.injector).instance})()}getComponentFactory(X){var J=this;return(0,l.A)(function*(){return J.componentModule.getComponentFactory(X)})()}renderComponent(){var X=this;return(0,l.A)(function*(){const J=yield X.componentModule.getModule(X.baseConfig.type),Ce=J&&J.component;if(Ce){const ue=X.viewTemplate.createComponent(Ce);if("presenter"!==X.baseConfig.type){let ge=null;X.dataShareService&&X.dataShareService.embeddedParams&&(ge={...X.dataShareService.embeddedParams}),ue.instance.baseConfig={...X.baseConfig},ue.instance.baseContext={...X.baseContext,embeddedParams:ge},ue.instance.delete.subscribe(De=>X.delete.emit(De)),ue.instance.processing.subscribe(De=>X.processing=De)}X.component=ue.instance}else console.error('unregistered component "'.concat(X.baseConfig.type,'" rendered. Did you forget to register in component-module.ts?'))})()}lazyLoad(X=!1){var J=this;return(0,l.A)(function*(){if(J.skipRender)return;if(J.lazyloadPromise)return J.lazyloadPromise;let Ce;if(J.lazyloadPromise=new Promise(ge=>Ce=ge),J.initialized)Ce();else if(X||!J.ssrService.currentPrebootStatus||(0,ne.cH)(J.elementRef.nativeElement)){var ue;yield J.initialize(),null===(ue=J.getChildComponent())||void 0===ue||ue.inited.pipe((0,me.p)(ge=>!!ge),(0,V.$)()).subscribe(Ce)}else J.subscriptions.subscribe((0,te.eh)(J,J.elementRef,{rootMargin:"50px",skipWait:!1}),(0,l.A)(function*(){var ge;yield J.initialize(),null===(ge=J.getChildComponent())||void 0===ge||ge.inited.pipe((0,me.p)(De=>!!De),(0,V.$)()).subscribe(Ce)}),B.lQ,B.lQ,"visible");return J.lazyloadPromise.then(()=>J.changeDetectorRef.markForCheck())})()}unloadIfInvisible(){this.initialized&&!(0,ne.cH)(this.elementRef.nativeElement,100)&&this.unload()}unload(){this.viewTemplate.clear(),this.initialized=!1,this.lazyLoad()}getChildComponent(){return this.component}getDataId(){return this.baseContext[this.dataType]&&this.baseContext[this.dataType].id}scrollIntoView(X={behavior:"smooth",block:"start",inline:"start",axis:null,padding:!0}){(0,p.UE)(this.platformId)&&this.elementRef.nativeElement.scrollIntoView(X)}getSpinnerStyle(){return{width:this.elementRef.nativeElement.offsetWidth+"px",height:this.elementRef.nativeElement.offsetHeight+"px"}}clear(){this.lazyloadPromise=null,this.component&&this.component.ngOnDestroy(),this.viewTemplate.clear(),this.initialized=!1}loadAndClear(){var X=this;return(0,l.A)(function*(){yield X.lazyLoad(),X.clear()})()}ngOnDestroy(){this.skipRender||this.inspectorService.unregisterComponent(this.elementRef.nativeElement)}}return(S=N).\u0275fac=function(X){return new(X||S)(E.rXU(E.aKT),E.rXU(E.gRc),E.rXU(Q.j),E.rXU($.v),E.rXU(z.V),E.rXU(E.zZn),E.rXU(E.Ql9),E.rXU(Y.d),E.rXU(ve.j,8),E.rXU(E.Agw),E.rXU(le.r6),E.rXU(pe.i))},S.\u0275cmp=E.VBU({type:S,selectors:[["storefront-element"]],viewQuery:function(X,J){if(1&X&&E.GBs(w,7,E.c1b),2&X){let Ce;E.mGM(Ce=E.lsd())&&(J.viewTemplate=Ce.first)}},hostVars:2,hostBindings:function(X,J){2&X&&E.BMQ("type",J.type)("child-id",J.childId)},inputs:{baseConfig:"baseConfig",baseContext:"baseContext",dataType:"dataType",selected:"selected",processing:"processing",lazy:"lazy",controlsSticky:"controlsSticky"},outputs:{delete:"delete",inViewport:"inViewport"},features:[E.Jv_([$.v]),E.OA$],decls:3,vars:1,consts:[["viewTemplate",""],[3,"style",4,"ngIf"]],template:function(X,J){1&X&&(E.eu8(0,null,0),E.DNE(2,j,1,2,"storefront-spinner",1)),2&X&&(E.R7$(2),E.Y8G("ngIf",J.processing))},dependencies:[p.bT,fe.t],styles:["storefront-element{max-width:100%;display:block}storefront-element>storefront-spinner{position:absolute;top:0;padding:calc(2 * var(--gutter));background-color:#0000001a;z-index:1;width:100%;height:100%}\n"],encapsulation:2,changeDetection:0}),N})()},6895:(ee,_,c)=>{"use strict";c.d(_,{r:()=>v});var l=c(177),p=c(6215),E=c(4438);let v=(()=>{var U;class ${}return(U=$).\u0275fac=function(ne){return new(ne||U)},U.\u0275mod=E.$C({type:U}),U.\u0275inj=E.G2t({imports:[l.MD,p.O]}),$})()},9876:(ee,_,c)=>{"use strict";c.d(_,{z:()=>v,G:()=>U});var l=c(3178);const p={type:"dynamic",mode:"width"};function v($,B,ne){return B?1/($?function E($,B=1){const ne=parseInt((0,l.sF)($,"w"),10),te=parseInt((0,l.sF)($,"h"),10);return isNaN(ne)||isNaN(te)?B:ne/te}(ne,0):B.naturalWidth/B.naturalHeight)*100:1}function U($,B,ne,te){var me,V;const Z=$.offsetWidth,le=$.offsetHeight,Q=null!==(me=null===(V=window)||void 0===V?void 0:V.devicePixelRatio)&&void 0!==me?me:1;if(!Z||!le||isNaN(Z)||isNaN(le))return(0,l.LS)(B,{w:!Z||isNaN(Z)?200:Math.round(Z*Q),webp:1});const z=null!=ne?ne:p;let pe,Y=Math.round(Z*Q),ve=null;switch(z.type){case"fixed":break;case"dynamic":switch(ve=Math.round(le*Q),z.mode){case"min":Y<ve?ve=void 0:Y=void 0;break;case"max":Y<ve?Y=void 0:ve=void 0;break;case"width":ve=void 0;break;case"height":Y=void 0}}if(te)try{const fe=JSON.parse(te),w=fe[0],j=fe[1],I=fe[2],S=fe[3],N=Math.round($.offsetWidth*Q),W=Math.round($.offsetHeight*Q),X=Math.round(2*w/(1+I)),J=Math.round(2*j/(1-S));if(X/N>J/W){const Ce=Math.round(J*N/W),ue=Math.round(Math.min(Math.max(w-Ce/2,0),X-Ce));pe="".concat(ue,"px,0px,").concat(Ce,"px,").concat(J,"px")}else{const Ce=Math.round(X*W/N),ue=Math.round(Math.min(Math.max(j-Ce/2,0),J-Ce));pe="0px,".concat(ue,"px,").concat(X,"px,").concat(Ce,"px")}}catch{console.warn("Error parsing focal point: "+te)}return(0,l.LS)(B,{w:Y,h:ve,crop:pe,webp:1})}},2853:(ee,_,c)=>{"use strict";c.d(_,{F9:()=>E,ge:()=>p,oH:()=>l});var l=function(v){return v.STATIC="STATIC",v.SLIDE_IN_LEFT="SLIDE_IN_LEFT",v.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",v}(l||{});const p={dataSource:{type:"menu"},template:l.SLIDE_IN_RIGHT,animationDuration:300,actions:[]};var E=function(v){return v.close="close",v}(E||{})},7240:(ee,_,c)=>{"use strict";c.d(_,{t:()=>E});var l=c(8480),p=c(4438);let E=(()=>{var v;class U{constructor(B){this.elementRef=B,this.spinners=l.A,this.type="tail"}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.spinners[this.type]&&this.spinners[this.type].replace(/\$id/g,"id-"+Date.now())}}return(v=U).\u0275fac=function(B){return new(B||v)(p.rXU(p.aKT))},v.\u0275cmp=p.VBU({type:v,selectors:[["storefront-spinner"]],hostVars:1,hostBindings:function(B,ne){2&B&&p.BMQ("type",ne.type)},inputs:{type:"type"},decls:2,vars:0,consts:[[1,"loader"]],template:function(B,ne){1&B&&(p.j41(0,"div",0),p.EFF(1,"Loading..."),p.k0s())},styles:[".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:#0003;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)}\n"],encapsulation:2}),U})()},6215:(ee,_,c)=>{"use strict";c.d(_,{O:()=>E});var l=c(177),p=c(4438);let E=(()=>{var v;class U{}return(v=U).\u0275fac=function(B){return new(B||v)},v.\u0275mod=p.$C({type:v}),v.\u0275inj=p.G2t({imports:[l.MD]}),U})()},8480:(ee,_,c)=>{"use strict";c.d(_,{A:()=>ne});const ne={oval:c(6517).A,puff:c(7244).A,rings:c(8490).A,spinningCircles:c(5187).A,tail:c(5768).A,dots:c(9828).A,segments:c(2091).A}},2589:(ee,_,c)=>{"use strict";c.d(_,{f:()=>p});var p=function(E){return E.bookmark="bookmark",E.nightmode="nightmode",E.fontsize="fontsize",E.toc="toc",E.close="close",E.tts="tts",E.sharing="sharing",E.back="back",E.menu="menu",E.pdf="pdf",E}(p||{})},9692:(ee,_,c)=>{"use strict";c.d(_,{P:()=>l,q:()=>p});var l=function(E){return E.DEFAULT="DEFAULT",E.GPT="GPT",E.HTML="HTML",E.TRAFFECTIVE="TRAFFECTIVE",E.ADSIZEMAPPING="SIZEMAPPING",E}(l||{}),p=function(E){return E.DIV="DIV",E.BOTTOM_ANCHOR="BOTTOM_ANCHOR",E.INTERSTITIAL="INTERSTITIAL",E.REWARDED="REWARDED",E.TOP_ANCHOR="TOP_ANCHOR",E}(p||{})},7616:(ee,_,c)=>{"use strict";c.d(_,{d:()=>l});var l=function(p){return p.ENTITLEMENT_TOKEN="entitlementToken",p.ENTITLEMENT_REFRESH_TOKEN="entitlementRefreshToken",p.ENTITLEMENT_ROLES="entitlementRoles",p}(l||{})},2348:(ee,_,c)=>{"use strict";c.d(_,{K:()=>l});var l=function(p){return p.NONE="none",p.HIDE="hide",p.SHRINK="shrink",p}(l||{})},6843:(ee,_,c)=>{"use strict";c.d(_,{O:()=>l});var l=function(p){return p.URL="urls",p.VIEW="views",p.MESSAGE="messages",p.NAVIGATION="navigation",p.APP_BAR="appBar",p.AD="ads",p.ACCESS="access",p.MENUS="menus",p.DOWNLOAD_OPTIONS="downloadOptions",p.GENERIC_WIDGET="genericWidget",p.FEATURE="features",p}(l||{})},4616:(ee,_,c)=>{"use strict";function l(E){return!!E.content}function p(E){return"redirectTo"in E}c.d(_,{B:()=>p,m:()=>l})},873:(ee,_,c)=>{"use strict";c.d(_,{$I:()=>le,B6:()=>Z,BE:()=>p,Ed:()=>E,Lf:()=>$,Md:()=>l,Z_:()=>ne,_:()=>v,fT:()=>Q,h2:()=>te,sn:()=>B});const l="scrolled",p="scrolled-down",E="scrolled-up",v=50,$=50,B="storefront-entitlement-token",ne="storefront-entitlement-user-data",te="restoredPurchases",Z="FALLBACK_PASSWORD",le={config:{recipients:{to:["receiver1@example.com","receiver2@example.com"],cc:["cc1@example.com","cc2@example.com"],bcc:["bcc1@example.com","bcc2@example.com"]}},subject:"{{appName}} - App Feedback ({{platform}})",body:"--\n{{versionSectionLabel}}\n{{appVersionLabel}}: {{appVersion}}\n{{purpleVersionBlock}}\n\n{{deviceSectionLabel}}\n{{deviceModelLabel}}: {{deviceModel}}\n{{osVersionLabel}}: {{osVersion}}\n{{manufacturerLabel}}: {{manufacturer}}\n{{deviceIdLabel}}: {{deviceId}}\n{{connectionLabel}}: {{connection}}\n"},Q={default:{eventsEnabledByDefault:!0,viewsEnabledByDefault:!0,purchasesEnabledByDefault:!0,attributesEnabledByDefault:!0,events:{APP_BOOKMARK_ADDED:{templates:{action:"Bookmark added {{CONTENT_NAME}}"}},APP_BOOKMARK_DELETED:{templates:{action:"Bookmark deleted {{CONTENT_NAME}}"}},APP_SHARED:{templates:{action:"App shared"}},APP_START:{templates:{action:"App started"}},APP_BACKGROUND:{templates:{action:"App background"}},APP_FOREGROUND:{templates:{action:"App foreground"}},APP_STOP:{templates:{action:"App stopped"}},APPBOY_REFUSE_OFFER:{enabled:!0,templates:{action:"Appboy Refuse Offer {{ACTION_URL}}"}},APPBOY_POSTPONE_OFFER:{enabled:!0,templates:{action:"Appboy Postpone Offer {{ACTION_URL}}"}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{action:"Kiosk promotion action url opened {{ACTION_URL}}"}},KIOSK_CHANNEL_OPENED:{templates:{action:"Channel opened {{PUBLICATION_NAME}}"}},KIOSK_ISSUE_DELETED:{templates:{action:"Issue deleted {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{action:"Issue download started {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{action:"Issue download cancelled {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{action:"Issue download failed {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOADED:{templates:{action:"Issue downloaded {{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{action:"Issue preview downloaded {{ISSUE_NAME}}"}},KIOSK_ISSUE_OPENED:{templates:{action:"Issue opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_OPEN_FAILED:{templates:{action:"Issue open failed {{ISSUE_ID}}"}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{action:"Issue preview opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{action:"Issue purchase cancelled {{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASED:{templates:{action:"Issue purchased {{ISSUE_NAME}}"}},KIOSK_ISSUE_TOC_OPENED:{templates:{action:"Issue table of contents opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{action:"Issue preview table of contents opened {{ISSUE_NAME}}"}},KIOSK_PURCHASES_RESTORED:{templates:{action:"Purchases restored"}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{action:"Purchase restoration failed"}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{action:"Subscription purchase cancelled {{SUBSCRIPTION_NAME}}"}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{action:"Subscription purchased {{SUBSCRIPTION_NAME}}"}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{action:"Entitlement link 1 opened {{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{action:"Entitlement link 2 opened {{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{action:"Entitlement link 3 opened {{LABEL}}, {{URL}}"}},APP_CONTENT_SHARED:{templates:{action:"Content shared {{CONTENT_NAME}}"}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{action:"Issue content opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC_OPENED:{templates:{action:"Content table of contents opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{action:"Content preview table of contents opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{action:"Content page {{PAGE_LABEL}} opened in issue {{CONTENT_NAME}}"}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{action:"Content open failed {{CONTENT_NAME}}"}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{action:"Channel content opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_URL_OPENED:{templates:{action:"Content page url opened {{URL}}"}},SHARING_LINK_APP_CLICKED:{templates:{action:"Sharing App Link clicked"}},SHARING_LINK_APP_ISSUE_CLICKED:{templates:{action:"Sharing App Issue Link clicked"}},SHARING_LINK_WEB_ISSUE_CLICKED:{templates:{action:"Sharing Web Issue Link clicked"}}},views:{APP_BOOKMARKS:{templates:{name:"App bookmarks"}},APP_MENU:{templates:{name:"App menu"}},APP_SHARING:{templates:{name:"Sharing"}},KIOSK_CHANNEL_FEED:{templates:{name:"Kiosk channel {{PUBLICATION_NAME}}"}},KIOSK_ISSUE_TOC:{templates:{name:"Kiosk issue table of contents {{ISSUE_NAME}}"}},KIOSK_MY_ISSUES:{templates:{name:"Kiosk my issues"}},KIOSK_PUBLICATION_ALL:{templates:{name:"Kiosk all issues"}},KIOSK_MANAGE_SUBSCRIPTIONS:{templates:{name:"Kiosk manage subscriptions"}},KIOSK_ISSUE_PREVIEW:{templates:{name:"Kiosk issue preview {{ISSUE_NAME}}"}},PRESENTER_PAGE:{templates:{name:"Content {{CONTENT_NAME}}, Page {{PAGE_NUMBER}}"}},PRESENTER_CONTENT:{templates:{name:"Content {{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC:{templates:{name:"Content table of contents {{CONTENT_NAME}}"}}},purchases:{KIOSK_ISSUE_PURCHASED:{},KIOSK_SUBSCRIPTION_PURCHASED:{}},attributes:{HAS_ACTIVE_SUBSCRIPTION:{templates:{name:"Has an active subscription"}},HAS_ACTIVE_SUBSCRIPTION_CODE:{templates:{name:"Has an active subscription code"}},HAS_ACTIVE_TRIAL:{templates:{name:"Has an active trial"}},HAS_PURCHASED_ISSUE:{templates:{name:"Has purchased an issue"}},HAS_BOOKMARKS:{templates:{name:"Has bookmarks"}},HAS_ENTITLEMENT_LOGIN:{templates:{name:"Has entitlement login"}}}},google_analytics:{events:{APP_BOOKMARK_ADDED:{templates:{category:"App",action:"Bookmark added",label:"{{CONTENT_NAME}}"}},APP_BOOKMARK_DELETED:{templates:{category:"App",action:"Bookmark deleted",label:"{{CONTENT_NAME}}"}},APP_SHARED:{templates:{category:"App",action:"App shared",label:""}},APP_START:{templates:{category:"App",action:"App startet",label:""}},APP_BACKGROUND:{templates:{category:"App",action:"App background",label:""}},APP_FOREGROUND:{templates:{category:"App",action:"App foreground",label:""}},APP_STOP:{templates:{category:"App",action:"App stopped",label:""}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{category:"Kiosk",action:"Kiosk promotion action url opened",label:"{{ACTION_URL}}"}},KIOSK_CHANNEL_OPENED:{templates:{category:"Kiosk",action:"Channel opened",label:"{{PUBLICATION_NAME}}"}},KIOSK_ISSUE_DELETED:{templates:{category:"Kiosk",action:"Issue deleted",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{category:"Kiosk",action:"Issue download started",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{category:"Kiosk",action:"Issue download cancelled",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{category:"Kiosk",action:"Issue download failed",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOADED:{templates:{category:"Kiosk",action:"Issue downloaded",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{category:"Kiosk",action:"Issue preview downloaded",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_OPENED:{templates:{category:"Kiosk",action:"Issue opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_OPEN_FAILED:{templates:{category:"Kiosk",action:"Issue open failed",label:"{{ISSUE_ID}}"}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{category:"Kiosk",action:"Issue preview opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{category:"Kiosk",action:"Issue purchase cancelled",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASED:{templates:{category:"Kiosk",action:"Issue purchased",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_TOC_OPENED:{templates:{category:"Kiosk",action:"Issue table of contents opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{category:"Kiosk",action:"Issue preview table of contents opened",label:"{{ISSUE_NAME}}"}},KIOSK_PURCHASES_RESTORED:{templates:{category:"Kiosk",action:"Purchases restored",label:""}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{category:"Kiosk",action:"Purchase restoration failed",label:""}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{category:"Kiosk",action:"Subscription purchase cancelled",label:"{{SUBSCRIPTION_NAME}}"}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{category:"Kiosk",action:"Subscription purchased",label:"{{SUBSCRIPTION_NAME}}"}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 1 opened",label:"{{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 2 opened",label:"{{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 3 opened",label:"{{LABEL}}, {{URL}}"}},APP_CONTENT_SHARED:{templates:{category:"Content",action:"Content shared",label:"{{CONTENT_NAME}}"}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{category:"Content",action:"Issue content opened {{CONTENT_NAME}}",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC_OPENED:{templates:{category:"Content",action:"Content table of contents opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{category:"Content",action:"Content preview table of contents opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{category:"Content",action:"Content page opened in issue {{CONTENT_NAME}}",label:"{{PAGE_TITLE}}"}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{category:"Content",action:"Content open failed",label:"{{CONTENT_NAME}}"}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{category:"Content",action:"Channel content opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_URL_OPENED:{templates:{category:"Content",action:"Content page url opened",label:"{{URL}}"}}},views:{},purchases:{}},appboy:{events:{},views:{},purchases:{}},adjust:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{APP_BOOKMARK_ADDED:{templates:{token_kindle:"",token_android:"",token_ios:""},parameters:{info:""}},APP_BOOKMARK_DELETED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_SHARED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_START:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_BACKGROUND:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_FOREGROUND:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_STOP:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_CHANNEL_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DELETED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOADED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_OPEN_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PURCHASED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PURCHASES_RESTORED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_CONTENT_SHARED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_URL_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}}},views:{},purchases:{KIOSK_ISSUE_PURCHASED:{token_kindle:"",token_android:"",token_ios:""},KIOSK_SUBSCRIPTION_PURCHASED:{token_kindle:"",token_android:"",token_ios:""}}},flurry:{events:{},views:{},purchases:{}},ivw:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1},atinternet:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{},views:{},purchases:{}},chartbeat:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!0,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{},views:{},purchases:{}}}},4452:(ee,_,c)=>{"use strict";c.d(_,{O8:()=>Ne,jL:()=>st,Kj:()=>Fe,xV:()=>he});var l=c(467),p=c(4594),E=c(8179),v=c(362),U=c(5846),$=c(7783),B=c.n($),ne=c(4648);class me extends p.q{}var V=c(3178);class Z extends me{constructor(){super(...arguments),this.groupable=!0}loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A);if(G.publicationFilter&&G.publicationFilter.id&&!G.publicationFilter.id.negated){let K;const ce=new Promise(qe=>K=qe),Be=L.purpleService.getPublicationFromCache(G.publicationFilter.id.value);return Be.timestamp?(ce.timestamp=Be.timestamp,Be.then(qe=>K({nodes:[qe],totalCount:1,hasNextPage:!1,cursor:null,timestamp:Be.timestamp}))):K({nodes:[Be],totalCount:1,hasNextPage:!1,cursor:null}),ce}{const K=L.purpleService.getPublicationsFromCache(G);return K.then(ce=>({...ce,timestamp:K.timestamp}))}})()}getGroupHeaderContextData(){return(0,l.A)(function*(){return null})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A);return G.publicationFilter&&G.publicationFilter.id&&!G.publicationFilter.id.negated?{nodes:[yield L.purpleService.getPublication(G.publicationFilter.id.value,!0)],hasNextPage:!1,cursor:"",totalCount:1}:L.purpleService.getPublications(G,!0).catch(K=>(console.warn("Error fetching publications",K),{hasNextPage:!1,totalCount:0,cursor:"",nodes:[]}))})()}getParams(A=!1,L=!1){let G;const K=this.config.includeIssues||this.config.includeContents;K&&(G="number"==typeof K?{first:K}:K);const ce={publicationFilter:(0,E.y3)(this.config.filter),first:this.getBatchSize(this.config,A),includeContents:!!this.config.includeContents,includeIssues:!!this.config.includeIssues,contentsParams:G};if(this.config.fetchOptions&&(ce.fetchOptions=this.config.fetchOptions),this.config.sort){let Be=[];Be=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],ce.sort=Be}return this.cursor&&!L&&(ce.after=this.cursor),ce}getGhosts(A){return Array(6).fill(null)}getGroups(){if(this.data&&this.config.groupBy&&this.config.groupBy.customProperty){const A=this.config.groupBy.customProperty;return(0,V.Am)(this.data.filter(L=>L.properties&&L.properties[A]).map(L=>L.properties[A]))}return[]}getGroupData(A){if(this.data&&this.config.groupBy&&this.config.groupBy.customProperty){const L=this.config.groupBy.customProperty;return this.data.filter(G=>G.properties&&G.properties[L]===A)}return console.warn("getGroupData called but publication-data-source config was missing groupBy parameters"),[]}getDropdownData(){return this.getData().filter(A=>!!A).map(A=>({name:A.name,params:{publication:A.id}}))}static getDataSourceContentType(A){return"publication"}}var le=c(1497),Q=c(4404),z=c(5706),ve=c(7900),pe=c(1794),fe=function(R){return R.MONTH="MONTH",R.YEAR="YEAR",R}(fe||{});class w extends me{constructor(A,L,G,K,ce,Be,qe,ut){super(A,L,G,K,ce,Be,qe,ut),this.transferState=K,this.purpleService=ce,this.globalService=Be,this.platformId=qe,this.resourceService=ut,this.translateService=pe.Z.appInstanceInjector.get(ve.c)}loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){return L.loadPeriods(!0)})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){return L.loadPeriods(!1)})()}loadPeriods(A=!1){var L=this;return(0,l.A)(function*(){const G=[],K=L.config.interval||fe.YEAR,ce={sort:[{publicationDate:{direction:Q.SortDirection.ASC}}],first:1};L.config.issueFilter&&(ce.issueFilter=(0,E.n)(L.config.issueFilter));const Be=(yield A?L.purpleService.getIssuesFromCache(ce):L.purpleService.getIssues(ce,!0)).nodes[0],qe=new Date(Be.publicationDate),ut=new Date,je=L.config.startOffset||0,mt=new Date(0);switch(K){case fe.YEAR:mt.setFullYear(ut.getFullYear()+1-je);break;case fe.MONTH:mt.setFullYear(ut.getFullYear()),mt.setMonth(ut.getMonth()+1-je)}const Nt=fn=>{if(!L.config.format&&K===fe.MONTH)return"".concat(fn.getMonth()+1," / ").concat(fn.getFullYear());if(!L.config.format)return fn.getFullYear().toString();const or=L.config.format.formatText,Bn=K===fe.MONTH&&fn.getMonth()+1,Cn=(0,E.uQ)(or,{periodEntry:{year:fn.getFullYear(),month:Bn}},L.contextService.$functions,L.globalService.getGlobalData()),yn=[fn.getFullYear()];return Bn&&yn.push(L.config.format.translateWithKeys?"PERIOD_MONTH_".concat(Bn):Bn.toString()),L.translateService.translate({text:Cn,args:yn})};let zt=new Date(mt.getTime());for(;zt>qe;){const fn=new Date(zt.getTime());switch(K){case fe.MONTH:fn.setMonth(zt.getMonth()-1),G.push({time:new Date(fn.getTime()),displayValue:Nt(fn)}),zt=new Date(fn.getTime());break;case fe.YEAR:fn.setFullYear(zt.getFullYear()-1),G.push({time:new Date(fn.getTime()),displayValue:Nt(fn)}),zt=new Date(fn.getTime())}}return{nodes:G,totalCount:G.length,hasNextPage:!1,cursor:null}})()}getDropdownData(){const A=this.config.interval||fe.YEAR;return this.getData().filter(L=>!!L).map(L=>(L.time instanceof Date||(L.time=new Date(L.time)),{name:L.displayValue,params:{period:A===fe.YEAR?L.time.getFullYear().toString():"".concat(L.time.getFullYear(),"-").concat(L.time.getMonth()>8?"":"0").concat(L.time.getMonth()+1)}}))}}var j=c(950);class I extends me{loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A);if(L.config.localMode)return L.loadCacheLocalMode(G);const K=L.purpleService.getCategoriesFromCache(G),ce={...yield K,timestamp:K.timestamp};return L.config.hideEmpty?L.getApiResponseWithoutEmptyCategories(ce):ce})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A);if(L.config.localMode)return L.loadCacheLocalMode(G);const K=yield L.purpleService.getCategories(G,!0);return L.config.hideEmpty?L.getApiResponseWithoutEmptyCategories(K):K})()}loadCacheLocalMode(A){var L,G;const K=Object.values(this.purpleService.PURPLE_TAXONOMY_CACHE).filter(qe=>(0,ne.G3)(A.categoryFilter,qe));let ce=K.sort((0,j.CY)(null!==(L=A.sort)&&void 0!==L?L:[]));const Be=parseInt(null!==(G=A.after)&&void 0!==G?G:"0",10);return ce=K.slice(Be*A.first,(Be+1)*A.first),{nodes:ce,totalCount:K.length,hasNextPage:ce.length<K.length,cursor:(Be+1).toString()}}getParams(A=!1,L=!1){let G;this.config.includeIssues&&(G="number"==typeof this.config.includeIssues?{first:this.config.includeIssues}:this.config.includeIssues,this.config.hideEmpty&&(G.first=Math.max(G.first||0,1)));const K={categoryFilter:(0,E.q8)(this.config.filter),first:this.getBatchSize(this.config,!A),includeIssues:!!G,issuesParams:G};if(this.config.sort){let ce=[];ce=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],K.sort=ce}return this.cursor&&!L&&(K.after=this.cursor),K}getGhosts(A){return Array(6).fill(null)}getDropdownData(){return this.getData().filter(A=>!!A).map(A=>({name:A.name,params:{category:A.id}}))}getApiResponseWithoutEmptyCategories(A){return{...A,nodes:A.nodes.filter(L=>L.issues&&L.issues.nodes.length)}}static getDataSourceContentType(A){return"category"}}var W=c(5964),J=c(6843),Ce=c(4945),ge=c(2962);class De extends p.q{getParseEnabledValue(A,L){const G=(0,E.v3)(A);if("number"==typeof G)return G;if("string"==typeof G){const K=parseInt(G);if(!isNaN(K))return K}return console.error("The value in '".concat(L,"' in a subordinated content couldn't be resolved to a number,\n please revisit your views.json configuration.")),-1}mergeContents(A,L,G,K){let ce=A;if(G&&G.length){(0,E.v3)(K.randomize)&&(0,E.E1)(G);const Be=this.getParseEnabledValue(K.after,"after"),qe=this.getParseEnabledValue(K.interval,"interval");if(qe>0){let je=Be,mt=0;for(;je<ce.nodes.length&&mt<G.length;){const Nt=G[mt++];ce.nodes=ce.nodes.filter(zt=>zt.id!=Nt.id),je<ce.nodes.length?ce.nodes.splice(je,0,Nt):ce.nodes.push(Nt),je+=qe+1}}else if(Be<=ce.nodes.length){const je=0==qe?G:G.slice(0,1);ce.nodes=ce.nodes.filter(mt=>!je.find(Nt=>Nt.id==mt.id)),Be<=ce.nodes.length?ce.nodes.splice(Be,0,...je):ce.nodes=ce.nodes.concat(G)}const ut=(0,E.v3)(this.config.limit);if(ut){const je=parseInt(null==ut?void 0:ut.toString(),10)||void 0;ce.nodes=ce.nodes.slice(0,je)}}if(L&&L.length){const Be=new Set(L.map(je=>je.id));let qe=ce.nodes.filter(je=>!Be.has(je.id));L.forEach(je=>{qe.splice(void 0===je.sortIndex?je.content.index:je.sortIndex-1,0,je.content)});const ut=(0,E.v3)(this.config.limit);if(ut){const je=parseInt(null==ut?void 0:ut.toString(),10)||void 0;qe=qe.slice(0,je)}ce={...A,nodes:qe}}return ce}}class He extends De{loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A),K=L.config.local&&(0,E.v3)(L.config.local);if(K){const Be="boolean"==typeof K?void 0:K,qe=yield L.getLocalContents(G,!0,Be);return L.applyLocalFilter(qe)}const ce=L.purpleService.getCatalogContentsFromCache(G);return L.mergeData(ce,A,!0).then(Be=>({...Be,timestamp:ce.timestamp}))})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A),K=L.config.local&&(0,E.v3)(L.config.local);if(K){const Be="boolean"==typeof K?void 0:K,qe=yield L.getLocalContents(G,!0,Be);return L.applyLocalFilter(qe)}const ce=L.purpleService.getCatalogContents(G,!0).then(Be=>L.mapApiData(Be));return L.mergeData(ce,A,!1)})()}mergeData(A,L,G){if(!L&&this.cursor)return A;let K=Promise.resolve(null),ce=(0,E.v3)(this.config.fixedContentFromCollection);if((null==ce?void 0:ce.trim().length)>0){const ut={collectionFilter:{name:{value:ce.trim(),operation:Q.StringOperation.EQUAL}},includeElements:!0};K=(G?this.purpleService.getCollectionsFromCache(ut):this.purpleService.getCollections(ut,!0)).then(je=>{var mt;return null===(mt=je.nodes[0])||void 0===mt?void 0:mt.elements})}let Be=Promise.resolve(null);const qe=this.config.subordinatedContent&&(0,E.v3)(this.config.subordinatedContent);if(qe){const ut=this.getParams(!1,!0,qe);Be=G?this.purpleService.getCatalogContentsFromCache(ut):this.purpleService.getCatalogContents(ut,!0).then(je=>this.mapApiData(je))}return Promise.all([A,K,Be]).then(([ut,je,mt])=>{if((je||mt)&&ut.hasNextPage){const Nt=this.getLimit();(!Nt||ut.nodes.length<Nt)&&(console.warn("Using subordinated content or fixed collection content with a data sources that has multiple pages"),console.debug(this.config))}return this.mergeContents(ut,null==je?void 0:je.nodes,null==mt?void 0:mt.nodes,qe)})}mapApiData(A){var L=this;return(0,l.A)(function*(){for(const G of A.nodes){const K=Object.keys(G.properties).filter(ce=>ce.startsWith("inlinescript")||ce.startsWith("inlinestyle"));for(const ce of K)delete G.properties[ce]}if(L.config.includeBundlesOfPosts&&(0,E.v3)(L.config.includeBundlesOfPosts)){const G=new Set;for(const ce of A.nodes)ce.bundleId&&G.add(ce.bundleId);const K={OR:[...G.keys()].map(ce=>({id:{value:ce}}))};try{const ce=(yield L.purpleService.getCatalogContents({contentFilter:K})).nodes;for(const Be of A.nodes)Be.bundleId&&(Be.bundle=ce.find(qe=>qe.id===Be.bundleId))}catch(ce){console.error("Failed to load bundles for posts with filter",K,ce)}}return A})()}getParams(A=!1,L=!1,G=this.config){const K={first:this.getBatchSize(G,!A)};let ce=G.filter;if(this.excludedData){let qe=this.excludedData.filter(ut=>!!ut).map(ut=>ut.id).filter((ut,je,mt)=>mt.indexOf(ut)==je);ce={AND:[ce].concat(qe.map(ut=>({id:{negated:!0,value:ut,operation:Q.StringOperation.EQUAL}})))}}const Be=(0,E.Ph)(ce);if(Be&&(K.contentFilter=Be),G.fetchOptions&&(K.fetchOptions=G.fetchOptions),G.sort){let qe=[];qe=Array.isArray(G.sort)?G.sort:[G.sort],K.sort=qe}return this.cursor&&!L&&(K.after=this.cursor),K}applyLocalFilter(A){const L=(0,E.Dc)(this.config.filter);return L?(0,E.MV)(A,A.nodes.filter(G=>(0,ne.h9)(L,G))):A}getLocalContents(A,L=!1,G){var K=this;return(0,l.A)(function*(){const ce=(yield K.purpleService.getLocalIssues(A,L,G)).issues;return ce&&ce.length?{nodes:ce,totalCount:ce.length,hasNextPage:!1,cursor:null}:{nodes:[],totalCount:0,hasNextPage:!1,cursor:null}})()}hasConfigChanged(A){return super.hasConfigChanged(A)&&!v(this.getParams(),this.getParams(!1,!1,A))}static getDataSourceContentType(A){return"content"}}class Ze extends me{loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A),K=L.purpleService.getTaxonomiesFromCache(G),ce={...yield K,timestamp:K.timestamp};return L.config.hideEmpty?L.getApiResponseWithoutEmptyTaxonomies(ce):ce})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A),K=yield L.purpleService.getTaxonomies(G,!0);return L.config.hideEmpty?L.getApiResponseWithoutEmptyTaxonomies(K):K})()}getParams(A=!1,L=!1){let G;this.config.includeContents&&(G="number"==typeof this.config.includeContents?{first:this.config.includeContents}:this.config.includeContents,this.config.hideEmpty&&(G.first=Math.max(G.first||0,1)));const K={taxonomyFilter:(0,E.Vb)(this.config.filter),first:this.getBatchSize(this.config,A),includeContents:!!G,contentsParams:G};if(this.config.fetchOptions&&(K.fetchOptions=this.config.fetchOptions),this.config.sort){let ce=[];ce=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],K.sort=ce}return this.cursor&&!L&&(K.after=this.cursor),K}getGhosts(A){return Array(6).fill(null)}getDropdownData(){return this.getData().filter(A=>!!A).map(A=>({name:A.name,params:{taxonomy:A.id}}))}getApiResponseWithoutEmptyTaxonomies(A){return{...A,nodes:A.nodes.filter(L=>L.contents&&L.contents.nodes.length)}}}var we=c(1594);function ye(R){if(0===R.nodes.length)return{hasNextPage:!1,totalCount:0,cursor:"",nodes:[]};const A=R.nodes[0].elements;if(!A)throw console.error("CollectionElementDataSource must call API with `includeElements`, got no elements!"),new Error("elements missing");return{cursor:A.cursor,hasNextPage:A.hasNextPage,totalCount:A.totalCount,nodes:A.nodes.map(L=>L.content)}}const be={ad:class ue extends p.q{constructor(A,L,G,K,ce,Be,qe,ut,je){super(A,L,G,K,ce,Be,ut,je),this.config=A,this.contextService=L,this.outlet=G,this.transferState=K,this.purpleService=ce,this.globalService=Be,this.store=qe,this.platformId=ut,this.resourceService=je,this.contextService.viewContext$.subscribe(mt=>{this.filteredAds&&this.fetchedAds&&(v(this.filteredAds,this.filter(this.fetchedAds))||this.update())})}loadApiData(A){var L=this;return(0,l.A)(function*(){return L.fetchedAds||(L.fetchedAds=yield new Promise(G=>{L.store.select((0,Ce.jZ)(J.O.AD),K=>G(K.adSlots))})),L.filteredAds=L.filter(L.fetchedAds),L.dataToPage(L.filteredAds,A)})()}dataToPage(A,L=!1){const G=L?0:parseInt(this.cursor||"0",10),K=A.slice(G,G+this.getBatchSize(this.config));return{hasNextPage:G+this.getBatchSize(this.config)<A.length,cursor:"".concat(G+this.getBatchSize(this.config)),nodes:K,totalCount:A.length}}filter(A){let L=A;if(this.config.idPattern)try{const G=new RegExp(this.config.idPattern);L=A.filter(K=>G.test(K.id))}catch(G){console.warn("error applying idPattern",G)}return this.filterDataLocal(L)}static getDataSourceContentType(A){return"ad"}},bookmark:class X extends p.q{constructor(A,L,G,K,ce,Be,qe,ut){super(A,L,G,K,ce,Be,qe,ut),this.config=A,this.contextService=L,this.outlet=G,this.transferState=K,this.purpleService=ce,this.globalService=Be,this.platformId=qe,this.resourceService=ut,this.groupable=!0,this.purpleService.bookmarks.pipe((0,W.p)(je=>!!this.fetchedData&&!v(je,this.fetchedData))).subscribe(()=>{this.fetchedData=null,this.update()})}loadApiData(A){var L=this;return(0,l.A)(function*(){const G=yield L.purpleService.getBookmarks(),K=G.reduce((Nt,zt)=>{const fn=L.getFallbackIssueData(zt);return Nt.set(fn.id,fn),Nt},new Map),ce={},Be={},qe=(yield Promise.all(Array.from(K.values()).map(Nt=>L.purpleService.getIssue(Nt.id,!1,Nt)))).filter(Nt=>!!Nt),ut=(yield Promise.all(Array.from(K.values()).map(Nt=>L.purpleService.getCatalogContent(Nt.id,!1)))).filter(Nt=>!!Nt);qe.forEach(Nt=>ce[Nt.id]=Nt),ut.forEach(Nt=>ce[Nt.id]=Nt);const je=[],mt=L.contextService.getCurrentViewContext();for(const Nt of G){const zt=ce[L.getIssueId(Nt)];if(zt)if(L.config.filter){const fn=(0,E.uQ)(L.config.filter,{...mt,[L.config.type]:{...Nt,issue:zt}},L.contextService.$functions,L.globalService.getGlobalData());(0,E.Ol)({condition:fn})&&(je.push(Nt),Be[zt.id]=zt)}else je.push(Nt)}return L.issues=L.config.filter?Be:ce,L.fetchedData=L.sortByCreationDate(je),L.dataToPage(L.fetchedData,A)})()}getGroups(){return this.fetchedData&&this.config.groupBy&&this.config.groupBy.issue?(0,j.dV)(Object.keys(this.issues).map(L=>this.issues[L])).map(L=>L.id):[]}getGroupData(A){return this.fetchedData&&this.config.groupBy&&this.config.groupBy.issue?this.sortByIndex(this.fetchedData.filter(L=>this.getIssueId(L)===A)):(console.warn("getGroupData called but bookmark-data-source config was missing groupBy parameters"),[])}dataToPage(A,L=!1){const G=L?0:parseInt(this.cursor||"0",10),K=A.slice(G,G+this.getBatchSize(this.config));return{hasNextPage:G+this.getBatchSize(this.config)<A.length,cursor:"".concat(G+this.getBatchSize(this.config)),nodes:K,totalCount:A.length}}getGroupHeaderContextData(A,L){var G=this;return(0,l.A)(function*(){var K,ce;const Be=null!=L?L:G.getGroupData(A),qe=Be.some(je=>{var mt;return null===(mt=je.customData)||void 0===mt?void 0:mt.contentType})?null===(K=Be[0].customData)||void 0===K?void 0:K.contentType:null,ut={length:Be.length,contentType:qe,issueType:Q.IssueType.ISSUE};return null!==(ce=G.config.groupBy)&&void 0!==ce&&ce.issue&&Be.some(je=>je.customData.sourceIssueId)&&(ut.sourceIssue=A),ut})()}getGroupHeaderConfig(A,L){const G=(0,E.v3)(A.dataSource)||{type:"issue"};return G.filter={...G.filter||{},id:{value:L}},A.dataSource=G,A}sortByCreationDate(A,L=Q.SortDirection.DESC){const G=L===Q.SortDirection.DESC?1:-1;return A.sort((K,ce)=>(ce.createdAt-K.createdAt)*G)}sortByIndex(A,L=Q.SortDirection.ASC){const G=L===Q.SortDirection.DESC?1:-1;return A.sort((K,ce)=>{let Be=this.getPageIndex(ce)-this.getPageIndex(K);return 0===Be&&(Be=this.getSequenceNumber(ce)-this.getSequenceNumber(K)),Be*G})}getFallbackIssueData(A){return{id:this.getIssueId(A),name:this.getIssueName(A)}}getIssueId(A){var L;return(null===(L=A.customData)||void 0===L?void 0:L.sourceIssueId)||A.issueId}getIssueName(A){var L;return(null===(L=A.customData)||void 0===L?void 0:L.sourceIssueName)||(A.issueType===Q.IssueType.ISSUE?A.description:A.title)}getPageIndex(A){if(A.issueType===Q.IssueType.ISSUE)return A.pageIndex;{var L;const G=parseInt(null===(L=A.customData)||void 0===L?void 0:L.pageNumber,10);return isFinite(G)?G:(console.warn("no page number property found for article. Please make sure this is when using bookmark.createBookmark"),0)}}getSequenceNumber(A){if(A.issueType===Q.IssueType.ISSUE)return A.pageIndex;{var L;const G=parseInt(null===(L=A.customData)||void 0===L?void 0:L.sequenceNumber,10);return isFinite(G)?G:(console.warn("no sequence number property found for article. Please make sure this is when using bookmark.createBookmark"),0)}}static getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),["dataSource","filter"]]}static getDataSourceContentType(A){return"bookmark"}},category:I,collection:class it extends p.q{loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A),K=L.purpleService.getCollectionsFromCache(G);return K.then(ce=>({...L.mapPage(ce),timestamp:K.timestamp}))})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A);return L.purpleService.getCollections(G,!0).then(K=>L.mapPage(K))})()}mapPage(A){if("getCollections"===this.config.mode)return A;if("getContentsInCollection"===this.config.mode){const L=[];for(const G of A.nodes)L.push(...G.elements.nodes.map(K=>K.content));return{cursor:null,hasNextPage:!1,nodes:L,totalCount:L.length}}}getParams(A=!1,L=!1,G=this.config){const K={first:this.getBatchSize(G,!A)};if("getContentsInCollection"===G.mode&&(K.includeElements=!0,K.elementsParams={first:100}),G.filter&&(K.collectionFilter=(0,E.mI)(G.filter)),G.fetchOptions&&(K.fetchOptions=G.fetchOptions),this.config.sort){let ce=[];ce=Array.isArray(G.sort)?G.sort:[G.sort],K.sort=ce}return this.cursor&&!L&&(K.after=this.cursor),K}hasConfigChanged(A){return super.hasConfigChanged(A)&&!v(this.getParams(),this.getParams(!1,!1,A))}static getDataSourceContentType(A){return"getContentsInCollection"===A.mode?"content":"collection"}},"collection-content":class ze extends De{loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A),K=L.purpleService.getCollectionsFromCache(G);return L.mergeData(K.then(ce=>ye(ce)),A,!0).then(ce=>({...ce,timestamp:K.timestamp}))})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A),K=L.purpleService.getCollections(G,!0).then(ce=>ye(ce));return L.mergeData(K,A,!1)})()}mergeData(A,L,G){if(!L&&this.cursor)return A;let K=Promise.resolve(void 0);const ce=this.config.subordinatedContent&&(0,E.v3)(this.config.subordinatedContent);if(ce){const Be=new He({type:"content",...ce},this.contextService,this.outlet,this.transferState,this.purpleService,this.globalService,this.platformId,this.resourceService);Be.registered=!0,K=Be.data$.pipe((0,W.p)(qe=>!(!qe||qe.length&&!qe[0])),(0,we.$)()).toPromise(),Be.loadData()}return Promise.all([A,K]).then(([Be,qe])=>{if(qe&&Be.hasNextPage){const ut=this.getLimit();(!ut||Be.nodes.length<ut)&&(console.warn("Using subordinated content or fixed collection content with a data sources that has multiple pages"),console.debug(this.config))}return this.mergeContents(Be,void 0,qe,ce)})}getParams(A=!1,L=!1,G=this.config){const K={first:1,includeElements:!0};return G.collectionFilter&&(K.collectionFilter=(0,E.mI)(G.collectionFilter)),K.elementsParams={first:this.getBatchSize(G,!A)},G.fetchOptions&&(K.fetchOptions=G.fetchOptions),this.cursor&&!L&&(K.elementsParams.after=this.cursor),K}hasConfigChanged(A){return super.hasConfigChanged(A)&&!v(this.getParams(),this.getParams(!1,!1,A))}static getDataSourceContentType(A){return"content"}},custom:class S extends p.q{loadApiData(A){var L=this;return(0,l.A)(function*(){const G=A?0:parseInt(L.cursor||"0",10);let K=L.config.data;L.config.sort&&(K=(0,E.kJ)(L.config.data,L.config.sort)),K=L.filterDataLocal(K,L.config.condition);const ce=L.getBatchSize(L.config),Be=K.slice(G,G+ce),qe={hasNextPage:G+ce<K.length,cursor:L.createCursor(G+ce),nodes:Be,totalCount:K.length};return Promise.resolve(qe)})()}getGhosts(A){return Array(this.config.data.length).fill(null)}createCursor(A){return"".concat(A)}},issue:class te extends p.q{constructor(){super(...arguments),this.groupable=!0}getGroups(){var A;if(!this.data)return this.getGhosts();if(null!==(A=this.config.groupBy)&&void 0!==A&&A.category){const L=[];let G;const K={};for(const ce of this.data||[])ce.categories[0]&&ce.categories[0]!==G&&(G=ce.categories[0],K[G]?K[G]++:K[G]=1,L.push(G+"#"+K[G]));return L}return[]}getGroupData(A){var L;if(!A)return this.getGhosts();if(null!==(L=this.config.groupBy)&&void 0!==L&&L.category){const G=A.match(/(?<id>.*)#(?<index>\d+)$/);let K=G.groups.id;"undefined"===K&&(K=void 0);const ce=parseInt(G.groups.index,10);let qe,Be=0;const ut=[];for(const je of this.data)if(je.categories[0]&&(je.categories[0]===K&&qe!==je.categories[0]&&Be++,Be===ce&&je.categories[0]===K&&ut.push(je),qe=je.categories[0],Be>ce||Be===ce&&qe!==K))break;return ut}return[]}getGroupHeaderContextData(A){var L=this;return(0,l.A)(function*(){var G;const K=A&&A.split("#")[0]||null;return null!==(G=L.config.groupBy)&&void 0!==G&&G.category&&K?yield L.purpleService.getCategory(K):{id:K}})()}getGroupHeaderConfig(A,L){return A}applyLocalFilter(A){const L=(0,E.g7)(this.config.filter);return L?(0,E.MV)(A,A.nodes.filter(G=>(0,ne.tU)(L,G))):A}loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A),K=L.config.local&&(0,E.v3)(L.config.local);let ce;if(K){const Be="boolean"==typeof K?void 0:K;ce=yield L.getLocalIssues(G,!0,Be)}if(G.issueFilter&&G.issueFilter.id&&!G.issueFilter.id.negated){let Be;const qe=new Promise(je=>Be=je),ut=L.purpleService.getIssueFromCache(G.issueFilter.id.value);return ut.timestamp?(qe.timestamp=ut.timestamp,ut.then(je=>Be({nodes:[je],totalCount:1,hasNextPage:!1,cursor:null,timestamp:ut.timestamp}))):Be({nodes:[ut],totalCount:1,hasNextPage:!1,cursor:null}),qe}{const Be=L.purpleService.getIssuesFromCache(G);return Be.then(qe=>({...qe,timestamp:Be.timestamp}))}})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A),K=L.config.local&&(0,E.v3)(L.config.local);let ce;if(K){const Be="boolean"==typeof K?void 0:K;ce=yield L.getLocalIssues(G,!1,Be)}else ce=G.issueFilter&&G.issueFilter.id&&!G.issueFilter.id.negated?{nodes:[yield L.purpleService.getIssue(G.issueFilter.id.value,!0)],hasNextPage:!1,cursor:"",totalCount:1}:yield L.purpleService.getIssues(G,!0);if(L.config.includeSourceIssues&&(0,E.v3)(L.config.includeSourceIssues)){const Be={};ce.nodes.forEach((ut,je)=>{const mt=U.Vf.toSourceIssueParams({...L.purpleService.downloadOptions,issue:ut});if(!mt)return;const Nt=B()(mt);Be[Nt]?Be[Nt].nodeIndices.push(je):Be[Nt]={params:mt,nodeIndices:[je]}});const qe=yield Promise.all(Object.values(Be).map(function(){var ut=(0,l.A)(function*(je){try{return{sourceIssue:(yield L.purpleService.getIssues(je.params)).nodes[0],nodeIndices:je.nodeIndices}}catch{return{}}});return function(je){return ut.apply(this,arguments)}}()));for(const ut of qe)ut.sourceIssue&&ut.nodeIndices.forEach(je=>{ce.nodes[je].sourceIssue=ut.sourceIssue})}return L.applyLocalFilter(ce)})()}getLocalIssues(A,L=!1,G){var K=this;return(0,l.A)(function*(){const ce=(yield K.purpleService.getLocalIssues(A,L,G)).issues;return ce&&ce.length?{nodes:ce,totalCount:ce.length,hasNextPage:!1,cursor:null}:{nodes:[],totalCount:0,hasNextPage:!1,cursor:null}})()}getParams(A=!1,L=!1,G=this.config){const K={first:this.getBatchSize(G,!A)},ce=(0,E.n)(G.filter);if(ce&&(K.issueFilter=ce),this.config.sort){let Be=[];Be=Array.isArray(G.sort)?G.sort:[G.sort],K.sort=Be}return this.cursor&&!L&&(K.after=this.cursor),K}isEqual(A,L){return A===L||(A&&A.id)===(L&&L.id)}isDataEqual(A,L){const G=K=>{if(K&&"object"==typeof K){const{state:ce,...Be}=K;return Be}return K};return v(A&&A.map(G),L&&L.map(G))}isLocal(A=this.config){return A.local&&(0,E.uQ)(A.local,A,this.contextService.$functions,this.globalService.getGlobalData())}hasConfigChanged(A){return super.hasConfigChanged(A)&&(!v(this.getParams(),this.getParams(!1,!1,A))||this.isLocal()!==this.isLocal(A))}static getDataSourceContentType(A){return"issue"}},json:class N extends p.q{constructor(){super(...arguments),this.groupable=!0}getCacheKey(){return"JsonDataSource:".concat(this.config.url)}dataToPage(A,L=!1){var G;const K=L?0:parseInt(this.cursor||"0",10);let ce;this.config.sort&&(A=(0,E.kJ)(A,this.config.sort)),ce=null!==(G=this.config.groupBy)&&void 0!==G&&G.subArray&&this.config.condition?A.map(ut=>(ut[this.config.groupBy.subArray]=this.filterDataLocal(ut[this.config.groupBy.subArray],this.config.condition),ut)):this.config.condition?this.filterDataLocal(A,this.config.condition):A;const Be=this.getBatchSize(this.config),qe=ce.slice(K,K+Be);return{hasNextPage:K+Be<ce.length,cursor:"".concat(K+Be),nodes:qe,totalCount:ce.length}}loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=yield L.purpleService.getState(L.getCacheKey());if(!G)throw new Error("no cached data");const K=JSON.parse(G);if(!K||!K.timestamp||!K.data)throw new Error("cached data corrupt");return L.isCacheTimestampValid(K.timestamp)&&(L.fetchedData=K.data),{timestamp:K.timestamp,...L.dataToPage(K.data,A)}})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=yield L.resourceService.getObject(L.config.url);if(!Array.isArray(G))throw new Error("JSON data from ".concat(L.config.url," must be an array"));const K={timestamp:Date.now(),data:G};return L.purpleService.setState(L.getCacheKey(),JSON.stringify(K)),L.fetchedData=G,Promise.resolve(L.dataToPage(L.fetchedData,A))})()}getGhosts(A){return Array(3).fill(null)}getGroups(){var A,L,G;return null!==(A=this.config.groupBy)&&void 0!==A&&A.subArray&&null!==(L=null===(G=this.data)||void 0===G?void 0:G.map(K=>B()(K)))&&void 0!==L?L:[]}getGroupData(A){var L;if(null!==(L=this.config.groupBy)&&void 0!==L&&L.subArray){var G;const K=null===(G=this.data)||void 0===G||null===(G=G.find(ce=>B()(ce)===A))||void 0===G?void 0:G[this.config.groupBy.subArray];return Array.isArray(K)?K:(console.warn("A group from ".concat(this.config.url," has no array at field ").concat(this.config.groupBy.subArray)),[])}return console.warn("getGroupData called but json-data-source config was missing groupBy parameters"),[]}getGroupHeaderContextData(A){var L,G;return null!==(L=this.config.groupBy)&&void 0!==L&&L.subArray?Promise.resolve(null===(G=this.data)||void 0===G?void 0:G.find(K=>B()(K)===A)):(console.warn("getGroupHeaderContextData called but json-data-source config was missing groupBy parameters"),Promise.resolve(void 0))}},menu:class Oe extends p.q{loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!0,A),K=L.purpleService.getCatalogMenusFromCache(G);return K.then(ce=>({...L.mapMenuPage(ce),timestamp:K.timestamp}))})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.getParams(!1,A);return L.purpleService.getMenus(G,!0).then(K=>L.mapMenuPage(K))})()}getParams(A=!1,L=!1,G=this.config){const K={first:this.getBatchSize(G,!A),includeItems:!0},ce=G.filter;return ce&&(K.menuFilter=ce),G.fetchOptions&&(K.fetchOptions=G.fetchOptions),this.cursor&&!L&&(K.after=this.cursor),K}mapMenuPage(A){const L=(0,E.S8)(this.config.itemFilter),G=A.nodes.map(K=>{var ce;return{...K,items:null===(ce=K.items)||void 0===ce?void 0:ce.filter(Be=>(0,ne.w)(L,Be)).sort((Be,qe)=>Be.sortIndex-qe.sortIndex)}});return(0,E.MV)(A,G)}static getDataSourceContentType(A){return"menu"}},period:w,publication:Z,"search-result":class Y extends p.q{constructor(A,L,G,K,ce,Be,qe,ut){super(A,L,G,K,ce,Be,qe,ut),this.config=A,this.contextService=L,this.outlet=G,this.transferState=K,this.purpleService=ce,this.globalService=Be,this.platformId=qe,this.resourceService=ut,this.groupable=!0}loadCacheData(A=!1){var L=this;return(0,l.A)(function*(){const G=L.purpleService.searchFromCache(L.getParams(!0,A));return G.then(K=>({...L.mapPage(K),timestamp:G.timestamp}))})()}loadApiData(A=!1){var L=this;return(0,l.A)(function*(){return L.purpleService.search(L.getParams(!1,A),!0).then(G=>L.mapPage(G))})()}mapPage(A){var L,G;if(A=this.limitExcerptLength(A),null!==(L=this.config.legacyMode)&&void 0!==L&&L.unwrapBundles){const K=[];for(const ce of A.nodes)(0,z.o$)(ce)?K.push(...ce.posts):K.push(ce);A=(0,E.MV)(A,K)}if(null!==(G=this.config.legacyMode)&&void 0!==G&&G.mapPostToIssue)for(let K=0;K<A.nodes.length;K++){const ce=A.nodes[K];(0,z.QO)(ce)&&(A.nodes[K]={issue:ce.post,contentType:Q.CatalogContentType.ISSUE,pageHits:[{excerpt:ce.excerpt}]})}return A}limitExcerptLength(A){const L=G=>{const K=G.indexOf("<strong>");if(-1===K)return console.warn('Got search result without "<strong>" tag. Is this still how search hits are marked?'),G;let ce=Math.max(0,K-this.config.limitCharactersBeforeHit);if(ce>0){const Be=G.indexOf(" ",ce);Be>-1&&(ce=Be+1)}return G.substring(ce)};return void 0!==this.config.limitCharactersBeforeHit&&A.nodes.forEach(G=>{(0,z.QO)(G)?G.excerpt=L(G.excerpt):(0,z.n7)(G)?G.pageHits.forEach(K=>K.excerpt=L(K.excerpt)):(0,z.o$)(G)&&G.posts.forEach(K=>K.excerpt=L(K.excerpt))}),A}getGroups(){var A;if(!this.data&&this.error)return[];if(!this.data&&!this.error)return this.getGhosts();if(null!==(A=this.config.groupBy)&&void 0!==A&&A.issueFromCustomProperty){var L;if(null===(L=this.config.legacyMode)||void 0===L||!L.unwrapBundles)throw console.error("Regrouping for bundles is not supported"),new Error("SearchResultDataSource: groupBy.issueFromCustomProperty requires legacyMode.unwrapBundles");if(!this.data)return[];const G=this.config.groupBy.issueFromCustomProperty,K=new Set;for(const ce of this.data){const Be=(0,z.tr)(ce);let qe=Be.properties[G];qe||(qe=Be.id),K.has(qe)||K.add(qe)}return Array.from(K.values())}return[]}getGroupData(A){var L;if(!A)return this.getGhosts();if(null!==(L=this.config.groupBy)&&void 0!==L&&L.issueFromCustomProperty){let G=this.data.filter(K=>(0,z.tr)(K).properties[this.config.groupBy.issueFromCustomProperty]===A);return G.length||(G=this.data.filter(K=>(0,z.tr)(K).id===A)),G}return console.warn("getGroupData called but search-result-data-source config was missing groupBy parameters"),[]}getGroupHeaderContextData(A){var L=this;return(0,l.A)(function*(){var G;if(!A)return{id:null};if(null!==(G=L.config.groupBy)&&void 0!==G&&G.issueFromCustomProperty){var K;const ce=L.config.groupBy.issueFromCustomProperty,Be=(0,E.uQ)(null===(K=L.config.groupBy)||void 0===K?void 0:K.groupIssueFilter,{...L.contextService.getContext(),propertyKey:ce,groupId:A},L.contextService.$functions,L.globalService.getGlobalData()),qe=yield L.purpleService.getCatalogContents({contentFilter:Be,first:1});if(1!==qe.totalCount&&console.warn("Expected 1 parent issue for search result with ".concat(ce," = ").concat(A,", found ").concat(qe.totalCount)),1===qe.nodes.length)return qe.nodes[0]}return L.config.groupBy.fallbackHeaderData})()}getParams(A=!1,L=!1){const G={searchPhrase:this.config.phrase,first:this.getBatchSize(this.config,A),options:this.config.searchOptions,searchFields:this.config.searchFields};return G.fetchOptions=this.config.fetchOptions?this.config.fetchOptions:{},void 0===G.fetchOptions.totalCount&&(G.fetchOptions.totalCount=!0),this.config.filter&&(G.contentFilter=(0,E.Ph)(this.config.filter)),this.cursor&&!L&&(G.after=this.cursor),G}static getConfigEscapeProperties(){return[["dataSource","groupBy","groupIssueFilter"]]}},subscription:le.r,taxonomy:Ze,content:He,context:class Ye extends p.q{loadApiData(A){var L=this;return(0,l.A)(function*(){const G=A?0:parseInt(L.cursor||"0",10);let K=(0,E.uQ)(L.config.data,{...L.contextService.getContext()},L.contextService.$functions,L.globalService.getGlobalData());const ce=L.getBatchSize(L.config),Be=K.slice(G,G+ce),qe={hasNextPage:G+ce<K.length,cursor:"".concat(G+ce),nodes:Be,totalCount:K.length};return Promise.resolve(qe)})()}}};function Fe(R){if(R&&R.dataSource&&R.dataSource.type){const A=be[R.dataSource.type];if(A)return A.getConfigEscapeProperties()}return[]}function he(R){if(R&&R.dataSource&&R.dataSource.type){const A=be[R.dataSource.type];if(A)return A.getDataSourceContentType(R)}}function Ne(R,A,L,G,K,ce,Be,qe,ut,je){let mt;const Nt=(0,ge.kO)(G,qe),zt=be[R.type];return zt?mt="ad"===R.type?new zt(R,A,Nt,K,ce,Be,L,je,ut):new zt(R,A,Nt,K,ce,Be,je,ut):console.warn("Failed to create datasource: unknown type ".concat(R.type)),mt&&A.registerDataSource(mt,Nt),mt}function st(R,A,L,G,K,ce,Be,qe,ut){let je;const mt=(0,ge.kO)(L,Be);switch(R.type){case"publication":je=new Z(R,A,mt,G,K,ce,qe,ut);break;case"category":je=new I(R,A,mt,G,K,ce,qe,ut);break;case"period":je=new w(R,A,mt,G,K,ce,qe,ut);break;case"taxonomy":je=new Ze(R,A,mt,G,K,ce,qe,ut)}return je&&A.registerDataSource(je),je}},4594:(ee,_,c)=>{"use strict";c.d(_,{q:()=>V});var l=c(467),p=c(8179),E=c(4412),v=c(3294),U=c(362),B=c(177),ne=c(7783),me=c(4438);let V=(()=>{var Z;class le{constructor(z,Y,ve,pe,fe,w,j,I){this.config=z,this.contextService=Y,this.outlet=ve,this.transferState=pe,this.purpleService=fe,this.globalService=w,this.platformId=j,this.resourceService=I,this.isBrowser=(0,B.UE)(j),this.setAdConfig(z),this.interpolateFilter(z.filter),this.dataSubject=new E.t(this.getGhosts()),this.data$=this.dataSubject.asObservable().pipe((0,v.F)((S,N)=>this.isDataEqual(S,N))),this.errorSubject=new E.t(null),this.error$=this.errorSubject.asObservable()}setConfig(z){this.config=z,this.setAdConfig(z)}setExcludedData(z){this.excludedData=z}setAdConfig(z){if(!z.ad)return void(this.adConfig=null);const Y=z.ad;let ve;ve=Y.condition&&(0,p.Ol)(Y)?Y.value:z.ad,this.adConfig=ve||null}reset(){delete this.apiToken,delete this.data,delete this.cursor,this.hasRealData=!1,this.setError(null),this.loading=!1,this.dataSubject.next(this.getGhosts()),this.cleanupContextData()}hasContextKey(){return!!this.config.contextKey}cleanupContextData(){this.hasContextKey()&&this.contextService.clearOutletData(this.outlet,this.config.contextKey)}loadMore(){var z=this;return(0,l.A)(function*(){if(z.cursor)return z.loadData({add:!0})})()}update(){var z=this;return(0,l.A)(function*(){z.updating=!0,z.hasData()||(z.dataSubject.next(null),z.dataSubject.next(z.getGhosts())),yield z.loadData({bypassCache:!0,add:!1,ignoreCursor:!0}),z.updating=!1})()}isCacheTimestampValid(z){var Y;let ve=(0,p.v3)(this.config.maxCacheAge);return"string"==typeof ve&&(ve=parseInt(ve)),Date.now()-z<=(null!==(Y=ve)&&void 0!==Y?Y:le.MAX_CACHE_AGE)}loadData(z={}){var Y=this;return(0,l.A)(function*(){var ve,pe;const fe=null===(ve=Y.contextService.getCurrentViewContext())||void 0===ve?void 0:ve.entitlement_token,w=(0,me.zw6)((null!==(pe=Y.config.contextKey)&&void 0!==pe?pe:Y.config.type)+"_"+ne(Y.config)+(fe?"_True":"")),j=Zone.current.scheduleMacroTask(w,()=>{},{},()=>{},()=>{});if(!z.add&&!z.bypassCache)try{const S=yield Y.loadCacheData(z.ignoreCursor),N=S.timestamp&&Y.isCacheTimestampValid(S.timestamp);if(N)return Y.setData(S,!1,!N,z.global),Y.hasRealData=!0,Y.setError(null),void j.invoke()}catch{}Y.loading=!0,z.add&&Y.dataSubject.next(Y.getData());const I=Date.now();Y.apiToken=I;try{let S;if(Y.transferState.hasKey(w)&&w&&Y.isBrowser&&!Y.config.preventSSRCache?(S=Y.transferState.get(w,null),Y.transferState.remove(w)):(S=yield Y.loadApiData(z.ignoreCursor),w&&"bookmark"!==Y.config.type&&Y.transferState.onSerialize(w,()=>S)),Y.apiToken!==I)return void j.invoke();!Y.getLimit()&&S.hasNextPage?Y.cursor=S.cursor:delete Y.cursor,Y.setData(S,!!z.add,z.ignoreCursor,z.global),Y.hasRealData=!0,Y.config.loadAll&&S.hasNextPage&&Y.loadMore()}catch(S){if(console.log(S),Y.apiToken===I)throw Y.loading=!1,Y.dataSubject.next(Y.getData()),Y.setError(S),j.invoke(),S}j.invoke()})()}loadCacheData(z=!1){return(0,l.A)(function*(){throw new Error("no cache data")})()}getData(){const z=this.getGhosts(!!this.data);return this.data?this.loading?[...this.getDataWithAds(),...z]:this.getDataWithAds():this.error?void 0:z}getDataWithAds(){var z;if(!this.adConfig)return this.data;const Y=[],ve=this.adConfig.interval,pe=null!==(z=this.adConfig.after)&&void 0!==z?z:ve;let fe=this.adConfig.startIndex||0;for(let w=0;w<this.data.length;w++)w>=pe&&(w-pe)%ve==0&&Y.push({ad:{type:"ad",adId:this.adConfig.adId+(this.adConfig.indexed?fe++:"")}}),Y.push(this.data[w]);return Y}setData(z,Y=!0,ve=!1,pe=!1){if(this.loading=!1,!this.registered)return;let fe=z.nodes;if((0,p.v3)(this.config.randomize)&&(0,p.E1)(fe),Y)this.data=[...this.data||[],...fe];else{if(this.data&&fe.length&&this.isDataEqual(fe,this.data.slice(0,this.getBatchSize(this.config))))return;{const w=this.getOffset();w&&(fe=fe.slice(w)),this.data=fe}}if(this.lastCallMetadata={hasNextPage:z.hasNextPage,totalCount:z.totalCount,dataLength:this.data.length},this.dataSubject.next(this.getData()),this.config.contextKey){let w=[...this.data];this.config.contextProperty&&(w=w.map(j=>j[this.config.contextProperty])),w.totalCount=z.totalCount,pe?this.globalService.setData(this.config.contextKey,w):this.contextService.setOutletData(this.config.contextKey,w,this.outlet)}if(!ve){const w=this.getLimit();z.hasNextPage&&!w||this.data.length<w?this.cursor=z.cursor:delete this.cursor}}interpolateFilter(z){z&&Object.entries(z).forEach(([Y,ve])=>{if(ve instanceof Array)ve.forEach(pe=>this.interpolateFilter(pe));else if("object"==typeof ve)this.interpolateFilter(ve);else if("string"==typeof ve&&0===ve.indexOf(":")){const pe=ve.substr(1),fe=this.contextService.getContext();if(fe){const w=fe.pathParams;w&&(z[Y]=w[pe]||ve)}}})}getGhosts(z){return Array(z?6:10).fill(null)}delete(z){this.data=this.data.filter(Y=>!this.isEqual(Y,z)),this.dataSubject.next(this.data)}isEqual(z,Y){return z===Y}getLimit(z=this.config){if(void 0===z.limit)return;const Y=(0,p.v3)(z.limit);return"string"==typeof Y?parseInt(Y):Y}getOffset(z=this.config){if(void 0===z.offset)return;const Y=(0,p.v3)(z.offset);return"string"==typeof Y?parseInt(Y):Y}getBatchSize(z,Y=!1){var ve;let pe=(0,p.v3)(z.batchSize);"string"==typeof pe&&(pe=parseInt(pe));let fe=null!==(ve=pe)&&void 0!==ve?ve:this.getDefaultBatchSize();const w=this.getLimit(z),j=this.getOffset(z);if(this.updating){var I;const S=(null!==(I=this.data)&&void 0!==I&&I.length?Math.ceil(this.data.length/fe):1)*fe;return w?Math.min(S,w):S}return w&&(fe=Math.max(0,Math.min(fe,w-(!Y&&this.hasRealData&&this.data||[]).length))),j&&(fe+=j),fe}getDefaultBatchSize(){return le.BATCH_SIZE}hasData(){return!!this.data}hasConfigChanged(z){return!U(this.config,z)}isDataEqual(z,Y){return U(z,Y)}setError(z){this.error=z,this.errorSubject.next(this.error),z&&!this.hasData()&&this.dataSubject.next(null)}filterDataLocal(z,Y){const ve=this.contextService.getCurrentViewContext();return z.filter(pe=>{let fe,w;return Y&&(fe=(0,p.uQ)(JSON.parse(JSON.stringify(Y)),{...ve,[this.config.type]:pe},this.contextService.$functions,this.globalService.getGlobalData())),pe.condition&&(w=(0,p.uQ)(JSON.parse(JSON.stringify(pe.condition)),{...ve,[this.config.type]:pe},this.contextService.$functions,this.globalService.getGlobalData())),(0,p.Ol)({condition:w})&&(0,p.Ol)({condition:fe})})}static getConfigEscapeProperties(){return[]}static getDataSourceContentType(z){return null}}return(Z=le).BATCH_SIZE=24,Z.MAX_CACHE_AGE=6e4,le})()},8179:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Dc:()=>toLocalContentsFilter,E1:()=>randomizeOrder,E7:()=>isStringResolved,KR:()=>isStorefrontDateMapFilter,MV:()=>replaceNodes,Ol:()=>isEnabled,Ph:()=>toPurpleContentFilter,S8:()=>toPurpleMenuItemFilter,Vb:()=>toPurpleTaxonomyFilter,ZY:()=>isResolved,_o:()=>SubscriptionSortOrder,g7:()=>toLocalIssueFilter,kJ:()=>sortDataLocal,mF:()=>CONTEXT_IDENTIFIER,mI:()=>toPurpleCollectionFilter,n:()=>toPurpleIssueFilter,q8:()=>toPurpleCategoryFilter,ru:()=>isEnabledReplaceValue,tA:()=>toPurpleSubscriptionFilter,uQ:()=>replaceValue,v3:()=>getEnabledValue,y3:()=>toPurplePublicationFilter});var _purple_model__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4404),_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__(3178),_util_purple_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7879),_util_date_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4333),_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7439);function toPurpleIssueFilter(ee){if(ee){const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toPurpleIssueFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurpleIssueFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}if(ee.publication){const c=toPurplePublicationFilter({...ee.publication,condition:ee.condition});return c?{publication:c}:null}if(ee.properties&&(ee={...ee,properties:toPurpleMapFilter(ee.properties)}),_&&_.age){const c=(0,_util_date_util__WEBPACK_IMPORTED_MODULE_3__.pd)(_.age),l=_.age.operation||_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN;let p=l;switch(l){case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN:p=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN;break;case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN:p=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN}return{publicationDate:{value:c,operation:p}}}return _}return null}function toLocalIssueFilter(ee){if(!ee)return null;const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toLocalIssueFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toLocalIssueFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return ee.properties&&isStorefrontDateMapFilter(ee.properties)?_:null}function toLocalContentsFilter(ee){if(!ee)return null;const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toLocalContentsFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toLocalContentsFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return ee.properties&&isStorefrontDateMapFilter(ee.properties)?_:null}function toPurplePublicationFilter(ee){if(ee){const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toPurplePublicationFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurplePublicationFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return _}return null}function toPurpleSubscriptionFilter(ee){if(!ee||ee.productId&&(0,_util_purple_util__WEBPACK_IMPORTED_MODULE_2__.E7)(window.purple.catalog,{major:1,minor:4},_purple_model__WEBPACK_IMPORTED_MODULE_0__.IntOperation.LESS_THAN))return null;{const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toPurpleSubscriptionFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurpleSubscriptionFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return _}}function toPurpleCategoryFilter(ee){if(ee){const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toPurpleCategoryFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurpleCategoryFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return _}return null}function toPurpleTaxonomyFilter(ee){if(ee){var _;if(ee.AND){const c=ee.AND.map(l=>toPurpleTaxonomyFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurpleTaxonomyFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}if(null!==(_=ee.contents)&&void 0!==_&&null!==(_=_.content)&&void 0!==_&&_.value){const c=toPurpleContentFilter({...ee.contents.content.value,condition:ee.condition});return c?{contents:{...ee.contents,content:{value:c}}}:null}return getEnabledFilter(ee)}return null}function toPurpleMapFilter(ee){return isStorefrontDateMapFilter(ee)?null:ee}function toPurpleContentFilter(ee){if(ee){var _;const c=getEnabledFilter(ee);if(!c)return null;if(ee.AND){const l=ee.AND.map(p=>toPurpleContentFilter(p)).filter(p=>!!p);return l.length?{AND:l}:null}if(ee.OR){const l=ee.OR.map(p=>toPurpleContentFilter(p)).filter(p=>!!p);return l.length?{OR:l}:null}if(ee.publication){const l=toPurplePublicationFilter({...ee.publication,condition:ee.condition});return l?{publication:l}:null}if(null!==(_=ee.taxonomies)&&void 0!==_&&null!==(_=_.content)&&void 0!==_&&_.value){const l=toPurpleTaxonomyFilter({...ee.taxonomies.content.value,condition:ee.condition});return l?{taxonomies:{...ee.taxonomies,content:{value:l}}}:null}if(ee.publicationDate&&(c.publicationDate.value=ee.publicationDate.value.toString()),c&&c.age){const l=(0,_util_date_util__WEBPACK_IMPORTED_MODULE_3__.pd)(c.age),p=c.age.operation||_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN;let E=p;switch(p){case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN:E=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN;break;case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN:E=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN}return{publicationDate:{value:l,operation:E}}}return c}return null}function toPurpleCollectionFilter(ee){if(ee){const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toPurpleCollectionFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurpleCollectionFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return _}return null}function toPurpleMenuItemFilter(ee){if(ee){const _=getEnabledFilter(ee);if(!_)return null;if(ee.AND){const c=ee.AND.map(l=>toPurpleMenuItemFilter(l)).filter(l=>!!l);return c.length?{AND:c}:null}if(ee.OR){const c=ee.OR.map(l=>toPurpleMenuItemFilter(l)).filter(l=>!!l);return c.length?{OR:c}:null}return _}return null}function getEnabledFilter(ee){if(!ee)return null;const _=Object.keys(ee).filter(E=>"condition"!==E)[0];if(!_)return ee;const{condition:c,...l}=ee[_];var p;return isEnabled(ee)?l&&l.value&&Array.isArray(l.value)?l.value.map(v=>({[_]:{...l,value:v}})).length?{OR:l.value.map(v=>({[_]:{...l,value:v}}))}:null:null!=l&&null!==(p=l.id)&&void 0!==p&&p.value&&Array.isArray(l.id.value)?l.id.value.length?{OR:l.id.value.map(E=>({[_]:{...l,id:{value:E}}}))}:null:l&&l.content&&l.content.value&&l.content.value.value&&Array.isArray(l.content.value.value)?l.content.value.value.map(v=>({[_]:{...l,value:v}})).length?{OR:l.content.value.value.map(v=>({[_]:{...l,content:{value:{value:v}}}}))}:null:{[_]:l}:null}function isConditionalValue(ee){return ee&&"object"==typeof ee&&ee.condition}function isEnabledReplaceValue(ee,_,c,l,p=!0){return isConditionalValue(ee)?isEnabled({condition:replaceValue(ee.condition,_,c,l,p)}):!!ee}function isEnabled(ee){if(!isConditionalValue(ee))return!!ee;const c=(()=>{if(ee.condition.AND){let U=!0;for(const $ of ee.condition.AND)if(U=isEnabled({condition:$}),!U)break;return U}if(ee.condition.OR){let U=!1;for(const $ of ee.condition.OR)if(U=isEnabled({condition:$}),U)break;return U}const l="value"in ee.condition&&isValueResolved(ee.condition.value,[])?ee.condition.value:void 0;let p,E;switch(ee.condition.operation){case ConditionCompareOperation.NOT_SET:return!l;case ConditionCompareOperation.EQUALS_NOT:return ee.condition.stringIgnoreCase?!(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(l,ee.condition.compareValue):l!==ee.condition.compareValue;case ConditionCompareOperation.SET:return!!l;case ConditionCompareOperation.EMPTY:return l&&!l.length;case ConditionCompareOperation.NOT_EMPTY:return l&&!!l.length;case ConditionCompareOperation.LESS_THAN:return p=parseInt(l,10),E=parseInt(ee.condition.compareValue,10),isNaN(p)||isNaN(E)?(console.log("error comparing values: "+l+" < "+ee.condition.compareValue),!1):p<E;case ConditionCompareOperation.GREATER_THAN:return p=parseInt(l,10),E=parseInt(ee.condition.compareValue,10),isNaN(p)||isNaN(E)?(console.log("error comparing values: "+l+" > "+ee.condition.compareValue),!1):p>E;case ConditionCompareOperation.CONTAINS:return void 0===l?(console.log("error comparing values: "+l+" CONTAINS "+ee.condition.compareValue),!1):Array.isArray(l)?ee.condition.stringIgnoreCase?l.some(U=>(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(U.toString(),ee.condition.compareValue)):l.includes(ee.condition.compareValue):"string"==typeof l?ee.condition.stringIgnoreCase?(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(l,ee.condition.compareValue):l.includes(ee.condition.compareValue):Object.keys(l).includes(ee.condition.compareValue)&&l[ee.condition.compareValue];default:return ee.condition.stringIgnoreCase?(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(l.toString(),ee.condition.compareValue):l+""==ee.condition.compareValue+""}})();return ee.condition.negated?!c:c}function getEnabledValue(ee){return"boolean"==typeof ee?ee:isEnabled(ee)?isConditionalValue(ee)&&"value"in ee?ee.value:ee:isConditionalValue(ee)&&ee.fallback?getEnabledValue(ee.fallback):null}const CONTEXT_IDENTIFIER="$context",FUNCTIONS_IDENTIFIER="$functions",GLOBAL_IDENTIFIER="$global";function replaceValue(ee,_,c,l,p=!0){const E=typeof ee;if("string"===E)return replaceStringValue(ee,_,c,l,p);if("object"===E){if(Array.isArray(ee))return ee.map(v=>replaceValue(v,_,c,l,p));if(ee)return Object.keys(ee).reduce((v,U)=>({...v,[U]:replaceValue(ee[U],_,c,l,p)}),{})}return ee}const parseScopeValue=(ee,_)=>{var c,l;return(null!==(c=null===(l=_.match(/((\w|-)+|\[[^\]]+\])/g))||void 0===l?void 0:l.map(v=>v.replace(/[[\]'"]/g,"")))&&void 0!==c?c:[]).reduce((v,U)=>v&&("count"===U?Array.isArray(v)?v.length:1:v[U]),ee)};function replaceStringValue(ee,_,c,l,p=!0){if(!ee.includes("$"))return ee;let E=ee.indexOf(FUNCTIONS_IDENTIFIER);for(;E>=0;){const v=ee.slice(0,E),U=ee.slice(E);try{const[$,B]=(0,_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__.M)(U,_,c,l);void 0===$&&p?E++:ee=v+$+B}catch($){E++,console.log('Error while evaluating function "'.concat(U,'": ').concat($.message))}E=ee.indexOf(FUNCTIONS_IDENTIFIER,E)}try{(ee=replaceScope(ee,_,CONTEXT_IDENTIFIER,p))&&"string"==typeof ee&&(ee=replaceScope(ee,l,GLOBAL_IDENTIFIER,p))}catch(v){console.log(v)}return("null"===ee||"undefined"===ee||"false"===ee||void 0===ee||!1===ee)&&(ee=null),ee}function replaceScope(ee,_,c,l){const p=new RegExp("\\".concat(c,"(((\\[(\"|')?[\\w\\d-_\\.]*(\"|')?\\])+)|((\\.[\\w\\d-_]+)))*"),"g"),E=ee.match(p);if(E&&1===E.length&&E[0]===ee)return replaceSingleValue(ee,_,c,l);{let v=ee.split("/");return E&&E.forEach(U=>{const $=replaceSingleValue(U,_,c,l);let B=v.find(ne=>ne.indexOf(U)>-1);null==$?v.splice(v.indexOf(B),1):B?v[v.indexOf(B)]=B.replace(U,$):console.debug("warn: segment not found: "+B)}),v.join("/")}}function replaceSingleValue(ee,_,c,l=!0){const p=ee.substring(c.length),E=parseScopeValue(_,p);return"number"==typeof E||"boolean"==typeof E?E:l?""===E?"":E||ee:E}function isArrayResolved(ee,_){let c=!0;for(const l of ee)if(c=isValueResolved(l,_),!c)break;return c}function isObjectResolved(ee,_){if(!isEnabled(ee))return!0;e:for(const c of Object.keys(ee)){for(const l of _){if("string"==typeof l&&c===l)continue e;if(Array.isArray(l)&&l[0]===c&&(l.shift(),0===l.length))continue e}if(!isValueResolved(ee[c],_))return!1}return!0}function isStringResolved(ee){return-1===ee.indexOf(CONTEXT_IDENTIFIER)&&-1===ee.indexOf(FUNCTIONS_IDENTIFIER)&&-1===ee.indexOf(GLOBAL_IDENTIFIER)}function isNumberResolved(ee){return!0}function isBooleanResolved(ee){return!0}function isValueResolved(ee,_){switch(typeof ee){case"string":return isStringResolved(ee);case"number":return isNumberResolved(ee);case"boolean":return isBooleanResolved(ee);case"object":return Array.isArray(ee)?isArrayResolved(ee,_):isObjectResolved(ee,_);default:return!0}}function isResolved(ee,_=["content"]){return isObjectResolved(ee,_)}function sortDataLocal(data,comparator){return[...data].sort((a,b)=>{let cmp=0;if("key"in comparator){const ee=a[comparator.key],_=b[comparator.key];switch(comparator.valueType){case"STRING":cmp=ee.toString().localeCompare(_.toString());break;case"INT":cmp=ee-_}}else if("sortFunction"in comparator){const sortFuncReturned=eval(comparator.sortFunction);"number"==typeof sortFuncReturned&&isFinite(sortFuncReturned)&&(cmp=sortFuncReturned)}return comparator.direction===_purple_model__WEBPACK_IMPORTED_MODULE_0__.SortDirection.ASC?cmp:-cmp})}function replaceNodes(ee,_){return{...ee,nodes:_,totalCount:ee.totalCount?ee.totalCount-(ee.nodes.length-_.length):ee.totalCount}}function randomizeOrder(ee){for(let _=ee.length-1;_>0;_--){const c=Math.floor(Math.random()*(_+1)),l=ee[_];ee[_]=ee[c],ee[c]=l}}function isStorefrontDateMapFilter(ee){return ee&&"date"===ee.mode}var ConditionCompareOperation=function(ee){return ee.EQUALS="EQUALS",ee.EQUALS_NOT="EQUALS_NOT",ee.NOT_SET="NOT_SET",ee.SET="SET",ee.EMPTY="EMPTY",ee.NOT_EMPTY="NOT_EMPTY",ee.GREATER_THAN="GREATER_THAN",ee.LESS_THAN="LESS_THAN",ee.CONTAINS="CONTAINS",ee}(ConditionCompareOperation||{}),SubscriptionSortOrder=function(ee){return ee.DEFAULT="DEFAULT",ee.DURATION="DURATION",ee}(SubscriptionSortOrder||{})},1497:(ee,_,c)=>{"use strict";c.d(_,{r:()=>ne});var l=c(467),p=c(4404),v=c(4333),U=c(7879),$=c(4594),B=c(8179);class ne extends $.q{static toSubscriptionsWithPrices(me,V){const le=[];return me.nodes.forEach(Q=>{const z=V.find(Y=>Y.productId===Q.productId);z&&ne.toSubscriptionsWithPrice(Q,z).forEach(Y=>le.push(Y))}),(0,B.MV)(me,le)}static toSubscriptionsWithPrice(me,V){const Z={...me,price:{productId:V.productId,formattedPrice:V.formattedPrice,price:V.price,currency:V.currency}};return V.trialPeriod&&!1!==me.eligibilityInfo.trial?[{...Z,trial:V.trialPeriod}]:V.introductoryPrice&&me.eligibilityInfo.introductoryPricing?[{...Z,introductoryPrice:V.introductoryPrice}]:V.discounts&&V.discounts.length&&me.eligibilityInfo.discountOffers?V.discounts.map(le=>({...Z,id:le.offerId,discount:le})):[Z]}loadApiData(me=!1){var V=this;return(0,l.A)(function*(){const Z=yield V.purpleService.getSubscriptions(V.getParams(!1,me),!0).then(Q=>V.transform(Q)),le=Z.nodes.length?yield V.purpleService.getPrices(Z.nodes.map(Q=>Q.productId)):{priceInfos:[]};return ne.toSubscriptionsWithPrices(Z,le.priceInfos)})()}getParams(me=!1,V=!1){const Z={first:this.getBatchSize(this.config,me)};return this.config.fetchOptions&&(Z.fetchOptions=this.config.fetchOptions),this.config.filter&&(Z.subscriptionFilter=(0,B.tA)(this.config.filter)),this.cursor&&!V&&(Z.after=this.cursor),Z}transform(me){let V=this.filter(me);return V=this.sort(V),V}sort(me){let V=me.nodes;if(this.config.localSort){let Z;this.config.localSort.criteria===B._o.DURATION&&(Z=this.config.localSort.direction===p.SortDirection.ASC?-1:1,V=V.sort((le,Q)=>(0,v.FK)(le.duration,Q.duration)*Z))}return{...me,nodes:V}}filter(me){let V=me;return!1!==this.config.excludeHidden&&(V=this.filterHidden(V)),this.config.excludeSmaller&&(V=this.filterSmaller(V)),this.config.excludePurchased&&(V=this.filterPurchased(V)),this.config.onlyAdditionalUnlocks&&(V=this.filterAdditionalUnlocksOnly(V)),V=this.filterByProductId(V),V}filterPurchased(me){return(0,B.MV)(me,me.nodes.filter(V=>!V.purchased))}filterSmaller(me){let V=me.nodes;const Z=me.nodes.filter(le=>le.purchased).sort((le,Q)=>(0,v.FK)(le.duration,Q.duration))[0];return Z&&(V=V.filter(le=>(0,v.FK)(le.duration,Z.duration)<0)),(0,B.MV)(me,V)}filterHidden(me){return(0,B.MV)(me,me.nodes.filter(V=>!V.hidden))}filterAdditionalUnlocksOnly(me){return(0,B.MV)(me,me.nodes.filter(V=>{var Z;return(null===(Z=V.additionalUnlocks)||void 0===Z?void 0:Z.count)>0}))}filterByProductId(me){var V;return(0,U.E7)(window.purple.catalog,{major:1,minor:4},p.IntOperation.LESS_THAN)&&null!==(V=this.config.filter)&&void 0!==V&&V.productId?(0,B.MV)(me,me.nodes.filter(Z=>(null==Z?void 0:Z.productId)===this.config.filter.productId.value)):me}getGhosts(me){return Array(3).fill(null)}static getDataSourceContentType(me){return"subscription"}}},1605:(ee,_,c)=>{"use strict";c.d(_,{P:()=>U});var l=c(20),p=c(6483),E=c(6067),v=c(4438);let U=(()=>{var $;class B{}return($=B).\u0275fac=function(te){return new(te||$)},$.\u0275mod=v.$C({type:$}),$.\u0275inj=v.G2t({providers:[l.o,E.D],imports:[p.h]}),B})()},20:(ee,_,c)=>{"use strict";c.d(_,{o:()=>Q});var l=c(467),p=c(4438),E=c(9360);const v=(0,E.YE)(),U=(0,E.zk)(),$={message:"",actions:[],tag:"div",container:v.body,messages:{DIALOG_MESSAGE_OK:"OK",DIALOG_MESSAGE_CONFIRM:"Confirm",DIALOG_MESSAGE_CANCEL:"Cancel"}};class B{constructor(Y){this.keydownListener=ve=>{if(ve.stopPropagation(),ve.preventDefault(),13===ve.which){const pe=this.config.actions[this.config.actions.length-1];pe&&(pe.callback(),this.destroy())}},this.config={...$,...Y,messages:{...$.messages,...(Y||{}).messages}},this.element=v.createElement(this.config.tag)}render(){U.addEventListener("keypress",this.keydownListener,{once:!0}),this.element.classList.add("purple-dialog");const Y=/apple/i.test(navigator.vendor);this.element.classList.add(Y?"ios":"android"),this.element.addEventListener("touchstart",w=>w.preventDefault());const ve=v.createElement("section");if(this.config.title){const w=v.createElement("h1");w.innerHTML=this.config.title,ve.appendChild(w)}const pe=v.createElement("p");pe.innerHTML=this.config.message,ve.appendChild(pe);const fe=v.createElement("div");this.config.actions.forEach(w=>{const j=v.createElement("button");w.type&&j.classList.add(w.type),j.innerText=this.config.messages[w.message]||w.message,j.addEventListener("touchstart",I=>I.stopPropagation(),{passive:!0}),j.addEventListener("click",()=>{w.callback(),this.destroy()}),fe.append(j)}),ve.appendChild(fe),this.element.appendChild(ve),this.config.container.appendChild(this.element)}destroy(){this.element.remove()}}const te=(0,E.zk)(),me={show:(z,Y,ve,pe)=>new Promise(fe=>{for(const w of Y){const j=w.callback;w.callback=()=>{j(),fe()}}new B({message:z,actions:Y,title:ve,...pe}).render()}),confirm:(z,Y,ve)=>new Promise((pe,fe)=>{new B({message:z,actions:[{message:"DIALOG_MESSAGE_CANCEL",type:"cancel",callback:fe},{message:"DIALOG_MESSAGE_CONFIRM",type:"confirm",callback:pe}],title:Y,...ve}).render()}),alert:(z,Y,ve)=>new Promise(pe=>{new B({message:z,actions:[{message:"DIALOG_MESSAGE_OK",callback:pe}],title:Y,...ve}).render()})};te.PurpleDialog=me;var V=c(177),Z=c(7900),le=c(6067);let Q=(()=>{var z;class Y{constructor(pe,fe,w){this.translateService=pe,this.translate=fe,this.platformId=w}init(){var pe=this;return(0,l.A)(function*(){pe.messages=yield pe.translate.getMessages()})()}confirm(pe,fe,w,j){var I=this;return(0,l.A)(function*(){if(!(0,V.UE)(I.platformId))return;const S=yield I.translateService.translate(pe),N=yield I.translateService.translate(fe||"DIALOG_TITLE"),W={messages:I.messages||{}};if(w){const X=yield I.translateService.translate(w);W.messages.DIALOG_MESSAGE_CONFIRM=X}if(j){const X=yield I.translateService.translate(j);W.messages.DIALOG_MESSAGE_CANCEL=X}return I.currentDialog=I.currentDialog?I.currentDialog.then(X=>new Promise((J,Ce)=>me.confirm(S,N,W).then(J,Ce))):me.confirm(S,N,W),I.currentDialog.finally(()=>delete I.currentDialog)})()}alert(pe,fe,w){var j=this;return(0,l.A)(function*(){if(!(0,V.UE)(j.platformId))return;const I=yield j.translateService.translate(pe),S=yield j.translateService.translate(fe||"DIALOG_TITLE"),N={messages:j.messages||{}};if(w){const W=yield j.translateService.translate(w);N.messages.DIALOG_MESSAGE_OK=W}return j.currentDialog=j.currentDialog?j.currentDialog.then(W=>new Promise((X,J)=>me.alert(I,S,N).then(X,J))):me.alert(I,S,N),j.currentDialog.finally(()=>delete j.currentDialog)})()}show(pe,fe,w){var j=this;return(0,l.A)(function*(){if(!(0,V.UE)(j.platformId))return;const I=yield j.translateService.translate(pe),S=yield j.translateService.translate(fe||"DIALOG_TITLE"),N={messages:j.messages||{}},W=[];for(const X of w){const J=yield j.translateService.translate(X.message);W.push({message:J,callback:X.callback,type:X.type||"confirm"})}return j.currentDialog=j.currentDialog?j.currentDialog.then(X=>new Promise((J,Ce)=>me.show(I,W,S,N).then(J,Ce))):me.show(I,W,S,N),j.currentDialog.finally(()=>delete j.currentDialog)})()}}return(z=Y).\u0275fac=function(pe){return new(pe||z)(p.KVO(Z.c),p.KVO(le.D),p.KVO(p.Agw))},z.\u0275prov=p.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),Y})()},680:(ee,_,c)=>{"use strict";c.d(_,{G:()=>$});var l=c(7786),p=c(3726),E=c(8890),v=c(4338),U=c(4438);let $=(()=>{var B;class ne{constructor(me,V,Z){this.elementRef=me,this.renderer=V,this.subscriptions=Z,this.storefrontCheckOverflowTarget="parent"}ngOnChanges(){this.checkScrollable()}ngAfterViewInit(){this.ngOnChanges(),this.target="parent"===this.storefrontCheckOverflowTarget?this.elementRef.nativeElement.parentNode:this.elementRef.nativeElement,this.subscriptions.subscribe((0,l.h)((0,E.Ne)(),(0,p.R)(this.elementRef.nativeElement,"scroll",{passive:!0}),(0,E.S8)(this.elementRef.nativeElement)),me=>this.checkScrollable()),this.checkScrollable()}ngOnInit(){}checkScrollable(){this.target&&("horizontal"===this.storefrontCheckOverflow?this.checkScrollableHorizontal():this.checkScrollableVertical(),this.target.classList.add("initialized"))}checkScrollableVertical(){const me=this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight;this.elementRef.nativeElement.scrollHeight>this.elementRef.nativeElement.clientHeight?(this.target.classList.add("scrollable-vert"),Math.abs(me-this.elementRef.nativeElement.scrollTop)>1?this.target.classList.add("scrollable-bottom"):this.target.classList.remove("scrollable-bottom"),this.elementRef.nativeElement.scrollTop>0?this.target.classList.add("scrollable-top"):this.target.classList.remove("scrollable-top")):(this.target.classList.remove("scrollable-vert"),this.target.classList.remove("scrollable-bottom"),this.target.classList.remove("scrollable-top"))}checkScrollableHorizontal(){const me=this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth;this.elementRef.nativeElement.scrollWidth>this.elementRef.nativeElement.clientWidth?(this.target.classList.add("scrollable-horiz"),Math.abs(me-this.elementRef.nativeElement.scrollLeft)>1?this.target.classList.add("scrollable-right"):this.target.classList.remove("scrollable-right"),this.elementRef.nativeElement.scrollLeft>0?this.target.classList.add("scrollable-left"):this.target.classList.remove("scrollable-left")):(this.target.classList.remove("scrollable-horiz"),this.target.classList.remove("scrollable-left"),this.target.classList.remove("scrollable-right"))}}return(B=ne).\u0275fac=function(me){return new(me||B)(U.rXU(U.aKT),U.rXU(U.sFG),U.rXU(v.v))},B.\u0275dir=U.FsC({type:B,selectors:[["","storefrontCheckOverflow",""]],inputs:{storefrontCheckOverflow:"storefrontCheckOverflow",storefrontCheckOverflowTarget:"storefrontCheckOverflowTarget"},features:[U.Jv_([v.v]),U.OA$]}),ne})()},8301:(ee,_,c)=>{"use strict";c.d(_,{d:()=>E});var l=c(177),p=c(4438);let E=(()=>{var v;class U{}return(v=U).\u0275fac=function(B){return new(B||v)},v.\u0275mod=p.$C({type:v}),v.\u0275inj=p.G2t({imports:[l.MD]}),U})()},721:(ee,_,c)=>{"use strict";c.d(_,{u:()=>E});var l=c(177),p=c(4438);let E=(()=>{var v;class U{}return(v=U).\u0275fac=function(B){return new(B||v)},v.\u0275mod=p.$C({type:v}),v.\u0275inj=p.G2t({imports:[l.MD]}),U})()},4648:(ee,_,c)=>{"use strict";c.d(_,{G3:()=>V,h9:()=>me,tU:()=>te,w:()=>Z});var l=c(970),E=c(7374),U=c(5180),B=c(8179);function ne(I){const S=(N,W)=>{if(!W)return!1;if(!N)return!0;const X=null==I?void 0:I(N,W);if("boolean"==typeof X)return X;if(N.OR){for(const J of N.OR)if(S(J,W))return!0;return!1}return N.AND?N.AND.every(J=>S(J,W)):N.id?W.id&&pe(N.id,W.id):!!N.properties&&(N.properties.key in W.properties?pe(N.properties,W.properties[N.properties.key]):!!N.properties.negated)};return S}E.extend(U);const te=ne(function le(I,S){if(I.publication){if(I.publication.id){const W=I.publication.id.value===S.publicationId;return I.publication.id.negated?!W:W}return!0}var N;if(I.categories)return ve(I.categories,null!==(N=S.categories)&&void 0!==N?N:[]);if(I.tags)return ve(I.tags,S.tags);if(I.alias){const W=I.alias.value===S.alias;return I.alias.negated?!W:W}if(I.externalIssueId){const W=I.externalIssueId.value===S.externalIssueId;return I.externalIssueId.negated?!W:W}if(I.type){const W=I.type.value===S.type;return I.type.negated?!W:W}if(I.publicationDate)return j(I.publicationDate,S.publicationDate);if(I.purchasable)return I.purchasable.value===S.purchasable;if(I.purchased)return I.purchased.value===S.purchased;if((0,B.KR)(I.properties)){const W=I.properties;if(S.properties[W.key]){let X=!1;const J=E(S.properties[W.key],W.propertyFormat),Ce=E(W.value,W.valueFormat);if(J.isValid()&&Ce.isValid())switch(W.operation){case l.DateOperation.EQUAL:X=J.isSame(Ce,"day");break;case l.DateOperation.GREATER_THAN:X=J.isAfter(Ce,"day");break;case l.DateOperation.LESS_THAN:X=J.isBefore(Ce,"day");break;default:console.warn("unsupported date operation",I)}return W.negated?!X:X}}}),me=ne(function Q(I,S){if(I.publication){if(I.publication.id){const N=I.publication.id.value===S.publicationId;return I.publication.id.negated?!N:N}return!0}if(I.taxonomies)return console.warn("local filtering by taxonomies is not implemented!"),!0;if(I.alias){const N=I.alias.value===S.alias;return I.alias.negated?!N:N}if(I.externalId){const N=I.externalId.value===S.externalId;return I.externalId.negated?!N:N}if(I.contentType){const N=I.contentType.value===S.contentType;return I.contentType.negated?!N:N}if(I.publicationDate)return j(I.publicationDate,S.publicationDate);if(I.access)return I.access.value===S.access;if(I.purchased)return I.purchased.value===S.purchaseData.purchased;if((0,B.KR)(I.properties)){const N=I.properties;if(S.properties[N.key]){let W=!1;const X=E(S.properties[N.key],N.propertyFormat),J=E(N.value,N.valueFormat);if(X.isValid()&&J.isValid())switch(N.operation){case l.DateOperation.EQUAL:W=X.isSame(J,"day");break;case l.DateOperation.GREATER_THAN:W=X.isAfter(J,"day");break;case l.DateOperation.LESS_THAN:W=X.isBefore(J,"day");break;default:console.warn("unsupported date operation",I)}return N.negated?!W:W}}}),V=ne(function z(I,S){return I.name?pe(I.name,S.name):I.parentCategoryId?pe(I.parentCategoryId,S.parentCategoryId):I.issues?(console.warn("Unhandled CategoryFilter field for filterLocalCategory: issues"),!0):void 0}),Z=ne(function Y(I,S){return I.name?pe(I.name,S.name):I.parentId?pe(I.parentId,S.parentId):void 0});function ve(I,S){const N=I.content,W=I.size,X=I.negated;let J=!0;return N&&(J=N.operation===l.ListOperation.CONTAINS_ONLY?pe(N.value,S[0]):!!S.find(Ce=>pe(N.value,Ce))),W&&(J=function fe(I,S){let N;switch(I.operation){case l.IntOperation.GREATER_THAN:N=S>I.value;break;case l.IntOperation.LESS_THAN:N=S<I.value;break;default:N=S===I.value}return I.negated?!N:N}(W,S.length)),X?!J:J}function pe(I,S){var N;let W;if(null!==(N=I.values)&&void 0!==N&&N.length)W=I.values.includes(S);else switch(I.operation){case l.StringOperation.STARTS_WITH:W=S.startsWith(I.value);break;case l.StringOperation.CONTAINS:W=S.indexOf(I.value)>-1;break;default:W=S===I.value}return I.negated?!W:W}function j(I,S){const N=function w(I){const S=I.split("T");if(S[1])switch(S[0].split(":").length){case 3:return"hour";case 2:return"minute";default:return"second"}else switch(S[0].split("-").length){case 3:return"day";case 2:return"month";default:return"year"}}(I.value);let W;const X=E(S),J=E(I.value);switch(I.operation){case l.DateOperation.LESS_THAN:W=X.isBefore(J,N);break;case l.DateOperation.GREATER_THAN:W=X.isAfter(J,N);break;default:return X.isSame(J,N)}return I.negated?!W:W}},950:(ee,_,c)=>{"use strict";c.d(_,{CY:()=>Z,Rh:()=>ne,dV:()=>te});var l=c(4404);function E(le){return Q=>(z,Y)=>{for(const ve of Q){const pe=le(z,Y,ve);if(0!==pe)return pe}return le(z,Y)}}function v(le,Q,z){const Y=le[z.key],ve=Q[z.key];let pe=0;switch(z.valueType){case"STRING":pe=Y.toString().localeCompare(ve.toString());break;case"INT":pe=parseInt(Y,10)-parseInt(ve,10)}return z.direction===l.SortDirection.ASC?pe:-pe}function $(le,Q){return le.publicationDate===Q.publicationDate?le.id>Q.id?1:-1:Q.publicationDate-le.publicationDate}const ne=E(function B(le,Q,z){return z?z.index?(z.index.direction===l.SortDirection.ASC?1:-1)*(le.index-Q.index):z.publicationDate?(z.publicationDate.direction===l.SortDirection.ASC?1:-1)*(le.publicationDate-Q.publicationDate):z.property?v(le.properties,Q.properties,z.property):void 0:$(le,Q)});function te(le){return[...le].sort($)}const Z=E(function V(le,Q,z){return z?z.name?function U(le,Q,z){const Y=le.localeCompare(Q);return z.direction===l.SortDirection.ASC?Y:-Y}(le.name,Q.name,z.name):z.property?v(le.properties,Q.properties,z.property):void 0:function me(le,Q){return le.id>Q.id?1:-1}(le,Q)})},8471:(ee,_,c)=>{"use strict";c.d(_,{Wj:()=>we,Kh:()=>Ye,GA:()=>ye,YH:()=>be});var l=c(467),p=c(4438),E=c(4404),v=c(362),U=c(4412),$=c(2771),B=c(5964),ne=c(6697),te=c(1594),me=c(6883),V=c(5846),Z=c(6843),le=c(5706),Q=c(8091),z=c(7598),Y=c(7879),ve=c(4648),pe=c(8330),fe=c(950),w=c(5244),j=c(177),I=c(7616),S=c(5483),N=c(312);class W{constructor(Ne){this.injector=Ne,this.version={major:1,minor:0},this.router=new X(Ne)}}class X{constructor(Ne){this.injector=Ne,this.version={major:1,minor:0},this.listenersMap=new WeakMap,this.initialLoad=!0,this.bidiRouterService=this.injector.get(N.u),this.bidiRouterService.currentRoute$.subscribe(st=>{this.currentRoute=st,this.shareState()})}getCurrentRoute(){return Promise.resolve(this.currentRoute)}changeRoute(Ne){try{return this.bidiRouterService.changeUrl(Ne),Promise.resolve(!0)}catch(st){return console.error(st),Promise.reject(!1)}}addRouteChangeListener(Ne){try{if(this.initialLoad&&(window.addEventListener("popstate",R=>{this.bidiRouterService.afterPopState$.next(!0),setTimeout(()=>{this.bidiRouterService.afterPopState$.next(!1)},2e3)}),this.initialLoad=!1),this.bidiRouterService.afterPopState$.value)return;if(this.listenersMap.has(Ne))return void console.debug("Bidirectional Router listener already exists");const st=R=>{Ne(R.detail)};window.addEventListener(z.yl,st),this.listenersMap.set(Ne,st),this.shareState(),console.debug("Bidirectional Router listener added, state sent",this.currentRoute)}catch(st){console.error(st)}}removeRouteChangeListener(Ne){const st=this.listenersMap.get(Ne);st?(window.removeEventListener(z.yl,st),this.listenersMap.delete(Ne)):console.debug("Bidirectional Router listener does not exist")}shareState(){const Ne=new CustomEvent(z.yl,{detail:this.currentRoute});window.dispatchEvent(Ne)}}var J=c(7574),Ce=c(2356),ue=c(7783),ge=c(9047);const De="PURPLE_API_CACHE",Oe={hasNextPage:!1,totalCount:0,cursor:"",nodes:[]},it="PURPLE_CACHE_VERSION",Ze=pe.rE;let we=(()=>{var he;class Ne{get downloadOptions(){return this._downloadOptions}isContentLocked(R,A){return!1}constructor(R,A,L,G,K){this.platformId=R,this.router=A,this.injector=L,this.purpleEnv=G,this.transferState=K,this.PURPLE_API_CACHE={},this.PURPLE_CONTENT_CACHE={},this.PURPLE_COLLECTION_CACHE={},this.PURPLE_MENU_CACHE={},this.PURPLE_PUBLICATION_CACHE={},this.PURPLE_TAXONOMY_CACHE={},this.PURPLE_API_ERRORS={},this.DOWNLOAD_HANDLERS={},this.IMAGE_SRCS=[],this.bookmarksSubject=new U.t(null),this.bookmarks=this.bookmarksSubject.asObservable(),this.initedSubject=new $.m(1),this.inited$=this.initedSubject.asObservable(),this.repeatablePublicationProductsSubject=new U.t(null),this.repeatablePublicationProducts=this.repeatablePublicationProductsSubject.asObservable(),this.connectionStateSubject=new U.t(null),this.connectionState$=this.connectionStateSubject.asObservable(),this._downloadOptions={},this.implUsedDirectly=!1,this.addIssueStateListener=(ce,Be)=>this.purpleRef.catalog.addIssueStateListener(ce,Be),this.removeIssueStateListener=(ce,Be)=>this.purpleRef.catalog.removeIssueStateListener(ce,Be),this.share=ce=>this.purpleRef.share.share(ce)}init(R=!1,A,L,G,K,ce,Be,qe,ut,je,mt){var Nt=this;return(0,l.A)(function*(){Nt.purpleConfig=ce,A.loadConfig(Be),R?Nt.initServerPlatform(Be,ce,qe,ut,je,G,K):Nt.initAppPlatform(),window.PurpleService=Nt,Nt.initPurpleExperience(mt,L),Nt.subscribeToConfigLoaderService(A),yield Nt.initCache(),Nt.initListeners();try{var zt,fn;null===(zt=(fn=window.storefrontHooks).onPurpleServiceInit)||void 0===zt||zt.call(fn)}catch(or){console.error("Error in onPurpleServiceInit hook:",or)}Nt.initedSubject.next(!0),Nt.initedSubject.complete()})()}getPurpleConfig(){return this.purpleConfig}updateRepeatablePublicationProducts(){var R=this;return(0,l.A)(function*(){let A;const L={publicationProductFilter:{AND:[{type:{value:E.PublicationProductType.REPEATABLE_ISSUE_PURCHASE}},{hidden:{value:!1}}]},maxUnlockableContents:1};try{A=yield R.getPublicationProducts(L)}catch(G){console.warn("Failed to load repeatable publication products",G),A=[]}return R.repeatablePublicationProductsSubject.next(A),A})()}getRepeatablePublicationProductByPublicationId(R){var A=this;return(0,l.A)(function*(){return(yield A.repeatablePublicationProducts.pipe((0,B.p)(G=>!!G),(0,ne.s)(1)).toPromise()).find(G=>!!G.publications[R])})()}nextInvalidation(){let R;const A=new Promise((L,G)=>R=L);return window.addEventListener(z.YT,()=>R()),A}invalidate(){var R=this;return(0,l.A)(function*(){R.bustApiCache(),yield Promise.all([V.Vf.invalidateKnownDownloadHandlers().then(()=>R.updateDownloadHandlerStates()),R.updateRepeatablePublicationProducts()]),window.dispatchEvent(new CustomEvent(z.YT,{})),R.onMaybeSubscriptionsChanged()})()}onMaybeSubscriptionsChanged(){var R=this;return(0,l.A)(function*(){const A=yield R.getState("storefront-purchased-subs").then(Be=>Be&&JSON.parse(Be)),L=(yield R.getSubscriptions({subscriptionFilter:{purchased:{value:!0}}},!0)).nodes;var G,K;v(A,L)||(null===(G=window.storefrontHooks)||void 0===G||null===(K=G.subscriptionsChanged)||void 0===K||K.call(G,{subscriptions:L}),yield R.setState("storefront-purchased-subs",JSON.stringify(L))),R.injector.get(S.V).notifyAll()})()}addImageSrc(R){this.IMAGE_SRCS.indexOf(R)<0&&this.IMAGE_SRCS.push(R)}getAlternativeSrc(R){const A=R.split("?")[0];return this.IMAGE_SRCS.find(L=>(null==L?void 0:L.split("?")[0])===A)||A}setConfigValue(R,A){this.purpleRef.setConfigValue(R,A)}setPageData(R,A){this.purpleRef.setPageData(R,A)}setIssuePagerInfo(R){this.purpleRef.setIssuePagerInfo(R)}isIssuePager(){return!!this.issuePagerInfo}setCurrentPagerIssueId(R){if(this.issuePagerInfo){const A=this.issuePagerInfo.issues.findIndex(L=>L.id===R);-1!==A&&(this.issuePagerInfo.currentIndex=A,this.issuePagerInfo.visibleIndex=A)}}getDownloadHandler(R,A){var L=this;return(0,l.A)(function*(){const G=V.Vf.getStateKey({issue:R}),K=L.DOWNLOAD_HANDLERS[G]&&(yield L.DOWNLOAD_HANDLERS[G]);return K?(R&&K.issue&&R.id===K.issue.id&&!v(R,K.issue)&&(yield K.setIssue(R)),K):(L.DOWNLOAD_HANDLERS[G]=new Promise(ce=>{const Be=L.downloadOptions,qe=new V.Vf({issue:R,autoUpdate:!!Be.autoUpdateBehavior,issueSourceProperty:Be.issueSourceProperty,issuePageProperty:Be.issuePageProperty,issueSequenceProperty:Be.issueSequenceProperty,issueCoverFilter:Be.issueCoverFilter});qe.init(!0,!1).then(()=>{qe.publication=L.PURPLE_PUBLICATION_CACHE[qe.issue.publicationId];const ut={...qe.getAggregatedIssueState(),error:null},je=new U.t(ut);qe.addUpdateListener(mt=>je.next(mt)),qe.updates$=je,A&&qe.updates$.pipe((0,B.p)(mt=>!(!mt||!mt.error))).subscribe(mt=>{const Nt=(0,Q.$C)(mt.error,qe.getIssues().find(zt=>zt.id===mt.issueId));A.alert({text:"ERROR_DOWNLOAD",args:Nt},"DIALOG_ERROR")}),ce(qe)})}),L.DOWNLOAD_HANDLERS[G])})()}destroyDownloadHandler(R){var A=this;return(0,l.A)(function*(){for(const L in A.DOWNLOAD_HANDLERS)if((yield A.DOWNLOAD_HANDLERS[L])===R){R.updates$.observers.length||(R.destroy(),delete A.DOWNLOAD_HANDLERS[R.getOwnStateKey()]);break}})()}updateDownloadHandlers(){var R=this;return(0,l.A)(function*(){return Promise.all(Object.values(R.DOWNLOAD_HANDLERS).map(function(){var A=(0,l.A)(function*(L){const G=yield L;if(G.downloadStarted&&G.autoUpdate)try{yield G.update()}catch(K){console.warn("error updating download handler",K)}else G.updateState(!1,!0)});return function(L){return A.apply(this,arguments)}}()))})()}updateDownloadHandlerStates(){var R=this;return(0,l.A)(function*(){return Promise.all(Object.values(R.DOWNLOAD_HANDLERS).map(A=>A.then(L=>L.updateState(!1,!0))))})()}loginAccount(R){var A=this;return(0,l.A)(function*(){var L;return null===(L=A.purpleRef.account)||void 0===L?void 0:L.login({token:R})})()}logoutAccount(){var R;return null===(R=this.purpleRef.account)||void 0===R?void 0:R.logout()}assignLocalPurchases(R){var A;return null===(A=this.purpleRef.account)||void 0===A?void 0:A.assignLocalPurchases({mode:R})}getAccountUserData(){var R=this;return(0,l.A)(function*(){var A;return null===(A=R.purpleRef.account)||void 0===A?void 0:A.getUserData()})()}overrideAppPerformActionUrlApi(R){this.purpleRef.app.performActionUrl=function(){var A=(0,l.A)(function*({actionUrl:L}){if(typeof WP<"u"&&WP.instance){const G=WP.instance.getCurrentPlayer();if(G.ctx.actionHandler.processAction({open:{URL:L}},null,G))return}R.openUrl(L)});return function(L){return A.apply(this,arguments)}}()}openActionUrl(R,A,L){const G="purple-action-url-frame";if(R.startsWith("purple://")&&this.purpleRef.app.performActionUrl&&!A)this.purpleRef.app.performActionUrl({actionUrl:R});else if(A){let K=document.getElementById(G);K||(K=document.createElement("iframe"),K.style.opacity="0",K.id=G,document.body.appendChild(K)),K.src=R}else L?window.open(R,L):window.location.href=R}performAuthentication(R,A){var L=this;return(0,l.A)(function*(){return L.purpleRef.app.performAuthentication({url:R,callbackParamName:A||"callbackurl"})})()}addConnectionStateListener(R){this.purpleRef.app.addConnectionStateListener(R)}removeConnectionStateListener(R){this.purpleRef.app.removeConnectionStateListener(R)}addLifecycleListener(R){this.purpleRef.app.addLifecycleListener(R)}removeLifecycleListener(R){this.purpleRef.app.removeLifecycleListener(R)}getDisplayMode(){var R=this;return(0,l.A)(function*(){return(yield R.purpleRef.appBrowser.getDisplayConfig()).displayMode})()}isTitleBarEnabled(){var R=this;return(0,l.A)(function*(){return(yield R.purpleRef.appBrowser.getDisplayConfig()).titleBarEnabled})()}overrideBookmarkApis(R){var A=this;this.purpleRef.bookmark.createBookmark=function(){var L=(0,l.A)(function*(G){const K={...G,id:(0,me.A)(),contentType:E.CatalogContentType.ISSUE,createdAt:(new Date).getTime(),contentId:G.issueId,issueId:G.issueId,issueType:void 0,sharingEnabled:G.sharingEnabled,customData:{...G.customData}},ce=(yield A.purpleRef.bookmark.getBookmarks()).bookmarks;return ce.push(K),yield A.setState("bookmarks-".concat(R.appId),JSON.stringify(ce)),{bookmark:K}});return function(G){return L.apply(this,arguments)}}(),this.purpleRef.bookmark.getBookmarks=(0,l.A)(function*(){return{bookmarks:JSON.parse(yield A.getState("bookmarks-".concat(R.appId)))||[]}}),this.purpleRef.bookmark.deleteBookmark=function(){var L=(0,l.A)(function*({id:G}){const K=(yield A.purpleRef.bookmark.getBookmarks()).bookmarks.filter(ce=>ce.id!==G);yield A.setState("bookmarks-".concat(R.appId),JSON.stringify(K))});return function(G){return L.apply(this,arguments)}}()}getBookmarks(){var R=this;return(0,l.A)(function*(){return R.bookmarks.pipe((0,ne.s)(1)).toPromise()})()}updateBookmarks(){var R=this;return(0,l.A)(function*(){const A=(yield R.purpleRef.bookmark.getBookmarks()).bookmarks;return R.bookmarksSubject.next(A),A})()}createBookmark(R){var A=this;return(0,l.A)(function*(){const L=yield A.purpleRef.bookmark.createBookmark(R);return yield A.updateBookmarks(),L})()}deleteBookmark(R){var A=this;return(0,l.A)(function*(){yield A.purpleRef.bookmark.deleteBookmark(R),yield A.updateBookmarks()})()}deleteBookmarks(R){var A=this;return(0,l.A)(function*(){for(const L of R)yield A.purpleRef.bookmark.deleteBookmark({id:L});yield A.updateBookmarks()})()}overrideCatalogApis(){this.purpleRef.catalog.getSubscriptions=function(){var R=(0,l.A)(function*(A){return Oe});return function(A){return R.apply(this,arguments)}}(),this.purpleRef.catalog.getPublicationProducts=function(){var R=(0,l.A)(function*(A){return Oe});return function(A){return R.apply(this,arguments)}}()}getPublications(R,A=!1){var L=this;return(0,l.A)(function*(){return L.withApiCache("getPublications",L.purpleRef.catalog.getPublications,R,A).then(G=>(G.nodes.forEach(K=>{L.PURPLE_PUBLICATION_CACHE[K.id]=K,K.issues&&K.issues.nodes.forEach(ce=>L.PURPLE_CONTENT_CACHE[ce.id]=ce)}),G))})()}getIssues(R,A=!1,L=!1){var G=this;return(0,l.A)(function*(){const K=(0,w.oQ)(R);return L&&(K.fetchOptions={includeResources:!0}),G.withApiCache("getContents",G.purpleRef.catalog.getContents,K,A).then(ce=>(ce.nodes.forEach(Be=>G.PURPLE_CONTENT_CACHE[Be.id]=Be),ce))})()}getLocalIssues(R,A=!1,L){var G=this;return(0,l.A)(function*(){var K;const ce=(yield G.purpleRef.catalog.getLocalIssues()).issues.filter(qe=>L?qe.state.installState===L:qe.state.installState!==E.CatalogIssueInstallState.NOT_INSTALLED);let Be=[];if(!ce.length)return{issues:Be};try{if(A){for(const qe of ce){let ut={};try{ut=yield G.getIssueFromCache(qe.id)}catch{}Be.push({...Y.G9,...qe,...ut})}R.issueFilter&&(Be=Be.filter(qe=>(0,ve.tU)(R.issueFilter,qe)))}else{const qe={...R,issueFilter:(0,Y.Ty)(ce.map(ut=>ut.id),R.issueFilter)};Be=(yield G.getIssues(qe,!0)).nodes}}catch{Be=(yield Promise.all(ce.map(function(){var je=(0,l.A)(function*(mt,Nt){let zt=Y.G9;try{zt={...zt,...yield G.getIssue(mt.id).catch(()=>null)}}catch(or){console.error(or)}const fn={...zt,...mt};return G.PURPLE_CONTENT_CACHE[mt.id]||(G.PURPLE_CONTENT_CACHE[mt.id]=fn),fn});return function(mt,Nt){return je.apply(this,arguments)}}()))).filter(je=>(0,ve.tU)(R.issueFilter,je))}return Be=Be.sort((0,fe.Rh)(null!==(K=R.sort)&&void 0!==K?K:[])),Be.forEach(qe=>{const ut=ce.find(je=>je.id===qe.id&&je.version===qe.version);ut&&(qe.state=ut.state)}),{issues:Be}})()}getCatalogContents(R,A=!1,L=!1){var G=this;return(0,l.A)(function*(){return L&&(R.fetchOptions={...R.fetchOptions,includeResources:!0}),G.withApiCache("getContents",G.purpleRef.catalog.getContents||G.purpleRef.catalog.getIssues,R,A).then(K=>(K.nodes.forEach(ce=>G.PURPLE_CONTENT_CACHE[ce.id]=ce),K))})()}getCollections(R,A=!1){var L=this;return(0,l.A)(function*(){return L.withApiCache("getCollections",L.purpleRef.catalog.getCollections,R,A).then(G=>(G.nodes.forEach(K=>L.PURPLE_COLLECTION_CACHE[K.id]=K),G))})()}getCategories(R,A=!1){var L=this;return(0,l.A)(function*(){const G=(0,w.s7)(R);return console.log("params",R),console.log("mappedParams",G),L.withApiCache("getCategories",L.purpleRef.catalog.getCategories,R,A).then(K=>(K.nodes.forEach(ce=>L.PURPLE_TAXONOMY_CACHE[ce.id]=ce),K))})()}getTaxonomies(R,A=!1){var L=this;return(0,l.A)(function*(){return L.withApiCache("getTaxonomies",L.purpleRef.catalog.getTaxonomies,R,A).then(G=>(G.nodes.forEach(K=>L.PURPLE_TAXONOMY_CACHE[L.getTaxonomyCacheKey(K,R)]=K),G))})()}getMenus(R,A=!1){var L=this;return(0,l.A)(function*(){return yield L.withApiCache("getMenus",L.purpleRef.catalog.getMenus,R,A)})()}getSubscriptions(R,A=!1){var L=this;return(0,l.A)(function*(){return L.withApiCache("getSubscriptions",L.purpleRef.catalog.getSubscriptions,R,A)})()}getCatalogAppSettings(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.catalog.getAppSettings(R)})()}search(R,A=!1){var L=this;return(0,l.A)(function*(){return L.withApiCache("search",L.purpleRef.catalog.search,R,A).then(G=>(G.nodes.forEach(K=>{const ce=(0,le.tr)(K);L.PURPLE_CONTENT_CACHE[ce.id]=ce}),G))})()}getIssueStates(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.catalog.getIssueStates(R)})()}addInvalidationListener(R){this.isCatalogAPIAvailable()&&this.purpleRef.catalog.addInvalidationListener(R)}removeInvalidationListener(R){this.purpleRef.catalog.removeInvalidationListener(R)}getPublicationProducts(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.catalog.getPublicationProducts(R).then(L=>L.nodes)})()}getCatalogMetadata(){var R=this;return(0,l.A)(function*(){return R.purpleRef.catalog.getMetadata()})()}getProducts(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.catalog.getProducts({productId:R})})()}getRedirects(R){var A=this;return(0,l.A)(function*(){const L=(0,p.zw6)("getRedirects_"+ue(R)),G=A.transferState.hasKey(L);if(L&&G){const K=A.transferState.get(L,null);return A.transferState.remove(L),K}return A.withApiCache("getRedirects",A.purpleRef.catalog.getRedirects,R).then(K=>(A.transferState.onSerialize(L,()=>K),K))})()}lookupPathSegments(R){var A=this;return(0,l.A)(function*(){const L=(0,p.zw6)("lookupPathSegments_"+ue({pathSegments:R})),G=A.transferState.hasKey(L);if(L&&G){const K=A.transferState.get(L,null);return A.transferState.remove(L),K}return A.withApiCache("lookupPathSegments",A.purpleRef.catalog.lookupPathSegments,{pathSegments:R}).then(K=>(A.transferState.onSerialize(L,()=>K),K))})()}isCatalogAPIAvailable(){return!!this.purpleRef.catalog}overrideConsentApis(){const R=this.injector.get(J.e);this.purpleRef.consent.getConsent=function(){var A=(0,l.A)(function*(L){return R.getConsent(L)});return function(L){return A.apply(this,arguments)}}(),this.purpleRef.consent.grantConsent=function(){var A=(0,l.A)(function*(L){R.grantConsent(L)});return function(L){return A.apply(this,arguments)}}(),this.purpleRef.consent.showPrivacyManager=()=>R.showPrivacyManager()}overrideContentOpenApi(R,A){var L=this;this.purpleRef.content.open=function(){var G=(0,l.A)(function*(K){var ce,Be;let qe=!1;const ut={OR:K.issueIds.map(yn=>({id:{value:yn}}))},je=(yield L.getIssues({issueFilter:ut})).nodes||[];if(!je.length)throw{code:"NO_ISSUES_FOUND"};const mt=new Map;if(K.issueIds.forEach(yn=>{const Lr=je.filter(Wt=>Wt.id===yn);if(Lr.length>0){const Wt=Lr[0];Wt.access!=E.Access.FREE&&!Wt.purchaseData.purchased&&(qe=!0),mt.set(yn,Wt)}}),0===mt.size)throw{code:"PAYMENT_REQUIRED"};const Nt=[];mt.forEach((yn,Lr)=>{Nt.push({id:Lr,name:yn.name,publication:yn.publication})});const zt=Math.max(Nt.findIndex(yn=>{var Lr;return yn.id===(null===(Lr=K.initialIssue)||void 0===Lr?void 0:Lr.id)}),0);L.issuePagerInfo={visibleIndex:zt,currentIndex:zt,issues:Nt,displayConfig:K.config},L.setIssuePagerInfo(L.issuePagerInfo);const fn=Nt[zt].id,or=null===(ce=K.initialIssue)||void 0===ce?void 0:ce.initialPage,Bn={};or&&(or.id?Bn.actionUrl="purple://kiosk/issue/current/page/".concat(or.id,"/open"):or.index?Bn.actionUrl="purple://kiosk/issue/current/page/index/".concat(or.index,"/open"):or.alias&&(Bn.actionUrl="purple://kiosk/issue/current/page/alias/".concat(or.alias,"/open"))),null!==(Be=K.config)&&void 0!==Be&&Be.titleBar||(Bn.titleBar="false"),qe&&(Bn.customerPreview=qe);let Cn=[R.brand,"presenter",fn];R.useCustomerDomain&&(Cn=["presenter",fn]),A.navigate(Cn,{queryParams:Bn,queryParamsHandling:"merge"})});return function(K){return G.apply(this,arguments)}}()}openContent(R){var A=this;return(0,l.A)(function*(){return new Promise((L,G)=>{A.purpleRef.content.open(R).then(K=>L(K),K=>G(K))})})()}overrideCloseViewJsApi(){this.purpleRef.closeView=()=>{PP.InternalBrowser.stop()}}closeView(){this.purpleRef.closeView()}getEntitlementUserData(){var R=this;return(0,l.A)(function*(){return R.purpleRef.entitlement.getUserData()})()}login(R,A,L){var G=this;return(0,l.A)(function*(){const K={};if(R&&(K.username=R,K.password=A),G.purpleEnv.isUniversal){let ce=(null==L?void 0:L.redirectUrl)||JSON.parse(sessionStorage.getItem(E.LAST_VISITED_PATH)).lastVisitedPath;ce||(ce=G.injector.get(S.V).getHomeUrl()),K.state={redirectUrl:ce}}return G.purpleRef.entitlement.login(K)})()}logout(R){var A=this;return(0,l.A)(function*(){const L={};if(A.purpleEnv.isUniversal){let G=null==R?void 0:R.redirectUrl;G||(G=A.injector.get(S.V).getHomeUrl()),L.state={redirectUrl:G}}return A.purpleRef.entitlement.logout(L)})()}checkForOauthEntitlement(){var R=this;return(0,l.A)(function*(){return yield R.purpleRef.entitlement.checkForOauthEntitlement()})()}loginWithToken(R){var A=this;return(0,l.A)(function*(){yield A.purpleRef.entitlement.verifyAccessToken({accessToken:R})})()}getMetadata(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.metadata.getMetadata({keys:Object.values(E.METADATA_KEY)})})()}overrideStateApi(){this.purpleRef.state.version={major:2,minor:0}}getState(R){var A=this;return(0,l.A)(function*(){return(yield A.purpleRef.state.getState({key:R})).value})()}setState(R,A){var L=this;return(0,l.A)(function*(){yield L.purpleRef.state.setState({key:R,value:A})})()}purchase(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.store.purchase(R)})()}subscribe(R,A,L){var G=this;return(0,l.A)(function*(){let K;if(A){const Be=(yield G.getSubscriptions({})).nodes.find(qe=>qe.purchased);K=Be&&{oldProductId:Be.productId,prorationMode:A}}return G.purpleRef.store.subscribe({productId:R,replaceProductParams:K,offerId:L})})()}restorePurchases(){var R=this;return(0,l.A)(function*(){return R.purpleRef.store.restorePurchases()})()}getPrice(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.store.getPrices({productIds:[R]}).then(L=>L.priceInfos[0])})()}addSubscriptionCode(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.store.addSubscriptionCode({code:R})})()}removeSubscriptionCode(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.store.removeSubscriptionCode({code:R})})()}getSubscriptionCodes(){var R=this;return(0,l.A)(function*(){return(yield R.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}getPrices(R){var A=this;return(0,l.A)(function*(){return A.purpleRef.store.getPrices({productIds:R})})()}overrideTrackingApis(R){var A=this;return(0,l.A)(function*(){A.overrideLegacyTrackingApis(A.purpleRef,R),A.purpleRef.tracking.setUserAttribute=function(){var L=(0,l.A)(function*(G){R.setUserAttribute(G)});return function(G){return L.apply(this,arguments)}}(),A.purpleRef.tracking.debug=function(){var L=(0,l.A)(function*(G){R.toggleLogging(G.logging)});return function(G){return L.apply(this,arguments)}}()})()}overrideLegacyTrackingApis(R,A){R.tracking.trackView=function(){var L=(0,l.A)(function*(G,K){"string"==typeof G?G={key:G,optionalParams:K}:K=G.optionalParams,A.sendView(G.key,K)});return function(G,K){return L.apply(this,arguments)}}(),R.tracking.trackAction=function(){var L=(0,l.A)(function*(G,K){"string"==typeof G?G={key:G,optionalParams:K}:K=G.optionalParams,A.sendEvent(G.key,K)});return function(G,K){return L.apply(this,arguments)}}(),R.tracking.trackPurchase=function(){var L=(0,l.A)(function*(G,K){"string"==typeof G?G={key:G,optionalParams:K}:K=G.optionalParams,A.sendPurchase(G.key,K)});return function(G,K){return L.apply(this,arguments)}}()}trackAction(R,A){var L=this;return(0,l.A)(function*(){const G={key:(0,Y.Dh)(R),optionalParams:(0,Y.P8)(A||{})};return L.purpleRef.tracking.trackAction(G)})()}trackView(R,A){var L=this;return(0,l.A)(function*(){const G={key:(0,Y.Dh)(R),optionalParams:(0,Y.P8)(A||{})};return L.purpleRef.tracking.trackView(G)})()}trackPurchase(R){var A=this;return(0,l.A)(function*(){return R.key=(0,Y.Dh)(R.key),R.optionalParams&&(R.optionalParams=(0,Y.P8)(R.optionalParams)),A.purpleRef.tracking.trackPurchase(R)})()}setUserAttribute(R){var A=this;return(0,l.A)(function*(){return R.key=(0,Y.Dh)(R.key),A.purpleRef.tracking.setUserAttribute(R)})()}initCache(){var R=this;return(0,l.A)(function*(){let A="";(0,j.UE)(R.platformId)&&(A=yield R.getState(De));const[L]=yield Promise.all([R.getState(it),R.updateBookmarks(),R.updateRepeatablePublicationProducts()]);Ze===L?(R.PURPLE_API_CACHE=R.deserializeCache(A)||{},R.fillObjectCaches()):(console.debug("Cache version: ".concat(L,", Experience version: ").concat(Ze,": ignoring cache")),R.setState(it,Ze))})()}deserializeCache(R){if(R){const A=JSON.parse(R);if(this.doCacheEviction(A,168),A&&"object"==typeof A)return Object.keys(A).filter(L=>A[L].value).reduce((L,G)=>{const K=Promise.resolve(A[G].value);return K.timestamp=A[G].timestamp,K.value=A[G].value,{...L,[G]:K}},{})}}doCacheEviction(R,A){let L=0;const G=Date.now()-1e3*A*60*60;for(const[K,ce]of Object.entries(R))(null==ce?void 0:ce.timestamp)<G&&(delete R[K],L++);L>0&&console.debug("Removed ".concat(L," obsolete cache entries (age > ").concat(A,"h)"))}fillObjectCaches(){Object.keys(this.PURPLE_API_CACHE).forEach(R=>{const A=R.indexOf(":"),L=R.slice(0,A),G=R.slice(A+1),K=this.PURPLE_API_CACHE[R];switch(L){case"getPublications":K.value.nodes.forEach(ce=>this.PURPLE_PUBLICATION_CACHE[ce.id]=ce);break;case"getCategories":K.value.nodes.forEach(ce=>this.PURPLE_TAXONOMY_CACHE[ce.id]=ce);break;case"getContents":K.value.nodes.forEach(ce=>this.PURPLE_CONTENT_CACHE[ce.id]=ce);break;case"getCollections":K.value.nodes.forEach(ce=>this.PURPLE_COLLECTION_CACHE[ce.id]=ce);break;case"getTaxonomies":K.value.nodes.forEach(ce=>this.PURPLE_TAXONOMY_CACHE[this.getTaxonomyCacheKey(ce,JSON.parse(G))]=ce)}})}getApiCache(R,A){const L="".concat(R,":").concat(JSON.stringify(A));if(this.PURPLE_API_CACHE[L])return this.PURPLE_API_CACHE[L];throw new Error("No cache entry")}withApiCache(R,A,L,G=!1){const K="".concat(R,":").concat(JSON.stringify(L));let ce;return this.implUsedDirectly&&(ce=Zone.current.scheduleMacroTask(K,()=>{},{},()=>{},()=>{})),(G||!this.PURPLE_API_CACHE[K])&&this.createCacheEntry(K,A(L)),this.PURPLE_API_CACHE[K].then(Be=>(ce&&ce.invoke(),Be)).catch(Be=>{throw ce.invoke(),Be})}createCacheEntry(R,A){const L=this.PURPLE_API_CACHE[R];this.PURPLE_API_CACHE[R]=function Fe(he,Ne){return isFinite(Ne)||(Ne=Date.now()),he instanceof Promise||(he=Promise.resolve(he)),he.timestamp=Ne,he}(A,Date.now());const G=this.PURPLE_API_CACHE[R];G.then(K=>{G.value=K,delete this.PURPLE_API_ERRORS[R],this.serializeCache()},K=>{delete this.PURPLE_API_CACHE[R],L&&(this.PURPLE_API_CACHE[R]=L),this.serializeCache(),this.PURPLE_API_ERRORS[R]=G})}serializeCache(){if(this.PURPLE_API_CACHE){let R="",A=0;const L=[],G=Object.keys(this.PURPLE_API_CACHE).filter(K=>this.PURPLE_API_CACHE[K].value).reduce((K,ce)=>(K[ce]={timestamp:this.PURPLE_API_CACHE[ce].timestamp,value:this.PURPLE_API_CACHE[ce].value},L.push([ce,K[ce].timestamp]),K),{});for(;R=JSON.stringify(G),!(2*R.length<=5e6)&&(0==A&&L.sort((K,ce)=>ce[1]-K[1]),L.length);)if(delete G[L.pop()[0]],A++,A>10){console.warn("Tried to shrink PURPLE_API_CACHE ".concat(A," times, still has size ").concat(2*R.length," > ").concat(5e6));break}(0,j.UE)(this.platformId)&&this.setState(De,R)}}clearCache(){this.setState(De,"")}bustApiCache(){this.PURPLE_API_CACHE={},this.PURPLE_CONTENT_CACHE={},this.PURPLE_PUBLICATION_CACHE={},this.clearCache()}getTaxonomyCacheKey(R,A){var L;return[R.type,R.id,(null==A||null===(L=A.fetchOptions)||void 0===L?void 0:L.seoMetadata)&&"seo"].filter(G=>!!G).join("-")}getPublicationsFromCache(R){return this.getApiCache("getPublications",R)}getIssuesFromCache(R){const A=(0,w.oQ)(R);return this.getApiCache("getContents",A)}getCatalogContentsFromCache(R){return this.getApiCache("getContents",R)}getCollectionsFromCache(R){return this.getApiCache("getCollections",R)}getCategoriesFromCache(R){return this.getApiCache("getCategories",R)}getTaxonomiesFromCache(R){return this.getApiCache("getTaxonomies",R)}getCatalogMenusFromCache(R){return this.getApiCache("getMenus",R)}searchFromCache(R){return this.getApiCache("search",R)}getIssue(R,A=!1,L){var G=this;return(0,l.A)(function*(){try{if(G.PURPLE_CONTENT_CACHE[R]&&!A)return G.PURPLE_CONTENT_CACHE[R];{const K={first:1};return R&&(K.issueFilter={id:{value:R}}),(yield G.getIssues(K,A)).nodes[0]}}catch(K){if(G.PURPLE_CONTENT_CACHE[R])return G.PURPLE_CONTENT_CACHE[R];if(L){const ce={...Y.G9,...L};return G.PURPLE_CONTENT_CACHE[R]=ce,ce}throw K}})()}getIssueFromCache(R){if(this.PURPLE_CONTENT_CACHE[R])return this.PURPLE_CONTENT_CACHE[R];{const A=this.getIssuesFromCache({first:1,issueFilter:{id:{value:R}}});return{...A.then(L=>L.nodes[0]),timestamp:A.timestamp}}}getCatalogContent(R,A=!1,L){var G=this;return(0,l.A)(function*(){try{if(G.PURPLE_CONTENT_CACHE[R]&&!A&&(0,Y.b1)(G.PURPLE_CONTENT_CACHE[R],L))return G.PURPLE_CONTENT_CACHE[R];{const K={first:1,fetchOptions:L,contentFilter:{id:{value:R}}},ce=(yield G.getCatalogContents(K,A)).nodes[0];if(!ce)throw new Error("CatalogContent not found");return ce}}catch(K){if(G.PURPLE_CONTENT_CACHE[R])return G.PURPLE_CONTENT_CACHE[R];throw K}})()}getCatalogContentFromCache(R){if(this.PURPLE_CONTENT_CACHE[R])return this.PURPLE_CONTENT_CACHE[R];{const A=this.getCatalogContentsFromCache({first:1,contentFilter:{id:{value:R}}});return{...A.then(L=>L.nodes[0]),timestamp:A.timestamp}}}getCollection(R,A=!1,L){var G=this;return(0,l.A)(function*(){try{if(G.PURPLE_COLLECTION_CACHE[R]&&!A)return G.PURPLE_COLLECTION_CACHE[R];{const K={first:1};R&&(K.collectionFilter={id:{value:R}}),L&&(K.elementsParams=L);const ce=(yield G.getCollections(K,A)).nodes[0];if(!ce)throw new Error("Collection ".concat(R," not found"));return ce}}catch(K){if(G.PURPLE_COLLECTION_CACHE[R])return G.PURPLE_COLLECTION_CACHE[R];throw K}})()}getCollectionFromCache(R){if(this.PURPLE_COLLECTION_CACHE[R])return this.PURPLE_COLLECTION_CACHE[R];{const A=this.getCollectionsFromCache({first:1,collectionFilter:{id:{value:R}}});return{...A.then(L=>L.nodes[0]),timestamp:A.timestamp}}}getMenu(R,A=!1,L){var G=this;return(0,l.A)(function*(){try{if(G.PURPLE_MENU_CACHE[R]&&!A)return G.PURPLE_MENU_CACHE[R];{const K={first:1,...L};R&&(K.contentFilter={id:{value:R}});const ce=(yield G.getMenus(K,A)).nodes[0];if(!ce)throw new Error("CatalogMenu not found");return ce}}catch(K){if(G.PURPLE_MENU_CACHE[R])return G.PURPLE_MENU_CACHE[R];throw K}})()}getCatalogMenuFromCache(R){if(this.PURPLE_MENU_CACHE[R])return this.PURPLE_MENU_CACHE[R];{const A=this.getCatalogMenusFromCache({first:1,issueFilter:{id:{value:R}}});return{...A.then(L=>L.nodes[0]),timestamp:A.timestamp}}}getPublication(R,A=!1){var L=this;return(0,l.A)(function*(){if(L.PURPLE_PUBLICATION_CACHE[R]&&!A)return L.PURPLE_PUBLICATION_CACHE[R];{const G={first:1};return G.publicationFilter={id:{value:R}},(yield L.getPublications(G,A)).nodes[0]}})()}getPublicationFromCache(R){if(this.PURPLE_PUBLICATION_CACHE[R])return this.PURPLE_PUBLICATION_CACHE[R];{const A=this.getPublicationsFromCache({first:1,publicationFilter:{id:{value:R}}});return{...A.then(L=>L.nodes[0]),timestamp:A.timestamp}}}getCategory(R,A=!1){var L=this;return(0,l.A)(function*(){if(L.PURPLE_TAXONOMY_CACHE[R])return L.PURPLE_TAXONOMY_CACHE[R];{const G={first:1};return R&&(G.categoryFilter={id:{value:R}}),(yield L.getCategories(G,A)).nodes[0]}})()}getTaxonomy(R,A,L=!1,G){var K=this;return(0,l.A)(function*(){const ce=K.getTaxonomyCacheKey({id:R,type:A},{fetchOptions:G});if(K.PURPLE_TAXONOMY_CACHE[ce])return K.PURPLE_TAXONOMY_CACHE[ce];{const Be={id:{value:R}},ut={first:1,fetchOptions:G,taxonomyFilter:A?{AND:[Be,{type:{value:A}}]}:Be};return(yield K.getTaxonomies(ut,L)).nodes[0]}})()}initServerPlatform(R,A,L,G,K,ce,Be){Be.loadConfig(),this.initPurpleRef(ce,A),this.implUsedDirectly=!0,this.overrideJsApisForServer(R,A,L,G,K),window.purple=this.purpleRef}initPurpleRef(R,A){const L=Object.values(I.d);this.purpleRef=new Ce.Fw(A,(G,K)=>{this.updateEntitlementStorage(L,"entitlementUserData",K,G),this.updateSubscriptionCodeStorage(K,G),R.updateMetadata()})}updateEntitlementStorage(R,A,L,G){if(R.includes(L)){const K=JSON.parse(localStorage.getItem(A))||{};K[L]=G[L],localStorage.setItem(A,JSON.stringify(K))}}updateSubscriptionCodeStorage(R,A){"subscriptionCodes"===R&&localStorage.setItem("subscriptionCodes",JSON.stringify(A.subscriptionCodes||[]))}overrideJsApisForServer(R,A,L,G,K){this.overrideAppPerformActionUrlApi(G),this.overrideBookmarkApis(A),this.overrideCatalogApis(),this.overrideConsentApis(),this.overrideContentOpenApi(R,L),this.overrideTrackingApis(K),this.overrideCloseViewJsApi(),this.overrideStateApi()}initAppPlatform(){this.purpleRef=window.purple}initPurpleExperience(R,A){this.purpleRef.experience=new W(this.injector),this.purpleRef.experience.global=A.getGlobalData(),this.purpleRef.experience.appWebConfig=R}subscribeToConfigLoaderService(R){R.getConfig().pipe((0,te.$)()).subscribe(A=>{this._downloadOptions=A[Z.O.DOWNLOAD_OPTIONS]||{},window.isIssueLocked&&(this.isContentLocked=window.isIssueLocked)})}initListeners(){this.addInvalidationListener(()=>this.invalidate());let R=!0;this.addLifecycleListener(A=>{R||window.dispatchEvent(new CustomEvent(z.aU,{detail:A})),R=!1}),this.addConnectionStateListener(A=>{this.connectionStateSubject.next(A)})}}return(he=Ne).\u0275fac=function(R){return new(R||he)(p.KVO(p.Agw),p.KVO(ge.Ix),p.KVO(p.zZn),p.KVO(Y.r6),p.KVO(p.pJN))},he.\u0275prov=p.jDH({token:he,factory:he.\u0275fac,providedIn:"root"}),Ne})();function ye(he,Ne){return ze.apply(this,arguments)}function ze(){return(ze=(0,l.A)(function*(he,Ne){return he&&he.access===E.Access.PURCHASABLE&&!he.purchaseData.purchased||Ne.isContentLocked(he,Ne)})).apply(this,arguments)}function Ye(he,Ne){const st=Ne.PURPLE_CONTENT_CACHE[he];return st&&st.previewIssue}function be(he,Ne){return Ne&&he.updateAvailable&&he.installState===E.CatalogIssueInstallState.COMPLETE}},8075:(ee,_,c)=>{"use strict";function l(B){return function p(B){return B.length&&B.join("/")||"/"}(B.url)}function E(B="",ne=!1){if(ne){const te=B.match(/modal:popup\/([^),^/]*)/),me=te&&te[1];if(me)return me}return(B=B.split("?")[0].split("(")[0]).length<2||!B.startsWith("/")?B:B.substring(1)}function v(B,ne){var te;let me={};const V=B.getCurrentNavigation();return null!=V&&null!==(te=V.extras)&&void 0!==te&&te.queryParams&&(me={...V.extras.queryParams}),me={...me,...ne},B.navigate([],{queryParams:me,queryParamsHandling:"merge",replaceUrl:!0})}function U(B,ne){const te=$();return B.navigate(ne,{queryParams:te,queryParamsHandling:"merge",replaceUrl:!0})}function $(B){var ne;return null!==(ne=B)&&void 0!==ne||(B=window.location.search),Object.fromEntries(new URLSearchParams(B))}c.d(_,{CV:()=>v,IN:()=>$,ON:()=>E,UB:()=>U,Yn:()=>l})},2039:(ee,_,c)=>{"use strict";c.d(_,{$:()=>E});var l=c(4438),p=c(345);let E=(()=>{var v;class U{constructor(B){this.sanitizer=B}transform(B){return this.sanitizer.bypassSecurityTrustHtml(B)}}return(v=U).\u0275fac=function(B){return new(B||v)(l.rXU(p.up,16))},v.\u0275pipe=l.EJ8({name:"safeHtml",type:v,pure:!0}),U})()},4871:(ee,_,c)=>{"use strict";c.d(_,{E:()=>v});var l=c(177),p=c(2039),E=c(4438);let v=(()=>{var U;class ${}return(U=$).\u0275fac=function(ne){return new(ne||U)},U.\u0275mod=E.$C({type:U}),U.\u0275inj=E.G2t({providers:[p.$],imports:[l.MD]}),$})()},3377:(ee,_,c)=>{"use strict";c.d(_,{p:()=>w});var l=c(7370),p=c(4404),E=c(4501),v=c(4438),U=c(9047),$=c(5483),B=c(8471),ne=c(9668),te=c(496),me=c(1025),V=c(9118),Z=c(5204),le=c(467),Q=c(3785),z=c(4088),Y=c(873),ve=c(20);let pe=(()=>{var j;class I{constructor(N,W){this.kioskConfigService=N,this.dialogService=W,this.inited=!1,this.data=JSON.parse(JSON.stringify(Y.$I))}init(){var N=this;return(0,le.A)(function*(){return yield Promise.all([c.e("node_modules_clientjs_dist_client_base_min_js").then(c.t.bind(c,9781,23)),c.e("node_modules_mustache_mustache_js").then(c.t.bind(c,386,23))]),N.init$||(N.init$=new Promise(W=>{const X=N.kioskConfigService.getConfig().subscribe(J=>{if(J.kioskConfig.useFeedbackMail){let Ce=0;N.kioskConfigService.getResource("email_feedback_config.json",!0).catch(()=>(J.kioskConfig.preview&&N.dialogService.alert((0,Q.sprintf)(J.kioskConfig.messages.dialog_file_invalid_message_web,"email_feedback_config.json")),Y.$I.config)).then(ue=>{N.data.config=ue,Ce++,3===Ce&&(N.inited=!0,W({}))},()=>{Ce++,3===Ce&&(N.inited=!0,W({}))}),N.kioskConfigService.getResource("email_feedback_subject.mustache",!1).then(ue=>{N.data.subject=ue,Ce++,3===Ce&&(N.inited=!0,W({}))},()=>{Ce++,3===Ce&&(N.inited=!0,W({}))}),N.kioskConfigService.getResource("email_feedback_body.mustache",!1).then(ue=>{N.data.body=ue,Ce++,3===Ce&&(N.inited=!0,W({}))},()=>{Ce++,3===Ce&&(N.inited=!0,W({}))})}else W({});setTimeout(()=>X.unsubscribe())})})),N.init$})()}openMail(){const N=this.kioskConfigService.getConfig().subscribe(W=>{W.kioskConfig.useFeedbackMail&&window.open(this.getUrl(),"_self"),setTimeout(()=>N.unsubscribe())})}getUrl(){let N="mailto:",W=!1;const X=this.data?this.data.config:void 0;if(X){const J=X.recipients;if(J){if(J.to&&J.to.length>-1)for(let Ce=0;Ce<J.to.length;Ce++)Ce>0&&(N+=","),N+=encodeURIComponent(J.to[Ce]);if(J.cc&&J.cc.length>-1){N+=W?"&":"?",N+="cc=";for(let Ce=0;Ce<J.cc.length;Ce++)Ce>0&&(N+=","),N+=encodeURIComponent(J.cc[Ce]);W=!0}if(J.bcc&&J.bcc.length>-1){N+=W?"&":"?",N+="bcc=";for(let Ce=0;Ce<J.bcc.length;Ce++)Ce>0&&(N+=","),N+=encodeURIComponent(J.bcc[Ce]);W=!0}}this.data&&this.data.subject&&(N+=W?"&":"?",N+="subject="+encodeURIComponent(this.renderTemplate(this.data.subject)),W=!0),this.data&&this.data.body&&(N+=W?"&":"?",N+="body="+encodeURIComponent(this.renderTemplate(this.data.body)),W=!0)}return N}renderTemplate(N){return Mustache.render(N,this.getReplacements())}getReplacements(){const N=this.kioskConfigService.configObservable.value,W=N.kioskConfig.messages;return this.client||(this.client=new ClientJS),{appName:N.kioskConfig.appName,appVersionLabel:W.app_version_title_web,appVersion:"-",versionSectionLabel:W.version_title_web,deviceSectionLabel:W.device_title_web,deviceModelLabel:W.device_model_web,deviceModel:this.client.getDevice()||"-",osVersionLabel:W.os_version_web,osVersion:"".concat(this.client.getOS(),"-").concat(this.client.getOSVersion()," | ").concat(this.client.getBrowser(),"-").concat(this.client.getBrowserVersion()),manufacturerLabel:W.manufacturer_web,manufacturer:this.client.getDeviceVendor()||"-",connectionLabel:W.connection_web,connection:location.protocol.slice(0,-1),deviceIdLabel:W.device_id_title_web,deviceId:this.client.getFingerprint(),purpleVersionBlock:"Purple: ".concat(z.c.appVersion,", Engine: ").concat(PP.VERSION),platform:"Web"}}}return(j=I).\u0275fac=function(N){return new(N||j)(v.KVO(V.x),v.KVO(ve.o))},j.\u0275prov=v.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),I})();var fe=c(7574);let w=(()=>{var j;class I{constructor(N,W,X,J,Ce,ue,ge,De,He,Oe,it){this.router=N,this.route=W,this.contextService=X,this.purpleService=J,this.browserService=Ce,this.publicationService=ue,this.analyticsService=ge,this.kioskConfigService=De,this.appMenuService=He,this.feedbackMailService=Oe,this.consentService=it}openUrl(N,W,X){let J,Ce;try{J=N.split("://")[1].split("?")[0],Ce=J.split("/")}catch(ge){return void console.debug("error",N,ge)}let ue=0;switch(Ce[ue]){case"kiosk":switch(ue++,Ce[ue]){case"issue":{ue++;let De,He,ge=!1;"alias"===Ce[ue]?(ue++,ge=!0):"by_external_id"===Ce[ue]&&(ue++,De=!0),He=ge?this.publicationService.selectByIssueCriteria(null,Ce[ue]):De?this.publicationService.selectByIssueCriteria(null,null,Ce[ue]):this.publicationService.selectByIssueCriteria(Ce[ue]),He.then(Oe=>{if(ue++,!Oe||"open"!==Ce[ue]&&"page"!==Ce[ue]){if(De&&!Oe){const it=decodeURIComponent((0,l.P3)("fallback_url",N));if(it){if(X)return!0;window.open(it,(0,l.P3)("target",N)||"_blank"),this.appMenuService.setOpen(!1)}}else if(!Oe){if(X)return!1;W&&"function"==typeof W&&W("No such issue available"),this.analyticsService.init$.then(()=>this.analyticsService.sendEvent(E.E.Actions.KIOSK_ISSUE_OPEN_FAILED,{ISSUE_ID:this.publicationService.currentPublication.id+"/"+Oe.id,ISSUE_NAME:""}))}}else{if(X)return!0;{const it={actionUrl:N.split("#")[0],jumpToElement:N.split("#")[1]};let Ze=[this.contextService.getBrand(),"presenter",Oe.issueId];this.contextService.getIsCustomerDomainUsed()&&(Ze=["presenter",Oe.issueId]),this.router.navigate(Ze,{queryParams:it,queryParamsHandling:"merge"}),this.browserService.reset(),this.appMenuService.setOpen(!1)}}});break}case"entitlement":if(ue++,"login"===Ce[ue])switch(ue++,Ce[ue]){case"open":{const ge=this.browserService.getUrl("LOGIN");return X?ge:(this.browserService.willOpenExternally(ge)?this.browserService.openExternally(ge):this.browserService.showBrowser("LOGIN"),void this.appMenuService.setOpen(!1))}case"perform":{const ge=(0,l.P3)("token",N);return!!X||(this.purpleService.loginWithToken(ge).then(()=>{const De=(0,l.P3)("success_url",N),He=De&&decodeURIComponent(De);He?this.openUrl(He):window.location.reload()}),void this.appMenuService.setOpen(!1))}case"oauth":if(ue++,"start"===Ce[ue]&&this.contextService.getMetadata()[p.METADATA_KEY.ENTITLEMENT_MODE]===p.ENTITLEMENT_MODE.OAUTH){if(X)return!0;{const ge=(0,l.P3)("success_url",N),De=ge&&decodeURIComponent(ge);return void this.purpleService.login(void 0,void 0,{redirectUrl:De})}}}else if("logout"===Ce[ue]&&"perform"===Ce[ue+1]){if(X)return!0;{const ge=(0,l.P3)("success_url",N),De=ge&&decodeURIComponent(ge);this.purpleService.logout({redirectUrl:De}).then(()=>{De?this.openUrl(De,W):window.location.reload(),this.appMenuService.setOpen(!1)})}}break;case"subscriptions":if("open"===Ce[ue+1]){const ge=this.browserService.getUrl("SUBSCRIPTION");return X?ge:(this.browserService.willOpenExternally(ge)?this.browserService.openExternally(ge):this.browserService.showBrowser("SUBSCRIPTION"),void this.appMenuService.setOpen(!1))}}X||this.browserService.reset();break;case"storefront":case"app":if(ue++,"home"===Ce[ue]&&"open"===Ce[ue+1]){if(X)return!0;{const ge=this.contextService.getIsCustomerDomainUsed()?"/":this.contextService.getBrand();this.router.navigate([ge],{queryParamsHandling:"merge"}),this.browserService.reset(),this.appMenuService.setOpen(!1);break}}if("feedback"===Ce[ue]&&"mail"===Ce[ue+1]&&"open"===Ce[ue+2])return X?this.kioskConfigService.configObservable.value.kioskConfig.useFeedbackMail:(this.feedbackMailService.init().then(()=>this.feedbackMailService.openMail()),void this.appMenuService.setOpen(!1));if("open"===Ce[1]&&"external"===Ce[2]&&"url"===Ce[3])return!!X||(this.browserService.openExternally(decodeURIComponent(Ce[4])),void this.appMenuService.setOpen(!1));if("resource"===Ce[1]&&"dynamic"===Ce[2]){if(X)return!0;{const ge=encodeURIComponent(N.split("dynamic/")[1]);return this.router.navigate([],{relativeTo:this.route,queryParams:{url:N},queryParamsHandling:"merge",replaceUrl:!0}),this.appMenuService.setOpen(!1),void this.browserService.showBrowser(this.kioskConfigService.configObservable.value.kioskConfig.resourceBaseUrl+ge)}}if("menu"===Ce[1]){if("open"===Ce[2])return!!X||void this.appMenuService.setOpen(!0);if("close"===Ce[2])return!!X||void this.appMenuService.setOpen(!1);if("toggle"===Ce[2])return!!X||void this.appMenuService.setOpen(!this.appMenuService.isOpen())}else if("consent"===Ce[1]&&"privacy_manager"===Ce[2]&&"open"===Ce[3])return!!X||void this.consentService.showPrivacyManager();break;default:if(X)return!1;window.postMessage(JSON.stringify({type:"ACTION_URL",key:"IGNORE_WEB_KIOSK",value:N}),"*")}}}return(j=I).\u0275fac=function(N){return new(N||j)(v.KVO(U.Ix),v.KVO(U.nX),v.KVO($.V),v.KVO(B.Wj),v.KVO(ne.I),v.KVO(te.m),v.KVO(me.c),v.KVO(V.x),v.KVO(Z.I),v.KVO(pe),v.KVO(fe.e))},j.\u0275prov=v.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),I})()},1025:(ee,_,c)=>{"use strict";c.d(_,{c:()=>S});var l=c(467),p=c(4438),E=c(873),v=c(3785),U=c(177);class ${constructor(W,X){this.isEnabled=W,this.identifier=X}}class B{constructor(W){this.serviceConfiguration=W,this.init$=new Promise(X=>{this.resolveInitialization=X}),this.init()}getConfig(){return this.serviceConfiguration}init(){this.addScriptToDocument().catch(W=>{console.error("Error while adding ".concat(this.serviceConfiguration.identifier," script to document:"),W)}).then(()=>{console.debug("Script added: ".concat(this.serviceConfiguration.identifier)),this.resolveInitialization()})}resolveTemplate(W,X){let J=null!=W?W:"";return X&&Object.entries(X).forEach(([Ce,ue])=>{J=this.replaceAll(J,"{{"+Ce+"}}",ue)}),J}replaceAll(W,X,J){return W.replace(new RegExp(X,"g"),J)}}class ne extends ${constructor(W,X,J,Ce,ue,ge){super(X,J),this.vendorId=W,this.resourcesVersion=Ce,this.resourceBaseUrl=ue,this.preview=ge}isValidConfiguration(){return!!this.identifier&&!!this.resourceBaseUrl&&!!this.resourcesVersion}}class te extends B{constructor(W){super(W),this.message_missing_smarttag_js="AtInternet Tracker is not available. Please upload your smarttag.js in the dynamic resources"}addScriptToDocument(){return new Promise(W=>{const X=this.getConfig().resourcesVersion,J=this.getConfig().resourceBaseUrl,Ce=this.getConfig().preview,ue="".concat(J,"smarttag.js?preview=").concat(Ce,"&version=").concat(X),ge=document.createElement("script");ge.src=ue,ge.type="text/javascript",ge.addEventListener("load",()=>{try{this.tag=new ATInternet.Tracker.Tag({secure:!0}),W()}catch(De){console.error(this.message_missing_smarttag_js,De)}}),document.body.appendChild(ge)})}sendEvent(W,X){this.init$.then(()=>{try{const J={name:this.resolveTemplate(W.templates.name,X),chapter1:this.resolveTemplate(W.templates.chapter1,X),chapter2:this.resolveTemplate(W.templates.chapter2,X),chapter3:this.resolveTemplate(W.templates.chapter3,X),level2:this.resolveTemplate(W.templates.level2,X)||0,type:"action"};this.tag.click.send(J)}catch(J){console.error(this.message_missing_smarttag_js,J)}})}sendView(W,X){this.init$.then(()=>{try{const J={name:this.resolveTemplate(W.templates.name,X),chapter1:this.resolveTemplate(W.templates.chapter1,X),chapter2:this.resolveTemplate(W.templates.chapter2,X),chapter3:this.resolveTemplate(W.templates.chapter3,X),level2:this.resolveTemplate(W.templates.level2,X)||0};this.tag.page.send(J)}catch(J){console.error(this.message_missing_smarttag_js,J)}})}sendPurchase(W,X){}setOrRemoveUserAttribute(W,X,J){}}class me extends ${constructor(W,X,J,Ce){super(J,Ce),this.vendorId=W,this.measurementId=X}isValidConfiguration(){return!!this.identifier&&!!this.measurementId}}class V extends B{constructor(W){super(W)}addScriptToDocument(){return new Promise(W=>{const X=document.createComment(" Google tag (gtag.js) ");document.head.appendChild(X);const J=document.createElement("script");J.async=!0,J.src="https://www.googletagmanager.com/gtag/js?id=".concat(this.getConfig().measurementId),document.head.appendChild(J);const Ce=document.createElement("script");Ce.innerHTML="\n window.dataLayer = window.dataLayer || [];\n function gtag() {dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(this.getConfig().measurementId,"');"),document.head.appendChild(Ce),W()})}sendEvent(W,X){this.init$.then(()=>{const J=this.resolveTemplate(W.templates.action,X),Ce=this.resolveTemplate(W.templates.category,X),ue=this.resolveTemplate(W.templates.label,X);gtag("event",J,{event_category:Ce,event_label:ue})})}sendView(W,X){this.init$.then(()=>{const J=this.resolveTemplate(W.templates.name,X);gtag("event","page_view",{page_title:J})})}sendPurchase(W,X){this.init$.then(()=>{gtag("event","purchase",{transaction_id:X.transactionId,value:X.price,currency:X.currencyCode,shipping:0,tax:0,items:[{item_id:X.productId,item_name:X.productId,price:X.price,quantity:1}]})})}setOrRemoveUserAttribute(W,X,J){}}class Z extends ${constructor(W,X,J,Ce,ue){super(X,J),this.vendorId=W,this.accountId=Ce,this.siteId=ue}isValidConfiguration(){return!!this.identifier&&!!this.accountId&&!!this.siteId}}class le extends B{constructor(W,X,J){super(W),this.titleService=X,this.ssrService=J}addScriptToDocument(){return new Promise(W=>{const X=this.getConfig().accountId,J=this.getConfig().siteId;this.handleScriptloading(X,J).then(()=>{W()})})}handleScriptloading(W,X){return(0,l.A)(function*(){return new Promise(J=>{var Ce;(Ce=window._sf_async_config=window._sf_async_config||{}).uid=W,Ce.domain=X,Ce.useCanonical=!0,Ce.useCanonicalDomain=!0,Ce.sections="",Ce.authors="",function ue(){var ge=document.createElement("script");ge.onload=J,ge.type="text/javascript",ge.async=!0,ge.src="//static.chartbeat.com/js/chartbeat.js";var De=document.getElementsByTagName("script")[0];De.parentNode.insertBefore(ge,De)}()})})()}sendEvent(W,X){}sendView(W,X){var J=this;this.init$.then((0,l.A)(function*(){yield J.ssrService.prebootCompletedPromise;const Ce=J.titleService.getTitle(),ue=document.location.pathname,ge=J.resolveTemplate(W.templates.sections,X),De=J.resolveTemplate(W.templates.authors,X);window.pSUPERFLY.virtualPage({sections:ge,authors:De,path:ue,title:Ce})}))}sendPurchase(W,X){}setOrRemoveUserAttribute(W,X,J){}}var Q=c(4501);class z{static merged(W,X){var J,Ce,ue,ge,De,He,Oe,it,Ze,we,ye,ze;const Ye=W.default,be=W[X],Fe=null!==(J=null!==(Ce=null==be?void 0:be.eventsEnabledByDefault)&&void 0!==Ce?Ce:null==Ye?void 0:Ye.eventsEnabledByDefault)&&void 0!==J&&J,he=null!==(ue=null!==(ge=null==be?void 0:be.viewsEnabledByDefault)&&void 0!==ge?ge:null==Ye?void 0:Ye.viewsEnabledByDefault)&&void 0!==ue&&ue,Ne=null!==(De=null!==(He=null==be?void 0:be.purchasesEnabledByDefault)&&void 0!==He?He:null==Ye?void 0:Ye.purchasesEnabledByDefault)&&void 0!==De&&De,st=null!==(Oe=null!==(it=null==be?void 0:be.attributesEnabledByDefault)&&void 0!==it?it:null==Ye?void 0:Ye.attributesEnabledByDefault)&&void 0!==Oe&&Oe;var R=null!==(Ze=null==Ye?void 0:Ye.events)&&void 0!==Ze?Ze:{};void 0!==(null==be?void 0:be.events)&&Object.entries(be.events).forEach(K=>{R[K[0]]=K[1]});var A=null!==(we=null==Ye?void 0:Ye.views)&&void 0!==we?we:{};void 0!==(null==be?void 0:be.views)&&Object.entries(be.views).forEach(K=>{A[K[0]]=K[1]});var L=null!==(ye=null==Ye?void 0:Ye.purchases)&&void 0!==ye?ye:{};void 0!==(null==be?void 0:be.purchases)&&Object.entries(be.purchases).forEach(K=>{L[K[0]]=K[1]});var G=null!==(ze=null==Ye?void 0:Ye.attributes)&&void 0!==ze?ze:{};return void 0!==(null==be?void 0:be.attributes)&&Object.entries(be.attributes).forEach(K=>{G[K[0]]=K[1]}),{eventsEnabledByDefault:Fe,viewsEnabledByDefault:he,purchasesEnabledByDefault:Ne,attributesEnabledByDefault:st,events:R,views:A,purchases:L,attributes:G}}}var Y=c(9118),ve=c(2884),pe=c(20),fe=c(7574),w=c(345),j=c(4748);const I=(0,p.zw6)("trackingConfig");let S=(()=>{var N;class W{constructor(J,Ce,ue,ge,De,He,Oe,it,Ze){this.kioskConfigService=J,this.experienceConfigService=Ce,this.dialogService=ue,this.consentService=ge,this.transferState=De,this.titleService=He,this.ssrService=Oe,this.document=it,this.platformId=Ze,this.debugKeys={action:"ACTION",view:"VIEW",purchase:"PURCHASE",attribute:"ATTRIBUTE",logging:"tracking.debug.logging"},this.debugLogging=!1,this.init$=new Promise(we=>this.resolveInitialization=we),this.activeTrackingServices=new Set,this.init()}sendEvent(J,Ce){this.init$.then(()=>{this.log(this.debugKeys.action,J,Ce),this.activeTrackingServices.forEach(ue=>{var ge,De;const He=z.merged(this.trackingConfiguration,ue.serviceConfiguration.identifier),Oe=He.events[J],it=null!==(ge=null!==(De=null==Oe?void 0:Oe.enabled)&&void 0!==De?De:He.eventsEnabledByDefault)&&void 0!==ge&≥Oe&&it&&ue.sendEvent(Oe,Ce)})})}sendView(J,Ce){this.init$.then(()=>{this.log(this.debugKeys.view,J,Ce),this.activeTrackingServices.forEach(ue=>{var ge,De;const He=z.merged(this.trackingConfiguration,ue.serviceConfiguration.identifier),Oe=He.views[J],it=null!==(ge=null!==(De=null==Oe?void 0:Oe.enabled)&&void 0!==De?De:He.viewsEnabledByDefault)&&void 0!==ge&≥Oe&&it&&ue.sendView(Oe,Ce)})})}sendPurchase(J,Ce){this.init$.then(()=>{this.log(this.debugKeys.purchase,J,Ce),this.activeTrackingServices.forEach(ue=>{var ge,De;const He=z.merged(this.trackingConfiguration,ue.serviceConfiguration.identifier),Oe=He.purchases[J],it=null!==(ge=null!==(De=null==Oe?void 0:Oe.enabled)&&void 0!==De?De:He.purchasesEnabledByDefault)&&void 0!==ge&≥Oe&&it&&ue.sendPurchase(Oe,Ce)})})}setUserAttribute(J){this.init$.then(()=>{const{key:Ce,stringValue:ue,booleanValue:ge}=J;this.log(this.debugKeys.attribute,Ce,null!=ue?{stringValue:ue}:null!=J.booleanValue?{booleanValue:ge}:{value:"null"}),this.activeTrackingServices.forEach(De=>{var He,Oe;const it=z.merged(this.trackingConfiguration,De.serviceConfiguration.identifier),Ze=it.attributes[Ce],we=null!==(He=null!==(Oe=Ze.enabled)&&void 0!==Oe?Oe:it.attributesEnabledByDefault)&&void 0!==He&&He;Ze&&we&&De.setOrRemoveUserAttribute(Ze,Ce,{stringValue:ue,booleanValue:ge})})})}init(){var J=this;return(0,l.A)(function*(){(yield J.handleInitializationPrechecks())&&J.initializeTrackingConfiguration()})()}handleInitializationPrechecks(){var J=this;return(0,l.A)(function*(){return!(0,U.Vy)(J.platformId)&&(yield J.consentService.init$,!0)})()}initializeTrackingConfiguration(){var J=this;return(0,l.A)(function*(){J.kioskConfigService.getConfig().subscribe(Ce=>{J.loadTrackingConfig().catch(ue=>{Ce.kioskConfig.preview&&J.dialogService.alert((0,v.sprintf)(Ce.kioskConfig.messages.dialog_file_invalid_message_web,"tracking_config.json")),J.applyTrackingConfiguration({},Ce.kioskConfig),console.error("Error while loading analytics service!",ue)}).then(function(){var ue=(0,l.A)(function*(ge){yield J.applyTrackingConfiguration(ge,Ce.kioskConfig),J.transferState.onSerialize(I,()=>ge)});return function(ge){return ue.apply(this,arguments)}}(),(0,l.A)(function*(){const ue=JSON.parse(JSON.stringify(E.fT));yield J.applyTrackingConfiguration(ue,Ce.kioskConfig)}))})})()}loadTrackingConfig(){var J=this;return(0,l.A)(function*(){return J.transferState.hasKey(I)?Promise.resolve(J.transferState.get(I,{})):J.kioskConfigService.getResource("tracking_config.json",!0)})()}applyTrackingConfiguration(J,Ce){var ue=this;return(0,l.A)(function*(){ue.trackingConfiguration=J;const ge=yield ue.experienceConfigService.getExperienceConfig().toPromise();yield ue.addTrackingSDKs(Ce,ge),ue.resolveInitialization(),ue.sendEvent(Q.E.Actions.APP_START),window.onbeforeunload=()=>{ue.sendEvent(Q.E.Actions.APP_STOP)}})()}addTrackingSDKs(J,Ce){var ue=this;return(0,l.A)(function*(){yield ue.handleATInternet(J),yield ue.handleChartbeat(J,Ce),yield ue.handleGoogleAnalytics4(J)})()}handleATInternet(J){var Ce=this;return(0,l.A)(function*(){const ue=new ne(J.cmpVendorIdAtInternet,J.trackingAtinternetEnabled,"atinternet",J.resourcesVersion,J.resourceBaseUrl,J.preview);ue.isEnabled&&(ue.isValidConfiguration()?Ce.consentService.hasConsent(ue.vendorId)&&Ce.registerActiveTrackingService(new te(ue)):console.error("No valid configuration for ATInternet tracking!"))})()}handleChartbeat(J,Ce){var ue=this;return(0,l.A)(function*(){const ge=new Z(J.cmpVendorIdChartbeat||(null==Ce?void 0:Ce.cmpVendorIdChartbeat),J.trackingChartbeatEnabled,"chartbeat",J.trackingChartbeatAccountId||(null==Ce?void 0:Ce.chartbeatAccountId),J.trackingChartbeatSiteId||(null==Ce?void 0:Ce.chartbeatSiteId));ge.isEnabled&&(ge.isValidConfiguration()?ue.consentService.hasConsent(ge.vendorId)&&ue.registerActiveTrackingService(new le(ge,ue.titleService,ue.ssrService)):console.error("No valid configuration for Chartbeat tracking!"))})()}handleGoogleAnalytics4(J){var Ce=this;return(0,l.A)(function*(){const ue=new me(J.cmpVendorIdGoogleAnalytics,J.trackingGoogleAnalytics4Id,J.trackingGoogleAnalytics4Enabled,"google_analytics");ue.isEnabled&&(ue.isValidConfiguration()?Ce.consentService.hasConsent(ue.vendorId)&&Ce.registerActiveTrackingService(new V(ue)):console.error("No valid configuration for Google Analytics 4 tracking!"))})()}registerActiveTrackingService(J){console.debug("Tracking SDK added: ".concat(J.serviceConfiguration.identifier)),this.activeTrackingServices.add(J)}log(J,Ce,ue){this.debugLogging&&console.debug("[TRACK][".concat(J,"] ").concat(Ce),ue)}toggleLogging(J){const ge="true"===new URL(this.document.location.href).searchParams.get("preview")&&J;localStorage.setItem(this.debugKeys.logging,String(ge)),this.debugLogging=ge}}return(N=W).\u0275fac=function(J){return new(J||N)(p.KVO(Y.x),p.KVO(ve.a),p.KVO(pe.o),p.KVO(fe.e),p.KVO(p.pJN),p.KVO(w.hE),p.KVO(j.i),p.KVO(U.qQ),p.KVO(p.Agw))},N.\u0275prov=p.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),W})()},4501:(ee,_,c)=>{"use strict";c.d(_,{E:()=>U});var p,E,v,l=function($){return $.APP_START="APP_START",$.APP_STOP="APP_STOP",$.KIOSK_ISSUE_OPENED="KIOSK_ISSUE_OPENED",$.KIOSK_ISSUE_PREVIEW_OPENED="KIOSK_ISSUE_PREVIEW_OPENED",$.KIOSK_ISSUE_OPEN_FAILED="KIOSK_ISSUE_OPEN_FAILED",$}(l||{});p||(p={}),E||(E={}),v||(v={});const U={Actions:l,Views:p,Purchases:E,Attributes:v}},5820:(ee,_,c)=>{"use strict";c.d(_,{X:()=>te});var l=c(8179),p=c(4049),E=c(9745),v=c(4945),U=c(6843),$=c(4438),B=c(5483),ne=c(1652);let te=(()=>{var me;class V{constructor(le,Q){this.contextService=le,this.globalService=Q}init(le){le.select((0,v.jZ)(U.O.FEATURE),Q=>{null!=Q&&Q.anchorTags&&(this.anchorFeatureEnabled=Q.anchorTags)})}isAnchorFeatureEnabled(){return this.anchorFeatureEnabled}getAnchorPath(le,Q,z){let Y=(0,l.uQ)(le,Q,this.contextService.$functions,this.globalService.getGlobalData());if((0,l.Ol)(Y)){if((null==Y?void 0:Y.type)===E.H.OPEN_URL){let ve=Y.url;return 0===ve.indexOf("purple://app/resource/dynamic/")||0===ve.indexOf("resource://dynamic/")?this.interpolatePath("",Q):ve}if((null==Y?void 0:Y.type)===E.H.NAVIGATE)return this.interpolatePath(Y.url||Y.path,Q);if(z)return this.interpolatePath(z,Q)}}interpolatePath(le,Q){let z=le?(0,p.K)(le,Q):"";const Y=this.contextService.getIsCustomerDomainUsed()?"":"/".concat(this.contextService.getBrand());return"".concat(Y).concat(z.startsWith("/")?z:"/"+z).concat(null!=Q&&Q.preview?(z.includes("?")?"&":"?")+"preview=true":"")}}return(me=V).\u0275fac=function(le){return new(le||me)($.KVO(B.V),$.KVO(ne.d))},me.\u0275prov=$.jDH({token:me,factory:me.\u0275fac,providedIn:"root"}),V})()},5204:(ee,_,c)=>{"use strict";c.d(_,{I:()=>ne});var l=c(177),p=c(9047),E=c(4412),v=c(5964),U=c(6354),$=c(2853),B=c(4438);let ne=(()=>{var te;class me{constructor(Z,le){this.document=Z,this.router=le,this.menuOpenSubject=new E.t(!1),this.$menuOpen=this.menuOpenSubject.asObservable(),this.registeredSideMenuComponents=new Set,this.router.events.pipe((0,v.p)(Q=>Q instanceof p.wF),(0,U.T)(Q=>!1)).subscribe(this.menuOpenSubject)}isOpen(){return this.menuOpenSubject.value}setOpen(Z){this.menuOpenSubject.next(Z)}registerCustomSideMenuComponent(Z){Z.baseConfig.template&&Z.baseConfig.template===$.oH.STATIC?console.error("Tried to register static menu component as side menu!"):this.registeredSideMenuComponents.add(Z)}unregisterCustomSideMenuComponent(Z){this.registeredSideMenuComponents.delete(Z)}hasCustomSideMenu(){return!!this.registeredSideMenuComponents.size}}return(te=me).\u0275fac=function(Z){return new(Z||te)(B.KVO(l.qQ),B.KVO(p.Ix))},te.\u0275prov=B.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),me})()},312:(ee,_,c)=>{"use strict";c.d(_,{u:()=>B});var l=c(4412),p=c(6883),E=c(4438),v=c(9047),U=c(177),$=c(5483);let B=(()=>{var ne;class te{constructor(V,Z,le,Q){this.router=V,this.route=Z,this.location=le,this.contextService=Q,this.currentRouteBSubject=new l.t(null),this.currentRoute$=this.currentRouteBSubject.asObservable(),this.afterPopState$=new l.t(!1),this.brand="",this.previousStatePath="",this.brand=this.contextService.getIsCustomerDomainUsed()?"":this.contextService.getBrand()}initWidgetRouter(){const V=this.getActiveRouteState();this.sendRouteState(V)}changeUrl(V){if(console.debug("bidirectional changeRoute from widget: ",V),!V.path||this.afterPopState$.value)return;this.brand&&(V.path=this.brand+"".concat(V.path.startsWith("/")?"":"/").concat(V.path));const Z=this.convertObjectToString(V);if(this.previousStatePath!==Z)if(this.previousStatePath=Z,V.forceReload){var le;this.router.navigate([V.path],{queryParams:V.queryParams?Object.fromEntries(V.queryParams):{},queryParamsHandling:null!==(le=V.queryParamsHandling)&&void 0!==le?le:"merge"})}else{var Q;const z=this.router.createUrlTree([V.path],{queryParams:V.queryParams?Object.fromEntries(V.queryParams):{},queryParamsHandling:null!==(Q=V.queryParamsHandling)&&void 0!==Q?Q:""}).toString();this.location.go(z,"",{navigationId:(0,p.A)()})}}sendRouteState(V){const Z={...V,path:V.path.startsWith("/")?V.path.substring(1):V.path};this.previousStatePath=this.convertObjectToString(Z),this.brand&&(V.path=V.path.replace(this.brand,""),V.path.indexOf("//")>-1&&(V.path=V.path.replace("//","/"))),console.debug("bidirectional changeRoute from client: ",V),this.currentRouteBSubject.next(V)}getActiveRouteState(){return{path:this.getUrlWithoutParams(),queryParams:new Map(Object.entries(this.route.snapshot.queryParams))}}getUrlWithoutParams(){let V=this.router.parseUrl(this.router.url);return V.queryParams={},V.fragment=null,V.toString()}convertObjectToString(V){const Z=Object.fromEntries(V.queryParams);return JSON.stringify({...V,queryParams:Z})}}return(ne=te).\u0275fac=function(V){return new(V||ne)(E.KVO(v.Ix),E.KVO(v.nX),E.KVO(U.aZ),E.KVO($.V))},ne.\u0275prov=E.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"}),te})()},9668:(ee,_,c)=>{"use strict";c.d(_,{I:()=>Y});var l=c(177),p=c(9047),E=c(4404),U=c(3178),$=c(3377),B=c(9745),ne=c(2356),te=c(4438),me=c(9118),V=c(496),Z=c(5483),le=c(1025),Q=c(8471);const z=/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/(?<path>.*)/;let Y=(()=>{var ve;class pe{constructor(w,j,I,S,N,W,X,J,Ce,ue){this.kioskConfigService=w,this.publicationService=j,this.router=I,this.route=S,this.contextService=N,this.document=W,this.injector=X,this.analyticsService=J,this.ngZone=Ce,this.purpleService=ue,this.WEB_KIOSK_TARGET_QUERY_PARAM="purple_web_kiosk_target",this.data={},this.urls={};const ge=w.getConfig().subscribe(De=>{this.urls={SUBSCRIPTION:De.kioskConfig.subscriptionUrl,PURCHASE:De.kioskConfig.purchaseUrl,PREVIEW:De.kioskConfig.purchasePreviewUrl,LOGIN:De.kioskConfig.loginUrl,LOGOUT:De.kioskConfig.logoutUrl},ge.unsubscribe()});I.events.subscribe(De=>{De instanceof p.Z&&this.reset()}),setTimeout(()=>this.actionUrlService=X.get($.p))}init(){}showBrowser(w,j,I){console.log("showbrowser",w,j,I);const S=this.getUrl(w,j);if(this.contextService.setData("issue_id",j?j.issueId:void 0),S){const W=this.getTarget(S);if(W)this.dropTargetParam(S),I?I.location.href=S.toString():window.open(S.toString(),W);else if("PURCHASE"!==w){var N;const X=this.getDisplayConfig(S),J=S.toString().replace(null===(N=this.kioskConfigService.configObservable.value)||void 0===N?void 0:N.kioskConfig.resourceBaseUrl,"").split("?")[0];if(X.displayMode===E.DisplayMode.MODAL)this.ngZone.run(()=>{this.router.navigate([{outlets:{modal:["popup","dynamic/"+J,B.L.SLIDE_IN]}}],{queryParamsHandling:"merge"})});else{const Ce={};S.searchParams.forEach((ue,ge)=>{const De=Ce[ge];De?De instanceof Array?De.push(ue):Ce[ge]=[De,ue]:Ce[ge]=ue}),this.ngZone.run(()=>{let ue=[this.contextService.getBrand(),"dynamic",J];this.contextService.getIsCustomerDomainUsed()&&(ue=["dynamic",J]),this.router.navigate(ue,{queryParams:Ce,queryParamsHandling:"merge"})})}}}}onMessage(w){const j="object"==typeof w.data?w.data:JSON.parse(w.data);if(j.type&&"IGNORE_WEB_KIOSK"!==j.key)switch(j.type){case"LOAD":case"DOCUMENT_TITLE":case"STATE":case"MEDIA":PP.Util.receiveMessage(w);break;case"ACTION_URL":this.actionUrlService.openUrl(j.value,()=>{});break;case"CSS_URL":var I,S;"purple-global-css"===j.key?PP.Util.postMessage(w.source,null===(I=document.getElementById("globalFontsCSS"))||void 0===I?void 0:I.getAttribute("href"),null,j.callbackId):PP.Util.postMessage(w.source,null===(S=document.getElementById("fontsCSS"))||void 0===S?void 0:S.getAttribute("href"),null,j.callbackId);break;case"CLOSE_VIEW":this.reset();break;case"BROWSER":{const N=this.getDisplayConfig();switch(j.key){case"DISPLAY_MODE":PP.Util.postMessage(w.source,N.displayMode,j.type,j.callbackId),event.stopImmediatePropagation();break;case"CONTROLS":PP.Util.postMessage(w.source,N.controlsEnabled,j.type,j.callbackId),event.stopImmediatePropagation();break;case"TITLE_BAR":PP.Util.postMessage(w.source,N.titleBarEnabled,j.type,j.callbackId),event.stopImmediatePropagation();break;case"STATUS_BAR":PP.Util.postMessage(w.source,N.statusBarEnabled,j.type,j.callbackId),event.stopImmediatePropagation()}break}case"META":{const N=this.kioskConfigService.getConfig().subscribe(W=>{switch(j.key){case PP.META_APP_ID:PP.Util.postMessage(w.source,W.kioskConfig.appId,j.type,j.callbackId);break;case PP.META_PREVIEW:PP.Util.postMessage(w.source,W.kioskConfig.preview,j.type,j.callbackId);break;case PP.META_PLATFORM:PP.Util.postMessage(w.source,"web",j.type,j.callbackId);break;case PP.META_ENTITLEMENT_TOKEN:PP.Util.postMessage(w.source,null,j.type,j.callbackId);break;case PP.META_LOCALE:PP.Util.postMessage(w.source,(0,U.JK)(),j.type,j.callbackId);break;case PP.META_MANAGER_BASE_URL:PP.Util.postMessage(w.source,W.kioskConfig.presenterBaseUrl,j.type,j.callbackId);break;case PP.META_ENTITLEMENT_LOGIN:PP.Util.postMessage(w.source,null,j.type,j.callbackId);break;case PP.META_DEVICE_OS:{const X=new ClientJS;PP.Util.postMessage(w.source,"".concat(X.getOS(),"-").concat(X.getOSVersion()," | ").concat(X.getBrowser(),"-").concat(X.getBrowserVersion()),j.type,j.callbackId);break}default:PP.Util.postMessage(w.source,null,j.type,j.callbackId)}N.unsubscribe()});break}case"STOREFRONT":switch(j.key){case"SUBSCRIPTIONS":case"PUBLICATIONS":case"ISSUES":case"ISSUE_STATES":PP.Util.postMessage(w.source,[],j.type,j.callbackId);break;case"UPDATE":this.publicationService.reset();break;default:PP.Util.postMessage(w.source,null,j.type,j.callbackId)}break;case"TRACKING":switch(j.key){case"ACTION":this.purpleService.trackAction(j.value.key,j.value.params);break;case"VIEW":this.purpleService.trackView(j.value.key,j.value.params);break;case"PURCHASE":this.purpleService.trackPurchase(j.value)}}}reset(){}getDisplayConfig(w){try{return{displayMode:"modal"===w.searchParams.get("display_mode")?E.DisplayMode.MODAL:E.DisplayMode.EMBEDDED,controlsEnabled:"true"===w.searchParams.get("controls"),titleBarEnabled:"false"!==w.searchParams.get("title_bar"),statusBarEnabled:!1}}catch{return{displayMode:E.DisplayMode.EMBEDDED,controlsEnabled:!1,titleBarEnabled:!0,statusBarEnabled:!1}}}openExternally(w){window.open(w,"_blank")}getUrl(w,j){if(w){var I,S;let N=this.urls[w]||w;const W=z.exec(N),X=null===(I=this.kioskConfigService.configObservable.value)||void 0===I?void 0:I.kioskConfig;null!=W&&null!==(S=W.groups)&&void 0!==S&&S.path&&(N=(null==X?void 0:X.resourceBaseUrl)+W.groups.path,console.log(N));try{const J=new URL(N);if(N.startsWith(null==X?void 0:X.resourceBaseUrl)&&(J.searchParams.set("preview",null==X?void 0:X.preview),J.searchParams.set("legacy","false")),this.urls[w]){j&&(J.searchParams.set("issueId",j.issueId),j.product&&j.product.id&&J.searchParams.set("productId",j.product.id));const Ce=this.publicationService.currentPublication;Ce&&J.searchParams.set("publicationId",Ce.id)}return"LOGIN"===w&&J.searchParams.set("title_bar","false"),J}catch(J){return console.warn(J),null}}}getTarget(w){try{return("object"==typeof w?w:new URL(w)).searchParams.get(this.WEB_KIOSK_TARGET_QUERY_PARAM)}catch{return null}}willOpenExternally(w){try{const j=new URL(w);return"_blank"===this.getTarget(j)}catch(j){console.warn(j,w)}return!1}dropTargetParam(w){try{w.searchParams.delete(this.WEB_KIOSK_TARGET_QUERY_PARAM)}catch{}}getMessageReceiver(w){const j=this.kioskConfigService.configObservable.value;return new ne.BK({purple:(null==w?void 0:w.purple)||this.purpleService.purpleRef,getCssUrls:(null==w?void 0:w.getCssUrls)||(()=>{var I,S;return{"purple-global-css":null===(I=document.getElementById("globalFontsCSS"))||void 0===I?void 0:I.getAttribute("href"),"purple-app-css":null===(S=document.getElementById("fontsCSS"))||void 0===S?void 0:S.getAttribute("href"),"purple-content-css":j.kioskConfig.resourceBaseUrl+"content.css?preview="+j.kioskConfig.preview+"&version="+j.kioskConfig.resourcesVersion}}),getResourceUrl:(null==w?void 0:w.getResourceUrl)||(I=>{I=I.replace("resource://dynamic/",j.kioskConfig.resourceBaseUrl);try{const S=new URL(I);return S.searchParams.set("preview",j.kioskConfig.preview),S.toString()}catch(S){console.warn(I,S)}return I}),onSetTitle:(null==w?void 0:w.onSetTitle)||(I=>{Array.prototype.forEach.call(this.document.getElementsByClassName("pp-internal-browser pp-title"),S=>S.html(I)),Array.prototype.forEach.call(this.document.getElementsByClassName("pp-internal-browser pp-reload"),S=>S.attr("disabled",!1))}),onLocationChange:(null==w?void 0:w.onLocationChange)||(()=>{})})}}return(ve=pe).\u0275fac=function(w){return new(w||ve)(te.KVO(me.x),te.KVO(V.m),te.KVO(p.Ix),te.KVO(p.nX),te.KVO(Z.V),te.KVO(l.qQ),te.KVO(te.zZn),te.KVO(le.c),te.KVO(te.SKi),te.KVO(Q.Wj))},ve.\u0275prov=te.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),pe})()},244:(ee,_,c)=>{"use strict";c.d(_,{I:()=>te});var l=c(467),p=c(4945),E=c(6843),v=c(6697),U=c(7598),$=c(4438),B=c(7010),ne=c(8471);let te=(()=>{var me;class V{constructor(le,Q){this.store=le,this.purpleService=Q,this.issues={}}init(){var le=this;return(0,l.A)(function*(){yield Promise.all([le.readFromState(),(0,p.jZ)(E.O.ACCESS)(le.store).pipe((0,v.s)(1)).toPromise().then(Q=>{Q&&(le.config=Q.cleanUp)})])})()}deleteExpiredIssues(){var le=this;return(0,l.A)(function*(){if(le.isEnabled()){const Q=Date.now(),z=[],Y=(yield window.purple.catalog.getLocalIssues()).issues;for(const pe in le.issues){const fe=Y.find(w=>w.id===pe);Q-le.issues[pe]>1e3*le.config.interval&&(fe?z.push(pe):delete le.issues[pe])}let ve=0;z.length&&(yield Promise.all([...z.map(function(){var pe=(0,l.A)(function*(fe){try{const w=yield le.purpleService.getIssue(fe).catch(()=>null);w&&(yield(yield le.purpleService.getDownloadHandler(w)).delete(),delete le.issues[fe],ve++)}catch{console.warn("error deleting issue "+fe)}});return function(fe){return pe.apply(this,arguments)}}()),le.persist()]),ve>0&&window.dispatchEvent(new CustomEvent(U.YT,{detail:{}})))}})()}removeIssue(le){this.isEnabled()&&(delete this.issues[le],this.persist())}addIssue(le){this.isEnabled()&&!this.issues[le]&&(this.issues[le]=Date.now(),this.persist())}persist(){var le=this;return(0,l.A)(function*(){return le.purpleService.setState(V.STATE_KEY,JSON.stringify(le.issues))})()}readFromState(){var le=this;return(0,l.A)(function*(){try{le.issues=JSON.parse(yield le.purpleService.getState(V.STATE_KEY))}catch(Q){console.error("Failed to parse issues from state:",Q)}le.issues=le.issues||{}})()}isEnabled(){return this.config&&this.config.interval>0}}return(me=V).STATE_KEY="cleanUpIssues",me.\u0275fac=function(le){return new(le||me)($.KVO(B.il),$.KVO(ne.Wj))},me.\u0275prov=$.jDH({token:me,factory:me.\u0275fac,providedIn:"root"}),V})()},8745:(ee,_,c)=>{"use strict";c.d(_,{Bh:()=>W,tZ:()=>ve,Tw:()=>j});var l=c(467),p=c(177),E=c(4438),v=c(4412),U=c(5964),$=c(6883),B=c(2589),ne=function(X){return X.LEFT="LEFT",X.RIGHT="RIGHT",X}(ne||{}),te=c(2348),me=c(6843),V=c(7879),Z=c(8890),le=c(7370),Q=c(5483),z=c(2838);const Y=(0,E.zw6)("baseUrl"),ve=(0,E.zw6)("configLoader"),pe=(0,E.zw6)("custom.server.js"),fe=(0,E.zw6)("custom.js"),w=(0,E.zw6)("resourcesJson");var j=function(X){return X[X.LoadJavascript=0]="LoadJavascript",X[X.LoadCss=1]="LoadCss",X}(j||{}),I=function(X){return X[X.Ignore=0]="Ignore",X[X.LoadInline=1]="LoadInline",X[X.LoadOriginal=2]="LoadOriginal",X}(I||{});class S{constructor(J,Ce,ue){this.id=J,this.data=Ce,this.cssLoadingType=ue}}function N(X){if(X&&"object"==typeof X)if(Array.isArray(X))for(const J of X)N(J);else if(Object.values(X).forEach(J=>{N(J)}),X.content&&Array.isArray(X.content))for(const J of X.content)J&&"object"==typeof J&&(J._uuid=(0,$.A)())}let W=(()=>{var X;class J{constructor(ue,ge,De,He,Oe,it,Ze){this.document=ue,this.platformId=ge,this.purpleEnv=De,this.transferState=He,this.contextService=Oe,this.resourceService=it,this.host=Ze,this.configSubject=new v.t(void 0),this.config$=this.configSubject.asObservable().pipe((0,U.p)(we=>!!we),(0,Z.os)()),this.baseUrl=null}getConfig(){return this.config$}loadConfig(ue){var ge=this;return(0,l.A)(function*(){ge.baseUrl=yield ge.fromTransferStateOrFetch(Y,(0,l.A)(function*(){return yield ge.getBaseURL(ue)}));const De=yield ge.fromTransferStateOrFetch(ve,(0,l.A)(function*(){return yield ge.loadUrlConfig()}));ge.contextService.setBaseUrl(ge.baseUrl),yield ge.loadCssAndJs(),ge.configSubject.next(De)})()}loadContentTheme(ue,ge=j.LoadCss){var De=this;return(0,l.A)(function*(){const He=yield De.loadResourcesJson();if(He&&He.length)switch(ge){case j.LoadCss:De.handleContentThemeCssLoading(He);break;case j.LoadJavascript:De.handleContentThemeJavascriptLoading(He)}})()}unloadContentThemeScripts(ue){return(0,l.A)(function*(){ue.querySelectorAll("script[data-theme='true']").forEach(De=>De.remove())})()}fromTransferStateOrFetch(ue,ge,De=!0){var He=this;return(0,l.A)(function*(){if(He.transferState.hasKey(ue))return He.transferState.get(ue,null);{let Oe=yield ge();return De&&He.transferState.set(ue,Oe),Oe}})()}loadUrlConfig(){var ue=this;return(0,l.A)(function*(){const ge=(yield ue.load("assets/urls.json",!0))||{},De=Object.entries(ge).map(([Oe,it])=>ue.load(it,!0).then(Ze=>[Oe,Ze])),He=Object.fromEntries(yield Promise.all(De));return He[me.O.URL]=ge,He[me.O.VIEW]=ue.withViewsJsonDefaults(He[me.O.VIEW]||[]),He[me.O.APP_BAR]=ue.withAppBarJsonDefaults(He[me.O.APP_BAR]||[]),He[me.O.MENUS]=ue.withMenusJsonDefaults(He[me.O.MENUS]||{sideMenus:[]}),He[me.O.AD]=ue.mapToAdsJson(He[me.O.AD]||{adSlots:[]}),He})()}loadCssAndJs(){var ue=this;return(0,l.A)(function*(){ue.loadCss(),yield ue.loadJs(),yield ue.loadContentTheme(ue.document.body)})()}loadCss(){if((0,le.WR)(this.document.location.href)?(0,p.UE)(this.platformId):(0,p.Vy)(this.platformId)){const ue=["fonts.css","custom.css","platform.css","submit.css"].map(De=>"assets/".concat(De)),ge=this.getFirstElementByLocalName("noscript");this.resolveAndAddCssFilesToBody(ue,ge)}}loadJs(){var ue=this;return(0,l.A)(function*(){yield ue.loadCustomServerJs(),yield ue.loadCustomJs()})()}loadCustomServerJs(){var ue=this;return(0,l.A)(function*(){try{const ge=yield ue.fromTransferStateOrFetch(pe,(0,l.A)(function*(){return yield ue.load("assets/scripts/custom.server.js",!1)})),De=new Proxy({},{get:(He,Oe,it)=>("$functions"!==Oe&&console.warn("custom.server.js tried to access window.".concat(Oe.toString(),", only window.$functions is allowed")),Reflect.get(He,Oe,it)),set:(He,Oe,it,Ze)=>("$functions"!==Oe&&console.warn("custom.server.js tried to set window.".concat(Oe.toString(),", only window.$functions is allowed")),Reflect.set(He,Oe,it,Ze))});Function("window",'"use strict";'.concat(ge))(De),De.$functions&&(window.$functions&&console.warn("Overwriting existing window.$functions definition. either you have $functions also defined in custom.js, or this log appears on the server and a previous brand had already loaded functions."),ue.contextService.set$Functions(De.$functions))}catch(ge){console.warn("error in custom.server.js: ",ge)}})()}loadCustomJs(){var ue=this;return(0,l.A)(function*(){const ge=yield ue.fromTransferStateOrFetch(fe,(0,l.A)(function*(){return yield ue.load("assets/scripts/custom.js",!1)}),!(0,le._o)(ue.document.location.href));if((0,p.UE)(ue.platformId)){const De=ue.document.createElement("script");De.type="text/javascript",De.innerHTML=ge,ue.document.head.appendChild(De)}})()}loadResourcesJson(){var ue=this;return(0,l.A)(function*(){return yield ue.fromTransferStateOrFetch(w,(0,l.A)(function*(){var ge;const De=yield ue.load("/content/resources.json",!0);return(null==De||null===(ge=De.map(Oe=>"/content/".concat(Oe)))||void 0===ge?void 0:ge.reverse())||[]}))})()}handleContentThemeCssLoading(ue){if((0,p.UE)(this.platformId)&&!this.purpleEnv.isApp)return;const ge=ue.filter(He=>this.hasExtension(He,"css")),De=this.getChildElementBeforeElementWithTag("STOREFRONT-ROOT");this.resolveAndAddCssFilesToBody(ge,De)}handleContentThemeJavascriptLoading(ue){(0,p.Vy)(this.platformId)||ue.filter(ge=>this.hasExtension(ge,"js")).forEach(ge=>{this.addJavaScriptToHead(ge)})}resolveAndAddCssFilesToBody(ue,ge){0!=ue.length&&Promise.all(ue.map(De=>this.resolveCss(De))).then(De=>{this.addCssToBody(ge,De)})}resolveCss(ue){var ge=this;return(0,l.A)(function*(){const De=ge.currentCssLoadingType();if(De==I.LoadInline){const He=yield ge.load(ue,!1);if(!He)return new S(ue,null,I.Ignore);const Oe="".concat(He);return Oe.startsWith("<!doctype html>")?new S(ue,ue,I.LoadOriginal):new S(ue,Oe,De)}return new S(ue,ue,De)})()}currentCssLoadingType(){return(0,le._o)(this.document.location.href)?I.LoadOriginal:this.purpleEnv.inlineCSS&&(0,p.Vy)(this.platformId)?I.LoadInline:I.LoadOriginal}resolveUrl(ue){const ge=ue.startsWith("/"),De=(0,le.vA)((0,le.bU)(this.document.location.href),this.purpleEnv,this.contextService);if(ge){const He=this.baseUrl.split("/");return He.splice(0,He.length-2).join("/")+ue+De}return this.baseUrl+ue+De}load(ue,ge){var De=this;return(0,l.A)(function*(){const He=De.resolveUrl(ue),Oe=ge?De.resourceService.getObject:De.resourceService.getString;try{return yield Oe.apply(De.resourceService,[He])}catch(it){return void console.warn("Failed to load resource: ".concat(He),it)}})()}addCssToBody(ue,ge){ge.forEach(De=>{switch(De.cssLoadingType){case I.LoadInline:this.addStyleSheetToBody(this.createStyleSheetInline(De.id,De.data),ue);break;case I.LoadOriginal:this.addStyleSheetToBody(this.createStyleSheetAsLink(De.data),ue)}})}getFirstElementByLocalName(ue){let ge=this.document.body.firstElementChild;for(;ge.localName===ue;)ge=ge.nextElementSibling;return ge}getChildElementBeforeElementWithTag(ue){let ge=this.document.body.firstElementChild;for(;ge.tagName!==ue;)ge=ge.nextElementSibling;return ge}addStyleSheetToBody(ue,ge){ge?this.document.body.insertBefore(ue,ge):this.document.body.appendChild(ue)}createStyleSheetInline(ue,ge){let De=this.document.createElement("style");return De.id=ue,De.textContent=ge,De}createStyleSheetAsLink(ue){let ge=this.document.createElement("link");return ge.rel="stylesheet",ge.href=ue,ge}addJavaScriptToHead(ue){const ge=this.document.createElement("script");ge.type="text/javascript",ge.src=this.resolveUrl(ue),ge.id=ue,ge.defer=!0,ge.setAttribute("data-theme","true"),this.document.head.appendChild(ge)}hasExtension(ue,ge){return ue.split(".").pop()===ge}getBaseURL(ue){var ge=this;return(0,l.A)(function*(){return ge.baseUrl||(ge.baseUrl=yield ge.calculateBaseURL(ue)),ge.baseUrl})()}calculateBaseURL(ue){var ge=this;return(0,l.A)(function*(){const De=new URL(ge.document.location.href);try{return new URL(De.searchParams.get("configURL")).toString()}catch{if(ge.purpleEnv.isApp){var He;const ye=ge.document.location.href,ze=ye.indexOf("?"),Ye=ye.indexOf("#");let be;ze>=0&&(be=ze),Ye>=0&&(be=Math.min(Ye,null!==(He=be)&&void 0!==He?He:Number.MAX_VALUE));const Fe=be?ye.substring(0,be):ye;return Fe.substring(0,Fe.lastIndexOf("/"))+"/"}const it=ge.host||ge.document.location.host,Ze=(yield(0,V.RX)(it,ue.brand,ge.transferState,ge.contextService,(0,le.bU)(ge.document.location.href))).id;return Ze?((yield ge.contextService.getIsCustomDomainUsed())?"https://"+it:ge.purpleEnv.KIOSK_BASE_URL)+"/delivery/web/dynamicResources/"+Ze+"/storefront/":De.origin+"/"}})()}withViewsJsonDefaults(ue){ue.unshift({content:[{type:"presenter"}],name:"presenter",path:"presenter/:issueId",appBar:"back",navigation:"default"}),ue.find(De=>"dynamic"===De.name)||ue.unshift({content:[{type:"iframe"}],name:"dynamic",path:"dynamic/:path",appBar:"back"});for(const De of ue)if(De.content&&Array.isArray(De.content))for(const He of De.content)He._uuid=(0,$.A)(),N(He);return ue}withAppBarJsonDefaults(ue){let ge=ue.find(we=>"back"==we.id);ge||(ge={id:"back",logo:!1,scrollBehavior:te.K.NONE},ue.push(ge)),ge.content||(ge.content={});let De=ge.content;if("section"!==De.type){let we={type:"section",content:[]};JSON.parse(JSON.stringify(De)),void 0!==De.type&&we.content.push(JSON.parse(JSON.stringify(De))),De=JSON.parse(JSON.stringify(we))}De.content||(De.content=[]);let He=De.content.find(we=>"toolbar"==we.type),Oe=He||{type:"toolbar"},it=Oe.actions;return it||(it=[]),it.find(we=>"pdf"===we.type)||it.push({type:B.f.pdf,content:"DOWNLOAD_PDF"}),Oe.actions=it,He||De.content.push(Oe),ge.content=De,N(ue),ue}withMenusJsonDefaults(ue){return(!ue.sideMenus.length||!ue.sideMenus.find(ge=>"default"===ge.id))&&ue.sideMenus.push({id:"default",side:ne.LEFT,content:[{type:"app-menu-xml"}]}),N(ue),ue}mapToAdsJson(ue){return Array.isArray(ue)?{adSlots:ue}:ue}}return(X=J).\u0275fac=function(ue){return new(ue||X)(E.KVO(p.qQ),E.KVO(E.Agw),E.KVO(V.r6),E.KVO(E.pJN),E.KVO(Q.V),E.KVO(z.Q),E.KVO("host",8))},X.\u0275prov=E.jDH({token:X,factory:X.\u0275fac,providedIn:"root"}),J})()},8549:(ee,_,c)=>{"use strict";c.d(_,{B:()=>E,h:()=>p});var l=c(6796);class p{constructor(U){this.identifier=U}}class E{constructor(U){this.consentManagementPlatformConfiguration=U,this.init$=new Promise($=>{this.resolveInitialization=$}),this.consentInfo=new l.vl,this.cmpLoadedFirstTime=!1,this.init()}getConfig(){return this.consentManagementPlatformConfiguration}init(){this.addScriptToDocument().catch(U=>{console.error("Error while adding ".concat(this.consentManagementPlatformConfiguration.identifier," script to document:"),U)}).then(()=>{console.debug("Script added: ".concat(this.consentManagementPlatformConfiguration.identifier)),this.resolveInitialization()})}isCMPLoadedFirstTime(){return!this.cmpLoadedFirstTime&&(this.cmpLoadedFirstTime=!0,!0)}hasConsent(U){const $=this.consentInfo.hasConsent(U);return console.debug($?"Consent granted for: ".concat(U):"No consent granted for: ".concat(U)),$}getConsent(U){const $=U.vendorId;return{vendorId:$,vendorGrant:this.consentInfo.getVendorGrant($),purposeGrants:this.consentInfo.getPurposeGrants($)}}gdprRequired(){return!1}gdprAvailable(){throw Error("Not supported for this CMP!")}applyScriptConfiguration(U,$){$.properties&&Object.keys($.properties).forEach(B=>{U.setAttribute(B,$.properties[B])}),$.content&&(U.text=$.content)}}},6796:(ee,_,c)=>{"use strict";c.d(_,{Wm:()=>l,eE:()=>E,kn:()=>p,vl:()=>v});class l{constructor($,B){this.properties=$,this.content=B}isValidConfiguration(){return!!this.properties||!!this.content}}class p{constructor($){this.data=$}hasConsent($){return this.vendorGrant($)}getVendorGrant($){return this.vendorGrant($)}getPurposeGrants($){var B;return null===(B=this.data)||void 0===B||null===(B=B.purpose)||void 0===B?void 0:B.consents}vendorGrant($){var B;return null===(B=this.data)||void 0===B||null===(B=B.vendor)||void 0===B||null===(B=B.consents)||void 0===B?void 0:B[$]}}class E{hasConsent($){return!1}getVendorGrant($){return!1}getPurposeGrants($){return{}}}class v{updateTCData($){this.tcData=$}updateCustomConsentData($){this.customConsentData=$}hasConsent($){var B,ne;return!(!(null===(B=this.tcData)||void 0===B?void 0:B.hasConsent($))&&!(null===(ne=this.customConsentData)||void 0===ne?void 0:ne.hasConsent($)))}getVendorGrant($){var B,ne;return!(!(null===(B=this.tcData)||void 0===B?void 0:B.getVendorGrant($))&&!(null===(ne=this.customConsentData)||void 0===ne?void 0:ne.getVendorGrant($)))}getPurposeGrants($){var B,ne;return{...null===(B=this.tcData)||void 0===B?void 0:B.getPurposeGrants($),...null===(ne=this.customConsentData)||void 0===ne?void 0:ne.getPurposeGrants($)}}}},79:(ee,_,c)=>{"use strict";c.d(_,{CG:()=>B,QO:()=>$,ZW:()=>v});var l=c(467),p=c(6796),E=c(8549),v=function(ne){return ne.TRAFFECTIVE_AD="traffective_ad",ne}(v||{});class U extends p.eE{constructor(te){super(),this.data=te}hasConsent(te){return this.vendorGrant(te)}getVendorGrant(te){return this.vendorGrant(te)}getPurposeGrants(te){return{}}vendorGrant(te){var me;return null===(me=this.data)||void 0===me||null===(me=me.consents)||void 0===me?void 0:me[te]}}class $ extends E.h{constructor(te,me,V){super("Traffective"),this.vendorId=te,this.endpoint=me,this.scriptConfiguration=V}isValidConfiguration(){return!!this.scriptConfiguration.properties}}class B extends E.B{addScriptToDocument(){var te=this;return(0,l.A)(function*(){te.getConfig().scriptConfiguration.isValidConfiguration()?yield te.includeConsentScript():console.warn("Script configuration is not valid!")})()}includeConsentScript(){var te=this;return(0,l.A)(function*(){const me=te;yield new Promise(V=>{const Z=document.createElement("script");Z.id="open-cmp-stub",Z.type="text/javascript",Z.src=te.getConfig().endpoint,Z.onload=()=>{window.__tcfapi("addEventListener",2,function(){var le=(0,l.A)(function*(Q,z){z?(console.debug("".concat(me.consentManagementPlatformConfiguration.identifier,", addEventListener, eventStatus: ").concat(Q.eventStatus)),("useractioncomplete"===Q.eventStatus||"tcloaded"===Q.eventStatus)&&(yield me.updateConsentInfo(new p.kn(Q),new U(Q.customVendors)),me.isCMPLoadedFirstTime()&&V())):console.warn("Script configuration is not valid!")});return function(Q,z){return le.apply(this,arguments)}}())},te.applyScriptConfiguration(Z,te.getConfig().scriptConfiguration),document.head.insertBefore(Z,document.head.firstChild)})})()}showPrivacyManager(){return(0,l.A)(function*(){return window.__tcfapi("showUi",2,function(){})})()}grantConsent(te){return(0,l.A)(function*(){})()}hasConsent(te){return v.TRAFFECTIVE_AD===te&&(te=this.getConfig().vendorId),super.hasConsent(te)}updateConsentInfo(te,me){var V=this;return(0,l.A)(function*(){console.debug("".concat(V.consentManagementPlatformConfiguration.identifier,", updateConsentInfo")),V.consentInfo.updateTCData(te),console.debug("".concat(V.consentManagementPlatformConfiguration.identifier,", updateConsentInfo, tcdata:"),te),V.consentInfo.updateCustomConsentData(me),console.debug("".concat(V.consentManagementPlatformConfiguration.identifier,", updateConsentInfo, customConsentData:"),me)})()}}},7574:(ee,_,c)=>{"use strict";c.d(_,{e:()=>w});var l=c(467),p=c(4438),E=c(177),v=c(4404),U=c(6796),$=c(8549);class B extends $.h{isValidConfiguration(){return!0}}class ne extends $.B{constructor(){super(new B("PXPDefault"))}addScriptToDocument(){return(0,l.A)(function*(){})()}showPrivacyManager(){return(0,l.A)(function*(){return{}})()}grantConsent(I){return(0,l.A)(function*(){})()}hasConsent(I){return!0}getConsent(I){return{vendorId:I.vendorId,vendorGrant:!0,purposeGrants:{}}}}class te extends U.eE{constructor(I){super(),this.data=I}hasConsent(I){return this.vendorGrant(I)}getVendorGrant(I){return this.vendorGrant(I)}getPurposeGrants(I){var S;return null===(S=this.data)||void 0===S?void 0:S.purposeConsents}vendorGrant(I){var S;return null===(S=this.data)||void 0===S||null===(S=S.vendorConsents)||void 0===S?void 0:S[I]}}class me extends $.h{constructor(I,S){super("ConsentManager"),this.scriptConfiguration=I,this.blockingScriptConfiguration=S}isValidConfiguration(){return!!this.scriptConfiguration.properties}}class V extends $.B{addScriptToDocument(){var I=this;return(0,l.A)(function*(){const S=I.getConfig().scriptConfiguration.isValidConfiguration(),N=I.getConfig().blockingScriptConfiguration.isValidConfiguration();S?(N&&I.includeBlockingScript(),yield I.includeConsentScript()):console.warn("Script configuration is not valid!")})()}includeBlockingScript(){const I=document.createElement("script");this.applyScriptConfiguration(I,this.getConfig().blockingScriptConfiguration),document.head.insertBefore(I,document.head.firstChild)}includeConsentScript(){var I=this;return(0,l.A)(function*(){const S=I;return new Promise(N=>{const W=document.createElement("script");W.onload=()=>{window.__cmp("addEventListener",["consent",(0,l.A)(function*(){console.debug("".concat(I.consentManagementPlatformConfiguration.identifier,", addEventListener, consent loaded")),yield S.updateConsentInfo(),S.isCMPLoadedFirstTime()&&N()}),!1],null)},I.applyScriptConfiguration(W,I.getConfig().scriptConfiguration),document.head.insertBefore(W,document.head.firstChild)})})()}showPrivacyManager(){return(0,l.A)(function*(){return window.__cmp("showScreen")})()}grantConsent(I){return(0,l.A)(function*(){var S;window.__cmp("setVendorConsent",[I.vendorId,1]),(null===(S=I.purposeIds)||void 0===S?void 0:S.length)>0&&I.purposeIds.forEach(N=>{window.__cmp("setPurposeConsent",[N,1])})})()}updateConsentInfo(){var I=this;return(0,l.A)(function*(){console.debug("".concat(I.consentManagementPlatformConfiguration.identifier,", updateConsentInfo"));const S=yield window.__cmp("getCMPData");console.debug("".concat(I.consentManagementPlatformConfiguration.identifier,", getCMPData, data:"),S),I.consentInfo.updateCustomConsentData(new te(S))})()}}var Z=c(3057);class le extends U.eE{constructor(I){super(),this.data=I}hasConsent(I){return this.vendorGrant(I)}getVendorGrant(I){return this.vendorGrant(I)}getPurposeGrants(I){var S;return null===(S=this.data)||void 0===S||null===(S=S.grants)||void 0===S||null===(S=S[I])||void 0===S?void 0:S.purposeGrants}vendorGrant(I){var S;return null===(S=this.data)||void 0===S||null===(S=S.grants)||void 0===S||null===(S=S[I])||void 0===S?void 0:S.vendorGrant}}class Q extends $.h{constructor(I,S,N,W,X,J){super("SourcePoint"),this.baseEndpoint=I,this.messagingLibraryEndpoint=S,this.accountId=N,this.propertyId=W,this.propertyName=X,this.privacyManagerId=J}isValidConfiguration(){return!!(this.baseEndpoint&&this.accountId&&this.propertyName&&this.privacyManagerId)}}class z extends $.B{addScriptToDocument(){var I=this;return(0,l.A)(function*(){Z(),I.includeClientConfigurationScript(),I.includeMessagingLibraryScript(),yield I.handleTFCEventListener()})()}includeClientConfigurationScript(){const I=document.createElement("script");I.type="text/javascript",I.innerHTML="\n window._sp_queue = [];\n window._sp_ = {\n config: {\n accountId: ".concat(this.getConfig().accountId,",\n baseEndpoint: '").concat(this.getConfig().baseEndpoint,"',\n propertyId: ").concat(this.getConfig().propertyId,",\n propertyHref: '").concat(this.getConfig().propertyName,"'\n },\n gdpr: {}\n };"),document.head.appendChild(I)}includeMessagingLibraryScript(){const I=document.createElement("script");I.type="text/javascript",I.async=!0,I.src=this.getConfig().messagingLibraryEndpoint,document.head.appendChild(I)}handleTFCEventListener(){var I=this;return(0,l.A)(function*(){const S=I;return new Promise(N=>{window.__tcfapi("addEventListener",2,function(){var W=(0,l.A)(function*(X,J){J?(console.debug("".concat(S.consentManagementPlatformConfiguration.identifier,", addEventListener, eventStatus: ").concat(X.eventStatus)),("useractioncomplete"===X.eventStatus||"tcloaded"===X.eventStatus)&&(yield S.updateConsentInfo(new U.kn(X)),S.isCMPLoadedFirstTime()&&N())):console.warn("Script configuration is not valid!")});return function(X,J){return W.apply(this,arguments)}}())})})()}showPrivacyManager(){const I=this.getConfig().privacyManagerId;return window._sp_.loadPrivacyManagerModal(I)}grantConsent(I){var S=this;return(0,l.A)(function*(){const N=S;yield window.__tcfapi("postCustomConsent",2,function(W,X){console.debug("".concat(N.consentManagementPlatformConfiguration.identifier,", postCustomConsent, success:"),X),console.debug("".concat(N.consentManagementPlatformConfiguration.identifier,", postCustomConsent, data:"),W),X&&N.consentInfo.updateCustomConsentData(new le(W))},[I.vendorId],I.purposeIds,[])})()}gdprRequired(){return!0}gdprAvailable(){return!!window._sp_.gdpr}updateConsentInfo(I){var S=this;return(0,l.A)(function*(){console.debug("".concat(S.consentManagementPlatformConfiguration.identifier,", updateConsentInfo")),S.consentInfo.updateTCData(I),console.debug("".concat(S.consentManagementPlatformConfiguration.identifier,", updateConsentInfo, tcdata:"),I);const N=S;yield window.__tcfapi("getCustomVendorConsents",2,function(W,X){console.debug("".concat(N.consentManagementPlatformConfiguration.identifier,", getCustomVendorConsents, success:"),X),console.debug("".concat(N.consentManagementPlatformConfiguration.identifier,", getCustomVendorConsents, data:"),W),X&&N.consentInfo.updateCustomConsentData(new le(W))})})()}}var Y=c(79);class ve{constructor(I,S){this.kioskConfigService=I,this.experienceConfigService=S,this.init$=new Promise(N=>this.resolveInitialization=N),this.init()}init(){var I=this;return(0,l.A)(function*(){const S=I.kioskConfigService.getConfig().subscribe(function(){var N=(0,l.A)(function*(W){const X=yield I.experienceConfigService.getExperienceConfig().toPromise();I.currentCMP=I.createCMP(W.kioskConfig.cmpProvider||(null==X?void 0:X.cmpProvider),W.kioskConfig,X),I.currentCMP.init$.then(()=>{I.resolveInitialization()}),S.unsubscribe()});return function(W){return N.apply(this,arguments)}}())})()}createCMP(I,S,N){switch(I){case"sourcepoint":{const He=new Q("https://cdn.privacy-mgmt.com","https://cdn.privacy-mgmt.com/wrapperMessagingWithoutDetection.js",parseInt(S.sourcePointAccountId,10),parseInt(S.sourcePointPropertyId,10),S.sourcePointPropertyName,S.sourcePointPrivacyManagerId);return new z(He)}case"consentmanager":{var W,X,J,Ce;const He=new me(new U.Wm(null===(W=N.consentManager)||void 0===W||null===(W=W.script)||void 0===W?void 0:W.properties,null===(X=N.consentManager)||void 0===X||null===(X=X.script)||void 0===X?void 0:X.content),new U.Wm(null===(J=N.consentManager)||void 0===J||null===(J=J.blockingScript)||void 0===J?void 0:J.properties,null===(Ce=N.consentManager)||void 0===Ce||null===(Ce=Ce.blockingScript)||void 0===Ce?void 0:Ce.content));return new V(He)}case"traffective":{var ue,ge,De;const He=new Y.QO(S.cmpVendorIdTraffectiveAd||(null==N||null===(ue=N.traffective_ad)||void 0===ue?void 0:ue.cmpVendorIdTraffectiveAd),"https://cdn.opencmp.net/tcf-v2/cmp-stub-latest.js",new U.Wm(null==N||null===(ge=N.traffectiveCmp)||void 0===ge||null===(ge=ge.script)||void 0===ge?void 0:ge.properties,null==N||null===(De=N.traffectiveCmp)||void 0===De||null===(De=De.script)||void 0===De?void 0:De.content));return new Y.CG(He)}default:return new ne}}}var pe=c(9118),fe=c(2884);let w=(()=>{var j;class I{constructor(N,W,X){this.kioskConfigService=N,this.experienceConfigService=W,this.platformId=X,this.init$=new Promise(J=>this.resolveInitialization=J),this.consentAwareSDKs=new Set,this.init()}init(){(0,E.UE)(this.platformId)?(this.CMPManager=new ve(this.kioskConfigService,this.experienceConfigService),this.CMPManager.init$.then(()=>{this.resolveInitialization()})):this.resolveInitialization()}registerConsentAwareSDK(N){this.consentAwareSDKs.add(N)}showPrivacyManager(){var N=this;return(0,l.A)(function*(){return N.CMPManager.currentCMP.showPrivacyManager()})()}hasConsent(N){return this.CMPManager.currentCMP.hasConsent(N)}getConsent(N){if(!N)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!N.vendorId)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};return this.CMPManager.currentCMP.getConsent(N)}grantConsent(N){var W=this;return(0,l.A)(function*(){if(!N)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!N.vendorId)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};if(W.CMPManager.currentCMP.gdprRequired()&&!W.CMPManager.currentCMP.gdprAvailable())throw{code:v.ERROR_CODE.UNKNOWN_CODE,message:"gdpr is not enabled"};yield W.CMPManager.currentCMP.grantConsent(N)})()}}return(j=I).\u0275fac=function(N){return new(N||j)(p.KVO(pe.x),p.KVO(fe.a),p.KVO(p.Agw))},j.\u0275prov=p.jDH({token:j,factory:j.\u0275fac,providedIn:"root"}),I})()},5483:(ee,_,c)=>{"use strict";c.d(_,{V:()=>we});var l=c(467),p=c(177),E=c(4438),v=c(4412),U=c(2771),$=c(1413),B=c(2806),ne=c(6780);let me,te=1;const V={};function Z(ye){return ye in V&&(delete V[ye],!0)}const le={setImmediate(ye){const ze=te++;return V[ze]=!0,me||(me=Promise.resolve()),me.then(()=>Z(ze)&&ye()),ze},clearImmediate(ye){Z(ye)}},{setImmediate:z,clearImmediate:Y}=le,ve={setImmediate(...ye){const{delegate:ze}=ve;return((null==ze?void 0:ze.setImmediate)||z)(...ye)},clearImmediate(ye){const{delegate:ze}=ve;return((null==ze?void 0:ze.clearImmediate)||Y)(ye)},delegate:void 0};var fe=c(9687);const j=new class w extends fe.q{flush(ze){this._active=!0;const Ye=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let Fe;ze=ze||be.shift();do{if(Fe=ze.execute(ze.state,ze.delay))break}while((ze=be[0])&&ze.id===Ye&&be.shift());if(this._active=!1,Fe){for(;(ze=be[0])&&ze.id===Ye&&be.shift();)ze.unsubscribe();throw Fe}}}(class pe extends ne.R{constructor(ze,Ye){super(ze,Ye),this.scheduler=ze,this.work=Ye}requestAsyncId(ze,Ye,be=0){return null!==be&&be>0?super.requestAsyncId(ze,Ye,be):(ze.actions.push(this),ze._scheduled||(ze._scheduled=ve.setImmediate(ze.flush.bind(ze,void 0))))}recycleAsyncId(ze,Ye,be=0){var Fe;if(null!=be?be>0:this.delay>0)return super.recycleAsyncId(ze,Ye,be);const{actions:he}=ze;null!=Ye&&(null===(Fe=he[he.length-1])||void 0===Fe?void 0:Fe.id)!==Ye&&(ve.clearImmediate(Ye),ze._scheduled===Ye&&(ze._scheduled=void 0))}});var S=c(9047),N=c(1184),W=c(873),X=c(4404),J=c(5964),Ce=c(6697),ue=c(7374),ge=c(9360),De=c(3178),He=c(7879),Oe=c(7467),it=c(8471);const Ze=(0,ge.zk)();let we=(()=>{var ye;class ze{constructor(be,Fe,he,Ne,st,R){this.platformId=be,this.route=Fe,this.router=he,this.document=Ne,this.purpleEnv=st,this.purpleService=R,this.viewContext={},this.outletContext={},this.viewContextSubject=new v.t(null),this.viewContextChangeSubject=new v.t(null),this.baseUrlSubject=new U.m(1),this.baseUrl$=this.baseUrlSubject.asObservable(),this.dataCollectionSubject=new v.t(null),this.moveToSlideSubject=new $.B,this.closeModalSubject=new $.B,this.closeModalCompleteSubject=new $.B,this.viewContext$=(0,B.H)(this.viewContextSubject.pipe((0,J.p)(A=>A)),j),this.viewContextChange$=(0,B.H)(this.viewContextChangeSubject.pipe((0,J.p)(A=>A)),j),this.activeTocItemSubject=new v.t(null),this.dataSources={},this.dataCollectionComponents={},this.metadata={},this.userAttributes=null,this.params={},this.removedParams=null,this.accountData={},this.navigationCount=0,this.cancellations$=new $.B,this.isCustomDomainUsedSubject=new U.m(1)}init(){this.route.queryParams.subscribe(be=>{this.removedParams={};for(let Fe in this.params)be[Fe]||(this.removedParams[Fe]=null);this.params=be,this.updateParamsContext()}),this.router.events.pipe((0,J.p)(be=>be instanceof S.wF)).subscribe(()=>{const be=this.getActiveOutlet();be!==this.activeOutlet&&(this.activeOutlet=be,this.notify(null))}),this.router.events.pipe((0,J.p)(be=>be instanceof S.Z&&!!this.router.getCurrentNavigation())).subscribe(()=>{var be;const Fe=this.router.getCurrentNavigation();null!==(be=Fe.extras)&&void 0!==be&&be.replaceUrl?"popstate"===Fe.trigger&&this.navigationCount>0&&this.navigationCount--:this.navigationCount++}),this.purpleService.getState("userAttributes").then(be=>{this.userAttributes=be?JSON.parse(be):{},this.notify({userAttributes:this.userAttributes})})}setData(be,Fe){this.viewContext[be]=Fe,this.notify({[be]:Fe})}toResourceUrl(be){if(this.purpleEnv.isUniversal){var Fe,he;const Ne=globalThis.appData;if(!Ne&&!this.metadata)return console.error("No metadata available for toResourceUrl"),be;const st=new URL(this.document.location.href).origin,R="".concat(this.getIsCustomerDomainUsed()?st:this.purpleEnv.KIOSK_BASE_URL,"/delivery"),A=null!==(Fe=null==Ne?void 0:Ne.preview)&&void 0!==Fe?Fe:"true"==this.metadata.preview_app||1==this.metadata.preview_app;return(0,De.q1)(null!==(he=this.metadata.app_id)&&void 0!==he?he:null==Ne?void 0:Ne.appWebConfig.id,R,be,A,this.dynamicResourcesVersion)}return be}setOutletData(be,Fe,he){this.outletContext[he]||(this.outletContext[he]={}),this.outletContext[he][be]=Fe,this.notify({[be]:Fe})}clearOutletData(be=this.getActiveOutlet(),Fe=null){Fe?be in this.outletContext&&delete this.outletContext[be][Fe]:(delete this.outletContext[be],delete this.dataSources[be],delete this.dataCollectionComponents[be])}setDataArray(be){let Fe={};be.forEach(({key:he,value:Ne})=>{this.viewContext[he]=Fe[he]=Ne}),this.notify(Fe)}setMultipleData(be,Fe){Object.keys(be).forEach(he=>{this.viewContext[he]=be[he]}),this.notify({...be,...null!=Fe?Fe:{}})}getCurrentViewContext(){return this.viewContextSubject.value}getCurrentViewContextChange(){return this.viewContextChangeSubject.value}notify(be,Fe){const he=Fe?this.getContext(Fe):this.getContext();(!Fe||Fe===S.Xk)&&this.setBodyAttributes(he),this.viewContextSubject.next(he),be&&this.viewContextChangeSubject.next({value:he,change:be})}setBodyAttributes(be){const Fe="data-storefront-",he=this.document.body;he.getAttributeNames().filter(Ne=>Ne.startsWith(Fe)).forEach(Ne=>this.document.body.removeAttribute(Ne)),Object.keys(be).forEach(Ne=>{if(be[Ne]){const st="object"==typeof be[Ne]?be[Ne].id:be[Ne];st&&he.setAttribute("".concat(Fe).concat(Ne),st)}})}registerDataSource(be,Fe){this.dataSources[Fe]||(this.dataSources[Fe]=[]),be.registered=!0,this.dataSources[Fe].push(be)}unregisterDataSource(be){Object.keys(this.dataSources).forEach(Fe=>{this.dataSources[Fe]&&(this.dataSources[Fe]=this.dataSources[Fe].filter(he=>he!==be))}),be.registered=!1,be.hasContextKey()?be.cleanupContextData():(0,p.Vy)(this.platformId)||this.notify(null)}getAllDataSources(){return Object.keys(this.dataSources).reduce((be,Fe)=>[...be,...this.dataSources[Fe]],[])}updateDataSources(){const be=this.getAllDataSources();return Promise.all(be.map(Fe=>Fe.update()))}getDataCollectionComponents(be){return this.dataCollectionComponents[be||this.getActiveOutlet()]||[]}registerDataCollectionComponent(be){const Fe=be.outlet||this.getActiveOutlet();this.dataCollectionComponents[Fe]||(this.dataCollectionComponents[Fe]=[]),this.dataCollectionComponents[Fe].push(be),be.getDependingDataCollections().filter(he=>he.getLatestData()).forEach(he=>{be.notifyHasData({component:he,data:he.getLatestData()})})}unregisterDataCollectionComponent(be){this.dataCollectionComponents[be.outlet]&&(this.dataCollectionComponents[be.outlet]=this.dataCollectionComponents[be.outlet].filter(Fe=>Fe!==be))}notifyContainerComponents(be){const Fe=this.getDataCollectionComponents(be.component.outlet);Fe&&Fe.forEach(he=>{var Ne;null!==(Ne=he.getDependingDataCollections())&&void 0!==Ne&&Ne.includes(be.component)&&he.notifyHasData(be)})}updateMetadata(){var be=this;return(0,l.A)(function*(){return be.metadata={...yield be.purpleService.getMetadata(),today:ue().format("YYYY-MM-DD"),connection_state:be.metadata.connection_state},yield be.purpleService.setState(W.sn,be.metadata[X.METADATA_KEY.ENTITLEMENT_TOKEN]),Object.keys(be.outletContext).forEach(Fe=>{be.notify(be.metadata,Fe)}),be.metadata})()}updateDeviceSettings(){if((0,p.UE)(this.platformId)){let be=(0,Oe.Y)().isDesktop?"desktop":"tablet",Fe="portrait";(Ze.innerWidth<533||Ze.innerHeight<533)&&"desktop"!==be&&(be="phone"),Ze.innerWidth>Ze.innerHeight&&(Fe="landscape"),this.setMultipleData({device_type:be,device_orientation:Fe,device_width:Ze.innerWidth,device_height:Ze.innerHeight})}}clear(){this.viewContext={userTags:this.viewContext.userTags},delete this.dataSources[this.getActiveOutlet()],this.updateDeviceSettings()}setMetadata(be,Fe){this.metadata[be]=Fe,this.notify({[be]:Fe})}setFullMetadata(be){this.metadata=be,this.notify(be)}getMetadata(){return{...this.metadata}}setUserAttribute(be,Fe){this.userAttributes||(this.userAttributes={}),this.userAttributes[be]=Fe,this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes}),this.getActiveOutlet()!==S.Xk&&this.notify({userAttributes:this.userAttributes},S.Xk)}setUserAttributes(be){Object.keys(be).forEach(Fe=>{this.userAttributes[Fe]=be[Fe]}),this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes})}getUserAttributes(){return{...this.userAttributes}}getAccountData(){return{...this.accountData}}setAccountData(be){this.accountData={...be},this.notify({accountData:this.accountData})}updateAccountData(){var be=this;return(0,l.A)(function*(){be.accountData=yield be.purpleService.getAccountUserData(),be.notify({accountData:be.accountData})})()}getActiveOutlet(){const be=this.route.children[this.route.children.length-1];return be?be.outlet:"primary"}set$Functions(be){this.$functions&&console.warn("set$Functions was called twice. This should only be called once at startup"),this.$functions=be}updateParamsContext(){var be=this;return(0,l.A)(function*(){let Fe=!1;const he=be.cancellations$.subscribe(()=>Fe=!0);try{var Ne;if(Fe)throw new Error("cancelled");const st=yield(0,N.nV)(be.purpleService,be.params,{});if(Fe)throw new Error("cancelled");let R={...null!==(Ne=be.removedParams)&&void 0!==Ne?Ne:{},...be.params};be.setMultipleData(st,R),be.removedParams=null}catch{}finally{he.unsubscribe()}})()}getParams(){return{...this.params}}update(){var be=this;return(0,l.A)(function*(){return Promise.all([be.updateMetadata(),be.updateParamsContext(),be.updateDataSources()])})()}setInitialUrl(be){this.initialUrl=be,this.notify({initialUrl:this.initialUrl})}getContext(be=this.getActiveOutlet()){return{...this.removedParams,...this.metadata,...this.params,...this.viewContext,...this.outletContext[be],initialUrl:this.initialUrl,userAttributes:this.userAttributes,accountData:this.accountData,outlet:be}}isLoggedIn(){const be=this.getMetadata(),Fe=this.getAccountData();return!!be.entitlement_token||!(!Fe||!Fe.token)}cancelPendingParamUpdates(){this.cancellations$.next()}setBrand(be){this.brand=be}getBrand(){return this.brand}setPath(be){if(void 0===this.getIsCustomerDomainUsed()&&console.error("ContextService: called setPath before setIsCustomerDomainUsed"),"string"==typeof be)this.path=be;else if("primary"===be.snapshot.outlet){const Fe=be.snapshot.url,he=Fe.slice(this.getIsCustomerDomainUsed()?0:1,Fe.length).map(Ne=>Ne.path).join("/")||"/";this.path=he}}getPath(){return this.path}setBaseUrl(be){this.baseUrl=be,this.baseUrlSubject.next(be)}getBaseUrl(){return this.baseUrl}setIsCustomerDomainUsed(be){this.isCustomDomainUsedSubject.next(be),this.isCustomerDomainUsed=be}getIsCustomDomainUsed(){return this.isCustomDomainUsedSubject.pipe((0,Ce.s)(1)).toPromise()}getIsCustomerDomainUsed(){return void 0===this.isCustomerDomainUsed&&console.debug("ACHTUNG getIsCustomerDomainUsed called before it was set"),this.isCustomerDomainUsed}setDynamicResourcesVersion(be){this.dynamicResourcesVersion=be}getDynamicResourcesVersion(){return this.dynamicResourcesVersion}getHomeUrl(){const be=new URL(Ze.location.href);return be.pathname=this.getIsCustomerDomainUsed()?"":be.pathname.split("/")[1]+"/",be.href}closeModal(be){this.closeModalSubject.next(be)}notifyAll(){this.notify({})}}return(ye=ze).\u0275fac=function(be){return new(be||ye)(E.KVO(E.Agw),E.KVO(S.nX),E.KVO(S.Ix),E.KVO(p.qQ),E.KVO(He.r6),E.KVO(it.Wj))},ye.\u0275prov=E.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"}),ze})()},8474:(ee,_,c)=>{"use strict";c.d(_,{j:()=>p});var l=c(4438);let p=(()=>{var E;class v{constructor(){this._params={embeddedParams:{}}}get embeddedParams(){return this._params.embeddedParams}set embeddedParams($){this._params.embeddedParams={...this._params.embeddedParams,...$}}}return(E=v).\u0275fac=function($){return new($||E)},E.\u0275prov=l.jDH({token:E,factory:E.\u0275fac}),v})()},9745:(ee,_,c)=>{"use strict";c.d(_,{H:()=>l,L:()=>p});var l=function(E){return E.COUPON="coupon",E.DELETE_ALL_BOOKMARKS="deleteAllBookmarks",E.EXTERNAL_LOGIN="externalLogin",E.LOGIN="login",E.LOGOUT="logout",E.NAVIGATE="navigate",E.OPEN_CONTENT="openContent",E.OPEN_URL="openUrl",E.POPUP="popup",E.PURCHASE="purchase",E.SUBSCRIBE="subscribe",E.REGISTER="register",E.RESTORE_PURCHASES="restorePurchases",E.SET_USER_ATTRIBUTE="setUserAttribute",E.SUBSCRIPTIONS="subscriptions",E.SET_CONTEXT_VARIABLES="setContextVariables",E}(l||{}),p=function(E){return E.SLIDE_IN="SLIDE_IN",E.POP_UP="POP_UP",E}(p||{})},8004:(ee,_,c)=>{"use strict";c.d(_,{G:()=>J});var l=c(467),p=c(177),E=c(4438),v=c(9047),U=c(4404),B=c(5846),ne=c(6843),te=c(873),me=c(8179),V=c(8471),Z=c(8075),le=c(4945),Q=c(610),z=c(3178),Y=c(5706),ve=c(8091),pe=c(4074),fe=c(4049),w=c(7879),j=c(9745),I=c(7010),S=c(20),N=c(5483),W=c(244),X=c(6889);let J=(()=>{var ge;class De{constructor(Oe,it,Ze,we,ye,ze,Ye,be,Fe,he){this.router=Oe,this.store=it,this.dialog=Ze,this.contextService=we,this.cleanUpService=ye,this.document=ze,this.purpleService=Ye,this.purpleEnv=be,this.urlResolverService=Fe,this.platformId=he,this.access={}}init(){var Oe=this;return(0,l.A)(function*(){(0,le.jZ)(ne.O.ACCESS)(Oe.store).subscribe(it=>Oe.access=it),(0,le.jZ)(ne.O.DOWNLOAD_OPTIONS)(Oe.store).subscribe(it=>Oe.downloadOptions=it),Oe.platform=(yield Oe.purpleService.getMetadata([U.METADATA_KEY.PLATFORM]))[U.METADATA_KEY.PLATFORM],Oe.displayMode=yield Oe.purpleService.getDisplayMode()})()}processEventAction(Oe,it,Ze){var we=this;return(0,l.A)(function*(){switch(Oe.type){case j.H.NAVIGATE:return we.processNavigateAction(Oe,it);case j.H.POPUP:return we.processPopupAction(Oe,it);case j.H.OPEN_CONTENT:return we.processOpenContentAction(Oe,it,Ze);case j.H.RESTORE_PURCHASES:return we.processRestorePurchasesAction(Oe,it);case j.H.LOGIN:return we.processLoginAction(Oe,it);case j.H.LOGOUT:return we.processLogoutAction(Oe);case j.H.SUBSCRIPTIONS:return we.processSubscriptionsAction(Oe,it);case j.H.COUPON:return we.processCouponAction(Oe,it);case j.H.SET_USER_ATTRIBUTE:return we.processSetUserAttributeAction(Oe,it,Ze);case j.H.REGISTER:return we.processRegisterAction(Oe,it);case j.H.OPEN_URL:return we.processOpenUrlAction(Oe);case j.H.DELETE_ALL_BOOKMARKS:return we.processDeleteAllBookmarks(Oe,it);case j.H.PURCHASE:return we.processPurchaseAction(Oe,it);case j.H.SUBSCRIBE:return we.processSubscribeAction(Oe,it);case j.H.EXTERNAL_LOGIN:return we.processExternalLoginAction(Oe,it);case j.H.SET_CONTEXT_VARIABLES:return we.setContextVariables(Oe)}})()}processOpenContentAction(Oe,it,Ze){var we=this;return(0,l.A)(function*(){const ye=be=>{(be.code===U.ERROR_CODE.PAYMENT_REQUIRED||be.code===U.ERROR_CODE.NO_ISSUES_FOUND)&&we.purpleService.invalidate(),we.dialog.alert({text:"ERROR_CONTENT_OPEN",args:[(0,ve.E2)(be,we.contextService)]},"DIALOG_ERROR")};if(!Oe.taxonomyId){let be;try{if(Oe.issueId)be=yield we.purpleService.getIssue(Oe.issueId).catch(()=>null),be||(be=yield we.purpleService.getCatalogContent(Oe.issueId).catch(()=>null));else{var ze,Ye;let he="";it.config&&(he=it.config.issueContextKey),null==he&&(he=it.config.contentContextKey);const Ne=it.getContext();be=null!==(ze=Ne[he])&&void 0!==ze?ze:null!==(Ye=Ne.issue)&&void 0!==Ye?Ye:Ne.content}if(!be)throw{code:U.ERROR_CODE.NO_ISSUES_FOUND}}catch(he){return void ye(he)}if((0,Y.xl)(be)&&we.cleanUpService.addIssue(be.id),yield(0,V.GA)(be,we.purpleService)){const he=Oe.fallback&&(0,me.v3)(Oe.fallback);if(he)return we.processEventAction(he,it,Ze)}if((0,Y.xl)(be))return we.openIssue(be,Oe,ye,it,Ze);{let he;if(Oe.bundle){const Ne=yield we.purpleService.getCatalogContent(Oe.bundle.bundleId).catch(()=>null);if(he=yield we.urlResolverService.getPathForContent(Ne),Oe.bundle.postId){const R=(yield we.purpleService.getCatalogContent(Oe.bundle.postId).catch(()=>null)).properties.slug;R&&(he="".concat(he,"/").concat(R))}}else he=yield we.urlResolverService.getPathForContent(be);return new Promise((Ne,st)=>{he?we.processEventAction({type:j.H.NAVIGATE,path:he},{getId:()=>it.getId(),getContext:()=>({preview:it.getContext().preview})},Ze).then(R=>Ne(R)).catch(R=>st(R)):(alert("No view to handle this post type found"),console.error("Failed to open",be),Ne({}))})}}try{const be=yield we.purpleService.getTaxonomy(Oe.taxonomyId,Oe.taxonomyType);if(be){const Fe=yield we.urlResolverService.getPathForTaxonomy(be);if("string"==typeof Fe)return we.processEventAction({type:j.H.NAVIGATE,path:Fe},it,Ze);throw{code:U.ERROR_CODE.NOT_FOUND,message:"Path for taxonomy ".concat(Oe.taxonomyId," can't be found. Is your app using the url.resolver.js feature?")}}throw{code:U.ERROR_CODE.NOT_FOUND,message:"Taxonomy ".concat(Oe.taxonomyId," can't be found.")}}catch(be){return void ye(be)}})()}openIssue(Oe,it,Ze,we,ye){var ze=this;return(0,l.A)(function*(){const Ye=yield(0,V.GA)(Oe,ze.purpleService);it.openCollection&&console.warn("[deprecated] OpenContentAction.openCollection is not supported for Issues from Template 10 on.");let be=Oe.id;if(Ye){const qe=(0,V.Kh)(be,ze.purpleService);qe&&!ze.purpleEnv.isUniversal&&(be=qe.id)}const Fe=yield ze.purpleService.getDownloadHandler(Oe);let he=yield(0,w.Lb)(it.openCollection?Fe:null==ye?void 0:ye.getData(),Oe,V.GA,ze.purpleService.PURPLE_CONTENT_CACHE,!ze.purpleService.downloadOptions.includeCoverOnOpen,ze.purpleService);(!he||!he.length)&&(he=[be]),(it.limit?(0,w.OU)(he,be,it.limit):he).filter(qe=>!!qe);const R=be;let A=null;null!=it.pageIndex&&(A={index:it.pageIndex}),it.elementAlias&&(A={...A,initialElement:{aliasOrId:it.elementAlias}});const L=Fe.getContentType();L!==B.rg.ISSUE&&console.error("Unsupported download handler content type ".concat(L,": expected ISSUE"));const G={type:L};G.optionalParams=(0,w.P8)((0,w.yC)(Oe,ze.purpleService.PURPLE_PUBLICATION_CACHE[Oe.publicationId])),Fe.issue&&(0,w.Gw)(L)&&(G.optionalParams={...G.optionalParams,...(0,w.P8)((0,w.bJ)(Fe.issue,ze.purpleService.PURPLE_PUBLICATION_CACHE[Fe.issue.publicationId],null,"SOURCE_"))});const K={issueIds:[be],initialIssue:{id:R,initialPage:A},config:ue(it),tracking:G},ce=Fe&&Fe.getAggregatedIssueState()||Oe.state;if(be===Oe.id&&(0,V.YH)(ce,Oe.type===U.IssueType.ISSUE))try{yield ze.dialog.confirm({text:"ISSUE_UPDATE_MESSAGE",args:[Oe.name]},"ISSUE_UPDATE_TITLE","ISSUE_UPDATE_NEW_VERSION","ISSUE_UPDATE_OLD_VERSION")}catch{K.skipSync=!0}if(!K.skipSync&&Fe){Fe.issueFilter&&Fe.syncLocalIssues();try{be===Oe.id&&ze.downloadOptions.downloadOnOpen&&ze.contextService.getMetadata().connection_state===U.CONNECTION_STATE.ONLINE&&(yield Fe.download(),K.skipSync=!0)}catch(qe){console.log("error updating download handler issues / starting download",qe)}}return ze.purpleService.openContent(K).then(qe=>qe,qe=>Ze(qe))})()}processNavigateAction(Oe,it){var Ze=this;return(0,l.A)(function*(){const we=it?it.getContext():Ze.contextService.getContext(),ye={queryParams:{...Ce(we),...Oe.params}},ze=Ze.contextService.getIsCustomerDomainUsed()?"":Ze.contextService.getBrand()+"/";let Ye;var be;(Oe.url||Oe.path)&&(Ye=(0,fe.K)(null!==(be=Oe.url)&&void 0!==be?be:Oe.path,we,!1),Oe.path&&Ye.startsWith("/")&&(Ye=Ye.substring(1))),Oe.mergeParams&&(ye.queryParamsHandling="merge");const Fe=(0,Z.ON)(Ze.router.routerState.snapshot.url);return(Oe.replaceUrl||Fe===Ye)&&(ye.replaceUrl=!0),Oe.url?Ze.router.navigateByUrl(Ye,ye):Ze.router.navigate(void 0!==Ye?[{outlets:{modal:null,[v.Xk]:ze+Ye}}]:[],ye)})()}processPopupAction(Oe,it){var Ze=this;return(0,l.A)(function*(){const we=it.getContext(),ye=(0,fe.K)(Oe.path,we);return Ze.router.navigate([{outlets:{modal:["popup",ye,Oe.animation||j.L.SLIDE_IN]}}],{queryParams:{...Ce(we),...Oe.params},queryParamsHandling:"merge"})})()}processRestorePurchasesAction(Oe,it){var Ze=this;return(0,l.A)(function*(){if(Oe.confirm)try{yield Ze.dialog.confirm("string"==typeof Oe.confirm?Oe.confirm:"RESTORE_PURCHASES_CONFIRM","RESTORE_PURCHASES")}catch{return Ze.dialog.alert("RESTORE_PURCHASES_FAILED","RESTORE_PURCHASES")}Ze.store.dispatch((0,Q.k4)({key:"RESTORE_PURCHASES_CLICKED"}));try{if(yield Ze.purpleService.restorePurchases(),Ze.contextService.setUserAttribute(te.h2,!0),yield Ze.dialog.alert("RESTORE_PURCHASES_SUCCEEDED","RESTORE_PURCHASES"),Ze.isModalRoundtrip())Ze.purpleService.closeView();else if(Oe.onSuccess)return Ze.processEventAction(Oe.onSuccess,it)}catch{return Ze.dialog.alert("RESTORE_PURCHASES_FAILED","RESTORE_PURCHASES")}})()}processLoginAction(Oe,it){var Ze=this;return(0,l.A)(function*(){switch(Ze.contextService.getMetadata()[U.METADATA_KEY.ENTITLEMENT_MODE]){case U.ENTITLEMENT_MODE.ENTITLEMENT:return Ze.processEventAction(Ze.access.loginAction,it);case U.ENTITLEMENT_MODE.OAUTH:return Ze.purpleService.login(null,null,Oe.params);default:return console.warn("No entitlement configured. Please check the Manager configuration."),Ze.processEventAction(Ze.access.loginAction,it)}})()}processLogoutAction(Oe){var it=this;return(0,l.A)(function*(){if(!Oe.confirm)return it.purpleService.logout();try{return yield it.dialog.confirm("LOGOUT_MESSAGE","LOGOUT_TITLE","LOGOUT_BUTTON_CONFIRM","LOGOUT_BUTTON_CANCEL"),it.purpleService.logout()}catch{}})()}processSubscriptionsAction(Oe,it){var Ze=this;return(0,l.A)(function*(){return Ze.processEventAction(Ze.access.subscriptionsAction,it)})()}processCouponAction(Oe,it){var Ze=this;return(0,l.A)(function*(){return Ze.processEventAction(Ze.access.couponsAction,it)})()}processSetUserAttributeAction(Oe,it,Ze){var we=this;return(0,l.A)(function*(){if(we.contextService.setUserAttribute(Oe.key,Oe.value),Oe.onFinished&&(0,p.UE)(we.platformId))return we.processEventAction(Oe.onFinished,it,Ze)})()}processRegisterAction(Oe,it){var Ze=this;return(0,l.A)(function*(){return Ze.processEventAction(Ze.access.registerAction,it)})()}processOpenUrlAction(Oe){var it=this;return(0,l.A)(function*(){const Ze=Oe.params&&Object.keys(Oe.params).reduce((we,ye)=>((0,me.ZY)({value:Oe.params[ye]})&&(we[ye]=Oe.params[ye]),we),{});it.purpleService.openActionUrl((0,z.LS)(Oe.url,Ze),!1,Oe.target)})()}processDeleteAllBookmarks(Oe,it){var Ze=this;return(0,l.A)(function*(){const we=it.getContext().issue,ye=function(){var ze=(0,l.A)(function*(){const Ye=we&&(yield Ze.purpleService.getPublication(we.publicationId));try{Ze.store.dispatch((0,Q.k4)(we?{key:"BOOKMARK_DELETE_ALL_OF_ISSUE_CLICKED",params:(0,w.bJ)(we,Ye)}:{key:"BOOKMARK_DELETE_ALL_CLICKED"}));let be=yield Ze.purpleService.getBookmarks();we&&(be=be.filter(Fe=>{var he;return Fe.issueId===we.id||(null===(he=Fe.customData)||void 0===he?void 0:he.sourceIssueId)===we.id})),yield Ze.purpleService.deleteBookmarks(be.map(Fe=>Fe.id)),Ze.store.dispatch((0,Q.k4)(we?{key:"BOOKMARK_DELETED_ALL_OF_ISSUE",params:(0,w.bJ)(we,Ye)}:{key:"BOOKMARK_DELETED_ALL"}))}catch(be){Ze.store.dispatch((0,Q.k4)(we?{key:"BOOKMARK_DELETE_ALL_OF_ISSUE_FAILED",params:(0,w.bJ)(we,Ye)}:{key:"BOOKMARK_DELETE_ALL_FAILED"})),Ze.dialog.alert({text:"ERROR_DELETE_ALL_BOOKMARKS",args:[(0,ve.E2)(be,Ze.contextService)]},"DIALOG_ERROR")}});return function(){return ze.apply(this,arguments)}}();if(!Oe.confirm)return ye();try{return we?yield Ze.dialog.confirm({text:"BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE",args:[we.name]},"BOOKMARK_DELETE_All_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"):yield Ze.dialog.confirm("BOOKMARK_DELETE_ALL_MESSAGE","BOOKMARK_DELETE_All_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"),ye()}catch{}})()}processPurchaseAction(Oe,it){var Ze=this;return(0,l.A)(function*(){const we=it.getTrackingParams();try{var ye,ze;Ze.store.dispatch((0,Q.k4)({key:"".concat(it.getTrackingBaseKey(),"_PURCHASE_CLICKED"),params:we}));const be={productId:Oe.productId};Oe.consumeOptions&&(0,w.E7)(window.purple.store,{major:2,minor:2},U.IntOperation.GREATER_THAN)&&(be.consumeOptions=Oe.consumeOptions);const Fe=yield null===(ye=window.storefrontHooks)||void 0===ye||null===(ze=ye.beforeContentPurchase)||void 0===ze?void 0:ze.call(ye,{actionConfig:Oe});var Ye;if("object"==typeof Fe&&!["continue","error","cancel"].includes(Fe.type)&&console.error("Result of storefront hook beforeContentPurchase should have a field type with values contine, error or cancel, got",Fe),"error"===(null==Fe?void 0:Fe.type)||"cancel"===(null==Fe?void 0:Fe.type))throw{code:"cancel"===Fe.type?U.ERROR_CODE.CANCELLED:null!==(Ye=Fe.code)&&void 0!==Ye?Ye:U.ERROR_CODE.UNKNOWN};const[he,Ne]=yield Promise.all([Ze.purpleService.purchase(be),Ze.purpleService.nextInvalidation()]);Ze.store.dispatch((0,Q.k4)({key:"".concat(it.getTrackingBaseKey(),"_PURCHASED"),params:we}));const st={key:"".concat(it.getTrackingBaseKey(),"_PURCHASED"),productId:Oe.productId,price:Oe.price,currencyCode:Oe.currency};he.transactionId&&(st.transactionId=he.transactionId),st.optionalParams=we,Ze.store.dispatch((0,Q.Du)({params:st})),Ze.isModalRoundtrip()?Ze.purpleService.closeView():Oe.onSuccess&&(yield Ze.processEventAction(Oe.onSuccess,it))}catch(be){console.warn(be),be.code&&be.code===U.ERROR_CODE.CANCELLED?Ze.store.dispatch((0,Q.k4)({key:"".concat(it.getTrackingBaseKey(),"_PURCHASE_CANCELLED"),params:we})):(Ze.store.dispatch((0,Q.k4)({key:"".concat(it.getTrackingBaseKey(),"_PURCHASE_FAILED"),params:we})),Oe&&Oe.showErrorDialog&&Ze.dialog.alert({text:"ERROR_PURCHASE",args:it.getErrorDialogArgs(be)},"DIALOG_ERROR"))}})()}processSubscribeAction(Oe,it){var Ze=this;return(0,l.A)(function*(){const we=it.getTrackingParams();try{var ye,ze,Ye;Ze.store.dispatch((0,Q.k4)({key:"SUBSCRIPTION_CLICKED",params:we}));const be=yield null===(ye=window.storefrontHooks)||void 0===ye||null===(ze=ye.beforeSubscriptionPurchase)||void 0===ze?void 0:ze.call(ye,{actionConfig:Oe});if("object"==typeof be&&!["continue","error","cancel"].includes(be.type)&&console.error("Result of storefront hook beforeSubscriptionPurchase should have a field type with values contine, error or cancel, got",be),"error"===(null==be?void 0:be.type)||"cancel"===(null==be?void 0:be.type))throw{code:"cancel"===be.type?U.ERROR_CODE.CANCELLED:U.ERROR_CODE.UNKNOWN};const Fe=yield Ze.purpleService.subscribe(Oe.productId,Oe.upgradeMode,Oe.offerId),Ne=(yield Ze.purpleService.getSubscriptions({})).nodes.find(A=>A.purchased&&A.productId===Fe.productId),st=null!=Ne&&null!==(Ye=Ne.currentReceiptInfo)&&void 0!==Ye&&Ye.isTrialPeriod?"SUBSCRIPTION_TRIAL_PURCHASED":"SUBSCRIPTION_PURCHASED";Ze.store.dispatch((0,Q.k4)({key:st,params:we})),Ze.purpleService.onMaybeSubscriptionsChanged();const R={key:st,productId:Oe.productId,price:Oe.price,currencyCode:Oe.currency};if(Fe.transactionId&&(R.transactionId=Fe.transactionId),R.optionalParams=we,Ze.store.dispatch((0,Q.Du)({params:R})),Ze.isModalRoundtrip())Ze.purpleService.closeView();else if(Oe.onSuccess)return Ze.processEventAction(Oe.onSuccess,it)}catch(be){be.code&&be.code===U.ERROR_CODE.CANCELLED?Ze.store.dispatch((0,Q.k4)({key:"SUBSCRIPTION_PURCHASE_CANCELLED",params:we})):(Ze.store.dispatch((0,Q.k4)({key:"SUBSCRIPTION_PURCHASE_FAILED",params:we})),Oe&&Oe.showErrorDialog&&Ze.dialog.alert({text:"ERROR_SUBSCRIPTION",args:it.getErrorDialogArgs(be)},"DIALOG_ERROR"))}})()}processExternalLoginAction(Oe,it){var Ze=this;return(0,l.A)(function*(){Ze.store.dispatch((0,Q.k4)({key:"EXTERNAL_LOGIN_CLICKED"}));try{Oe.onStart&&(yield Ze.processEventAction(Oe.onStart,it));const we=Oe.params?(0,z.LS)(Oe.url,Oe.params):Oe.url,ye=yield Ze.purpleService.performAuthentication(we,Oe.callbackParamName);let ze=ye.values[Oe.accountIdParamName||"userId"];if(!ze)throw{code:"No account ID found."};if(Oe.entitlementParamNames){const Fe=ye.values[Oe.entitlementParamNames.usernameKey],he=ye.values[Oe.entitlementParamNames.passwordKey]||te.B6,Ne=yield Ze.purpleService.login(Fe,he),st=(0,pe.$)(Ne.accessToken);Oe.entitlementParamNames.accountIdFromEntitlement&&(ze=st.sub)}const Ye=(0,pe.J)(ze),{token:be}=yield Ze.purpleService.getAccountUserData();if(be)try{console.debug("Old account token detected: "+be+", logging out"),yield Ze.purpleService.logoutAccount()}catch(Fe){console.warn("Logout before new login failed: ",Fe)}if(yield Ze.purpleService.loginAccount(Ye),Oe.assignLocalPurchases&&(yield Ze.purpleService.assignLocalPurchases(Oe.assignLocalPurchases)),yield Ze.contextService.updateAccountData(),Ze.store.dispatch((0,Q.k4)({key:"EXTERNAL_LOGIN_SUCCEEDED"})),Ze.isModalRoundtrip())Ze.purpleService.closeView();else if(Oe.onSuccess)return Ze.processEventAction(Oe.onSuccess,it)}catch(we){if(Ze.store.dispatch((0,Q.k4)({key:"EXTERNAL_LOGIN_CANCELLED"})),(0,me.v3)(Oe.closeOnModalCancel)&&Ze.isModalRoundtrip())Ze.purpleService.closeView();else{if(Oe.onCancel)return Ze.processEventAction(Oe.onCancel,it);Ze.dialog.alert({text:"ERROR_EXTERNAL_LOGIN",args:[we.code]},"DIALOG_ERROR"),console.log(we,Oe)}}})()}setContextVariables(Oe){const it=Oe.variables.map(Ze=>(0,me.v3)(Ze)).filter(Ze=>!!Ze);this.contextService.setDataArray(it)}isModalRoundtrip(){return(0,z.dg)(this.displayMode,this.document)}}return(ge=De).\u0275fac=function(Oe){return new(Oe||ge)(E.KVO(v.Ix),E.KVO(I.il),E.KVO(S.o),E.KVO(N.V),E.KVO(W.I),E.KVO(p.qQ),E.KVO(V.Wj),E.KVO(w.r6),E.KVO(X.K),E.KVO(E.Agw))},ge.\u0275prov=E.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"}),De})();function Ce(ge){const De={};return ge.issue&&(De.issue=ge.issue.id),ge.publication&&(De.publication=ge.publication.id),ge.category&&(De.category=ge.category.id),ge.brand&&(De.brand=ge.brand),ge.preview&&(De.preview=ge.preview),De}function ue(ge){let De=null;return ge.mode&&(De={...De,mode:ge.mode}),"titleBar"in ge&&(De={...De,titleBar:(0,me.v3)(ge.titleBar)}),De}},2884:(ee,_,c)=>{"use strict";c.d(_,{a:()=>me});var l=c(467),p=c(4438),E=c(177),v=c(5964),U=c(6697),$=c(4412),B=c(1652),ne=c(5483),te=c(2838);let me=(()=>{var Z;class le{constructor(z,Y,ve,pe,fe){this.document=z,this.globalService=Y,this.contextService=ve,this.resourceService=pe,this.platformId=fe,this.experienceConfigObservable=new $.t(null)}init(){var z=this;return(0,l.A)(function*(){let Y=z.globalService.getData("experienceConfig");if(!Y){try{yield z.contextService.updateMetadata();const ve=z.contextService.toResourceUrl("resource://dynamic/storefront/assets/experience.config.json");Y=(yield z.resourceService.getObject(ve))||{}}catch{Y={}}z.globalService.setData("experienceConfig",V.doMigration(Y))}z.experienceConfigObservable.next(Y),Y.language&&z.document.documentElement.setAttribute("lang",Y.language)})()}getExperienceConfig(){return this.experienceConfigObservable.asObservable().pipe((0,v.p)(z=>!!z),(0,U.s)(1))}}return(Z=le).\u0275fac=function(z){return new(z||Z)(p.KVO(E.qQ),p.KVO(B.d),p.KVO(ne.V),p.KVO(te.Q),p.KVO(p.Agw))},Z.\u0275prov=p.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}),le})();class V{static doMigration(le){return"consentManager"===le.cmpProvider&&(le.cmpProvider="consentmanager"),le}}},1652:(ee,_,c)=>{"use strict";c.d(_,{d:()=>v});var l=c(4438),p=c(8471);const E=(0,l.zw6)("globalScope");let v=(()=>{var U;class ${constructor(ne,te){this.transferState=ne,this.purpleService=te}setData(ne,te){this.global[ne]=te,this.transferState.onSerialize(E,()=>this.global)}getData(ne){var te;if(null!==(te=this.global)&&void 0!==te&&te[ne])return this.global[ne]}deleteData(ne){delete this.global[ne]}getGlobalData(){return this.global}init(){const ne=this.transferState.hasKey(E);this.global=ne?this.transferState.get(E,null):{}}}return(U=$).\u0275fac=function(ne){return new(ne||U)(l.KVO(l.pJN),l.KVO(p.Wj))},U.\u0275prov=l.jDH({token:U,factory:U.\u0275fac,providedIn:"root"}),$})()},2596:(ee,_,c)=>{"use strict";c.d(_,{A:()=>le,s:()=>Z});var l=c(467),p=c(9692),E=c(9047),v=c(5964),U=c(8075),$=c(9360),B=c(3178),ne=c(4438),te=c(1652);const me="GPT_SCRIPT",V=(0,$.YE)();let Z=(()=>{var Q;class z{constructor(ve,pe){let fe;this.router=ve,this.globalService=pe,this.queue=[],this.adRefreshObjects=new Map,this.debugMode=location.search.includes("debug=true"),this.router.events.pipe((0,v.p)(w=>w instanceof E.wF)).subscribe(w=>{const j=(0,U.ON)(w.urlAfterRedirects);fe&&j!==fe&&this.clear(),fe=j}),window.googletag=window.googletag||{cmd:[]}}startProcessing(){this.interval||(this.interval=(0,B.xQ)(()=>{this.processQueue()},100))}stopProcessing(){clearInterval(this.interval),delete this.interval}processQueue(){if(this.queue.length){const ve=this.queue.shift();window.googletag.cmd.push(()=>{let pe=this.adRefreshObjects.get(ve),fe=!0;var w;window.storefrontHooks&&window.storefrontHooks.beforeRenderAd&&(fe=null===(w=window.storefrontHooks)||void 0===w?void 0:w.beforeRenderAd({id:pe.id,slot:pe.slot,config:pe.config,refresh:!1})),fe&&(this.debugMode&&console.log("display ad: "+ve),window.googletag.display(ve))})}this.queue.length||this.stopProcessing()}setupScript(ve){var pe=this;return(0,l.A)(function*(){let fe=V.getElementById(me);if(!fe){var w;fe=V.createElement("script"),window.googletag.cmd=null!==(w=window.googletag.cmd)&&void 0!==w?w:[],yield new Promise(N=>{fe.onload=N,fe.setAttribute("id",me),fe.setAttribute("async","true");const W=ve.domain?"&domain=".concat(ve.domain):"",X=ve.networkCode.indexOf(",")<0?"?network-code=".concat(ve.networkCode)+W:"";fe.setAttribute("src","https://securepubads.g.doubleclick.net/tag/js/gpt.js".concat(X)),V.head.appendChild(fe)});try{var j,I;null===(j=window.storefrontHooks)||void 0===j||null===(I=j.onAdInit)||void 0===I||I.call(j)}catch(N){console.error("Error in onAdInit hook:",N)}const S=pe;window.googletag.cmd.push(()=>{window.googletag.pubads().setCentering(!0),window.googletag.pubads().collapseEmptyDivs(),window.googletag.enableServices(),pe.globalRefreshInterval=(0,B.xQ)(function(){S.refreshAds()},1e3),window.googletag.pubads().addEventListener("slotOnload",N=>{var W;pe.debugMode&&console.log("slot onload: "+N.slot.getSlotElementId()),null===(W=pe.adRefreshObjects.get(N.slot.getSlotElementId()))||void 0===W||W.onLoad()}),window.googletag.pubads().addEventListener("slotRenderEnded",N=>{pe.debugMode&&(console.group("Slot",N.slot.getSlotElementId(),"finished rendering."),console.log("Advertiser ID:",N.advertiserId),console.log("Campaign ID: ",N.campaignId),console.log("Creative ID: ",N.creativeId),console.log("Is empty?:",N.isEmpty),console.log("Line Item ID:",N.lineItemId),console.log("Size:",N.size),console.log("Source Agnostic Creative ID:",N.sourceAgnosticCreativeId),console.log("Source Agnostic Line Item ID:",N.sourceAgnosticLineItemId),console.groupEnd());const W=pe.adRefreshObjects.get(N.slot.getSlotElementId());W&&(W.onRenderEnded(),W.loaded=!0)})})}})()}isInView(ve){var pe=ve.getBoundingClientRect();return pe.top>=0&&pe.left>=0&&pe.bottom<=(window.innerHeight||V.documentElement.clientHeight)&&pe.right<=(window.innerWidth||V.documentElement.clientWidth)}refreshAds(){try{var ve,pe;if("hidden"===V.visibilityState||null!==(ve=(pe=window.storefrontHooks).isAdRefreshPaused)&&void 0!==ve&&ve.call(pe))return}catch(j){console.error("Error in isAdRefreshPaused hook:",j)}const fe=V.querySelectorAll('div[id^="div-gpt"]'),w=[];if(fe.forEach(j=>{const I=j.getAttribute("id");if(this.adRefreshObjects.has(I)&&this.isInView(j)){const S=this.adRefreshObjects.get(I);S.loaded&&S.refreshSeconds&&--S.countDown<=0&&(w.push(S),S.countDown=S.refreshSeconds,S.slot.getTargeting("ad-refresh").length&&S.slot.setTargeting("ad-refresh","true"))}}),w.length>0){let j=[];w.forEach(I=>{(!window.storefrontHooks||!window.storefrontHooks.beforeRenderAd||window.storefrontHooks.beforeRenderAd({id:I.id,slot:I.slot,config:I.config,refresh:!0}))&&j.push(I.id)}),j.length>0&&(this.debugMode&&console.log("refresh: "+JSON.stringify(j)),window.googletag.cmd.push(()=>{window.googletag.pubads().refresh(j)}))}}clear(){this.stopProcessing(),this.queue=[],window.googletag.cmd.push(()=>{this.debugMode&&console.log("destroy all slots"),window.googletag.destroySlots()}),this.adRefreshObjects.clear()}mapOutOfPageFormat(ve,pe){switch(pe){case p.q.BOTTOM_ANCHOR:return window.googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR;case p.q.INTERSTITIAL:return window.googletag.enums.OutOfPageFormat.INTERSTITIAL;case p.q.REWARDED:return window.googletag.enums.OutOfPageFormat.REWARDED;case p.q.TOP_ANCHOR:return window.googletag.enums.OutOfPageFormat.REWTOP_ANCHORARDED;default:return ve}}showAd(ve,pe,fe,w,j,I){this.setupScript(pe);const S=w.offsetWidth,N=pe.sizes.sort((W,X)=>{const Ce=X[0];return Math.abs(S-W[0])-Math.abs(S-Ce)});window.googletag.cmd.push(()=>{var W;this.debugMode&&console.log("define slot: "+ve+" => "+"/".concat(pe.networkCode,"/").concat(pe.adUnitCode));const X=pe.outOfPageSlot?window.googletag.defineOutOfPageSlot("/".concat(pe.networkCode,"/").concat(pe.adUnitCode),this.mapOutOfPageFormat(ve,pe.outOfPageFormat)):window.googletag.defineSlot("/".concat(pe.networkCode,"/").concat(pe.adUnitCode),N,ve);if(!X)return void console.warn("defineSlot didn't create a slot for id "+ve);if(fe){const Ce=fe.mappings.map(ue=>[ue.viewPortSize,ue.adSizes]);X.defineSizeMapping(Ce)}pe.targeting&&(pe.targeting.forEach(Ce=>{X.setTargeting(Ce.key,Ce.value)}),this.debugMode&&console.log("set targeting: "+JSON.stringify(pe.targeting))),X.addService(window.googletag.pubads()),this.queue.push(ve),this.startProcessing();const J=pe.refreshSeconds||(null===(W=this.globalService.global.experienceConfig)||void 0===W?void 0:W.gadRefresh);this.adRefreshObjects.set(ve,{id:ve,countDown:J,refreshSeconds:J,slot:X,config:pe,onLoad:j,onRenderEnded:I})})}removeAd(ve){this.queue=this.queue.filter(fe=>fe!==ve);let pe=this.adRefreshObjects.get(ve);pe&&(window.googletag.cmd.push(()=>{const fe=window.googletag.destroySlots([pe.slot]);this.debugMode&&console.log("destroy slot "+ve+" => "+fe)}),this.adRefreshObjects.delete(ve))}}return(Q=z).\u0275fac=function(ve){return new(ve||Q)(ne.KVO(E.Ix),ne.KVO(te.d))},Q.\u0275prov=ne.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"}),z})();class le{constructor(z){this.router=z}clear(){}showAd(z,Y,ve,pe,fe){}removeAd(z){}startProcessing(){}}},24:(ee,_,c)=>{"use strict";c.d(_,{j:()=>E});var l=c(177),p=c(4438);let E=(()=>{var v;class U{constructor(B){this.platformId=B,this.registeredComponents=new Map,this.onRegister$=new p.bkB,this.onDestroy$=new p.bkB,(0,l.UE)(B)&&(window.experienceInspector=this)}isComponentRegistered(B){return B.__registered}getComponent(B){return this.registeredComponents.get(B)}registerComponent(B,ne){this.isComponentRegistered(ne)||(ne.__registered=!0,this.registeredComponents.set(B,ne),this.onRegister$.emit({component:ne,domElement:B}))}unregisterComponent(B){const ne=this.getComponent(B);ne&&(ne.__registered=!1,this.registeredComponents.delete(B),this.onDestroy$.emit({component:ne,domElement:B}))}}return(v=U).\u0275fac=function(B){return new(B||v)(p.KVO(p.Agw))},v.\u0275prov=p.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),U})()},9118:(ee,_,c)=>{"use strict";c.d(_,{x:()=>Bn});var l=c(467),p=c(177),E=c(4438),v=c(4412),U=c(2771),$=c(1413),B=c(4843),ne=c(5964),te=c(6697),me=c(3178),V=c(7879),Z=c(7370),le=c(5483),Q=c(2838),z=c(345),Y=c(1652);const ve=(0,E.zw6)("rawAppProperties"),zt=[{key:"app_version_title_web",de:"App Version",en:"App version"},{key:"category_choose_web",de:"\xdcbernehmen",en:"Choose"},{key:"category_subtitle_web",de:"W\xe4hlen Sie Ihre gew\xfcnschte Kategorie:",en:"Choose your desired category:"},{key:"category_title_web",de:"Kategorie",en:"Category"},{key:"connection_web",de:"Verbindung",en:"Connection"},{key:"device_id_title_web",de:"Ger\xe4te-ID",en:"Device ID"},{key:"device_title_web",de:"Ger\xe4t",en:"Device"},{key:"device_model_web",de:"Ger\xe4te-Modell",en:"Device model"},{key:"dialog_file_invalid_message_web",de:"Die Datei %s in den dynamischen Ressourcen ist nicht valide. Bitte \xfcberpr\xfcfen Sie Format und Syntax.",en:"The file %s within the dynamic resources is not valid. Please check for proper syntax and format."},{key:"dialog_app_menu_invalid_message_web",de:'Sie verwenden im Men\xfc inkompatible Deeplinks/ Action URLs, die im Purple Web Kiosk nicht verf\xfcgbar sind. Eine entsprechende Liste kann der <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">Dokumentation</a> entnommen werden.',en:'You are using incompatible deep links / action URLs within the menu that are not available for the Purple web newsstand. A list of those deep links you find in our <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">documentation</a>.'},{key:"entitlement_error_unknown_web",de:"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es noch einmal.",en:"An error occurred. Please try again."},{key:"entitlement_error_wrong_credentials_web",de:"Die eingegebenen Zugangsdaten sind nicht richtig.",en:"The credentials are not valid."},{key:"entitlement_error_user_deactivated_web",de:"Ihr Account ist deaktiviert worden. Bitte nehmen Sie Kontakt mit dem Support auf.",en:"Your account has been deactivated. Please contact the support team."},{key:"entitlement_error_authentication_error_web",de:"Falsche E-Mail-Eingabe. Bitte \xfcberpr\xfcfen Sie Ihre Eingabe.",en:"Incorrect email address. Please check your credentials."},{key:"entitlement_error_installation_limit_exceeded_web",de:"Sie haben die maximalen Ger\xe4te\u2010Aktivierungen f\xfcr Ihren VIP-Account erreicht.",en:"You have reached the maximum number of devices you can register for your Great Magazines account."},{key:"entitlement_error_system_web",de:"Es ist ein Systemfehler aufgetreten. Bitte versuchen Sie es in einigen Minuten noch einmal oder kontaktieren Sie uns.",en:"A system error occurred. Please try again later or contact our support team."},{key:"entitlement_error_parameter_web",de:"Es ist ein Parameter-Fehler aufgetreten. Bitte versuchen Sie es in einigen Minuten noch einmal oder kontaktieren Sie uns.",en:"A parameter error occurred. Please try again later or contact our support team."},{key:"error_invalid_code_web",de:"Der eingegebene Gutscheincode nicht g\xfcltig",en:"The code you have entered is not valid"},{key:"error_invalid_receipt_web",de:"Der \xfcbergebene Token ist nicht g\xfcltig",en:"The code you have entered is not valid"},{key:"error_invalid_remote_token_web",de:"Der \xfcbergebene Token ist nicht g\xfcltig",en:"The receipt is not valid"},{key:"error_issue_not_available_web",de:"Diese Ausgabe ist nicht verf\xfcgbar",en:"This issue is not available"},{key:"error_unknown_web",de:"Es ist ein unbekannter Fehler aufgetreten",en:"An unknown error occured."},{key:"issue_pages_web#one",de:"%1$s Seite",en:"%1$s Page"},{key:"issue_pages_web#other",de:"%1$s Seiten",en:"%1$s Pages"},{key:"issue_read_web",de:"Lesen",en:"Read"},{key:"issue_purchase_web",de:"Kaufen",en:"Buy"},{key:"issue_preview_web",de:"Vorschau",en:"Preview"},{key:"issue_login_web",de:"Anmelden",en:"Login"},{key:"loading_title_web",de:"",en:""},{key:"login_cancel_web",de:"Abbrechen",en:"Cancel"},{key:"login_code_placeholder_web",de:"Coupon Code",en:"Coupon Code"},{key:"login_get_code_web",de:"Sie haben noch keinen Zugang? Klicken Sie <a href=\u201ehttp://www.sprylab.com\u201c>hier</a>",en:"Don\u2019t have any login details yet? Click <a href=\u201ehttp://www.sprylab.com\u201c>here</a>"},{key:"login_howto_web",de:"<b>So funktioniert es:</b><br />Geben Sie hier bitte Ihre Zugangsdaten ein, um die Inhalte zu lesen.",en:"<b>This is how it works:</b><br/> User your login details to access the contents."},{key:"login_login_web",de:"Anmelden",en:"Login"},{key:"login_no_get_code_web",de:"Die App k\xf6nnen Sie nat\xfcrlich auch im Apple App Store und Google Play herunterladen!",en:"You can download the app in Apple App Store or Google Play too!"},{key:"login_password_placeholder_web",de:"Passwort",en:"Password"},{key:"login_subtitle_web",de:"Ver\xf6ffentlichen Sie ihre App-Inhalte im Browser!<br /><br /> Egal ob PDF oder Magazine: Die Darstellung der Inhalte erfolgt ohne weitere Arbeitsaufw\xe4nde und in gewohnter App-Qualit\xe4t.",en:"Make your app contents available in web browsers! <br><br/> No matter if PDF or magazine: Your contents will be displayed in the same quality with no additional work to be done."},{key:"login_title_web",de:"Ihre App Inhalte im Purple DS | Web Kiosk",en:"Your contents in Purple DS | Web Newsstand"},{key:"login_username_placeholder_web",de:"Nutzername",en:"Username"},{key:"manufacturer_web",de:"Hersteller",en:"Manufacturer"},{key:"menu_code_web",de:"Code",en:"Code"},{key:"menu_login_web",de:"Anmelden",en:"Login"},{key:"menu_logout_web",de:"Abmelden",en:"Logout"},{key:"menu_title_web",de:"",en:""},{key:"menu_feedback_web",de:"Feedback",en:"Feedback"},{key:"menu_subscription_web",de:"Abo",en:"Subscription"},{key:"menu_download_web",de:"PDF Herunterladen",en:"PDF Download"},{key:"menu_download_single_web",de:"Einzelseite herunterladen",en:"Download single page"},{key:"menu_download_single_left_web",de:"Linke Seite herunterladen",en:"Download left page"},{key:"menu_download_single_right_web",de:"Rechte Seite herunterladen",en:"Download right page"},{key:"menu_download_full_web",de:"Gesamtes PDF Herunterladen",en:"Download full PDF"},{key:"os_version_web",de:"OS-Version",en:"OS version"},{key:"version_title_web",de:"Version",en:"Version"},{key:"table_of_contents_web",de:"Inhaltsverzeichnis",en:"Table of contents"},{key:"cookie_info_text_web",de:"Wir verwenden Cookies, um unsere Website f\xfcr Sie zu optimieren. Mit der weiteren Nutzung dieser Website erkl\xe4ren Sie sich damit einverstanden.",en:"We use cookies to optimize our website for you. By continuing to use this website, you agree to this."},{key:"cookie_info_link_text_web",de:"Mehr Infos",en:"More Info"},{key:"cookie_info_link_href_web",de:"https://sprylab.com/cookie-policy/",en:"https://sprylab.com/cookie-policy/"},{key:"cookie_info_button_text_web",de:"OK",en:"OK"},{key:"sharing_link_web_text_web",de:"Zum Web Kiosk",en:"Open Web Newsstand"},{key:"sharing_link_custom_text_web",de:"Zur Website",en:"Open website"},{key:"sharing_link_custom_href_web",de:"https://sprylab.com",en:"https://sprylab.com"}];var fn=function(Cn){return Cn.FIT_INSIDE="fitInside",Cn.MAGAZINE="magazine",Cn}(fn||{}),or=function(Cn){return Cn.SELF="self",Cn.BLANK="blank",Cn.PARENT="parent",Cn.POST_MESSAGE="postMessage",Cn}(or||{});let Bn=(()=>{var Cn;class yn{constructor(Wt,Xt,sn,tn,jn,Sn,Ht,On,Gn){this.document=Wt,this.transferState=Xt,this.contextService=sn,this.resourceService=tn,this.host=jn,this.purpleEnv=Sn,this.platformId=Ht,this.titleService=On,this.globalService=Gn,this.configObservable=new v.t(null),this.appPropertiesSubject=new U.m(1),this.titleSubject=new $.B}getConfig(){return this.configObservable.asObservable().pipe((0,ne.p)(Wt=>!!Wt),(0,te.s)(1))}loadConfig(){var Wt=this;return(0,l.A)(function*(){let Xt=Wt.globalService.getData("appProperties"),sn=Wt.transferState.get(ve,void 0);if(!Xt||!sn){const tn=(0,Z.bU)(Wt.document.location.href);let jn=Wt.host;Wt.host||(jn=Wt.document.location.host);const Ht=(yield(0,V.RX)(jn,Wt.contextService.getBrand(),Wt.transferState,Wt.contextService,tn)).id,On="".concat(Wt.purpleEnv.MANAGER_BASE_URL,"/delivery");sn=yield Wt.resourceService.getObject("".concat(On,"/web/properties/").concat(Ht)),Wt.transferState.set(ve,sn),Xt=yield Wt.propertiesToConfig(Ht,tn,On,sn),Wt.changeFavicon(),Xt.messages=Wt.getDefaultMessages(),Wt.globalService.setData("appProperties",Xt)}Wt.configObservable.next({kioskConfig:Xt}),Wt.appPropertiesSubject.next(sn),Wt.titleSubject.subscribe(tn=>{var jn;(tn=tn||(null===(jn=Xt)||void 0===jn?void 0:jn.appName))&&Wt.titleService.setTitle(tn)})})()}propertiesToConfig(Wt,Xt,sn,tn){var jn=this;return(0,l.A)(function*(){const Sn=jn.contextService.getDynamicResourcesVersion(),Ht={};Ht.appId=Wt,Ht.appName=tn.app_name||"",Ht.preview=Xt,Ht.deviceId="web",Ht.messagesUrl="".concat(sn,"/web/translations/").concat(Wt,"?preview=").concat(Xt),Ht.stylesUrl=tn.web_kiosk_styles_url||"".concat(sn,"/web/dynamicResources/").concat(Wt,"/webkiosk.css?preview=").concat(Xt,"&version=").concat(Sn),(tn.fonts_archive||"").length>0&&(Ht.fontsUrl="".concat(sn,"/web/app/resource/").concat(Wt,"/fonts.css?preview=").concat(Xt,"&platform=web&deviceId=web")),Ht.globalFontsUrl="".concat(sn,"/web/global/resource/").concat(Wt,"/fonts.css?preview=").concat(Xt,"&platform=web&deviceId=web"),Ht.resourceBaseUrl=jn.purpleEnv.KIOSK_BASE_URL+"/delivery/web/dynamicResources/"+Wt+"/",Ht.resourcesVersion=Sn,Ht.contentFitStrategy=tn.web_kiosk_content_fit_strategy||tn.PRESENTER_CONTENT_FIT_STRATEGY||fn.FIT_INSIDE,Ht.contentMaxWidth=tn.web_kiosk_content_max_width||"",Ht.deliveryUrl=sn,Ht.presenterBaseUrl=jn.purpleEnv.KIOSK_BASE_URL+"/delivery/web/resource",Ht.presenterContentUrl=jn.purpleEnv.KIOSK_BASE_URL+"/delivery/web/content",Ht.attachmentBaseUrl=sn+"/web/attachment/"+Wt+"/",Ht.deviceClassUrl=sn+"/config/deviceclasses",Ht.useFeedbackMail=tn.web_kiosk_feedback_mail||!1,Ht.showPurchasableIssues=tn.web_kiosk_show_purchasable_issues||!1,Ht.purchaseUrl=jn.getDynamicResourcesUrl(Wt,sn,tn.web_kiosk_purchase_url||""),Ht.purchasePreviewUrl=jn.getDynamicResourcesUrl(Wt,sn,tn.web_kiosk_purchase_preview_url||""),Ht.subscriptionUrl=jn.getDynamicResourcesUrl(Wt,sn,tn.web_kiosk_subscription_url||""),Ht.forcePurchase=tn.web_kiosk_force_purchase||!1,Ht.loginUrl=jn.getDynamicResourcesUrl(Wt,sn,tn.web_kiosk_login_url||tn.kiosk_entitlement_custom_ui_login_url||""),Ht.logoutUrl=jn.getDynamicResourcesUrl(Wt,sn,tn.web_kiosk_logout_url||""),Ht.appResourceBaseUrl=sn+"/web/app/resource/"+Wt+"/",Ht.pageTitle=tn.web_kiosk_title||"Purple Web Kiosk",Ht.metaDescription=tn.web_kiosk_description||null,Ht.pageHeading=tn.web_kiosk_heading||null,Ht.logoUrl=tn.web_kiosk_logo_url||null,Ht.metaRobots=tn.web_kiosk_robots||null,Ht.metaCanonicalUrl=tn.web_kiosk_canonical_url||null,Ht.oauthUrl=sn+"/entitlement/oauth/login?appId="+Wt+"&preview="+Xt+"&platform=web",Ht.oauthRefreshUrl=sn+"/entitlement/oauth/refresh?appId="+Wt+"&preview="+Xt,Ht.cookieBannerEnabled=tn.web_kiosk_cookie_banner_enabled||!0,Ht.contentOpenTarget=tn.web_kiosk_content_open_target||or.SELF,Ht.initialDynamicPath=tn.app_initial_screen_url||null,Ht.downloadFileName=tn.web_kiosk_download_file_name||"publication_issue",Ht.trackingAtinternetEnabled=tn.tracking_atinternet_enabled||!1,Ht.trackingChartbeatEnabled=tn.tracking_chartbeat_enabled||!1,Ht.trackingChartbeatAccountId=tn.tracking_chartbeat_account_id||"",Ht.trackingChartbeatSiteId=tn.tracking_chartbeat_site_id||"",Ht.trackingGoogleAnalytics4Enabled=tn.tracking_google_analytics_4_enabled||!1,Ht.trackingGoogleAnalytics4Id=tn.tracking_google_analytics_4_id||"";const On=tn.app_cmp_provider_name||null;return null!=On&&(Ht.cmpProvider=On,Ht.cmpVendorIdAtInternet=tn.cmp_vendor_id_atinternet||null,Ht.cmpVendorIdChartbeat=tn.cmp_vendor_id_chartbeat||null,Ht.cmpVendorIdGoogleAnalytics=tn.cmp_vendor_id_google_firebase||null,"sourcepoint"===On&&(Ht.sourcePointAccountId=tn.cmp_sourcepoint_account_id||null,Ht.sourcePointPropertyId=tn.cmp_sourcepoint_property_id||null,Ht.sourcePointPropertyName=tn.cmp_sourcepoint_property_name||null,Ht.sourcePointPrivacyManagerId=tn.cmp_sourcepoint_privacy_manager_id||null)),"none"===Ht.cmpProvider&&(Ht.cmpProvider=null),Ht})()}getResource(Wt,Xt){var sn=this;return(0,l.A)(function*(){const tn=yield(0,B._)(sn.getConfig()),jn=Xt?sn.resourceService.getObject:sn.resourceService.getString,Sn=(0,Z.vA)((0,Z.bU)(sn.document.location.href),sn.purpleEnv,sn.contextService),Ht="".concat(tn.kioskConfig.resourceBaseUrl).concat(Wt).concat(Sn);return yield jn.apply(sn.resourceService,[Ht.toString()])})()}getDynamicResourcesUrl(Wt,Xt,sn){return null==sn||0===sn.length||sn.startsWith("http://")||sn.startsWith("https://")||sn.startsWith("purple://")?sn:Xt+"/web/dynamicResources/"+Wt+"/"+sn}getDefaultMessages(){const Wt=this.isGerman();return zt.reduce((Xt,sn)=>({...Xt,[sn.key]:sn[Wt?"de":"en"]}),{})}isGerman(){if(window.navigator.languages&&window.navigator.languages.length){for(const Wt of window.navigator.languages){if("de"===Wt||0===Wt.indexOf("de-"))return!0;if("en"===Wt||0===Wt.indexOf("en-"))return!1}return!1}{const Wt=(0,me.JK)();return"de"===Wt||0===Wt.indexOf("de-")}}changeFavicon(){var Wt=this;return(0,l.A)(function*(){if((0,p.Vy)(Wt.platformId)){var Xt;let sn=null!==(Xt=Wt.host)&&void 0!==Xt?Xt:Wt.document.location.host;const tn=Wt.contextService.getParams(),jn=yield(0,V.RX)(sn,Wt.contextService.getBrand(),Wt.transferState,Wt.contextService,tn.preview);if(null!=jn&&jn.favicons&&jn.favicons[0]){let Sn=Wt.document.querySelector("#appIcon");if(Sn.href=jn.favicons[0].url,Sn.type=jn.favicons[0].mimeType,null!=jn&&jn.favicons[1]){let Ht=Wt.document.querySelector("#another-appIcon");Ht||(Ht=Wt.document.createElement("link"),Sn.parentNode.insertBefore(Ht,Sn.nextSibling)),Ht.rel="icon",Ht.id="another-appIcon",Ht.href=jn.favicons[1].url,Ht.type=jn.favicons[1].mimeType}}}})()}getAppProperties(){return this.appPropertiesSubject.asObservable()}setTitle(Wt){this.titleSubject.next(Wt)}setMetadata(Wt,Xt=!1,sn=!1){var tn,jn;if((Wt||sn)&&(this.metaData&&!(0,p.Vy)(this.platformId)||!sn)){if(Wt=null!==(tn=Wt)&&void 0!==tn?tn:this.metaData,!Xt&&null!==(jn=this.document)&&void 0!==jn&&jn.location&&this.purpleEnv.isUniversal&&!sn){const Sn=new URL(this.document.location.href);let Ht=this.document.location.pathname;Ht.length>0&&Ht.endsWith("/")&&(Ht=Ht.substring(0,Ht.length-1));const On=new URL(Ht,"https://"+this.document.location.host),Gn=["publication","issue","bundle","content"];Sn.searchParams.forEach((Kn,Qn)=>{(Gn.includes(Qn)||Qn.startsWith("page-set-"))&&On.searchParams.set(Qn,Kn)});const $n=On.toString();let qn=this.document.querySelector('link[rel="canonical"]');qn||(qn=this.document.createElement("link"),qn.setAttribute("rel","canonical"),this.document.head.appendChild(qn)),qn.setAttribute("href",$n),Wt.og_url=$n}else delete Wt.og_url;Object.keys(Wt).forEach(Sn=>{var Ht;const On=this.replaceAll(Sn,"_",":"),Gn=null!==(Ht=this.document.querySelector("meta[name='"+"".concat(On)+"']"))&&void 0!==Ht?Ht:this.document.createElement("meta");if("object"==typeof Wt[Sn]&&null!==Wt[Sn])Array.isArray(Wt[Sn])?Wt[Sn].forEach($n=>{this.addSubMetaData($n,On,sn)}):("robots"===On?Gn.setAttribute("content",Object.values(Wt[Sn]).join(", ")):Wt[Sn].url&&Gn.setAttribute("content",Wt[Sn].url),this.addSubMetaData(Wt[Sn],On,sn));else if(sn)Gn.remove();else{const $n=Wt[Sn];Gn.setAttribute("name","".concat(On)),Gn.setAttribute("property","".concat(On)),Gn.setAttribute("content",$n),this.document.head.appendChild(Gn),"title"===On&&$n&&this.setTitle($n)}}),this.metaData=Wt}}addSubMetaData(Wt,Xt,sn=!1){Object.keys(Wt).forEach(tn=>{var jn;const Sn="url"===tn?Xt:Xt+":"+tn,Ht=null!==(jn=this.document.querySelector("meta[name='"+Sn+"']"))&&void 0!==jn?jn:this.document.createElement("meta");sn?Ht.remove():(Ht.setAttribute("name",Sn),Ht.setAttribute("property",Sn),Ht.setAttribute("content",Wt[tn]),this.document.head.appendChild(Ht))})}replaceAll(Wt,Xt,sn){return Wt.split(Xt).join(sn)}}return(Cn=yn).\u0275fac=function(Wt){return new(Wt||Cn)(E.KVO(p.qQ),E.KVO(E.pJN),E.KVO(le.V),E.KVO(Q.Q),E.KVO("host",8),E.KVO(V.r6),E.KVO(E.Agw),E.KVO(z.hE),E.KVO(Y.d))},Cn.\u0275prov=E.jDH({token:Cn,factory:Cn.\u0275fac,providedIn:"root"}),yn})()},9312:(ee,_,c)=>{"use strict";c.d(_,{q:()=>l});class l{}},5244:(ee,_,c)=>{"use strict";c.d(_,{oQ:()=>Y,s7:()=>ve});var l=c(4404);function U(pe,fe){var w,j;const I=pe&&{AND:pe.AND&&(null===(w=pe.AND)||void 0===w?void 0:w.map(S=>U(S,!1))),OR:pe.OR&&(null===(j=pe.OR)||void 0===j?void 0:j.map(S=>U(S,!1))),id:pe.id,externalId:pe.externalIssueId,alias:pe.alias,publicationDate:pe.publicationDate,access:ne(pe.purchasable),productId:pe.productId,purchased:pe.purchased,publication:te(pe.publication)||me(pe.type),properties:pe.properties,taxonomies:le("category",pe.categories)||le("tag",pe.tags)};return fe?function B(pe){return pe?{AND:[{contentType:{value:l.CatalogContentType.ISSUE}},pe]}:{contentType:{value:l.CatalogContentType.ISSUE}}}(I):I}function $(pe){var fe,w;return pe&&{AND:pe.AND&&(null===(fe=pe.AND)||void 0===fe?void 0:fe.map(j=>$(j))),OR:pe.OR&&(null===(w=pe.OR)||void 0===w?void 0:w.map(j=>$(j))),id:pe.id,parentId:pe.parentCategoryId,name:pe.name,type:{value:"category"},properties:pe.properties,contents:V(pe.issues)}}function ne(pe){return pe&&{value:l.Access.FREE,negated:pe.value}}function te(pe){return pe&&{AND:pe.AND&&pe.AND.map(fe=>te(fe)),OR:pe.OR&&pe.OR.map(fe=>te(fe)),id:pe.id,type:pe.type,language:pe.language,properties:pe.properties,contents:pe.contents||V(pe.issues)}}function me(pe){return pe&&{type:{negated:pe.negated,value:"ARTICLE"===pe.value?l.PublicationType.CHANNEL:l.PublicationType.KIOSK}}}function V(pe){return pe&&{negated:pe.negated,content:Z(pe.content),size:pe.size}}function Z(pe){return pe&&{operation:pe.operation,value:U(pe.value,!0)}}function le(pe,fe){return fe&&{negated:fe.negated,content:Q(pe,fe.content),size:fe.size}}function Q(pe,fe){return fe&&{operation:fe.operation,value:z(pe,fe.value)}}function z(pe,fe){return{AND:[{type:{value:pe}},{id:fe}]}}function Y(pe){var fe;return{contentFilter:U(pe.issueFilter,!0),sort:null===(fe=pe.sort)||void 0===fe?void 0:fe.map(w=>function E(pe){return{index:pe.index,publicationDate:pe.publicationDate,property:pe.property}}(w)),first:pe.first,after:pe.after,fetchOptions:{totalCount:!0}}}function ve(pe){var fe;return{taxonomyFilter:$(pe.categoryFilter),sort:null===(fe=pe.sort)||void 0===fe?void 0:fe.map(w=>function v(pe){return{name:pe.name,property:pe.property}}(w)),first:pe.first,after:pe.after,fetchOptions:{totalCount:!0}}}},496:(ee,_,c)=>{"use strict";c.d(_,{m:()=>v});var l=c(177),p=c(4438),E=c(8471);let v=(()=>{var U;class ${constructor(ne,te){this.document=ne,this.purpleService=te}selectByIssueCriteria(ne,te,me,V){const Z=[];ne&&Z.push({id:{value:ne}}),te&&Z.push({alias:{value:te}}),me&&Z.push({externalIssueId:{value:me}});const le={first:1};return 1===Z.length?le.issueFilter=Z[0]:Z.length>1&&(le.issueFilter={OR:Z}),this.purpleService.getIssues(le,!1,V).then(Q=>{const z=Q.nodes[0];if(z)return this.purpleService.getPublication(z.publicationId).then(Y=>(Y&&this.setPublication(Y),z))})}selectByContentCriteria(ne,te,me,V){const Z=[];ne&&Z.push({id:{value:ne}}),te&&Z.push({alias:{value:te}}),me&&Z.push({externalIssueId:{value:me}});const le={first:1};return 1===Z.length?le.contentFilter=Z[0]:Z.length>1&&(le.contentFilter={OR:Z}),this.purpleService.getCatalogContents(le,!1,V).then(Q=>{const z=Q.nodes[0];if(z)return this.purpleService.getPublication(z.publicationId).then(Y=>(Y&&this.setPublication(Y),z))})}setPublication(ne){this.currentPublication=ne,ne&&this.document.body.setAttribute("data-publication",ne.publicationId)}reset(){this.currentPublication=void 0}}return(U=$).\u0275fac=function(ne){return new(ne||U)(p.KVO(l.qQ),p.KVO(E.Wj))},U.\u0275prov=p.jDH({token:U,factory:U.\u0275fac,providedIn:"root"}),$})()},2838:(ee,_,c)=>{"use strict";c.d(_,{Q:()=>B});var l=c(467),p=c(4438),E=c(7879),v=c(4843),U=c(1626),$=c(5632);let B=(()=>{var ne;class te{constructor(V,Z,le,Q){this.http=V,this.serverOnlyService=Z,this.platformId=le,this.purpleEnv=Q}getObject(V,Z){return this._get(V,le=>JSON.parse(le.toString()),le=>JSON.stringify(le),Z)}getString(V){return this._get(V,Z=>Z.toString(),Z=>Z,{responseType:"text"})}_get(V,Z,le,Q){var z=this;return(0,l.A)(function*(){try{const Y=z.getCacheKey(V,Q),ve=yield z.serverOnlyService.getFromCache(Y);if(ve)return Z(ve);{const pe=yield(0,v._)(z.http.get(V,Q));return z.serverOnlyService.writeToCache(Y,le(pe)),pe}}catch(Y){return 404===Y.status?console.debug("Loading ".concat(V,": not found")):console.warn("Error loading ".concat(V,": ").concat(Y.status)),null}})()}getCacheKey(V,Z){return"cache:"+V+(Z?JSON.stringify(Z):"")}}return(ne=te).\u0275fac=function(V){return new(V||ne)(p.KVO(U.Qq),p.KVO($.l),p.KVO(p.Agw),p.KVO(E.r6))},ne.\u0275prov=p.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"}),te})()},5632:(ee,_,c)=>{"use strict";c.d(_,{l:()=>p});var l=c(4438);let p=(()=>{var E;class v{constructor(){}getFromCache($){}writeToCache($,B){}}return(E=v).\u0275fac=function($){return new($||E)},E.\u0275prov=l.jDH({token:E,factory:E.\u0275fac}),v})()},4748:(ee,_,c)=>{"use strict";c.d(_,{i:()=>U});var l=c(4412),p=c(5964),E=c(4843),v=c(4438);let U=(()=>{var $;class B{constructor(){this.prebootCompleteSubject=new l.t(!1),this.prebootCompleted$=this.prebootCompleteSubject.asObservable().pipe((0,p.p)(te=>te))}get currentPrebootStatus(){return this.prebootCompleteSubject.getValue()}get prebootCompletedPromise(){return(0,E._)(this.prebootCompleted$)}updatePrebootStatus(te){this.prebootCompleteSubject.next(te)}}return($=B).\u0275fac=function(te){return new(te||$)},$.\u0275prov=v.jDH({token:$,factory:$.\u0275fac,providedIn:"root"}),B})()},8482:(ee,_,c)=>{"use strict";c.d(_,{y:()=>ve});var l=c(467),p=c(4438),E=c(4412),v=c(177),U=c(5964),$=c(6354),B=c(3294),ne=c(5245),te=c(7467),me=c(9047),V=c(6843),Z=c(4945),le=c(79),Q=c(5483),z=c(7574),Y=function(pe){return pe.Mobile="MOBILE",pe.Tablet="TABLET",pe.Desktop="DESKTOP",pe}(Y||{});let ve=(()=>{var pe;class fe{constructor(j,I,S,N,W){this.contextService=j,this.platformId=I,this.consentService=S,this.router=N,this.ngZone=W,this.loadedSubject$=new E.t(!1),this.isTRFConfigReady$=this.loadedSubject$.asObservable(),this.isServiceInit=!1,this.isScriptLoading=!1,this.contextService.viewContext$.pipe((0,U.p)(X=>void 0!==(null==X?void 0:X.pageConfigs)),(0,$.T)(X=>{var J;return null===(J=X.pageConfigs)||void 0===J?void 0:J.traffective}),(0,B.F)()).subscribe(X=>{console.log("got trf config",X),this.isServiceInit||this.isScriptLoading||!(0,v.UE)(this.platformId)?this.isServiceInit?(console.log("mapConfig"),this.mapConfig(X),this.trfConfig=X,this.setPageConfigData()):console.log("nothing"):this.init(X)}),(0,v.UE)(this.platformId)&&this.router.events.pipe((0,U.p)(X=>X instanceof me.Z),(0,ne.i)(1)).subscribe(()=>{this.onRouteChangeStartTRF(),this.loadedSubject$.next(!1)})}init(j){var I=this;return(0,l.A)(function*(){console.log("init"),I.isScriptLoading=!0;let S=(0,te.Y)();I.channel=S.isMobile?Y.Mobile:S.isTablet?Y.Tablet:Y.Desktop,I.mapConfig(j),I.trfConfig=j;const N={...I.defaultTraffectiveConfig,...I.trfConfig};I.setdfpAdUrl(N,N.dfpAdUrlSlug),yield I.loadHeaderScript(N),I.loadedSubject$.next(!0)})()}initDefaultConfig(j){j.select((0,Z.jZ)(V.O.AD),I=>{this.defaultTraffectiveConfig=null==I?void 0:I.traffective})}hasConsent(){return this.consentService.hasConsent(le.ZW.TRAFFECTIVE_AD)}setPageConfigData(){var j=this;return(0,l.A)(function*(){const I=document.getElementById("trfAdSetup").getAttribute("data-traffectiveConf");if(I!==JSON.stringify(j.trfConfig)){let S;if(j.trfConfig){S=JSON.parse(I);const{targeting:N,clientAlias:W,dfpAdUrlSlug:X}=j.trfConfig;j.setdfpAdUrl(S,X),N&&(S.targeting=[...N]),W&&(S.clientAlias=W),X&&(S.dfpAdUrlSlug=X)}else j.trfConfig={...j.defaultTraffectiveConfig},S=j.trfConfig;document.getElementById("trfAdSetup").setAttribute("data-traffectiveConf",JSON.stringify(S))}j.onRouteChangeCompleteTRF(),j.loadedSubject$.next(!0)})()}loadHeaderScript(j){return new Promise((I,S)=>{new Promise((N,W)=>{const X=document.createElement("script");X.id="trfAdSetup",X.type="text/javascript",X.src=j.scriptURL;const{scriptURL:J,...Ce}=j;X.setAttribute("data-traffectiveConf",JSON.stringify(Ce)),X.async=!0,document.head.appendChild(X)}).then(()=>{console.debug("TRF script loaded and not initialized yet")}).catch(N=>{console.error("Error loading TRF script:",N),S(N),this.isScriptLoading=!1}),document.addEventListener("traffectiveApiReady",N=>{console.debug("TRF initialized",N),I(),this.isScriptLoading=!1,this.isServiceInit=!0})})}mapConfig(j){if(j){j.targeting||(j.targeting=[]);for(let S=0;S<j.targeting.length;S++){var I;j.targeting[S]={key:j.targeting[S].key,values:null!==(I=j.targeting[S])&&void 0!==I&&null!==(I=I.values)&&void 0!==I&&I.length?j.targeting[S].values:null,value:j.targeting[S].value||null}}j.targeting.push({key:"channel",values:null,value:this.channel})}}onRouteChangeStartTRF(){try{this.ngZone.runOutsideAngular(()=>{window.traffective.routeChangeStart()})}catch(j){console.warn("Traffective call error on Navigation Start: ",j)}}onRouteChangeCompleteTRF(){try{this.ngZone.runOutsideAngular(()=>{window.traffective.routeChangeComplete()})}catch(j){console.warn("Traffective call error on Navigation Complete: ",j)}}setdfpAdUrl(j,I){var S;null!==(S=this.dfpAdUrlBase)&&void 0!==S||(this.dfpAdUrlBase=this.defaultTraffectiveConfig.dfpAdUrl),j.dfpAdUrl=this.dfpAdUrlBase+(I?"/".concat(I):"")}}return(pe=fe).\u0275fac=function(j){return new(j||pe)(p.KVO(Q.V),p.KVO(p.Agw),p.KVO(z.e),p.KVO(me.Ix),p.KVO(p.SKi))},pe.\u0275prov=p.jDH({token:pe,factory:pe.\u0275fac}),fe})()},6889:(ee,_,c)=>{"use strict";c.d(_,{K:()=>J,r:()=>X});var N,l=c(467),p=c(4438),E=c(7673),v=c(2806),U=c(5558),$=c(8141),B=c(9568),ne=c(6697),te=c(1594),me=c(4404),Z=c(5630),le=c(4945),Q=c(7879),z=c(5706),Y=c(177),ve=c(8545),pe=c(7370),fe=c(7010),w=c(5483),j=c(2838),I=c(8471),S=c(1652);const W=(0,p.zw6)("UrlResolverService.alreadyResolvedData");class X extends Error{constructor(ge,De){super("[RedirectLoopError] ".concat(ge,": [\n").concat(De.map(He=>' "'.concat(He,'"')).join("\n"),"]")),this.redirectChain=De,this.redirectChain=De}}class J{constructor(ge,De,He,Oe,it,Ze,we,ye){this.store=ge,this.transferState=De,this.contextService=He,this.resourceService=Oe,this.purpleService=it,this.globalService=Ze,this.document=we,this.purpleEnv=ye,this.alreadyResolvedData={},this.alreadyResolvedData=this.transferState.get(W,{});const ze=He.baseUrl$.pipe((0,U.n)(Ye=>{const be=(0,pe.vA)((0,pe.bU)(this.document.location.href),this.purpleEnv,this.contextService),Fe="".concat(Ye,"assets/scripts/url.resolver.js").concat(be);return De.hasKey(J.URL_RESOLVER_JS_KEY)?(0,E.of)(De.get(J.URL_RESOLVER_JS_KEY,"")):(0,v.H)(Oe.getString(Fe.toString()))}));this.urlResolverModule$=ze.pipe((0,$.M)(Ye=>{De.hasKey(J.URL_RESOLVER_JS_KEY)||this.transferState.set(J.URL_RESOLVER_JS_KEY,Ye)}),(0,U.n)(function(){var Ye=(0,l.A)(function*(be){if(!be)return Promise.resolve(void 0);let Fe;try{yield import("data:text/javascript;base64,"+btoa(be)).then(Ne=>Fe=Ne.default)}catch(he){console.error("Error executing code:",he)}return Promise.resolve(Fe)});return function(be){return Ye.apply(this,arguments)}}()),(0,B.t)(1)),this.urlResolverModule$.subscribe()}getGlobalData(){return this.globalService.getGlobalData()}findFinalRedirect(ge){var De=this;return(0,l.A)(function*(){let He=yield De.purpleService.getRedirects({redirectFilter:{AND:[{identifier:{value:ge.identifier}},{type:{value:ge.redirectType}}]}}).then(it=>it.nodes);if(He.length>1&&console.error("Catalog API has multiple Redirects of type ".concat(ge.redirectType," and identifier ").concat(ge.identifier,", using the first one")),0===He.length)throw new Error("Couldn't find redirect for redirect match, something went wrong! type ".concat(ge.redirectType," identifier ").concat(ge.identifier));const Oe=[];for(;;){const it=yield De.purpleService.getRedirects({redirectFilter:{AND:[{identifier:{value:He[0].target}},{type:{value:ge.redirectType}}]}}).then(Ze=>Ze.nodes);if(Oe.length>J.MAX_REDIRECT_RETRIES)throw new X("Too many redirects starting from ".concat(ge.identifier," (type ").concat(ge.redirectType,")"),Oe);if(!it.length)break;Oe.push(it[0].identifier),He=it}return He[0]})()}getViewFromPath(ge){var De=this;return(0,l.A)(function*(){const He=yield De.urlResolverModule$.pipe((0,ne.s)(1)).toPromise();if(null==He||!He.urlToViewResolvers)return null;ge.startsWith("/")||(ge="/"+ge);for(const Oe of He.urlToViewResolvers){const Ze=(0,Z.YW)(Oe.pathPattern)(ge);if(Ze){const we=Object.values(Ze.params).reduce((ye,ze)=>(Array.isArray(ze)?ye.push(...ze):ye.push(ze),ye),[]);yield De.resolveSlugs(we);try{const ye=yield Oe.viewResolver({match:Ze,resolvedData:De.alreadyResolvedData,dataResolver:De});if((0,ve.X0)(ye))return{...ye,pathParams:Ze.params?{...Ze.params}:void 0};if((0,ve.ie)(ye))return ye}catch(ye){if(console.error("Error in resolver for pathPattern "+Oe.pathPattern,ye),ye instanceof X)throw ye}}}return{notFound:!0}})()}resolveSlugs(ge){var De=this;return(0,l.A)(function*(){const He=ge.filter(it=>!De.alreadyResolvedData[it]);if(0===He.length)return De.alreadyResolvedData;const Oe=yield De.purpleService.lookupPathSegments(He);for(const it of Oe)De.alreadyResolvedData[it.identifier]=it.matches.reduce((ge,De)=>{switch(De.type){case"COLLECTION":ge.collections.push(De);break;case"CONTENT":ge.contents.push(De);break;case"REDIRECT":ge.redirects.push(De);break;case"TAXONOMY":ge.taxonomies.push(De);break;default:console.error("Unknown PathSegmentMatch type ",De)}return ge},{contents:[],collections:[],redirects:[],taxonomies:[]});return De.transferState.set(W,De.alreadyResolvedData),De.alreadyResolvedData})()}getPathFromData(ge,De){var He=this;return(0,l.A)(function*(){return new Promise((Oe,it)=>{He.urlResolverModule$.subscribe(function(){var Ze=(0,l.A)(function*(we){try{var ye;const ze=yield null==we||null===(ye=we.dataToPathResolver)||void 0===ye?void 0:ye.call(we,{...ge,dataResolver:He,callerMetadata:De});Oe(ze)}catch(ze){console.error("dataToPathResolver failed: ",ze),it(ze)}});return function(we){return Ze.apply(this,arguments)}}())})})()}getPathForTaxonomy(ge){var De=this;return(0,l.A)(function*(){return De.getPathFromData({taxonomy:ge}).then(He=>He.paths[0])})()}getPathForContent(ge){var De=this;return(0,l.A)(function*(){if((0,z.xl)(ge))throw{code:me.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"getPathForContent is not implemented for issues"};try{let Oe=yield De.getPathFromData({content:ge});if((null==Oe?void 0:Oe.paths.length)>0)return Oe.paths[0]}catch{}const He=(0,z.mF)(ge)?ge.postType:void 0;return new Promise(Oe=>{(0,le.h5)(He,De.contextService.getContext(),De.contextService.$functions,De.globalService.getGlobalData())(De.store).pipe((0,te.$)()).subscribe(function(){var it=(0,l.A)(function*(Ze){if(Ze){let we=yield(0,Q.ZC)(De.purpleService,Ze,null,ge);we=De.replaceAll(we,"/%20/","/"),we=De.replaceAll(we,"%20",""),Oe(we)}else Oe(null)});return function(Ze){return it.apply(this,arguments)}}())})})()}replaceAll(ge,De,He){return ge.replace(new RegExp(De,"g"),He)}findContentById(ge,De){var He=this;return(0,l.A)(function*(){return He.purpleService.getCatalogContent(ge,!1,De)})()}findCollectionsWithContentId(ge){var De=this;return(0,l.A)(function*(){return(yield De.purpleService.getCollections({collectionFilter:{}})).nodes})()}findTaxonomyById(ge,De,He){var Oe=this;return(0,l.A)(function*(){return Oe.purpleService.getTaxonomy(ge,De,!1,He)})()}findPublicationById(ge){var De=this;return(0,l.A)(function*(){return De.purpleService.getPublication(ge)})()}findTaxonomyAncestors(ge,De,He){var Oe=this;return(0,l.A)(function*(){let it=[];for(;ge;){let Ze=yield Oe.purpleService.getTaxonomy(ge,De,!1,He);if(!Ze)break;it.unshift(Ze),ge=Ze.parentId}return it})()}findCollectionById(ge){var De=this;return(0,l.A)(function*(){return De.purpleService.getCollection(ge)})()}}(N=J).URL_RESOLVER_JS_KEY=(0,p.zw6)("url.resolver.js"),N.MAX_REDIRECT_RETRIES=10,N.\u0275fac=function(ge){return new(ge||N)(p.KVO(fe.il),p.KVO(p.pJN),p.KVO(w.V),p.KVO(j.Q),p.KVO(I.Wj),p.KVO(S.d),p.KVO(Y.qQ),p.KVO(Q.r6))},N.\u0275prov=p.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})},8545:(ee,_,c)=>{"use strict";function l(v){return!(null==v||!v.redirectTarget)}function p(v){return!(null==v||!v.viewName)}c.d(_,{X0:()=>p,ie:()=>l})},1510:(ee,_,c)=>{"use strict";c.d(_,{h:()=>Q});var l=c(467),p=c(970),v=c(4412),U=c(1985),$=c(152),B=c(9360),ne=c(3600),te=c(4438),me=c(5483),V=c(8471);const Z=(0,B.zk)(),le="userTags";let Q=(()=>{var z;class Y{constructor(pe,fe){this.contextService=pe,this.purpleService=fe,this.rawUserTags=new v.t(null)}init(){var pe=this;return(0,l.A)(function*(){const fe=JSON.parse(yield pe.purpleService.getState(le));fe&&pe.setUpdatedUserTags(fe),new U.c(j=>{pe.purpleService.addLifecycleListener(I=>{"RESUMED"===I.type&&j.next(I)}),pe.purpleService.addInvalidationListener(()=>j.next()),pe.purpleService.addConnectionStateListener(I=>{I.state===p.CONNECTION_STATE.ONLINE&&j.next(I)}),setTimeout(()=>j.next(),10)}).pipe((0,$.B)(1e3)).subscribe(j=>{pe.recalcUserTags()})})()}setUpdatedUserTags(pe){this.userTags=pe,this.purpleService.setState(le,JSON.stringify(pe)),this.contextService.setData("userTags",pe)}getPurchasedSubscriptions(){var pe=this;return(0,l.A)(function*(){return(yield pe.purpleService.getSubscriptions({})).nodes.filter(fe=>fe.currentReceiptInfo||fe.historicReceiptInfo.hadPurchased)})()}getPurchasedPublicationProducts(){var pe=this;return(0,l.A)(function*(){return yield pe.purpleService.getPublicationProducts({publicationProductFilter:{purchased:{value:!0}}})})()}recalcUserTags(){var pe=this;return(0,l.A)(function*(){if(!Z.calculateStorefrontUserTags||"function"!=typeof Z.calculateStorefrontUserTags)return void console.debug("No calculateStorefrontUserTags(params) found. UserTag calculation skipped");let fe;try{const[N,W,X,J,Ce,ue]=yield Promise.all([pe.getPurchasedSubscriptions(),pe.purpleService.getCatalogMetadata(),pe.getPurchasedPublicationProducts(),pe.purpleService.getPublications({}),pe.contextService.updateMetadata(),pe.purpleService.getState(ne.a).then(ge=>!!ge&&JSON.parse(ge))]);fe=ue||(yield Z.calculateStorefrontUserTags({subscriptions:N,activePurchaseTypes:W.activePurchaseTypes,publicationProducts:X,metadata:pe.contextService.getMetadata(),lastUserTags:pe.userTags?{...pe.userTags}:void 0,publications:J.nodes}))}catch(N){return void console.warn("Error while calculating user tags: ",N)}if(!fe||"object"!=typeof fe)return void console.warn("UserTags calculated, but no object returned");pe.rawUserTags.next(fe);const w=new Set;for(const[N,W]of Object.entries(fe))"boolean"==typeof W&&W&&w.add(N);const j=new Set;for(const[N,W]of Object.entries(pe.userTags||{}))"boolean"==typeof W&&W&&j.add(N);let I=!0;if(w.size!==j.size)I=!1;else for(const N of j)if(!w.has(N)){I=!1;break}if(I)return;const S={};for(const N of w)S[N]=!0;for(const[N,W]of Object.entries(fe)){const X={key:N};"string"==typeof W?X.stringValue=W:"boolean"==typeof W&&W&&(X.booleanValue=W),pe.purpleService.setUserAttribute(X)}pe.setUpdatedUserTags(S)})()}}return(z=Y).\u0275fac=function(pe){return new(pe||z)(te.KVO(me.V),te.KVO(V.Wj))},z.\u0275prov=te.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),Y})()},8860:(ee,_,c)=>{"use strict";c.d(_,{A:()=>p,d:()=>E});var l=c(7010);const p=(0,l.VP)("[Config] Load Configs",(0,l.xk)()),E=(0,l.VP)("[Config] Load Full Config Success",(0,l.xk)())},9947:(ee,_,c)=>{"use strict";c.d(_,{H:()=>v,i:()=>E});var l=c(7010),p=c(8860);const E="config";function v(U){return(0,l.vy)(U,(0,l.on)(p.A,$=>$),(0,l.on)(p.d,($,B)=>{const ne=JSON.parse(JSON.stringify(B));return Object.keys(ne).forEach(te=>{"object"==typeof ne[te]&&!Array.isArray(ne[te])&&(ne[te]={...$[te],...B[te]})}),ne}))}},7769:(ee,_,c)=>{"use strict";c.d(_,{Kv:()=>te,LM:()=>Q,Vi:()=>le,h5:()=>me,jZ:()=>V,m6:()=>z});var l=c(7010),p=c(9947),E=c(9085),v=c(6354),U=c(8890),$=c(6843),B=c(8179);const ne=(0,l.UX)(p.i);function te(Y,ve,pe,fe){return w=>w.select(ne).pipe((0,E.E)($.O.VIEW),(0,U.ZE)(),(0,v.T)(j=>j.filter(I=>!I.globalData)),(0,v.T)(j=>j.filter(I=>!I.condition||(0,B.ru)(I,ve,pe,fe))),(0,v.T)(j=>j.find(I=>I.name===Y)),U.TM,(0,U.ZE)())}function me(Y,ve,pe,fe){return w=>w.select(ne).pipe((0,E.E)($.O.VIEW),(0,v.T)(j=>j.filter(I=>!I.globalData)),(0,v.T)(j=>j.filter(I=>!I.condition||(0,B.ru)(I,ve,pe,fe))),(0,v.T)(j=>j.find(S=>!!S.postView&&S.postView.postType===Y)||j.find(S=>!!S.postView&&!S.postView.postType)||null))}function V(Y){return ve=>ve.select(ne).pipe((0,E.E)(Y),(0,U.ZE)(),U.TM)}function Z(Y,ve){return pe=>V(Y)(pe).pipe((0,v.T)(fe=>fe.find(w=>w.id===ve)),(0,U.ZE)())}function le(Y){return Z($.O.APP_BAR,Y)}function Q(Y){return Z($.O.NAVIGATION,Y)}function z(){return Y=>Y.select(ne).pipe((0,E.E)($.O.VIEW),(0,U.ZE)(),(0,v.T)(ve=>ve.find(pe=>pe.globalData)),U.TM,(0,U.ZE)())}},4945:(ee,_,c)=>{"use strict";c.d(_,{L2:()=>te,Vi:()=>z.Vi,jZ:()=>z.jZ,iL:()=>Q.i,HN:()=>Q.H,sb:()=>le,m6:()=>z.m6,LM:()=>z.LM,Kv:()=>z.Kv,h5:()=>z.h5});var l=c(8860),p=c(177),E=c(3709),v=c(8141),U=c(6843),$=c(4438),B=c(7010),ne=c(8745);let te=(()=>{var Y;class ve{constructor(fe,w,j,I){this.actions$=fe,this.store=w,this.document=j,this.configLoaderService=I,this.loadConfigs$=(0,E.EH)(()=>this.actions$.pipe((0,E.gp)(l.A),(0,v.M)(()=>this.configLoaderService.getConfig().subscribe(S=>this.store.dispatch(l.d(S))))),{dispatch:!1})}ngrxOnInitEffects(){return l.A({key:U.O.URL})}}return(Y=ve).\u0275fac=function(fe){return new(fe||Y)($.KVO(E.En),$.KVO(B.il),$.KVO(p.qQ),$.KVO(ne.Bh))},Y.\u0275prov=$.jDH({token:Y,factory:Y.\u0275fac}),ve})();var me=c(2348),V=c(2261);const le={[U.O.URL]:{[U.O.VIEW]:"views.json",[U.O.MESSAGE]:"messages.json",[U.O.APP_BAR]:"appBar.json"},[U.O.VIEW]:[],[U.O.MESSAGE]:{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"},[U.O.APP_BAR]:[{id:"default",scrollBehavior:me.K.NONE,logo:!0},{id:"back",scrollBehavior:me.K.NONE,logo:!0,leftButton:V.F.BACK}],[U.O.NAVIGATION]:[],[U.O.DOWNLOAD_OPTIONS]:{}};var Q=c(9947),z=c(7769)},2628:(ee,_,c)=>{"use strict";c.d(_,{Uo:()=>p,hc:()=>E,w9:()=>v});var l=c(7010);const p=(0,l.VP)("[IssueStates] Load IssueStates",(0,l.xk)()),E=(0,l.VP)("[IssueStates] Load IssueStates Success",(0,l.xk)()),v=(0,l.VP)("[IssueStates] Load IssueStates Failure",(0,l.xk)())},4579:(ee,_,c)=>{"use strict";c.d(_,{$:()=>E,F:()=>U});var l=c(7010),p=c(2628);const E="issueStates",v=(0,l.vy)({},(0,l.on)(p.Uo,$=>$),(0,l.on)(p.hc,($,B)=>({...$,...B})),(0,l.on)(p.w9,($,B)=>$));function U($,B){return v($,B)}},4338:(ee,_,c)=>{"use strict";c.d(_,{B:()=>l.B,v:()=>p.v});var l=c(7193),p=c(8339)},7193:(ee,_,c)=>{"use strict";c.d(_,{B:()=>U});var l=c(4438),p=c(8339),E=c(3178),v=c(7010);let U=(()=>{var $;class B extends p.v{constructor(te,me,V,Z){super(me,V,Z),this.store=te}dispatch(te){let me,V;const Z=new Promise((le,Q)=>{me=le,V=Q});return te.promise={resolve:le=>{me(le),setTimeout(()=>this.changeDetectorRef.detectChanges())},reject:le=>{V(le),setTimeout(()=>this.changeDetectorRef.detectChanges())}},this.store.dispatch(te),Z}select(te,me=E.lQ,V,Z,le){return this.subscribe(te.call(void 0,this.store),me,V,Z,le)}selectMultiple(te,me,V,Z,le,Q){const z=te.call(void 0,me.map(Y=>Y.call(void 0,this.store)));return this.subscribe(z,V,Z,le,Q)}snapshot(te){let me;return me="function"==typeof te?te(this.store.source.value):te.value,me&&JSON.parse(JSON.stringify(me))}}return($=B).\u0275fac=function(te){return new(te||$)(l.KVO(v.il),l.KVO(l.gRc),l.KVO(l.aKT),l.KVO(l.Agw))},$.\u0275prov=l.jDH({token:$,factory:$.\u0275fac}),B})()},8339:(ee,_,c)=>{"use strict";c.d(_,{v:()=>V});var l=c(467),p=c(177),E=c(2806),v=c(4438),U=c(3178);function $(Z){Z&&"function"==typeof Z.unsubscribe&&Z.unsubscribe()}const B=new Map;let ne=!1;function te(Z,le){B.set(Z,le),ne||(ne=!0,requestAnimationFrame(()=>{var Q;ne=!1;const z=null===(Q=B.entries().next().value)||void 0===Q?void 0:Q[1];for(const[Y,ve]of B.entries())ve.markForCheck();B.clear(),null==z||z.detectChanges()}))}function me(Z,le,Q,z,Y,ve,pe){return Z.subscribe({next:fe=>(0,l.A)(function*(){z&&(Q.nativeElement.isConnected||pe)&&(yield z(fe),te(Q,le))})(),error(...fe){Y&&(Q.nativeElement.isConnected||pe)&&(Y(...fe),te(Q,le))},complete(...fe){ve&&(Q.nativeElement.isConnected||pe)&&(ve(...fe),te(Q,le))}})}let V=(()=>{var Z;class le{constructor(z,Y,ve){this.subscriptions=[],this.namedSubscriptions={},this.changeDetectorRef=z,this.elementRef=Y,this.platformId=ve}subscribe(z,Y=U.lQ,ve,pe,fe){const w=(0,p.Vy)(this.platformId);fe?(this.namedSubscriptions[fe]&&this.unsubscribe(fe),this.namedSubscriptions[fe]=me(z,this.changeDetectorRef,this.elementRef,Y,ve,pe,w)):this.subscriptions.push(me(z,this.changeDetectorRef,this.elementRef,Y,ve,pe,w))}unsubscribe(z){$(this.namedSubscriptions[z]),delete this.namedSubscriptions[z]}hasSubscription(z){return!!this.namedSubscriptions[z]}unsubscribeAll(){for(const z in this.namedSubscriptions)this.namedSubscriptions[z]&&$(this.namedSubscriptions[z]);this.subscriptions.forEach(z=>$(z))}await(z,Y){var ve=this;return(0,l.A)(function*(){return new Promise((pe,fe)=>ve.subscribe((0,E.H)(z),pe,fe,U.lQ,Y))})()}ngOnDestroy(){this.unsubscribeAll()}}return(Z=le).\u0275fac=function(z){return new(z||Z)(v.KVO(v.gRc),v.KVO(v.aKT),v.KVO(v.Agw))},Z.\u0275prov=v.jDH({token:Z,factory:Z.\u0275fac}),le})()},4004:(ee,_,c)=>{"use strict";c.d(_,{$W:()=>p,Kx:()=>v,Nb:()=>U,qF:()=>E});var l=c(7010);const p=(0,l.VP)("[Prices] Load Prices",(0,l.xk)()),E=(0,l.VP)("[Prices] Load Price",(0,l.xk)()),v=(0,l.VP)("[Prices] Load Prices Success",(0,l.xk)()),U=(0,l.VP)("[Prices] Load Pries Failure",(0,l.xk)())},2099:(ee,_,c)=>{"use strict";c.d(_,{E:()=>E,F:()=>U});var l=c(7010),p=c(4004);const E="prices",v=(0,l.vy)({},(0,l.on)(p.$W,$=>$),(0,l.on)(p.Kx,($,B)=>({...$,...B.prices})),(0,l.on)(p.Nb,($,B)=>{const ne={...$};return B.productIds.forEach(te=>{te in ne||(ne[te]=B.error)}),ne}));function U($,B){return v($,B)}},4622:(ee,_,c)=>{"use strict";c.d(_,{TX:()=>B,Zt:()=>$,aJ:()=>U});var l=c(7010),p=c(6354),E=c(8890),v=c(2099);const U=(0,l.UX)(v.E);function $(ne){return te=>te.select(U).pipe((0,p.T)(me=>me[ne]),E.q3,(0,E.ZE)())}function B(ne){return te=>te.select(U).pipe((0,p.T)(me=>ne.map(V=>me[V])),(0,E.os)())}},610:(ee,_,c)=>{"use strict";c.d(_,{$3:()=>p,Du:()=>v,k4:()=>E});var l=c(7010);const p=(0,l.VP)("[Tracking] Track View",(0,l.xk)()),E=(0,l.VP)("[Tracking] Track Action",(0,l.xk)()),v=(0,l.VP)("[Tracking] Track Purchase",(0,l.xk)())},8909:(ee,_,c)=>{"use strict";c.d(_,{M:()=>v});var l=c(467),p=c(4438),E=c(7900);let v=(()=>{var U;class ${constructor(ne,te){this.elementRef=ne,this.translateService=te,this.storefrontTranslateArgs=[]}ngAfterViewInit(){var ne=this;return(0,l.A)(function*(){yield ne.translateService.inited,ne.ngOnChanges()})()}ngOnChanges(){const ne=this.elementRef.nativeElement;let te;Array.isArray(this.storefrontTranslateArgs)?te=this.storefrontTranslateArgs.map(me=>this.translate(me)):this.storefrontTranslateArgs&&(te=Object.entries(this.storefrontTranslateArgs).reduce((me,[V,Z])=>(me[V]=this.translate(Z),me),{})),ne.innerHTML=this.translateService.translate({text:this.storefrontTranslate,args:te})}translate(ne){return this.translateService.translate(ne)}}return(U=$).\u0275fac=function(ne){return new(ne||U)(p.rXU(p.aKT),p.rXU(E.c))},U.\u0275dir=p.FsC({type:U,selectors:[["","storefrontTranslate",""]],inputs:{storefrontTranslate:"storefrontTranslate",storefrontTranslateArgs:"storefrontTranslateArgs"},features:[p.OA$]}),$})()},6483:(ee,_,c)=>{"use strict";c.d(_,{h:()=>v});var l=c(177),p=c(6067),E=c(4438);let v=(()=>{var U;class ${}return(U=$).\u0275fac=function(ne){return new(ne||U)},U.\u0275mod=E.$C({type:U}),U.\u0275inj=E.G2t({providers:[p.D],imports:[l.MD]}),$})()},6067:(ee,_,c)=>{"use strict";c.d(_,{D:()=>me});var l=c(467),p=c(1985),E=c(4945),v=c(6843),U=c(6697),$=c(3785),ne=c(4438),te=c(7010);let me=(()=>{var V;class Z{constructor(Q){this.store=Q}transform(Q,...z){return new p.c(Y=>{(0,E.jZ)(v.O.MESSAGE)(this.store).subscribe(ve=>{const pe=z.map(fe=>ve[fe]||fe);Y.next(ve[Q]?(0,$.vsprintf)(ve[Q],pe):Q)})})}translate(Q){var z=this;return(0,l.A)(function*(){const Y="string"==typeof Q,ve=Y?Q:Q.text,pe=!Y&&Q.args||[];return new Promise(fe=>{z.transform(ve,...pe).pipe((0,U.s)(1)).subscribe(fe)})})()}getMessages(){return(0,E.jZ)(v.O.MESSAGE)(this.store).toPromise()}}return(V=Z).\u0275fac=function(Q){return new(Q||V)(ne.rXU(te.il,16))},V.\u0275pipe=ne.EJ8({name:"storefrontTranslate",type:V,pure:!0}),V.\u0275prov=ne.jDH({token:V,factory:V.\u0275fac}),Z})()},7900:(ee,_,c)=>{"use strict";c.d(_,{c:()=>B});var l=c(4945),p=c(6843),E=c(3785),U=c(4438),$=c(7010);let B=(()=>{var ne;class te{constructor(V){this.store=V,this.inited=new Promise(Z=>this.resolve=Z),this.init()}init(){(0,l.jZ)(p.O.MESSAGE)(this.store).subscribe(V=>{this.messages=V,this.resolve()})}translate(V){if(!V||"object"!=typeof V)return this.messages&&this.messages[V]||V;let Z;Array.isArray(V.args)?Z=V.args.map(Q=>"string"==typeof Q?this.translate(null==Q?void 0:Q.toString()):Q):V.args&&(Z=Object.entries(V.args).reduce((Q,[z,Y])=>(Q[z]=this.translate(Y.toString()),Q),{}));try{return(0,E.vsprintf)(this.translate(V.text),Z)}catch{var le;return null!==(le=V.text)&&void 0!==le?le:""}}}return(ne=te).\u0275fac=function(V){return new(V||ne)(U.KVO($.il))},ne.\u0275prov=U.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"}),te})()},3178:(ee,_,c)=>{"use strict";c.d(_,{Am:()=>le,Bq:()=>Q,JK:()=>fe,KF:()=>S,KM:()=>W,LS:()=>me,Q_:()=>w,dg:()=>I,hI:()=>z,lQ:()=>U,lg:()=>ne,q1:()=>N,sF:()=>V,wR:()=>Z,xQ:()=>te});var l=c(467),p=c(4404),v=c(9360);function U(){}const $=(0,v.zk)(),B=(0,v.YE)();function ne(X,J){return $.setTimeout(X,J)}function te(X,J){return $.setInterval(X,J)}function me(X,J){if(J)try{const Ce=new URL(X);for(const ue in J)J[ue]?Ce.searchParams.set(ue,J[ue]):Ce.searchParams.delete(ue);return Ce.toString()}catch{}return X}function V(X,J){try{return new URL(X).searchParams.get(J)}catch{return null}}function Z(X){return new Promise(J=>setTimeout(J,X))}function le(X){return X.filter((J,Ce,ue)=>X.indexOf(J)===Ce)}function Q(X){return[].concat(...X)}function z(X){return Y.apply(this,arguments)}function Y(){return(Y=(0,l.A)(function*(X,J={}){let Ce;try{Ce=yield ve(X,J)}catch(ue){if($.isUniversal){if(ue&&parseFloat(ue)>=500&&parseFloat(ue)<600)try{Ce=yield ve(X,J)}catch{throw new Error("failed to fetch ressource "+X)}}else Ce=new Promise((ge,De)=>{const He=new XMLHttpRequest;He.addEventListener("load",()=>{He.status>=400&&De({message:""+He.status});try{ge(JSON.parse(He.responseText))}catch{De({message:"No JSON"})}}),He.addEventListener("error",()=>{De({message:"Unknown Error"})}),He.open(J&&J.method||"GET",X),He.send()})}return Ce})).apply(this,arguments)}function ve(X,J){return pe.apply(this,arguments)}function pe(){return(pe=(0,l.A)(function*(X,J){return fetch(X,J).then(Ce=>{if(Ce.ok)return Ce.json();throw new Error(Ce.status.toString())})})).apply(this,arguments)}function fe(){return $.navigator.userLanguage||$.navigator.languages&&$.navigator.languages.length&&$.navigator.languages[0]||$.navigator.language||"en"}function w(X,J){return(null==X?void 0:X.toLowerCase())===(null==J?void 0:J.toLowerCase())}function I(X,J=$||B){const Ce=new URL(J.location.href);return X===p.DisplayMode.MODAL&&"true"===Ce.searchParams.get("closeOnModal")||!!Ce.searchParams.get("productId")}function S(X,J,Ce=!1){const ue=X.length;if(0===ue)return[];if(J<0||J>=ue)return;const ge=[];if(ge.push(X[J]),Ce){const De=it=>(it+X.length)%X.length;let He=1,Oe=!0;for(;ge.length<X.length;)ge.push(X[De(J+He*(Oe?1:-1))]),Oe||He++,Oe=!Oe}else{let De=1,He=-1;for(;De>0||He<0;)De>0&&(J+De>=ue?De=-1:(ge.push(X[J+De]),De++)),He<0&&(He<-J?He=1:(ge.push(X[J+He]),He--))}return ge}function N(X,J,Ce,ue=!1,ge){if(null==Ce||0===Ce.length||Ce.startsWith("http://")||Ce.startsWith("https://")||Ce.startsWith("purple://"))return Ce;{let De;return De=Ce.startsWith("resource://dynamic/")?new URL(Ce.replace("resource://dynamic/",""),"".concat(J,"/web/dynamicResources/").concat(X,"/")):new URL(Ce,"".concat(J,"/web/dynamicResources/").concat(X,"/storefront/index.html")),ue&&De.searchParams.set("preview",(!!ue).toString()),void 0!==ge&&De.searchParams.set("version",ge.toString()),De.toString()}}function W(X){return X.length>1&&"callback"===X[X.length-1].path&&"oauth"===X[X.length-2].path}},1184:(ee,_,c)=>{"use strict";c.d(_,{Fl:()=>ne,nV:()=>U,rv:()=>v});var l=c(467),p=c(2962),E=c(5706);function v(S){return"object"==typeof S?S[Object.keys(S).find(W=>(0,p.zC)(W))||Object.keys(S)[0]]:S}function U(S,N,W){return $.apply(this,arguments)}function $(){return($=(0,l.A)(function*(S,N,W){const X={};return yield Promise.all([V(X,S,N,W),le(X,S,N,W),z(X,S,N,W),te(X,S,N,W),ve(X,S,N,W),j(X,S,N,W),fe(X,S,N,W)]),"search-result"in W&&(X["search-result"]=W["search-result"]),"bookmark"in W&&(X.bookmark=W.bookmark),X})).apply(this,arguments)}const B=[/\$context\.([a-zA-Z_]\w+)/g,/\$context\['(.+?)']/g,/\$context\[\\"(.+?)\\"]/g];function ne(S,N){if(!N)return;const W=JSON.stringify(S);for(const X of B){const J=W.matchAll(X);for(const[Ce,ue]of J)N.add(ue)}}function te(S,N,W,X){return me.apply(this,arguments)}function me(){return(me=(0,l.A)(function*(S,N,W,X){if("publication"in X)S.publication=X.publication;else if(W.publication){let J=W.publication;if(Array.isArray(J)&&(J=J[0]),J){try{S.publication=yield N.getPublication(J,!0)}catch{S.publication=yield N.getPublicationFromCache(J)}return}}})).apply(this,arguments)}function V(S,N,W,X){return Z.apply(this,arguments)}function Z(){return(Z=(0,l.A)(function*(S,N,W,X){if("issue"in X)S.issue=X.issue;else if(W.issue){let J=W.issue;if(Array.isArray(J)&&(J=J[0]),J){try{S.issue=yield N.getIssue(J,!0)}catch{S.issue=yield N.getIssueFromCache(J).catch(()=>null)}return}}})).apply(this,arguments)}function le(S,N,W,X){return Q.apply(this,arguments)}function Q(){return(Q=(0,l.A)(function*(S,N,W,X){if("content"in X)S.content=X.content;else if(W.content){let J=W.content;if(Array.isArray(J)&&(J=J[0]),J){try{S.content=yield N.getCatalogContent(J,!0)}catch{S.content=yield N.getCatalogContentFromCache(J).catch(()=>null)}return}}})).apply(this,arguments)}function z(S,N,W,X){return Y.apply(this,arguments)}function Y(){return(Y=(0,l.A)(function*(S,N,W,X){if("post"in X)S.post=X.post;else if(W.post){let J=W.post;if(Array.isArray(J)&&(J=J[0]),J){try{S.post=yield N.getCatalogContent(J,!0)}catch{S.post=yield N.getCatalogContentFromCache(J).catch(()=>null)}return void(S.post&&!(0,E.mF)(S.post)&&console.warn("post from context / url is not referring to an actual post. Did you want to pass an different ID?"))}}})).apply(this,arguments)}function ve(S,N,W,X){return pe.apply(this,arguments)}function pe(){return(pe=(0,l.A)(function*(S,N,W,X){if("category"in X)S.category=X.category;else if(W.category){let J=W.category;if(Array.isArray(J)&&(J=J[0]),J){try{S.category=yield N.getCategory(J,!0)}catch{S.category=yield N.getCategory(J,!1)}return}}})).apply(this,arguments)}function fe(S,N,W,X){return w.apply(this,arguments)}function w(){return(w=(0,l.A)(function*(S,N,W,X){if("taxonomy"in X)S.taxonomy=X.taxonomy;else if(W.taxonomy){let J=W.taxonomy;if(Array.isArray(J)&&(J=J[0]),J){try{S.taxonomy=yield N.getTaxonomy(J,null,!0,null)}catch{S.taxonomy=yield N.getTaxonomy(J,null,!1,null)}return}}})).apply(this,arguments)}function j(S,N,W,X){return I.apply(this,arguments)}function I(){return(I=(0,l.A)(function*(S,N,W,X){if("collection"in X)S.collection=X.collection;else if(W.collection){let J=W.collection;if(Array.isArray(J)&&(J=J[0]),J){try{S.collection=yield N.getCollection(J,!0)}catch{S.collection=yield N.getCollection(J,!1)}return}}})).apply(this,arguments)}},5706:(ee,_,c)=>{"use strict";c.d(_,{G4:()=>v,QO:()=>$,ak:()=>te,mF:()=>E,n7:()=>ne,o$:()=>B,tr:()=>me,xl:()=>U});var l=c(4404);function E(V){return(null==V?void 0:V.contentType)===l.CatalogContentType.POST}function v(V){return(null==V?void 0:V.contentType)===l.CatalogContentType.BUNDLE}function U(V){return(null==V?void 0:V.contentType)===l.CatalogContentType.ISSUE}function $(V){return V.contentType===l.CatalogContentType.POST}function B(V){return V.contentType===l.CatalogContentType.BUNDLE}function ne(V){return V.contentType===l.CatalogContentType.ISSUE}function te(V){return V.type===l.PublicationProductType.BACK_ISSUE_COMPLETION}function me(V){return ne(V)?V.issue:$(V)?V.post:B(V)?V.bundle:void 0}},4333:(ee,_,c)=>{"use strict";c.d(_,{BH:()=>me,FK:()=>Z,ch:()=>le,fs:()=>V,pd:()=>ne,vY:()=>te});var l=c(4404),E=c(7374),U=c(6155);const $="YYYY-MM-DD",B={...l.AppSubscriptionAdditionalBackIssueUnlocksType};function ne(Q,z=new Date){let Y=E(z);switch(Q.unit){case l.AppSubscriptionAdditionalBackIssueUnlocksType.YEAR:Y=Y.subtract(Q.count,"year");break;case l.AppSubscriptionAdditionalBackIssueUnlocksType.MONTH:Y=Y.subtract(Q.count,"month");break;case l.AppSubscriptionAdditionalBackIssueUnlocksType.WEEK:Y=Y.subtract(Q.count,"week");break;case l.AppSubscriptionAdditionalBackIssueUnlocksType.DAY:Y=Y.subtract(Q.count,"day")}return Y.format($)}function te(Q,z=new Date){let Y=E(z);switch(Q){case l.AppSubscriptionDuration.ONE_YEAR:Y=Y.subtract(1,"year");break;case l.AppSubscriptionDuration.SIX_MONTHS:Y=Y.subtract(6,"month");break;case l.AppSubscriptionDuration.THREE_MONTHS:Y=Y.subtract(3,"month");break;case l.AppSubscriptionDuration.TWO_MONTHS:Y=Y.subtract(2,"month");break;case l.AppSubscriptionDuration.ONE_MONTH:Y=Y.subtract(1,"month");break;case l.AppSubscriptionDuration.TWO_WEEKS:Y=Y.subtract(2,"week");break;case l.AppSubscriptionDuration.SEVEN_DAYS:Y=Y.subtract(7,"day")}return Y.format($)}function me(Q,z=new Date){return E(z).subtract(Q.count,Q.unit.toLowerCase()).format($)}function V(Q){switch(Q){case l.AppSubscriptionDuration.ONE_YEAR:return{unit:B.YEAR,count:1};case l.AppSubscriptionDuration.SIX_MONTHS:return{unit:B.MONTH,count:6};case l.AppSubscriptionDuration.THREE_MONTHS:return{unit:B.MONTH,count:3};case l.AppSubscriptionDuration.TWO_MONTHS:return{unit:B.MONTH,count:2};case l.AppSubscriptionDuration.ONE_MONTH:return{unit:B.MONTH,count:1};case l.AppSubscriptionDuration.TWO_WEEKS:return{unit:B.WEEK,count:2};case l.AppSubscriptionDuration.SEVEN_DAYS:return{unit:B.DAY,count:7}}}function Z(Q,z){if(Q===z)return 0;const Y=Object.keys(l.AppSubscriptionDuration);return Y.indexOf(Q)-Y.indexOf(z)>0?-1:1}function le(Q){const z=(0,U.qg)(Q);let ve,Y=0;return Object.keys(z).forEach(pe=>{switch(pe){case"years":return void(Y+=360*z.years);case"months":return void(Y+=30*z.months);case"weeks":return void(Y+=7*z.weeks);case"days":return void(Y+=z.days)}}),ve=Y%360==0?{count:Y/360,unit:B.YEAR}:Y%30==0?{count:Y/30,unit:B.MONTH}:Y%7==0?{count:Y/7,unit:B.WEEK}:{count:Y,unit:B.DAY},ve}},7467:(ee,_,c)=>{"use strict";c.d(_,{Y:()=>E});var l=function(v){return v.Android="android",v.iOS="ios",v.Unknown="unknown",v.WindowsPhone="Windows Phone",v}(l||{}),p=function(v){return v.Linux="linux",v.MacOS="mac_os",v.Unix="unix",v.Unknown="unknown",v.Windows="windows",v}(p||{});const E=(()=>{let v=null;return()=>{if(v)return v;const U=navigator.userAgent||navigator.vendor||window.opera||void 0,$=()=>[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some(S=>U.match(S)),B=()=>/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(U.toLowerCase()),ne=()=>!$()&&!B(),te=ne(),me=$(),V=B(),Z=()=>{if($())return/windows phone/i.test(U)?l.WindowsPhone:/android/i.test(U)?l.Android:/iPad|iPhone|iPod/.test(U)&&!window.MSStream?l.iOS:l.Unknown},le=()=>{if(ne())return-1!==U.indexOf("Win")?p.Windows:-1!==U.indexOf("Mac")?p.MacOS:-1!==U.indexOf("X11")?p.Unix:-1!==U.indexOf("Linux")?p.Linux:p.Unknown},Q=()=>{var I;return null!==(I=Z())&&void 0!==I?I:le()},z=Z(),Y=Q()===l.Android,ve=Q()===l.iOS||Q()===p.MacOS,pe=Q()===l.Unknown,fe=le(),w=Q()===p.Windows,j=Q()===p.Linux||Q()===p.Unix;return v={isDesktop:te,desktopOS:fe,isWindowsDesktop:w,isLinuxOrUnixDesktop:j,isMobile:me,mobileOS:z,isAndroidDevice:Y,isAppleDevice:ve,isUnknownMobileDevice:pe,isTablet:V,userAgent:U},v}})()},2962:(ee,_,c)=>{"use strict";function l(ne,te=0){const me=ne.getBoundingClientRect();return"none"!==getComputedStyle(ne).display&&me.bottom>-te&&me.right>-te&&me.left<window.innerWidth+te&&me.top<window.innerHeight+te}function p(ne){return"phone"===ne&&window.innerWidth<533||"tablet"===ne&&window.innerWidth>=533||window.matchMedia(ne).matches}function E(ne){const te=ne.touches&&ne.touches[0]||ne.changedTouches&&ne.changedTouches[0]||ne;return{x:te.screenX,y:te.screenY,timestamp:Date.now()}}function v(ne,te=!1){return te?ne.scrollWidth-(ne.scrollLeft+ne.clientWidth):ne.scrollHeight-(ne.scrollTop+ne.clientHeight)}function U(ne,te,me){const V=Z=>{ne.removeEventListener(te,V),me(Z)};ne.addEventListener(te,V)}function $(ne,te=document){te.$modalOutlet||(te.$modalOutlet=te.querySelector('router-outlet[name="modal"]'));const me=te.$modalOutlet,V=me&&me.nextElementSibling;return V&&V.contains(ne)?"modal":"primary"}c.d(_,{IL:()=>v,L$:()=>U,cH:()=>l,k:()=>E,kO:()=>$,zC:()=>p})},8091:(ee,_,c)=>{"use strict";c.d(_,{$C:()=>U,E2:()=>E,F0:()=>B,_3:()=>$,xn:()=>v});var l=c(4404);function E(ne,te){return te.getMetadata().connection_state===l.CONNECTION_STATE.OFFLINE&&(ne.code=l.ERROR_CODE.NETWORK),ne.code}function v(ne){return ne&&ne.status&&"403"===ne.status?l.ERROR_CODE.INVALID_CREDENTIALS:l.ERROR_CODE.NETWORK}function U(ne,te){const me=[ne];return te&&(me.push(te.name),me.push(te.id)),me}function $(ne,te){const me=[ne];return te&&me.push(te.title),me}function B(ne,te){const me=[ne];return te&&me.push(te.name),me}},7598:(ee,_,c)=>{"use strict";c.d(_,{YT:()=>l,Zm:()=>E,aU:()=>p,yl:()=>v});const l="storefront-invalidation",p="storefront-lifecycle",E="dom-scroll-bottom",v="exp-bidirectional-router-event"},7439:(ee,_,c)=>{"use strict";c.d(_,{M:()=>zn});var l=[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],p=[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],v="\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\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\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\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\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-\ua6ef\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",U={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"},$="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",B={5:$,"5module":$+" export import",6:$+" const class extends export import super"},ne=/^in(stanceof)?$/,te=new RegExp("["+v+"]"),me=new RegExp("["+v+"\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65]");function V(d,T){for(var de=65536,Ae=0;Ae<T.length;Ae+=2){if((de+=T[Ae])>d)return!1;if((de+=T[Ae+1])>=d)return!0}return!1}function Z(d,T){return d<65?36===d:d<91||(d<97?95===d:d<123||(d<=65535?d>=170&&te.test(String.fromCharCode(d)):!1!==T&&V(d,p)))}function le(d,T){return d<48?36===d:d<58||!(d<65)&&(d<91||(d<97?95===d:d<123||(d<=65535?d>=170&&me.test(String.fromCharCode(d)):!1!==T&&(V(d,p)||V(d,l)))))}var Q=function(T,de){void 0===de&&(de={}),this.label=T,this.keyword=de.keyword,this.beforeExpr=!!de.beforeExpr,this.startsExpr=!!de.startsExpr,this.isLoop=!!de.isLoop,this.isAssign=!!de.isAssign,this.prefix=!!de.prefix,this.postfix=!!de.postfix,this.binop=de.binop||null,this.updateContext=null};function z(d,T){return new Q(d,{beforeExpr:!0,binop:T})}var Y={beforeExpr:!0},ve={startsExpr:!0},pe={};function fe(d,T){return void 0===T&&(T={}),T.keyword=d,pe[d]=new Q(d,T)}var w={num:new Q("num",ve),regexp:new Q("regexp",ve),string:new Q("string",ve),name:new Q("name",ve),privateId:new Q("privateId",ve),eof:new Q("eof"),bracketL:new Q("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Q("]"),braceL:new Q("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Q("}"),parenL:new Q("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Q(")"),comma:new Q(",",Y),semi:new Q(";",Y),colon:new Q(":",Y),dot:new Q("."),question:new Q("?",Y),questionDot:new Q("?."),arrow:new Q("=>",Y),template:new Q("template"),invalidTemplate:new Q("invalidTemplate"),ellipsis:new Q("...",Y),backQuote:new Q("`",ve),dollarBraceL:new Q("${",{beforeExpr:!0,startsExpr:!0}),eq:new Q("=",{beforeExpr:!0,isAssign:!0}),assign:new Q("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Q("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Q("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:z("||",1),logicalAND:z("&&",2),bitwiseOR:z("|",3),bitwiseXOR:z("^",4),bitwiseAND:z("&",5),equality:z("==/!=/===/!==",6),relational:z("</>/<=/>=",7),bitShift:z("<</>>/>>>",8),plusMin:new Q("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:z("%",10),star:z("*",10),slash:z("/",10),starstar:new Q("**",{beforeExpr:!0}),coalesce:z("??",1),_break:fe("break"),_case:fe("case",Y),_catch:fe("catch"),_continue:fe("continue"),_debugger:fe("debugger"),_default:fe("default",Y),_do:fe("do",{isLoop:!0,beforeExpr:!0}),_else:fe("else",Y),_finally:fe("finally"),_for:fe("for",{isLoop:!0}),_function:fe("function",ve),_if:fe("if"),_return:fe("return",Y),_switch:fe("switch"),_throw:fe("throw",Y),_try:fe("try"),_var:fe("var"),_const:fe("const"),_while:fe("while",{isLoop:!0}),_with:fe("with"),_new:fe("new",{beforeExpr:!0,startsExpr:!0}),_this:fe("this",ve),_super:fe("super",ve),_class:fe("class",ve),_extends:fe("extends",Y),_export:fe("export"),_import:fe("import",ve),_null:fe("null",ve),_true:fe("true",ve),_false:fe("false",ve),_in:fe("in",{beforeExpr:!0,binop:7}),_instanceof:fe("instanceof",{beforeExpr:!0,binop:7}),_typeof:fe("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:fe("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:fe("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},j=/\r\n?|\n|\u2028|\u2029/,I=new RegExp(j.source,"g");function S(d){return 10===d||13===d||8232===d||8233===d}function N(d,T,de){void 0===de&&(de=d.length);for(var Ae=T;Ae<de;Ae++){var nt=d.charCodeAt(Ae);if(S(nt))return Ae<de-1&&13===nt&&10===d.charCodeAt(Ae+1)?Ae+2:Ae+1}return-1}var W=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,X=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,J=Object.prototype,Ce=J.hasOwnProperty,ue=J.toString,ge=Object.hasOwn||function(d,T){return Ce.call(d,T)},De=Array.isArray||function(d){return"[object Array]"===ue.call(d)},He=Object.create(null);function Oe(d){return He[d]||(He[d]=new RegExp("^(?:"+d.replace(/ /g,"|")+")$"))}function it(d){return d<=65535?String.fromCharCode(d):(d-=65536,String.fromCharCode(55296+(d>>10),56320+(1023&d)))}var Ze=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,we=function(T,de){this.line=T,this.column=de};we.prototype.offset=function(T){return new we(this.line,this.column+T)};var ye=function(T,de,Ae){this.start=de,this.end=Ae,null!==T.sourceFile&&(this.source=T.sourceFile)};function ze(d,T){for(var de=1,Ae=0;;){var nt=N(d,Ae,T);if(nt<0)return new we(de,T-Ae);++de,Ae=nt}}var Ye={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},be=!1;function ut(d,T){return 2|(d?4:0)|(T?8:0)}var Bn=function(T,de,Ae){this.options=T=function Fe(d){var T={};for(var de in Ye)T[de]=d&&ge(d,de)?d[de]:Ye[de];if("latest"===T.ecmaVersion?T.ecmaVersion=1e8:null==T.ecmaVersion?(!be&&"object"==typeof console&&console.warn&&(be=!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),(!d||null==d.allowHashBang)&&(T.allowHashBang=T.ecmaVersion>=14),De(T.onToken)){var Ae=T.onToken;T.onToken=function(nt){return Ae.push(nt)}}return De(T.onComment)&&(T.onComment=function he(d,T){return function(de,Ae,nt,At,Ot,gn){var En={type:de?"Block":"Line",value:Ae,start:nt,end:At};d.locations&&(En.loc=new ye(this,Ot,gn)),d.ranges&&(En.range=[nt,At]),T.push(En)}}(T,T.onComment)),T}(T),this.sourceFile=T.sourceFile,this.keywords=Oe(B[T.ecmaVersion>=6?6:"module"===T.sourceType?"5module":5]);var nt="";!0!==T.allowReserved&&(nt=U[T.ecmaVersion>=6?6:5===T.ecmaVersion?5:3],"module"===T.sourceType&&(nt+=" await")),this.reservedWords=Oe(nt);var At=(nt?nt+" ":"")+U.strict;this.reservedWordsStrict=Oe(At),this.reservedWordsStrictBind=Oe(At+" "+U.strictBind),this.input=String(de),this.containsEsc=!1,Ae?(this.pos=Ae,this.lineStart=this.input.lastIndexOf("\n",Ae-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(j).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=w.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"===T.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&&T.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Cn={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}};Bn.prototype.parse=function(){var T=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(T)},Cn.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Cn.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Cn.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Cn.canAwait.get=function(){for(var d=this.scopeStack.length-1;d>=0;d--){var T=this.scopeStack[d];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},Cn.allowSuper.get=function(){var d=this.currentThisScope();return(64&d.flags)>0||d.inClassFieldInit||this.options.allowSuperOutsideMethod},Cn.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Cn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Cn.allowNewDotTarget.get=function(){var d=this.currentThisScope();return(258&d.flags)>0||d.inClassFieldInit},Cn.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},Bn.extend=function(){for(var T=[],de=arguments.length;de--;)T[de]=arguments[de];for(var Ae=this,nt=0;nt<T.length;nt++)Ae=T[nt](Ae);return Ae},Bn.parse=function(T,de){return new this(de,T).parse()},Bn.parseExpressionAt=function(T,de,Ae){var nt=new this(Ae,T,de);return nt.nextToken(),nt.parseExpression()},Bn.tokenizer=function(T,de){return new this(de,T)},Object.defineProperties(Bn.prototype,Cn);var yn=Bn.prototype,Lr=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;yn.strictDirective=function(d){if(this.options.ecmaVersion<5)return!1;for(;;){X.lastIndex=d,d+=X.exec(this.input)[0].length;var T=Lr.exec(this.input.slice(d));if(!T)return!1;if("use strict"===(T[1]||T[2])){X.lastIndex=d+T[0].length;var de=X.exec(this.input),Ae=de.index+de[0].length,nt=this.input.charAt(Ae);return";"===nt||"}"===nt||j.test(de[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(nt)||"!"===nt&&"="===this.input.charAt(Ae+1))}X.lastIndex=d+=T[0].length,d+=X.exec(this.input)[0].length,";"===this.input[d]&&d++}},yn.eat=function(d){return this.type===d&&(this.next(),!0)},yn.isContextual=function(d){return this.type===w.name&&this.value===d&&!this.containsEsc},yn.eatContextual=function(d){return!!this.isContextual(d)&&(this.next(),!0)},yn.expectContextual=function(d){this.eatContextual(d)||this.unexpected()},yn.canInsertSemicolon=function(){return this.type===w.eof||this.type===w.braceR||j.test(this.input.slice(this.lastTokEnd,this.start))},yn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},yn.semicolon=function(){!this.eat(w.semi)&&!this.insertSemicolon()&&this.unexpected()},yn.afterTrailingComma=function(d,T){if(this.type===d)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),T||this.next(),!0},yn.expect=function(d){this.eat(d)||this.unexpected()},yn.unexpected=function(d){this.raise(null!=d?d:this.start,"Unexpected token")};var Wt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};yn.checkPatternErrors=function(d,T){if(d){d.trailingComma>-1&&this.raiseRecoverable(d.trailingComma,"Comma is not permitted after the rest element");var de=T?d.parenthesizedAssign:d.parenthesizedBind;de>-1&&this.raiseRecoverable(de,T?"Assigning to rvalue":"Parenthesized pattern")}},yn.checkExpressionErrors=function(d,T){if(!d)return!1;var de=d.shorthandAssign,Ae=d.doubleProto;if(!T)return de>=0||Ae>=0;de>=0&&this.raise(de,"Shorthand property assignments are valid only in destructuring patterns"),Ae>=0&&this.raiseRecoverable(Ae,"Redefinition of __proto__ property")},yn.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")},yn.isSimpleAssignTarget=function(d){return"ParenthesizedExpression"===d.type?this.isSimpleAssignTarget(d.expression):"Identifier"===d.type||"MemberExpression"===d.type};var Xt=Bn.prototype;Xt.parseTopLevel=function(d){var T=Object.create(null);for(d.body||(d.body=[]);this.type!==w.eof;){var de=this.parseStatement(null,!0,T);d.body.push(de)}if(this.inModule)for(var Ae=0,nt=Object.keys(this.undefinedExports);Ae<nt.length;Ae+=1){var At=nt[Ae];this.raiseRecoverable(this.undefinedExports[At].start,"Export '"+At+"' is not defined")}return this.adaptDirectivePrologue(d.body),this.next(),d.sourceType=this.options.sourceType,this.finishNode(d,"Program")};var sn={kind:"loop"},tn={kind:"switch"};Xt.isLet=function(d){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;X.lastIndex=this.pos;var T=X.exec(this.input),de=this.pos+T[0].length,Ae=this.input.charCodeAt(de);if(91===Ae||92===Ae)return!0;if(d)return!1;if(123===Ae||Ae>55295&&Ae<56320)return!0;if(Z(Ae,!0)){for(var nt=de+1;le(Ae=this.input.charCodeAt(nt),!0);)++nt;if(92===Ae||Ae>55295&&Ae<56320)return!0;var At=this.input.slice(de,nt);if(!ne.test(At))return!0}return!1},Xt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;X.lastIndex=this.pos;var de,d=X.exec(this.input),T=this.pos+d[0].length;return!(j.test(this.input.slice(this.pos,T))||"function"!==this.input.slice(T,T+8)||T+8!==this.input.length&&(le(de=this.input.charCodeAt(T+8))||de>55295&&de<56320))},Xt.parseStatement=function(d,T,de){var At,Ae=this.type,nt=this.startNode();switch(this.isLet(d)&&(Ae=w._var,At="let"),Ae){case w._break:case w._continue:return this.parseBreakContinueStatement(nt,Ae.keyword);case w._debugger:return this.parseDebuggerStatement(nt);case w._do:return this.parseDoStatement(nt);case w._for:return this.parseForStatement(nt);case w._function:return d&&(this.strict||"if"!==d&&"label"!==d)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(nt,!1,!d);case w._class:return d&&this.unexpected(),this.parseClass(nt,!0);case w._if:return this.parseIfStatement(nt);case w._return:return this.parseReturnStatement(nt);case w._switch:return this.parseSwitchStatement(nt);case w._throw:return this.parseThrowStatement(nt);case w._try:return this.parseTryStatement(nt);case w._const:case w._var:return At=At||this.value,d&&"var"!==At&&this.unexpected(),this.parseVarStatement(nt,At);case w._while:return this.parseWhileStatement(nt);case w._with:return this.parseWithStatement(nt);case w.braceL:return this.parseBlock(!0,nt);case w.semi:return this.parseEmptyStatement(nt);case w._export:case w._import:if(this.options.ecmaVersion>10&&Ae===w._import){X.lastIndex=this.pos;var Ot=X.exec(this.input),En=this.input.charCodeAt(this.pos+Ot[0].length);if(40===En||46===En)return this.parseExpressionStatement(nt,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'")),Ae===w._import?this.parseImport(nt):this.parseExport(nt,de);default:if(this.isAsyncFunction())return d&&this.unexpected(),this.next(),this.parseFunctionStatement(nt,!0,!d);var tr=this.value,In=this.parseExpression();return Ae===w.name&&"Identifier"===In.type&&this.eat(w.colon)?this.parseLabeledStatement(nt,tr,In,d):this.parseExpressionStatement(nt,In)}},Xt.parseBreakContinueStatement=function(d,T){var de="break"===T;this.next(),this.eat(w.semi)||this.insertSemicolon()?d.label=null:this.type!==w.name?this.unexpected():(d.label=this.parseIdent(),this.semicolon());for(var Ae=0;Ae<this.labels.length;++Ae){var nt=this.labels[Ae];if((null==d.label||nt.name===d.label.name)&&(null!=nt.kind&&(de||"loop"===nt.kind)||d.label&&de))break}return Ae===this.labels.length&&this.raise(d.start,"Unsyntactic "+T),this.finishNode(d,de?"BreakStatement":"ContinueStatement")},Xt.parseDebuggerStatement=function(d){return this.next(),this.semicolon(),this.finishNode(d,"DebuggerStatement")},Xt.parseDoStatement=function(d){return this.next(),this.labels.push(sn),d.body=this.parseStatement("do"),this.labels.pop(),this.expect(w._while),d.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(w.semi):this.semicolon(),this.finishNode(d,"DoWhileStatement")},Xt.parseForStatement=function(d){this.next();var T=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sn),this.enterScope(0),this.expect(w.parenL),this.type===w.semi)return T>-1&&this.unexpected(T),this.parseFor(d,null);var de=this.isLet();if(this.type===w._var||this.type===w._const||de){var Ae=this.startNode(),nt=de?"let":this.value;return this.next(),this.parseVar(Ae,!0,nt),this.finishNode(Ae,"VariableDeclaration"),(this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===Ae.declarations.length?(this.options.ecmaVersion>=9&&(this.type===w._in?T>-1&&this.unexpected(T):d.await=T>-1),this.parseForIn(d,Ae)):(T>-1&&this.unexpected(T),this.parseFor(d,Ae))}var At=this.isContextual("let"),Ot=!1,gn=new Wt,En=this.parseExpression(!(T>-1)||"await",gn);return this.type===w._in||(Ot=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===w._in?T>-1&&this.unexpected(T):d.await=T>-1),At&&Ot&&this.raise(En.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(En,!1,gn),this.checkLValPattern(En),this.parseForIn(d,En)):(this.checkExpressionErrors(gn,!0),T>-1&&this.unexpected(T),this.parseFor(d,En))},Xt.parseFunctionStatement=function(d,T,de){return this.next(),this.parseFunction(d,Sn|(de?0:Ht),!1,T)},Xt.parseIfStatement=function(d){return this.next(),d.test=this.parseParenExpression(),d.consequent=this.parseStatement("if"),d.alternate=this.eat(w._else)?this.parseStatement("if"):null,this.finishNode(d,"IfStatement")},Xt.parseReturnStatement=function(d){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(w.semi)||this.insertSemicolon()?d.argument=null:(d.argument=this.parseExpression(),this.semicolon()),this.finishNode(d,"ReturnStatement")},Xt.parseSwitchStatement=function(d){this.next(),d.discriminant=this.parseParenExpression(),d.cases=[],this.expect(w.braceL),this.labels.push(tn),this.enterScope(0);for(var T,de=!1;this.type!==w.braceR;)if(this.type===w._case||this.type===w._default){var Ae=this.type===w._case;T&&this.finishNode(T,"SwitchCase"),d.cases.push(T=this.startNode()),T.consequent=[],this.next(),Ae?T.test=this.parseExpression():(de&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),de=!0,T.test=null),this.expect(w.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(d,"SwitchStatement")},Xt.parseThrowStatement=function(d){return this.next(),j.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),d.argument=this.parseExpression(),this.semicolon(),this.finishNode(d,"ThrowStatement")};var jn=[];Xt.parseCatchClauseParam=function(){var d=this.parseBindingAtom(),T="Identifier"===d.type;return this.enterScope(T?32:0),this.checkLValPattern(d,T?4:2),this.expect(w.parenR),d},Xt.parseTryStatement=function(d){if(this.next(),d.block=this.parseBlock(),d.handler=null,this.type===w._catch){var T=this.startNode();this.next(),this.eat(w.parenL)?T.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),T.param=null,this.enterScope(0)),T.body=this.parseBlock(!1),this.exitScope(),d.handler=this.finishNode(T,"CatchClause")}return d.finalizer=this.eat(w._finally)?this.parseBlock():null,!d.handler&&!d.finalizer&&this.raise(d.start,"Missing catch or finally clause"),this.finishNode(d,"TryStatement")},Xt.parseVarStatement=function(d,T,de){return this.next(),this.parseVar(d,!1,T,de),this.semicolon(),this.finishNode(d,"VariableDeclaration")},Xt.parseWhileStatement=function(d){return this.next(),d.test=this.parseParenExpression(),this.labels.push(sn),d.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(d,"WhileStatement")},Xt.parseWithStatement=function(d){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),d.object=this.parseParenExpression(),d.body=this.parseStatement("with"),this.finishNode(d,"WithStatement")},Xt.parseEmptyStatement=function(d){return this.next(),this.finishNode(d,"EmptyStatement")},Xt.parseLabeledStatement=function(d,T,de,Ae){for(var nt=0,At=this.labels;nt<At.length;nt+=1)At[nt].name===T&&this.raise(de.start,"Label '"+T+"' is already declared");for(var gn=this.type.isLoop?"loop":this.type===w._switch?"switch":null,En=this.labels.length-1;En>=0;En--){var tr=this.labels[En];if(tr.statementStart!==d.start)break;tr.statementStart=this.start,tr.kind=gn}return this.labels.push({name:T,kind:gn,statementStart:this.start}),d.body=this.parseStatement(Ae?-1===Ae.indexOf("label")?Ae+"label":Ae:"label"),this.labels.pop(),d.label=de,this.finishNode(d,"LabeledStatement")},Xt.parseExpressionStatement=function(d,T){return d.expression=T,this.semicolon(),this.finishNode(d,"ExpressionStatement")},Xt.parseBlock=function(d,T,de){for(void 0===d&&(d=!0),void 0===T&&(T=this.startNode()),T.body=[],this.expect(w.braceL),d&&this.enterScope(0);this.type!==w.braceR;){var Ae=this.parseStatement(null);T.body.push(Ae)}return de&&(this.strict=!1),this.next(),d&&this.exitScope(),this.finishNode(T,"BlockStatement")},Xt.parseFor=function(d,T){return d.init=T,this.expect(w.semi),d.test=this.type===w.semi?null:this.parseExpression(),this.expect(w.semi),d.update=this.type===w.parenR?null:this.parseExpression(),this.expect(w.parenR),d.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(d,"ForStatement")},Xt.parseForIn=function(d,T){var de=this.type===w._in;return this.next(),"VariableDeclaration"===T.type&&null!=T.declarations[0].init&&(!de||this.options.ecmaVersion<8||this.strict||"var"!==T.kind||"Identifier"!==T.declarations[0].id.type)&&this.raise(T.start,(de?"for-in":"for-of")+" loop variable declaration may not have an initializer"),d.left=T,d.right=de?this.parseExpression():this.parseMaybeAssign(),this.expect(w.parenR),d.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(d,de?"ForInStatement":"ForOfStatement")},Xt.parseVar=function(d,T,de,Ae){for(d.declarations=[],d.kind=de;;){var nt=this.startNode();if(this.parseVarId(nt,de),this.eat(w.eq)?nt.init=this.parseMaybeAssign(T):Ae||"const"!==de||this.type===w._in||this.options.ecmaVersion>=6&&this.isContextual("of")?Ae||"Identifier"===nt.id.type||T&&(this.type===w._in||this.isContextual("of"))?nt.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),d.declarations.push(this.finishNode(nt,"VariableDeclarator")),!this.eat(w.comma))break}return d},Xt.parseVarId=function(d,T){d.id=this.parseBindingAtom(),this.checkLValPattern(d.id,"var"===T?1:2,!1)};var Sn=1,Ht=2;function Gn(d,T){var de=T.key.name,Ae=d[de],nt="true";return"MethodDefinition"===T.type&&("get"===T.kind||"set"===T.kind)&&(nt=(T.static?"s":"i")+T.kind),"iget"===Ae&&"iset"===nt||"iset"===Ae&&"iget"===nt||"sget"===Ae&&"sset"===nt||"sset"===Ae&&"sget"===nt?(d[de]="true",!1):!!Ae||(d[de]=nt,!1)}function $n(d,T){var Ae=d.key;return!d.computed&&("Identifier"===Ae.type&&Ae.name===T||"Literal"===Ae.type&&Ae.value===T)}Xt.parseFunction=function(d,T,de,Ae,nt){this.initFunction(d),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Ae)&&(this.type===w.star&&T&Ht&&this.unexpected(),d.generator=this.eat(w.star)),this.options.ecmaVersion>=8&&(d.async=!!Ae),T&Sn&&(d.id=4&T&&this.type!==w.name?null:this.parseIdent(),d.id&&!(T&Ht)&&this.checkLValSimple(d.id,this.strict||d.generator||d.async?this.treatFunctionsAsVar?1:2:3));var At=this.yieldPos,Ot=this.awaitPos,gn=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ut(d.async,d.generator)),T&Sn||(d.id=this.type===w.name?this.parseIdent():null),this.parseFunctionParams(d),this.parseFunctionBody(d,de,!1,nt),this.yieldPos=At,this.awaitPos=Ot,this.awaitIdentPos=gn,this.finishNode(d,T&Sn?"FunctionDeclaration":"FunctionExpression")},Xt.parseFunctionParams=function(d){this.expect(w.parenL),d.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Xt.parseClass=function(d,T){this.next();var de=this.strict;this.strict=!0,this.parseClassId(d,T),this.parseClassSuper(d);var Ae=this.enterClassBody(),nt=this.startNode(),At=!1;for(nt.body=[],this.expect(w.braceL);this.type!==w.braceR;){var Ot=this.parseClassElement(null!==d.superClass);Ot&&(nt.body.push(Ot),"MethodDefinition"===Ot.type&&"constructor"===Ot.kind?(At&&this.raiseRecoverable(Ot.start,"Duplicate constructor in the same class"),At=!0):Ot.key&&"PrivateIdentifier"===Ot.key.type&&Gn(Ae,Ot)&&this.raiseRecoverable(Ot.key.start,"Identifier '#"+Ot.key.name+"' has already been declared"))}return this.strict=de,this.next(),d.body=this.finishNode(nt,"ClassBody"),this.exitClassBody(),this.finishNode(d,T?"ClassDeclaration":"ClassExpression")},Xt.parseClassElement=function(d){if(this.eat(w.semi))return null;var T=this.options.ecmaVersion,de=this.startNode(),Ae="",nt=!1,At=!1,Ot="method",gn=!1;if(this.eatContextual("static")){if(T>=13&&this.eat(w.braceL))return this.parseClassStaticBlock(de),de;this.isClassElementNameStart()||this.type===w.star?gn=!0:Ae="static"}if(de.static=gn,!Ae&&T>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==w.star||this.canInsertSemicolon()?Ae="async":At=!0),!Ae&&(T>=9||!At)&&this.eat(w.star)&&(nt=!0),!Ae&&!At&&!nt){var En=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Ot=En:Ae=En)}if(Ae?(de.computed=!1,de.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),de.key.name=Ae,this.finishNode(de.key,"Identifier")):this.parseClassElementName(de),T<13||this.type===w.parenL||"method"!==Ot||nt||At){var tr=!de.static&&$n(de,"constructor"),In=tr&&d;tr&&"method"!==Ot&&this.raise(de.key.start,"Constructor can't have get/set modifier"),de.kind=tr?"constructor":Ot,this.parseClassMethod(de,nt,At,In)}else this.parseClassField(de);return de},Xt.isClassElementNameStart=function(){return this.type===w.name||this.type===w.privateId||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword},Xt.parseClassElementName=function(d){this.type===w.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),d.computed=!1,d.key=this.parsePrivateIdent()):this.parsePropertyName(d)},Xt.parseClassMethod=function(d,T,de,Ae){var nt=d.key;"constructor"===d.kind?(T&&this.raise(nt.start,"Constructor can't be a generator"),de&&this.raise(nt.start,"Constructor can't be an async method")):d.static&&$n(d,"prototype")&&this.raise(nt.start,"Classes may not have a static property named prototype");var At=d.value=this.parseMethod(T,de,Ae);return"get"===d.kind&&0!==At.params.length&&this.raiseRecoverable(At.start,"getter should have no params"),"set"===d.kind&&1!==At.params.length&&this.raiseRecoverable(At.start,"setter should have exactly one param"),"set"===d.kind&&"RestElement"===At.params[0].type&&this.raiseRecoverable(At.params[0].start,"Setter cannot use rest params"),this.finishNode(d,"MethodDefinition")},Xt.parseClassField=function(d){if($n(d,"constructor")?this.raise(d.key.start,"Classes can't have a field named 'constructor'"):d.static&&$n(d,"prototype")&&this.raise(d.key.start,"Classes can't have a static field named 'prototype'"),this.eat(w.eq)){var T=this.currentThisScope(),de=T.inClassFieldInit;T.inClassFieldInit=!0,d.value=this.parseMaybeAssign(),T.inClassFieldInit=de}else d.value=null;return this.semicolon(),this.finishNode(d,"PropertyDefinition")},Xt.parseClassStaticBlock=function(d){d.body=[];var T=this.labels;for(this.labels=[],this.enterScope(320);this.type!==w.braceR;){var de=this.parseStatement(null);d.body.push(de)}return this.next(),this.exitScope(),this.labels=T,this.finishNode(d,"StaticBlock")},Xt.parseClassId=function(d,T){this.type===w.name?(d.id=this.parseIdent(),T&&this.checkLValSimple(d.id,2,!1)):(!0===T&&this.unexpected(),d.id=null)},Xt.parseClassSuper=function(d){d.superClass=this.eat(w._extends)?this.parseExprSubscripts(null,!1):null},Xt.enterClassBody=function(){var d={declared:Object.create(null),used:[]};return this.privateNameStack.push(d),d.declared},Xt.exitClassBody=function(){var d=this.privateNameStack.pop(),T=d.declared,de=d.used;if(this.options.checkPrivateFields)for(var Ae=this.privateNameStack.length,nt=0===Ae?null:this.privateNameStack[Ae-1],At=0;At<de.length;++At){var Ot=de[At];ge(T,Ot.name)||(nt?nt.used.push(Ot):this.raiseRecoverable(Ot.start,"Private field '#"+Ot.name+"' must be declared in an enclosing class"))}},Xt.parseExportAllDeclaration=function(d,T){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(d.exported=this.parseModuleExportName(),this.checkExport(T,d.exported,this.lastTokStart)):d.exported=null),this.expectContextual("from"),this.type!==w.string&&this.unexpected(),d.source=this.parseExprAtom(),this.semicolon(),this.finishNode(d,"ExportAllDeclaration")},Xt.parseExport=function(d,T){if(this.next(),this.eat(w.star))return this.parseExportAllDeclaration(d,T);if(this.eat(w._default))return this.checkExport(T,"default",this.lastTokStart),d.declaration=this.parseExportDefaultDeclaration(),this.finishNode(d,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())d.declaration=this.parseExportDeclaration(d),"VariableDeclaration"===d.declaration.type?this.checkVariableExport(T,d.declaration.declarations):this.checkExport(T,d.declaration.id,d.declaration.id.start),d.specifiers=[],d.source=null;else{if(d.declaration=null,d.specifiers=this.parseExportSpecifiers(T),this.eatContextual("from"))this.type!==w.string&&this.unexpected(),d.source=this.parseExprAtom();else{for(var de=0,Ae=d.specifiers;de<Ae.length;de+=1){var nt=Ae[de];this.checkUnreserved(nt.local),this.checkLocalExport(nt.local),"Literal"===nt.local.type&&this.raise(nt.local.start,"A string literal cannot be used as an exported binding without `from`.")}d.source=null}this.semicolon()}return this.finishNode(d,"ExportNamedDeclaration")},Xt.parseExportDeclaration=function(d){return this.parseStatement(null)},Xt.parseExportDefaultDeclaration=function(){var d;if(this.type===w._function||(d=this.isAsyncFunction())){var T=this.startNode();return this.next(),d&&this.next(),this.parseFunction(T,4|Sn,!1,d)}if(this.type===w._class){var de=this.startNode();return this.parseClass(de,"nullableID")}var Ae=this.parseMaybeAssign();return this.semicolon(),Ae},Xt.checkExport=function(d,T,de){d&&("string"!=typeof T&&(T="Identifier"===T.type?T.name:T.value),ge(d,T)&&this.raiseRecoverable(de,"Duplicate export '"+T+"'"),d[T]=!0)},Xt.checkPatternExport=function(d,T){var de=T.type;if("Identifier"===de)this.checkExport(d,T,T.start);else if("ObjectPattern"===de)for(var Ae=0,nt=T.properties;Ae<nt.length;Ae+=1)this.checkPatternExport(d,nt[Ae]);else if("ArrayPattern"===de)for(var Ot=0,gn=T.elements;Ot<gn.length;Ot+=1){var En=gn[Ot];En&&this.checkPatternExport(d,En)}else"Property"===de?this.checkPatternExport(d,T.value):"AssignmentPattern"===de?this.checkPatternExport(d,T.left):"RestElement"===de&&this.checkPatternExport(d,T.argument)},Xt.checkVariableExport=function(d,T){if(d)for(var de=0,Ae=T;de<Ae.length;de+=1)this.checkPatternExport(d,Ae[de].id)},Xt.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Xt.parseExportSpecifier=function(d){var T=this.startNode();return T.local=this.parseModuleExportName(),T.exported=this.eatContextual("as")?this.parseModuleExportName():T.local,this.checkExport(d,T.exported,T.exported.start),this.finishNode(T,"ExportSpecifier")},Xt.parseExportSpecifiers=function(d){var T=[],de=!0;for(this.expect(w.braceL);!this.eat(w.braceR);){if(de)de=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;T.push(this.parseExportSpecifier(d))}return T},Xt.parseImport=function(d){return this.next(),this.type===w.string?(d.specifiers=jn,d.source=this.parseExprAtom()):(d.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),d.source=this.type===w.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(d,"ImportDeclaration")},Xt.parseImportSpecifier=function(){var d=this.startNode();return d.imported=this.parseModuleExportName(),this.eatContextual("as")?d.local=this.parseIdent():(this.checkUnreserved(d.imported),d.local=d.imported),this.checkLValSimple(d.local,2),this.finishNode(d,"ImportSpecifier")},Xt.parseImportDefaultSpecifier=function(){var d=this.startNode();return d.local=this.parseIdent(),this.checkLValSimple(d.local,2),this.finishNode(d,"ImportDefaultSpecifier")},Xt.parseImportNamespaceSpecifier=function(){var d=this.startNode();return this.next(),this.expectContextual("as"),d.local=this.parseIdent(),this.checkLValSimple(d.local,2),this.finishNode(d,"ImportNamespaceSpecifier")},Xt.parseImportSpecifiers=function(){var d=[],T=!0;if(this.type===w.name&&(d.push(this.parseImportDefaultSpecifier()),!this.eat(w.comma)))return d;if(this.type===w.star)return d.push(this.parseImportNamespaceSpecifier()),d;for(this.expect(w.braceL);!this.eat(w.braceR);){if(T)T=!1;else if(this.expect(w.comma),this.afterTrailingComma(w.braceR))break;d.push(this.parseImportSpecifier())}return d},Xt.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===w.string){var d=this.parseLiteral(this.value);return Ze.test(d.value)&&this.raise(d.start,"An export name cannot include a lone surrogate."),d}return this.parseIdent(!0)},Xt.adaptDirectivePrologue=function(d){for(var T=0;T<d.length&&this.isDirectiveCandidate(d[T]);++T)d[T].directive=d[T].expression.raw.slice(1,-1)},Xt.isDirectiveCandidate=function(d){return this.options.ecmaVersion>=5&&"ExpressionStatement"===d.type&&"Literal"===d.expression.type&&"string"==typeof d.expression.value&&('"'===this.input[d.start]||"'"===this.input[d.start])};var qn=Bn.prototype;qn.toAssignable=function(d,T,de){if(this.options.ecmaVersion>=6&&d)switch(d.type){case"Identifier":this.inAsync&&"await"===d.name&&this.raise(d.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":d.type="ObjectPattern",de&&this.checkPatternErrors(de,!0);for(var Ae=0,nt=d.properties;Ae<nt.length;Ae+=1){var At=nt[Ae];this.toAssignable(At,T),"RestElement"===At.type&&("ArrayPattern"===At.argument.type||"ObjectPattern"===At.argument.type)&&this.raise(At.argument.start,"Unexpected token")}break;case"Property":"init"!==d.kind&&this.raise(d.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(d.value,T);break;case"ArrayExpression":d.type="ArrayPattern",de&&this.checkPatternErrors(de,!0),this.toAssignableList(d.elements,T);break;case"SpreadElement":d.type="RestElement",this.toAssignable(d.argument,T),"AssignmentPattern"===d.argument.type&&this.raise(d.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==d.operator&&this.raise(d.left.end,"Only '=' operator can be used for specifying default value."),d.type="AssignmentPattern",delete d.operator,this.toAssignable(d.left,T);break;case"ParenthesizedExpression":this.toAssignable(d.expression,T,de);break;case"ChainExpression":this.raiseRecoverable(d.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!T)break;default:this.raise(d.start,"Assigning to rvalue")}else de&&this.checkPatternErrors(de,!0);return d},qn.toAssignableList=function(d,T){for(var de=d.length,Ae=0;Ae<de;Ae++){var nt=d[Ae];nt&&this.toAssignable(nt,T)}if(de){var At=d[de-1];6===this.options.ecmaVersion&&T&&At&&"RestElement"===At.type&&"Identifier"!==At.argument.type&&this.unexpected(At.argument.start)}return d},qn.parseSpread=function(d){var T=this.startNode();return this.next(),T.argument=this.parseMaybeAssign(!1,d),this.finishNode(T,"SpreadElement")},qn.parseRestBinding=function(){var d=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==w.name&&this.unexpected(),d.argument=this.parseBindingAtom(),this.finishNode(d,"RestElement")},qn.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case w.bracketL:var d=this.startNode();return this.next(),d.elements=this.parseBindingList(w.bracketR,!0,!0),this.finishNode(d,"ArrayPattern");case w.braceL:return this.parseObj(!0)}return this.parseIdent()},qn.parseBindingList=function(d,T,de,Ae){for(var nt=[],At=!0;!this.eat(d);)if(At?At=!1:this.expect(w.comma),T&&this.type===w.comma)nt.push(null);else{if(de&&this.afterTrailingComma(d))break;if(this.type===w.ellipsis){var Ot=this.parseRestBinding();this.parseBindingListItem(Ot),nt.push(Ot),this.type===w.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(d);break}nt.push(this.parseAssignableListItem(Ae))}return nt},qn.parseAssignableListItem=function(d){var T=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(T),T},qn.parseBindingListItem=function(d){return d},qn.parseMaybeDefault=function(d,T,de){if(de=de||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(w.eq))return de;var Ae=this.startNodeAt(d,T);return Ae.left=de,Ae.right=this.parseMaybeAssign(),this.finishNode(Ae,"AssignmentPattern")},qn.checkLValSimple=function(d,T,de){void 0===T&&(T=0);var Ae=0!==T;switch(d.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(d.name)&&this.raiseRecoverable(d.start,(Ae?"Binding ":"Assigning to ")+d.name+" in strict mode"),Ae&&(2===T&&"let"===d.name&&this.raiseRecoverable(d.start,"let is disallowed as a lexically bound name"),de&&(ge(de,d.name)&&this.raiseRecoverable(d.start,"Argument name clash"),de[d.name]=!0),5!==T&&this.declareName(d.name,T,d.start));break;case"ChainExpression":this.raiseRecoverable(d.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":Ae&&this.raiseRecoverable(d.start,"Binding member expression");break;case"ParenthesizedExpression":return Ae&&this.raiseRecoverable(d.start,"Binding parenthesized expression"),this.checkLValSimple(d.expression,T,de);default:this.raise(d.start,(Ae?"Binding":"Assigning to")+" rvalue")}},qn.checkLValPattern=function(d,T,de){switch(void 0===T&&(T=0),d.type){case"ObjectPattern":for(var Ae=0,nt=d.properties;Ae<nt.length;Ae+=1)this.checkLValInnerPattern(nt[Ae],T,de);break;case"ArrayPattern":for(var Ot=0,gn=d.elements;Ot<gn.length;Ot+=1){var En=gn[Ot];En&&this.checkLValInnerPattern(En,T,de)}break;default:this.checkLValSimple(d,T,de)}},qn.checkLValInnerPattern=function(d,T,de){switch(void 0===T&&(T=0),d.type){case"Property":this.checkLValInnerPattern(d.value,T,de);break;case"AssignmentPattern":this.checkLValPattern(d.left,T,de);break;case"RestElement":this.checkLValPattern(d.argument,T,de);break;default:this.checkLValPattern(d,T,de)}};var Kn=function(T,de,Ae,nt,At){this.token=T,this.isExpr=!!de,this.preserveSpace=!!Ae,this.override=nt,this.generator=!!At},Qn={b_stat:new Kn("{",!1),b_expr:new Kn("{",!0),b_tmpl:new Kn("${",!1),p_stat:new Kn("(",!1),p_expr:new Kn("(",!0),q_tmpl:new Kn("`",!0,!0,function(d){return d.tryReadTemplateToken()}),f_stat:new Kn("function",!1),f_expr:new Kn("function",!0),f_expr_gen:new Kn("function",!0,!1,null,!0),f_gen:new Kn("function",!1,!1,null,!0)},Rr=Bn.prototype;Rr.initialContext=function(){return[Qn.b_stat]},Rr.curContext=function(){return this.context[this.context.length-1]},Rr.braceIsBlock=function(d){var T=this.curContext();return T===Qn.f_expr||T===Qn.f_stat||(d!==w.colon||T!==Qn.b_stat&&T!==Qn.b_expr?d===w._return||d===w.name&&this.exprAllowed?j.test(this.input.slice(this.lastTokEnd,this.start)):d===w._else||d===w.semi||d===w.eof||d===w.parenR||d===w.arrow||(d===w.braceL?T===Qn.b_stat:d!==w._var&&d!==w._const&&d!==w.name&&!this.exprAllowed):!T.isExpr)},Rr.inGeneratorContext=function(){for(var d=this.context.length-1;d>=1;d--){var T=this.context[d];if("function"===T.token)return T.generator}return!1},Rr.updateContext=function(d){var T,de=this.type;de.keyword&&d===w.dot?this.exprAllowed=!1:(T=de.updateContext)?T.call(this,d):this.exprAllowed=de.beforeExpr},Rr.overrideContext=function(d){this.curContext()!==d&&(this.context[this.context.length-1]=d)},w.parenR.updateContext=w.braceR.updateContext=function(){if(1!==this.context.length){var d=this.context.pop();d===Qn.b_stat&&"function"===this.curContext().token&&(d=this.context.pop()),this.exprAllowed=!d.isExpr}else this.exprAllowed=!0},w.braceL.updateContext=function(d){this.context.push(this.braceIsBlock(d)?Qn.b_stat:Qn.b_expr),this.exprAllowed=!0},w.dollarBraceL.updateContext=function(){this.context.push(Qn.b_tmpl),this.exprAllowed=!0},w.parenL.updateContext=function(d){this.context.push(d===w._if||d===w._for||d===w._with||d===w._while?Qn.p_stat:Qn.p_expr),this.exprAllowed=!0},w.incDec.updateContext=function(){},w._function.updateContext=w._class.updateContext=function(d){!d.beforeExpr||d===w._else||d===w.semi&&this.curContext()!==Qn.p_stat||d===w._return&&j.test(this.input.slice(this.lastTokEnd,this.start))||(d===w.colon||d===w.braceL)&&this.curContext()===Qn.b_stat?this.context.push(Qn.f_stat):this.context.push(Qn.f_expr),this.exprAllowed=!1},w.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},w.backQuote.updateContext=function(){this.curContext()===Qn.q_tmpl?this.context.pop():this.context.push(Qn.q_tmpl),this.exprAllowed=!1},w.star.updateContext=function(d){if(d===w._function){var T=this.context.length-1;this.context[T]=this.context[T]===Qn.f_expr?Qn.f_expr_gen:Qn.f_gen}this.exprAllowed=!0},w.name.updateContext=function(d){var T=!1;this.options.ecmaVersion>=6&&d!==w.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(T=!0),this.exprAllowed=T};var Pn=Bn.prototype;function Dt(d){return"MemberExpression"===d.type&&"PrivateIdentifier"===d.property.type||"ChainExpression"===d.type&&Dt(d.expression)}Pn.checkPropClash=function(d,T,de){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===d.type||this.options.ecmaVersion>=6&&(d.computed||d.method||d.shorthand))){var nt,Ae=d.key;switch(Ae.type){case"Identifier":nt=Ae.name;break;case"Literal":nt=String(Ae.value);break;default:return}var At=d.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===nt&&"init"===At&&(T.proto&&(de?de.doubleProto<0&&(de.doubleProto=Ae.start):this.raiseRecoverable(Ae.start,"Redefinition of __proto__ property")),T.proto=!0));var Ot=T[nt="$"+nt];Ot?("init"===At?this.strict&&Ot.init||Ot.get||Ot.set:Ot.init||Ot[At])&&this.raiseRecoverable(Ae.start,"Redefinition of property"):Ot=T[nt]={init:!1,get:!1,set:!1},Ot[At]=!0}},Pn.parseExpression=function(d,T){var de=this.start,Ae=this.startLoc,nt=this.parseMaybeAssign(d,T);if(this.type===w.comma){var At=this.startNodeAt(de,Ae);for(At.expressions=[nt];this.eat(w.comma);)At.expressions.push(this.parseMaybeAssign(d,T));return this.finishNode(At,"SequenceExpression")}return nt},Pn.parseMaybeAssign=function(d,T,de){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(d);this.exprAllowed=!1}var Ae=!1,nt=-1,At=-1,Ot=-1;T?(nt=T.parenthesizedAssign,At=T.trailingComma,Ot=T.doubleProto,T.parenthesizedAssign=T.trailingComma=-1):(T=new Wt,Ae=!0);var gn=this.start,En=this.startLoc;(this.type===w.parenL||this.type===w.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===d);var tr=this.parseMaybeConditional(d,T);if(de&&(tr=de.call(this,tr,gn,En)),this.type.isAssign){var In=this.startNodeAt(gn,En);return In.operator=this.value,this.type===w.eq&&(tr=this.toAssignable(tr,!1,T)),Ae||(T.parenthesizedAssign=T.trailingComma=T.doubleProto=-1),T.shorthandAssign>=tr.start&&(T.shorthandAssign=-1),this.type===w.eq?this.checkLValPattern(tr):this.checkLValSimple(tr),In.left=tr,this.next(),In.right=this.parseMaybeAssign(d),Ot>-1&&(T.doubleProto=Ot),this.finishNode(In,"AssignmentExpression")}return Ae&&this.checkExpressionErrors(T,!0),nt>-1&&(T.parenthesizedAssign=nt),At>-1&&(T.trailingComma=At),tr},Pn.parseMaybeConditional=function(d,T){var de=this.start,Ae=this.startLoc,nt=this.parseExprOps(d,T);if(this.checkExpressionErrors(T))return nt;if(this.eat(w.question)){var At=this.startNodeAt(de,Ae);return At.test=nt,At.consequent=this.parseMaybeAssign(),this.expect(w.colon),At.alternate=this.parseMaybeAssign(d),this.finishNode(At,"ConditionalExpression")}return nt},Pn.parseExprOps=function(d,T){var de=this.start,Ae=this.startLoc,nt=this.parseMaybeUnary(T,!1,!1,d);return this.checkExpressionErrors(T)||nt.start===de&&"ArrowFunctionExpression"===nt.type?nt:this.parseExprOp(nt,de,Ae,-1,d)},Pn.parseExprOp=function(d,T,de,Ae,nt){var At=this.type.binop;if(null!=At&&(!nt||this.type!==w._in)&&At>Ae){var Ot=this.type===w.logicalOR||this.type===w.logicalAND,gn=this.type===w.coalesce;gn&&(At=w.logicalAND.binop);var En=this.value;this.next();var tr=this.start,In=this.startLoc,Mr=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,nt),tr,In,At,nt),hr=this.buildBinary(T,de,d,Mr,En,Ot||gn);return(Ot&&this.type===w.coalesce||gn&&(this.type===w.logicalOR||this.type===w.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(hr,T,de,Ae,nt)}return d},Pn.buildBinary=function(d,T,de,Ae,nt,At){"PrivateIdentifier"===Ae.type&&this.raise(Ae.start,"Private identifier can only be left side of binary expression");var Ot=this.startNodeAt(d,T);return Ot.left=de,Ot.operator=nt,Ot.right=Ae,this.finishNode(Ot,At?"LogicalExpression":"BinaryExpression")},Pn.parseMaybeUnary=function(d,T,de,Ae){var Ot,nt=this.start,At=this.startLoc;if(this.isContextual("await")&&this.canAwait)Ot=this.parseAwait(Ae),T=!0;else if(this.type.prefix){var gn=this.startNode(),En=this.type===w.incDec;gn.operator=this.value,gn.prefix=!0,this.next(),gn.argument=this.parseMaybeUnary(null,!0,En,Ae),this.checkExpressionErrors(d,!0),En?this.checkLValSimple(gn.argument):this.strict&&"delete"===gn.operator&&"Identifier"===gn.argument.type?this.raiseRecoverable(gn.start,"Deleting local variable in strict mode"):"delete"===gn.operator&&Dt(gn.argument)?this.raiseRecoverable(gn.start,"Private fields can not be deleted"):T=!0,Ot=this.finishNode(gn,En?"UpdateExpression":"UnaryExpression")}else if(T||this.type!==w.privateId){if(Ot=this.parseExprSubscripts(d,Ae),this.checkExpressionErrors(d))return Ot;for(;this.type.postfix&&!this.canInsertSemicolon();){var tr=this.startNodeAt(nt,At);tr.operator=this.value,tr.prefix=!1,tr.argument=Ot,this.checkLValSimple(Ot),this.next(),Ot=this.finishNode(tr,"UpdateExpression")}}else(Ae||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),Ot=this.parsePrivateIdent(),this.type!==w._in&&this.unexpected();return de||!this.eat(w.starstar)?Ot:T?void this.unexpected(this.lastTokStart):this.buildBinary(nt,At,Ot,this.parseMaybeUnary(null,!1,!1,Ae),"**",!1)},Pn.parseExprSubscripts=function(d,T){var de=this.start,Ae=this.startLoc,nt=this.parseExprAtom(d,T);if("ArrowFunctionExpression"===nt.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return nt;var At=this.parseSubscripts(nt,de,Ae,!1,T);return d&&"MemberExpression"===At.type&&(d.parenthesizedAssign>=At.start&&(d.parenthesizedAssign=-1),d.parenthesizedBind>=At.start&&(d.parenthesizedBind=-1),d.trailingComma>=At.start&&(d.trailingComma=-1)),At},Pn.parseSubscripts=function(d,T,de,Ae,nt){for(var At=this.options.ecmaVersion>=8&&"Identifier"===d.type&&"async"===d.name&&this.lastTokEnd===d.end&&!this.canInsertSemicolon()&&d.end-d.start==5&&this.potentialArrowAt===d.start,Ot=!1;;){var gn=this.parseSubscript(d,T,de,Ae,At,Ot,nt);if(gn.optional&&(Ot=!0),gn===d||"ArrowFunctionExpression"===gn.type){if(Ot){var En=this.startNodeAt(T,de);En.expression=gn,gn=this.finishNode(En,"ChainExpression")}return gn}d=gn}},Pn.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(w.arrow)},Pn.parseSubscriptAsyncArrow=function(d,T,de,Ae){return this.parseArrowExpression(this.startNodeAt(d,T),de,!0,Ae)},Pn.parseSubscript=function(d,T,de,Ae,nt,At,Ot){var gn=this.options.ecmaVersion>=11,En=gn&&this.eat(w.questionDot);Ae&&En&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var tr=this.eat(w.bracketL);if(tr||En&&this.type!==w.parenL&&this.type!==w.backQuote||this.eat(w.dot)){var In=this.startNodeAt(T,de);In.object=d,tr?(In.property=this.parseExpression(),this.expect(w.bracketR)):In.property=this.type===w.privateId&&"Super"!==d.type?this.parsePrivateIdent():this.parseIdent("never"!==this.options.allowReserved),In.computed=!!tr,gn&&(In.optional=En),d=this.finishNode(In,"MemberExpression")}else if(!Ae&&this.eat(w.parenL)){var Mr=new Wt,hr=this.yieldPos,Hi=this.awaitPos,Yn=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Pr=this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1,Mr);if(nt&&!En&&this.shouldParseAsyncArrow())return this.checkPatternErrors(Mr,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=hr,this.awaitPos=Hi,this.awaitIdentPos=Yn,this.parseSubscriptAsyncArrow(T,de,Pr,Ot);this.checkExpressionErrors(Mr,!0),this.yieldPos=hr||this.yieldPos,this.awaitPos=Hi||this.awaitPos,this.awaitIdentPos=Yn||this.awaitIdentPos;var io=this.startNodeAt(T,de);io.callee=d,io.arguments=Pr,gn&&(io.optional=En),d=this.finishNode(io,"CallExpression")}else if(this.type===w.backQuote){(En||At)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Ui=this.startNodeAt(T,de);Ui.tag=d,Ui.quasi=this.parseTemplate({isTagged:!0}),d=this.finishNode(Ui,"TaggedTemplateExpression")}return d},Pn.parseExprAtom=function(d,T,de){this.type===w.slash&&this.readRegexp();var Ae,nt=this.potentialArrowAt===this.start;switch(this.type){case w._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),Ae=this.startNode(),this.next(),this.type===w.parenL&&!this.allowDirectSuper&&this.raise(Ae.start,"super() call outside constructor of a subclass"),this.type!==w.dot&&this.type!==w.bracketL&&this.type!==w.parenL&&this.unexpected(),this.finishNode(Ae,"Super");case w._this:return Ae=this.startNode(),this.next(),this.finishNode(Ae,"ThisExpression");case w.name:var At=this.start,Ot=this.startLoc,gn=this.containsEsc,En=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!gn&&"async"===En.name&&!this.canInsertSemicolon()&&this.eat(w._function))return this.overrideContext(Qn.f_expr),this.parseFunction(this.startNodeAt(At,Ot),0,!1,!0,T);if(nt&&!this.canInsertSemicolon()){if(this.eat(w.arrow))return this.parseArrowExpression(this.startNodeAt(At,Ot),[En],!1,T);if(this.options.ecmaVersion>=8&&"async"===En.name&&this.type===w.name&&!gn&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return En=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(w.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(At,Ot),[En],!0,T)}return En;case w.regexp:var tr=this.value;return(Ae=this.parseLiteral(tr.value)).regex={pattern:tr.pattern,flags:tr.flags},Ae;case w.num:case w.string:return this.parseLiteral(this.value);case w._null:case w._true:case w._false:return(Ae=this.startNode()).value=this.type===w._null?null:this.type===w._true,Ae.raw=this.type.keyword,this.next(),this.finishNode(Ae,"Literal");case w.parenL:var In=this.start,Mr=this.parseParenAndDistinguishExpression(nt,T);return d&&(d.parenthesizedAssign<0&&!this.isSimpleAssignTarget(Mr)&&(d.parenthesizedAssign=In),d.parenthesizedBind<0&&(d.parenthesizedBind=In)),Mr;case w.bracketL:return Ae=this.startNode(),this.next(),Ae.elements=this.parseExprList(w.bracketR,!0,!0,d),this.finishNode(Ae,"ArrayExpression");case w.braceL:return this.overrideContext(Qn.b_expr),this.parseObj(!1,d);case w._function:return Ae=this.startNode(),this.next(),this.parseFunction(Ae,0);case w._class:return this.parseClass(this.startNode(),!1);case w._new:return this.parseNew();case w.backQuote:return this.parseTemplate();case w._import:return this.options.ecmaVersion>=11?this.parseExprImport(de):this.unexpected();default:return this.parseExprAtomDefault()}},Pn.parseExprAtomDefault=function(){this.unexpected()},Pn.parseExprImport=function(d){var T=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===w.parenL&&!d)return this.parseDynamicImport(T);if(this.type===w.dot){var de=this.startNodeAt(T.start,T.loc&&T.loc.start);return de.name="import",T.meta=this.finishNode(de,"Identifier"),this.parseImportMeta(T)}this.unexpected()},Pn.parseDynamicImport=function(d){if(this.next(),d.source=this.parseMaybeAssign(),!this.eat(w.parenR)){var T=this.start;this.eat(w.comma)&&this.eat(w.parenR)?this.raiseRecoverable(T,"Trailing comma is not allowed in import()"):this.unexpected(T)}return this.finishNode(d,"ImportExpression")},Pn.parseImportMeta=function(d){this.next();var T=this.containsEsc;return d.property=this.parseIdent(!0),"meta"!==d.property.name&&this.raiseRecoverable(d.property.start,"The only valid meta property for import is 'import.meta'"),T&&this.raiseRecoverable(d.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(d.start,"Cannot use 'import.meta' outside a module"),this.finishNode(d,"MetaProperty")},Pn.parseLiteral=function(d){var T=this.startNode();return T.value=d,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")},Pn.parseParenExpression=function(){this.expect(w.parenL);var d=this.parseExpression();return this.expect(w.parenR),d},Pn.shouldParseArrow=function(d){return!this.canInsertSemicolon()},Pn.parseParenAndDistinguishExpression=function(d,T){var nt,de=this.start,Ae=this.startLoc,At=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Yn,Ot=this.start,gn=this.startLoc,En=[],tr=!0,In=!1,Mr=new Wt,hr=this.yieldPos,Hi=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==w.parenR;){if(tr?tr=!1:this.expect(w.comma),At&&this.afterTrailingComma(w.parenR,!0)){In=!0;break}if(this.type===w.ellipsis){Yn=this.start,En.push(this.parseParenItem(this.parseRestBinding())),this.type===w.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}En.push(this.parseMaybeAssign(!1,Mr,this.parseParenItem))}var Pr=this.lastTokEnd,io=this.lastTokEndLoc;if(this.expect(w.parenR),d&&this.shouldParseArrow(En)&&this.eat(w.arrow))return this.checkPatternErrors(Mr,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=hr,this.awaitPos=Hi,this.parseParenArrowList(de,Ae,En,T);(!En.length||In)&&this.unexpected(this.lastTokStart),Yn&&this.unexpected(Yn),this.checkExpressionErrors(Mr,!0),this.yieldPos=hr||this.yieldPos,this.awaitPos=Hi||this.awaitPos,En.length>1?((nt=this.startNodeAt(Ot,gn)).expressions=En,this.finishNodeAt(nt,"SequenceExpression",Pr,io)):nt=En[0]}else nt=this.parseParenExpression();if(this.options.preserveParens){var Ui=this.startNodeAt(de,Ae);return Ui.expression=nt,this.finishNode(Ui,"ParenthesizedExpression")}return nt},Pn.parseParenItem=function(d){return d},Pn.parseParenArrowList=function(d,T,de,Ae){return this.parseArrowExpression(this.startNodeAt(d,T),de,!1,Ae)};var ke=[];Pn.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var d=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===w.dot){var T=this.startNodeAt(d.start,d.loc&&d.loc.start);T.name="new",d.meta=this.finishNode(T,"Identifier"),this.next();var de=this.containsEsc;return d.property=this.parseIdent(!0),"target"!==d.property.name&&this.raiseRecoverable(d.property.start,"The only valid meta property for new is 'new.target'"),de&&this.raiseRecoverable(d.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(d.start,"'new.target' can only be used in functions and class static block"),this.finishNode(d,"MetaProperty")}var Ae=this.start,nt=this.startLoc;return d.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Ae,nt,!0,!1),d.arguments=this.eat(w.parenL)?this.parseExprList(w.parenR,this.options.ecmaVersion>=8,!1):ke,this.finishNode(d,"NewExpression")},Pn.parseTemplateElement=function(d){var T=d.isTagged,de=this.startNode();return this.type===w.invalidTemplate?(T||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),de.value={raw:this.value,cooked:null}):de.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),de.tail=this.type===w.backQuote,this.finishNode(de,"TemplateElement")},Pn.parseTemplate=function(d){void 0===d&&(d={});var T=d.isTagged;void 0===T&&(T=!1);var de=this.startNode();this.next(),de.expressions=[];var Ae=this.parseTemplateElement({isTagged:T});for(de.quasis=[Ae];!Ae.tail;)this.type===w.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(w.dollarBraceL),de.expressions.push(this.parseExpression()),this.expect(w.braceR),de.quasis.push(Ae=this.parseTemplateElement({isTagged:T}));return this.next(),this.finishNode(de,"TemplateLiteral")},Pn.isAsyncProp=function(d){return!d.computed&&"Identifier"===d.key.type&&"async"===d.key.name&&(this.type===w.name||this.type===w.num||this.type===w.string||this.type===w.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===w.star)&&!j.test(this.input.slice(this.lastTokEnd,this.start))},Pn.parseObj=function(d,T){var de=this.startNode(),Ae=!0,nt={};for(de.properties=[],this.next();!this.eat(w.braceR);){if(Ae)Ae=!1;else if(this.expect(w.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(w.braceR))break;var At=this.parseProperty(d,T);d||this.checkPropClash(At,nt,T),de.properties.push(At)}return this.finishNode(de,d?"ObjectPattern":"ObjectExpression")},Pn.parseProperty=function(d,T){var Ae,nt,At,Ot,de=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(w.ellipsis))return d?(de.argument=this.parseIdent(!1),this.type===w.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(de,"RestElement")):(de.argument=this.parseMaybeAssign(!1,T),this.type===w.comma&&T&&T.trailingComma<0&&(T.trailingComma=this.start),this.finishNode(de,"SpreadElement"));this.options.ecmaVersion>=6&&(de.method=!1,de.shorthand=!1,(d||T)&&(At=this.start,Ot=this.startLoc),d||(Ae=this.eat(w.star)));var gn=this.containsEsc;return this.parsePropertyName(de),!d&&!gn&&this.options.ecmaVersion>=8&&!Ae&&this.isAsyncProp(de)?(nt=!0,Ae=this.options.ecmaVersion>=9&&this.eat(w.star),this.parsePropertyName(de)):nt=!1,this.parsePropertyValue(de,d,Ae,nt,At,Ot,T,gn),this.finishNode(de,"Property")},Pn.parseGetterSetter=function(d){(d.kind=d.key.name,this.parsePropertyName(d),d.value=this.parseMethod(!1),d.value.params.length!==("get"===d.kind?0:1))?this.raiseRecoverable(d.value.start,"get"===d.kind?"getter should have no params":"setter should have exactly one param"):"set"===d.kind&&"RestElement"===d.value.params[0].type&&this.raiseRecoverable(d.value.params[0].start,"Setter cannot use rest params")},Pn.parsePropertyValue=function(d,T,de,Ae,nt,At,Ot,gn){(de||Ae)&&this.type===w.colon&&this.unexpected(),this.eat(w.colon)?(d.value=T?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Ot),d.kind="init"):this.options.ecmaVersion>=6&&this.type===w.parenL?(T&&this.unexpected(),d.kind="init",d.method=!0,d.value=this.parseMethod(de,Ae)):T||gn||!(this.options.ecmaVersion>=5)||d.computed||"Identifier"!==d.key.type||"get"!==d.key.name&&"set"!==d.key.name||this.type===w.comma||this.type===w.braceR||this.type===w.eq?this.options.ecmaVersion>=6&&!d.computed&&"Identifier"===d.key.type?((de||Ae)&&this.unexpected(),this.checkUnreserved(d.key),"await"===d.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=nt),d.kind="init",T?d.value=this.parseMaybeDefault(nt,At,this.copyNode(d.key)):this.type===w.eq&&Ot?(Ot.shorthandAssign<0&&(Ot.shorthandAssign=this.start),d.value=this.parseMaybeDefault(nt,At,this.copyNode(d.key))):d.value=this.copyNode(d.key),d.shorthand=!0):this.unexpected():((de||Ae)&&this.unexpected(),this.parseGetterSetter(d))},Pn.parsePropertyName=function(d){if(this.options.ecmaVersion>=6){if(this.eat(w.bracketL))return d.computed=!0,d.key=this.parseMaybeAssign(),this.expect(w.bracketR),d.key;d.computed=!1}return d.key=this.type===w.num||this.type===w.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},Pn.initFunction=function(d){d.id=null,this.options.ecmaVersion>=6&&(d.generator=d.expression=!1),this.options.ecmaVersion>=8&&(d.async=!1)},Pn.parseMethod=function(d,T,de){var Ae=this.startNode(),nt=this.yieldPos,At=this.awaitPos,Ot=this.awaitIdentPos;return this.initFunction(Ae),this.options.ecmaVersion>=6&&(Ae.generator=d),this.options.ecmaVersion>=8&&(Ae.async=!!T),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|ut(T,Ae.generator)|(de?128:0)),this.expect(w.parenL),Ae.params=this.parseBindingList(w.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Ae,!1,!0,!1),this.yieldPos=nt,this.awaitPos=At,this.awaitIdentPos=Ot,this.finishNode(Ae,"FunctionExpression")},Pn.parseArrowExpression=function(d,T,de,Ae){var nt=this.yieldPos,At=this.awaitPos,Ot=this.awaitIdentPos;return this.enterScope(16|ut(de,!1)),this.initFunction(d),this.options.ecmaVersion>=8&&(d.async=!!de),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,d.params=this.toAssignableList(T,!0),this.parseFunctionBody(d,!0,!1,Ae),this.yieldPos=nt,this.awaitPos=At,this.awaitIdentPos=Ot,this.finishNode(d,"ArrowFunctionExpression")},Pn.parseFunctionBody=function(d,T,de,Ae){var At=this.strict,Ot=!1;if(T&&this.type!==w.braceL)d.body=this.parseMaybeAssign(Ae),d.expression=!0,this.checkParams(d,!1);else{var gn=this.options.ecmaVersion>=7&&!this.isSimpleParamList(d.params);(!At||gn)&&(Ot=this.strictDirective(this.end))&&gn&&this.raiseRecoverable(d.start,"Illegal 'use strict' directive in function with non-simple parameter list");var En=this.labels;this.labels=[],Ot&&(this.strict=!0),this.checkParams(d,!At&&!Ot&&!T&&!de&&this.isSimpleParamList(d.params)),this.strict&&d.id&&this.checkLValSimple(d.id,5),d.body=this.parseBlock(!1,void 0,Ot&&!At),d.expression=!1,this.adaptDirectivePrologue(d.body.body),this.labels=En}this.exitScope()},Pn.isSimpleParamList=function(d){for(var T=0,de=d;T<de.length;T+=1)if("Identifier"!==de[T].type)return!1;return!0},Pn.checkParams=function(d,T){for(var de=Object.create(null),Ae=0,nt=d.params;Ae<nt.length;Ae+=1)this.checkLValInnerPattern(nt[Ae],1,T?null:de)},Pn.parseExprList=function(d,T,de,Ae){for(var nt=[],At=!0;!this.eat(d);){if(At)At=!1;else if(this.expect(w.comma),T&&this.afterTrailingComma(d))break;var Ot=void 0;de&&this.type===w.comma?Ot=null:this.type===w.ellipsis?(Ot=this.parseSpread(Ae),Ae&&this.type===w.comma&&Ae.trailingComma<0&&(Ae.trailingComma=this.start)):Ot=this.parseMaybeAssign(!1,Ae),nt.push(Ot)}return nt},Pn.checkUnreserved=function(d){var T=d.start,de=d.end,Ae=d.name;this.inGenerator&&"yield"===Ae&&this.raiseRecoverable(T,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===Ae&&this.raiseRecoverable(T,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===Ae&&this.raiseRecoverable(T,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===Ae||"await"===Ae)&&this.raise(T,"Cannot use "+Ae+" in class static initialization block"),this.keywords.test(Ae)&&this.raise(T,"Unexpected keyword '"+Ae+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(T,de).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(Ae)&&(!this.inAsync&&"await"===Ae&&this.raiseRecoverable(T,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(T,"The keyword '"+Ae+"' is reserved"))},Pn.parseIdent=function(d){var T=this.parseIdentNode();return this.next(!!d),this.finishNode(T,"Identifier"),d||(this.checkUnreserved(T),"await"===T.name&&!this.awaitIdentPos&&(this.awaitIdentPos=T.start)),T},Pn.parseIdentNode=function(){var d=this.startNode();return this.type===w.name?d.name=this.value:this.type.keyword?(d.name=this.type.keyword,("class"===d.name||"function"===d.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=w.name):this.unexpected(),d},Pn.parsePrivateIdent=function(){var d=this.startNode();return this.type===w.privateId?d.name=this.value:this.unexpected(),this.next(),this.finishNode(d,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(d.start,"Private field '#"+d.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(d)),d},Pn.parseYield=function(d){this.yieldPos||(this.yieldPos=this.start);var T=this.startNode();return this.next(),this.type===w.semi||this.canInsertSemicolon()||this.type!==w.star&&!this.type.startsExpr?(T.delegate=!1,T.argument=null):(T.delegate=this.eat(w.star),T.argument=this.parseMaybeAssign(d)),this.finishNode(T,"YieldExpression")},Pn.parseAwait=function(d){this.awaitPos||(this.awaitPos=this.start);var T=this.startNode();return this.next(),T.argument=this.parseMaybeUnary(null,!0,!1,d),this.finishNode(T,"AwaitExpression")};var Je=Bn.prototype;Je.raise=function(d,T){var de=ze(this.input,d),Ae=new SyntaxError(T+=" ("+de.line+":"+de.column+")");throw Ae.pos=d,Ae.loc=de,Ae.raisedAt=this.pos,Ae},Je.raiseRecoverable=Je.raise,Je.curPosition=function(){if(this.options.locations)return new we(this.curLine,this.pos-this.lineStart)};var ot=Bn.prototype,et=function(T){this.flags=T,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};ot.enterScope=function(d){this.scopeStack.push(new et(d))},ot.exitScope=function(){this.scopeStack.pop()},ot.treatFunctionsAsVarInScope=function(d){return 2&d.flags||!this.inModule&&1&d.flags},ot.declareName=function(d,T,de){var Ae=!1;if(2===T){var nt=this.currentScope();Ae=nt.lexical.indexOf(d)>-1||nt.functions.indexOf(d)>-1||nt.var.indexOf(d)>-1,nt.lexical.push(d),this.inModule&&1&nt.flags&&delete this.undefinedExports[d]}else if(4===T)this.currentScope().lexical.push(d);else if(3===T){var Ot=this.currentScope();Ae=this.treatFunctionsAsVar?Ot.lexical.indexOf(d)>-1:Ot.lexical.indexOf(d)>-1||Ot.var.indexOf(d)>-1,Ot.functions.push(d)}else for(var gn=this.scopeStack.length-1;gn>=0;--gn){var En=this.scopeStack[gn];if(En.lexical.indexOf(d)>-1&&!(32&En.flags&&En.lexical[0]===d)||!this.treatFunctionsAsVarInScope(En)&&En.functions.indexOf(d)>-1){Ae=!0;break}if(En.var.push(d),this.inModule&&1&En.flags&&delete this.undefinedExports[d],259&En.flags)break}Ae&&this.raiseRecoverable(de,"Identifier '"+d+"' has already been declared")},ot.checkLocalExport=function(d){-1===this.scopeStack[0].lexical.indexOf(d.name)&&-1===this.scopeStack[0].var.indexOf(d.name)&&(this.undefinedExports[d.name]=d)},ot.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},ot.currentVarScope=function(){for(var d=this.scopeStack.length-1;;d--){var T=this.scopeStack[d];if(259&T.flags)return T}},ot.currentThisScope=function(){for(var d=this.scopeStack.length-1;;d--){var T=this.scopeStack[d];if(259&T.flags&&!(16&T.flags))return T}};var Ct=function(T,de,Ae){this.type="",this.start=de,this.end=0,T.options.locations&&(this.loc=new ye(T,Ae)),T.options.directSourceFile&&(this.sourceFile=T.options.directSourceFile),T.options.ranges&&(this.range=[de,0])},xt=Bn.prototype;function cn(d,T,de,Ae){return d.type=T,d.end=de,this.options.locations&&(d.loc.end=Ae),this.options.ranges&&(d.range[1]=de),d}xt.startNode=function(){return new Ct(this,this.start,this.startLoc)},xt.startNodeAt=function(d,T){return new Ct(this,d,T)},xt.finishNode=function(d,T){return cn.call(this,d,T,this.lastTokEnd,this.lastTokEndLoc)},xt.finishNodeAt=function(d,T,de,Ae){return cn.call(this,d,T,de,Ae)},xt.copyNode=function(d){var T=new Ct(this,d.start,this.startLoc);for(var de in d)T[de]=d[de];return T};for(var d,T,Vn="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",sr=Vn+" Extended_Pictographic",Hr=sr+" EBase EComp EMod EPres ExtPict",zr={9:Vn,10:sr,11:sr,12:Hr,13:Hr,14:Hr},Dr={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"},Tn="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",fr="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",mo=fr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",no=mo+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ai=no+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Pi=Ai+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",vo={9:fr,10:mo,11:no,12:Ai,13:Pi,14:Pi+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},ro={},ni=0,oi=[9,10,11,12,13,14];ni<oi.length;ni+=1)T=void 0,(T=ro[d=oi[ni]]={binary:Oe(zr[d]+" "+Tn),binaryOfStrings:Oe(Dr[d]),nonBinary:{General_Category:Oe(Tn),Script:Oe(vo[d])}}).nonBinary.Script_Extensions=T.nonBinary.Script,T.nonBinary.gc=T.nonBinary.General_Category,T.nonBinary.sc=T.nonBinary.Script,T.nonBinary.scx=T.nonBinary.Script_Extensions;var Nn=Bn.prototype,We=function(T){this.parser=T,this.validFlags="gim"+(T.options.ecmaVersion>=6?"uy":"")+(T.options.ecmaVersion>=9?"s":"")+(T.options.ecmaVersion>=13?"d":"")+(T.options.ecmaVersion>=15?"v":""),this.unicodeProperties=ro[T.options.ecmaVersion>=14?14:T.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 gt(d){return 36===d||d>=40&&d<=43||46===d||63===d||d>=91&&d<=94||d>=123&&d<=125}function Ut(d){return d>=65&&d<=90||d>=97&&d<=122}function mr(d){return Ut(d)||95===d}function _i(d){return mr(d)||Vr(d)}function Vr(d){return d>=48&&d<=57}function nr(d){return d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102}function lr(d){return d>=65&&d<=70?d-65+10:d>=97&&d<=102?d-97+10:d-48}function di(d){return d>=48&&d<=55}We.prototype.reset=function(T,de,Ae){var nt=-1!==Ae.indexOf("v"),At=-1!==Ae.indexOf("u");this.start=0|T,this.source=de+"",this.flags=Ae,nt&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=At&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=At&&this.parser.options.ecmaVersion>=9)},We.prototype.raise=function(T){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+T)},We.prototype.at=function(T,de){void 0===de&&(de=!1);var Ae=this.source,nt=Ae.length;if(T>=nt)return-1;var At=Ae.charCodeAt(T);if(!de&&!this.switchU||At<=55295||At>=57344||T+1>=nt)return At;var Ot=Ae.charCodeAt(T+1);return Ot>=56320&&Ot<=57343?(At<<10)+Ot-56613888:At},We.prototype.nextIndex=function(T,de){void 0===de&&(de=!1);var Ae=this.source,nt=Ae.length;if(T>=nt)return nt;var Ot,At=Ae.charCodeAt(T);return!de&&!this.switchU||At<=55295||At>=57344||T+1>=nt||(Ot=Ae.charCodeAt(T+1))<56320||Ot>57343?T+1:T+2},We.prototype.current=function(T){return void 0===T&&(T=!1),this.at(this.pos,T)},We.prototype.lookahead=function(T){return void 0===T&&(T=!1),this.at(this.nextIndex(this.pos,T),T)},We.prototype.advance=function(T){void 0===T&&(T=!1),this.pos=this.nextIndex(this.pos,T)},We.prototype.eat=function(T,de){return void 0===de&&(de=!1),this.current(de)===T&&(this.advance(de),!0)},We.prototype.eatChars=function(T,de){void 0===de&&(de=!1);for(var Ae=this.pos,nt=0,At=T;nt<At.length;nt+=1){var Ot=At[nt],gn=this.at(Ae,de);if(-1===gn||gn!==Ot)return!1;Ae=this.nextIndex(Ae,de)}return this.pos=Ae,!0},Nn.validateRegExpFlags=function(d){for(var T=d.validFlags,de=d.flags,Ae=!1,nt=!1,At=0;At<de.length;At++){var Ot=de.charAt(At);-1===T.indexOf(Ot)&&this.raise(d.start,"Invalid regular expression flag"),de.indexOf(Ot,At+1)>-1&&this.raise(d.start,"Duplicate regular expression flag"),"u"===Ot&&(Ae=!0),"v"===Ot&&(nt=!0)}this.options.ecmaVersion>=15&&Ae&&nt&&this.raise(d.start,"Invalid regular expression flag")},Nn.validateRegExpPattern=function(d){this.regexp_pattern(d),!d.switchN&&this.options.ecmaVersion>=9&&d.groupNames.length>0&&(d.switchN=!0,this.regexp_pattern(d))},Nn.regexp_pattern=function(d){d.pos=0,d.lastIntValue=0,d.lastStringValue="",d.lastAssertionIsQuantifiable=!1,d.numCapturingParens=0,d.maxBackReference=0,d.groupNames.length=0,d.backReferenceNames.length=0,this.regexp_disjunction(d),d.pos!==d.source.length&&(d.eat(41)&&d.raise("Unmatched ')'"),(d.eat(93)||d.eat(125))&&d.raise("Lone quantifier brackets")),d.maxBackReference>d.numCapturingParens&&d.raise("Invalid escape");for(var T=0,de=d.backReferenceNames;T<de.length;T+=1)-1===d.groupNames.indexOf(de[T])&&d.raise("Invalid named capture referenced")},Nn.regexp_disjunction=function(d){for(this.regexp_alternative(d);d.eat(124);)this.regexp_alternative(d);this.regexp_eatQuantifier(d,!0)&&d.raise("Nothing to repeat"),d.eat(123)&&d.raise("Lone quantifier brackets")},Nn.regexp_alternative=function(d){for(;d.pos<d.source.length&&this.regexp_eatTerm(d););},Nn.regexp_eatTerm=function(d){return this.regexp_eatAssertion(d)?(d.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(d)&&d.switchU&&d.raise("Invalid quantifier"),!0):!!(d.switchU?this.regexp_eatAtom(d):this.regexp_eatExtendedAtom(d))&&(this.regexp_eatQuantifier(d),!0)},Nn.regexp_eatAssertion=function(d){var T=d.pos;if(d.lastAssertionIsQuantifiable=!1,d.eat(94)||d.eat(36))return!0;if(d.eat(92)){if(d.eat(66)||d.eat(98))return!0;d.pos=T}if(d.eat(40)&&d.eat(63)){var de=!1;if(this.options.ecmaVersion>=9&&(de=d.eat(60)),d.eat(61)||d.eat(33))return this.regexp_disjunction(d),d.eat(41)||d.raise("Unterminated group"),d.lastAssertionIsQuantifiable=!de,!0}return d.pos=T,!1},Nn.regexp_eatQuantifier=function(d,T){return void 0===T&&(T=!1),!!this.regexp_eatQuantifierPrefix(d,T)&&(d.eat(63),!0)},Nn.regexp_eatQuantifierPrefix=function(d,T){return d.eat(42)||d.eat(43)||d.eat(63)||this.regexp_eatBracedQuantifier(d,T)},Nn.regexp_eatBracedQuantifier=function(d,T){var de=d.pos;if(d.eat(123)){var Ae=0,nt=-1;if(this.regexp_eatDecimalDigits(d)&&(Ae=d.lastIntValue,d.eat(44)&&this.regexp_eatDecimalDigits(d)&&(nt=d.lastIntValue),d.eat(125)))return-1!==nt&&nt<Ae&&!T&&d.raise("numbers out of order in {} quantifier"),!0;d.switchU&&!T&&d.raise("Incomplete quantifier"),d.pos=de}return!1},Nn.regexp_eatAtom=function(d){return this.regexp_eatPatternCharacters(d)||d.eat(46)||this.regexp_eatReverseSolidusAtomEscape(d)||this.regexp_eatCharacterClass(d)||this.regexp_eatUncapturingGroup(d)||this.regexp_eatCapturingGroup(d)},Nn.regexp_eatReverseSolidusAtomEscape=function(d){var T=d.pos;if(d.eat(92)){if(this.regexp_eatAtomEscape(d))return!0;d.pos=T}return!1},Nn.regexp_eatUncapturingGroup=function(d){var T=d.pos;if(d.eat(40)){if(d.eat(63)&&d.eat(58)){if(this.regexp_disjunction(d),d.eat(41))return!0;d.raise("Unterminated group")}d.pos=T}return!1},Nn.regexp_eatCapturingGroup=function(d){if(d.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(d):63===d.current()&&d.raise("Invalid group"),this.regexp_disjunction(d),d.eat(41))return d.numCapturingParens+=1,!0;d.raise("Unterminated group")}return!1},Nn.regexp_eatExtendedAtom=function(d){return d.eat(46)||this.regexp_eatReverseSolidusAtomEscape(d)||this.regexp_eatCharacterClass(d)||this.regexp_eatUncapturingGroup(d)||this.regexp_eatCapturingGroup(d)||this.regexp_eatInvalidBracedQuantifier(d)||this.regexp_eatExtendedPatternCharacter(d)},Nn.regexp_eatInvalidBracedQuantifier=function(d){return this.regexp_eatBracedQuantifier(d,!0)&&d.raise("Nothing to repeat"),!1},Nn.regexp_eatSyntaxCharacter=function(d){var T=d.current();return!!gt(T)&&(d.lastIntValue=T,d.advance(),!0)},Nn.regexp_eatPatternCharacters=function(d){for(var T=d.pos,de=0;-1!==(de=d.current())&&!gt(de);)d.advance();return d.pos!==T},Nn.regexp_eatExtendedPatternCharacter=function(d){var T=d.current();return!(-1===T||36===T||T>=40&&T<=43||46===T||63===T||91===T||94===T||124===T||(d.advance(),0))},Nn.regexp_groupSpecifier=function(d){if(d.eat(63)){if(this.regexp_eatGroupName(d))return-1!==d.groupNames.indexOf(d.lastStringValue)&&d.raise("Duplicate capture group name"),void d.groupNames.push(d.lastStringValue);d.raise("Invalid group")}},Nn.regexp_eatGroupName=function(d){if(d.lastStringValue="",d.eat(60)){if(this.regexp_eatRegExpIdentifierName(d)&&d.eat(62))return!0;d.raise("Invalid capture group name")}return!1},Nn.regexp_eatRegExpIdentifierName=function(d){if(d.lastStringValue="",this.regexp_eatRegExpIdentifierStart(d)){for(d.lastStringValue+=it(d.lastIntValue);this.regexp_eatRegExpIdentifierPart(d);)d.lastStringValue+=it(d.lastIntValue);return!0}return!1},Nn.regexp_eatRegExpIdentifierStart=function(d){var T=d.pos,de=this.options.ecmaVersion>=11,Ae=d.current(de);return d.advance(de),92===Ae&&this.regexp_eatRegExpUnicodeEscapeSequence(d,de)&&(Ae=d.lastIntValue),function wt(d){return Z(d,!0)||36===d||95===d}(Ae)?(d.lastIntValue=Ae,!0):(d.pos=T,!1)},Nn.regexp_eatRegExpIdentifierPart=function(d){var T=d.pos,de=this.options.ecmaVersion>=11,Ae=d.current(de);return d.advance(de),92===Ae&&this.regexp_eatRegExpUnicodeEscapeSequence(d,de)&&(Ae=d.lastIntValue),function It(d){return le(d,!0)||36===d||95===d||8204===d||8205===d}(Ae)?(d.lastIntValue=Ae,!0):(d.pos=T,!1)},Nn.regexp_eatAtomEscape=function(d){return!!(this.regexp_eatBackReference(d)||this.regexp_eatCharacterClassEscape(d)||this.regexp_eatCharacterEscape(d)||d.switchN&&this.regexp_eatKGroupName(d))||(d.switchU&&(99===d.current()&&d.raise("Invalid unicode escape"),d.raise("Invalid escape")),!1)},Nn.regexp_eatBackReference=function(d){var T=d.pos;if(this.regexp_eatDecimalEscape(d)){var de=d.lastIntValue;if(d.switchU)return de>d.maxBackReference&&(d.maxBackReference=de),!0;if(de<=d.numCapturingParens)return!0;d.pos=T}return!1},Nn.regexp_eatKGroupName=function(d){if(d.eat(107)){if(this.regexp_eatGroupName(d))return d.backReferenceNames.push(d.lastStringValue),!0;d.raise("Invalid named reference")}return!1},Nn.regexp_eatCharacterEscape=function(d){return this.regexp_eatControlEscape(d)||this.regexp_eatCControlLetter(d)||this.regexp_eatZero(d)||this.regexp_eatHexEscapeSequence(d)||this.regexp_eatRegExpUnicodeEscapeSequence(d,!1)||!d.switchU&&this.regexp_eatLegacyOctalEscapeSequence(d)||this.regexp_eatIdentityEscape(d)},Nn.regexp_eatCControlLetter=function(d){var T=d.pos;if(d.eat(99)){if(this.regexp_eatControlLetter(d))return!0;d.pos=T}return!1},Nn.regexp_eatZero=function(d){return 48===d.current()&&!Vr(d.lookahead())&&(d.lastIntValue=0,d.advance(),!0)},Nn.regexp_eatControlEscape=function(d){var T=d.current();return 116===T?(d.lastIntValue=9,d.advance(),!0):110===T?(d.lastIntValue=10,d.advance(),!0):118===T?(d.lastIntValue=11,d.advance(),!0):102===T?(d.lastIntValue=12,d.advance(),!0):114===T&&(d.lastIntValue=13,d.advance(),!0)},Nn.regexp_eatControlLetter=function(d){var T=d.current();return!!Ut(T)&&(d.lastIntValue=T%32,d.advance(),!0)},Nn.regexp_eatRegExpUnicodeEscapeSequence=function(d,T){void 0===T&&(T=!1);var de=d.pos,Ae=T||d.switchU;if(d.eat(117)){if(this.regexp_eatFixedHexDigits(d,4)){var nt=d.lastIntValue;if(Ae&&nt>=55296&&nt<=56319){var At=d.pos;if(d.eat(92)&&d.eat(117)&&this.regexp_eatFixedHexDigits(d,4)){var Ot=d.lastIntValue;if(Ot>=56320&&Ot<=57343)return d.lastIntValue=1024*(nt-55296)+(Ot-56320)+65536,!0}d.pos=At,d.lastIntValue=nt}return!0}if(Ae&&d.eat(123)&&this.regexp_eatHexDigits(d)&&d.eat(125)&&function an(d){return d>=0&&d<=1114111}(d.lastIntValue))return!0;Ae&&d.raise("Invalid unicode escape"),d.pos=de}return!1},Nn.regexp_eatIdentityEscape=function(d){if(d.switchU)return!!this.regexp_eatSyntaxCharacter(d)||!!d.eat(47)&&(d.lastIntValue=47,!0);var T=d.current();return!(99===T||d.switchN&&107===T||(d.lastIntValue=T,d.advance(),0))},Nn.regexp_eatDecimalEscape=function(d){d.lastIntValue=0;var T=d.current();if(T>=49&&T<=57){do{d.lastIntValue=10*d.lastIntValue+(T-48),d.advance()}while((T=d.current())>=48&&T<=57);return!0}return!1},Nn.regexp_eatCharacterClassEscape=function(d){var T=d.current();if(function pn(d){return 100===d||68===d||115===d||83===d||119===d||87===d}(T))return d.lastIntValue=-1,d.advance(),1;var de=!1;if(d.switchU&&this.options.ecmaVersion>=9&&((de=80===T)||112===T)){var Ae;if(d.lastIntValue=-1,d.advance(),d.eat(123)&&(Ae=this.regexp_eatUnicodePropertyValueExpression(d))&&d.eat(125))return de&&2===Ae&&d.raise("Invalid property name"),Ae;d.raise("Invalid property name")}return 0},Nn.regexp_eatUnicodePropertyValueExpression=function(d){var T=d.pos;if(this.regexp_eatUnicodePropertyName(d)&&d.eat(61)){var de=d.lastStringValue;if(this.regexp_eatUnicodePropertyValue(d))return this.regexp_validateUnicodePropertyNameAndValue(d,de,d.lastStringValue),1}return d.pos=T,this.regexp_eatLoneUnicodePropertyNameOrValue(d)?this.regexp_validateUnicodePropertyNameOrValue(d,d.lastStringValue):0},Nn.regexp_validateUnicodePropertyNameAndValue=function(d,T,de){ge(d.unicodeProperties.nonBinary,T)||d.raise("Invalid property name"),d.unicodeProperties.nonBinary[T].test(de)||d.raise("Invalid property value")},Nn.regexp_validateUnicodePropertyNameOrValue=function(d,T){return d.unicodeProperties.binary.test(T)?1:d.switchV&&d.unicodeProperties.binaryOfStrings.test(T)?2:void d.raise("Invalid property name")},Nn.regexp_eatUnicodePropertyName=function(d){var T=0;for(d.lastStringValue="";mr(T=d.current());)d.lastStringValue+=it(T),d.advance();return""!==d.lastStringValue},Nn.regexp_eatUnicodePropertyValue=function(d){var T=0;for(d.lastStringValue="";_i(T=d.current());)d.lastStringValue+=it(T),d.advance();return""!==d.lastStringValue},Nn.regexp_eatLoneUnicodePropertyNameOrValue=function(d){return this.regexp_eatUnicodePropertyValue(d)},Nn.regexp_eatCharacterClass=function(d){if(d.eat(91)){var T=d.eat(94),de=this.regexp_classContents(d);return d.eat(93)||d.raise("Unterminated character class"),T&&2===de&&d.raise("Negated character class may contain strings"),!0}return!1},Nn.regexp_classContents=function(d){return 93===d.current()?1:d.switchV?this.regexp_classSetExpression(d):(this.regexp_nonEmptyClassRanges(d),1)},Nn.regexp_nonEmptyClassRanges=function(d){for(;this.regexp_eatClassAtom(d);){var T=d.lastIntValue;if(d.eat(45)&&this.regexp_eatClassAtom(d)){var de=d.lastIntValue;d.switchU&&(-1===T||-1===de)&&d.raise("Invalid character class"),-1!==T&&-1!==de&&T>de&&d.raise("Range out of order in character class")}}},Nn.regexp_eatClassAtom=function(d){var T=d.pos;if(d.eat(92)){if(this.regexp_eatClassEscape(d))return!0;if(d.switchU){var de=d.current();(99===de||di(de))&&d.raise("Invalid class escape"),d.raise("Invalid escape")}d.pos=T}var Ae=d.current();return 93!==Ae&&(d.lastIntValue=Ae,d.advance(),!0)},Nn.regexp_eatClassEscape=function(d){var T=d.pos;if(d.eat(98))return d.lastIntValue=8,!0;if(d.switchU&&d.eat(45))return d.lastIntValue=45,!0;if(!d.switchU&&d.eat(99)){if(this.regexp_eatClassControlLetter(d))return!0;d.pos=T}return this.regexp_eatCharacterClassEscape(d)||this.regexp_eatCharacterEscape(d)},Nn.regexp_classSetExpression=function(d){var de,T=1;if(!this.regexp_eatClassSetRange(d))if(de=this.regexp_eatClassSetOperand(d)){2===de&&(T=2);for(var Ae=d.pos;d.eatChars([38,38]);)38!==d.current()&&(de=this.regexp_eatClassSetOperand(d))?2!==de&&(T=1):d.raise("Invalid character in character class");if(Ae!==d.pos)return T;for(;d.eatChars([45,45]);)this.regexp_eatClassSetOperand(d)||d.raise("Invalid character in character class");if(Ae!==d.pos)return T}else d.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(d)){if(!(de=this.regexp_eatClassSetOperand(d)))return T;2===de&&(T=2)}},Nn.regexp_eatClassSetRange=function(d){var T=d.pos;if(this.regexp_eatClassSetCharacter(d)){var de=d.lastIntValue;if(d.eat(45)&&this.regexp_eatClassSetCharacter(d)){var Ae=d.lastIntValue;return-1!==de&&-1!==Ae&&de>Ae&&d.raise("Range out of order in character class"),!0}d.pos=T}return!1},Nn.regexp_eatClassSetOperand=function(d){return this.regexp_eatClassSetCharacter(d)?1:this.regexp_eatClassStringDisjunction(d)||this.regexp_eatNestedClass(d)},Nn.regexp_eatNestedClass=function(d){var T=d.pos;if(d.eat(91)){var de=d.eat(94),Ae=this.regexp_classContents(d);if(d.eat(93))return de&&2===Ae&&d.raise("Negated character class may contain strings"),Ae;d.pos=T}if(d.eat(92)){var nt=this.regexp_eatCharacterClassEscape(d);if(nt)return nt;d.pos=T}return null},Nn.regexp_eatClassStringDisjunction=function(d){var T=d.pos;if(d.eatChars([92,113])){if(d.eat(123)){var de=this.regexp_classStringDisjunctionContents(d);if(d.eat(125))return de}else d.raise("Invalid escape");d.pos=T}return null},Nn.regexp_classStringDisjunctionContents=function(d){for(var T=this.regexp_classString(d);d.eat(124);)2===this.regexp_classString(d)&&(T=2);return T},Nn.regexp_classString=function(d){for(var T=0;this.regexp_eatClassSetCharacter(d);)T++;return 1===T?1:2},Nn.regexp_eatClassSetCharacter=function(d){var T=d.pos;if(d.eat(92))return!(!this.regexp_eatCharacterEscape(d)&&!this.regexp_eatClassSetReservedPunctuator(d)&&(d.eat(98)?(d.lastIntValue=8,0):(d.pos=T,1)));var de=d.current();return!(de<0||de===d.lookahead()&&function jr(d){return 33===d||d>=35&&d<=38||d>=42&&d<=44||46===d||d>=58&&d<=64||94===d||96===d||126===d}(de)||function yr(d){return 40===d||41===d||45===d||47===d||d>=91&&d<=93||d>=123&&d<=125}(de)||(d.advance(),d.lastIntValue=de,0))},Nn.regexp_eatClassSetReservedPunctuator=function(d){var T=d.current();return!!function Wr(d){return 33===d||35===d||37===d||38===d||44===d||45===d||d>=58&&d<=62||64===d||96===d||126===d}(T)&&(d.lastIntValue=T,d.advance(),!0)},Nn.regexp_eatClassControlLetter=function(d){var T=d.current();return!(!Vr(T)&&95!==T||(d.lastIntValue=T%32,d.advance(),0))},Nn.regexp_eatHexEscapeSequence=function(d){var T=d.pos;if(d.eat(120)){if(this.regexp_eatFixedHexDigits(d,2))return!0;d.switchU&&d.raise("Invalid escape"),d.pos=T}return!1},Nn.regexp_eatDecimalDigits=function(d){var T=d.pos,de=0;for(d.lastIntValue=0;Vr(de=d.current());)d.lastIntValue=10*d.lastIntValue+(de-48),d.advance();return d.pos!==T},Nn.regexp_eatHexDigits=function(d){var T=d.pos,de=0;for(d.lastIntValue=0;nr(de=d.current());)d.lastIntValue=16*d.lastIntValue+lr(de),d.advance();return d.pos!==T},Nn.regexp_eatLegacyOctalEscapeSequence=function(d){if(this.regexp_eatOctalDigit(d)){var T=d.lastIntValue;if(this.regexp_eatOctalDigit(d)){var de=d.lastIntValue;d.lastIntValue=T<=3&&this.regexp_eatOctalDigit(d)?64*T+8*de+d.lastIntValue:8*T+de}else d.lastIntValue=T;return!0}return!1},Nn.regexp_eatOctalDigit=function(d){var T=d.current();return di(T)?(d.lastIntValue=T-48,d.advance(),!0):(d.lastIntValue=0,!1)},Nn.regexp_eatFixedHexDigits=function(d,T){var de=d.pos;d.lastIntValue=0;for(var Ae=0;Ae<T;++Ae){var nt=d.current();if(!nr(nt))return d.pos=de,!1;d.lastIntValue=16*d.lastIntValue+lr(nt),d.advance()}return!0};var Gr=function(T){this.type=T.type,this.value=T.value,this.start=T.start,this.end=T.end,T.options.locations&&(this.loc=new ye(T,T.startLoc,T.endLoc)),T.options.ranges&&(this.range=[T.start,T.end])},Dn=Bn.prototype;function Ni(d){return"function"!=typeof BigInt?null:BigInt(d.replace(/_/g,""))}Dn.next=function(d){!d&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Gr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Dn.getToken=function(){return this.next(),new Gr(this)},typeof Symbol<"u"&&(Dn[Symbol.iterator]=function(){var d=this;return{next:function(){var T=d.getToken();return{done:T.type===w.eof,value:T}}}}),Dn.nextToken=function(){var d=this.curContext();return(!d||!d.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(w.eof):d.override?d.override(this):void this.readToken(this.fullCharCodeAtPos())},Dn.readToken=function(d){return Z(d,this.options.ecmaVersion>=6)||92===d?this.readWord():this.getTokenFromCode(d)},Dn.fullCharCodeAtPos=function(){var d=this.input.charCodeAt(this.pos);if(d<=55295||d>=56320)return d;var T=this.input.charCodeAt(this.pos+1);return T<=56319||T>=57344?d:(d<<10)+T-56613888},Dn.skipBlockComment=function(){var d=this.options.onComment&&this.curPosition(),T=this.pos,de=this.input.indexOf("*/",this.pos+=2);if(-1===de&&this.raise(this.pos-2,"Unterminated comment"),this.pos=de+2,this.options.locations)for(var Ae=void 0,nt=T;(Ae=N(this.input,nt,this.pos))>-1;)++this.curLine,nt=this.lineStart=Ae;this.options.onComment&&this.options.onComment(!0,this.input.slice(T+2,de),T,this.pos,d,this.curPosition())},Dn.skipLineComment=function(d){for(var T=this.pos,de=this.options.onComment&&this.curPosition(),Ae=this.input.charCodeAt(this.pos+=d);this.pos<this.input.length&&!S(Ae);)Ae=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(T+d,this.pos),T,this.pos,de,this.curPosition())},Dn.skipSpace=function(){e:for(;this.pos<this.input.length;){var d=this.input.charCodeAt(this.pos);switch(d){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(!(d>8&&d<14||d>=5760&&W.test(String.fromCharCode(d))))break e;++this.pos}}},Dn.finishToken=function(d,T){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var de=this.type;this.type=d,this.value=T,this.updateContext(de)},Dn.readToken_dot=function(){var d=this.input.charCodeAt(this.pos+1);if(d>=48&&d<=57)return this.readNumber(!0);var T=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===d&&46===T?(this.pos+=3,this.finishToken(w.ellipsis)):(++this.pos,this.finishToken(w.dot))},Dn.readToken_slash=function(){var d=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===d?this.finishOp(w.assign,2):this.finishOp(w.slash,1)},Dn.readToken_mult_modulo_exp=function(d){var T=this.input.charCodeAt(this.pos+1),de=1,Ae=42===d?w.star:w.modulo;return this.options.ecmaVersion>=7&&42===d&&42===T&&(++de,Ae=w.starstar,T=this.input.charCodeAt(this.pos+2)),61===T?this.finishOp(w.assign,de+1):this.finishOp(Ae,de)},Dn.readToken_pipe_amp=function(d){var T=this.input.charCodeAt(this.pos+1);return T===d?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(124===d?w.logicalOR:w.logicalAND,2):61===T?this.finishOp(w.assign,2):this.finishOp(124===d?w.bitwiseOR:w.bitwiseAND,1)},Dn.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(w.assign,2):this.finishOp(w.bitwiseXOR,1)},Dn.readToken_plus_min=function(d){var T=this.input.charCodeAt(this.pos+1);return T===d?45!==T||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!j.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(w.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===T?this.finishOp(w.assign,2):this.finishOp(w.plusMin,1)},Dn.readToken_lt_gt=function(d){var T=this.input.charCodeAt(this.pos+1),de=1;return T===d?(de=62===d&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+de)?this.finishOp(w.assign,de+1):this.finishOp(w.bitShift,de)):33!==T||60!==d||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===T&&(de=2),this.finishOp(w.relational,de)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},Dn.readToken_eq_excl=function(d){var T=this.input.charCodeAt(this.pos+1);return 61===T?this.finishOp(w.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===d&&62===T&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(w.arrow)):this.finishOp(61===d?w.eq:w.prefix,1)},Dn.readToken_question=function(){var d=this.options.ecmaVersion;if(d>=11){var T=this.input.charCodeAt(this.pos+1);if(46===T){var de=this.input.charCodeAt(this.pos+2);if(de<48||de>57)return this.finishOp(w.questionDot,2)}if(63===T)return d>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(w.assign,3):this.finishOp(w.coalesce,2)}return this.finishOp(w.question,1)},Dn.readToken_numberSign=function(){var T=35;if(this.options.ecmaVersion>=13&&(++this.pos,Z(T=this.fullCharCodeAtPos(),!0)||92===T))return this.finishToken(w.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+it(T)+"'")},Dn.getTokenFromCode=function(d){switch(d){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(w.parenL);case 41:return++this.pos,this.finishToken(w.parenR);case 59:return++this.pos,this.finishToken(w.semi);case 44:return++this.pos,this.finishToken(w.comma);case 91:return++this.pos,this.finishToken(w.bracketL);case 93:return++this.pos,this.finishToken(w.bracketR);case 123:return++this.pos,this.finishToken(w.braceL);case 125:return++this.pos,this.finishToken(w.braceR);case 58:return++this.pos,this.finishToken(w.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(w.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(d);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(d);case 124:case 38:return this.readToken_pipe_amp(d);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(d);case 60:case 62:return this.readToken_lt_gt(d);case 61:case 33:return this.readToken_eq_excl(d);case 63:return this.readToken_question();case 126:return this.finishOp(w.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+it(d)+"'")},Dn.finishOp=function(d,T){var de=this.input.slice(this.pos,this.pos+T);return this.pos+=T,this.finishToken(d,de)},Dn.readRegexp=function(){for(var d,T,de=this.pos;;){this.pos>=this.input.length&&this.raise(de,"Unterminated regular expression");var Ae=this.input.charAt(this.pos);if(j.test(Ae)&&this.raise(de,"Unterminated regular expression"),d)d=!1;else{if("["===Ae)T=!0;else if("]"===Ae&&T)T=!1;else if("/"===Ae&&!T)break;d="\\"===Ae}++this.pos}var nt=this.input.slice(de,this.pos);++this.pos;var At=this.pos,Ot=this.readWord1();this.containsEsc&&this.unexpected(At);var gn=this.regexpState||(this.regexpState=new We(this));gn.reset(de,nt,Ot),this.validateRegExpFlags(gn),this.validateRegExpPattern(gn);var En=null;try{En=new RegExp(nt,Ot)}catch{}return this.finishToken(w.regexp,{pattern:nt,flags:Ot,value:En})},Dn.readInt=function(d,T,de){for(var Ae=this.options.ecmaVersion>=12&&void 0===T,nt=de&&48===this.input.charCodeAt(this.pos),At=this.pos,Ot=0,gn=0,En=0,tr=null==T?1/0:T;En<tr;++En,++this.pos){var In=this.input.charCodeAt(this.pos),Mr=void 0;if(Ae&&95===In)nt&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===gn&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===En&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),gn=In;else{if((Mr=In>=97?In-97+10:In>=65?In-65+10:In>=48&&In<=57?In-48:1/0)>=d)break;gn=In,Ot=Ot*d+Mr}}return Ae&&95===gn&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===At||null!=T&&this.pos-At!==T?null:Ot},Dn.readRadixNumber=function(d){var T=this.pos;this.pos+=2;var de=this.readInt(d);return null==de&&this.raise(this.start+2,"Expected number in radix "+d),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(de=Ni(this.input.slice(T,this.pos)),++this.pos):Z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,de)},Dn.readNumber=function(d){var T=this.pos;!d&&null===this.readInt(10,void 0,!0)&&this.raise(T,"Invalid number");var de=this.pos-T>=2&&48===this.input.charCodeAt(T);de&&this.strict&&this.raise(T,"Invalid number");var Ae=this.input.charCodeAt(this.pos);if(!de&&!d&&this.options.ecmaVersion>=11&&110===Ae){var nt=Ni(this.input.slice(T,this.pos));return++this.pos,Z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(w.num,nt)}de&&/[89]/.test(this.input.slice(T,this.pos))&&(de=!1),46===Ae&&!de&&(++this.pos,this.readInt(10),Ae=this.input.charCodeAt(this.pos)),(69===Ae||101===Ae)&&!de&&((43===(Ae=this.input.charCodeAt(++this.pos))||45===Ae)&&++this.pos,null===this.readInt(10)&&this.raise(T,"Invalid number")),Z(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var At=function si(d,T){return T?parseInt(d,8):parseFloat(d.replace(/_/g,""))}(this.input.slice(T,this.pos),de);return this.finishToken(w.num,At)},Dn.readCodePoint=function(){var T;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var de=++this.pos;T=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,T>1114111&&this.invalidStringToken(de,"Code point out of bounds")}else T=this.readHexChar(4);return T},Dn.readString=function(d){for(var T="",de=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Ae=this.input.charCodeAt(this.pos);if(Ae===d)break;92===Ae?(T+=this.input.slice(de,this.pos),T+=this.readEscapedChar(!1),de=this.pos):8232===Ae||8233===Ae?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(Ae)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return T+=this.input.slice(de,this.pos++),this.finishToken(w.string,T)};var dt={};function Kt(d,T){return Bn.parse(d,T)}Dn.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(d){if(d!==dt)throw d;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Dn.invalidStringToken=function(d,T){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw dt;this.raise(d,T)},Dn.readTmplToken=function(){for(var d="",T=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var de=this.input.charCodeAt(this.pos);if(96===de||36===de&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==w.template&&this.type!==w.invalidTemplate?(d+=this.input.slice(T,this.pos),this.finishToken(w.template,d)):36===de?(this.pos+=2,this.finishToken(w.dollarBraceL)):(++this.pos,this.finishToken(w.backQuote));if(92===de)d+=this.input.slice(T,this.pos),d+=this.readEscapedChar(!0),T=this.pos;else if(S(de)){switch(d+=this.input.slice(T,this.pos),++this.pos,de){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:d+="\n";break;default:d+=String.fromCharCode(de)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),T=this.pos}else++this.pos}},Dn.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(w.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Dn.readEscapedChar=function(d){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 it(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:this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),d&&this.invalidStringToken(this.pos-1,"Invalid escape sequence in template string");default:if(T>=48&&T<=55){var Ae=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],nt=parseInt(Ae,8);return nt>255&&(Ae=Ae.slice(0,-1),nt=parseInt(Ae,8)),this.pos+=Ae.length-1,T=this.input.charCodeAt(this.pos),("0"!==Ae||56===T||57===T)&&(this.strict||d)&&this.invalidStringToken(this.pos-1-Ae.length,d?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(nt)}return S(T)?"":String.fromCharCode(T)}},Dn.readHexChar=function(d){var T=this.pos,de=this.readInt(16,d);return null===de&&this.invalidStringToken(T,"Bad character escape sequence"),de},Dn.readWord1=function(){this.containsEsc=!1;for(var d="",T=!0,de=this.pos,Ae=this.options.ecmaVersion>=6;this.pos<this.input.length;){var nt=this.fullCharCodeAtPos();if(le(nt,Ae))this.pos+=nt<=65535?1:2;else{if(92!==nt)break;this.containsEsc=!0,d+=this.input.slice(de,this.pos);var At=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Ot=this.readCodePoint();(T?Z:le)(Ot,Ae)||this.invalidStringToken(At,"Invalid Unicode escape"),d+=it(Ot),de=this.pos}T=!1}return d+this.input.slice(de,this.pos)},Dn.readWord=function(){var d=this.readWord1(),T=w.name;return this.keywords.test(d)&&(T=pe[d]),this.finishToken(T,d)},Bn.acorn={Parser:Bn,version:"8.11.3",defaultOptions:Ye,Position:we,SourceLocation:ye,getLineInfo:ze,Node:Ct,TokenType:Q,tokTypes:w,keywordTypes:pe,TokContext:Kn,tokContexts:Qn,isIdentifierChar:le,isIdentifierStart:Z,Token:Gr,isNewLine:S,lineBreak:j,lineBreakG:I,nonASCIIwhitespace:W};var Te=c(9312),ft=c(177),Et=c(4438);const ct=["Unexpected token","Unterminated regular expression","Unterminated string constant"],Lt={replace:(d,T,de)=>d.replace(T,de),substring:(d,T,de)=>d.substring(T,de),padEnd:(d,T,de)=>d.padEnd(T,de),padStart:(d,T,de)=>d.padStart(T,de),repeat:(d,T)=>d.repeat(T),split:(d,T,de)=>d.split(T,de),trim:d=>d.trim(),toLowerCase:d=>d.toLowerCase(),toUpperCase:d=>d.toUpperCase()};function Qt(d,T){window.$functionCache||(window.$functionCache={});let de=window.$functionCache[d];if(!de){const Ae='"use strict";return ('+d+")";de=Function(...Object.keys(T),Ae),window.$functionCache[d]=de}try{return de(...Object.values(T))}catch(Ae){if((0,Et.naY)()){window.$logOnce||(window.$logOnce=new Set);const nt="error evaluating function "+d+": "+Ae;window.$logOnce.has(nt)||(console.debug(nt),window.$logOnce.add(nt))}return""}}function rn(d){var T;if("CallExpression"===d.type&&"Identifier"===(null===(T=d.callee)||void 0===T||null===(T=T.object)||void 0===T?void 0:T.type)&&"$functions"===d.callee.object.name)return{from:d.start,to:d.end};if("expression"in d)return rn(d.expression);if("left"in d)return rn(d.left);throw new Error("Could not find $functions call in AST")}function zn(d,T,de,Ae){var nt;let At="";globalThis.window.$functionMap||(globalThis.window.$functionMap={});let Ot=d;if(Ot in globalThis.window.$functionMap){const In=globalThis.window.$functionMap[Ot];Ot=In.value,At=In.rest}else{let In;for(;void 0===In;)try{In=Kt(Ot,{ecmaVersion:2019})}catch(Mr){if(Mr instanceof SyntaxError&&ct.some(hr=>Mr.message.includes(hr))&&"number"==typeof Mr.pos){let hr=Mr.pos;for(;hr===Ot.length||hr>0&&![")","]"].includes(Ot.charAt(hr-1));)hr--;At=Ot.slice(hr)+At,Ot=Ot.slice(0,hr)}else{if(!(Mr instanceof SyntaxError&&Mr.message.includes("Assigning to rvalue")))throw Mr;{const hr=Mr.raisedAt-1;At=Ot.slice(hr)+At,Ot=Ot.slice(0,hr)}}}if(0==In.body.length)throw new Error('Failed to parse $functions call: "'.concat(d,'"'));if(In.body.length>1||"ExpressionStatement"!==In.body[0].type||!function er(d){return"CallExpression"===d.type||"MemberExpression"===d.type&&"CallExpression"===d.object.type}(In.body[0].expression)){var gn;const{from:Mr,to:hr}=rn(null===(gn=In.body[0])||void 0===gn?void 0:gn.expression);if(0!==Mr)throw new Error("Expected $functions call to come first");At=Ot.slice(hr)+At,Ot=Ot.slice(0,hr)}globalThis.window.$functionMap[d]={value:Ot,rest:At}}return[Qt(Ot,{$context:T,$functions:{...Lt,...de},$global:Ae,document:(null===(nt=Te.q.injector)||void 0===nt?void 0:nt.get(ft.qQ))||window.document}),At]}},4074:(ee,_,c)=>{"use strict";function l(v){return btoa(v).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function p(v){const $={iss:"purple-storefront",sub:v};return"".concat(l(JSON.stringify({alg:"none"})),".").concat(l(JSON.stringify($)),".")}function E(v){var $=v.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),B=decodeURIComponent(atob($).split("").map(function(ne){return"%"+("00"+ne.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(B)}c.d(_,{$:()=>E,J:()=>p})},4049:(ee,_,c)=>{"use strict";function l(p,E,v=!0){const U=/((?::)[(\w|\-)\\.]+)/g,$={};let B=p,ne=U.exec(p);for(;null!==ne;){const me=ne[0].substring(1).split(".");$[me.join("_")]=me.reduce((Z,le)=>Z[le]?Z[le]:le,E),ne=U.exec(p)}return B=p.replace(/:/g,""),v?B.split("/").map(te=>encodeURI(te)).join("/"):B}c.d(_,{K:()=>l})},7879:(ee,_,c)=>{"use strict";c.d(_,{Dh:()=>He,E7:()=>I,Ek:()=>he,G9:()=>fe,GA:()=>X,Gw:()=>it,Lb:()=>Q,OU:()=>ve,P8:()=>Oe,RX:()=>Ze,TH:()=>De,Ty:()=>pe,ZC:()=>be,_w:()=>st,aM:()=>ue,b1:()=>ye,bJ:()=>N,l6:()=>S,r6:()=>Ne,sZ:()=>Ce,yC:()=>W,z5:()=>ge});var l=c(467),p=c(4438),E=c(4404),U=c(362),B=c(5630),ne=c(5846),te=c(8471),me=c(9312),V=c(3178),Z=c(5706),le=c(2356);function Q(R,A){return z.apply(this,arguments)}function z(){return(z=(0,l.A)(function*(R,A,L=(Be=>Promise.resolve(!Be.purchaseData.purchased)),G=null,K=!0,ce){let Be,qe,ut;if(ce||(ce=me.q.injector.get(te.Wj)),Array.isArray(R)?qe=R.filter(je=>!!je):Be=R,qe?ut=qe.map(je=>je.issue||je):Be?(G?(yield Be.initializeIssues(),ut=Be.getIssues(K),ut.length&&function Y(R,A,L){var G;const K=R.getIssues(!0);return(null===(G=R.issue)||void 0===G?void 0:G.id)!==A.id&&!K.find(ce=>ce.id===A.id)||!!K.find(ce=>L[ce.id]&&!U(ce,L[ce.id]))}(Be,A,G)&&(yield Be.initializeIssues(!0),ut=Be.getIssues(K))):(yield Be.initializeIssues(!0),ut=Be.getIssues(K)),ut=ut.filter(je=>je.type!==E.IssueType.ISSUE)):ut=[],ut.length){const je=[];for(const mt of ut)(yield L(mt,ce))&&mt.previewIssue?je.push(mt.previewIssue.id):je.push(mt.id);return je}return[(yield L(A,ce))&&A.previewIssue?A.previewIssue.id:A.id]})).apply(this,arguments)}function ve(R,A,L){if(R.length<=L||L<0)return R;const G=[];let ce=R.indexOf(A)-Math.floor(L/2),Be=ce,qe=!1;for(;G.length<L;)ce>-1&&R[ce]&&(Be<0&&(Be=ce),G[qe?"unshift":"push"](R[ce])),ce===R.length-1&&(ce=Be,qe=!0),ce+=qe?-1:1;return G}function pe(R,A){let L;const G={OR:R.map(K=>({id:{value:K}}))};return L=A?{AND:[G,A]}:G,L}const fe={contentType:E.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:E.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 I(R,A,L){const G=R.version;switch(L){case E.IntOperation.EQUAL:return G.major===A.major&&G.minor===A.minor;case E.IntOperation.LESS_THAN:return G.major<A.major||G.major===A.major&&G.minor<A.minor;case E.IntOperation.GREATER_THAN:return G.major>A.major||G.major===A.major&&G.minor>A.minor}}function S(R){return R&&9===R.length&&R.startsWith("#")?"#"+R.slice(3):R}function N(R,A,L,G=""){let K=R?{[G+"ISSUE_ID"]:R.id,[G+"ISSUE_NAME"]:R.name,[G+"ISSUE_TYPE"]:R.type,[G+"ISSUE_CATEGORIES"]:R.categories&&R.categories.join(","),[G+"ISSUE_TAGS"]:R.tags&&R.tags.join(","),[G+"ISSUE_PRODUCT_ID"]:R.productId,[G+"ISSUE_PURCHASABLE"]:"boolean"==typeof R.purchasable?R.purchasable.toString():R.purchasable,[G+"ISSUE_PURCHASED"]:"boolean"==typeof R.purchased?R.purchased.toString():R.purchased,...R.properties?Object.keys(R.properties).reduce((ce,Be)=>({...ce,["".concat(G,"ISSUE_PROPERTY_").concat(He(Be))]:R.properties[Be]}),{}):{}}:{};return L&&(K={...K,[G+"ISSUE_PRICE"]:L.formattedPrice,[G+"ISSUE_PRICE_VALUE"]:L.price.toString(),[G+"ISSUE_PRICE_CURRENCY"]:L.currency}),A&&(K={...K,...X(A,G),[G+"ISSUE_LATEST"]:A.currentIssueId===R.id?"true":"false"}),K}function W(R,A){let L=R?{ISSUE_TYPE:R.type,ISSUE_CATEGORIES:R.categories&&R.categories.join(","),ISSUE_TAGS:R.tags&&R.tags.join(","),ISSUE_PRODUCT_ID:R.productId,ISSUE_PURCHASABLE:"boolean"==typeof R.purchasable?R.purchasable.toString():R.purchasable,ISSUE_PURCHASED:"boolean"==typeof R.purchased?R.purchased.toString():R.purchased}:{};return A&&(L={...L,...J(A),ISSUE_LATEST:A.currentIssueId===R.id?"true":"false"}),L}function X(R,A=""){return R?{[A+"PUBLICATION_ID"]:R.id,[A+"PUBLICATION_NAME"]:R.name,[A+"PUBLICATION_TYPE"]:R.type,...R.properties?Object.keys(R.properties).reduce((L,G)=>({...L,["".concat(A,"PUBLICATION_PROPERTY_").concat(He(G))]:R.properties[G]}),{}):{}}:{}}function J(R){return R?{PUBLICATION_TYPE:R.type}:{}}function Ce(R){return R?{CATEGORY_ID:R.id,CATEGORY_NAME:R.name,CATEGORY_PARENT_CATEGORY_ID:R.parentCategoryId,...R.properties?Object.keys(R.properties).reduce((A,L)=>({...A,["CATEGORY_PROPERTY_".concat(He(L))]:R.properties[L]}),{}):{}}:{}}function ue(R,A,L){const G=R.contentType===E.CatalogContentType.ISSUE?{BOOKMARK_PAGE_LABEL:R.pageLabel}:{};let K=R?{BOOKMARK_TITLE:R.title,BOOKMARK_DESCRIPTION:R.description,BOOKMARK_PAGE_LABEL:R.pageLabel,BOOKMARK_CREATION_DATE:new Date(R.createdAt).toLocaleDateString((0,V.JK)()),...G,...R.customData?Object.keys(R.customData).reduce((ce,Be)=>({...ce,["BOOKMARK_CUSTOM_DATA_".concat(He(Be))]:R.customData[Be]}),{}):{}}:{};return A&&(K={...K,...N(A,L)}),K}function ge(R,A){let L=R?{SUBSCRIPTION_ID:R.id,SUBSCRIPTION_NAME:R.name,SUBSCRIPTION_PRODUCT_ID:R.productId,SUBSCRIPTION_PURCHASED:""+R.purchased,SUBSCRIPTION_DURATION:""+R.duration,SUBSCRIPTION_TYPE:R.type,...R&&R.properties?Object.keys(R.properties).reduce((G,K)=>({...G,["SUBSCRIPTION_PROPERTY_".concat(He(K))]:R.properties[K]}),{}):{}}:{};return A&&(L={...L,SUBSCRIPTION_PRICE:A.formattedPrice,SUBSCRIPTION_PRICE_VALUE:A.price.toString(),SUBSCRIPTION_PRICE_CURRENCY:A.currency}),L}function De(R,A){let L=R?{PRODUCT_ID:R.productId,PRODUCT_NAME:R.name,PRODUCT_DESCRIPTION:R.description,PRODUCT_TYPE:R.type,PRODUCT_HIDDEN:"boolean"==typeof R.hidden?R.hidden.toString():R.hidden,PRODUCT_PURCHASED:(0,Z.ak)(R)?R.purchased.toString():void 0,...R.properties?Object.keys(R.properties).reduce((G,K)=>({...G,["PRODUCT_PROPERTY_".concat(He(K))]:R.properties[K]}),{}):{}}:{};return A&&(L={...L,PRODUCT_PRICE:A.formattedPrice,PRODUCT_PRICE_VALUE:A.price.toString(),PRODUCT_PRICE_CURRENCY:A.currency}),L}function He(R){return R.toUpperCase().replace(/-/g,"_")}function Oe(R){return Object.keys(R).reduce((A,L)=>((R[L]||"boolean"==typeof R[L])&&(A[He(L)]=R[L]),A),{})}function it(R){return Object.values([ne.rg.ISSUE_ARTICLE,ne.rg.READ_MODE_ARTICLE]).includes(R)}function Ze(R,A,L,G){return we.apply(this,arguments)}function we(){return(we=(0,l.A)(function*(R,A,L,G,K=!1){var ce,Be;const qe="fetchAppId:".concat(R,"_").concat(A,"_").concat(K),ut=(0,p.zw6)(qe);let je=null===(ce=global.appData)||void 0===ce?void 0:ce.appWebConfig;if(je)G.setIsCustomerDomainUsed("byDomain"===je.routingMode);else if(L.hasKey(ut)&&ut)je=L.get(ut,null),G.setIsCustomerDomainUsed("byDomain"===je.routingMode);else if(je){var mt;G.setIsCustomerDomainUsed(null===(mt=global.appData)||void 0===mt?void 0:mt.customDomain)}else{const zt=Zone.current.scheduleMacroTask(qe,()=>{},{},()=>{},()=>{});je=yield le.Fw.getAppIdByDomain(R,window._env.CATALOG_API_BASE_URL,K).then(fn=>fn?(G.setIsCustomerDomainUsed(!0),{...fn,routingMode:"byDomain"}):(G.setIsCustomerDomainUsed(!1),le.Fw.getAppIdByPath(A,window._env.CATALOG_API_BASE_URL,K).then(or=>({...or,routingMode:"byPath"})))),zt&&zt.invoke()}return ut&&!L.hasKey(ut)&&L.set(ut,je),null!==(Be=je)&&void 0!==Be&&null!==(Be=Be.dynamicResources)&&void 0!==Be&&Be.lastModified&&G.setDynamicResourcesVersion(je.dynamicResources.lastModified),je})).apply(this,arguments)}function ye(R,A){return(0,Z.G4)(R)?(!A.includeBundledContent||A.includeBundledContent&&!!R.contents)&&(!A.seoMetadata||A.seoMetadata&&!!R.seoMetadata):(0,Z.mF)(R)?(!A.includeBlocks||A.includeBlocks&&!!R.content)&&(!A.includeHtml||A.includeHtml&&!!R.contentHtml)&&(!A.includeResources||A.includeResources&&!!R.resources)&&(!A.seoMetadata||A.seoMetadata&&!!R.seoMetadata):!!(0,Z.xl)(R)||void 0}function ze(R,A=""){let L={};return R&&Object.entries(R).forEach(([G,K])=>{if(K instanceof Array)K.forEach(ce=>L={...L,...ze(ce)});else if("object"==typeof K)K.key&&K.value&&"string"==typeof K.value&&0===K.value.indexOf(":")?L[K.value.substr(1)]="".concat(A).concat(A?".":"").concat(G,".").concat(K.key):L={...L,...ze(K,"".concat(A).concat(A?".":"").concat(G))};else if("string"==typeof K&&0===K.indexOf(":")){const ce=K.substr(1);L[ce]="".concat(A).concat(A?".":"").concat(G)}}),L}function Ye(R){const A=[];return R.forEach(L=>{L.dataSource&&A.push(L.dataSource),L.content&&Array.isArray(L.content)&&A.push(...Ye(L.content))}),A}function be(R,A,L,G){return Fe.apply(this,arguments)}function Fe(){return(Fe=(0,l.A)(function*(R,A,L,G){const K=A.path,Be=(0,B.qg)(K).filter(ut=>"string"!=typeof ut).map(ut=>ut.name||null).filter(ut=>!!ut);if(!(Be.length>0))return K;{var qe;const ut=null!==(qe=A.data)&&void 0!==qe?qe:[];ut.push(...Ye(A.content));let je={};ut&&ut.forEach(Nt=>{const zt=Nt.filter;je={...je,...ze(zt)}}),Be.includes("postSlug")&&!je.postSlug&&(je.postSlug="properties.slug"),Be.includes("contentSlug")&&!je.contentSlug&&(je.contentSlug="properties.slug"),Be.includes("bundleSlug")&&(je.bundleSlug="bundle.properties.slug");const mt=Object.entries(je);if(mt.length>0){let Nt;G?Nt=G:L&&(Nt=yield R.getCatalogContent(L));const zt=Nt.bundleId;zt&&(Nt.bundle=yield R.getCatalogContent(zt)),mt.forEach(([fn,or])=>{const Bn=or.split(".");je[fn]=Bn.reduce((Cn,yn)=>null==Cn?void 0:Cn[yn],Nt)||" "})}try{return(0,B.wE)(K,{encode:encodeURIComponent})(je)}catch(Nt){return console.warn("Error interpolating path: "+Nt),K}}})).apply(this,arguments)}function he(R,A){let G,K,ce,Be,L=A.length;A+=" ",R=(R=(R=R.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"")).replace(/}(\s*)@/g,"}@")).replace(/}(\s*)}/g,"}}");for(let qe=0;qe<R.length-2;qe++)G=R[qe],K=R[qe+1],"@"===G&&"f"!==K&&(ce=!0),!ce&&"{"===G&&(Be=!0),Be&&"}"===G&&(Be=!1),!Be&&"@"!==K&&"}"!==K&&("}"===G||","===G||("{"===G||";"===G)&&ce)&&(R=R.slice(0,qe+1)+A+R.slice(qe+1),qe+=L,ce=!1);return 0!==R.indexOf(A)&&0!==R.indexOf("@")&&(R=A+R),R}const Ne=new p.nKC("PurpleEnvironment"),st=new p.nKC("PurpleEnvironmentBackend")},8890:(ee,_,c)=>{"use strict";c.d(_,{os:()=>R,ZE:()=>st,TM:()=>Fe,q3:()=>he,Ne:()=>A,S8:()=>G,eh:()=>L});var l=c(7786),p=c(3726),E=c(1985),v=c(5964),U=c(6354),$=c(3294),B=c(152),ne=c(6697),te=c(362),me=function(){if(typeof Map<"u")return Map;function K(ce,Be){var qe=-1;return ce.some(function(ut,je){return ut[0]===Be&&(qe=je,!0)}),qe}return function(){function ce(){this.__entries__=[]}return Object.defineProperty(ce.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),ce.prototype.get=function(Be){var qe=K(this.__entries__,Be),ut=this.__entries__[qe];return ut&&ut[1]},ce.prototype.set=function(Be,qe){var ut=K(this.__entries__,Be);~ut?this.__entries__[ut][1]=qe:this.__entries__.push([Be,qe])},ce.prototype.delete=function(Be){var qe=this.__entries__,ut=K(qe,Be);~ut&&qe.splice(ut,1)},ce.prototype.has=function(Be){return!!~K(this.__entries__,Be)},ce.prototype.clear=function(){this.__entries__.splice(0)},ce.prototype.forEach=function(Be,qe){void 0===qe&&(qe=null);for(var ut=0,je=this.__entries__;ut<je.length;ut++){var mt=je[ut];Be.call(qe,mt[1],mt[0])}},ce}()}(),V=typeof window<"u"&&typeof document<"u"&&window.document===document,Z=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),le="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Z):function(K){return setTimeout(function(){return K(Date.now())},1e3/60)},ve=["top","right","bottom","left","width","height","size","weight"],pe=typeof MutationObserver<"u",fe=function(){function K(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function z(K,ce){var Be=!1,qe=!1,ut=0;function je(){Be&&(Be=!1,K()),qe&&Nt()}function mt(){le(je)}function Nt(){var zt=Date.now();if(Be){if(zt-ut<2)return;qe=!0}else Be=!0,qe=!1,setTimeout(mt,ce);ut=zt}return Nt}(this.refresh.bind(this),20)}return K.prototype.addObserver=function(ce){~this.observers_.indexOf(ce)||this.observers_.push(ce),this.connected_||this.connect_()},K.prototype.removeObserver=function(ce){var Be=this.observers_,qe=Be.indexOf(ce);~qe&&Be.splice(qe,1),!Be.length&&this.connected_&&this.disconnect_()},K.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},K.prototype.updateObservers_=function(){var ce=this.observers_.filter(function(Be){return Be.gatherActive(),Be.hasActive()});return ce.forEach(function(Be){return Be.broadcastActive()}),ce.length>0},K.prototype.connect_=function(){!V||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},K.prototype.disconnect_=function(){!V||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},K.prototype.onTransitionEnd_=function(ce){var Be=ce.propertyName,qe=void 0===Be?"":Be;ve.some(function(je){return!!~qe.indexOf(je)})&&this.refresh()},K.getInstance=function(){return this.instance_||(this.instance_=new K),this.instance_},K.instance_=null,K}(),w=function(K,ce){for(var Be=0,qe=Object.keys(ce);Be<qe.length;Be++){var ut=qe[Be];Object.defineProperty(K,ut,{value:ce[ut],enumerable:!1,writable:!1,configurable:!0})}return K},j=function(K){return K&&K.ownerDocument&&K.ownerDocument.defaultView||Z},I=He(0,0,0,0);function S(K){return parseFloat(K)||0}function N(K){for(var ce=[],Be=1;Be<arguments.length;Be++)ce[Be-1]=arguments[Be];return ce.reduce(function(qe,ut){return qe+S(K["border-"+ut+"-width"])},0)}var Ce=function(){return typeof SVGGraphicsElement<"u"?function(K){return K instanceof j(K).SVGGraphicsElement}:function(K){return K instanceof j(K).SVGElement&&"function"==typeof K.getBBox}}();function ge(K){return V?Ce(K)?function X(K){var ce=K.getBBox();return He(0,0,ce.width,ce.height)}(K):function J(K){var ce=K.clientWidth,Be=K.clientHeight;if(!ce&&!Be)return I;var qe=j(K).getComputedStyle(K),ut=function W(K){for(var Be={},qe=0,ut=["top","right","bottom","left"];qe<ut.length;qe++){var je=ut[qe];Be[je]=S(K["padding-"+je])}return Be}(qe),je=ut.left+ut.right,mt=ut.top+ut.bottom,Nt=S(qe.width),zt=S(qe.height);if("border-box"===qe.boxSizing&&(Math.round(Nt+je)!==ce&&(Nt-=N(qe,"left","right")+je),Math.round(zt+mt)!==Be&&(zt-=N(qe,"top","bottom")+mt)),!function ue(K){return K===j(K).document.documentElement}(K)){var fn=Math.round(Nt+je)-ce,or=Math.round(zt+mt)-Be;1!==Math.abs(fn)&&(Nt-=fn),1!==Math.abs(or)&&(zt-=or)}return He(ut.left,ut.top,Nt,zt)}(K):I}function He(K,ce,Be,qe){return{x:K,y:ce,width:Be,height:qe}}var Oe=function(){function K(ce){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=He(0,0,0,0),this.target=ce}return K.prototype.isActive=function(){var ce=ge(this.target);return this.contentRect_=ce,ce.width!==this.broadcastWidth||ce.height!==this.broadcastHeight},K.prototype.broadcastRect=function(){var ce=this.contentRect_;return this.broadcastWidth=ce.width,this.broadcastHeight=ce.height,ce},K}(),it=function(){return function K(ce,Be){var qe=function De(K){var ce=K.x,Be=K.y,qe=K.width,ut=K.height,je=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,mt=Object.create(je.prototype);return w(mt,{x:ce,y:Be,width:qe,height:ut,top:Be,right:ce+qe,bottom:ut+Be,left:ce}),mt}(Be);w(this,{target:ce,contentRect:qe})}}(),Ze=function(){function K(ce,Be,qe){if(this.activeObservations_=[],this.observations_=new me,"function"!=typeof ce)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=ce,this.controller_=Be,this.callbackCtx_=qe}return K.prototype.observe=function(ce){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(ce instanceof j(ce).Element))throw new TypeError('parameter 1 is not of type "Element".');var Be=this.observations_;Be.has(ce)||(Be.set(ce,new Oe(ce)),this.controller_.addObserver(this),this.controller_.refresh())}},K.prototype.unobserve=function(ce){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(ce instanceof j(ce).Element))throw new TypeError('parameter 1 is not of type "Element".');var Be=this.observations_;Be.has(ce)&&(Be.delete(ce),Be.size||this.controller_.removeObserver(this))}},K.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},K.prototype.gatherActive=function(){var ce=this;this.clearActive(),this.observations_.forEach(function(Be){Be.isActive()&&ce.activeObservations_.push(Be)})},K.prototype.broadcastActive=function(){if(this.hasActive()){var ce=this.callbackCtx_,Be=this.activeObservations_.map(function(qe){return new it(qe.target,qe.broadcastRect())});this.callback_.call(ce,Be,ce),this.clearActive()}},K.prototype.clearActive=function(){this.activeObservations_.splice(0)},K.prototype.hasActive=function(){return this.activeObservations_.length>0},K}(),we=typeof WeakMap<"u"?new WeakMap:new me,ye=function(){return function K(ce){if(!(this instanceof K))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Be=fe.getInstance(),qe=new Ze(ce,Be,this);we.set(this,qe)}}();["observe","unobserve","disconnect"].forEach(function(K){ye.prototype[K]=function(){var ce;return(ce=we.get(this))[K].apply(ce,arguments)}});const Ye=typeof Z.ResizeObserver<"u"?Z.ResizeObserver:ye;var be=c(2962);const Fe=(0,v.p)(K=>!!K),he=(0,v.p)(K=>void 0!==K);function st(){return(0,$.F)((K,ce)=>JSON.stringify(K)===JSON.stringify(ce))}function R(){return(0,$.F)((K,ce)=>te(K,ce))}function A(){return(0,l.h)((0,p.R)(window,"resize"),(0,p.R)(window,"orientationchange")).pipe((0,B.B)(100))}function L(K,ce,Be){return new E.c(qe=>{var ut,je;if(null!=Be&&Be.skipWait)return void qe.next();const mt={root:"primary"===(0,be.kO)(ce.nativeElement)&&window!==window.parent?document.scrollingElement:null};mt.rootMargin=(null==Be?void 0:Be.rootMargin)||(null===(ut=window.storefrontHooks)||void 0===ut?void 0:ut.getIntersectionMargin)&&(null===(je=window.storefrontHooks)||void 0===je?void 0:je.getIntersectionMargin())||"200px",Be.rootMargin&&(mt.rootMargin=Be.rootMargin);const Nt=new IntersectionObserver(zt=>{zt.forEach(fn=>{fn.isIntersecting&&!K.loaded&&(qe.next(),Nt.disconnect())})},mt);Nt.observe(ce.nativeElement),qe.add(()=>Nt.disconnect())}).pipe((0,ne.s)(1))}function G(K){return new E.c(ce=>{const Be=new Ye(()=>ce.next());ce.add(()=>Be.disconnect()),Be.observe(K)})}(0,U.T)(K=>(console.log(K),K))},7370:(ee,_,c)=>{"use strict";function l(V){try{if(new URL(V).protocol.startsWith("http"))return!0}catch{return!1}return!1}c.d(_,{HJ:()=>U,P3:()=>$,WR:()=>me,_o:()=>te,bU:()=>ne,tb:()=>l,vA:()=>B,vh:()=>E});const p=/^\w+:\/\//;function E(V){return p.test(V)}function U(V){const Z=V.indexOf("/",8);return V.substr(Z)}function $(V,Z){try{return new URL(Z).searchParams.get(V)}catch{return null}}function B(V,Z,le){if(Z.isUniversal){const Q=le.getDynamicResourcesVersion();return"?version=".concat(Q).concat(V?"&preview=true":"")}return""}function ne(V){const Z=new URL(V);return"true"===Z.searchParams.get("preview")||0===Z.pathname.indexOf("/preview")}function te(V){const Z=new URL(V);return"true"===Z.searchParams.get("debug")||0===Z.pathname.indexOf("/debug")}function me(V){return"true"===new URL(V).searchParams.get("skipSSR")}},4520:(ee,_,c)=>{"use strict";c.d(_,{z:()=>De});var l=c(467),p=c(177),E=c(4438),v=c(9047),U=c(4404),B=c(5630),ne=c(4843),te=c(4572),me=c(7673),V=c(5964),Z=c(5558),le=c(8141),Q=c(3294),z=c(6354),Y=c(9568),ve=c(6697),pe=c(6843),fe=c(4616),w=c(8179),j=c(6889),I=c(8545),S=c(8075),N=c(5483),W=c(8471),X=c(8745),J=c(1652),Ce=c(8004),ue=c(2884);const ge=(0,E.zw6)("initial_view");let De=(()=>{var He;class Oe{getCurrentView(){var Ze=this;return(0,l.A)(function*(){return Ze.view$.toPromise()})()}constructor(Ze,we,ye,ze,Ye,be,Fe,he,Ne,st,R){var A=this;this.router=Ze,this.contextService=we,this.purpleService=ye,this.configLoaderService=ze,this.globalService=Ye,this.urlResolverService=be,this.eventActionService=Fe,this.platformId=he,this.document=Ne,this.transferState=st,this.experienceConfigService=R,this.isFirstNavigation=!0;const L=this.purpleService.inited$.toPromise().then(()=>this.contextService.updateMetadata()),G=(0,ne._)(this.experienceConfigService.getExperienceConfig());this.keepSSRRunningTask=Zone.current.scheduleMacroTask("ViewService-resolved-first-view",()=>{},{},()=>{},()=>{}),this.router.events.pipe((0,V.p)(K=>K instanceof v.wF)).subscribe(K=>{try{var ce,Be;null===(ce=window.storefrontHooks)||void 0===ce||null===(Be=ce.onNavigationEnd)||void 0===Be||Be.call(ce,{event:K,router:this.router,viewContext:this.contextService.getContext()})}catch(qe){console.error("Error in onNavigationEnd hook:",qe)}}),this.path$=this.router.events.pipe((0,V.p)(K=>{const ce=K instanceof v.Z&&0!==K.url.indexOf("/preview")&&!K.url.includes("oauth/callback");return ce||this.keepSSRRunningTask.invoke(),ce}),(0,Z.n)(function(){var K=(0,l.A)(function*(ce){return{navEvent:ce,default:yield A.extractPathFromOutlet(ce),modal:yield A.extractPathFromOutlet(ce,"modal")}});return function(ce){return K.apply(this,arguments)}}()),(0,le.M)(K=>{this.checkForGenericRedirect(K)}),(0,Q.F)((K,ce)=>K.default===ce.default&&K.modal==ce.modal)),this.view$=(0,te.z)([this.path$,this.configLoaderService.getConfig().pipe((0,z.T)(K=>K[pe.O.VIEW]),(0,Z.n)(function(){var K=(0,l.A)(function*(ce){return yield L,yield G,ce});return function(ce){return K.apply(this,arguments)}}()))]).pipe((0,Z.n)(function(){var K=(0,l.A)(function*([{default:ce,modal:Be,navEvent:qe},ut]){(0,p.UE)(A.platformId)&&!qe.url.includes("oauth/callback")&&A.updateVisitedPath();const je={...A.contextService.getContext(),...A.router.parseUrl(qe.url).queryParams},mt=ut.filter(fn=>!fn.globalData&&(!fn.condition||(0,w.Ol)({condition:(0,w.uQ)(fn.condition,je,A.contextService.$functions,A.globalService.getGlobalData())})));return{default:yield A.getViewFromPath(ce,mt),modal:Be&&(yield A.getViewFromPath(Be,mt)),routerEvent:qe,targetContext:je}});return function(ce){return K.apply(this,arguments)}}()),(0,Z.n)(function(){var K=(0,l.A)(function*(ce){return(0,fe.B)(ce.default.viewConfig)?(yield A.handleRedirect(ce.default.viewConfig,ce.targetContext),void A.keepSSRRunningTask.invoke()):(A.keepSSRRunningTask.invoke(),ce)});return function(ce){return K.apply(this,arguments)}}()),(0,V.p)(K=>!!K),(0,Y.t)({bufferSize:1,refCount:!0})),this.view$.subscribe()}getAbsoluteUrl(Ze,we){const ye=this.router.createUrlTree([Ze],{queryParams:we}),ze=this.router.serializeUrl(ye);return"".concat(this.document.location.protocol,"//").concat(this.document.location.host).concat(ze)}distinctView$(Ze){return this.view$.pipe((0,V.p)(we=>Ze?!(null==we||!we.modal):!(null==we||!we.default)),(0,Q.F)((we,ye)=>{var ze,Ye,be,Fe;return Ze?(null===(ze=we.modal)||void 0===ze?void 0:ze.viewConfig)===(null===(Ye=ye.modal)||void 0===Ye?void 0:Ye.viewConfig)&&(null===(be=we.modal)||void 0===be?void 0:be.pathParams)===(null===(Fe=ye.modal)||void 0===Fe?void 0:Fe.pathParams):we.default.viewConfig===ye.default.viewConfig&&we.default.pathParams===ye.default.pathParams}),(0,z.T)(we=>Ze?{cfg:we.modal,routerEvent:we.routerEvent}:{cfg:we.default,routerEvent:we.routerEvent}))}resolve(Ze,we){return this.isFirstNavigation?(this.isFirstNavigation=!1,(0,me.of)(void 0)):this.view$.pipe((0,V.p)(ye=>!!ye&&ye.routerEvent.url===we.url),(0,ve.s)(1))}checkForGenericRedirect(Ze){var we=this;return(0,l.A)(function*(){yield we.purpleService.inited$.pipe((0,ve.s)(1)).toPromise();const ye=yield we.purpleService.getRedirects({redirectFilter:{AND:[{type:{value:"GENERIC"}},{identifier:{value:"/"+Ze.default,operation:U.StringOperation.EQUAL}}]}});if(ye.nodes.length){const Ye=ye.nodes[0];if((0,p.Vy)(we.platformId)){let be;if(Ye.target.startsWith("https://")||Ye.target.startsWith("http://"))be=Ye.target;else{var ze;const Fe=((yield we.contextService.getIsCustomDomainUsed())?"":we.contextService.getBrand()+"/")+Ye.target,he=globalThis.appData,Ne=null!==(ze=null==he?void 0:he.preview)&&void 0!==ze?ze:"true"==we.contextService.getMetadata().preview_app,[st,R]=Fe.split("?"),A={...(0,S.IN)(R),preview:Ne?"true":void 0};be=we.getAbsoluteUrl(st,A)}console.debug("GENERIC redirect: redirectExternal to ",be),global.redirectExternal(be,Ye.statusCode)}else console.debug("GENERIC redirect: internal redirect to ",Ye.target),we.handleRedirect({path:Ze.default,redirectTo:Ye.target},we.contextService.getContext())}})()}handleRedirect(Ze,we){var ye=this;return(0,l.A)(function*(){if("object"==typeof Ze.redirectTo){const Fe=(0,w.uQ)(Ze.redirectTo,we,ye.contextService.$functions,ye.globalService.getGlobalData());return void ye.eventActionService.processNavigateAction(Fe)}let ze=Ze.redirectTo;if(ze.startsWith("/")&&"/"!==ze&&(ze=ze.substring(1)),ze.includes("://"))ze=(0,w.uQ)(ze,we,ye.contextService.$functions,ye.globalService.getGlobalData()),(0,p.UE)(ye.platformId)?window.location.href=ze:global.redirectExternal(ze,Ze.statusCode);else if(ze.includes(":")){let Fe=Ze.path.split("/");ze=ze.replace(/:([a-zA-Z0-9_-]+)/g,he=>{let Ne=Fe.indexOf(he);return ye.contextService.getPath().split("/")[Ne]||""})}const Ye=ye.contextService.getParams(),be=((yield ye.contextService.getIsCustomDomainUsed())?"":ye.contextService.getBrand()+"/")+ze;if((0,p.Vy)(ye.platformId)){const Fe=ye.getAbsoluteUrl(be,Ye);console.debug("HTTP Redirect to ".concat(Fe)),global.redirectExternal(Fe,Ze.statusCode)}return console.debug("Redirect to ".concat(be)),ye.router.navigate([be],{queryParams:{preview:Ye.preview},replaceUrl:!0})})()}extractPathFromOutlet(Ze,we){var ye=this;return(0,l.A)(function*(){var ze,Ye;const be=ye.router.parseUrl(Ze.url),Fe=yield ye.contextService.getIsCustomDomainUsed();let he=null===(ze=be.root.children.primary)||void 0===ze?void 0:ze.segments;if("modal"===we&&(he=!!be.root.children.modal&&[be.root.children.modal.segments[1]]),he||"modal"!==we)return!Fe&&!we&&he&&he.shift(),(null===(Ye=he)||void 0===Ye?void 0:Ye.join("/"))||"/"})()}updateVisitedPath(){const Ze=new URL(window.location.href);let we=JSON.parse(sessionStorage.getItem(U.LAST_VISITED_PATH))||{};we.lastVisitedPath=we.currentPath,we.currentPath=Ze,sessionStorage.setItem(U.LAST_VISITED_PATH,JSON.stringify(we))}getViewFromPath(Ze,we){var ye=this;return(0,l.A)(function*(){let Ye,ze=!1;if((0,p.UE)(ye.platformId)&&ye.transferState.hasKey(ge))return Ye=ye.transferState.get(ge,null),ye.transferState.remove(ge),Ye;try{const be=yield ye.urlResolverService.getViewFromPath(Ze);if((0,I.X0)(be)){const Fe=we.find(he=>he.name===be.viewName);Fe&&(Ye={viewConfig:Fe,viewContext:be.viewContext,pathParams:be.pathParams})}else if((0,I.ie)(be))return{viewConfig:{redirectTo:be.redirectTarget,path:Ze,statusCode:be.statusCode}}}catch(be){if(console.error("Error during dynamic resolving of view: ",be),be instanceof j.r)throw be}if(!Ye)for(const be of we){if(be.path.includes("**")&&-1!==Ze.indexOf(be.path.split("/**")[0])||be.path===Ze){ze=!0,Ye={viewConfig:be};break}{const Fe=B.YW(be.path,{decode:decodeURIComponent})(Ze);if(Fe){Ye={viewConfig:be,pathParams:Fe.params?{...Fe.params}:void 0};break}}}if(!Ye){let be=we.find(Fe=>Fe.errorPage);be?Ye={viewConfig:be,viewContext:{errorCode:404}}:(0==ze&&console.debug("Cannot find view for the path: ".concat(Ze)),global.sendError(404,"Not Found"))}return(0,p.Vy)(ye.platformId)&&ye.transferState.set(ge,Ye),Ye})()}}return(He=Oe).\u0275fac=function(Ze){return new(Ze||He)(E.KVO(v.Ix),E.KVO(N.V),E.KVO(W.Wj),E.KVO(X.Bh),E.KVO(J.d),E.KVO(j.K),E.KVO(Ce.G),E.KVO(E.Agw),E.KVO(p.qQ),E.KVO(E.pJN),E.KVO(ue.a))},He.\u0275prov=E.jDH({token:He,factory:He.\u0275fac,providedIn:"root"}),Oe})()},4088:(ee,_,c)=>{"use strict";c.d(_,{c:()=>p});const p={production:!0,appVersion:c(8330).rE||"-"}},1589:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(345),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4438),_app_app_module__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9286),_environments_environment__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4088),_app_component_image_image_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(9876);function loadAllImages(){document.querySelectorAll("storefront-image").forEach(ee=>{loadImage(ee,!0)})}function preloadVisibleImages(){const ee=Math.max(document.documentElement.clientHeight,window.innerHeight);document.querySelectorAll("storefront-image").forEach(_=>{const c=_.getBoundingClientRect();c.bottom>=0&&c.top-ee<0&&loadImage(_,!1)})}function loadImage(ee,_){const c=ee.offsetWidth,l=ee.getAttribute("src");if(!c||!l)return;const p=(0,_app_component_image_image_utils__WEBPACK_IMPORTED_MODULE_2__.G)(ee,l,ee.getAttribute("resolution-strategy"),ee.getAttribute("focal-point")),E=document.createElement("img");E.addEventListener("load",()=>{const v=(0,_app_component_image_image_utils__WEBPACK_IMPORTED_MODULE_2__.z)(!0,E,l);v&&(E.style.paddingTop=v+"%")}),E.setAttribute("src",p),E.setAttribute("title",ee.getAttribute("title")),E.setAttribute("alt",ee.getAttribute("alt")),E.setAttribute("aria-label",ee.getAttribute("aria-label")),E.setAttribute("class","loaded"),ee.setAttribute("class","loaded"),_&&(ee.removeAttribute("src"),ee.removeAttribute("label")),ee.setAttribute("ng-skip-hydration","true"),ee.prepend(E)}window.storefrontHooks=window.storefrontHooks||{},_environments_environment__WEBPACK_IMPORTED_MODULE_1__.c.production&&(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.SmG)(),document.addEventListener("DOMContentLoaded",()=>{eval("true")?(preloadVisibleImages(),_angular_platform_browser__WEBPACK_IMPORTED_MODULE_4__.sG().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_0__.k).catch(ee=>console.error(ee))):loadAllImages()})},4404:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(970),_)},8589:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(9100),_)},9100:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AssignLocalPurchasesMode=void 0;var c=function(l){return l.UNASSIGNED="UNASSIGNED",l.REASSIGN="REASSIGN",l.ASSIGN="ASSIGN",l}(c||(_.AssignLocalPurchasesMode=c={}))},6794:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3155:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.APP_STATE_TYPE=void 0;var c=function(l){return l.STARTED="STARTED",l.RESUMED="RESUMED",l.PAUSED="PAUSED",l.STOPPED="STOPPED",l}(c||(_.APP_STATE_TYPE=c={}))},2779:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7146:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8397:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppSubscriptionAdditionalBackIssueUnlocksType=void 0;var c=function(l){return l.DAY="DAY",l.WEEK="WEEK",l.MONTH="MONTH",l.YEAR="YEAR",l}(c||(_.AppSubscriptionAdditionalBackIssueUnlocksType=c={}))},7733:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppSubscriptionType=_.AppSubscriptionDuration=void 0;var c=function(p){return p.SEVEN_DAYS="SEVEN_DAYS",p.TWO_WEEKS="TWO_WEEKS",p.ONE_MONTH="ONE_MONTH",p.TWO_MONTHS="TWO_MONTHS",p.THREE_MONTHS="THREE_MONTHS",p.SIX_MONTHS="SIX_MONTHS",p.ONE_YEAR="ONE_YEAR",p}(c||(_.AppSubscriptionDuration=c={})),l=function(p){return p.FREE="FREE",p.AUTORENEWABLE="AUTORENEWABLE",p.NONAUTORENEWABLE="NONAUTORENEWABLE",p}(l||(_.AppSubscriptionType=l={}))},8475:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1462:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9546:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3482:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2247:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ContentResourceType=_.CatalogBundleType=_.CatalogContentType=_.Access=void 0;var c=function(v){return v.FREE="FREE",v.HIDDEN="HIDDEN",v.PURCHASABLE="PURCHASABLE",v}(c||(_.Access=c={})),l=function(v){return v.ISSUE="ISSUE",v.POST="POST",v.BUNDLE="BUNDLE",v}(l||(_.CatalogContentType=l={})),p=function(v){return v.ISSUE="ISSUE",v.DOSSIER="DOSSIER",v}(p||(_.CatalogBundleType=p={})),E=function(v){return v.ASSET="ASSET",v.CONTENT_BUNDLE="CONTENT_BUNDLE",v}(E||(_.ContentResourceType=E={}))},3257:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CatalogIssueStateError=_.CatalogIssueInstallState=void 0;var c=function(p){return p.NOT_INSTALLED="NOT_INSTALLED",p.INCOMPLETE="INCOMPLETE",p.COMPLETE="COMPLETE",p}(c||(_.CatalogIssueInstallState=c={})),l=function(p){return p.NETWORK="NETWORK",p.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",p.PAYMENT_REQUIRED="PAYMENT_REQUIRED",p.NOT_FOUND="NOT_FOUND",p.UNKNOWN="UNKNOWN",p}(l||(_.CatalogIssueStateError=l={}))},3825:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.IssueType=_.PurchaseOption=void 0;var c=function(p){return p.APP_STORE_PURCHASE="APP_STORE_PURCHASE",p.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",p.ENTITLEMENT="ENTITLEMENT",p.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",p.TRIAL="TRIAL",p.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT",p}(c||(_.PurchaseOption=c={})),l=function(p){return p.ARTICLE="ARTICLE",p.ISSUE="ISSUE",p}(l||(_.IssueType=l={}))},3535:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2191:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6214:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4190:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.PublicationType=void 0;var c=function(l){return l.KIOSK="KIOSK",l.CHANNEL="CHANNEL",l}(c||(_.PublicationType=c={}))},995:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1621:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7605:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4809:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2740:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SortDirection=void 0;var c=function(l){return l.ASC="ASC",l.DESC="DESC",l}(c||(_.SortDirection=c={}))},9722:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6396:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6242:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},917:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1801:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8147:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9381:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2213:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4060:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ERROR_CODE=void 0;var c=function(l){return l.ACCESS_DENIED="ACCESS_DENIED",l.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",l.ALREADY_OWNED="ALREADY_OWNED",l.CANCELLED="CANCELLED",l.CONFIGURATION_ERROR="CONFIGURATION_ERROR",l.DUPLICATE_CODE="DUPLICATE_CODE",l.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",l.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",l.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.INVALID_CODE="INVALID_CODE",l.INVALID_CREDENTIALS="INVALID_CREDENTIALS",l.NETWORK="NETWORK",l.NO_ISSUES_FOUND="NO_ISSUES_FOUND",l.NOT_AVAILABLE="NOT_AVAILABLE",l.NOT_FOUND="NOT_FOUND",l.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",l.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",l.NOT_HANDLED="NOT_HANDLED",l.NOTHING_LOADED="NOTHING_LOADED",l.NOT_LOGGED_IN="NOT_LOGGED_IN",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.UNKNOWN="UNKNOWN",l.UNKNOWN_CODE="UNKNOWN_CODE",l.UNKNOWN_OFFER="UNKNOWN_OFFER",l.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",l.UNKNOWN_VENDOR="UNKNOWN_VENDOR",l.USER_DEACTIVATED="USER_DEACTIVATED",l.VALIDATION_FAILED="VALIDATION_FAILED",l}(c||(_.ERROR_CODE=c={}))},8227:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ListOperation=_.IntOperation=_.DateOperation=_.StringOperation=void 0;var c=function(v){return v.EQUAL="EQUAL",v.CONTAINS="CONTAINS",v.STARTS_WITH="STARTS_WITH",v.GREATER_THAN="GREATER_THAN",v.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",v.LESS_THAN="LESS_THAN",v.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",v.REGEX="REGEX",v}(c||(_.StringOperation=c={})),l=function(v){return v.GREATER_THAN="GREATER_THAN",v.LESS_THAN="LESS_THAN",v.EQUAL="EQUAL",v}(l||(_.DateOperation=l={})),p=function(v){return v.GREATER_THAN="GREATER_THAN",v.LESS_THAN="LESS_THAN",v.EQUAL="EQUAL",v}(p||(_.IntOperation=p={})),E=function(v){return v.CONTAINS="CONTAINS",v.CONTAINS_ONLY="CONTAINS_ONLY",v}(E||(_.ListOperation=E={}))},4369:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9134:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},5767:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1847:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8009:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8994:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},5902:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1534:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1524:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},5725:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1872:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2093:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1680:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6786:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(7733),_),p(c(8397),_),p(c(9546),_),p(c(2247),_),p(c(3825),_),p(c(3257),_),p(c(2191),_),p(c(6214),_),p(c(4190),_),p(c(995),_),p(c(7605),_),p(c(2740),_),p(c(9722),_),p(c(6242),_),p(c(917),_),p(c(1801),_),p(c(8147),_),p(c(9381),_),p(c(4060),_),p(c(2213),_),p(c(8227),_),p(c(9134),_),p(c(1847),_),p(c(8009),_),p(c(8994),_),p(c(1534),_),p(c(1524),_),p(c(5725),_),p(c(1872),_),p(c(2093),_),p(c(1680),_),p(c(6944),_),p(c(1426),_),p(c(3631),_),p(c(1176),_),p(c(8031),_),p(c(7824),_),p(c(9269),_),p(c(7585),_),p(c(629),_),p(c(2260),_),p(c(9755),_),p(c(2893),_),p(c(3544),_),p(c(2850),_),p(c(7475),_),p(c(6052),_),p(c(5105),_),p(c(1876),_),p(c(1311),_),p(c(9580),_),p(c(1290),_),p(c(424),_),p(c(2833),_),p(c(8621),_),p(c(6251),_),p(c(8159),_),p(c(1798),_),p(c(8844),_),p(c(3979),_),p(c(7822),_),p(c(2015),_),p(c(1621),_),p(c(2644),_),p(c(1082),_),p(c(5902),_),p(c(3535),_),p(c(2658),_),p(c(1462),_),p(c(3482),_),p(c(5767),_),p(c(4809),_),p(c(6396),_),p(c(7146),_),p(c(8475),_),p(c(4369),_),p(c(1740),_),p(c(1378),_),p(c(6587),_)},6944:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1426:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3631:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1176:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8031:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7824:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2658:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6587:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9269:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1378:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7585:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},629:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2260:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9755:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2893:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7475:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3544:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2850:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.PublicationProductType=void 0;var c=function(l){return l.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",l.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE",l}(c||(_.PublicationProductType=c={}))},6052:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},5105:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1876:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1311:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SystemConsentStatus=void 0;var c=function(l){return l.GRANTED="GRANTED",l.DENIED="DENIED",l.UNDETERMINED="UNDETERMINED",l}(c||(_.SystemConsentStatus=c={}))},9580:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1290:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},424:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1740:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2833:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SearchResultSortCriteria=void 0;var c=function(l){return l.RELEVANCE="RELEVANCE",l.PUB_DATE_DESC="PUB_DATE_DESC",l}(c||(_.SearchResultSortCriteria=c={}))},8621:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SearchField=void 0;var c=function(l){return l.CONTENT="CONTENT",l.CONTENT_NAME="CONTENT_NAME",l.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",l.CUSTOM_TERMS="CUSTOM_TERMS",l}(c||(_.SearchField=c={}))},6251:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8159:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1798:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.StartDownloadError=void 0;var c=function(l){return l.NETWORK="NETWORK",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.NOT_FOUND="NOT_FOUND",l.UNKNOWN="UNKNOWN",l}(c||(_.StartDownloadError=c={}))},8844:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3979:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7822:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2015:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},2644:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1082:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},528:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8960:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CONNECTION_TYPE=_.CONNECTION_STATE=void 0;var c=function(p){return p.ONLINE="ONLINE",p.OFFLINE="OFFLINE",p}(c||(_.CONNECTION_STATE=c={})),l=function(p){return p.TYPE_3G="TYPE_3G",p.TYPE_WLAN="TYPE_WLAN",p}(l||(_.CONNECTION_TYPE=l={}))},5860:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(1327),_),p(c(4364),_)},1327:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ElementAlignment=void 0;var c=function(l){return l.TOP_LEFT="TOP_LEFT",l.TOP_CENTER="TOP_CENTER",l.TOP_RIGHT="TOP_RIGHT",l.CENTER_LEFT="CENTER_LEFT",l.CENTER_CENTER="CENTER_CENTER",l.CENTER_RIGHT="CENTER_RIGHT",l.BOTTOM_LEFT="BOTTOM_LEFT",l.BOTTOM_CENTER="BOTTOM_CENTER",l.BOTTOM_RIGHT="BOTTOM_RIGHT",l}(c||(_.ElementAlignment=c={}))},4364:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6583:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.DisplayMode=_.DISPLAY_MODE=void 0;var c=function(p){return p.EMBEDDED="embedded",p.MODAL="modal",p}(c||(_.DISPLAY_MODE=c={})),l=function(p){return p.EMBEDDED="EMBEDDED",p.MODAL="MODAL",p}(l||(_.DisplayMode=l={}))},8715:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ENTITLEMENT_MODE=void 0;var c=function(l){return l.ENTITLEMENT="entitlement",l.OAUTH="oauth",l.NONE="none",l}(c||(_.ENTITLEMENT_MODE=c={}))},970:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(6794),_),p(c(3155),_),p(c(528),_),p(c(8960),_),p(c(6583),_),p(c(8715),_),p(c(3595),_),p(c(1615),_),p(c(6879),_),p(c(9252),_),p(c(7899),_),p(c(2241),_),p(c(7096),_),p(c(9526),_),p(c(3520),_),p(c(4957),_),p(c(987),_),p(c(6448),_),p(c(581),_),p(c(3326),_),p(c(653),_),p(c(9874),_),p(c(9943),_),p(c(3727),_),p(c(5834),_),p(c(2779),_),p(c(3370),_),p(c(6786),_),p(c(5860),_),p(c(8548),_),p(c(9276),_),p(c(8589),_)},1615:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6879:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ISSUE_STATE=void 0;var c=function(l){return l.PURCHASABLE="PURCHASABLE",l.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",l.DOWNLOADING="DOWNLOADING",l.AVAILABLE="AVAILABLE",l.INSTALLING="INSTALLING",l.UPDATE="UPDATE",l.INSTALLED="INSTALLED",l.LOCKED="LOCKED",l.COMING_SOON="COMING_SOON",l.INDEXING="INDEXING",l.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",l.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED",l}(c||(_.ISSUE_STATE=c={}))},3595:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9252:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7899:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.MEDIA_PLAYBACK_STATE=void 0;var c=function(l){return l.NONE="NONE",l.ERROR="ERROR",l.LOADING="LOADING",l.READY="READY",l.PLAYING="PLAYING",l}(c||(_.MEDIA_PLAYBACK_STATE=c={}))},2241:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Platform=void 0;var c=function(l){return l.ANDROID="android",l.IOS="ios",l}(c||(_.Platform=c={}))},7096:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.PUBLICATION_TYPE=void 0;var c=function(l){return l.KIOSK="KIOSK",l.CHANNEL="CHANNEL",l}(c||(_.PUBLICATION_TYPE=c={}))},987:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3520:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4957:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6448:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.OpenFileMode=_.OpenFileTarget=void 0;var c=function(p){return p.INTERNAL="INTERNAL",p.EXTERNAL="EXTERNAL",p}(c||(_.OpenFileTarget=c={})),l=function(p){return p.MODAL="MODAL",p.EMBEDDED="EMBEDDED",p}(l||(_.OpenFileMode=l={}))},581:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3326:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.METADATA_KEY=void 0;var c=function(l){return l.APP_ID="app_id",l.APP_VERSION="app_version",l.BUNDLE_ID="bundle_id",l.DEEPLINK_SCHEME="deeplink_scheme",l.PREVIEW_APP="preview_app",l.DEVICE_ID="device_id",l.DEVICE_MODEL="device_model",l.DEVICE_OS="device_os",l.PLATFORM="platform",l.LOCALE="locale",l.MANAGER_BASE_URL="manager_base_url",l.PUSH_REGISTRATION_TOKEN="push_registration_token",l.ENTITLEMENT_LOGIN="entitlement_login",l.ENTITLEMENT_TOKEN="entitlement_token",l.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",l.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",l.ENTITLEMENT_MODE="entitlement_mode",l.ISSUE_ID="issue_id",l.ISSUE_NAME="issue_name",l.PUBLICATION_ID="publication_id",l.PUBLICATION_NAME="publication_name",l.PAGE_ID="page_id",l.PAGE_ALIAS="page_alias",l.PAGE_TITLE="page_title",l.PAGE_INDEX="page_index",l.PAGE_FILENAME="page_filename",l.PURPLE_VERSION="purple_version",l.ONBOARDING_MODE="onboarding_mode",l}(c||(_.METADATA_KEY=c={}))},653:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9874:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9526:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4674:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9276:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(2640),_),p(c(4674),_),p(c(6414),_),p(c(7775),_),p(c(7239),_)},2640:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6414:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7775:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7239:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.LAST_VISITED_PATH=void 0,_.LAST_VISITED_PATH="lastVisitedPath"},4267:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9215:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},3975:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9551:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},5688:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4112:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},8548:function(ee,_,c){"use strict";var l=this&&this.__createBinding||(Object.create?function(E,v,U,$){void 0===$&&($=U);var B=Object.getOwnPropertyDescriptor(v,U);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[U]}}),Object.defineProperty(E,$,B)}:function(E,v,U,$){void 0===$&&($=U),E[$]=v[U]}),p=this&&this.__exportStar||function(E,v){for(var U in E)"default"!==U&&!Object.prototype.hasOwnProperty.call(v,U)&&l(v,E,U)};Object.defineProperty(_,"__esModule",{value:!0}),p(c(4267),_),p(c(9215),_),p(c(3975),_),p(c(9551),_),p(c(5688),_),p(c(4112),_),p(c(7596),_),p(c(1571),_),p(c(6453),_),p(c(7385),_),p(c(9394),_),p(c(9596),_),p(c(4460),_),p(c(556),_),p(c(2922),_)},7596:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},1571:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},6453:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7385:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9394:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9596:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},4460:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},556:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ProrationMode=void 0;var c=function(l){return l.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",l.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",l.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",l.DEFERRED="DEFERRED",l}(c||(_.ProrationMode=c={}))},2922:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},9943:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.SUBSCRIPTION_STATE=void 0;var c=function(l){return l.NONE="NONE",l.PURCHASING="PURCHASING",l.VALIDATING="VALIDATING",l.PURCHASED="PURCHASED",l}(c||(_.SUBSCRIPTION_STATE=c={}))},3727:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},5834:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.UPDATE_STOREFRONT_ERROR_CODE=_.UPDATE_STOREFRONT_TYPE=void 0;var c=function(p){return p.PARTIAL="PARTIAL",p.FULL="FULL",p.LOGIN="LOGIN",p.LOGOUT="LOGOUT",p}(c||(_.UPDATE_STOREFRONT_TYPE=c={})),l=function(p){return p.OFFLINE="OFFLINE",p.UNKNOWN="UNKNOWN",p}(l||(_.UPDATE_STOREFRONT_ERROR_CODE=l={}))},3370:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0})},7374:function(ee){ee.exports=function(){"use strict";var c=6e4,l=36e5,p="millisecond",E="second",v="minute",U="hour",$="day",B="week",ne="month",te="quarter",me="year",V="date",Z="Invalid Date",le=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|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,z={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(J){var Ce=["th","st","nd","rd"],ue=J%100;return"["+J+(Ce[(ue-20)%10]||Ce[ue]||Ce[0])+"]"}},Y=function(J,Ce,ue){var ge=String(J);return!ge||ge.length>=Ce?J:""+Array(Ce+1-ge.length).join(ue)+J},ve={s:Y,z:function(J){var Ce=-J.utcOffset(),ue=Math.abs(Ce),ge=Math.floor(ue/60),De=ue%60;return(Ce<=0?"+":"-")+Y(ge,2,"0")+":"+Y(De,2,"0")},m:function J(Ce,ue){if(Ce.date()<ue.date())return-J(ue,Ce);var ge=12*(ue.year()-Ce.year())+(ue.month()-Ce.month()),De=Ce.clone().add(ge,ne),He=ue-De<0,Oe=Ce.clone().add(ge+(He?-1:1),ne);return+(-(ge+(ue-De)/(He?De-Oe:Oe-De))||0)},a:function(J){return J<0?Math.ceil(J)||0:Math.floor(J)},p:function(J){return{M:ne,y:me,w:B,d:$,D:V,h:U,m:v,s:E,ms:p,Q:te}[J]||String(J||"").toLowerCase().replace(/s$/,"")},u:function(J){return void 0===J}},pe="en",fe={};fe[pe]=z;var w="$isDayjsObject",j=function(J){return J instanceof W||!(!J||!J[w])},I=function J(Ce,ue,ge){var De;if(!Ce)return pe;if("string"==typeof Ce){var He=Ce.toLowerCase();fe[He]&&(De=He),ue&&(fe[He]=ue,De=He);var Oe=Ce.split("-");if(!De&&Oe.length>1)return J(Oe[0])}else{var it=Ce.name;fe[it]=Ce,De=it}return!ge&&De&&(pe=De),De||!ge&&pe},S=function(J,Ce){if(j(J))return J.clone();var ue="object"==typeof Ce?Ce:{};return ue.date=J,ue.args=arguments,new W(ue)},N=ve;N.l=I,N.i=j,N.w=function(J,Ce){return S(J,{locale:Ce.$L,utc:Ce.$u,x:Ce.$x,$offset:Ce.$offset})};var W=function(){function J(ue){this.$L=I(ue.locale,null,!0),this.parse(ue),this.$x=this.$x||ue.x||{},this[w]=!0}var Ce=J.prototype;return Ce.parse=function(ue){this.$d=function(ge){var De=ge.date,He=ge.utc;if(null===De)return new Date(NaN);if(N.u(De))return new Date;if(De instanceof Date)return new Date(De);if("string"==typeof De&&!/Z$/i.test(De)){var Oe=De.match(le);if(Oe){var it=Oe[2]-1||0,Ze=(Oe[7]||"0").substring(0,3);return He?new Date(Date.UTC(Oe[1],it,Oe[3]||1,Oe[4]||0,Oe[5]||0,Oe[6]||0,Ze)):new Date(Oe[1],it,Oe[3]||1,Oe[4]||0,Oe[5]||0,Oe[6]||0,Ze)}}return new Date(De)}(ue),this.init()},Ce.init=function(){var ue=this.$d;this.$y=ue.getFullYear(),this.$M=ue.getMonth(),this.$D=ue.getDate(),this.$W=ue.getDay(),this.$H=ue.getHours(),this.$m=ue.getMinutes(),this.$s=ue.getSeconds(),this.$ms=ue.getMilliseconds()},Ce.$utils=function(){return N},Ce.isValid=function(){return this.$d.toString()!==Z},Ce.isSame=function(ue,ge){var De=S(ue);return this.startOf(ge)<=De&&De<=this.endOf(ge)},Ce.isAfter=function(ue,ge){return S(ue)<this.startOf(ge)},Ce.isBefore=function(ue,ge){return this.endOf(ge)<S(ue)},Ce.$g=function(ue,ge,De){return N.u(ue)?this[ge]:this.set(De,ue)},Ce.unix=function(){return Math.floor(this.valueOf()/1e3)},Ce.valueOf=function(){return this.$d.getTime()},Ce.startOf=function(ue,ge){var De=this,He=!!N.u(ge)||ge,Oe=N.p(ue),it=function(he,Ne){var st=N.w(De.$u?Date.UTC(De.$y,Ne,he):new Date(De.$y,Ne,he),De);return He?st:st.endOf($)},Ze=function(he,Ne){return N.w(De.toDate()[he].apply(De.toDate("s"),(He?[0,0,0,0]:[23,59,59,999]).slice(Ne)),De)},we=this.$W,ye=this.$M,ze=this.$D,Ye="set"+(this.$u?"UTC":"");switch(Oe){case me:return He?it(1,0):it(31,11);case ne:return He?it(1,ye):it(0,ye+1);case B:var be=this.$locale().weekStart||0,Fe=(we<be?we+7:we)-be;return it(He?ze-Fe:ze+(6-Fe),ye);case $:case V:return Ze(Ye+"Hours",0);case U:return Ze(Ye+"Minutes",1);case v:return Ze(Ye+"Seconds",2);case E:return Ze(Ye+"Milliseconds",3);default:return this.clone()}},Ce.endOf=function(ue){return this.startOf(ue,!1)},Ce.$set=function(ue,ge){var De,He=N.p(ue),Oe="set"+(this.$u?"UTC":""),it=(De={},De[$]=Oe+"Date",De[V]=Oe+"Date",De[ne]=Oe+"Month",De[me]=Oe+"FullYear",De[U]=Oe+"Hours",De[v]=Oe+"Minutes",De[E]=Oe+"Seconds",De[p]=Oe+"Milliseconds",De)[He],Ze=He===$?this.$D+(ge-this.$W):ge;if(He===ne||He===me){var we=this.clone().set(V,1);we.$d[it](Ze),we.init(),this.$d=we.set(V,Math.min(this.$D,we.daysInMonth())).$d}else it&&this.$d[it](Ze);return this.init(),this},Ce.set=function(ue,ge){return this.clone().$set(ue,ge)},Ce.get=function(ue){return this[N.p(ue)]()},Ce.add=function(ue,ge){var De,He=this;ue=Number(ue);var Oe=N.p(ge),it=function(ye){var ze=S(He);return N.w(ze.date(ze.date()+Math.round(ye*ue)),He)};if(Oe===ne)return this.set(ne,this.$M+ue);if(Oe===me)return this.set(me,this.$y+ue);if(Oe===$)return it(1);if(Oe===B)return it(7);var Ze=(De={},De[v]=c,De[U]=l,De[E]=1e3,De)[Oe]||1,we=this.$d.getTime()+ue*Ze;return N.w(we,this)},Ce.subtract=function(ue,ge){return this.add(-1*ue,ge)},Ce.format=function(ue){var ge=this,De=this.$locale();if(!this.isValid())return De.invalidDate||Z;var He=ue||"YYYY-MM-DDTHH:mm:ssZ",Oe=N.z(this),it=this.$H,Ze=this.$m,we=this.$M,ye=De.weekdays,ze=De.months,be=function(Ne,st,R,A){return Ne&&(Ne[st]||Ne(ge,He))||R[st].slice(0,A)},Fe=function(Ne){return N.s(it%12||12,Ne,"0")},he=De.meridiem||function(Ne,st,R){var A=Ne<12?"AM":"PM";return R?A.toLowerCase():A};return He.replace(Q,function(Ne,st){return st||function(R){switch(R){case"YY":return String(ge.$y).slice(-2);case"YYYY":return N.s(ge.$y,4,"0");case"M":return we+1;case"MM":return N.s(we+1,2,"0");case"MMM":return be(De.monthsShort,we,ze,3);case"MMMM":return be(ze,we);case"D":return ge.$D;case"DD":return N.s(ge.$D,2,"0");case"d":return String(ge.$W);case"dd":return be(De.weekdaysMin,ge.$W,ye,2);case"ddd":return be(De.weekdaysShort,ge.$W,ye,3);case"dddd":return ye[ge.$W];case"H":return String(it);case"HH":return N.s(it,2,"0");case"h":return Fe(1);case"hh":return Fe(2);case"a":return he(it,Ze,!0);case"A":return he(it,Ze,!1);case"m":return String(Ze);case"mm":return N.s(Ze,2,"0");case"s":return String(ge.$s);case"ss":return N.s(ge.$s,2,"0");case"SSS":return N.s(ge.$ms,3,"0");case"Z":return Oe}return null}(Ne)||Oe.replace(":","")})},Ce.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Ce.diff=function(ue,ge,De){var He,Oe=this,it=N.p(ge),Ze=S(ue),we=(Ze.utcOffset()-this.utcOffset())*c,ye=this-Ze,ze=function(){return N.m(Oe,Ze)};switch(it){case me:He=ze()/12;break;case ne:He=ze();break;case te:He=ze()/3;break;case B:He=(ye-we)/6048e5;break;case $:He=(ye-we)/864e5;break;case U:He=ye/l;break;case v:He=ye/c;break;case E:He=ye/1e3;break;default:He=ye}return De?He:N.a(He)},Ce.daysInMonth=function(){return this.endOf(ne).$D},Ce.$locale=function(){return fe[this.$L]},Ce.locale=function(ue,ge){if(!ue)return this.$L;var De=this.clone(),He=I(ue,ge,!0);return He&&(De.$L=He),De},Ce.clone=function(){return N.w(this.$d,this)},Ce.toDate=function(){return new Date(this.valueOf())},Ce.toJSON=function(){return this.isValid()?this.toISOString():null},Ce.toISOString=function(){return this.$d.toISOString()},Ce.toString=function(){return this.$d.toUTCString()},J}(),X=W.prototype;return S.prototype=X,[["$ms",p],["$s",E],["$m",v],["$H",U],["$W",$],["$M",ne],["$y",me],["$D",V]].forEach(function(J){X[J[1]]=function(Ce){return this.$g(Ce,J[0],J[1])}}),S.extend=function(J,Ce){return J.$i||(J(Ce,W,S),J.$i=!0),S},S.locale=I,S.isDayjs=j,S.unix=function(J){return S(1e3*J)},S.en=fe[pe],S.Ls=fe,S.p={},S}()},5180:function(ee){ee.exports=function(){"use strict";var _={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"},c=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,p=/\d\d?/,E=/\d*[^-_:/,()\s\d]+/,v={},U=function(Z){return(Z=+Z)+(Z>68?1900:2e3)},$=function(Z){return function(le){this[Z]=+le}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(Z){(this.zone||(this.zone={})).offset=function(le){if(!le||"Z"===le)return 0;var Q=le.match(/([+-]|\d\d)/g),z=60*Q[1]+(+Q[2]||0);return 0===z?0:"+"===Q[0]?-z:z}(Z)}],ne=function(Z){var le=v[Z];return le&&(le.indexOf?le:le.s.concat(le.f))},te=function(Z,le){var Q,z=v.meridiem;if(z){for(var Y=1;Y<=24;Y+=1)if(Z.indexOf(z(Y,0,le))>-1){Q=Y>12;break}}else Q=Z===(le?"pm":"PM");return Q},me={A:[E,function(Z){this.afternoon=te(Z,!1)}],a:[E,function(Z){this.afternoon=te(Z,!0)}],S:[/\d/,function(Z){this.milliseconds=100*+Z}],SS:[l,function(Z){this.milliseconds=10*+Z}],SSS:[/\d{3}/,function(Z){this.milliseconds=+Z}],s:[p,$("seconds")],ss:[p,$("seconds")],m:[p,$("minutes")],mm:[p,$("minutes")],H:[p,$("hours")],h:[p,$("hours")],HH:[p,$("hours")],hh:[p,$("hours")],D:[p,$("day")],DD:[l,$("day")],Do:[E,function(Z){var le=v.ordinal,Q=Z.match(/\d+/);if(this.day=Q[0],le)for(var z=1;z<=31;z+=1)le(z).replace(/\[|\]/g,"")===Z&&(this.day=z)}],M:[p,$("month")],MM:[l,$("month")],MMM:[E,function(Z){var le=ne("months"),Q=(ne("monthsShort")||le.map(function(z){return z.slice(0,3)})).indexOf(Z)+1;if(Q<1)throw new Error;this.month=Q%12||Q}],MMMM:[E,function(Z){var le=ne("months").indexOf(Z)+1;if(le<1)throw new Error;this.month=le%12||le}],Y:[/[+-]?\d+/,$("year")],YY:[l,function(Z){this.year=U(Z)}],YYYY:[/\d{4}/,$("year")],Z:B,ZZ:B};return function(Z,le,Q){Q.p.customParseFormat=!0,Z&&Z.parseTwoDigitYear&&(U=Z.parseTwoDigitYear);var z=le.prototype,Y=z.parse;z.parse=function(ve){var pe=ve.date,fe=ve.utc,w=ve.args;this.$u=fe;var j=w[1];if("string"==typeof j){var I=!0===w[2],S=!0===w[3],N=I||S,W=w[2];S&&(W=w[2]),v=this.$locale(),!I&&W&&(v=Q.Ls[W]),this.$d=function(ue,ge,De){try{if(["x","X"].indexOf(ge)>-1)return new Date(("X"===ge?1e3:1)*ue);var He=function V(Z){var Q;Q=v&&v.formats;for(var z=(Z=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,S,N){var W=N&&N.toUpperCase();return S||Q[N]||_[N]||Q[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(X,J,Ce){return J||Ce.slice(1)})})).match(c),Y=z.length,ve=0;ve<Y;ve+=1){var pe=z[ve],fe=me[pe],j=fe&&fe[1];z[ve]=j?{regex:fe&&fe[0],parser:j}:pe.replace(/^\[|\]$/g,"")}return function(I){for(var S={},N=0,W=0;N<Y;N+=1){var X=z[N];if("string"==typeof X)W+=X.length;else{var J=X.regex,Ce=X.parser,ue=I.slice(W),ge=J.exec(ue)[0];Ce.call(S,ge),I=I.replace(ge,"")}}return function(De){var He=De.afternoon;if(void 0!==He){var Oe=De.hours;He?Oe<12&&(De.hours+=12):12===Oe&&(De.hours=0),delete De.afternoon}}(S),S}}(ge)(ue),Oe=He.year,it=He.month,Ze=He.day,we=He.hours,ye=He.minutes,ze=He.seconds,Ye=He.milliseconds,be=He.zone,Fe=new Date,he=Ze||(Oe||it?1:Fe.getDate()),Ne=Oe||Fe.getFullYear(),st=0;Oe&&!it||(st=it>0?it-1:Fe.getMonth());var R=we||0,A=ye||0,L=ze||0,G=Ye||0;return be?new Date(Date.UTC(Ne,st,he,R,A,L,G+60*be.offset*1e3)):De?new Date(Date.UTC(Ne,st,he,R,A,L,G)):new Date(Ne,st,he,R,A,L,G)}catch{return new Date("")}}(pe,j,fe),this.init(),W&&!0!==W&&(this.$L=this.locale(W).$L),N&&pe!=this.format(j)&&(this.$d=new Date("")),v={}}else if(j instanceof Array)for(var X=j.length,J=1;J<=X;J+=1){w[1]=j[J-1];var Ce=Q.apply(this,w);if(Ce.isValid()){this.$d=Ce.$d,this.$L=Ce.$L,this.init();break}J===X&&(this.$d=new Date(""))}else Y.call(this,ve)}}}()},362:ee=>{"use strict";ee.exports=function _(c,l){if(c===l)return!0;if(c&&l&&"object"==typeof c&&"object"==typeof l){if(c.constructor!==l.constructor)return!1;var p,E,v;if(Array.isArray(c)){if((p=c.length)!=l.length)return!1;for(E=p;0!=E--;)if(!_(c[E],l[E]))return!1;return!0}if(c.constructor===RegExp)return c.source===l.source&&c.flags===l.flags;if(c.valueOf!==Object.prototype.valueOf)return c.valueOf()===l.valueOf();if(c.toString!==Object.prototype.toString)return c.toString()===l.toString();if((p=(v=Object.keys(c)).length)!==Object.keys(l).length)return!1;for(E=p;0!=E--;)if(!Object.prototype.hasOwnProperty.call(l,v[E]))return!1;for(E=p;0!=E--;){var U=v[E];if(!_(c[U],l[U]))return!1}return!0}return c!=c&&l!=l}},7783:ee=>{ee.exports=function _(c,l,p){function E($,B){if(!l[$]){if(!c[$]){if(v)return v($,!0);throw new Error("Cannot find module '"+$+"'")}B=l[$]={exports:{}},c[$][0].call(B.exports,function(te){return E(c[$][1][te]||te)},B,B.exports,_,c,l,p)}return l[$].exports}for(var v=void 0,U=0;U<p.length;U++)E(p[U]);return E}({1:[function(_,c,l){(function(p,E,v,U,$,B,ne,te,me){"use strict";var V=_("crypto");function Z(fe,w){var j;return void 0===(j="passthrough"!==(w=z(fe,w)).algorithm?V.createHash(w.algorithm):new pe).write&&(j.write=j.update,j.end=j.update),ve(w,j).dispatch(fe),j.update||j.end(""),j.digest?j.digest("buffer"===w.encoding?void 0:w.encoding):(fe=j.read(),"buffer"!==w.encoding?fe.toString(w.encoding):fe)}(l=c.exports=Z).sha1=function(fe){return Z(fe)},l.keys=function(fe){return Z(fe,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},l.MD5=function(fe){return Z(fe,{algorithm:"md5",encoding:"hex"})},l.keysMD5=function(fe){return Z(fe,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var le=V.getHashes?V.getHashes().slice():["sha1","md5"],Q=(le.push("passthrough"),["buffer","hex","binary","base64"]);function z(fe,w){var j={};if(j.algorithm=(w=w||{}).algorithm||"sha1",j.encoding=w.encoding||"hex",j.excludeValues=!!w.excludeValues,j.algorithm=j.algorithm.toLowerCase(),j.encoding=j.encoding.toLowerCase(),j.ignoreUnknown=!0===w.ignoreUnknown,j.respectType=!1!==w.respectType,j.respectFunctionNames=!1!==w.respectFunctionNames,j.respectFunctionProperties=!1!==w.respectFunctionProperties,j.unorderedArrays=!0===w.unorderedArrays,j.unorderedSets=!1!==w.unorderedSets,j.unorderedObjects=!1!==w.unorderedObjects,j.replacer=w.replacer||void 0,j.excludeKeys=w.excludeKeys||void 0,void 0===fe)throw new Error("Object argument required.");for(var I=0;I<le.length;++I)le[I].toLowerCase()===j.algorithm.toLowerCase()&&(j.algorithm=le[I]);if(-1===le.indexOf(j.algorithm))throw new Error('Algorithm "'+j.algorithm+'" not supported. supported values: '+le.join(", "));if(-1===Q.indexOf(j.encoding)&&"passthrough"!==j.algorithm)throw new Error('Encoding "'+j.encoding+'" not supported. supported values: '+Q.join(", "));return j}function Y(fe){if("function"==typeof fe)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(fe))}function ve(fe,w,j){function I(S){return w.update?w.update(S,"utf8"):w.write(S,"utf8")}return j=j||[],{dispatch:function(S){return this["_"+(null===(S=fe.replacer?fe.replacer(S):S)?"null":typeof S)](S)},_object:function(S){var N,W=Object.prototype.toString.call(S),X=/\[object (.*)\]/i.exec(W);if(X=(X=X?X[1]:"unknown:["+W+"]").toLowerCase(),0<=(W=j.indexOf(S)))return this.dispatch("[CIRCULAR:"+W+"]");if(j.push(S),void 0!==v&&v.isBuffer&&v.isBuffer(S))return I("buffer:"),I(S);if("object"===X||"function"===X||"asyncfunction"===X)return W=Object.keys(S),fe.unorderedObjects&&(W=W.sort()),!1===fe.respectType||Y(S)||W.splice(0,0,"prototype","__proto__","constructor"),fe.excludeKeys&&(W=W.filter(function(J){return!fe.excludeKeys(J)})),I("object:"+W.length+":"),N=this,W.forEach(function(J){N.dispatch(J),I(":"),fe.excludeValues||N.dispatch(S[J]),I(",")});if(!this["_"+X]){if(fe.ignoreUnknown)return I("["+X+"]");throw new Error('Unknown object type "'+X+'"')}this["_"+X](S)},_array:function(S,J){J=void 0!==J?J:!1!==fe.unorderedArrays;var W=this;if(I("array:"+S.length+":"),!J||S.length<=1)return S.forEach(function(Ce){return W.dispatch(Ce)});var X=[];return J=S.map(function(Ce){var ue=new pe,ge=j.slice();return ve(fe,ue,ge).dispatch(Ce),X=X.concat(ge.slice(j.length)),ue.read().toString()}),j=j.concat(X),J.sort(),this._array(J,!1)},_date:function(S){return I("date:"+S.toJSON())},_symbol:function(S){return I("symbol:"+S.toString())},_error:function(S){return I("error:"+S.toString())},_boolean:function(S){return I("bool:"+S.toString())},_string:function(S){I("string:"+S.length+":"),I(S.toString())},_function:function(S){I("fn:"),Y(S)?this.dispatch("[native]"):this.dispatch(S.toString()),!1!==fe.respectFunctionNames&&this.dispatch("function-name:"+String(S.name)),fe.respectFunctionProperties&&this._object(S)},_number:function(S){return I("number:"+S.toString())},_xml:function(S){return I("xml:"+S.toString())},_null:function(){return I("Null")},_undefined:function(){return I("Undefined")},_regexp:function(S){return I("regex:"+S.toString())},_uint8array:function(S){return I("uint8array:"),this.dispatch(Array.prototype.slice.call(S))},_uint8clampedarray:function(S){return I("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(S))},_int8array:function(S){return I("int8array:"),this.dispatch(Array.prototype.slice.call(S))},_uint16array:function(S){return I("uint16array:"),this.dispatch(Array.prototype.slice.call(S))},_int16array:function(S){return I("int16array:"),this.dispatch(Array.prototype.slice.call(S))},_uint32array:function(S){return I("uint32array:"),this.dispatch(Array.prototype.slice.call(S))},_int32array:function(S){return I("int32array:"),this.dispatch(Array.prototype.slice.call(S))},_float32array:function(S){return I("float32array:"),this.dispatch(Array.prototype.slice.call(S))},_float64array:function(S){return I("float64array:"),this.dispatch(Array.prototype.slice.call(S))},_arraybuffer:function(S){return I("arraybuffer:"),this.dispatch(new Uint8Array(S))},_url:function(S){return I("url:"+S.toString())},_map:function(S){return I("map:"),S=Array.from(S),this._array(S,!1!==fe.unorderedSets)},_set:function(S){return I("set:"),S=Array.from(S),this._array(S,!1!==fe.unorderedSets)},_file:function(S){return I("file:"),this.dispatch([S.name,S.size,S.type,S.lastModfied])},_blob:function(){if(fe.ignoreUnknown)return I("[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 I("domwindow")},_bigint:function(S){return I("bigint:"+S.toString())},_process:function(){return I("process")},_timer:function(){return I("timer")},_pipe:function(){return I("pipe")},_tcp:function(){return I("tcp")},_udp:function(){return I("udp")},_tty:function(){return I("tty")},_statwatcher:function(){return I("statwatcher")},_securecontext:function(){return I("securecontext")},_connection:function(){return I("connection")},_zlib:function(){return I("zlib")},_context:function(){return I("context")},_nodescript:function(){return I("nodescript")},_httpparser:function(){return I("httpparser")},_dataview:function(){return I("dataview")},_signal:function(){return I("signal")},_fsevent:function(){return I("fsevent")},_tlswrap:function(){return I("tlswrap")}}}function pe(){return{buf:"",write:function(fe){this.buf+=fe},end:function(fe){this.buf+=fe},read:function(){return this.buf}}}l.writeToStream=function(fe,w,j){return void 0===j&&(j=w,w={}),ve(w=z(fe,w),j).dispatch(fe)}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(_,c,l){(function(p,E,v,U,$,B,ne,te,me){!function(V){"use strict";var Z=typeof Uint8Array<"u"?Uint8Array:Array;function w(j){return 43===(j=j.charCodeAt(0))||45===j?62:47===j||95===j?63:j<48?-1:j<58?j-48+26+26:j<91?j-65:j<123?j-97+26:void 0}V.toByteArray=function(j){var I,S;if(0<j.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var N="="===j.charAt((N=j.length)-2)?2:"="===j.charAt(N-1)?1:0,W=new Z(3*j.length/4-N),X=0<N?j.length-4:j.length,J=0;function Ce(ue){W[J++]=ue}for(I=0;I<X;I+=4,0)Ce((16711680&(S=w(j.charAt(I))<<18|w(j.charAt(I+1))<<12|w(j.charAt(I+2))<<6|w(j.charAt(I+3))))>>16),Ce((65280&S)>>8),Ce(255&S);return 2==N?Ce(255&(S=w(j.charAt(I))<<2|w(j.charAt(I+1))>>4)):1==N&&(Ce((S=w(j.charAt(I))<<10|w(j.charAt(I+1))<<4|w(j.charAt(I+2))>>2)>>8&255),Ce(255&S)),W},V.fromByteArray=function(j){var I,S,N,W,X=j.length%3,J="";function Ce(ue){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(ue)}for(I=0,N=j.length-X;I<N;I+=3)J+=Ce((W=S=(j[I]<<16)+(j[I+1]<<8)+j[I+2])>>18&63)+Ce(W>>12&63)+Ce(W>>6&63)+Ce(63&W);switch(X){case 1:J=(J+=Ce((S=j[j.length-1])>>2))+Ce(S<<4&63)+"==";break;case 2:J=(J=(J+=Ce((S=(j[j.length-2]<<8)+j[j.length-1])>>10))+Ce(S>>4&63))+Ce(S<<2&63)+"="}return J}}(void 0===l?this.base64js={}:l)}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,le,U,$,B,ne,te,me){var V=_("base64-js"),Z=_("ieee754");function le(he,Ne,st){if(!(this instanceof le))return new le(he,Ne,st);var R,A,L,G,K=typeof he;if("base64"===Ne&&"string"==K)for(he=(G=he).trim?G.trim():G.replace(/^\s+|\s+$/g,"");he.length%4!=0;)he+="=";if("number"==K)R=De(he);else if("string"==K)R=le.byteLength(he,Ne);else{if("object"!=K)throw new Error("First argument needs to be a number, array or string.");R=De(he.length)}if(le._useTypedArrays?A=le._augment(new Uint8Array(R)):((A=this).length=R,A._isBuffer=!0),le._useTypedArrays&&"number"==typeof he.byteLength)A._set(he);else if(He(G=he)||le.isBuffer(G)||G&&"object"==typeof G&&"number"==typeof G.length)for(L=0;L<R;L++)A[L]=le.isBuffer(he)?he.readUInt8(L):he[L];else if("string"==K)A.write(he,0,Ne);else if("number"==K&&!le._useTypedArrays&&!st)for(L=0;L<R;L++)A[L]=0;return A}function ve(he,Ne,st,L){var A;if(L||(Fe("boolean"==typeof st,"missing or invalid endian"),Fe(null!=Ne,"missing offset"),Fe(Ne+1<he.length,"Trying to read beyond buffer length")),!((L=he.length)<=Ne))return st?(A=he[Ne],Ne+1<L&&(A|=he[Ne+1]<<8)):(A=he[Ne]<<8,Ne+1<L&&(A|=he[Ne+1])),A}function pe(he,Ne,st,L){var A;if(L||(Fe("boolean"==typeof st,"missing or invalid endian"),Fe(null!=Ne,"missing offset"),Fe(Ne+3<he.length,"Trying to read beyond buffer length")),!((L=he.length)<=Ne))return st?(Ne+2<L&&(A=he[Ne+2]<<16),Ne+1<L&&(A|=he[Ne+1]<<8),A|=he[Ne],Ne+3<L&&(A+=he[Ne+3]<<24>>>0)):(Ne+1<L&&(A=he[Ne+1]<<16),Ne+2<L&&(A|=he[Ne+2]<<8),Ne+3<L&&(A|=he[Ne+3]),A+=he[Ne]<<24>>>0),A}function fe(he,Ne,st,R){if(R||(Fe("boolean"==typeof st,"missing or invalid endian"),Fe(null!=Ne,"missing offset"),Fe(Ne+1<he.length,"Trying to read beyond buffer length")),!(he.length<=Ne))return 32768&(R=ve(he,Ne,st,!0))?-1*(65535-R+1):R}function w(he,Ne,st,R){if(R||(Fe("boolean"==typeof st,"missing or invalid endian"),Fe(null!=Ne,"missing offset"),Fe(Ne+3<he.length,"Trying to read beyond buffer length")),!(he.length<=Ne))return 2147483648&(R=pe(he,Ne,st,!0))?-1*(4294967295-R+1):R}function j(he,Ne,st,R){return R||(Fe("boolean"==typeof st,"missing or invalid endian"),Fe(Ne+3<he.length,"Trying to read beyond buffer length")),Z.read(he,Ne,st,23,4)}function I(he,Ne,st,R){return R||(Fe("boolean"==typeof st,"missing or invalid endian"),Fe(Ne+7<he.length,"Trying to read beyond buffer length")),Z.read(he,Ne,st,52,8)}function S(he,Ne,st,R,A){if(A||(Fe(null!=Ne,"missing value"),Fe("boolean"==typeof R,"missing or invalid endian"),Fe(null!=st,"missing offset"),Fe(st+1<he.length,"trying to write beyond buffer length"),ze(Ne,65535)),!((A=he.length)<=st))for(var L=0,G=Math.min(A-st,2);L<G;L++)he[st+L]=(Ne&255<<8*(R?L:1-L))>>>8*(R?L:1-L)}function N(he,Ne,st,R,A){if(A||(Fe(null!=Ne,"missing value"),Fe("boolean"==typeof R,"missing or invalid endian"),Fe(null!=st,"missing offset"),Fe(st+3<he.length,"trying to write beyond buffer length"),ze(Ne,4294967295)),!((A=he.length)<=st))for(var L=0,G=Math.min(A-st,4);L<G;L++)he[st+L]=Ne>>>8*(R?L:3-L)&255}function W(he,Ne,st,R,A){A||(Fe(null!=Ne,"missing value"),Fe("boolean"==typeof R,"missing or invalid endian"),Fe(null!=st,"missing offset"),Fe(st+1<he.length,"Trying to write beyond buffer length"),Ye(Ne,32767,-32768)),he.length<=st||S(he,0<=Ne?Ne:65535+Ne+1,st,R,A)}function X(he,Ne,st,R,A){A||(Fe(null!=Ne,"missing value"),Fe("boolean"==typeof R,"missing or invalid endian"),Fe(null!=st,"missing offset"),Fe(st+3<he.length,"Trying to write beyond buffer length"),Ye(Ne,2147483647,-2147483648)),he.length<=st||N(he,0<=Ne?Ne:4294967295+Ne+1,st,R,A)}function J(he,Ne,st,R,A){A||(Fe(null!=Ne,"missing value"),Fe("boolean"==typeof R,"missing or invalid endian"),Fe(null!=st,"missing offset"),Fe(st+3<he.length,"Trying to write beyond buffer length"),be(Ne,34028234663852886e22,-34028234663852886e22)),he.length<=st||Z.write(he,Ne,st,R,23,4)}function Ce(he,Ne,st,R,A){A||(Fe(null!=Ne,"missing value"),Fe("boolean"==typeof R,"missing or invalid endian"),Fe(null!=st,"missing offset"),Fe(st+7<he.length,"Trying to write beyond buffer length"),be(Ne,17976931348623157e292,-17976931348623157e292)),he.length<=st||Z.write(he,Ne,st,R,52,8)}l.Buffer=le,l.SlowBuffer=le,l.INSPECT_MAX_BYTES=50,le.poolSize=8192,le._useTypedArrays=function(){try{var he=new ArrayBuffer(0),Ne=new Uint8Array(he);return Ne.foo=function(){return 42},42===Ne.foo()&&"function"==typeof Ne.subarray}catch{return!1}}(),le.isEncoding=function(he){switch(String(he).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}},le.isBuffer=function(he){return!(null==he||!he._isBuffer)},le.byteLength=function(he,Ne){var st;switch(he+="",Ne||"utf8"){case"hex":st=he.length/2;break;case"utf8":case"utf-8":st=it(he).length;break;case"ascii":case"binary":case"raw":st=he.length;break;case"base64":st=Ze(he).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":st=2*he.length;break;default:throw new Error("Unknown encoding")}return st},le.concat=function(he,Ne){if(Fe(He(he),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===he.length)return new le(0);if(1===he.length)return he[0];if("number"!=typeof Ne)for(A=Ne=0;A<he.length;A++)Ne+=he[A].length;for(var st=new le(Ne),R=0,A=0;A<he.length;A++){var L=he[A];L.copy(st,R),R+=L.length}return st},le.prototype.write=function(he,Ne,st,R){isFinite(Ne)?isFinite(st)||(R=st,st=void 0):(ce=R,R=Ne,Ne=st,st=ce),Ne=Number(Ne)||0;var A,L,G,K,ce=this.length-Ne;switch((!st||ce<(st=Number(st)))&&(st=ce),R=String(R||"utf8").toLowerCase()){case"hex":A=function(Be,qe,ut,je){ut=Number(ut)||0;var mt=Be.length-ut;(!je||mt<(je=Number(je)))&&(je=mt),Fe((mt=qe.length)%2==0,"Invalid hex string"),mt/2<je&&(je=mt/2);for(var Nt=0;Nt<je;Nt++){var zt=parseInt(qe.substr(2*Nt,2),16);Fe(!isNaN(zt),"Invalid hex string"),Be[ut+Nt]=zt}return le._charsWritten=2*Nt,Nt}(this,he,Ne,st);break;case"utf8":case"utf-8":L=this,G=Ne,K=st,A=le._charsWritten=we(it(he),L,G,K);break;case"ascii":case"binary":A=function Q(he,Ne,st,R){return le._charsWritten=we(function(A){for(var L=[],G=0;G<A.length;G++)L.push(255&A.charCodeAt(G));return L}(Ne),he,st,R)}(this,he,Ne,st);break;case"base64":L=this,G=Ne,K=st,A=le._charsWritten=we(Ze(he),L,G,K);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":A=function z(he,Ne,st,R){return le._charsWritten=we(function(A){for(var L,G,K=[],ce=0;ce<A.length;ce++)L=(G=A.charCodeAt(ce))>>8,K.push(G%=256),K.push(L);return K}(Ne),he,st,R)}(this,he,Ne,st);break;default:throw new Error("Unknown encoding")}return A},le.prototype.toString=function(he,Ne,st){var R,A,L,G,K=this;if(he=String(he||"utf8").toLowerCase(),Ne=Number(Ne)||0,(st=void 0!==st?Number(st):K.length)===Ne)return"";switch(he){case"hex":R=function(ce,Be,qe){var ut=ce.length;(!Be||Be<0)&&(Be=0),(!qe||qe<0||ut<qe)&&(qe=ut);for(var je="",mt=Be;mt<qe;mt++)je+=Oe(ce[mt]);return je}(K,Ne,st);break;case"utf8":case"utf-8":R=function(ce,Be,qe){var ut="",je="";qe=Math.min(ce.length,qe);for(var mt=Be;mt<qe;mt++)ce[mt]<=127?(ut+=ye(je)+String.fromCharCode(ce[mt]),je=""):je+="%"+ce[mt].toString(16);return ut+ye(je)}(K,Ne,st);break;case"ascii":case"binary":R=function Y(he,Ne,st){var R="";st=Math.min(he.length,st);for(var A=Ne;A<st;A++)R+=String.fromCharCode(he[A]);return R}(K,Ne,st);break;case"base64":A=K,G=st,R=0===(L=Ne)&&G===A.length?V.fromByteArray(A):V.fromByteArray(A.slice(L,G));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":R=function(ce,Be,qe){for(var ut=ce.slice(Be,qe),je="",mt=0;mt<ut.length;mt+=2)je+=String.fromCharCode(ut[mt]+256*ut[mt+1]);return je}(K,Ne,st);break;default:throw new Error("Unknown encoding")}return R},le.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},le.prototype.copy=function(he,Ne,st,R){if(Ne=Ne||0,(R=R||0===R?R:this.length)!==(st=st||0)&&0!==he.length&&0!==this.length){Fe(st<=R,"sourceEnd < sourceStart"),Fe(0<=Ne&&Ne<he.length,"targetStart out of bounds"),Fe(0<=st&&st<this.length,"sourceStart out of bounds"),Fe(0<=R&&R<=this.length,"sourceEnd out of bounds"),R>this.length&&(R=this.length);var A=(R=he.length-Ne<R-st?he.length-Ne+st:R)-st;if(A<100||!le._useTypedArrays)for(var L=0;L<A;L++)he[L+Ne]=this[L+st];else he._set(this.subarray(st,st+A),Ne)}},le.prototype.slice=function(he,Ne){var st=this.length;if(he=ge(he,st,0),Ne=ge(Ne,st,st),le._useTypedArrays)return le._augment(this.subarray(he,Ne));for(var R=Ne-he,A=new le(R,void 0,!0),L=0;L<R;L++)A[L]=this[L+he];return A},le.prototype.get=function(he){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(he)},le.prototype.set=function(he,Ne){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(he,Ne)},le.prototype.readUInt8=function(he,Ne){if(Ne||(Fe(null!=he,"missing offset"),Fe(he<this.length,"Trying to read beyond buffer length")),!(he>=this.length))return this[he]},le.prototype.readUInt16LE=function(he,Ne){return ve(this,he,!0,Ne)},le.prototype.readUInt16BE=function(he,Ne){return ve(this,he,!1,Ne)},le.prototype.readUInt32LE=function(he,Ne){return pe(this,he,!0,Ne)},le.prototype.readUInt32BE=function(he,Ne){return pe(this,he,!1,Ne)},le.prototype.readInt8=function(he,Ne){if(Ne||(Fe(null!=he,"missing offset"),Fe(he<this.length,"Trying to read beyond buffer length")),!(he>=this.length))return 128&this[he]?-1*(255-this[he]+1):this[he]},le.prototype.readInt16LE=function(he,Ne){return fe(this,he,!0,Ne)},le.prototype.readInt16BE=function(he,Ne){return fe(this,he,!1,Ne)},le.prototype.readInt32LE=function(he,Ne){return w(this,he,!0,Ne)},le.prototype.readInt32BE=function(he,Ne){return w(this,he,!1,Ne)},le.prototype.readFloatLE=function(he,Ne){return j(this,he,!0,Ne)},le.prototype.readFloatBE=function(he,Ne){return j(this,he,!1,Ne)},le.prototype.readDoubleLE=function(he,Ne){return I(this,he,!0,Ne)},le.prototype.readDoubleBE=function(he,Ne){return I(this,he,!1,Ne)},le.prototype.writeUInt8=function(he,Ne,st){st||(Fe(null!=he,"missing value"),Fe(null!=Ne,"missing offset"),Fe(Ne<this.length,"trying to write beyond buffer length"),ze(he,255)),Ne>=this.length||(this[Ne]=he)},le.prototype.writeUInt16LE=function(he,Ne,st){S(this,he,Ne,!0,st)},le.prototype.writeUInt16BE=function(he,Ne,st){S(this,he,Ne,!1,st)},le.prototype.writeUInt32LE=function(he,Ne,st){N(this,he,Ne,!0,st)},le.prototype.writeUInt32BE=function(he,Ne,st){N(this,he,Ne,!1,st)},le.prototype.writeInt8=function(he,Ne,st){st||(Fe(null!=he,"missing value"),Fe(null!=Ne,"missing offset"),Fe(Ne<this.length,"Trying to write beyond buffer length"),Ye(he,127,-128)),Ne>=this.length||this.writeUInt8(0<=he?he:255+he+1,Ne,st)},le.prototype.writeInt16LE=function(he,Ne,st){W(this,he,Ne,!0,st)},le.prototype.writeInt16BE=function(he,Ne,st){W(this,he,Ne,!1,st)},le.prototype.writeInt32LE=function(he,Ne,st){X(this,he,Ne,!0,st)},le.prototype.writeInt32BE=function(he,Ne,st){X(this,he,Ne,!1,st)},le.prototype.writeFloatLE=function(he,Ne,st){J(this,he,Ne,!0,st)},le.prototype.writeFloatBE=function(he,Ne,st){J(this,he,Ne,!1,st)},le.prototype.writeDoubleLE=function(he,Ne,st){Ce(this,he,Ne,!0,st)},le.prototype.writeDoubleBE=function(he,Ne,st){Ce(this,he,Ne,!1,st)},le.prototype.fill=function(he,Ne,st){if(Ne=Ne||0,st=st||this.length,Fe("number"==typeof(he="string"==typeof(he=he||0)?he.charCodeAt(0):he)&&!isNaN(he),"value is not a number"),Fe(Ne<=st,"end < start"),st!==Ne&&0!==this.length){Fe(0<=Ne&&Ne<this.length,"start out of bounds"),Fe(0<=st&&st<=this.length,"end out of bounds");for(var R=Ne;R<st;R++)this[R]=he}},le.prototype.inspect=function(){for(var he=[],Ne=this.length,st=0;st<Ne;st++)if(he[st]=Oe(this[st]),st===l.INSPECT_MAX_BYTES){he[st+1]="...";break}return"<Buffer "+he.join(" ")+">"},le.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(le._useTypedArrays)return new le(this).buffer;for(var he=new Uint8Array(this.length),Ne=0,st=he.length;Ne<st;Ne+=1)he[Ne]=this[Ne];return he.buffer};var ue=le.prototype;function ge(he,Ne,st){return"number"!=typeof he?st:Ne<=(he=~~he)?Ne:0<=he||0<=(he+=Ne)?he:0}function De(he){return(he=~~Math.ceil(+he))<0?0:he}function He(he){return(Array.isArray||function(Ne){return"[object Array]"===Object.prototype.toString.call(Ne)})(he)}function Oe(he){return he<16?"0"+he.toString(16):he.toString(16)}function it(he){for(var Ne=[],st=0;st<he.length;st++){var R=he.charCodeAt(st);if(R<=127)Ne.push(he.charCodeAt(st));else for(var A=st,L=(55296<=R&&R<=57343&&st++,encodeURIComponent(he.slice(A,st+1)).substr(1).split("%")),G=0;G<L.length;G++)Ne.push(parseInt(L[G],16))}return Ne}function Ze(he){return V.toByteArray(he)}function we(he,Ne,st,R){for(var A=0;A<R&&!(A+st>=Ne.length||A>=he.length);A++)Ne[A+st]=he[A];return A}function ye(he){try{return decodeURIComponent(he)}catch{return"\ufffd"}}function ze(he,Ne){Fe("number"==typeof he,"cannot write a non-number as a number"),Fe(0<=he,"specified a negative value for writing an unsigned value"),Fe(he<=Ne,"value is larger than maximum value for type"),Fe(Math.floor(he)===he,"value has a fractional component")}function Ye(he,Ne,st){Fe("number"==typeof he,"cannot write a non-number as a number"),Fe(he<=Ne,"value larger than maximum allowed value"),Fe(st<=he,"value smaller than minimum allowed value"),Fe(Math.floor(he)===he,"value has a fractional component")}function be(he,Ne,st){Fe("number"==typeof he,"cannot write a non-number as a number"),Fe(he<=Ne,"value larger than maximum allowed value"),Fe(st<=he,"value smaller than minimum allowed value")}function Fe(he,Ne){if(!he)throw new Error(Ne||"Failed assertion")}le._augment=function(he){return he._isBuffer=!0,he._get=he.get,he._set=he.set,he.get=ue.get,he.set=ue.set,he.write=ue.write,he.toString=ue.toString,he.toLocaleString=ue.toString,he.toJSON=ue.toJSON,he.copy=ue.copy,he.slice=ue.slice,he.readUInt8=ue.readUInt8,he.readUInt16LE=ue.readUInt16LE,he.readUInt16BE=ue.readUInt16BE,he.readUInt32LE=ue.readUInt32LE,he.readUInt32BE=ue.readUInt32BE,he.readInt8=ue.readInt8,he.readInt16LE=ue.readInt16LE,he.readInt16BE=ue.readInt16BE,he.readInt32LE=ue.readInt32LE,he.readInt32BE=ue.readInt32BE,he.readFloatLE=ue.readFloatLE,he.readFloatBE=ue.readFloatBE,he.readDoubleLE=ue.readDoubleLE,he.readDoubleBE=ue.readDoubleBE,he.writeUInt8=ue.writeUInt8,he.writeUInt16LE=ue.writeUInt16LE,he.writeUInt16BE=ue.writeUInt16BE,he.writeUInt32LE=ue.writeUInt32LE,he.writeUInt32BE=ue.writeUInt32BE,he.writeInt8=ue.writeInt8,he.writeInt16LE=ue.writeInt16LE,he.writeInt16BE=ue.writeInt16BE,he.writeInt32LE=ue.writeInt32LE,he.writeInt32BE=ue.writeInt32BE,he.writeFloatLE=ue.writeFloatLE,he.writeFloatBE=ue.writeFloatBE,he.writeDoubleLE=ue.writeDoubleLE,he.writeDoubleBE=ue.writeDoubleBE,he.fill=ue.fill,he.inspect=ue.inspect,he.toArrayBuffer=ue.toArrayBuffer,he}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,V,U,$,B,ne,te,me){V=_("buffer").Buffer;var le=new V(4);le.fill(0),c.exports={hash:function(Q,z,Y,ve){for(var pe=z(function(S,N){S.length%4!=0&&(S=V.concat([S,le],S.length+(4-S.length%4)));for(var X=[],J=N?S.readInt32BE:S.readInt32LE,Ce=0;Ce<S.length;Ce+=4)X.push(J.call(S,Ce));return X}(Q=V.isBuffer(Q)?Q:new V(Q),ve),8*Q.length),fe=(z=ve,new V(Y)),w=z?fe.writeInt32BE:fe.writeInt32LE,j=0;j<pe.length;j++)w.call(fe,pe[j],4*j,!0);return fe}}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,V,U,$,B,ne,te,me){V=_("buffer").Buffer;var Z=_("./sha"),le=_("./sha256"),Q=_("./rng"),z={sha1:Z,sha256:le,md5:_("./md5")},Y=64,ve=new V(Y);function pe(S,N){var W=z[S=S||"sha1"],X=[];return W||fe("algorithm:",S,"is not yet supported"),{update:function(J){return V.isBuffer(J)||(J=new V(J)),X.push(J),this},digest:function(J){var Ce=V.concat(X);return Ce=N?function(ue,ge,De){V.isBuffer(ge)||(ge=new V(ge)),V.isBuffer(De)||(De=new V(De)),ge.length>Y?ge=ue(ge):ge.length<Y&&(ge=V.concat([ge,ve],Y));for(var He=new V(Y),Oe=new V(Y),it=0;it<Y;it++)He[it]=54^ge[it],Oe[it]=92^ge[it];return De=ue(V.concat([He,De])),ue(V.concat([Oe,De]))}(W,N,Ce):W(Ce),X=null,J?Ce.toString(J):Ce}}}function fe(){var S=[].slice.call(arguments).join(" ");throw new Error([S,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}ve.fill(0),l.createHash=function(S){return pe(S)},l.createHmac=pe,l.randomBytes=function(S,N){if(!N||!N.call)return new V(Q(S));try{N.call(this,void 0,new V(Q(S)))}catch(W){N(W)}};var w,j=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],I=function(S){l[S]=function(){fe("sorry,",S,"is not implemented yet")}};for(w in j)I(j[w])}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,v,U,$,B,ne,te,me){var V=_("./helpers");function Z(fe,w){fe[w>>5]|=128<<w%32,fe[14+(w+64>>>9<<4)]=w;for(var j=1732584193,I=-271733879,S=-1732584194,N=271733878,W=0;W<fe.length;W+=16){var X=j,J=I,Ce=S,ue=N;j=Q(j,I,S,N,fe[W+0],7,-680876936),N=Q(N,j,I,S,fe[W+1],12,-389564586),S=Q(S,N,j,I,fe[W+2],17,606105819),I=Q(I,S,N,j,fe[W+3],22,-1044525330),j=Q(j,I,S,N,fe[W+4],7,-176418897),N=Q(N,j,I,S,fe[W+5],12,1200080426),S=Q(S,N,j,I,fe[W+6],17,-1473231341),I=Q(I,S,N,j,fe[W+7],22,-45705983),j=Q(j,I,S,N,fe[W+8],7,1770035416),N=Q(N,j,I,S,fe[W+9],12,-1958414417),S=Q(S,N,j,I,fe[W+10],17,-42063),I=Q(I,S,N,j,fe[W+11],22,-1990404162),j=Q(j,I,S,N,fe[W+12],7,1804603682),N=Q(N,j,I,S,fe[W+13],12,-40341101),S=Q(S,N,j,I,fe[W+14],17,-1502002290),j=z(j,I=Q(I,S,N,j,fe[W+15],22,1236535329),S,N,fe[W+1],5,-165796510),N=z(N,j,I,S,fe[W+6],9,-1069501632),S=z(S,N,j,I,fe[W+11],14,643717713),I=z(I,S,N,j,fe[W+0],20,-373897302),j=z(j,I,S,N,fe[W+5],5,-701558691),N=z(N,j,I,S,fe[W+10],9,38016083),S=z(S,N,j,I,fe[W+15],14,-660478335),I=z(I,S,N,j,fe[W+4],20,-405537848),j=z(j,I,S,N,fe[W+9],5,568446438),N=z(N,j,I,S,fe[W+14],9,-1019803690),S=z(S,N,j,I,fe[W+3],14,-187363961),I=z(I,S,N,j,fe[W+8],20,1163531501),j=z(j,I,S,N,fe[W+13],5,-1444681467),N=z(N,j,I,S,fe[W+2],9,-51403784),S=z(S,N,j,I,fe[W+7],14,1735328473),j=Y(j,I=z(I,S,N,j,fe[W+12],20,-1926607734),S,N,fe[W+5],4,-378558),N=Y(N,j,I,S,fe[W+8],11,-2022574463),S=Y(S,N,j,I,fe[W+11],16,1839030562),I=Y(I,S,N,j,fe[W+14],23,-35309556),j=Y(j,I,S,N,fe[W+1],4,-1530992060),N=Y(N,j,I,S,fe[W+4],11,1272893353),S=Y(S,N,j,I,fe[W+7],16,-155497632),I=Y(I,S,N,j,fe[W+10],23,-1094730640),j=Y(j,I,S,N,fe[W+13],4,681279174),N=Y(N,j,I,S,fe[W+0],11,-358537222),S=Y(S,N,j,I,fe[W+3],16,-722521979),I=Y(I,S,N,j,fe[W+6],23,76029189),j=Y(j,I,S,N,fe[W+9],4,-640364487),N=Y(N,j,I,S,fe[W+12],11,-421815835),S=Y(S,N,j,I,fe[W+15],16,530742520),j=ve(j,I=Y(I,S,N,j,fe[W+2],23,-995338651),S,N,fe[W+0],6,-198630844),N=ve(N,j,I,S,fe[W+7],10,1126891415),S=ve(S,N,j,I,fe[W+14],15,-1416354905),I=ve(I,S,N,j,fe[W+5],21,-57434055),j=ve(j,I,S,N,fe[W+12],6,1700485571),N=ve(N,j,I,S,fe[W+3],10,-1894986606),S=ve(S,N,j,I,fe[W+10],15,-1051523),I=ve(I,S,N,j,fe[W+1],21,-2054922799),j=ve(j,I,S,N,fe[W+8],6,1873313359),N=ve(N,j,I,S,fe[W+15],10,-30611744),S=ve(S,N,j,I,fe[W+6],15,-1560198380),I=ve(I,S,N,j,fe[W+13],21,1309151649),j=ve(j,I,S,N,fe[W+4],6,-145523070),N=ve(N,j,I,S,fe[W+11],10,-1120210379),S=ve(S,N,j,I,fe[W+2],15,718787259),I=ve(I,S,N,j,fe[W+9],21,-343485551),j=pe(j,X),I=pe(I,J),S=pe(S,Ce),N=pe(N,ue)}return Array(j,I,S,N)}function le(fe,w,j,I,S,N){return pe((w=pe(pe(w,fe),pe(I,N)))<<S|w>>>32-S,j)}function Q(fe,w,j,I,S,N,W){return le(w&j|~w&I,fe,w,S,N,W)}function z(fe,w,j,I,S,N,W){return le(w&I|j&~I,fe,w,S,N,W)}function Y(fe,w,j,I,S,N,W){return le(w^j^I,fe,w,S,N,W)}function ve(fe,w,j,I,S,N,W){return le(j^(w|~I),fe,w,S,N,W)}function pe(fe,w){var j=(65535&fe)+(65535&w);return(fe>>16)+(w>>16)+(j>>16)<<16|65535&j}c.exports=function(fe){return V.hash(fe,Z,16)}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,v,U,$,B,ne,te,me){c.exports=function(Z){for(var le,Q=new Array(Z),z=0;z<Z;z++)!(3&z)&&(le=4294967296*Math.random()),Q[z]=le>>>((3&z)<<3)&255;return Q}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,v,U,$,B,ne,te,me){var V=_("./helpers");function Z(z,Y){z[Y>>5]|=128<<24-Y%32,z[15+(Y+64>>9<<4)]=Y;for(var ve,pe,fe,w=Array(80),j=1732584193,I=-271733879,S=-1732584194,N=271733878,W=-1009589776,X=0;X<z.length;X+=16){for(var J=j,Ce=I,ue=S,ge=N,De=W,He=0;He<80;He++){w[He]=He<16?z[X+He]:Q(w[He-3]^w[He-8]^w[He-14]^w[He-16],1);var Oe=le(le(Q(j,5),(Oe=I,pe=S,fe=N,(ve=He)<20?Oe&pe|~Oe&fe:!(ve<40)&&ve<60?Oe&pe|Oe&fe|pe&fe:Oe^pe^fe)),le(le(W,w[He]),(ve=He)<20?1518500249:ve<40?1859775393:ve<60?-1894007588:-899497514));W=N,N=S,S=Q(I,30),I=j,j=Oe}j=le(j,J),I=le(I,Ce),S=le(S,ue),N=le(N,ge),W=le(W,De)}return Array(j,I,S,N,W)}function le(z,Y){var ve=(65535&z)+(65535&Y);return(z>>16)+(Y>>16)+(ve>>16)<<16|65535&ve}function Q(z,Y){return z<<Y|z>>>32-Y}c.exports=function(z){return V.hash(z,Z,20,!0)}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,v,U,$,B,ne,te,me){function V(Y,ve){var pe=(65535&Y)+(65535&ve);return(Y>>16)+(ve>>16)+(pe>>16)<<16|65535&pe}function Z(Y,ve){var pe,fe=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),w=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),j=new Array(64);Y[ve>>5]|=128<<24-ve%32,Y[15+(ve+64>>9<<4)]=ve;for(var I,S,N=0;N<Y.length;N+=16){for(var W=w[0],X=w[1],J=w[2],Ce=w[3],ue=w[4],ge=w[5],De=w[6],He=w[7],Oe=0;Oe<64;Oe++)j[Oe]=Oe<16?Y[Oe+N]:V(V(V(Q(S=j[Oe-2],17)^Q(S,19)^z(S,10),j[Oe-7]),Q(S=j[Oe-15],7)^Q(S,18)^z(S,3)),j[Oe-16]),pe=V(V(V(V(He,Q(S=ue,6)^Q(S,11)^Q(S,25)),ue&ge^~ue&De),fe[Oe]),j[Oe]),I=V(Q(I=W,2)^Q(I,13)^Q(I,22),W&X^W&J^X&J),He=De,De=ge,ge=ue,ue=V(Ce,pe),Ce=J,J=X,X=W,W=V(pe,I);w[0]=V(W,w[0]),w[1]=V(X,w[1]),w[2]=V(J,w[2]),w[3]=V(Ce,w[3]),w[4]=V(ue,w[4]),w[5]=V(ge,w[5]),w[6]=V(De,w[6]),w[7]=V(He,w[7])}return w}var le=_("./helpers"),Q=function(Y,ve){return Y>>>ve|Y<<32-ve},z=function(Y,ve){return Y>>>ve};c.exports=function(Y){return le.hash(Y,Z,32,!0)}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,v,U,$,B,ne,te,me){l.read=function(V,Z,le,Q,N){var Y,ve,pe=8*N-Q-1,fe=(1<<pe)-1,w=fe>>1,j=-7,I=le?N-1:0,S=le?-1:1;for(N=V[Z+I],I+=S,Y=N&(1<<-j)-1,N>>=-j,j+=pe;0<j;Y=256*Y+V[Z+I],I+=S,j-=8);for(ve=Y&(1<<-j)-1,Y>>=-j,j+=Q;0<j;ve=256*ve+V[Z+I],I+=S,j-=8);if(0===Y)Y=1-w;else{if(Y===fe)return ve?NaN:1/0*(N?-1:1);ve+=Math.pow(2,Q),Y-=w}return(N?-1:1)*ve*Math.pow(2,Y-Q)},l.write=function(V,Z,le,Q,z,W){var ve,pe,fe=8*W-z-1,w=(1<<fe)-1,j=w>>1,I=23===z?Math.pow(2,-24)-Math.pow(2,-77):0,S=Q?0:W-1,N=Q?1:-1;for(W=Z<0||0===Z&&1/Z<0?1:0,Z=Math.abs(Z),isNaN(Z)||Z===1/0?(pe=isNaN(Z)?1:0,ve=w):(ve=Math.floor(Math.log(Z)/Math.LN2),Z*(Q=Math.pow(2,-ve))<1&&(ve--,Q*=2),2<=(Z+=1<=ve+j?I/Q:I*Math.pow(2,1-j))*Q&&(ve++,Q/=2),w<=ve+j?(pe=0,ve=w):1<=ve+j?(pe=(Z*Q-1)*Math.pow(2,z),ve+=j):(pe=Z*Math.pow(2,j-1)*Math.pow(2,z),ve=0));8<=z;V[le+S]=255&pe,S+=N,pe/=256,z-=8);for(ve=ve<<z|pe,fe+=z;0<fe;V[le+S]=255&ve,S+=N,ve/=256,fe-=8);V[le+S-N]|=128*W}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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(_,c,l){(function(p,E,v,U,$,B,ne,te,me){var V,Z,le;function Q(){}(p=c.exports={}).nextTick=(Z=typeof window<"u"&&window.setImmediate,le=typeof window<"u"&&window.postMessage&&window.addEventListener,Z?function(z){return window.setImmediate(z)}:le?(V=[],window.addEventListener("message",function(z){var Y=z.source;Y!==window&&null!==Y||"process-tick"!==z.data||(z.stopPropagation(),0<V.length&&V.shift()())},!0),function(z){V.push(z),window.postMessage("process-tick","*")}):function(z){setTimeout(z,0)}),p.title="browser",p.browser=!0,p.env={},p.argv=[],p.on=Q,p.addListener=Q,p.once=Q,p.off=Q,p.removeListener=Q,p.removeAllListeners=Q,p.emit=Q,p.binding=function(z){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(z){throw new Error("process.chdir is not supported")}}).call(this,_("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},_("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)},5630:(ee,_,c)=>{"use strict";function p(Q,z){void 0===z&&(z={});for(var Y=function l(Q){for(var z=[],Y=0;Y<Q.length;){var ve=Q[Y];if("*"!==ve&&"+"!==ve&&"?"!==ve)if("\\"!==ve)if("{"!==ve)if("}"!==ve)if(":"!==ve)if("("!==ve)z.push({type:"CHAR",index:Y,value:Q[Y++]});else{var j=1,I="";if("?"===Q[fe=Y+1])throw new TypeError('Pattern cannot start with "?" at '.concat(fe));for(;fe<Q.length;)if("\\"!==Q[fe]){if(")"===Q[fe]){if(0==--j){fe++;break}}else if("("===Q[fe]&&(j++,"?"!==Q[fe+1]))throw new TypeError("Capturing groups are not allowed at ".concat(fe));I+=Q[fe++]}else I+=Q[fe++]+Q[fe++];if(j)throw new TypeError("Unbalanced pattern at ".concat(Y));if(!I)throw new TypeError("Missing pattern at ".concat(Y));z.push({type:"PATTERN",index:Y,value:I}),Y=fe}else{for(var pe="",fe=Y+1;fe<Q.length;){var w=Q.charCodeAt(fe);if(!(w>=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||95===w))break;pe+=Q[fe++]}if(!pe)throw new TypeError("Missing parameter name at ".concat(Y));z.push({type:"NAME",index:Y,value:pe}),Y=fe}else z.push({type:"CLOSE",index:Y,value:Q[Y++]});else z.push({type:"OPEN",index:Y,value:Q[Y++]});else z.push({type:"ESCAPED_CHAR",index:Y++,value:Q[Y++]});else z.push({type:"MODIFIER",index:Y,value:Q[Y++]})}return z.push({type:"END",index:Y,value:""}),z}(Q),ve=z.prefixes,pe=void 0===ve?"./":ve,fe="[^".concat(B(z.delimiter||"/#?"),"]+?"),w=[],j=0,I=0,S="",N=function(we){if(I<Y.length&&Y[I].type===we)return Y[I++].value},W=function(we){var ye=N(we);if(void 0!==ye)return ye;var ze=Y[I],be=ze.index;throw new TypeError("Unexpected ".concat(ze.type," at ").concat(be,", expected ").concat(we))},X=function(){for(var ye,we="";ye=N("CHAR")||N("ESCAPED_CHAR");)we+=ye;return we};I<Y.length;){var J=N("CHAR"),Ce=N("NAME"),ue=N("PATTERN");if(Ce||ue)-1===pe.indexOf(ge=J||"")&&(S+=ge,ge=""),S&&(w.push(S),S=""),w.push({name:Ce||j++,prefix:ge,suffix:"",pattern:ue||fe,modifier:N("MODIFIER")||""});else{var De=J||N("ESCAPED_CHAR");if(De)S+=De;else if(S&&(w.push(S),S=""),N("OPEN")){var ge=X(),Oe=N("NAME")||"",it=N("PATTERN")||"",Ze=X();W("CLOSE"),w.push({name:Oe||(it?j++:""),pattern:Oe&&!it?fe:it,prefix:ge,suffix:Ze,modifier:N("MODIFIER")||""})}else W("END")}}return w}function E(Q,z){return function v(Q,z){void 0===z&&(z={});var Y=ne(z),ve=z.encode,pe=void 0===ve?function(I){return I}:ve,fe=z.validate,w=void 0===fe||fe,j=Q.map(function(I){if("object"==typeof I)return new RegExp("^(?:".concat(I.pattern,")$"),Y)});return function(I){for(var S="",N=0;N<Q.length;N++){var W=Q[N];if("string"!=typeof W){var X=I?I[W.name]:void 0,J="?"===W.modifier||"*"===W.modifier,Ce="*"===W.modifier||"+"===W.modifier;if(Array.isArray(X)){if(!Ce)throw new TypeError('Expected "'.concat(W.name,'" to not repeat, but got an array'));if(0===X.length){if(J)continue;throw new TypeError('Expected "'.concat(W.name,'" to not be empty'))}for(var ue=0;ue<X.length;ue++){var ge=pe(X[ue],W);if(w&&!j[N].test(ge))throw new TypeError('Expected all "'.concat(W.name,'" to match "').concat(W.pattern,'", but got "').concat(ge,'"'));S+=W.prefix+ge+W.suffix}}else if("string"!=typeof X&&"number"!=typeof X){if(!J){var De=Ce?"an array":"a string";throw new TypeError('Expected "'.concat(W.name,'" to be ').concat(De))}}else{if(ge=pe(String(X),W),w&&!j[N].test(ge))throw new TypeError('Expected "'.concat(W.name,'" to match "').concat(W.pattern,'", but got "').concat(ge,'"'));S+=W.prefix+ge+W.suffix}}else S+=W}return S}}(p(Q,z),z)}function U(Q,z){var Y=[];return function $(Q,z,Y){void 0===Y&&(Y={});var ve=Y.decode,pe=void 0===ve?function(fe){return fe}:ve;return function(fe){var w=Q.exec(fe);if(!w)return!1;for(var j=w[0],I=w.index,S=Object.create(null),N=function(X){if(void 0===w[X])return"continue";var J=z[X-1];S[J.name]="*"===J.modifier||"+"===J.modifier?w[X].split(J.prefix+J.suffix).map(function(Ce){return pe(Ce,J)}):pe(w[X],J)},W=1;W<w.length;W++)N(W);return{path:j,index:I,params:S}}}(le(Q,Y,z),Y,z)}function B(Q){return Q.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ne(Q){return Q&&Q.sensitive?"":"i"}function le(Q,z,Y){return Q instanceof RegExp?function te(Q,z){if(!z)return Q;for(var Y=/\((?:\?<(.*?)>)?(?!\?)/g,ve=0,pe=Y.exec(Q.source);pe;)z.push({name:pe[1]||ve++,prefix:"",suffix:"",modifier:"",pattern:""}),pe=Y.exec(Q.source);return Q}(Q,z):Array.isArray(Q)?function me(Q,z,Y){var ve=Q.map(function(pe){return le(pe,z,Y).source});return new RegExp("(?:".concat(ve.join("|"),")"),ne(Y))}(Q,z,Y):function V(Q,z,Y){return function Z(Q,z,Y){void 0===Y&&(Y={});for(var ve=Y.strict,pe=void 0!==ve&&ve,fe=Y.start,w=void 0===fe||fe,j=Y.end,I=void 0===j||j,S=Y.encode,N=void 0===S?function(be){return be}:S,W=Y.delimiter,X=void 0===W?"/#?":W,J=Y.endsWith,ue="[".concat(B(void 0===J?"":J),"]|$"),ge="[".concat(B(X),"]"),De=w?"^":"",He=0,Oe=Q;He<Oe.length;He++){var it=Oe[He];if("string"==typeof it)De+=B(N(it));else{var Ze=B(N(it.prefix)),we=B(N(it.suffix));if(it.pattern)if(z&&z.push(it),Ze||we)if("+"===it.modifier||"*"===it.modifier){var ye="*"===it.modifier?"?":"";De+="(?:".concat(Ze,"((?:").concat(it.pattern,")(?:").concat(we).concat(Ze,"(?:").concat(it.pattern,"))*)").concat(we,")").concat(ye)}else De+="(?:".concat(Ze,"(").concat(it.pattern,")").concat(we,")").concat(it.modifier);else De+="+"===it.modifier||"*"===it.modifier?"((?:".concat(it.pattern,")").concat(it.modifier,")"):"(".concat(it.pattern,")").concat(it.modifier);else De+="(?:".concat(Ze).concat(we,")").concat(it.modifier)}}if(I)pe||(De+="".concat(ge,"?")),De+=Y.endsWith?"(?=".concat(ue,")"):"$";else{var ze=Q[Q.length-1],Ye="string"==typeof ze?ge.indexOf(ze[ze.length-1])>-1:void 0===ze;pe||(De+="(?:".concat(ge,"(?=").concat(ue,"))?")),Ye||(De+="(?=".concat(ge,"|").concat(ue,")"))}return new RegExp(De,ne(Y))}(p(Q,Y),z,Y)}(Q,z,Y)}c.d(_,{YW:()=>U,qg:()=>p,wE:()=>E})},4412:(ee,_,c)=>{"use strict";c.d(_,{t:()=>p});var l=c(1413);class p extends l.B{constructor(v){super(),this._value=v}get value(){return this.getValue()}_subscribe(v){const U=super._subscribe(v);return!U.closed&&v.next(this._value),U}getValue(){const{hasError:v,thrownError:U,_value:$}=this;if(v)throw U;return this._throwIfClosed(),$}next(v){super.next(this._value=v)}}},1985:(ee,_,c)=>{"use strict";c.d(_,{c:()=>ne});var l=c(7707),p=c(8359),E=c(3494),v=c(1203),U=c(1026),$=c(8071),B=c(9786);let ne=(()=>{class Z{constructor(Q){Q&&(this._subscribe=Q)}lift(Q){const z=new Z;return z.source=this,z.operator=Q,z}subscribe(Q,z,Y){const ve=function V(Z){return Z&&Z instanceof l.vU||function me(Z){return Z&&(0,$.T)(Z.next)&&(0,$.T)(Z.error)&&(0,$.T)(Z.complete)}(Z)&&(0,p.Uv)(Z)}(Q)?Q:new l.Ms(Q,z,Y);return(0,B.Y)(()=>{const{operator:pe,source:fe}=this;ve.add(pe?pe.call(ve,fe):fe?this._subscribe(ve):this._trySubscribe(ve))}),ve}_trySubscribe(Q){try{return this._subscribe(Q)}catch(z){Q.error(z)}}forEach(Q,z){return new(z=te(z))((Y,ve)=>{const pe=new l.Ms({next:fe=>{try{Q(fe)}catch(w){ve(w),pe.unsubscribe()}},error:ve,complete:Y});this.subscribe(pe)})}_subscribe(Q){var z;return null===(z=this.source)||void 0===z?void 0:z.subscribe(Q)}[E.s](){return this}pipe(...Q){return(0,v.m)(Q)(this)}toPromise(Q){return new(Q=te(Q))((z,Y)=>{let ve;this.subscribe(pe=>ve=pe,pe=>Y(pe),()=>z(ve))})}}return Z.create=le=>new Z(le),Z})();function te(Z){var le;return null!==(le=null!=Z?Z:U.$.Promise)&&void 0!==le?le:Promise}},2771:(ee,_,c)=>{"use strict";c.d(_,{m:()=>E});var l=c(1413),p=c(6129);class E extends l.B{constructor(U=1/0,$=1/0,B=p.U){super(),this._bufferSize=U,this._windowTime=$,this._timestampProvider=B,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=$===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,$)}next(U){const{isStopped:$,_buffer:B,_infiniteTimeWindow:ne,_timestampProvider:te,_windowTime:me}=this;$||(B.push(U),!ne&&B.push(te.now()+me)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const $=this._innerSubscribe(U),{_infiniteTimeWindow:B,_buffer:ne}=this,te=ne.slice();for(let me=0;me<te.length&&!U.closed;me+=B?1:2)U.next(te[me]);return this._checkFinalizedStatuses(U),$}_trimBuffer(){const{_bufferSize:U,_timestampProvider:$,_buffer:B,_infiniteTimeWindow:ne}=this,te=(ne?1:2)*U;if(U<1/0&&te<B.length&&B.splice(0,B.length-te),!ne){const me=$.now();let V=0;for(let Z=1;Z<B.length&&B[Z]<=me;Z+=2)V=Z;V&&B.splice(0,V+1)}}}},1413:(ee,_,c)=>{"use strict";c.d(_,{B:()=>B});var l=c(1985),p=c(8359);const v=(0,c(1853).L)(te=>function(){te(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=c(7908),$=c(9786);let B=(()=>{class te extends l.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(V){const Z=new ne(this,this);return Z.operator=V,Z}_throwIfClosed(){if(this.closed)throw new v}next(V){(0,$.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Z of this.currentObservers)Z.next(V)}})}error(V){(0,$.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=V;const{observers:Z}=this;for(;Z.length;)Z.shift().error(V)}})}complete(){(0,$.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:V}=this;for(;V.length;)V.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var V;return(null===(V=this.observers)||void 0===V?void 0:V.length)>0}_trySubscribe(V){return this._throwIfClosed(),super._trySubscribe(V)}_subscribe(V){return this._throwIfClosed(),this._checkFinalizedStatuses(V),this._innerSubscribe(V)}_innerSubscribe(V){const{hasError:Z,isStopped:le,observers:Q}=this;return Z||le?p.Kn:(this.currentObservers=null,Q.push(V),new p.yU(()=>{this.currentObservers=null,(0,U.o)(Q,V)}))}_checkFinalizedStatuses(V){const{hasError:Z,thrownError:le,isStopped:Q}=this;Z?V.error(le):Q&&V.complete()}asObservable(){const V=new l.c;return V.source=this,V}}return te.create=(me,V)=>new ne(me,V),te})();class ne extends B{constructor(me,V){super(),this.destination=me,this.source=V}next(me){var V,Z;null===(Z=null===(V=this.destination)||void 0===V?void 0:V.next)||void 0===Z||Z.call(V,me)}error(me){var V,Z;null===(Z=null===(V=this.destination)||void 0===V?void 0:V.error)||void 0===Z||Z.call(V,me)}complete(){var me,V;null===(V=null===(me=this.destination)||void 0===me?void 0:me.complete)||void 0===V||V.call(me)}_subscribe(me){var V,Z;return null!==(Z=null===(V=this.source)||void 0===V?void 0:V.subscribe(me))&&void 0!==Z?Z:p.Kn}}},7707:(ee,_,c)=>{"use strict";c.d(_,{Ms:()=>Y,vU:()=>Z});var l=c(8071),p=c(8359),E=c(1026),v=c(5334),U=c(5343);const $=te("C",void 0,void 0);function te(j,I,S){return{kind:j,value:I,error:S}}var me=c(9270),V=c(9786);class Z extends p.yU{constructor(I){super(),this.isStopped=!1,I?(this.destination=I,(0,p.Uv)(I)&&I.add(this)):this.destination=w}static create(I,S,N){return new Y(I,S,N)}next(I){this.isStopped?fe(function ne(j){return te("N",j,void 0)}(I),this):this._next(I)}error(I){this.isStopped?fe(function B(j){return te("E",void 0,j)}(I),this):(this.isStopped=!0,this._error(I))}complete(){this.isStopped?fe($,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(I){this.destination.next(I)}_error(I){try{this.destination.error(I)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const le=Function.prototype.bind;function Q(j,I){return le.call(j,I)}class z{constructor(I){this.partialObserver=I}next(I){const{partialObserver:S}=this;if(S.next)try{S.next(I)}catch(N){ve(N)}}error(I){const{partialObserver:S}=this;if(S.error)try{S.error(I)}catch(N){ve(N)}else ve(I)}complete(){const{partialObserver:I}=this;if(I.complete)try{I.complete()}catch(S){ve(S)}}}class Y extends Z{constructor(I,S,N){let W;if(super(),(0,l.T)(I)||!I)W={next:null!=I?I:void 0,error:null!=S?S:void 0,complete:null!=N?N:void 0};else{let X;this&&E.$.useDeprecatedNextContext?(X=Object.create(I),X.unsubscribe=()=>this.unsubscribe(),W={next:I.next&&Q(I.next,X),error:I.error&&Q(I.error,X),complete:I.complete&&Q(I.complete,X)}):W=I}this.destination=new z(W)}}function ve(j){E.$.useDeprecatedSynchronousErrorHandling?(0,V.l)(j):(0,v.m)(j)}function fe(j,I){const{onStoppedNotification:S}=E.$;S&&me.f.setTimeout(()=>S(j,I))}const w={closed:!0,next:U.l,error:function pe(j){throw j},complete:U.l}},8359:(ee,_,c)=>{"use strict";c.d(_,{Kn:()=>$,yU:()=>U,Uv:()=>B});var l=c(8071);const E=(0,c(1853).L)(te=>function(V){te(this),this.message=V?"".concat(V.length," errors occurred during unsubscription:\n").concat(V.map((Z,le)=>"".concat(le+1,") ").concat(Z.toString())).join("\n ")):"",this.name="UnsubscriptionError",this.errors=V});var v=c(7908);class U{constructor(me){this.initialTeardown=me,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let me;if(!this.closed){this.closed=!0;const{_parentage:V}=this;if(V)if(this._parentage=null,Array.isArray(V))for(const Q of V)Q.remove(this);else V.remove(this);const{initialTeardown:Z}=this;if((0,l.T)(Z))try{Z()}catch(Q){me=Q instanceof E?Q.errors:[Q]}const{_finalizers:le}=this;if(le){this._finalizers=null;for(const Q of le)try{ne(Q)}catch(z){me=null!=me?me:[],z instanceof E?me=[...me,...z.errors]:me.push(z)}}if(me)throw new E(me)}}add(me){var V;if(me&&me!==this)if(this.closed)ne(me);else{if(me instanceof U){if(me.closed||me._hasParent(this))return;me._addParent(this)}(this._finalizers=null!==(V=this._finalizers)&&void 0!==V?V:[]).push(me)}}_hasParent(me){const{_parentage:V}=this;return V===me||Array.isArray(V)&&V.includes(me)}_addParent(me){const{_parentage:V}=this;this._parentage=Array.isArray(V)?(V.push(me),V):V?[V,me]:me}_removeParent(me){const{_parentage:V}=this;V===me?this._parentage=null:Array.isArray(V)&&(0,v.o)(V,me)}remove(me){const{_finalizers:V}=this;V&&(0,v.o)(V,me),me instanceof U&&me._removeParent(this)}}U.EMPTY=(()=>{const te=new U;return te.closed=!0,te})();const $=U.EMPTY;function B(te){return te instanceof U||te&&"closed"in te&&(0,l.T)(te.remove)&&(0,l.T)(te.add)&&(0,l.T)(te.unsubscribe)}function ne(te){(0,l.T)(te)?te():te.unsubscribe()}},1026:(ee,_,c)=>{"use strict";c.d(_,{$:()=>l});const l={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4843:(ee,_,c)=>{"use strict";c.d(_,{_:()=>E});var l=c(9350),p=c(7707);function E(v,U){const $="object"==typeof U;return new Promise((B,ne)=>{const te=new p.Ms({next:me=>{B(me),te.unsubscribe()},error:ne,complete:()=>{$?B(U.defaultValue):ne(new l.G)}});v.subscribe(te)})}},4572:(ee,_,c)=>{"use strict";c.d(_,{z:()=>me});var l=c(1985),p=c(3073),E=c(2806),v=c(3669),U=c(6450),$=c(9326),B=c(8496),ne=c(4360),te=c(5225);function me(...le){const Q=(0,$.lI)(le),z=(0,$.ms)(le),{args:Y,keys:ve}=(0,p.D)(le);if(0===Y.length)return(0,E.H)([],Q);const pe=new l.c(function V(le,Q,z=v.D){return Y=>{Z(Q,()=>{const{length:ve}=le,pe=new Array(ve);let fe=ve,w=ve;for(let j=0;j<ve;j++)Z(Q,()=>{const I=(0,E.H)(le[j],Q);let S=!1;I.subscribe((0,ne._)(Y,N=>{pe[j]=N,S||(S=!0,w--),w||Y.next(z(pe.slice()))},()=>{--fe||Y.complete()}))},Y)},Y)}}(Y,Q,ve?fe=>(0,B.e)(ve,fe):v.D));return z?pe.pipe((0,U.I)(z)):pe}function Z(le,Q,z){le?(0,te.N)(z,le,Q):Q()}},8793:(ee,_,c)=>{"use strict";c.d(_,{x:()=>U});var l=c(6365),E=c(9326),v=c(2806);function U(...$){return function p(){return(0,l.U)(1)}()((0,v.H)($,(0,E.lI)($)))}},983:(ee,_,c)=>{"use strict";c.d(_,{w:()=>p});const p=new(c(1985).c)(U=>U.complete())},2806:(ee,_,c)=>{"use strict";c.d(_,{H:()=>S});var l=c(8750),p=c(941),E=c(9974);function v(N,W=0){return(0,E.N)((X,J)=>{J.add(N.schedule(()=>X.subscribe(J),W))})}var B=c(1985),te=c(4761),me=c(8071),V=c(5225);function le(N,W){if(!N)throw new Error("Iterable cannot be null");return new B.c(X=>{(0,V.N)(X,W,()=>{const J=N[Symbol.asyncIterator]();(0,V.N)(X,W,()=>{J.next().then(Ce=>{Ce.done?X.complete():X.next(Ce.value)})},0,!0)})})}var Q=c(5055),z=c(9858),Y=c(7441),ve=c(5397),pe=c(7953),fe=c(591),w=c(5196);function S(N,W){return W?function I(N,W){if(null!=N){if((0,Q.l)(N))return function U(N,W){return(0,l.Tg)(N).pipe(v(W),(0,p.Q)(W))}(N,W);if((0,Y.X)(N))return function ne(N,W){return new B.c(X=>{let J=0;return W.schedule(function(){J===N.length?X.complete():(X.next(N[J++]),X.closed||this.schedule())})})}(N,W);if((0,z.y)(N))return function $(N,W){return(0,l.Tg)(N).pipe(v(W),(0,p.Q)(W))}(N,W);if((0,pe.T)(N))return le(N,W);if((0,ve.x)(N))return function Z(N,W){return new B.c(X=>{let J;return(0,V.N)(X,W,()=>{J=N[te.l](),(0,V.N)(X,W,()=>{let Ce,ue;try{({value:Ce,done:ue}=J.next())}catch(ge){return void X.error(ge)}ue?X.complete():X.next(Ce)},0,!0)}),()=>(0,me.T)(null==J?void 0:J.return)&&J.return()})}(N,W);if((0,w.U)(N))return function j(N,W){return le((0,w.C)(N),W)}(N,W)}throw(0,fe.L)(N)}(N,W):(0,l.Tg)(N)}},3726:(ee,_,c)=>{"use strict";c.d(_,{R:()=>me});var l=c(8750),p=c(1985),E=c(1397),v=c(7441),U=c(8071),$=c(6450);const B=["addListener","removeListener"],ne=["addEventListener","removeEventListener"],te=["on","off"];function me(z,Y,ve,pe){if((0,U.T)(ve)&&(pe=ve,ve=void 0),pe)return me(z,Y,ve).pipe((0,$.I)(pe));const[fe,w]=function Q(z){return(0,U.T)(z.addEventListener)&&(0,U.T)(z.removeEventListener)}(z)?ne.map(j=>I=>z[j](Y,I,ve)):function Z(z){return(0,U.T)(z.addListener)&&(0,U.T)(z.removeListener)}(z)?B.map(V(z,Y)):function le(z){return(0,U.T)(z.on)&&(0,U.T)(z.off)}(z)?te.map(V(z,Y)):[];if(!fe&&(0,v.X)(z))return(0,E.Z)(j=>me(j,Y,ve))((0,l.Tg)(z));if(!fe)throw new TypeError("Invalid event target");return new p.c(j=>{const I=(...S)=>j.next(1<S.length?S:S[0]);return fe(I),()=>w(I)})}function V(z,Y){return ve=>pe=>z[ve](Y,pe)}},8750:(ee,_,c)=>{"use strict";c.d(_,{Tg:()=>le});var l=c(1635),p=c(7441),E=c(9858),v=c(1985),U=c(5055),$=c(7953),B=c(591),ne=c(5397),te=c(5196),me=c(8071),V=c(5334),Z=c(3494);function le(j){if(j instanceof v.c)return j;if(null!=j){if((0,U.l)(j))return function Q(j){return new v.c(I=>{const S=j[Z.s]();if((0,me.T)(S.subscribe))return S.subscribe(I);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(j);if((0,p.X)(j))return function z(j){return new v.c(I=>{for(let S=0;S<j.length&&!I.closed;S++)I.next(j[S]);I.complete()})}(j);if((0,E.y)(j))return function Y(j){return new v.c(I=>{j.then(S=>{I.closed||(I.next(S),I.complete())},S=>I.error(S)).then(null,V.m)})}(j);if((0,$.T)(j))return pe(j);if((0,ne.x)(j))return function ve(j){return new v.c(I=>{for(const S of j)if(I.next(S),I.closed)return;I.complete()})}(j);if((0,te.U)(j))return function fe(j){return pe((0,te.C)(j))}(j)}throw(0,B.L)(j)}function pe(j){return new v.c(I=>{(function w(j,I){var S,N,W,X;return(0,l.sH)(this,void 0,void 0,function*(){try{for(S=(0,l.xN)(j);!(N=yield S.next()).done;)if(I.next(N.value),I.closed)return}catch(J){W={error:J}}finally{try{N&&!N.done&&(X=S.return)&&(yield X.call(S))}finally{if(W)throw W.error}}I.complete()})})(j,I).catch(S=>I.error(S))})}},7786:(ee,_,c)=>{"use strict";c.d(_,{h:()=>$});var l=c(6365),p=c(8750),E=c(983),v=c(9326),U=c(2806);function $(...B){const ne=(0,v.lI)(B),te=(0,v.R0)(B,1/0),me=B;return me.length?1===me.length?(0,p.Tg)(me[0]):(0,l.U)(te)((0,U.H)(me,ne)):E.w}},7673:(ee,_,c)=>{"use strict";c.d(_,{of:()=>E});var l=c(9326),p=c(2806);function E(...v){const U=(0,l.lI)(v);return(0,p.H)(v,U)}},8810:(ee,_,c)=>{"use strict";c.d(_,{$:()=>E});var l=c(1985),p=c(8071);function E(v,U){const $=(0,p.T)(v)?v:()=>v,B=ne=>ne.error($());return new l.c(U?ne=>U.schedule(B,0,ne):B)}},1584:(ee,_,c)=>{"use strict";c.d(_,{O:()=>U});var l=c(1985),p=c(3236),E=c(9470);function U($=0,B,ne=p.b){let te=-1;return null!=B&&((0,E.m)(B)?ne=B:te=B),new l.c(me=>{let V=function v($){return $ instanceof Date&&!isNaN($)}($)?+$-ne.now():$;V<0&&(V=0);let Z=0;return ne.schedule(function(){me.closed||(me.next(Z++),0<=te?this.schedule(void 0,te):me.complete())},V)})}},4360:(ee,_,c)=>{"use strict";c.d(_,{H:()=>E,_:()=>p});var l=c(7707);function p(v,U,$,B,ne){return new E(v,U,$,B,ne)}class E extends l.vU{constructor(U,$,B,ne,te,me){super(U),this.onFinalize=te,this.shouldUnsubscribe=me,this._next=$?function(V){try{$(V)}catch(Z){U.error(Z)}}:super._next,this._error=ne?function(V){try{ne(V)}catch(Z){U.error(Z)}finally{this.unsubscribe()}}:super._error,this._complete=B?function(){try{B()}catch(V){U.error(V)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:$}=this;super.unsubscribe(),!$&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},9437:(ee,_,c)=>{"use strict";c.d(_,{W:()=>v});var l=c(8750),p=c(4360),E=c(9974);function v(U){return(0,E.N)(($,B)=>{let me,ne=null,te=!1;ne=$.subscribe((0,p._)(B,void 0,void 0,V=>{me=(0,l.Tg)(U(V,v(U)($))),ne?(ne.unsubscribe(),ne=null,me.subscribe(B)):te=!0})),te&&(ne.unsubscribe(),ne=null,me.subscribe(B))})}},274:(ee,_,c)=>{"use strict";c.d(_,{H:()=>E});var l=c(1397),p=c(8071);function E(v,U){return(0,p.T)(U)?(0,l.Z)(v,U,1):(0,l.Z)(v,1)}},152:(ee,_,c)=>{"use strict";c.d(_,{B:()=>v});var l=c(3236),p=c(9974),E=c(4360);function v(U,$=l.E){return(0,p.N)((B,ne)=>{let te=null,me=null,V=null;const Z=()=>{if(te){te.unsubscribe(),te=null;const Q=me;me=null,ne.next(Q)}};function le(){const Q=V+U,z=$.now();if(z<Q)return te=this.schedule(void 0,Q-z),void ne.add(te);Z()}B.subscribe((0,E._)(ne,Q=>{me=Q,V=$.now(),te||(te=$.schedule(le,U),ne.add(te))},()=>{Z(),ne.complete()},void 0,()=>{me=te=null}))})}},9901:(ee,_,c)=>{"use strict";c.d(_,{U:()=>E});var l=c(9974),p=c(4360);function E(v){return(0,l.N)((U,$)=>{let B=!1;U.subscribe((0,p._)($,ne=>{B=!0,$.next(ne)},()=>{B||$.next(v),$.complete()}))})}},3294:(ee,_,c)=>{"use strict";c.d(_,{F:()=>v});var l=c(3669),p=c(9974),E=c(4360);function v($,B=l.D){return $=null!=$?$:U,(0,p.N)((ne,te)=>{let me,V=!0;ne.subscribe((0,E._)(te,Z=>{const le=B(Z);(V||!$(me,le))&&(V=!1,me=le,te.next(Z))}))})}function U($,B){return $===B}},5964:(ee,_,c)=>{"use strict";c.d(_,{p:()=>E});var l=c(9974),p=c(4360);function E(v,U){return(0,l.N)(($,B)=>{let ne=0;$.subscribe((0,p._)(B,te=>v.call(U,te,ne++)&&B.next(te)))})}},980:(ee,_,c)=>{"use strict";c.d(_,{j:()=>p});var l=c(9974);function p(E){return(0,l.N)((v,U)=>{try{v.subscribe(U)}finally{U.add(E)}})}},1594:(ee,_,c)=>{"use strict";c.d(_,{$:()=>B});var l=c(9350),p=c(5964),E=c(6697),v=c(9901),U=c(3774),$=c(3669);function B(ne,te){const me=arguments.length>=2;return V=>V.pipe(ne?(0,p.p)((Z,le)=>ne(Z,le,V)):$.D,(0,E.s)(1),me?(0,v.U)(te):(0,U.v)(()=>new l.G))}},6354:(ee,_,c)=>{"use strict";c.d(_,{T:()=>E});var l=c(9974),p=c(4360);function E(v,U){return(0,l.N)(($,B)=>{let ne=0;$.subscribe((0,p._)(B,te=>{B.next(v.call(U,te,ne++))}))})}},6365:(ee,_,c)=>{"use strict";c.d(_,{U:()=>E});var l=c(1397),p=c(3669);function E(v=1/0){return(0,l.Z)(p.D,v)}},1397:(ee,_,c)=>{"use strict";c.d(_,{Z:()=>ne});var l=c(6354),p=c(8750),E=c(9974),v=c(5225),U=c(4360),B=c(8071);function ne(te,me,V=1/0){return(0,B.T)(me)?ne((Z,le)=>(0,l.T)((Q,z)=>me(Z,Q,le,z))((0,p.Tg)(te(Z,le))),V):("number"==typeof me&&(V=me),(0,E.N)((Z,le)=>function $(te,me,V,Z,le,Q,z,Y){const ve=[];let pe=0,fe=0,w=!1;const j=()=>{w&&!ve.length&&!pe&&me.complete()},I=N=>pe<Z?S(N):ve.push(N),S=N=>{Q&&me.next(N),pe++;let W=!1;(0,p.Tg)(V(N,fe++)).subscribe((0,U._)(me,X=>{null==le||le(X),Q?I(X):me.next(X)},()=>{W=!0},void 0,()=>{if(W)try{for(pe--;ve.length&&pe<Z;){const X=ve.shift();z?(0,v.N)(me,z,()=>S(X)):S(X)}j()}catch(X){me.error(X)}}))};return te.subscribe((0,U._)(me,I,()=>{w=!0,j()})),()=>{null==Y||Y()}}(Z,le,te,V)))}},941:(ee,_,c)=>{"use strict";c.d(_,{Q:()=>v});var l=c(5225),p=c(9974),E=c(4360);function v(U,$=0){return(0,p.N)((B,ne)=>{B.subscribe((0,E._)(ne,te=>(0,l.N)(ne,U,()=>ne.next(te),$),()=>(0,l.N)(ne,U,()=>ne.complete(),$),te=>(0,l.N)(ne,U,()=>ne.error(te),$)))})}},9085:(ee,_,c)=>{"use strict";c.d(_,{E:()=>p});var l=c(6354);function p(...E){const v=E.length;if(0===v)throw new Error("list of properties cannot be empty.");return(0,l.T)(U=>{let $=U;for(let B=0;B<v;B++){const ne=null==$?void 0:$[E[B]];if(!(typeof ne<"u"))return;$=ne}return $})}},2816:(ee,_,c)=>{"use strict";c.d(_,{S:()=>v});var l=c(9974),p=c(4360);function v(U,$){return(0,l.N)(function E(U,$,B,ne,te){return(me,V)=>{let Z=B,le=$,Q=0;me.subscribe((0,p._)(V,z=>{const Y=Q++;le=Z?U(le,z,Y):(Z=!0,z),ne&&V.next(le)},te&&(()=>{Z&&V.next(le),V.complete()})))}}(U,$,arguments.length>=2,!0))}},9568:(ee,_,c)=>{"use strict";c.d(_,{t:()=>ne});var l=c(2771),p=c(8750),E=c(1413),v=c(7707),U=c(9974);function B(te,me,...V){if(!0===me)return void te();if(!1===me)return;const Z=new v.Ms({next:()=>{Z.unsubscribe(),te()}});return(0,p.Tg)(me(...V)).subscribe(Z)}function ne(te,me,V){let Z,le=!1;return te&&"object"==typeof te?({bufferSize:Z=1/0,windowTime:me=1/0,refCount:le=!1,scheduler:V}=te):Z=null!=te?te:1/0,function $(te={}){const{connector:me=(()=>new E.B),resetOnError:V=!0,resetOnComplete:Z=!0,resetOnRefCountZero:le=!0}=te;return Q=>{let z,Y,ve,pe=0,fe=!1,w=!1;const j=()=>{null==Y||Y.unsubscribe(),Y=void 0},I=()=>{j(),z=ve=void 0,fe=w=!1},S=()=>{const N=z;I(),null==N||N.unsubscribe()};return(0,U.N)((N,W)=>{pe++,!w&&!fe&&j();const X=ve=null!=ve?ve:me();W.add(()=>{pe--,0===pe&&!w&&!fe&&(Y=B(S,le))}),X.subscribe(W),!z&&pe>0&&(z=new v.Ms({next:J=>X.next(J),error:J=>{w=!0,j(),Y=B(I,V,J),X.error(J)},complete:()=>{fe=!0,j(),Y=B(I,Z),X.complete()}}),(0,p.Tg)(N).subscribe(z))})(Q)}}({connector:()=>new l.m(Z,me,V),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:le})}},5245:(ee,_,c)=>{"use strict";c.d(_,{i:()=>p});var l=c(5964);function p(E){return(0,l.p)((v,U)=>E<=U)}},9172:(ee,_,c)=>{"use strict";c.d(_,{Z:()=>v});var l=c(8793),p=c(9326),E=c(9974);function v(...U){const $=(0,p.lI)(U);return(0,E.N)((B,ne)=>{($?(0,l.x)(U,B,$):(0,l.x)(U,B)).subscribe(ne)})}},5558:(ee,_,c)=>{"use strict";c.d(_,{n:()=>v});var l=c(8750),p=c(9974),E=c(4360);function v(U,$){return(0,p.N)((B,ne)=>{let te=null,me=0,V=!1;const Z=()=>V&&!te&&ne.complete();B.subscribe((0,E._)(ne,le=>{null==te||te.unsubscribe();let Q=0;const z=me++;(0,l.Tg)(U(le,z)).subscribe(te=(0,E._)(ne,Y=>ne.next($?$(le,Y,z,Q++):Y),()=>{te=null,Z()}))},()=>{V=!0,Z()}))})}},6697:(ee,_,c)=>{"use strict";c.d(_,{s:()=>v});var l=c(983),p=c(9974),E=c(4360);function v(U){return U<=0?()=>l.w:(0,p.N)(($,B)=>{let ne=0;$.subscribe((0,E._)(B,te=>{++ne<=U&&(B.next(te),U<=ne&&B.complete())}))})}},6977:(ee,_,c)=>{"use strict";c.d(_,{Q:()=>U});var l=c(9974),p=c(4360),E=c(8750),v=c(5343);function U($){return(0,l.N)((B,ne)=>{(0,E.Tg)($).subscribe((0,p._)(ne,()=>ne.complete(),v.l)),!ne.closed&&B.subscribe(ne)})}},8141:(ee,_,c)=>{"use strict";c.d(_,{M:()=>U});var l=c(8071),p=c(9974),E=c(4360),v=c(3669);function U($,B,ne){const te=(0,l.T)($)||B||ne?{next:$,error:B,complete:ne}:$;return te?(0,p.N)((me,V)=>{var Z;null===(Z=te.subscribe)||void 0===Z||Z.call(te);let le=!0;me.subscribe((0,E._)(V,Q=>{var z;null===(z=te.next)||void 0===z||z.call(te,Q),V.next(Q)},()=>{var Q;le=!1,null===(Q=te.complete)||void 0===Q||Q.call(te),V.complete()},Q=>{var z;le=!1,null===(z=te.error)||void 0===z||z.call(te,Q),V.error(Q)},()=>{var Q,z;le&&(null===(Q=te.unsubscribe)||void 0===Q||Q.call(te)),null===(z=te.finalize)||void 0===z||z.call(te)}))}):v.D}},3386:(ee,_,c)=>{"use strict";c.d(_,{c:()=>B});var l=c(3236),p=c(9974),E=c(4360),v=c(8750),$=c(1584);function B(ne,te=l.E,me){const V=(0,$.O)(ne,te);return function U(ne,te){return(0,p.N)((me,V)=>{const{leading:Z=!0,trailing:le=!1}=null!=te?te:{};let Q=!1,z=null,Y=null,ve=!1;const pe=()=>{null==Y||Y.unsubscribe(),Y=null,le&&(j(),ve&&V.complete())},fe=()=>{Y=null,ve&&V.complete()},w=I=>Y=(0,v.Tg)(ne(I)).subscribe((0,E._)(V,pe,fe)),j=()=>{if(Q){Q=!1;const I=z;z=null,V.next(I),!ve&&w(I)}};me.subscribe((0,E._)(V,I=>{Q=!0,z=I,(!Y||Y.closed)&&(Z?j():w(I))},()=>{ve=!0,(!(le&&Q&&Y)||Y.closed)&&V.complete()}))})}(()=>V,me)}},3774:(ee,_,c)=>{"use strict";c.d(_,{v:()=>v});var l=c(9350),p=c(9974),E=c(4360);function v($=U){return(0,p.N)((B,ne)=>{let te=!1;B.subscribe((0,E._)(ne,me=>{te=!0,ne.next(me)},()=>te?ne.complete():ne.error($())))})}function U(){return new l.G}},3993:(ee,_,c)=>{"use strict";c.d(_,{E:()=>B});var l=c(9974),p=c(4360),E=c(8750),v=c(3669),U=c(5343),$=c(9326);function B(...ne){const te=(0,$.ms)(ne);return(0,l.N)((me,V)=>{const Z=ne.length,le=new Array(Z);let Q=ne.map(()=>!1),z=!1;for(let Y=0;Y<Z;Y++)(0,E.Tg)(ne[Y]).subscribe((0,p._)(V,ve=>{le[Y]=ve,!z&&!Q[Y]&&(Q[Y]=!0,(z=Q.every(v.D))&&(Q=null))},U.l));me.subscribe((0,p._)(V,Y=>{if(z){const ve=[Y,...le];V.next(te?te(...ve):ve)}}))})}},6780:(ee,_,c)=>{"use strict";c.d(_,{R:()=>U});var l=c(8359);class p extends l.yU{constructor(B,ne){super()}schedule(B,ne=0){return this}}const E={setInterval($,B,...ne){const{delegate:te}=E;return null!=te&&te.setInterval?te.setInterval($,B,...ne):setInterval($,B,...ne)},clearInterval($){const{delegate:B}=E;return((null==B?void 0:B.clearInterval)||clearInterval)($)},delegate:void 0};var v=c(7908);class U extends p{constructor(B,ne){super(B,ne),this.scheduler=B,this.work=ne,this.pending=!1}schedule(B,ne=0){var te;if(this.closed)return this;this.state=B;const me=this.id,V=this.scheduler;return null!=me&&(this.id=this.recycleAsyncId(V,me,ne)),this.pending=!0,this.delay=ne,this.id=null!==(te=this.id)&&void 0!==te?te:this.requestAsyncId(V,this.id,ne),this}requestAsyncId(B,ne,te=0){return E.setInterval(B.flush.bind(B,this),te)}recycleAsyncId(B,ne,te=0){if(null!=te&&this.delay===te&&!1===this.pending)return ne;null!=ne&&E.clearInterval(ne)}execute(B,ne){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const te=this._execute(B,ne);if(te)return te;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(B,ne){let me,te=!1;try{this.work(B)}catch(V){te=!0,me=V||new Error("Scheduled action threw falsy error")}if(te)return this.unsubscribe(),me}unsubscribe(){if(!this.closed){const{id:B,scheduler:ne}=this,{actions:te}=ne;this.work=this.state=this.scheduler=null,this.pending=!1,(0,v.o)(te,this),null!=B&&(this.id=this.recycleAsyncId(ne,B,null)),this.delay=null,super.unsubscribe()}}}},9687:(ee,_,c)=>{"use strict";c.d(_,{q:()=>E});var l=c(6129);class p{constructor(U,$=p.now){this.schedulerActionCtor=U,this.now=$}schedule(U,$=0,B){return new this.schedulerActionCtor(this,U).schedule(B,$)}}p.now=l.U.now;class E extends p{constructor(U,$=p.now){super(U,$),this.actions=[],this._active=!1}flush(U){const{actions:$}=this;if(this._active)return void $.push(U);let B;this._active=!0;do{if(B=U.execute(U.state,U.delay))break}while(U=$.shift());if(this._active=!1,B){for(;U=$.shift();)U.unsubscribe();throw B}}}},3236:(ee,_,c)=>{"use strict";c.d(_,{E:()=>E,b:()=>v});var l=c(6780);const E=new(c(9687).q)(l.R),v=E},6129:(ee,_,c)=>{"use strict";c.d(_,{U:()=>l});const l={now:()=>(l.delegate||Date).now(),delegate:void 0}},9270:(ee,_,c)=>{"use strict";c.d(_,{f:()=>l});const l={setTimeout(p,E,...v){const{delegate:U}=l;return null!=U&&U.setTimeout?U.setTimeout(p,E,...v):setTimeout(p,E,...v)},clearTimeout(p){const{delegate:E}=l;return((null==E?void 0:E.clearTimeout)||clearTimeout)(p)},delegate:void 0}},4761:(ee,_,c)=>{"use strict";c.d(_,{l:()=>p});const p=function l(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(ee,_,c)=>{"use strict";c.d(_,{s:()=>l});const l="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(ee,_,c)=>{"use strict";c.d(_,{G:()=>p});const p=(0,c(1853).L)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(ee,_,c)=>{"use strict";c.d(_,{R0:()=>$,lI:()=>U,ms:()=>v});var l=c(8071),p=c(9470);function E(B){return B[B.length-1]}function v(B){return(0,l.T)(E(B))?B.pop():void 0}function U(B){return(0,p.m)(E(B))?B.pop():void 0}function $(B,ne){return"number"==typeof E(B)?B.pop():ne}},3073:(ee,_,c)=>{"use strict";c.d(_,{D:()=>U});const{isArray:l}=Array,{getPrototypeOf:p,prototype:E,keys:v}=Object;function U(B){if(1===B.length){const ne=B[0];if(l(ne))return{args:ne,keys:null};if(function $(B){return B&&"object"==typeof B&&p(B)===E}(ne)){const te=v(ne);return{args:te.map(me=>ne[me]),keys:te}}}return{args:B,keys:null}}},7908:(ee,_,c)=>{"use strict";function l(p,E){if(p){const v=p.indexOf(E);0<=v&&p.splice(v,1)}}c.d(_,{o:()=>l})},1853:(ee,_,c)=>{"use strict";function l(p){const v=p(U=>{Error.call(U),U.stack=(new Error).stack});return v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v}c.d(_,{L:()=>l})},8496:(ee,_,c)=>{"use strict";function l(p,E){return p.reduce((v,U,$)=>(v[U]=E[$],v),{})}c.d(_,{e:()=>l})},9786:(ee,_,c)=>{"use strict";c.d(_,{Y:()=>E,l:()=>v});var l=c(1026);let p=null;function E(U){if(l.$.useDeprecatedSynchronousErrorHandling){const $=!p;if($&&(p={errorThrown:!1,error:null}),U(),$){const{errorThrown:B,error:ne}=p;if(p=null,B)throw ne}}else U()}function v(U){l.$.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=U)}},5225:(ee,_,c)=>{"use strict";function l(p,E,v,U=0,$=!1){const B=E.schedule(function(){v(),$?p.add(this.schedule(null,U)):this.unsubscribe()},U);if(p.add(B),!$)return B}c.d(_,{N:()=>l})},3669:(ee,_,c)=>{"use strict";function l(p){return p}c.d(_,{D:()=>l})},7441:(ee,_,c)=>{"use strict";c.d(_,{X:()=>l});const l=p=>p&&"number"==typeof p.length&&"function"!=typeof p},7953:(ee,_,c)=>{"use strict";c.d(_,{T:()=>p});var l=c(8071);function p(E){return Symbol.asyncIterator&&(0,l.T)(null==E?void 0:E[Symbol.asyncIterator])}},8071:(ee,_,c)=>{"use strict";function l(p){return"function"==typeof p}c.d(_,{T:()=>l})},5055:(ee,_,c)=>{"use strict";c.d(_,{l:()=>E});var l=c(3494),p=c(8071);function E(v){return(0,p.T)(v[l.s])}},5397:(ee,_,c)=>{"use strict";c.d(_,{x:()=>E});var l=c(4761),p=c(8071);function E(v){return(0,p.T)(null==v?void 0:v[l.l])}},9858:(ee,_,c)=>{"use strict";c.d(_,{y:()=>p});var l=c(8071);function p(E){return(0,l.T)(null==E?void 0:E.then)}},5196:(ee,_,c)=>{"use strict";c.d(_,{C:()=>E,U:()=>v});var l=c(1635),p=c(8071);function E(U){return(0,l.AQ)(this,arguments,function*(){const B=U.getReader();try{for(;;){const{value:ne,done:te}=yield(0,l.N3)(B.read());if(te)return yield(0,l.N3)(void 0);yield yield(0,l.N3)(ne)}}finally{B.releaseLock()}})}function v(U){return(0,p.T)(null==U?void 0:U.getReader)}},9470:(ee,_,c)=>{"use strict";c.d(_,{m:()=>p});var l=c(8071);function p(E){return E&&(0,l.T)(E.schedule)}},9974:(ee,_,c)=>{"use strict";c.d(_,{N:()=>E,S:()=>p});var l=c(8071);function p(v){return(0,l.T)(null==v?void 0:v.lift)}function E(v){return U=>{if(p(U))return U.lift(function($){try{return v($,this)}catch(B){this.error(B)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(ee,_,c)=>{"use strict";c.d(_,{I:()=>v});var l=c(6354);const{isArray:p}=Array;function v(U){return(0,l.T)($=>function E(U,$){return p($)?U(...$):U($)}(U,$))}},5343:(ee,_,c)=>{"use strict";function l(){}c.d(_,{l:()=>l})},1203:(ee,_,c)=>{"use strict";c.d(_,{F:()=>p,m:()=>E});var l=c(3669);function p(...v){return E(v)}function E(v){return 0===v.length?l.D:1===v.length?v[0]:function($){return v.reduce((B,ne)=>ne(B),$)}}},5334:(ee,_,c)=>{"use strict";c.d(_,{m:()=>E});var l=c(1026),p=c(9270);function E(v){p.f.setTimeout(()=>{const{onUnhandledError:U}=l.$;if(!U)throw v;U(v)})}},591:(ee,_,c)=>{"use strict";function l(p){return new TypeError("You provided ".concat(null!==p&&"object"==typeof p?"an invalid object":"'".concat(p,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}c.d(_,{L:()=>l})},3785:(ee,_,c)=>{var l;!function(){"use strict";var p={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 E(ne){return function U(ne,te){var Z,Q,z,Y,ve,pe,fe,w,j,me=1,V=ne.length,le="";for(Q=0;Q<V;Q++)if("string"==typeof ne[Q])le+=ne[Q];else if("object"==typeof ne[Q]){if((Y=ne[Q]).keys)for(Z=te[me],z=0;z<Y.keys.length;z++){if(null==Z)throw new Error(E('[sprintf] Cannot access property "%s" of undefined value "%s"',Y.keys[z],Y.keys[z-1]));Z=Z[Y.keys[z]]}else Z=Y.param_no?te[Y.param_no]:te[me++];if(p.not_type.test(Y.type)&&p.not_primitive.test(Y.type)&&Z instanceof Function&&(Z=Z()),p.numeric_arg.test(Y.type)&&"number"!=typeof Z&&isNaN(Z))throw new TypeError(E("[sprintf] expecting number but found %T",Z));switch(p.number.test(Y.type)&&(w=Z>=0),Y.type){case"b":Z=parseInt(Z,10).toString(2);break;case"c":Z=String.fromCharCode(parseInt(Z,10));break;case"d":case"i":Z=parseInt(Z,10);break;case"j":Z=JSON.stringify(Z,null,Y.width?parseInt(Y.width):0);break;case"e":Z=Y.precision?parseFloat(Z).toExponential(Y.precision):parseFloat(Z).toExponential();break;case"f":Z=Y.precision?parseFloat(Z).toFixed(Y.precision):parseFloat(Z);break;case"g":Z=Y.precision?String(Number(Z.toPrecision(Y.precision))):parseFloat(Z);break;case"o":Z=(parseInt(Z,10)>>>0).toString(8);break;case"s":Z=String(Z),Z=Y.precision?Z.substring(0,Y.precision):Z;break;case"t":Z=String(!!Z),Z=Y.precision?Z.substring(0,Y.precision):Z;break;case"T":Z=Object.prototype.toString.call(Z).slice(8,-1).toLowerCase(),Z=Y.precision?Z.substring(0,Y.precision):Z;break;case"u":Z=parseInt(Z,10)>>>0;break;case"v":Z=Z.valueOf(),Z=Y.precision?Z.substring(0,Y.precision):Z;break;case"x":Z=(parseInt(Z,10)>>>0).toString(16);break;case"X":Z=(parseInt(Z,10)>>>0).toString(16).toUpperCase()}p.json.test(Y.type)?le+=Z:(!p.number.test(Y.type)||w&&!Y.sign?j="":(j=w?"+":"-",Z=Z.toString().replace(p.sign,"")),pe=Y.pad_char?"0"===Y.pad_char?"0":Y.pad_char.charAt(1):" ",fe=Y.width-(j+Z).length,ve=Y.width&&fe>0?pe.repeat(fe):"",le+=Y.align?j+Z+ve:"0"===pe?j+ve+Z:ve+j+Z)}return le}(function B(ne){if($[ne])return $[ne];for(var me,te=ne,V=[],Z=0;te;){if(null!==(me=p.text.exec(te)))V.push(me[0]);else if(null!==(me=p.modulo.exec(te)))V.push("%");else{if(null===(me=p.placeholder.exec(te)))throw new SyntaxError("[sprintf] unexpected placeholder");if(me[2]){Z|=1;var le=[],Q=me[2],z=[];if(null===(z=p.key.exec(Q)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(le.push(z[1]);""!==(Q=Q.substring(z[0].length));)if(null!==(z=p.key_access.exec(Q)))le.push(z[1]);else{if(null===(z=p.index_access.exec(Q)))throw new SyntaxError("[sprintf] failed to parse named argument key");le.push(z[1])}me[2]=le}else Z|=2;if(3===Z)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");V.push({placeholder:me[0],param_no:me[1],keys:me[2],sign:me[3],pad_char:me[4],align:me[5],width:me[6],precision:me[7],type:me[8]})}te=te.substring(me[0].length)}return $[ne]=V}(ne),arguments)}function v(ne,te){return E.apply(null,[ne].concat(te||[]))}var $=Object.create(null);_.sprintf=E,_.vsprintf=v,typeof window<"u"&&(window.sprintf=E,window.vsprintf=v,void 0!==(l=function(){return{sprintf:E,vsprintf:v}}.call(_,c,_,ee))&&(ee.exports=l))}()},6155:(ee,_)=>{"use strict";_.qg=_.el=_.Op=void 0;const l={allowMultipleFractions:!0},p=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],E=(te,me)=>"((?<".concat(te,">-?\\d*[\\.,]?\\d+)").concat(me,")?"),v=new RegExp(["(?<negative>-)?P",E("years","Y"),E("months","M"),E("weeks","W"),E("days","D"),"(T",E("hours","H"),E("minutes","M"),E("seconds","S"),")?"].join(""));function U(te){if(""!==te&&null!=te)return parseFloat(te.replace(",","."))}_.Op=new Error("Invalid duration"),_.el=new Error("Multiple fractions specified"),_.qg=function $(te,me=l){const V=v.exec(te);if(!V||!V.groups)throw _.Op;let Z=!0,le=0;const Q={};for(const{unit:Y}of p)if(V.groups[Y]&&(Z=!1,Q[Y]=U(V.groups[Y]),!me.allowMultipleFractions&&!Number.isInteger(Q[Y])&&(le++,le>1)))throw _.el;if(Z)throw _.Op;const z=Q;return V.groups.negative&&(z.negative=!0),z}},6883:(ee,_,c)=>{"use strict";c.d(_,{A:()=>Z});var l,p=new Uint8Array(16);function E(){if(!l&&!(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"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 l(p)}const v=/^(?:[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 B=[],ne=0;ne<256;++ne)B.push((ne+256).toString(16).substr(1));const me=function te(le){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,z=(B[le[Q+0]]+B[le[Q+1]]+B[le[Q+2]]+B[le[Q+3]]+"-"+B[le[Q+4]]+B[le[Q+5]]+"-"+B[le[Q+6]]+B[le[Q+7]]+"-"+B[le[Q+8]]+B[le[Q+9]]+"-"+B[le[Q+10]]+B[le[Q+11]]+B[le[Q+12]]+B[le[Q+13]]+B[le[Q+14]]+B[le[Q+15]]).toLowerCase();if(!function U(le){return"string"==typeof le&&v.test(le)}(z))throw TypeError("Stringified UUID is invalid");return z},Z=function V(le,Q,z){var Y=(le=le||{}).random||(le.rng||E)();if(Y[6]=15&Y[6]|64,Y[8]=63&Y[8]|128,Q){z=z||0;for(var ve=0;ve<16;++ve)Q[z+ve]=Y[ve];return Q}return me(Y)}},6517:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='\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'},7244:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='\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'},8490:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='\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'},2091:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='<?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'},5187:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='\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'},5768:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='\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'},9828:(ee,_,c)=>{"use strict";c.d(_,{A:()=>l});const l='\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'},6860:(ee,_,c)=>{"use strict";c.d(_,{BQ:()=>V,Fb:()=>j,OD:()=>v,v8:()=>I});var l=c(4438),p=c(177);let E;try{E=typeof Intl<"u"&&Intl.v8BreakIterator}catch{E=!1}let te,v=(()=>{var S;class N{constructor(X){this._platformId=X,this.isBrowser=this._platformId?(0,p.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!E)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return(S=N).\u0275fac=function(X){return new(X||S)(l.KVO(l.Agw))},S.\u0275prov=l.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),N})();function V(S){return function me(){if(null==te&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>te=!0}))}finally{te=te||!1}return te}()?S:!!S.capture}function j(S){return S.composedPath?S.composedPath()[0]:S.target}function I(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},177:(ee,_,c)=>{"use strict";c.d(_,{AJ:()=>Ui,Jj:()=>Et,MD:()=>io,N0:()=>es,QT:()=>E,Sm:()=>Y,Sq:()=>mn,T3:()=>dt,UE:()=>Vs,VF:()=>U,Vw:()=>ne,Vy:()=>Os,Xr:()=>lo,YU:()=>It,ZD:()=>v,_b:()=>We,aZ:()=>pe,bT:()=>mr,e1:()=>nr,fG:()=>lr,fw:()=>ve,hb:()=>Q,hj:()=>te,kB:()=>z,lG:()=>gn,qQ:()=>B,ux:()=>Vr});var l=c(4438);let p=null;function E(){return p}function v(M){var ae;null!==(ae=p)&&void 0!==ae||(p=M)}class U{}const B=new l.nKC("");let ne=(()=>{var M;class ae{historyGo(ie){throw new Error("")}}return(M=ae).\u0275fac=function(ie){return new(ie||M)},M.\u0275prov=l.jDH({token:M,factory:()=>(0,l.WQX)(me),providedIn:"platform"}),ae})();const te=new l.nKC("");let me=(()=>{var M;class ae extends ne{constructor(){super(),this._doc=(0,l.WQX)(B),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(ie){const Re=E().getGlobalEventTarget(this._doc,"window");return Re.addEventListener("popstate",ie,!1),()=>Re.removeEventListener("popstate",ie)}onHashChange(ie){const Re=E().getGlobalEventTarget(this._doc,"window");return Re.addEventListener("hashchange",ie,!1),()=>Re.removeEventListener("hashchange",ie)}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(ie){this._location.pathname=ie}pushState(ie,Re,lt){this._history.pushState(ie,Re,lt)}replaceState(ie,Re,lt){this._history.replaceState(ie,Re,lt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ie=0){this._history.go(ie)}getState(){return this._history.state}}return(M=ae).\u0275fac=function(ie){return new(ie||M)},M.\u0275prov=l.jDH({token:M,factory:()=>new M,providedIn:"platform"}),ae})();function V(M,ae){if(0==M.length)return ae;if(0==ae.length)return M;let Xe=0;return M.endsWith("/")&&Xe++,ae.startsWith("/")&&Xe++,2==Xe?M+ae.substring(1):1==Xe?M+ae:M+"/"+ae}function Z(M){const ae=M.match(/#|\?|$/),Xe=ae&&ae.index||M.length;return M.slice(0,Xe-("/"===M[Xe-1]?1:0))+M.slice(Xe)}function le(M){return M&&"?"!==M[0]?"?"+M:M}let Q=(()=>{var M;class ae{historyGo(ie){throw new Error("")}}return(M=ae).\u0275fac=function(ie){return new(ie||M)},M.\u0275prov=l.jDH({token:M,factory:()=>(0,l.WQX)(Y),providedIn:"root"}),ae})();const z=new l.nKC("");let Y=(()=>{var M;class ae extends Q{constructor(ie,Re){var lt,$t,qt;super(),this._platformLocation=ie,this._removeListenerFns=[],this._baseHref=null!==(lt=null!==($t=null!=Re?Re:this._platformLocation.getBaseHrefFromDOM())&&void 0!==$t?$t:null===(qt=(0,l.WQX)(B).location)||void 0===qt?void 0:qt.origin)&&void 0!==lt?lt:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ie){this._removeListenerFns.push(this._platformLocation.onPopState(ie),this._platformLocation.onHashChange(ie))}getBaseHref(){return this._baseHref}prepareExternalUrl(ie){return V(this._baseHref,ie)}path(ie=!1){const Re=this._platformLocation.pathname+le(this._platformLocation.search),lt=this._platformLocation.hash;return lt&&ie?"".concat(Re).concat(lt):Re}pushState(ie,Re,lt,$t){const qt=this.prepareExternalUrl(lt+le($t));this._platformLocation.pushState(ie,Re,qt)}replaceState(ie,Re,lt,$t){const qt=this.prepareExternalUrl(lt+le($t));this._platformLocation.replaceState(ie,Re,qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ie=0){var Re,lt;null===(Re=(lt=this._platformLocation).historyGo)||void 0===Re||Re.call(lt,ie)}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.KVO(ne),l.KVO(z,8))},M.\u0275prov=l.jDH({token:M,factory:M.\u0275fac,providedIn:"root"}),ae})(),ve=(()=>{var M;class ae extends Q{constructor(ie,Re){super(),this._platformLocation=ie,this._baseHref="",this._removeListenerFns=[],null!=Re&&(this._baseHref=Re)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ie){this._removeListenerFns.push(this._platformLocation.onPopState(ie),this._platformLocation.onHashChange(ie))}getBaseHref(){return this._baseHref}path(ie=!1){var Re;const lt=null!==(Re=this._platformLocation.hash)&&void 0!==Re?Re:"#";return lt.length>0?lt.substring(1):lt}prepareExternalUrl(ie){const Re=V(this._baseHref,ie);return Re.length>0?"#"+Re:Re}pushState(ie,Re,lt,$t){let qt=this.prepareExternalUrl(lt+le($t));0==qt.length&&(qt=this._platformLocation.pathname),this._platformLocation.pushState(ie,Re,qt)}replaceState(ie,Re,lt,$t){let qt=this.prepareExternalUrl(lt+le($t));0==qt.length&&(qt=this._platformLocation.pathname),this._platformLocation.replaceState(ie,Re,qt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ie=0){var Re,lt;null===(Re=(lt=this._platformLocation).historyGo)||void 0===Re||Re.call(lt,ie)}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.KVO(ne),l.KVO(z,8))},M.\u0275prov=l.jDH({token:M,factory:M.\u0275fac}),ae})(),pe=(()=>{var M;class ae{constructor(ie){this._subject=new l.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ie;const Re=this._locationStrategy.getBaseHref();this._basePath=function I(M){if(new RegExp("^(https?:)?//").test(M)){const[,Xe]=M.split(/\/\/[^\/]+/);return Xe}return M}(Z(j(Re))),this._locationStrategy.onPopState(lt=>{this._subject.emit({url:this.path(!0),pop:!0,state:lt.state,type:lt.type})})}ngOnDestroy(){var ie;null===(ie=this._urlChangeSubscription)||void 0===ie||ie.unsubscribe(),this._urlChangeListeners=[]}path(ie=!1){return this.normalize(this._locationStrategy.path(ie))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ie,Re=""){return this.path()==this.normalize(ie+le(Re))}normalize(ie){return ae.stripTrailingSlash(function w(M,ae){if(!M||!ae.startsWith(M))return ae;const Xe=ae.substring(M.length);return""===Xe||["/",";","?","#"].includes(Xe[0])?Xe:ae}(this._basePath,j(ie)))}prepareExternalUrl(ie){return ie&&"/"!==ie[0]&&(ie="/"+ie),this._locationStrategy.prepareExternalUrl(ie)}go(ie,Re="",lt=null){this._locationStrategy.pushState(lt,"",ie,Re),this._notifyUrlChangeListeners(this.prepareExternalUrl(ie+le(Re)),lt)}replaceState(ie,Re="",lt=null){this._locationStrategy.replaceState(lt,"",ie,Re),this._notifyUrlChangeListeners(this.prepareExternalUrl(ie+le(Re)),lt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ie=0){var Re,lt;null===(Re=(lt=this._locationStrategy).historyGo)||void 0===Re||Re.call(lt,ie)}onUrlChange(ie){var Re;return this._urlChangeListeners.push(ie),null!==(Re=this._urlChangeSubscription)&&void 0!==Re||(this._urlChangeSubscription=this.subscribe(lt=>{this._notifyUrlChangeListeners(lt.url,lt.state)})),()=>{const lt=this._urlChangeListeners.indexOf(ie);var $t;this._urlChangeListeners.splice(lt,1),0===this._urlChangeListeners.length&&(null===($t=this._urlChangeSubscription)||void 0===$t||$t.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ie="",Re){this._urlChangeListeners.forEach(lt=>lt(ie,Re))}subscribe(ie,Re,lt){return this._subject.subscribe({next:ie,error:Re,complete:lt})}}return(M=ae).normalizeQueryParams=le,M.joinWithSlash=V,M.stripTrailingSlash=Z,M.\u0275fac=function(ie){return new(ie||M)(l.KVO(Q))},M.\u0275prov=l.jDH({token:M,factory:()=>function fe(){return new pe((0,l.KVO)(Q))}(),providedIn:"root"}),ae})();function j(M){return M.replace(/\/index.html$/,"")}function We(M,ae){ae=encodeURIComponent(ae);for(const Xe of M.split(";")){const ie=Xe.indexOf("="),[Re,lt]=-1==ie?[Xe,""]:[Xe.slice(0,ie),Xe.slice(ie+1)];if(Re.trim()===ae)return decodeURIComponent(lt)}return null}const gt=/\s+/,wt=[];let It=(()=>{var M;class ae{constructor(ie,Re){this._ngEl=ie,this._renderer=Re,this.initialClasses=wt,this.stateMap=new Map}set klass(ie){this.initialClasses=null!=ie?ie.trim().split(gt):wt}set ngClass(ie){this.rawClass="string"==typeof ie?ie.trim().split(gt):ie}ngDoCheck(){for(const Re of this.initialClasses)this._updateState(Re,!0);const ie=this.rawClass;if(Array.isArray(ie)||ie instanceof Set)for(const Re of ie)this._updateState(Re,!0);else if(null!=ie)for(const Re of Object.keys(ie))this._updateState(Re,!!ie[Re]);this._applyStateDiff()}_updateState(ie,Re){const lt=this.stateMap.get(ie);void 0!==lt?(lt.enabled!==Re&&(lt.changed=!0,lt.enabled=Re),lt.touched=!0):this.stateMap.set(ie,{enabled:Re,changed:!0,touched:!0})}_applyStateDiff(){for(const ie of this.stateMap){const Re=ie[0],lt=ie[1];lt.changed?(this._toggleClass(Re,lt.enabled),lt.changed=!1):lt.touched||(lt.enabled&&this._toggleClass(Re,!1),this.stateMap.delete(Re)),lt.touched=!1}}_toggleClass(ie,Re){(ie=ie.trim()).length>0&&ie.split(gt).forEach(lt=>{Re?this._renderer.addClass(this._ngEl.nativeElement,lt):this._renderer.removeClass(this._ngEl.nativeElement,lt)})}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.aKT),l.rXU(l.sFG))},M.\u0275dir=l.FsC({type:M,selectors:[["","ngClass",""]],inputs:{klass:[l.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0}),ae})();class bn{constructor(ae,Xe,ie,Re){this.$implicit=ae,this.ngForOf=Xe,this.index=ie,this.count=Re}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mn=(()=>{var M;class ae{set ngForOf(ie){this._ngForOf=ie,this._ngForOfDirty=!0}set ngForTrackBy(ie){this._trackByFn=ie}get ngForTrackBy(){return this._trackByFn}constructor(ie,Re,lt){this._viewContainer=ie,this._template=Re,this._differs=lt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ie){ie&&(this._template=ie)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ie=this._ngForOf;!this._differ&&ie&&(this._differ=this._differs.find(ie).create(this.ngForTrackBy))}if(this._differ){const ie=this._differ.diff(this._ngForOf);ie&&this._applyChanges(ie)}}_applyChanges(ie){const Re=this._viewContainer;ie.forEachOperation((lt,$t,qt)=>{if(null==lt.previousIndex)Re.createEmbeddedView(this._template,new bn(lt.item,this._ngForOf,-1,-1),null===qt?void 0:qt);else if(null==qt)Re.remove(null===$t?void 0:$t);else if(null!==$t){const rr=Re.get($t);Re.move(rr,qt),Mn(rr,lt)}});for(let lt=0,$t=Re.length;lt<$t;lt++){const rr=Re.get(lt).context;rr.index=lt,rr.count=$t,rr.ngForOf=this._ngForOf}ie.forEachIdentityChange(lt=>{Mn(Re.get(lt.currentIndex),lt)})}static ngTemplateContextGuard(ie,Re){return!0}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.c1b),l.rXU(l.C4Q),l.rXU(l._q3))},M.\u0275dir=l.FsC({type:M,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),ae})();function Mn(M,ae){M.context.$implicit=ae.item}let mr=(()=>{var M;class ae{constructor(ie,Re){this._viewContainer=ie,this._context=new _i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Re}set ngIf(ie){this._context.$implicit=this._context.ngIf=ie,this._updateView()}set ngIfThen(ie){jr("ngIfThen",ie),this._thenTemplateRef=ie,this._thenViewRef=null,this._updateView()}set ngIfElse(ie){jr("ngIfElse",ie),this._elseTemplateRef=ie,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(ie,Re){return!0}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.c1b),l.rXU(l.C4Q))},M.\u0275dir=l.FsC({type:M,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),ae})();class _i{constructor(){this.$implicit=null,this.ngIf=null}}function jr(M,ae){if(ae&&!ae.createEmbeddedView)throw new Error("".concat(M," must be a TemplateRef, but received '").concat((0,l.Tbb)(ae),"'."))}class Wr{constructor(ae,Xe){this._viewContainerRef=ae,this._templateRef=Xe,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ae){ae&&!this._created?this.create():!ae&&this._created&&this.destroy()}}let Vr=(()=>{var M;class ae{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ie){this._ngSwitch=ie,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ie){this._defaultViews.push(ie)}_matchCase(ie){const Re=ie===this._ngSwitch;return this._lastCasesMatched||(this._lastCasesMatched=Re),this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Re}_updateDefaultCases(ie){if(this._defaultViews.length>0&&ie!==this._defaultUsed){this._defaultUsed=ie;for(const Re of this._defaultViews)Re.enforceState(ie)}}}return(M=ae).\u0275fac=function(ie){return new(ie||M)},M.\u0275dir=l.FsC({type:M,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),ae})(),nr=(()=>{var M;class ae{constructor(ie,Re,lt){this.ngSwitch=lt,lt._addCase(),this._view=new Wr(ie,Re)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.c1b),l.rXU(l.C4Q),l.rXU(Vr,9))},M.\u0275dir=l.FsC({type:M,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),ae})(),lr=(()=>{var M;class ae{constructor(ie,Re,lt){lt._addDefault(new Wr(ie,Re))}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.c1b),l.rXU(l.C4Q),l.rXU(Vr,9))},M.\u0275dir=l.FsC({type:M,selectors:[["","ngSwitchDefault",""]],standalone:!0}),ae})(),dt=(()=>{var M;class ae{constructor(ie){this._viewContainerRef=ie,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ie){if(this._shouldRecreateView(ie)){var Re;const lt=this._viewContainerRef;if(this._viewRef&<.remove(lt.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const $t=this._createContextForwardProxy();this._viewRef=lt.createEmbeddedView(this.ngTemplateOutlet,$t,{injector:null!==(Re=this.ngTemplateOutletInjector)&&void 0!==Re?Re:void 0})}}_shouldRecreateView(ie){return!!ie.ngTemplateOutlet||!!ie.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ie,Re,lt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Re,lt),get:(ie,Re,lt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Re,lt)}})}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.c1b))},M.\u0275dir=l.FsC({type:M,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[l.OA$]}),ae})();class Ie{createSubscription(ae,Xe){return(0,l.O8t)(()=>ae.subscribe({next:Xe,error:ie=>{throw ie}}))}dispose(ae){(0,l.O8t)(()=>ae.unsubscribe())}}class _t{createSubscription(ae,Xe){return ae.then(Xe,ie=>{throw ie})}dispose(ae){}}const Te=new _t,ft=new Ie;let Et=(()=>{var M;class ae{constructor(ie){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ie}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ie){if(!this._obj){if(ie)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ie)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ie!==this._obj?(this._dispose(),this.transform(ie)):this._latestValue}_subscribe(ie){this._obj=ie,this._strategy=this._selectStrategy(ie),this._subscription=this._strategy.createSubscription(ie,Re=>this._updateLatestValue(ie,Re))}_selectStrategy(ie){if((0,l.jNT)(ie))return Te;if((0,l.zjR)(ie))return ft;throw function Kt(M,ae){return new l.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ie,Re){var lt;ie===this._obj&&(this._latestValue=Re,this.markForCheckOnValueUpdate)&&(null===(lt=this._ref)||void 0===lt||lt.markForCheck())}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.gRc,16))},M.\u0275pipe=l.EJ8({name:"async",type:M,pure:!1,standalone:!0}),ae})(),gn=(()=>{var M;class ae{constructor(ie){this.differs=ie,this.keyValues=[],this.compareFn=En}transform(ie,Re=En){var lt;if(!ie||!(ie instanceof Map)&&"object"!=typeof ie)return null;null!==(lt=this.differ)&&void 0!==lt||(this.differ=this.differs.find(ie).create());const $t=this.differ.diff(ie),qt=Re!==this.compareFn;return $t&&(this.keyValues=[],$t.forEachItem(rr=>{this.keyValues.push(function Ot(M,ae){return{key:M,value:ae}}(rr.key,rr.currentValue))})),($t||qt)&&(this.keyValues.sort(Re),this.compareFn=Re),this.keyValues}}return(M=ae).\u0275fac=function(ie){return new(ie||M)(l.rXU(l.MKu,16))},M.\u0275pipe=l.EJ8({name:"keyvalue",type:M,pure:!1,standalone:!0}),ae})();function En(M,ae){const Xe=M.key,ie=ae.key;if(Xe===ie)return 0;if(void 0===Xe)return 1;if(void 0===ie)return-1;if(null===Xe)return 1;if(null===ie)return-1;if("string"==typeof Xe&&"string"==typeof ie)return Xe<ie?-1:1;if("number"==typeof Xe&&"number"==typeof ie)return Xe-ie;if("boolean"==typeof Xe&&"boolean"==typeof ie)return Xe<ie?-1:1;const Re=String(Xe),lt=String(ie);return Re==lt?0:Re<lt?-1:1}let io=(()=>{var M;class ae{}return(M=ae).\u0275fac=function(ie){return new(ie||M)},M.\u0275mod=l.$C({type:M}),M.\u0275inj=l.G2t({}),ae})();const Ui="browser",Da="server";function Vs(M){return M===Ui}function Os(M){return M===Da}let lo=(()=>{var M;class ae{}return(M=ae).\u0275prov=(0,l.jDH)({token:M,providedIn:"root",factory:()=>Vs((0,l.WQX)(l.Agw))?new Ks((0,l.WQX)(B),window):new wo}),ae})();class Ks{constructor(ae,Xe){this.document=ae,this.window=Xe,this.offset=()=>[0,0]}setOffset(ae){this.offset=Array.isArray(ae)?()=>ae:ae}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ae){this.window.scrollTo(ae[0],ae[1])}scrollToAnchor(ae){const Xe=function Wi(M,ae){const Xe=M.getElementById(ae)||M.getElementsByName(ae)[0];if(Xe)return Xe;if("function"==typeof M.createTreeWalker&&M.body&&"function"==typeof M.body.attachShadow){const ie=M.createTreeWalker(M.body,NodeFilter.SHOW_ELEMENT);let Re=ie.currentNode;for(;Re;){const lt=Re.shadowRoot;if(lt){const $t=lt.getElementById(ae)||lt.querySelector('[name="'.concat(ae,'"]'));if($t)return $t}Re=ie.nextNode()}}return null}(this.document,ae);Xe&&(this.scrollToElement(Xe),Xe.focus())}setHistoryScrollRestoration(ae){this.window.history.scrollRestoration=ae}scrollToElement(ae){const Xe=ae.getBoundingClientRect(),ie=Xe.left+this.window.pageXOffset,Re=Xe.top+this.window.pageYOffset,lt=this.offset();this.window.scrollTo(ie-lt[0],Re-lt[1])}}class wo{setOffset(ae){}getScrollPosition(){return[0,0]}scrollToPosition(ae){}scrollToAnchor(ae){}setHistoryScrollRestoration(ae){}}class es{}},1626:(ee,_,c)=>{"use strict";c.d(_,{$m:()=>uo,Qq:()=>Ye,q1:()=>zr}),c(467);var p=c(4438),E=c(7673),v=c(1985),U=c(2806),$=c(274),B=c(5964),ne=c(6354),te=c(980),me=c(5558),V=c(8141),Z=c(177);class le{}class Q{}class z{constructor(gt){this.normalizedNames=new Map,this.lazyUpdate=null,gt?"string"==typeof gt?this.lazyInit=()=>{this.headers=new Map,gt.split("\n").forEach(wt=>{const It=wt.indexOf(":");if(It>0){const Ut=wt.slice(0,It),an=Ut.toLowerCase(),bn=wt.slice(It+1).trim();this.maybeSetNormalizedName(Ut,an),this.headers.has(an)?this.headers.get(an).push(bn):this.headers.set(an,[bn])}})}:typeof Headers<"u"&> instanceof Headers?(this.headers=new Map,gt.forEach((wt,It)=>{this.setHeaderEntries(It,wt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(gt).forEach(([wt,It])=>{this.setHeaderEntries(wt,It)})}:this.headers=new Map}has(gt){return this.init(),this.headers.has(gt.toLowerCase())}get(gt){this.init();const wt=this.headers.get(gt.toLowerCase());return wt&&wt.length>0?wt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(gt){return this.init(),this.headers.get(gt.toLowerCase())||null}append(gt,wt){return this.clone({name:gt,value:wt,op:"a"})}set(gt,wt){return this.clone({name:gt,value:wt,op:"s"})}delete(gt,wt){return this.clone({name:gt,value:wt,op:"d"})}maybeSetNormalizedName(gt,wt){this.normalizedNames.has(wt)||this.normalizedNames.set(wt,gt)}init(){this.lazyInit&&(this.lazyInit instanceof z?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(gt=>this.applyUpdate(gt)),this.lazyUpdate=null))}copyFrom(gt){gt.init(),Array.from(gt.headers.keys()).forEach(wt=>{this.headers.set(wt,gt.headers.get(wt)),this.normalizedNames.set(wt,gt.normalizedNames.get(wt))})}clone(gt){const wt=new z;return wt.lazyInit=this.lazyInit&&this.lazyInit instanceof z?this.lazyInit:this,wt.lazyUpdate=(this.lazyUpdate||[]).concat([gt]),wt}applyUpdate(gt){const wt=gt.name.toLowerCase();switch(gt.op){case"a":case"s":let It=gt.value;if("string"==typeof It&&(It=[It]),0===It.length)return;this.maybeSetNormalizedName(gt.name,wt);const Ut=("a"===gt.op?this.headers.get(wt):void 0)||[];Ut.push(...It),this.headers.set(wt,Ut);break;case"d":const an=gt.value;if(an){let bn=this.headers.get(wt);if(!bn)return;bn=bn.filter(mn=>-1===an.indexOf(mn)),0===bn.length?(this.headers.delete(wt),this.normalizedNames.delete(wt)):this.headers.set(wt,bn)}else this.headers.delete(wt),this.normalizedNames.delete(wt)}}setHeaderEntries(gt,wt){const It=(Array.isArray(wt)?wt:[wt]).map(an=>an.toString()),Ut=gt.toLowerCase();this.headers.set(Ut,It),this.maybeSetNormalizedName(gt,Ut)}forEach(gt){this.init(),Array.from(this.normalizedNames.keys()).forEach(wt=>gt(this.normalizedNames.get(wt),this.headers.get(wt)))}}class ve{encodeKey(gt){return j(gt)}encodeValue(gt){return j(gt)}decodeKey(gt){return decodeURIComponent(gt)}decodeValue(gt){return decodeURIComponent(gt)}}const fe=/%(\d[a-f0-9])/gi,w={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function j(We){return encodeURIComponent(We).replace(fe,(gt,wt)=>{var It;return null!==(It=w[wt])&&void 0!==It?It:gt})}function I(We){return"".concat(We)}class S{constructor(gt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=gt.encoder||new ve,gt.fromString){if(gt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function pe(We,gt){const wt=new Map;return We.length>0&&We.replace(/^\?/,"").split("&").forEach(Ut=>{const an=Ut.indexOf("="),[bn,mn]=-1==an?[gt.decodeKey(Ut),""]:[gt.decodeKey(Ut.slice(0,an)),gt.decodeValue(Ut.slice(an+1))],Mn=wt.get(bn)||[];Mn.push(mn),wt.set(bn,Mn)}),wt}(gt.fromString,this.encoder)}else gt.fromObject?(this.map=new Map,Object.keys(gt.fromObject).forEach(wt=>{const It=gt.fromObject[wt],Ut=Array.isArray(It)?It.map(I):[I(It)];this.map.set(wt,Ut)})):this.map=null}has(gt){return this.init(),this.map.has(gt)}get(gt){this.init();const wt=this.map.get(gt);return wt?wt[0]:null}getAll(gt){return this.init(),this.map.get(gt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(gt,wt){return this.clone({param:gt,value:wt,op:"a"})}appendAll(gt){const wt=[];return Object.keys(gt).forEach(It=>{const Ut=gt[It];Array.isArray(Ut)?Ut.forEach(an=>{wt.push({param:It,value:an,op:"a"})}):wt.push({param:It,value:Ut,op:"a"})}),this.clone(wt)}set(gt,wt){return this.clone({param:gt,value:wt,op:"s"})}delete(gt,wt){return this.clone({param:gt,value:wt,op:"d"})}toString(){return this.init(),this.keys().map(gt=>{const wt=this.encoder.encodeKey(gt);return this.map.get(gt).map(It=>wt+"="+this.encoder.encodeValue(It)).join("&")}).filter(gt=>""!==gt).join("&")}clone(gt){const wt=new S({encoder:this.encoder});return wt.cloneFrom=this.cloneFrom||this,wt.updates=(this.updates||[]).concat(gt),wt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(gt=>this.map.set(gt,this.cloneFrom.map.get(gt))),this.updates.forEach(gt=>{switch(gt.op){case"a":case"s":const wt=("a"===gt.op?this.map.get(gt.param):void 0)||[];wt.push(I(gt.value)),this.map.set(gt.param,wt);break;case"d":if(void 0===gt.value){this.map.delete(gt.param);break}{let It=this.map.get(gt.param)||[];const Ut=It.indexOf(I(gt.value));-1!==Ut&&It.splice(Ut,1),It.length>0?this.map.set(gt.param,It):this.map.delete(gt.param)}}}),this.cloneFrom=this.updates=null)}}class W{constructor(){this.map=new Map}set(gt,wt){return this.map.set(gt,wt),this}get(gt){return this.map.has(gt)||this.map.set(gt,gt.defaultValue()),this.map.get(gt)}delete(gt){return this.map.delete(gt),this}has(gt){return this.map.has(gt)}keys(){return this.map.keys()}}function J(We){return typeof ArrayBuffer<"u"&&We instanceof ArrayBuffer}function Ce(We){return typeof Blob<"u"&&We instanceof Blob}function ue(We){return typeof FormData<"u"&&We instanceof FormData}class De{constructor(gt,wt,It,Ut){var an,bn;let mn;if(this.url=wt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=gt.toUpperCase(),function X(We){switch(We){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ut?(this.body=void 0!==It?It:null,mn=Ut):mn=It,mn&&(this.reportProgress=!!mn.reportProgress,this.withCredentials=!!mn.withCredentials,mn.responseType&&(this.responseType=mn.responseType),mn.headers&&(this.headers=mn.headers),mn.context&&(this.context=mn.context),mn.params&&(this.params=mn.params),this.transferCache=mn.transferCache),null!==(an=this.headers)&&void 0!==an||(this.headers=new z),null!==(bn=this.context)&&void 0!==bn||(this.context=new W),this.params){const Mn=this.params.toString();if(0===Mn.length)this.urlWithParams=wt;else{const pn=wt.indexOf("?");this.urlWithParams=wt+(-1===pn?"?":pn<wt.length-1?"&":"")+Mn}}else this.params=new S,this.urlWithParams=wt}serializeBody(){return null===this.body?null:"string"==typeof this.body||J(this.body)||Ce(this.body)||ue(this.body)||function ge(We){return typeof URLSearchParams<"u"&&We instanceof URLSearchParams}(this.body)?this.body:this.body instanceof S?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||ue(this.body)?null:Ce(this.body)?this.body.type||null:J(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof S?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(gt={}){var wt,It,Ut,an;const bn=gt.method||this.method,mn=gt.url||this.url,Mn=gt.responseType||this.responseType,pn=null!==(wt=gt.transferCache)&&void 0!==wt?wt:this.transferCache,mr=void 0!==gt.body?gt.body:this.body,_i=null!==(It=gt.withCredentials)&&void 0!==It?It:this.withCredentials,jr=null!==(Ut=gt.reportProgress)&&void 0!==Ut?Ut:this.reportProgress;let yr=gt.headers||this.headers,Wr=gt.params||this.params;const Vr=null!==(an=gt.context)&&void 0!==an?an:this.context;return void 0!==gt.setHeaders&&(yr=Object.keys(gt.setHeaders).reduce((nr,lr)=>nr.set(lr,gt.setHeaders[lr]),yr)),gt.setParams&&(Wr=Object.keys(gt.setParams).reduce((nr,lr)=>nr.set(lr,gt.setParams[lr]),Wr)),new De(bn,mn,mr,{params:Wr,headers:yr,context:Vr,reportProgress:jr,responseType:Mn,withCredentials:_i,transferCache:pn})}}var He=function(We){return We[We.Sent=0]="Sent",We[We.UploadProgress=1]="UploadProgress",We[We.ResponseHeader=2]="ResponseHeader",We[We.DownloadProgress=3]="DownloadProgress",We[We.Response=4]="Response",We[We.User=5]="User",We}(He||{});class Oe{constructor(gt,wt=ye.Ok,It="OK"){this.headers=gt.headers||new z,this.status=void 0!==gt.status?gt.status:wt,this.statusText=gt.statusText||It,this.url=gt.url||null,this.ok=this.status>=200&&this.status<300}}class it extends Oe{constructor(gt={}){super(gt),this.type=He.ResponseHeader}clone(gt={}){return new it({headers:gt.headers||this.headers,status:void 0!==gt.status?gt.status:this.status,statusText:gt.statusText||this.statusText,url:gt.url||this.url||void 0})}}class Ze extends Oe{constructor(gt={}){super(gt),this.type=He.Response,this.body=void 0!==gt.body?gt.body:null}clone(gt={}){return new Ze({body:void 0!==gt.body?gt.body:this.body,headers:gt.headers||this.headers,status:void 0!==gt.status?gt.status:this.status,statusText:gt.statusText||this.statusText,url:gt.url||this.url||void 0})}}class we extends Oe{constructor(gt){super(gt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for ".concat(gt.url||"(unknown url)"):"Http failure response for ".concat(gt.url||"(unknown url)",": ").concat(gt.status," ").concat(gt.statusText),this.error=gt.error||null}}var ye=function(We){return We[We.Continue=100]="Continue",We[We.SwitchingProtocols=101]="SwitchingProtocols",We[We.Processing=102]="Processing",We[We.EarlyHints=103]="EarlyHints",We[We.Ok=200]="Ok",We[We.Created=201]="Created",We[We.Accepted=202]="Accepted",We[We.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",We[We.NoContent=204]="NoContent",We[We.ResetContent=205]="ResetContent",We[We.PartialContent=206]="PartialContent",We[We.MultiStatus=207]="MultiStatus",We[We.AlreadyReported=208]="AlreadyReported",We[We.ImUsed=226]="ImUsed",We[We.MultipleChoices=300]="MultipleChoices",We[We.MovedPermanently=301]="MovedPermanently",We[We.Found=302]="Found",We[We.SeeOther=303]="SeeOther",We[We.NotModified=304]="NotModified",We[We.UseProxy=305]="UseProxy",We[We.Unused=306]="Unused",We[We.TemporaryRedirect=307]="TemporaryRedirect",We[We.PermanentRedirect=308]="PermanentRedirect",We[We.BadRequest=400]="BadRequest",We[We.Unauthorized=401]="Unauthorized",We[We.PaymentRequired=402]="PaymentRequired",We[We.Forbidden=403]="Forbidden",We[We.NotFound=404]="NotFound",We[We.MethodNotAllowed=405]="MethodNotAllowed",We[We.NotAcceptable=406]="NotAcceptable",We[We.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",We[We.RequestTimeout=408]="RequestTimeout",We[We.Conflict=409]="Conflict",We[We.Gone=410]="Gone",We[We.LengthRequired=411]="LengthRequired",We[We.PreconditionFailed=412]="PreconditionFailed",We[We.PayloadTooLarge=413]="PayloadTooLarge",We[We.UriTooLong=414]="UriTooLong",We[We.UnsupportedMediaType=415]="UnsupportedMediaType",We[We.RangeNotSatisfiable=416]="RangeNotSatisfiable",We[We.ExpectationFailed=417]="ExpectationFailed",We[We.ImATeapot=418]="ImATeapot",We[We.MisdirectedRequest=421]="MisdirectedRequest",We[We.UnprocessableEntity=422]="UnprocessableEntity",We[We.Locked=423]="Locked",We[We.FailedDependency=424]="FailedDependency",We[We.TooEarly=425]="TooEarly",We[We.UpgradeRequired=426]="UpgradeRequired",We[We.PreconditionRequired=428]="PreconditionRequired",We[We.TooManyRequests=429]="TooManyRequests",We[We.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",We[We.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",We[We.InternalServerError=500]="InternalServerError",We[We.NotImplemented=501]="NotImplemented",We[We.BadGateway=502]="BadGateway",We[We.ServiceUnavailable=503]="ServiceUnavailable",We[We.GatewayTimeout=504]="GatewayTimeout",We[We.HttpVersionNotSupported=505]="HttpVersionNotSupported",We[We.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",We[We.InsufficientStorage=507]="InsufficientStorage",We[We.LoopDetected=508]="LoopDetected",We[We.NotExtended=510]="NotExtended",We[We.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",We}(ye||{});function ze(We,gt){return{body:gt,headers:We.headers,context:We.context,observe:We.observe,params:We.params,reportProgress:We.reportProgress,responseType:We.responseType,withCredentials:We.withCredentials,transferCache:We.transferCache}}let Ye=(()=>{var We;class gt{constructor(It){this.handler=It}request(It,Ut,an={}){let bn;if(It instanceof De)bn=It;else{let pn,mr;pn=an.headers instanceof z?an.headers:new z(an.headers),an.params&&(mr=an.params instanceof S?an.params:new S({fromObject:an.params})),bn=new De(It,Ut,void 0!==an.body?an.body:null,{headers:pn,context:an.context,params:mr,reportProgress:an.reportProgress,responseType:an.responseType||"json",withCredentials:an.withCredentials,transferCache:an.transferCache})}const mn=(0,E.of)(bn).pipe((0,$.H)(pn=>this.handler.handle(pn)));if(It instanceof De||"events"===an.observe)return mn;const Mn=mn.pipe((0,B.p)(pn=>pn instanceof Ze));switch(an.observe||"body"){case"body":switch(bn.responseType){case"arraybuffer":return Mn.pipe((0,ne.T)(pn=>{if(null!==pn.body&&!(pn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pn.body}));case"blob":return Mn.pipe((0,ne.T)(pn=>{if(null!==pn.body&&!(pn.body instanceof Blob))throw new Error("Response is not a Blob.");return pn.body}));case"text":return Mn.pipe((0,ne.T)(pn=>{if(null!==pn.body&&"string"!=typeof pn.body)throw new Error("Response is not a string.");return pn.body}));default:return Mn.pipe((0,ne.T)(pn=>pn.body))}case"response":return Mn;default:throw new Error("Unreachable: unhandled observe type ".concat(an.observe,"}"))}}delete(It,Ut={}){return this.request("DELETE",It,Ut)}get(It,Ut={}){return this.request("GET",It,Ut)}head(It,Ut={}){return this.request("HEAD",It,Ut)}jsonp(It,Ut){return this.request("JSONP",It,{params:(new S).append(Ut,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(It,Ut={}){return this.request("OPTIONS",It,Ut)}patch(It,Ut,an={}){return this.request("PATCH",It,ze(an,Ut))}post(It,Ut,an={}){return this.request("POST",It,ze(an,Ut))}put(It,Ut,an={}){return this.request("PUT",It,ze(an,Ut))}}return(We=gt).\u0275fac=function(It){return new(It||We)(p.KVO(le))},We.\u0275prov=p.jDH({token:We,factory:We.\u0275fac}),gt})();function L(We,gt){return gt(We)}function G(We,gt){return(wt,It)=>gt.intercept(wt,{handle:Ut=>We(Ut,It)})}const ce=new p.nKC(""),Be=new p.nKC(""),qe=new p.nKC(""),ut=new p.nKC("");function je(){let We=null;return(gt,wt)=>{var It;null===We&&(We=(null!==(It=(0,p.WQX)(ce,{optional:!0}))&&void 0!==It?It:[]).reduceRight(G,L));const Ut=(0,p.WQX)(p.TgB),an=Ut.add();return We(gt,wt).pipe((0,te.j)(()=>Ut.remove(an)))}}let zt=(()=>{var We;class gt extends le{constructor(It,Ut){super(),this.backend=It,this.injector=Ut,this.chain=null,this.pendingTasks=(0,p.WQX)(p.TgB);const an=(0,p.WQX)(ut,{optional:!0});this.backend=null!=an?an:It}handle(It){if(null===this.chain){const an=Array.from(new Set([...this.injector.get(Be),...this.injector.get(qe,[])]));this.chain=an.reduceRight((bn,mn)=>function K(We,gt,wt){return(It,Ut)=>(0,p.N4e)(wt,()=>gt(It,an=>We(an,Ut)))}(bn,mn,this.injector),L)}const Ut=this.pendingTasks.add();return this.chain(It,an=>this.backend.handle(an)).pipe((0,te.j)(()=>this.pendingTasks.remove(Ut)))}}return(We=gt).\u0275fac=function(It){return new(It||We)(p.KVO(Q),p.KVO(p.uvJ))},We.\u0275prov=p.jDH({token:We,factory:We.\u0275fac}),gt})();const Sn=/^\)\]\}',?\n/;let On=(()=>{var We;class gt{constructor(It){this.xhrFactory=It}handle(It){if("JSONP"===It.method)throw new p.wOt(-2800,!1);const Ut=this.xhrFactory;return(Ut.\u0275loadImpl?(0,U.H)(Ut.\u0275loadImpl()):(0,E.of)(null)).pipe((0,me.n)(()=>new v.c(bn=>{const mn=Ut.build();if(mn.open(It.method,It.urlWithParams),It.withCredentials&&(mn.withCredentials=!0),It.headers.forEach((nr,lr)=>mn.setRequestHeader(nr,lr.join(","))),It.headers.has("Accept")||mn.setRequestHeader("Accept","application/json, text/plain, */*"),!It.headers.has("Content-Type")){const nr=It.detectContentTypeHeader();null!==nr&&mn.setRequestHeader("Content-Type",nr)}if(It.responseType){const nr=It.responseType.toLowerCase();mn.responseType="json"!==nr?nr:"text"}const Mn=It.serializeBody();let pn=null;const mr=()=>{if(null!==pn)return pn;const nr=mn.statusText||"OK",lr=new z(mn.getAllResponseHeaders()),di=function Ht(We){return"responseURL"in We&&We.responseURL?We.responseURL:/^X-Request-URL:/m.test(We.getAllResponseHeaders())?We.getResponseHeader("X-Request-URL"):null}(mn)||It.url;return pn=new it({headers:lr,status:mn.status,statusText:nr,url:di}),pn},_i=()=>{let{headers:nr,status:lr,statusText:di,url:Gr}=mr(),Dn=null;lr!==ye.NoContent&&(Dn=typeof mn.response>"u"?mn.responseText:mn.response),0===lr&&(lr=Dn?ye.Ok:0);let si=lr>=200&&lr<300;if("json"===It.responseType&&"string"==typeof Dn){const Ni=Dn;Dn=Dn.replace(Sn,"");try{Dn=""!==Dn?JSON.parse(Dn):null}catch(dt){Dn=Ni,si&&(si=!1,Dn={error:dt,text:Dn})}}si?(bn.next(new Ze({body:Dn,headers:nr,status:lr,statusText:di,url:Gr||void 0})),bn.complete()):bn.error(new we({error:Dn,headers:nr,status:lr,statusText:di,url:Gr||void 0}))},jr=nr=>{const{url:lr}=mr(),di=new we({error:nr,status:mn.status||0,statusText:mn.statusText||"Unknown Error",url:lr||void 0});bn.error(di)};let yr=!1;const Wr=nr=>{yr||(bn.next(mr()),yr=!0);let lr={type:He.DownloadProgress,loaded:nr.loaded};nr.lengthComputable&&(lr.total=nr.total),"text"===It.responseType&&mn.responseText&&(lr.partialText=mn.responseText),bn.next(lr)},Vr=nr=>{let lr={type:He.UploadProgress,loaded:nr.loaded};nr.lengthComputable&&(lr.total=nr.total),bn.next(lr)};return mn.addEventListener("load",_i),mn.addEventListener("error",jr),mn.addEventListener("timeout",jr),mn.addEventListener("abort",jr),It.reportProgress&&(mn.addEventListener("progress",Wr),null!==Mn&&mn.upload&&mn.upload.addEventListener("progress",Vr)),mn.send(Mn),bn.next({type:He.Sent}),()=>{mn.removeEventListener("error",jr),mn.removeEventListener("abort",jr),mn.removeEventListener("load",_i),mn.removeEventListener("timeout",jr),It.reportProgress&&(mn.removeEventListener("progress",Wr),null!==Mn&&mn.upload&&mn.upload.removeEventListener("progress",Vr)),mn.readyState!==mn.DONE&&mn.abort()}})))}}return(We=gt).\u0275fac=function(It){return new(It||We)(p.KVO(Z.N0))},We.\u0275prov=p.jDH({token:We,factory:We.\u0275fac}),gt})();const Gn=new p.nKC(""),qn=new p.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Qn=new p.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Rr{}let Pn=(()=>{var We;class gt{constructor(It,Ut,an){this.doc=It,this.platform=Ut,this.cookieName=an,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const It=this.doc.cookie||"";return It!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Z._b)(It,this.cookieName),this.lastCookieString=It),this.lastToken}}return(We=gt).\u0275fac=function(It){return new(It||We)(p.KVO(Z.qQ),p.KVO(p.Agw),p.KVO(qn))},We.\u0275prov=p.jDH({token:We,factory:We.\u0275fac}),gt})();function Dt(We,gt){const wt=We.url.toLowerCase();if(!(0,p.WQX)(Gn)||"GET"===We.method||"HEAD"===We.method||wt.startsWith("http://")||wt.startsWith("https://"))return gt(We);const It=(0,p.WQX)(Rr).getToken(),Ut=(0,p.WQX)(Qn);return null!=It&&!We.headers.has(Ut)&&(We=We.clone({headers:We.headers.set(Ut,It)})),gt(We)}var Je=function(We){return We[We.Interceptors=0]="Interceptors",We[We.LegacyInterceptors=1]="LegacyInterceptors",We[We.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",We[We.NoXsrfProtection=3]="NoXsrfProtection",We[We.JsonpSupport=4]="JsonpSupport",We[We.RequestsMadeViaParent=5]="RequestsMadeViaParent",We[We.Fetch=6]="Fetch",We}(Je||{});function ot(We,gt){return{\u0275kind:We,\u0275providers:gt}}function et(...We){const gt=[Ye,On,zt,{provide:le,useExisting:zt},{provide:Q,useExisting:On},{provide:Be,useValue:Dt,multi:!0},{provide:Gn,useValue:!0},{provide:Rr,useClass:Pn}];for(const wt of We)gt.push(...wt.\u0275providers);return(0,p.EmA)(gt)}const xt=new p.nKC("");let zr=(()=>{var We;class gt{}return(We=gt).\u0275fac=function(It){return new(It||We)},We.\u0275mod=p.$C({type:We}),We.\u0275inj=p.G2t({providers:[et(ot(Je.LegacyInterceptors,[{provide:xt,useFactory:je},{provide:Be,useExisting:xt,multi:!0}]))]}),gt})();const Dr="b",Tn="h",fr="s",mo="st",no="u",Ai="rt",Pi=new p.nKC(""),gr=["GET","HEAD"];function vo(We,gt){var wt;const{isCacheActive:It,...Ut}=(0,p.WQX)(Pi),{transferCache:an,method:bn}=We;if(!It||"POST"===bn&&!Ut.includePostRequests&&!an||"POST"!==bn&&!gr.includes(bn)||!1===an||!1===(null===(wt=Ut.filter)||void 0===wt?void 0:wt.call(Ut,We)))return gt(We);const mn=(0,p.WQX)(p.pJN),Mn=function ni(We){const{params:gt,method:wt,responseType:It,url:Ut}=We,an=Fi(gt);let bn=We.serializeBody();bn instanceof URLSearchParams?bn=Fi(bn):"string"!=typeof bn&&(bn="");const Mn=function oi(We){let gt=0;for(const wt of We)gt=Math.imul(31,gt)+wt.charCodeAt(0)|0;return gt+=2147483648,gt.toString()}([wt,It,Ut,bn,an].join("|"));return(0,p.zw6)(Mn)}(We),pn=mn.get(Mn,null);let mr=Ut.includeHeaders;if("object"==typeof an&&an.includeHeaders&&(mr=an.includeHeaders),pn){const{[Dr]:yr,[Ai]:Wr,[Tn]:Vr,[fr]:nr,[mo]:lr,[no]:di}=pn;let Gr=yr;switch(Wr){case"arraybuffer":Gr=(new TextEncoder).encode(yr).buffer;break;case"blob":Gr=new Blob([yr])}let Dn=new z(Vr);return(0,E.of)(new Ze({body:Gr,headers:Dn,status:nr,statusText:lr,url:di}))}const jr=(0,Z.Vy)((0,p.WQX)(p.Agw));return gt(We).pipe((0,V.M)(yr=>{yr instanceof Ze&&jr&&mn.set(Mn,{[Dr]:yr.body,[Tn]:ro(yr.headers,mr),[fr]:yr.status,[mo]:yr.statusText,[no]:yr.url||"",[Ai]:We.responseType})}))}function ro(We,gt){if(!gt)return{};const wt={};for(const It of gt){const Ut=We.getAll(It);null!==Ut&&(wt[It]=Ut)}return wt}function Fi(We){return[...We.keys()].sort().map(gt=>"".concat(gt,"=").concat(We.getAll(gt))).join("&")}function uo(We){return[{provide:Pi,useFactory:()=>((0,p.ngT)("NgHttpTransferCache"),{isCacheActive:!0,...We})},{provide:qe,useValue:vo,multi:!0,deps:[p.pJN,Pi]},{provide:p.iLQ,multi:!0,useFactory:()=>{const gt=(0,p.WQX)(p.o8S),wt=(0,p.WQX)(Pi);return()=>{(0,p.zuW)(gt).then(()=>{wt.isCacheActive=!1})}}}]}},4438:(ee,_,c)=>{"use strict";function p(e,t){return Object.is(e,t)}c.d(_,{bc$:()=>gp,iLQ:()=>p_,sZ2:()=>Ef,hnV:()=>TS,Hbi:()=>JM,o8S:()=>zu,BIS:()=>mp,gRc:()=>BS,Ql9:()=>SM,OM3:()=>Jf,Ocv:()=>MM,abz:()=>xa,Z63:()=>zo,aKT:()=>Au,uvJ:()=>ui,zcH:()=>Ss,bkB:()=>Us,y_5:()=>Vs,$GK:()=>ct,nKC:()=>Ut,zZn:()=>rs,_q3:()=>S_,MKu:()=>b_,xe9:()=>Mg,Co$:()=>_y,Vns:()=>$l,SKi:()=>Mo,Xx1:()=>Os,Agw:()=>Dc,PLl:()=>bl,rOR:()=>vl,sFG:()=>dT,_9s:()=>OE,czy:()=>cs,WPN:()=>cu,kdw:()=>fs,C4Q:()=>Gf,NYb:()=>mM,giA:()=>bS,pJN:()=>wu,RxE:()=>mS,c1b:()=>ig,gXe:()=>xr,mal:()=>LE,Af3:()=>M,tdH:()=>pT,L39:()=>Ow,EWP:()=>Pw,Ol2:()=>yv,w6W:()=>cD,oH4:()=>xS,QZP:()=>mb,SmG:()=>kM,Rfq:()=>Dt,WQX:()=>Yn,naY:()=>xM,Hps:()=>gv,QuC:()=>as,EmA:()=>Ke,zw6:()=>Ep,fpN:()=>XM,HJs:()=>xw,N4e:()=>Xn,vPA:()=>ey,O8t:()=>Mw,An2:()=>eg,H3F:()=>vS,H8p:()=>hi,KH2:()=>pd,TgB:()=>Yc,wOt:()=>mt,WHO:()=>CS,e01:()=>SS,lNU:()=>je,h9k:()=>Fp,$MX:()=>Fc,ZF7:()=>ku,Kcf:()=>dm,e5t:()=>pm,UyX:()=>hm,cWb:()=>fm,osQ:()=>Jn,H5H:()=>Gv,Zy3:()=>Nt,mq5:()=>I0,JZv:()=>Ht,LfX:()=>ni,plB:()=>Ku,jNT:()=>f_,zjR:()=>IS,ngT:()=>Ca,TL$:()=>Tc,Tbb:()=>Kn,zUL:()=>Rr,rcV:()=>_a,zuW:()=>PS,M8M:()=>gw,Vt3:()=>vv,Mj6:()=>mi,GFd:()=>vy,OA$:()=>Zs,Jv_:()=>BC,aNF:()=>jC,R7$:()=>X_,BMQ:()=>wv,HbH:()=>s0,ZvI:()=>h0,ZWY:()=>p0,ee0:()=>g0,AVh:()=>Uv,wni:()=>hC,VBU:()=>Ns,FsC:()=>Ys,jDH:()=>gr,G2t:()=>ro,$C:()=>ns,EJ8:()=>Wo,rXU:()=>Hc,nrm:()=>Hv,eu8:()=>Wv,bVm:()=>yg,qex:()=>Eg,k0s:()=>_g,j41:()=>vg,RV6:()=>C0,xGo:()=>hl,KVO:()=>hr,kS0:()=>pl,QTQ:()=>Z_,bIt:()=>Yv,lsd:()=>mC,XpG:()=>tC,nI1:()=>JC,bMT:()=>ZC,i5U:()=>qC,SdG:()=>rC,NAR:()=>nC,Y8G:()=>xv,lJ4:()=>KC,eq3:()=>HC,l_i:()=>WC,mGM:()=>gC,sdS:()=>vC,Njj:()=>Ah,eBV:()=>Pd,npT:()=>jc,f$h:()=>Rf,B4B:()=>wf,n$t:()=>jp,wjB:()=>VC,Aen:()=>Sa,xc7:()=>Fv,DNE:()=>Xc,C5r:()=>eS,EFF:()=>OC,JRh:()=>Zv,SpI:()=>Tg,DH7:()=>FC,mxI:()=>e_,R50:()=>qv,GBs:()=>pC}),c(467);let E=null,v=!1,U=1;const $=Symbol("SIGNAL");function B(e){const t=E;return E=e,t}const V={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 Z(e){if(v)throw new Error("");if(null===E)return;E.consumerOnSignalRead(e);const t=E.nextProducerIndex++;W(E),t<E.producerNode.length&&E.producerNode[t]!==e&&N(E)&&S(E.producerNode[t],E.producerIndexOfThis[t]),E.producerNode[t]!==e&&(E.producerNode[t]=e,E.producerIndexOfThis[t]=N(E)?I(e,E,t):0),E.producerLastReadVersion[t]=e.version}function Q(e){if((!N(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==U)){if(!e.producerMustRecompute(e)&&!w(e))return e.dirty=!1,void(e.lastCleanEpoch=U);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=U}}function z(e){if(void 0===e.liveConsumerNode)return;const t=v;v=!0;try{for(const n of e.liveConsumerNode)n.dirty||ve(n)}finally{v=t}}function Y(){var e;return!1!==(null===(e=E)||void 0===e?void 0:e.consumerAllowSignalWrites)}function ve(e){var t;e.dirty=!0,z(e),null===(t=e.consumerMarkedDirty)||void 0===t||t.call(e,e)}function pe(e){return e&&(e.nextProducerIndex=0),B(e)}function fe(e,t){if(B(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(N(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)S(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function w(e){W(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Q(n),r!==n.version))return!0}return!1}function j(e){if(W(e),N(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 I(e,t,n){if(X(e),W(e),0===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=I(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function S(e,t){if(X(e),W(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)S(e.producerNode[r],e.producerIndexOfThis[r]);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 r=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];W(s),s.producerIndexOfThis[r]=t}}function N(e){var t,n;return e.consumerIsAlwaysLive||(null!==(t=null==e||null===(n=e.liveConsumerNode)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0}function W(e){var t,n,r;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(n=e.producerIndexOfThis)&&void 0!==n||(e.producerIndexOfThis=[]),null!==(r=e.producerLastReadVersion)&&void 0!==r||(e.producerLastReadVersion=[])}function X(e){var t,n;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(n=e.liveConsumerIndexOfThis)&&void 0!==n||(e.liveConsumerIndexOfThis=[])}const Ce=Symbol("UNSET"),ue=Symbol("COMPUTING"),ge=Symbol("ERRORED"),De={...V,value:Ce,dirty:!0,error:null,equal:p,producerMustRecompute:e=>e.value===Ce||e.value===ue,producerRecomputeValue(e){if(e.value===ue)throw new Error("Detected cycle in computations.");const t=e.value;e.value=ue;const n=pe(e);let r;try{r=e.computation()}catch(s){r=ge,e.error=s}finally{fe(e,n)}t!==Ce&&t!==ge&&r!==ge&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let Oe=function He(){throw new Error};function it(){Oe()}let we=null;function be(e,t){Y()||it(),e.equal(e.value,t)||(e.value=t,function Ne(e){var t;e.version++,function le(){U++}(),z(e),null===(t=we)||void 0===t||t()}(e))}const he={...V,equal:p,value:void 0};const R=()=>{},A={...V,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:R};var G=c(1413),K=c(8359),ce=c(4412),Be=c(6354),qe=c(1594);const je="https://g.co/ng/security#xss";class mt extends Error{constructor(t,n){super(Nt(t,n)),this.code=t}}function Nt(e,t){const n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}function yn(e){return{toString:e}.toString()}const Wt="__parameters__";function jn(e,t,n){return yn(()=>{const r=function tn(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...f){if(this instanceof s)return r.apply(this,f),this;const g=new s(...f);return C.annotation=g,C;function C(P,re,Se){const xe=P.hasOwnProperty(Wt)?P[Wt]:Object.defineProperty(P,Wt,{value:[]})[Wt];for(;xe.length<=Se;)xe.push(null);return(xe[Se]=xe[Se]||[]).push(g),P}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const Ht=globalThis;function $n(e){for(let t in e)if(e[t]===$n)return t;throw Error("Could not find renamed property on target object.")}function qn(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Kn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Kn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(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 Qn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}function Rr(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 Pn=$n({__forward_ref__:$n});function Dt(e){return e.__forward_ref__=Dt,e.toString=function(){return Kn(this())},e}function ke(e){return Je(e)?e():e}function Je(e){return"function"==typeof e&&e.hasOwnProperty(Pn)&&e.__forward_ref__===Dt}function gr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ro(e){return{providers:e.providers||[],imports:e.imports||[]}}function Fi(e){return oi(e,We)||oi(e,wt)}function ni(e){return null!==Fi(e)}function oi(e,t){return e.hasOwnProperty(t)?e[t]:null}function Nn(e){return e&&(e.hasOwnProperty(gt)||e.hasOwnProperty(It))?e[gt]:null}const We=$n({\u0275prov:$n}),gt=$n({\u0275inj:$n}),wt=$n({ngInjectableDef:$n}),It=$n({ngInjectorDef:$n});class Ut{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=gr({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return"InjectionToken ".concat(this._desc)}}function Vr(e){return e&&!!e.\u0275providers}const nr=$n({\u0275cmp:$n}),lr=$n({\u0275dir:$n}),di=$n({\u0275pipe:$n}),Gr=$n({\u0275mod:$n}),Dn=$n({\u0275fac:$n}),si=$n({__NG_ELEMENT_ID__:$n}),Ni=$n({__NG_ENV_ID__:$n});function dt(e){return"string"==typeof e?e:null==e?"":String(e)}function Et(e,t){throw new mt(-201,!1)}var ct=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(ct||{});let Lt;function Qt(){return Lt}function rn(e){const t=Lt;return Lt=e,t}function zn(e,t,n){const r=Fi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&ct.Optional?null:void 0!==t?t:void Et()}const T={},de="__NG_DI_FLAG__",Ae="ngTempTokenPath",At=/\n/gm,gn="__source";let En;function In(e){const t=En;return En=e,t}function Mr(e,t=ct.Default){if(void 0===En)throw new mt(-203,!1);return null===En?zn(e,void 0,t):En.get(e,t&ct.Optional?null:void 0,t)}function hr(e,t=ct.Default){return(Qt()||Mr)(ke(e),t)}function Yn(e,t=ct.Default){return hr(e,Pr(t))}function Pr(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function io(e){const t=[];for(let n=0;n<e.length;n++){const r=ke(e[n]);if(Array.isArray(r)){if(0===r.length)throw new mt(900,!1);let s,f=ct.Default;for(let g=0;g<r.length;g++){const C=r[g],P=Da(C);"number"==typeof P?-1===P?s=C.token:f|=P:s=C}t.push(hr(s,f))}else t.push(hr(r))}return t}function Ui(e,t){return e[de]=t,e.prototype[de]=t,e}function Da(e){return e[de]}const Vs=Ui(jn("Inject",e=>({token:e})),-1),Os=Ui(jn("Optional"),8),fs=Ui(jn("SkipSelf"),4);function lo(e,t){return e.hasOwnProperty(Dn)?e[Dn]:null}function wo(e,t){e.forEach(n=>Array.isArray(n)?wo(n,t):t(n))}function es(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function os(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Zr(e,t,n){let r=Ei(e,t);return r>=0?e[1|r]=n:(r=~r,function Ro(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Zi(e,t){const n=Ei(e,t);if(n>=0)return e[1|n]}function Ei(e,t){return function ss(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const f=r+(s-r>>1),g=e[f<<n];if(t===g)return f<<n;g>t?s=f:r=f+1}return~(s<<n)}(e,t,1)}const No={},Or=[],zo=new Ut(""),Hs=new Ut("",-1),Lo=new Ut("");class $o{get(t,n=T){if(n===T){const r=new Error("NullInjectorError: No provider for ".concat(Kn(t),"!"));throw r.name="NullInjectorError",r}return n}}var ps=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(ps||{}),xr=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(xr||{}),mi=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(mi||{});function co(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const f=t.length;if(s+f===r||e.charCodeAt(s+f)<=32)return s}n=s+1}}function Ko(e,t,n){let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const f=n[r++],g=n[r++],C=n[r++];e.setAttribute(t,g,C,f)}else{const f=s,g=n[++r];ms(f)?e.setProperty(t,f,g):e.setAttribute(t,f,g),r++}}return r}function gs(e){return 3===e||4===e||6===e}function ms(e){return 64===e.charCodeAt(0)}function Qo(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||Ws(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function Ws(e,t,n,r,s){let f=0,g=e.length;if(-1===t)g=-1;else for(;f<e.length;){const C=e[f++];if("number"==typeof C){if(C===t){g=-1;break}if(C>t){g=f-1;break}}}for(;f<e.length;){const C=e[f];if("number"==typeof C)break;if(C===n){if(null===r)return void(null!==s&&(e[f+1]=s));if(r===e[f+1])return void(e[f+2]=s)}f++,null!==r&&f++,null!==s&&f++}-1!==g&&(e.splice(g,0,t),f=g+1),e.splice(f++,0,n),null!==r&&e.splice(f++,0,r),null!==s&&e.splice(f++,0,s)}const Ps="ng-template";function Ms(e,t,n,r){let s=0;if(r){for(;s<t.length&&"string"==typeof t[s];s+=2)if("class"===t[s]&&-1!==co(t[s+1].toLowerCase(),n,0))return!0}else if(Gs(e))return!1;if(s=t.indexOf(1,s),s>-1){let f;for(;++s<t.length&&"string"==typeof(f=t[s]);)if(f.toLowerCase()===n)return!0}return!1}function Gs(e){return 4===e.type&&e.value!==Ps}function fo(e,t,n){return t===(4!==e.type||n?e.value:Ps)}function ts(e,t,n){let r=4;const s=e.attrs,f=null!==s?function ai(e){for(let t=0;t<e.length;t++)if(gs(e[t]))return t;return e.length}(s):0;let g=!1;for(let C=0;C<t.length;C++){const P=t[C];if("number"!=typeof P){if(!g)if(4&r){if(r=2|1&r,""!==P&&!fo(e,P,n)||""===P&&1===t.length){if(Bi(r))return!1;g=!0}}else if(8&r){if(null===s||!Ms(e,s,P,n)){if(Bi(r))return!1;g=!0}}else{const re=t[++C],Se=Ho(P,s,Gs(e),n);if(-1===Se){if(Bi(r))return!1;g=!0;continue}if(""!==re){let xe;if(xe=Se>f?"":s[Se+1].toLowerCase(),2&r&&re!==xe){if(Bi(r))return!1;g=!0}}}}else{if(!g&&!Bi(r)&&!Bi(P))return!1;if(g&&Bi(P))continue;g=!1,r=P|1&r}}return Bi(r)||g}function Bi(e){return!(1&e)}function Ho(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let f=!1;for(;s<t.length;){const g=t[s];if(g===e)return s;if(3===g||6===g)f=!0;else{if(1===g||2===g){let C=t[++s];for(;"string"==typeof C;)C=t[++s];continue}if(4===g)break;if(0===g){s+=4;continue}}s+=f?1:2}return-1}return function vs(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 _o(e,t,n=!1){for(let r=0;r<t.length;r++)if(ts(e,t[r],n))return!0;return!1}function zs(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function ws(e,t){return e?":not("+t.trim()+")":t}function la(e){let t=e[0],n=1,r=2,s="",f=!1;for(;n<e.length;){let g=e[n];if("string"==typeof g)if(2&r){const C=e[++n];s+="["+g+(C.length>0?'="'+C+'"':"")+"]"}else 8&r?s+="."+g:4&r&&(s+=" "+g);else""!==s&&!Bi(g)&&(t+=ws(f,s),s=""),r=g,f=f||!Bi(r);n++}return""!==s&&(t+=ws(f,s)),t}function Ns(e){return yn(()=>{var t;const n=Pe(e),r={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ps.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||xr.Emulated,styles:e.styles||Or,_:null,schemas:e.schemas||null,tView:null,id:""};y(r);const s=e.dependencies;return r.directiveDefs=x(s,!1),r.pipeDefs=x(s,!0),r.id=function Me(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 s of n)t=Math.imul(31,t)+s.charCodeAt(0)|0;return t+=2147483648,"c"+t}(r),r})}function _s(e){return vr(e)||yi(e)}function Qs(e){return null!==e}function ns(e){return yn(()=>({type:e.type,bootstrap:e.bootstrap||Or,declarations:e.declarations||Or,imports:e.imports||Or,exports:e.exports||Or,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function xo(e,t){if(null==e)return No;const n={};for(const s in e)if(e.hasOwnProperty(s)){const f=e[s];let g,C,P=mi.None;var r;Array.isArray(f)?(P=f[0],g=f[1],C=null!==(r=f[2])&&void 0!==r?r:g):(g=f,C=f),t?(n[g]=P!==mi.None?[s,P]:s,t[g]=C):n[g]=s}return n}function Ys(e){return yn(()=>{const t=Pe(e);return y(t),t})}function Wo(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 vr(e){return e[nr]||null}function yi(e){return e[lr]||null}function fi(e){return e[di]||null}function as(e){const t=vr(e)||yi(e)||fi(e);return null!==t&&t.standalone}function Gi(e,t){const n=e[Gr]||null;if(!n&&!0===t)throw new Error("Type ".concat(Kn(e)," does not have '\u0275mod' property."));return n}function Pe(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||No,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Or,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:xo(e.inputs,t),outputs:xo(e.outputs),debugInfo:null}}function y(e){var t;null===(t=e.features)||void 0===t||t.forEach(n=>n(e))}function x(e,t){if(!e)return null;const n=t?fi:_s;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Qs)}function Ke(e){return{\u0275providers:e}}function vt(...e){return{\u0275providers:St(0,e),\u0275fromNgModule:!0}}function St(e,...t){const n=[],r=new Set;let s;const f=g=>{n.push(g)};return wo(t,g=>{const C=g;Yt(C,f,[],r)&&(s||(s=[]),s.push(C))}),void 0!==s&&kt(s,f),n}function kt(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:s}=e[n];Fn(s,f=>{t(f,r)})}}function Yt(e,t,n,r){if(!(e=ke(e)))return!1;let s=null,f=Nn(e);const g=!f&&vr(e);if(f||g){if(g&&!g.standalone)return!1;s=e}else{const P=e.ngModule;if(f=Nn(P),!f)return!1;s=P}const C=r.has(s);if(g){if(C)return!1;if(r.add(s),g.dependencies){const P="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const re of P)Yt(re,t,n,r)}}else{if(!f)return!1;{if(null!=f.imports&&!C){let re;r.add(s);try{wo(f.imports,Se=>{Yt(Se,t,n,r)&&(re||(re=[]),re.push(Se))})}finally{}void 0!==re&&kt(re,t)}if(!C){const re=lo(s)||(()=>new s);t({provide:s,useFactory:re,deps:Or},s),t({provide:Lo,useValue:s,multi:!0},s),t({provide:zo,useValue:()=>hr(s),multi:!0},s)}const P=f.providers;if(null!=P&&!C){const re=e;Fn(P,Se=>{t(Se,re)})}}}return s!==e&&void 0!==e.providers}function Fn(e,t){for(let n of e)Vr(n)&&(n=n.\u0275providers),Array.isArray(n)?Fn(n,t):t(n)}const Tr=$n({provide:String,useValue:$n});function _r(e){return null!==e&&"object"==typeof e&&Tr in e}function Qr(e){return"function"==typeof e}const hi=new Ut(""),pi={},zi={};let ko;function Eo(){return void 0===ko&&(ko=new $o),ko}class ui{}class Li extends ui{get destroyed(){return this._destroyed}constructor(t,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,wn(t,g=>this.processProvider(g)),this.records.set(Hs,ji(void 0,this)),s.has("environment")&&this.records.set(ui,ji(void 0,this));const f=this.records.get(hi);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(Lo,Or,ct.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=B(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),B(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=In(this),r=rn(void 0);try{return t()}finally{In(n),rn(r)}}get(t,n=T,r=ct.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Ni))return t[Ni](this);r=Pr(r);const f=In(this),g=rn(void 0);try{if(!(r&ct.SkipSelf)){let P=this.records.get(t);if(void 0===P){const re=function Hn(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ut}(t)&&Fi(t);P=re&&this.injectableDefInScope(re)?ji(oo(t),pi):null,this.records.set(t,P)}if(null!=P)return this.hydrate(t,P)}return(r&ct.Self?Eo():this.parent).get(t,n=r&ct.Optional&&n===T?null:n)}catch(C){if("NullInjectorError"===C.name){if((C[Ae]=C[Ae]||[]).unshift(Kn(t)),f)throw C;return function Oa(e,t,n,r){const s=e[Ae];throw t[gn]&&s.unshift(t[gn]),e.message=function is(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=Kn(t);if(Array.isArray(t))s=t.map(Kn).join(" -> ");else if("object"==typeof t){let f=[];for(let g in t)if(t.hasOwnProperty(g)){let C=t[g];f.push(g+":"+("string"==typeof C?JSON.stringify(C):Kn(C)))}s="{".concat(f.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(s,"]: ").concat(e.replace(At,"\n "))}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[Ae]=null,e}(C,t,"R3InjectorError",this.source)}throw C}finally{rn(g),In(f)}}resolveInjectorInitializers(){const t=B(null),n=In(this),r=rn(void 0);try{const f=this.get(zo,Or,ct.Self);for(const g of f)g()}finally{In(n),rn(r),B(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Kn(r));return"R3Injector[".concat(t.join(", "),"]")}assertNotDestroyed(){if(this._destroyed)throw new mt(205,!1)}processProvider(t){let n=Qr(t=ke(t))?t:ke(t&&t.provide);const r=function Xs(e){return _r(e)?ji(void 0,e.useValue):ji(yo(e),pi)}(t);if(!Qr(t)&&!0===t.multi){let s=this.records.get(n);s||(s=ji(void 0,pi,!0),s.factory=()=>io(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=B(null);try{return n.value===pi&&(n.value=zi,n.value=n.factory()),"object"==typeof n.value&&n.value&&function us(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{B(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=ke(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function oo(e){const t=Fi(e),n=null!==t?t.factory:lo(e);if(null!==n)return n;if(e instanceof Ut)throw new mt(204,!1);if(e instanceof Function)return function so(e){if(e.length>0)throw new mt(204,!1);const n=function uo(e){return e&&(e[We]||e[wt])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new mt(204,!1)}function yo(e,t,n){let r;if(Qr(e)){const s=ke(e);return lo(s)||oo(s)}if(_r(e))r=()=>ke(e.useValue);else if(function ur(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...io(e.deps||[]));else if(function Zn(e){return!(!e||!e.useExisting)}(e))r=()=>hr(ke(e.useExisting));else{const s=ke(e&&(e.useClass||e.provide));if(!function Js(e){return!!e.deps}(e))return lo(s)||oo(s);r=()=>new s(...io(e.deps))}return r}function ji(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function wn(e,t){for(const n of e)Array.isArray(n)?wn(n,t):n&&Vr(n)?wn(n.\u0275providers,t):t(n)}function Xn(e,t){e instanceof Li&&e.assertNotDestroyed();const r=In(e),s=rn(void 0);try{return t()}finally{In(r),rn(s)}}function Er(){return void 0!==Qt()||null!=function tr(){return En}()}function M(e){if(!Er())throw new mt(-203,!1)}const Cr=0,_n=1,Wn=2,$r=3,Qi=4,xi=5,ao=6,da=7,Di=8,Yi=9,Ao=10,pr=11,Wa=12,pu=13,Po=14,rt=15,Le=16,Qe=17,$e=18,bt=19,on=20,Ln=21,ei=22,Mi=23,ir=25,Xi=1,Ls=6,Yo=7,ls=9,li=10;var Pa=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Pa||{});function ho(e){return Array.isArray(e)&&"object"==typeof e[Xi]}function qi(e){return Array.isArray(e)&&!0===e[Xi]}function gu(e){return!!(4&e.flags)}function fa(e){return e.componentOffset>-1}function mu(e){return!(1&~e.flags)}function Si(e){return!!e.template}function vu(e){return!!(512&e[Wn])}class Co{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Es(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Zs(){return ha}function ha(e){return e.type.prototype.ngOnChanges&&(e.setInput=wa),Ma}function Ma(){const e=Ra(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===No)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function wa(e,t,n,r,s){const f=this.declaredInputs[r],g=Ra(e)||function Bg(e,t){return e[Xu]=t}(e,{previous:No,current:null}),C=g.current||(g.current={}),P=g.previous,re=P[f];C[f]=new Co(re&&re.currentValue,n,P===No),Es(e,t,s,n)}Zs.ngInherit=!0;const Xu="__ngSimpleChanges__";function Ra(e){return e[Xu]||null}const qs=function(e,t,n){};let Sd=!1;function ci(e){for(;Array.isArray(e);)e=e[Cr];return e}function Eu(e,t){return ci(t[e])}function Xo(e,t){return ci(t[e.index])}function Zu(e,t){return e.data[t]}function za(e,t){return e[t]}function So(e,t){const n=t[e];return ho(n)?n:n[Cr]}function Na(e){return!(128&~e[Wn])}function xs(e,t){return null==t?null:e[t]}function qu(e){e[Qe]=0}function Id(e){1024&e[Wn]||(e[Wn]|=1024,Na(e)&&Ya(e))}function Qa(e){var t;return!!(9216&e[Wn]||null!==(t=e[Mi])&&void 0!==t&&t.dirty)}function ql(e){var t;if(null===(t=e[Ao].changeDetectionScheduler)||void 0===t||t.notify(1),Qa(e))Ya(e);else if(64&e[Wn])if(function Th(){return Sd}())e[Wn]|=1024,Ya(e);else{var n;null===(n=e[Ao].changeDetectionScheduler)||void 0===n||n.notify()}}function Ya(e){var t;null===(t=e[Ao].changeDetectionScheduler)||void 0===t||t.notify();let n=Xa(e);for(;null!==n&&!(8192&n[Wn])&&(n[Wn]|=8192,Na(n));)n=Xa(n)}function el(e,t){if(!(256&~e[Wn]))throw new mt(911,!1);null===e[Ln]&&(e[Ln]=[]),e[Ln].push(t)}function Xa(e){const t=e[$r];return qi(t)?t[$r]:t}const br={lFrame:Ld(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ec(){return br.bindingsEnabled}function Za(){return null!==br.skipHydrationRootTNode}function Zt(){return br.lFrame.lView}function kr(){return br.lFrame.tView}function Pd(e){return br.lFrame.contextLView=e,e[Di]}function Ah(e){return br.lFrame.contextLView=null,e}function bi(){let e=Ph();for(;null!==e&&64===e.type;)e=e.parent;return e}function Ph(){return br.lFrame.currentTNode}function ys(e,t){const n=br.lFrame;n.currentTNode=e,n.isParent=t}function tc(){return br.lFrame.isParent}function nc(){br.lFrame.isParent=!1}function po(){const e=br.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ta(){return br.lFrame.bindingIndex}function ks(){return br.lFrame.bindingIndex++}function na(e){const t=br.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Hg(e,t){const n=br.lFrame;n.bindingIndex=n.bindingRootIndex=e,tl(t)}function tl(e){br.lFrame.currentDirectiveIndex=e}function nl(){return br.lFrame.currentQueryIndex}function oc(e){br.lFrame.currentQueryIndex=e}function Rh(e){const t=e[_n];return 2===t.type?t.declTNode:1===t.type?e[xi]:null}function Nd(e,t,n){if(n&ct.SkipSelf){let s=t,f=e;for(;!(s=s.parent,null!==s||n&ct.Host||(s=Rh(f),null===s||(f=f[Po],10&s.type))););if(null===s)return!1;t=s,e=f}const r=br.lFrame=il();return r.currentTNode=t,r.lView=e,!0}function rl(e){const t=il(),n=e[_n];br.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function il(){const e=br.lFrame,t=null===e?null:e.child;return null===t?Ld(e):t}function Ld(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 xd(){const e=br.lFrame;return br.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Wg=xd;function vi(){const e=xd();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 Go(){return br.lFrame.selectedIndex}function ra(e){br.lFrame.selectedIndex=e}function wi(){const e=br.lFrame;return Zu(e.tView,e.selectedIndex)}function Fd(){return br.lFrame.currentNamespace}let Lh=!0;function sc(){return Lh}function Cs(e){Lh=e}function pa(e,t){for(let re=t.directiveStart,Se=t.directiveEnd;re<Se;re++){const at=e.data[re].type.prototype,{ngAfterContentInit:yt,ngAfterContentChecked:Pt,ngAfterViewInit:Gt,ngAfterViewChecked:hn,ngOnDestroy:vn}=at;var n,r,s,f,g,C,P;yt&&(null!==(n=e.contentHooks)&&void 0!==n?n:e.contentHooks=[]).push(-re,yt),Pt&&((null!==(r=e.contentHooks)&&void 0!==r?r:e.contentHooks=[]).push(re,Pt),(null!==(s=e.contentCheckHooks)&&void 0!==s?s:e.contentCheckHooks=[]).push(re,Pt)),Gt&&(null!==(f=e.viewHooks)&&void 0!==f?f:e.viewHooks=[]).push(-re,Gt),hn&&((null!==(g=e.viewHooks)&&void 0!==g?g:e.viewHooks=[]).push(re,hn),(null!==(C=e.viewCheckHooks)&&void 0!==C?C:e.viewCheckHooks=[]).push(re,hn)),null!=vn&&(null!==(P=e.destroyHooks)&&void 0!==P?P:e.destroyHooks=[]).push(re,vn)}}function Su(e,t,n){ac(e,t,3,n)}function sl(e,t,n,r){(3&e[Wn])===n&&ac(e,t,n,r)}function al(e,t){let n=e[Wn];(3&n)===t&&(n&=16383,n+=1,e[Wn]=n)}function ac(e,t,n,r){const f=null!=r?r:-1,g=t.length-1;let C=0;for(let P=void 0!==r?65535&e[Qe]:0;P<g;P++)if("number"==typeof t[P+1]){if(C=t[P],null!=r&&C>=r)break}else t[P]<0&&(e[Qe]+=65536),(C<f||-1==f)&&(zg(e,n,t,P),e[Qe]=(4294901760&e[Qe])+P+2),P++}function kh(e,t){qs(4,e,t);const n=B(null);try{t.call(e)}finally{B(n),qs(5,e,t)}}function zg(e,t,n,r){const s=n[r]<0,f=n[r+1],C=e[s?-n[r]:n[r]];s?e[Wn]>>14<e[Qe]>>16&&(3&e[Wn])===t&&(e[Wn]+=16384,kh(C,f)):kh(C,f)}const bu=-1;class Iu{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ud(e){return e!==bu}function ll(e){return 32767&e}function cl(e,t){let n=function ri(e){return e>>16}(e),r=t;for(;n>0;)r=r[Po],n--;return r}let Bd=!0;function cc(e){const t=Bd;return Bd=e,t}const Tu=255,Ii=5;let Ar=0;const Fs={};function qa(e,t){const n=jd(e,t);if(-1!==n)return n;const r=t[_n];r.firstCreatePass&&(e.injectorIndex=t.length,dc(r.data,e),dc(t,null),dc(r.blueprint,null));const s=ga(e,t),f=e.injectorIndex;if(Ud(s)){const g=ll(s),C=cl(s,t),P=C[_n].data;for(let re=0;re<8;re++)t[f+re]=C[g+re]|P[g+re]}return t[f+8]=s,f}function dc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function jd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ga(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=Wd(s),null===r)return bu;if(n++,s=s[Po],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return bu}function fc(e,t,n){!function Bh(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(si)&&(r=n[si]),null==r&&(r=n[si]=Ar++);const s=r&Tu;t.data[e+(s>>Ii)]|=1<<s}(e,t,n)}function eu(e,t,n){if(n&ct.Optional||void 0!==e)return e;Et()}function Vd(e,t,n,r){if(n&ct.Optional&&void 0===r&&(r=null),!(n&(ct.Self|ct.Host))){const s=e[Yi],f=rn(void 0);try{return s?s.get(t,r,n&ct.Optional):zn(t,r,n&ct.Optional)}finally{rn(f)}}return eu(r,0,n)}function $d(e,t,n,r=ct.Default,s){if(null!==e){if(2048&t[Wn]&&!(r&ct.Self)){const g=function Kh(e,t,n,r,s){let f=e,g=t;for(;null!==f&&null!==g&&2048&g[Wn]&&!(512&g[Wn]);){const C=dl(f,g,n,r|ct.Self,Fs);if(C!==Fs)return C;let P=f.parent;if(!P){const re=g[on];if(re){const Se=re.get(n,Fs,r);if(Se!==Fs)return Se}P=Wd(g),g=g[Po]}f=P}return s}(e,t,n,r,Fs);if(g!==Fs)return g}const f=dl(e,t,n,r,Fs);if(f!==Fs)return f}return Vd(t,n,r,s)}function dl(e,t,n,r,s){const f=function hc(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(si)?e[si]:void 0;return"number"==typeof t?t>=0?t&Tu:$h:t}(n);if("function"==typeof f){if(!Nd(t,e,r))return r&ct.Host?eu(s,0,r):Vd(t,n,r,s);try{let g;if(g=f(r),null!=g||r&ct.Optional)return g;Et()}finally{Wg()}}else if("number"==typeof f){let g=null,C=jd(e,t),P=bu,re=r&ct.Host?t[rt][xi]:null;for((-1===C||r&ct.SkipSelf)&&(P=-1===C?ga(e,t):t[C+8],P!==bu&&Hd(r,!1)?(g=t[_n],C=ll(P),t=cl(P,t)):C=-1);-1!==C;){const Se=t[_n];if(Kd(f,C,Se.data)){const xe=Vh(C,t,n,g,r,re);if(xe!==Fs)return xe}P=t[C+8],P!==bu&&Hd(r,t[_n].data[C+8]===re)&&Kd(f,C,t)?(g=Se,C=ll(P),t=cl(P,t)):C=-1}}return s}function Vh(e,t,n,r,s,f){const g=t[_n],C=g.data[e+8],Se=fl(C,g,n,null==r?fa(C)&&Bd:r!=g&&!!(3&C.type),s&ct.Host&&f===C);return null!==Se?La(t,g,Se,C):Fs}function fl(e,t,n,r,s){const f=e.providerIndexes,g=t.data,C=1048575&f,P=e.directiveStart,Se=f>>20,at=s?C+Se:e.directiveEnd;for(let yt=r?C:C+Se;yt<at;yt++){const Pt=g[yt];if(yt<P&&n===Pt||yt>=P&&Pt.type===n)return yt}if(s){const yt=g[P];if(yt&&Si(yt)&&yt.type===n)return P}return null}function La(e,t,n,r){let s=e[n];const f=t.data;if(function uc(e){return e instanceof Iu}(s)){const g=s;g.resolving&&function _t(e,t){throw t&&". Dependency path: ".concat(t.join(" > ")," > ").concat(e),new mt(-200,e)}(function jt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():dt(e)}(f[n]));const C=cc(g.canSeeViewProviders);g.resolving=!0;const re=g.injectImpl?rn(g.injectImpl):null;Nd(e,r,ct.Default);try{s=e[n]=g.factory(void 0,f,e,r),t.firstCreatePass&&n>=r.directiveStart&&function xh(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:f}=t.type.prototype;if(r){var g,C;const xe=ha(t);(null!==(g=n.preOrderHooks)&&void 0!==g?g:n.preOrderHooks=[]).push(e,xe),(null!==(C=n.preOrderCheckHooks)&&void 0!==C?C:n.preOrderCheckHooks=[]).push(e,xe)}var P,re,Se;s&&(null!==(P=n.preOrderHooks)&&void 0!==P?P:n.preOrderHooks=[]).push(0-e,s),f&&((null!==(re=n.preOrderHooks)&&void 0!==re?re:n.preOrderHooks=[]).push(e,f),(null!==(Se=n.preOrderCheckHooks)&&void 0!==Se?Se:n.preOrderCheckHooks=[]).push(e,f))}(n,f[n],t)}finally{null!==re&&rn(re),cc(C),g.resolving=!1,Wg()}}return s}function Kd(e,t,n){return!!(n[t+(e>>Ii)]&1<<e)}function Hd(e,t){return!(e&ct.Self||e&ct.Host&&t)}class eo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return $d(this._tNode,this._lView,t,Pr(r),n)}}function $h(){return new eo(bi(),Zt())}function hl(e){return yn(()=>{const t=e.prototype.constructor,n=t[Dn]||pc(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const f=s[Dn]||pc(s);if(f&&f!==n)return f;s=Object.getPrototypeOf(s)}return f=>new f})}function pc(e){return Je(e)?()=>{const t=pc(ke(e));return t&&t()}:lo(e)}function Wd(e){const t=e[_n],n=t.type;return 2===n?t.declTNode:1===n?e[xi]:null}function pl(e){return function jh(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s<r;){const f=n[s];if(gs(f))break;if(0===f)s+=2;else if("number"==typeof f)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(f===t)return n[s+1];s+=2}}}return null}(bi(),e)}function Yd(e,t=null,n=null,r){const s=Xd(e,t,n,r);return s.resolveInjectorInitializers(),s}function Xd(e,t=null,n=null,r,s=new Set){const f=[n||Or,vt(e)];return r=r||("object"==typeof e?void 0:Kn(e)),new Li(f,t||Eo(),r||null,s)}let rs=(()=>{var e;class t{static create(r,s){if(Array.isArray(r))return Yd({name:""},s,r,"");{var f;const g=null!==(f=r.name)&&void 0!==f?f:"";return Yd({name:g},r.parent,r.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=T,e.NULL=new $o,e.\u0275prov=gr({token:e,providedIn:"any",factory:()=>hr(Hs)}),e.__NG_ELEMENT_ID__=-1,t})();function _c(e){return e.ngOriginalError}class Ss{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&_c(t);for(;n&&_c(n);)n=_c(n);return n||null}}const Jd=new Ut("",{providedIn:"root",factory:()=>Yn(Ss).handleError.bind(void 0)});let xa=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=Qh,e.__NG_ENV_ID__=n=>n,t})();class ia extends xa{constructor(t){super(),this._lView=t}onDestroy(t){return el(this._lView,t),()=>function ea(e,t){if(null===e[Ln])return;const n=e[Ln].indexOf(t);-1!==n&&e[Ln].splice(n,1)}(this._lView,t)}}function Qh(){return new ia(Zt())}function Ou(){return iu(bi(),Zt())}function iu(e,t){return new Au(Xo(e,t))}let Au=(()=>{class t{constructor(r){this.nativeElement=r}}return t.__NG_ELEMENT_ID__=Ou,t})();function qd(e){return e instanceof Au?e.nativeElement:e}function Pu(e){return t=>{setTimeout(e,void 0,t)}}const Us=class Yh extends G.B{constructor(t=!1){var n;super(),this.destroyRef=void 0,this.__isAsync=t,Er()&&(this.destroyRef=null!==(n=Yn(xa,{optional:!0}))&&void 0!==n?n:void 0)}emit(t){const n=B(null);try{super.next(t)}finally{B(n)}}subscribe(t,n,r){let s=t,f=n||(()=>null),g=r;if(t&&"object"==typeof t){var C,P,re;const xe=t;s=null===(C=xe.next)||void 0===C?void 0:C.bind(xe),f=null===(P=xe.error)||void 0===P?void 0:P.bind(xe),g=null===(re=xe.complete)||void 0===re?void 0:re.bind(xe)}this.__isAsync&&(f=Pu(f),s&&(s=Pu(s)),g&&(g=Pu(g)));const Se=super.subscribe({next:s,error:f,complete:g});return t instanceof K.yU&&t.add(Se),Se}};function Xh(){return this._results[Symbol.iterator]()}class vl{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Us}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=vl.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Xh)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Wi(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Ks(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],f=t[r];if(n&&(s=n(s),f=n(f)),f!==s)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){var t;this.dirty=!0,null===(t=this._onDirty)||void 0===t||t.call(this)}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}const ka="ngSkipHydration",Jh="ngskiphydration";function ef(e){const t=e.mergedAttrs;if(null===t)return!1;for(let n=0;n<t.length;n+=2){const r=t[n];if("number"==typeof r)return!1;if("string"==typeof r&&r.toLowerCase()===Jh)return!0}return!1}function tf(e){return e.hasAttribute(ka)}function _l(e){return!(128&~e.flags)}const Ec=new Map;let Zh=0;const Sc="__ngContext__";function Uo(e,t){ho(t)?(e[Sc]=t[bt],function qh(e){Ec.set(e[bt],e)}(t)):e[Sc]=t}function df(e){return hf(e[Wa])}function ff(e){return hf(e[Qi])}function hf(e){for(;null!==e&&!qi(e);)e=e[Qi];return e}let Ic;function Tc(e){Ic=e}function va(){if(void 0!==Ic)return Ic;if(typeof document<"u")return document;throw new mt(210,!1)}const Ef=new Ut("",{providedIn:"root",factory:()=>pp}),pp="ng",bl=new Ut(""),Dc=new Ut("",{providedIn:"platform",factory:()=>"unknown"}),gp=new Ut(""),mp=new Ut("",{providedIn:"root",factory:()=>{var e;return(null===(e=va().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});function Ep(e){return e}function yp(){const e=new wu;return"browser"===Yn(Dc)&&(e.store=function Cp(e,t){const n=e.getElementById(t+"-state");if(null!=n&&n.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+t,r)}return{}}(va(),Yn(Ef))),e}let wu=(()=>{var e;class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,s){return void 0!==this.store[r]?this.store[r]:s}set(r,s){this.store[r]=s}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(r,s){this.onSerializeCallbacks[r]=s}toJson(){for(const r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(s){console.warn("Exception in onSerialize callback: ",s)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return(e=t).\u0275prov=gr({token:e,providedIn:"root",factory:yp}),t})();const Oc="h",Ac="b";var ou=function(e){return e.FirstChild="f",e.NextSibling="n",e}(ou||{});const Il="e",Tl="t",su="c",Ru="x",au="r",Pc="i",Dl="n",Nu="d",Mc="__nghData__",Fa="ngh",Sp="nghm";let yf=()=>null;function bp(e,t,n=!1){var r;let s=e.getAttribute(Fa);if(null==s)return null;const[f,g]=s.split("|");if(s=n?g:f,!s)return null;const C=g?"|".concat(g):"",P=n?f:C;let re={};if(""!==s){const xe=t.get(wu,null,{optional:!0});null!==xe&&(re=xe.get(Mc,[])[Number(s)])}const Se={data:re,firstChild:null!==(r=e.firstChild)&&void 0!==r?r:null};return n&&(Se.firstChild=e,uu(Se,0,e.nextSibling)),P?e.setAttribute(Fa,P):e.removeAttribute(Fa),Se}function wc(e,t,n=!1){return yf(e,t,n)}function Cf(e){let t=e._lView;return 2===t[_n].type?null:(vu(t)&&(t=t[ir]),t)}function uu(e,t,n){var r;null!==(r=e.segmentHeads)&&void 0!==r||(e.segmentHeads={}),e.segmentHeads[t]=n}function Nc(e,t){var n,r;return null!==(n=null===(r=e.segmentHeads)||void 0===r?void 0:r[t])&&void 0!==n?n:null}function bf(e,t){var n,r;return null!==(n=null===(r=e.data[su])||void 0===r?void 0:r[t])&&void 0!==n?n:null}function Lc(e,t){var n;const r=null!==(n=bf(e,t))&&void 0!==n?n:[];let s=0;for(let g of r){var f;s+=g[au]*(null!==(f=g[Ru])&&void 0!==f?f:1)}return s}function Ol(e,t){var n;if(typeof e.disconnectedNodes>"u"){const r=e.data[Nu];e.disconnectedNodes=r?new Set(r):null}return!(null===(n=e.disconnectedNodes)||void 0===n||!n.has(t))}const Al=new Ut(""),Pl=new Ut("",{providedIn:"root",factory:()=>!1}),Tf=new Ut("");let lu,kc;function Kr(e){var t;return(null===(t=function xc(){if(void 0===lu&&(lu=null,Ht.trustedTypes))try{lu=Ht.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return lu}())||void 0===t?void 0:t.createHTML(e))||e}function Df(){if(void 0===kc&&(kc=null,Ht.trustedTypes))try{kc=Ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return kc}function bs(e){var t;return(null===(t=Df())||void 0===t?void 0:t.createHTML(e))||e}function Mp(e){var t;return(null===(t=Df())||void 0===t?void 0:t.createScriptURL(e))||e}class Bs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(je,")")}}class Ml extends Bs{getTypeName(){return"HTML"}}class lm extends Bs{getTypeName(){return"Style"}}class wl extends Bs{getTypeName(){return"Script"}}class Rl extends Bs{getTypeName(){return"URL"}}class Nl extends Bs{getTypeName(){return"ResourceURL"}}function _a(e){return e instanceof Bs?e.changingThisBreaksApplicationSecurity:e}function ku(e,t){const n=function cm(e){return e instanceof Bs&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see ").concat(je,")"))}return n===t}function dm(e){return new Ml(e)}function fm(e){return new lm(e)}function hm(e){return new wl(e)}function Jn(e){return new Rl(e)}function pm(e){return new Nl(e)}class wp{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Kr(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class gm{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Kr(t),n}}const vm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Fc(e){return(e=String(e)).match(vm)?e:"unsafe:"+e}function Ea(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ll(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Of=Ea("area,br,col,hr,img,wbr"),Ji=Ea("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),to=Ea("rp,rt"),Af=Ll(Of,Ll(Ji,Ea("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")),Ll(to,Ea("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")),Ll(to,Ji)),Pf=Ea("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Np=Ll(Pf,Ea("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"),Ea("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")),Em=Ea("script,style,template");class ym{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,s=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)s.push(n),n=bm(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let f=Sm(n);if(f){n=f;break}n=s.pop()}return this.buf.join("")}startElement(t){const n=Lp(t).toLowerCase();if(!Af.hasOwnProperty(n))return this.sanitizedSomething=!0,!Em.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const f=r.item(s),g=f.name,C=g.toLowerCase();if(!Np.hasOwnProperty(C)){this.sanitizedSomething=!0;continue}let P=f.value;Pf[C]&&(P=Fc(P)),this.buf.push(" ",g,'="',kp(P),'"')}return this.buf.push(">"),!0}endElement(t){const n=Lp(t).toLowerCase();Af.hasOwnProperty(n)&&!Of.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(kp(t))}}function Sm(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw xp(t);return t}function bm(e){const t=e.firstChild;if(t&&function Cm(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw xp(t);return t}function Lp(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function xp(e){return new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML))}const Uc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Im=/([^\#-~ |!])/g;function kp(e){return e.replace(/&/g,"&").replace(Uc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Im,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Bc;function Fp(e,t){let n=null;try{Bc=Bc||function Fu(e){const t=new gm(e);return function mm(){try{return!!(new window.DOMParser).parseFromString(Kr(""),"text/html")}catch{return!1}}()?new wp(t):t}(e);let r=t?String(t):"";n=Bc.getInertBodyElement(r);let s=5,f=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=f,f=n.innerHTML,n=Bc.getInertBodyElement(r)}while(r!==f);return Kr((new ym).sanitizeChildren(Mf(n)||n))}finally{if(n){const r=Mf(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Mf(e){return"content"in e&&function Tm(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var cu=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(cu||{});function jc(e){const t=Uu();return t?bs(t.sanitize(cu.HTML,e)||""):ku(e,"HTML")?bs(_a(e)):Fp(va(),dt(e))}function wf(e){const t=Uu();return t?t.sanitize(cu.URL,e)||"":ku(e,"URL")?_a(e):Fc(dt(e))}function Rf(e){const t=Uu();if(t)return Mp(t.sanitize(cu.RESOURCE_URL,e)||"");if(ku(e,"ResourceURL"))return Mp(_a(e));throw new mt(904,!1)}function jp(e,t,n){return function Bp(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Rf:wf}(t,n)(e)}function Uu(){const e=Zt();return e&&e[Ao].sanitizer}const Mm=/^>|^->|<!--|-->|--!>|<!-$/g,o=/(<|>)/g,i="\u200b$1\u200b";function Ti(e){return e instanceof Function?e():e}function go(e){return"browser"===(null!=e?e:Yn(rs)).get(Dc)}var cs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(cs||{});let ya;function Ua(e,t){return ya(e,t)}function Ba(e,t,n,r,s){if(null!=r){let f,g=!1;qi(r)?f=r:ho(r)&&(g=!0,r=r[Cr]);const C=ci(r);0===e&&null!==n?null==s?B_(t,n,C):jl(t,n,C,s||null,!0):1===e&&null!==n?jl(t,n,C,s||null,!0):2===e?Bf(t,C,g):3===e&&t.destroyNode(C),null!=f&&function Jb(e,t,n,r,s){const f=n[Yo];f!==ci(n)&&Ba(t,e,r,f,s);for(let C=li;C<n.length;C++){const P=n[C];Hp(P[_n],P,e,t,r,f)}}(t,e,f,n,s)}}function Ul(e,t){return e.createText(t)}function Bl(e,t){return e.createComment(function u(e){return e.replace(Mm,t=>t.replace(o,i))}(t))}function $u(e,t,n){return e.createElement(t,n)}function Kc(e,t){var n;null===(n=t[Ao].changeDetectionScheduler)||void 0===n||n.notify(1),Hp(e,t,t[pr],2,null,null)}function F_(e,t){const n=e[ls],r=n.indexOf(t);n.splice(r,1)}function Ff(e,t){if(e.length<=li)return;const n=li+t,r=e[n];if(r){const s=r[Le];null!==s&&s!==e&&F_(s,r),t>0&&(e[n-1][Qi]=r[Qi]);const f=os(e,li+t);!function Lf(e,t){Kc(e,t),t[Cr]=null,t[xi]=null}(r[_n],r);const g=f[$e];null!==g&&g.detachView(f[_n]),r[$r]=null,r[Qi]=null,r[Wn]&=-129}return r}function Vp(e,t){if(!(256&t[Wn])){const n=t[pr];n.destroyNode&&Hp(e,t,n,3,null,null),function kf(e){let t=e[Wa];if(!t)return wm(e[_n],e);for(;t;){let n=null;if(ho(t))n=t[Wa];else{const r=t[li];r&&(n=r)}if(!n){for(;t&&!t[Qi]&&t!==e;)ho(t)&&wm(t[_n],t),t=t[$r];null===t&&(t=e),ho(t)&&wm(t[_n],t),n=t&&t[Qi]}t=n}}(t)}}function wm(e,t){if(256&t[Wn])return;const n=B(null);try{t[Wn]&=-129,t[Wn]|=256,t[Mi]&&j(t[Mi]),function zb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof Iu)){const f=n[r+1];if(Array.isArray(f))for(let g=0;g<f.length;g+=2){const C=s[f[g]],P=f[g+1];qs(4,C,P);try{P.call(C)}finally{qs(5,C,P)}}else{qs(4,s,f);try{f.call(s)}finally{qs(5,s,f)}}}}}(e,t),function Gb(e,t){const n=e.cleanup,r=t[da];if(null!==n)for(let f=0;f<n.length-1;f+=2)if("string"==typeof n[f]){const g=n[f+3];g>=0?r[g]():r[-g].unsubscribe(),f+=2}else n[f].call(r[n[f+1]]);null!==r&&(t[da]=null);const s=t[Ln];if(null!==s){t[Ln]=null;for(let f=0;f<s.length;f++)(0,s[f])()}}(e,t),1===t[_n].type&&t[pr].destroy();const r=t[Le];if(null!==r&&qi(t[$r])){r!==t[$r]&&F_(r,t);const s=t[$e];null!==s&&s.detachView(e)}!function oa(e){Ec.delete(e[bt])}(t)}finally{B(n)}}function Rm(e,t,n){return function U_(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Cr];{const{componentOffset:s}=r;if(s>-1){const{encapsulation:f}=e.data[r.directiveStart+s];if(f===xr.None||f===xr.Emulated)return null}return Xo(r,n)}}(e,t.parent,n)}function jl(e,t,n,r,s){e.insertBefore(t,n,r,s)}function B_(e,t,n){e.appendChild(t,n)}function j_(e,t,n,r,s){null!==r?jl(e,t,n,r,s):B_(e,t,n)}function $p(e,t){return e.parentNode(t)}function V_(e,t,n){return K_(e,t,n)}let Nm,K_=function $_(e,t,n){return 40&e.type?Xo(e,n):null};function Kp(e,t,n,r){const s=Rm(e,r,t),f=t[pr],C=V_(r.parent||t[xi],r,t);if(null!=s)if(Array.isArray(n))for(let P=0;P<n.length;P++)j_(f,s,n[P],C,!1);else j_(f,s,n,C,!1);void 0!==Nm&&Nm(f,r,t,n,s)}function Uf(e,t){if(null!==t){const n=t.type;if(3&n)return Xo(t,e);if(4&n)return Lm(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Uf(e,r);{const s=e[t.index];return qi(s)?Lm(-1,s):ci(s)}}if(32&n)return Ua(t,e)()||ci(e[t.index]);{const r=W_(e,t);return null!==r?Array.isArray(r)?r[0]:Uf(Xa(e[rt]),r):Uf(e,t.next)}}return null}function W_(e,t){return null!==t?e[rt][xi].projection[t.projection]:null}function Lm(e,t){const n=li+e+1;if(n<t.length){const r=t[n],s=r[_n].firstChild;if(null!==s)return Uf(r,s)}return t[Yo]}function Bf(e,t,n){const r=$p(e,t);r&&function Qb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}function G_(e){e.textContent=""}function xm(e,t,n,r,s,f,g){for(;null!=n;){const C=r[n.index],P=n.type;if(g&&0===t&&(C&&Uo(ci(C),r),n.flags|=2),32&~n.flags)if(8&P)xm(e,t,n.child,r,s,f,!1),Ba(t,e,s,C,f);else if(32&P){const re=Ua(n,r);let Se;for(;Se=re();)Ba(t,e,s,Se,f);Ba(t,e,s,C,f)}else 16&P?z_(e,t,r,n,s,f):Ba(t,e,s,C,f);n=g?n.projectionNext:n.next}}function Hp(e,t,n,r,s,f){xm(n,r,e.firstChild,t,s,f,!1)}function z_(e,t,n,r,s,f){const g=n[rt],P=g[xi].projection[r.projection];if(Array.isArray(P))for(let re=0;re<P.length;re++)Ba(t,e,s,P[re],f);else{let re=P;const Se=g[$r];_l(r)&&(re.flags|=128),xm(e,t,re,Se,s,f,!0)}}function Q_(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Y_(e,t,n){const{mergedAttrs:r,classes:s,styles:f}=n;null!==r&&Ko(e,t,r),null!==s&&Q_(e,t,s),null!==f&&function qb(e,t,n){e.setAttribute(t,"style",n)}(e,t,f)}const Nr={};function X_(e=1){J_(kr(),Zt(),Go()+e,!1)}function J_(e,t,n,r){if(!r)if(3&~t[Wn]){const f=e.preOrderHooks;null!==f&&sl(t,f,0,n)}else{const f=e.preOrderCheckHooks;null!==f&&Su(t,f,n)}ra(n)}function Hc(e,t=ct.Default){const n=Zt();return null===n?hr(e,t):$d(bi(),n,ke(e),t)}function Z_(){throw new Error("invalid")}function q_(e,t,n,r,s,f){const g=B(null);try{let C=null;s&mi.SignalBased&&(C=t[r][$]),null!==C&&void 0!==C.transformFn&&(f=C.transformFn(f)),s&mi.HasDecoratorInputTransform&&(f=e.inputTransforms[r].call(t,f)),null!==e.setInput?e.setInput(t,C,f,n,r):Es(t,C,r,f)}finally{B(g)}}function Wp(e,t,n,r,s,f,g,C,P,re,Se){const xe=t.blueprint.slice();return xe[Cr]=s,xe[Wn]=204|r,(null!==re||e&&2048&e[Wn])&&(xe[Wn]|=2048),qu(xe),xe[$r]=xe[Po]=e,xe[Di]=n,xe[Ao]=g||e&&e[Ao],xe[pr]=C||e&&e[pr],xe[Yi]=P||e&&e[Yi]||null,xe[xi]=f,xe[bt]=function yc(){return Zh++}(),xe[ao]=Se,xe[on]=re,xe[rt]=2==t.type?e[rt]:xe,xe}function Wc(e,t,n,r,s){let f=e.data[t];if(null===f)f=function km(e,t,n,r,s){const f=Ph(),g=tc(),P=e.data[t]=function aI(e,t,n,r,s,f){let g=t?t.injectorIndex:-1,C=0;return Za()&&(C|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:g,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:C,providerIndexes:0,value:s,attrs:f,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}}(0,g?f:f&&f.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=P),null!==f&&(g?null==f.child&&null!==P.parent&&(f.child=P):null===f.next&&(f.next=P,P.prev=f)),P}(e,t,n,r,s),function Mh(){return br.lFrame.inI18n}()&&(f.flags|=32);else if(64&f.type){f.type=n,f.value=r,f.attrs=s;const g=function Cu(){const e=br.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();f.injectorIndex=null===g?-1:g.injectorIndex}return ys(f,!0),f}function jf(e,t,n,r){if(0===n)return-1;const s=t.length;for(let f=0;f<n;f++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function eE(e,t,n,r,s){const f=Go(),g=2&r;try{ra(-1),g&&t.length>ir&&J_(e,t,ir,!1),qs(g?2:0,s),n(r,s)}finally{ra(f),qs(g?3:1,s)}}function Fm(e,t,n){if(gu(t)){const r=B(null);try{const f=t.directiveEnd;for(let g=t.directiveStart;g<f;g++){const C=e.data[g];C.contentQueries&&C.contentQueries(1,n[g],g)}}finally{B(r)}}}function Um(e,t,n){ec()&&(function pI(e,t,n,r){const s=n.directiveStart,f=n.directiveEnd;fa(n)&&function CI(e,t,n){const r=Xo(t,e),s=tE(n);let g=16;n.signals?g=4096:n.onPush&&(g=64);const C=Gp(e,Wp(e,s,null,g,r,t,null,e[Ao].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=C}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||qa(n,t),Uo(r,t);const g=n.initialInputs;for(let C=s;C<f;C++){const P=e.data[C],re=La(t,e,C,n);Uo(re,t),null!==g&&SI(0,C-s,re,P,0,g),Si(P)&&(So(n.index,t)[Di]=La(t,e,C,n))}}(e,t,n,Xo(n,t)),!(64&~n.flags)&&sE(e,t,n))}function Bm(e,t,n=Xo){const r=t.localNames;if(null!==r){let s=t.index+1;for(let f=0;f<r.length;f+=2){const g=r[f+1],C=-1===g?n(t,e):e[g];e[s++]=C}}}function tE(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=jm(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function jm(e,t,n,r,s,f,g,C,P,re,Se){const xe=ir+r,at=xe+s,yt=function tI(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Nr);return n}(xe,at),Pt="function"==typeof re?re():re;return yt[_n]={type:e,blueprint:yt,template:n,queries:null,viewQuery:C,declTNode:t,data:yt.slice().fill(null,xe),bindingStartIndex:xe,expandoStartIndex:at,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 f?f():f,pipeRegistry:"function"==typeof g?g():g,firstChild:null,schemas:P,consts:Pt,incompleteFirstPass:!1,ssrId:Se}}let nE=()=>null;function iI(e){tf(e)?G_(e):function Dp(e){const t=va(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(f){const g=function Tp(e){var t;return null===(t=e.textContent)||void 0===t?void 0:t.replace(/\s/gm,"")}(f);return"ngetn"===g||"ngtns"===g?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let r;const s=[];for(;r=n.nextNode();)s.push(r);for(const f of s)"ngetn"===f.textContent?f.replaceWith(t.createTextNode("")):f.remove()}(e)}function rE(e,t,n,r,s){for(let g in t){var f;if(!t.hasOwnProperty(g))continue;const C=t[g];if(void 0===C)continue;null!==(f=r)&&void 0!==f||(r={});let P,re=mi.None;Array.isArray(C)?(P=C[0],re=C[1]):P=C;let Se=g;if(null!==s){if(!s.hasOwnProperty(g))continue;Se=s[g]}0===e?iE(r,n,Se,P,re):iE(r,n,Se,P)}return r}function iE(e,t,n,r,s){let f;e.hasOwnProperty(n)?(f=e[n]).push(t,r):f=e[n]=[t,r],void 0!==s&&f.push(s)}function Ts(e,t,n,r,s,f,g,C){const P=Xo(t,n);let Se,re=t.inputs;!C&&null!=re&&(Se=re[r])?(Wm(e,n,Se,r,s),fa(t)&&function cI(e,t){const n=So(t,e);16&n[Wn]||(n[Wn]|=64)}(n,t.index)):3&t.type&&(r=function lI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=g?g(s,t.value||"",r):s,f.setProperty(P,r,s))}function Vm(e,t,n,r){if(ec()){const s=null===r?null:{"":-1},f=function mI(e,t){const n=e.directiveRegistry;let r=null,s=null;if(n)for(let g=0;g<n.length;g++){const C=n[g];if(_o(t,C.selectors,!1))if(r||(r=[]),Si(C))if(null!==C.findHostDirectiveDefs){const P=[];s=s||new Map,C.findHostDirectiveDefs(C,P,s),r.unshift(...P,C),$m(e,t,P.length)}else r.unshift(C),$m(e,t,0);else{var f;s=s||new Map,null===(f=C.findHostDirectiveDefs)||void 0===f||f.call(C,C,r,s),r.push(C)}}return null===r?null:[r,s]}(e,n);let g,C;null===f?g=C=null:[g,C]=f,null!==g&&oE(e,t,n,g,s,C),s&&function vI(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const f=n[t[s+1]];if(null==f)throw new mt(-301,!1);r.push(t[s],f)}}}(n,r,s)}n.mergedAttrs=Qo(n.mergedAttrs,n.attrs)}function oE(e,t,n,r,s,f){for(let xe=0;xe<r.length;xe++)fc(qa(n,t),e,r[xe].type);!function EI(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let xe=0;xe<r.length;xe++){const at=r[xe];at.providersResolver&&at.providersResolver(at)}let g=!1,C=!1,P=jf(e,t,r.length,null);for(let xe=0;xe<r.length;xe++){const at=r[xe];n.mergedAttrs=Qo(n.mergedAttrs,at.hostAttrs),yI(e,n,t,P,at),_I(P,at,s),null!==at.contentQueries&&(n.flags|=4),(null!==at.hostBindings||null!==at.hostAttrs||0!==at.hostVars)&&(n.flags|=64);const yt=at.type.prototype;var re,Se;!g&&(yt.ngOnChanges||yt.ngOnInit||yt.ngDoCheck)&&((null!==(re=e.preOrderHooks)&&void 0!==re?re:e.preOrderHooks=[]).push(n.index),g=!0),C||!yt.ngOnChanges&&!yt.ngDoCheck||((null!==(Se=e.preOrderCheckHooks)&&void 0!==Se?Se:e.preOrderCheckHooks=[]).push(n.index),C=!0),P++}!function uI(e,t,n){const s=t.directiveEnd,f=e.data,g=t.attrs,C=[];let P=null,re=null;for(let Se=t.directiveStart;Se<s;Se++){const xe=f[Se],at=n?n.get(xe):null,Pt=at?at.outputs:null;P=rE(0,xe.inputs,Se,P,at?at.inputs:null),re=rE(1,xe.outputs,Se,re,Pt);const Gt=null===P||null===g||Gs(t)?null:bI(P,Se,g);C.push(Gt)}null!==P&&(P.hasOwnProperty("class")&&(t.flags|=8),P.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=C,t.inputs=P,t.outputs=re}(e,n,f)}function sE(e,t,n){const r=n.directiveStart,s=n.directiveEnd,f=n.index,g=function wh(){return br.lFrame.currentDirectiveIndex}();try{ra(f);for(let C=r;C<s;C++){const P=e.data[C],re=t[C];tl(C),(null!==P.hostBindings||0!==P.hostVars||null!==P.hostAttrs)&&gI(P,re)}}finally{ra(-1),tl(g)}}function gI(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function $m(e,t,n){var r;t.componentOffset=n,(null!==(r=e.components)&&void 0!==r?r:e.components=[]).push(t.index)}function _I(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Si(t)&&(n[""]=e)}}function yI(e,t,n,r,s){e.data[r]=s;const f=s.factory||(s.factory=lo(s.type)),g=new Iu(f,Si(s),Hc);e.blueprint[r]=g,n[r]=g,function fI(e,t,n,r,s){const f=s.hostBindings;if(f){let g=e.hostBindingOpCodes;null===g&&(g=e.hostBindingOpCodes=[]);const C=~t.index;(function hI(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=C&&g.push(C),g.push(n,r,f)}}(e,t,r,jf(e,n,s.hostVars,Nr),s)}function ja(e,t,n,r,s,f){const g=Xo(e,t);!function Km(e,t,n,r,s,f,g){if(null==f)e.removeAttribute(t,s,n);else{const C=null==g?dt(f):g(f,r||"",s);e.setAttribute(t,s,C,n)}}(t[pr],g,f,e.value,n,r,s)}function SI(e,t,n,r,s,f){const g=f[t];if(null!==g)for(let C=0;C<g.length;)q_(r,n,g[C++],g[C++],g[C++],g[C++])}function bI(e,t,n){let r=null,s=0;for(;s<n.length;){const f=n[s];if(0!==f)if(5!==f){if("number"==typeof f)break;if(e.hasOwnProperty(f)){null===r&&(r=[]);const g=e[f];for(let C=0;C<g.length;C+=3)if(g[C]===t){r.push(f,g[C+1],g[C+2],n[s+1]);break}}s+=2}else s+=2;else s+=4}return r}function aE(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function uE(e,t){const n=e.contentQueries;if(null!==n){const r=B(null);try{for(let s=0;s<n.length;s+=2){const g=n[s+1];if(-1!==g){const C=e.data[g];oc(n[s]),C.contentQueries(2,t[g],g)}}}finally{B(r)}}}function Gp(e,t){return e[Wa]?e[pu][Qi]=t:e[Wa]=t,e[pu]=t,t}function Hm(e,t,n){oc(0);const r=B(null);try{t(e,n)}finally{B(r)}}function lE(e){return e[da]||(e[da]=[])}function cE(e){return e.cleanup||(e.cleanup=[])}function zp(e,t){const n=e[Yi],r=n?n.get(Ss,null):null;r&&r.handleError(t)}function Wm(e,t,n,r,s){for(let f=0;f<n.length;){const g=n[f++],C=n[f++],P=n[f++];q_(e.data[g],t[g],r,C,P,s)}}function II(e,t){const n=So(t,e),r=n[_n];!function TI(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const s=n[Cr];null!==s&&null===n[ao]&&(n[ao]=wc(s,n[Yi])),Gm(r,n,n[Di])}function Gm(e,t,n){rl(t);try{var r;const s=e.viewQuery;null!==s&&Hm(1,s,n);const f=e.template;null!==f&&eE(e,t,f,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),null===(r=t[$e])||void 0===r||r.finishViewCreation(e),e.staticContentQueries&&uE(e,t),e.staticViewQueries&&Hm(2,e.viewQuery,n);const g=e.components;null!==g&&function DI(e,t){for(let n=0;n<t.length;n++)II(e,t[n])}(t,g)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),s}finally{t[Wn]&=-5,vi()}}function Gc(e,t){return!t||null===t.firstChild||_l(e)}function $f(e,t,n,r=!0){const s=t[_n];if(function fu(e,t,n,r){const s=li+r,f=n.length;r>0&&(n[s-1][Qi]=t),r<f-li?(t[Qi]=n[s],es(n,li+r,t)):(n.push(t),t[Qi]=null),t[$r]=n;const g=t[Le];null!==g&&n!==g&&function Zo(e,t){const n=e[ls];t[rt]!==t[$r][$r][rt]&&(e[Wn]|=Pa.HasTransplantedViews),null===n?e[ls]=[t]:n.push(t)}(g,t);const C=t[$e];null!==C&&C.insertView(e),ql(t),t[Wn]|=128}(s,t,e,n),r){const g=Lm(n,e),C=t[pr],P=$p(C,e[Yo]);null!==P&&function xf(e,t,n,r,s,f){r[Cr]=s,r[xi]=t,Hp(e,r,n,1,s,f)}(s,e[xi],C,t,P,g)}const f=t[ao];null!==f&&null!==f.firstChild&&(f.firstChild=null)}function Kf(e,t,n,r,s=!1){for(;null!==n;){const f=t[n.index];null!==f&&r.push(ci(f)),qi(f)&&hE(f,r);const g=n.type;if(8&g)Kf(e,t,n.child,r);else if(32&g){const C=Ua(n,t);let P;for(;P=C();)r.push(P)}else if(16&g){const C=W_(t,n);if(Array.isArray(C))r.push(...C);else{const P=Xa(t[rt]);Kf(P[_n],P,C,r,!0)}}n=s?n.projectionNext:n.next}return r}function hE(e,t){for(let n=li;n<e.length;n++){const r=e[n],s=r[_n].firstChild;null!==s&&Kf(r[_n],r,s,t)}e[Yo]!==e[Cr]&&t.push(e[Yo])}let pE=[];const MI={...V,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Ya(e.lView)},consumerOnSignalRead(){this.lView[Mi]=this}},gE=100;function Qp(e,t=!0,n=0){const r=e[Ao],s=r.rendererFactory;var g;null===(g=s.begin)||void 0===g||g.call(s);try{!function wI(e,t){Qm(e,t);let n=0;for(;Qa(e);){if(n===gE)throw new mt(103,!1);n++,Qm(e,1)}}(e,n)}catch(re){throw t&&zp(e,re),re}finally{var C,P;null===(C=s.end)||void 0===C||C.call(s),null===(P=r.inlineEffectRunner)||void 0===P||P.flush()}}function RI(e,t,n,r){var s;const f=t[Wn];if(!(256&~f))return;null===(s=t[Ao].inlineEffectRunner)||void 0===s||s.flush(),rl(t);let C=null,P=null;(function NI(e){return 2!==e.type})(e)&&(P=function OI(e){var t;return null!==(t=e[Mi])&&void 0!==t?t:function AI(e){var t;const n=null!==(t=pE.pop())&&void 0!==t?t:Object.create(MI);return n.lView=e,n}(e)}(t),C=pe(P));try{qu(t),function rc(e){return br.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&eE(e,t,n,2,r);const re=!(3&~f);if(re){const at=e.preOrderCheckHooks;null!==at&&Su(t,at,null)}else{const at=e.preOrderHooks;null!==at&&sl(t,at,0,null),al(t,0)}if(function LI(e){for(let t=df(e);null!==t;t=ff(t)){if(!(t[Wn]&Pa.HasTransplantedViews))continue;const n=t[ls];for(let r=0;r<n.length;r++){Id(n[r])}}}(t),mE(t,0),null!==e.contentQueries&&uE(e,t),re){const at=e.contentCheckHooks;null!==at&&Su(t,at)}else{const at=e.contentHooks;null!==at&&sl(t,at,1),al(t,1)}!function eI(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)ra(~s);else{const f=s,g=n[++r],C=n[++r];Hg(g,f),C(2,t[f])}}}finally{ra(-1)}}(e,t);const Se=e.components;null!==Se&&_E(t,Se,0);const xe=e.viewQuery;if(null!==xe&&Hm(2,xe,r),re){const at=e.viewCheckHooks;null!==at&&Su(t,at)}else{const at=e.viewHooks;null!==at&&sl(t,at,2),al(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[ei]){for(const at of t[ei])at();t[ei]=null}t[Wn]&=-73}catch(re){throw Ya(t),re}finally{null!==P&&(fe(P,C),function PI(e){e.lView[Mi]!==e&&(e.lView=null,pE.push(e))}(P)),vi()}}function mE(e,t){for(let n=df(e);null!==n;n=ff(n))for(let r=li;r<n.length;r++)vE(n[r],t)}function xI(e,t,n){vE(So(t,e),n)}function vE(e,t){Na(e)&&Qm(e,t)}function Qm(e,t){const r=e[_n],s=e[Wn],f=e[Mi];let g=!!(0===t&&16&s);if(g||(g=!!(64&s&&0===t)),g||(g=!!(1024&s)),g||(g=!(null==f||!f.dirty||!w(f))),f&&(f.dirty=!1),e[Wn]&=-9217,g)RI(r,e,r.template,e[Di]);else if(8192&s){mE(e,1);const C=r.components;null!==C&&_E(e,C,1)}}function _E(e,t,n){for(let r=0;r<t.length;r++)xI(e,t[r],n)}function Hf(e){var t;for(null===(t=e[Ao].changeDetectionScheduler)||void 0===t||t.notify();e;){e[Wn]|=64;const n=Xa(e);if(vu(e)&&!n)return e;e=n}return null}class Wf{get rootNodes(){const t=this._lView,n=t[_n];return Kf(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Di]}set context(t){this._lView[Di]=t}get destroyed(){return!(256&~this._lView[Wn])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[$r];if(qi(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Ff(t,r),os(n,r))}this._attachedToViewContainer=!1}Vp(this._lView[_n],this._lView)}onDestroy(t){el(this._lView,t)}markForCheck(){Hf(this._cdRefInjectingView||this._lView)}detach(){this._lView[Wn]&=-129}reattach(){ql(this._lView),this._lView[Wn]|=128}detectChanges(){this._lView[Wn]|=1024,Qp(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new mt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Kc(this._lView[_n],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new mt(902,!1);this._appRef=t,ql(this._lView)}}let Gf=(()=>{class t{}return t.__NG_ELEMENT_ID__=UI,t})();const kI=Gf,FI=class extends kI{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const s=function Vf(e,t,n,r){const s=B(null);try{var f,g,C;const P=t.tView,xe=Wp(e,P,n,4096&e[Wn]?4096:16,null,t,null,null,null!==(f=null==r?void 0:r.injector)&&void 0!==f?f:null,null!==(g=null==r?void 0:r.embeddedViewInjector)&&void 0!==g?g:null,null!==(C=null==r?void 0:r.dehydratedView)&&void 0!==C?C:null);xe[Le]=e[t.index];const yt=e[$e];return null!==yt&&(xe[$e]=yt.createEmbeddedView(P)),Gm(P,xe,n),xe}finally{B(s)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Wf(s)}};function UI(){return Yp(bi(),Zt())}function Yp(e,t){return 4&e.type?new FI(t,e,iu(e,t)):null}function CE(e){var t;const n=null!==(t=e[Ls])&&void 0!==t?t:[],s=e[$r][pr];for(const f of n)zI(f,s);e[Ls]=Or}function zI(e,t){let n=0,r=e.firstChild;if(r){const s=e.data[au];for(;n<s;){const f=r.nextSibling;Bf(t,r,!1),r=f,n++}}}function SE(e){CE(e);for(let t=li;t<e.length;t++)Jp(e[t])}function Jp(e){!function QI(e){var t;const n=null===(t=e[ao])||void 0===t?void 0:t.i18nNodes;if(n){const r=e[pr];for(const s of n.values())Bf(r,s,!1);e[ao].i18nNodes=void 0}}(e);const t=e[_n];for(let n=ir;n<t.bindingStartIndex;n++)qi(e[n])?SE(e[n]):ho(e[n])&&Jp(e[n])}const XI=new RegExp("^(\\d+)*(".concat(Ac,"|").concat(Oc,")*(.*)"));function Zm(e){return e.index-ir}function Zp(e,t,n,r){const s=Zm(r);let f=function eT(e,t){const n=e.i18nNodes;if(n){const r=n.get(t);return r&&n.delete(t),r}return null}(e,s);if(!f){const C=e.data[Dl];if(null!=C&&C[s])f=function nT(e,t){const[n,...r]=function ZI(e){const t=e.match(XI),[n,r,s,f]=t,g=r?parseInt(r,10):s,C=[];for(const[P,re,Se]of f.matchAll(/(f|n)(\d*)/g)){const xe=parseInt(Se,10)||1;C.push(re,xe)}return[g,...C]}(e);let s;return s=n===Oc?t[rt][Cr]:n===Ac?function ki(e){return e.ownerDocument.body}(t[rt][Cr]):ci(t[Number(n)+ir]),function tT(e,t){let n=e;for(let r=0;r<t.length;r+=2){const s=t[r],f=t[r+1];for(let g=0;g<f;g++)switch(s){case ou.FirstChild:n=n.firstChild;break;case ou.NextSibling:n=n.nextSibling}}return n}(s,r)}(C[s],n);else if(t.firstChild===r)f=e.firstChild;else{var g;const P=null===r.prev,re=null!==(g=r.prev)&&void 0!==g?g:r.parent;if(function qI(e){var t;return!e.prev&&8===(null===(t=e.parent)||void 0===t?void 0:t.type)}(r))f=Nc(e,Zm(r.parent));else{let Se=Xo(re,n);if(P)f=Se.firstChild;else{const xe=Zm(re),at=Nc(e,xe);f=2===re.type&&at?qp(Lc(e,xe)+1,at):Se.nextSibling}}}}return f}function qp(e,t){let n=t;for(let r=0;r<e;r++)n=n.nextSibling;return n}let IE=()=>null;function sT(e,t){const n=e[Ls];return t&&null!==n&&0!==n.length?n[0].data[Pc]===t?n.shift():(CE(e),null):null}function zc(e,t){return IE(e,t)}class eg{}class uT{}class TE{}class cT{resolveComponentFactory(t){throw function lT(e){const t=Error("No component factory found for ".concat(Kn(e),"."));return t.ngComponent=e,t}(t)}}let Jf=(()=>{class t{}return t.NULL=new cT,t})();class OE{}let dT=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function fT(){const e=Zt(),n=So(bi().index,e);return(ho(n)?n:e)[pr]}(),t})(),hT=(()=>{var e;class t{}return(e=t).\u0275prov=gr({token:e,providedIn:"root",factory:()=>null}),t})();const ev={};function pT(e,t){if(null!==function ne(){return E}())throw new mt(-602,!1)}const AE=new Set;function Ca(e){var t,n;AE.has(e)||(AE.add(e),null===(t=performance)||void 0===t||null===(n=t.mark)||void 0===n||n.call(t,"mark_feature_usage",{detail:{feature:e}}))}function PE(...e){}class Mo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Us(!1),this.onMicrotaskEmpty=new Us(!1),this.onStable=new Us(!1),this.onError=new Us(!1),typeof Zone>"u")throw new mt(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function gT(){const e="function"==typeof Ht.requestAnimationFrame;let t=Ht[e?"requestAnimationFrame":"setTimeout"],n=Ht[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function _T(e){const t=()=>{!function vT(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ht,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,nv(e),e.isCheckStableRunning=!0,tv(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),nv(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,f,g,C)=>{if(function ET(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(C))return n.invokeTask(s,f,g,C);try{return ME(e),n.invokeTask(s,f,g,C)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===f.type||e.shouldCoalesceRunChangeDetection)&&t(),wE(e)}},onInvoke:(n,r,s,f,g,C,P)=>{try{return ME(e),n.invoke(s,f,g,C,P)}finally{e.shouldCoalesceRunChangeDetection&&t(),wE(e)}},onHasTask:(n,r,s,f)=>{n.hasTask(s,f),r===s&&("microTask"==f.change?(e._hasPendingMicrotasks=f.microTask,nv(e),tv(e)):"macroTask"==f.change&&(e.hasPendingMacrotasks=f.macroTask))},onHandleError:(n,r,s,f)=>(n.handleError(s,f),e.runOutsideAngular(()=>e.onError.emit(f)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Mo.isInAngularZone())throw new mt(909,!1)}static assertNotInAngularZone(){if(Mo.isInAngularZone())throw new mt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const f=this._inner,g=f.scheduleEventTask("NgZoneEvent: "+s,t,mT,PE,PE);try{return f.runTask(g,n,r)}finally{f.cancelTask(g)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const mT={};function tv(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 nv(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function ME(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function wE(e){e._nesting--,tv(e)}class RE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Us,this.onMicrotaskEmpty=new Us,this.onStable=new Us,this.onError=new Us}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}var Vl=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Vl||{});const NE={destroy(){}};function LE(e,t){var n,r,s;!t&&M();const f=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Yn(rs);if(!go(f))return NE;Ca("NgAfterNextRender");const g=f.get(Zf),C=null!==(r=g.handler)&&void 0!==r?r:g.handler=new kE,P=null!==(s=null==t?void 0:t.phase)&&void 0!==s?s:Vl.MixedReadWrite,re=()=>{C.unregister(xe),Se()},Se=f.get(xa).onDestroy(re),xe=Xn(f,()=>new xE(P,()=>{re(),e()}));return C.register(xe),{destroy:re}}class xE{constructor(t,n){var r;this.phase=t,this.callbackFn=n,this.zone=Yn(Mo),this.errorHandler=Yn(Ss,{optional:!0}),null===(r=Yn(eg,{optional:!0}))||void 0===r||r.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(n)}}}class kE{constructor(){this.executingCallbacks=!1,this.buckets={[Vl.EarlyRead]:new Set,[Vl.Write]:new Set,[Vl.MixedReadWrite]:new Set,[Vl.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let Zf=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var r;this.executeInternalCallbacks(),null===(r=this.handler)||void 0===r||r.execute()}executeInternalCallbacks(){const r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const s of r)s()}ngOnDestroy(){var r;null===(r=this.handler)||void 0===r||r.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=gr({token:e,providedIn:"root",factory:()=>new e}),t})();function Ku(e){return!!Gi(e)}function ng(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,f=0;if(null!==t)for(let g=0;g<t.length;g++){const C=t[g];"number"==typeof C?f=C:1==f?s=Qn(s,C):2==f&&(r=Qn(r,C+": "+t[++g]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}class BE extends Jf{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=vr(t);return new th(n,this.ngModule)}}function jE(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 rg{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Pr(r);const s=this.injector.get(t,ev,r);return s!==ev||n===ev?s:this.parentInjector.get(t,n,r)}}class th extends TE{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=jE(t.inputs);if(null!==n)for(const s of r)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return r}get outputs(){return jE(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function ca(e){return e.map(la).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,s){const f=B(null);try{var C;let P=(s=s||this.ngModule)instanceof ui?s:null===(C=s)||void 0===C?void 0:C.injector;P&&null!==this.componentDef.getStandaloneInjector&&(P=this.componentDef.getStandaloneInjector(P)||P);const re=P?new rg(t,P):t,Se=re.get(OE,null);if(null===Se)throw new mt(407,!1);const xe=re.get(hT,null),Pt={rendererFactory:Se,sanitizer:xe,inlineEffectRunner:null,afterRenderEventManager:re.get(Zf,null),changeDetectionScheduler:re.get(eg,null)},Gt=Se.createRenderer(null,this.componentDef),hn=this.componentDef.selectors[0][0]||"div",vn=r?function nI(e,t,n,r){const f=r.get(Pl,!1)||n===xr.ShadowDom,g=e.selectRootElement(t,f);return function rI(e){nE(e)}(g),g}(Gt,r,this.componentDef.encapsulation,re):$u(Gt,hn,function IT(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(hn));let en=512;this.componentDef.signals?en|=4096:this.componentDef.onPush||(en|=16);let Sr=null;null!==vn&&(Sr=wc(vn,re,!0));const Ur=jm(0,null,null,1,0,null,null,null,null,null,null),ii=Wp(null,Ur,null,en,null,null,Pt,Gt,re,null,Sr);let qo,aa;rl(ii);try{const Ta=this.componentDef;let Ql,D_=null;Ta.findHostDirectiveDefs?(Ql=[],D_=new Map,Ta.findHostDirectiveDefs(Ta,Ql,D_),Ql.push(Ta)):Ql=[Ta];const kw=function DT(e,t){const n=e[_n],r=ir;return e[r]=t,Wc(n,r,2,"#host",null)}(ii,vn),Fw=function OT(e,t,n,r,s,f,g){const C=s[_n];!function AT(e,t,n,r){for(const s of e)t.mergedAttrs=Qo(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(ng(t,t.mergedAttrs,!0),null!==n&&Y_(r,n,t))}(r,e,t,g);let P=null;null!==t&&(P=wc(t,s[Yi]));const re=f.rendererFactory.createRenderer(t,n);let Se=16;n.signals?Se=4096:n.onPush&&(Se=64);const xe=Wp(s,tE(n),null,Se,s[e.index],e,f,re,null,null,P);return C.firstCreatePass&&$m(C,e,r.length-1),Gp(s,xe),s[e.index]=xe}(kw,vn,Ta,Ql,ii,Pt,Gt);aa=Zu(Ur,ir),vn&&function MT(e,t,n,r){if(r)Ko(e,n,["ng-version","17.3.8"]);else{const{attrs:s,classes:f}=function Rs(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let f=e[r];if("string"==typeof f)2===s?""!==f&&t.push(f,e[++r]):8===s&&n.push(f);else{if(!Bi(s))break;s=f}r++}return{attrs:t,classes:n}}(t.selectors[0]);s&&Ko(e,n,s),f&&f.length>0&&Q_(e,n,f.join(" "))}}(Gt,Ta,vn,r),void 0!==n&&function wT(e,t,n){const r=e.projection=[];for(let s=0;s<t.length;s++){const f=n[s];r.push(null!=f?Array.from(f):null)}}(aa,this.ngContentSelectors,n),qo=function PT(e,t,n,r,s,f){const g=bi(),C=s[_n],P=Xo(g,s);oE(C,s,g,n,null,r);for(let Se=0;Se<n.length;Se++)Uo(La(s,C,g.directiveStart+Se,g),s);sE(C,s,g),P&&Uo(P,s);const re=La(s,C,g.directiveStart+g.componentOffset,g);if(e[Di]=s[Di]=re,null!==f)for(const Se of f)Se(re,t);return Fm(C,g,s),re}(Fw,Ta,Ql,D_,ii,[RT]),Gm(Ur,ii,null)}finally{vi()}return new TT(this.componentType,qo,iu(aa,ii),ii,aa)}finally{B(f)}}}class TT extends uT{constructor(t,n,r,s,f){super(),this.location=r,this._rootLView=s,this._tNode=f,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Wf(s,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let s;if(null!==r&&(s=r[t])){var f;if(null!==(f=this.previousInputValues)&&void 0!==f||(this.previousInputValues=new Map),this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const g=this._rootLView;Wm(g[_n],g,s,t,n),this.previousInputValues.set(t,n),Hf(So(this._tNode.index,g))}}get injector(){return new eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function RT(){const e=bi();pa(Zt()[_n],e)}let ig=(()=>{class t{}return t.__NG_ELEMENT_ID__=NT,t})();function NT(){return KE(bi(),Zt())}const LT=ig,VE=class extends LT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return iu(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=ga(this._hostTNode,this._hostLView);if(Ud(t)){const n=cl(t,this._hostLView),r=ll(t);return new eo(n[_n].data[r+8],n)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=$E(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-li}createEmbeddedView(t,n,r){let s,f;"number"==typeof r?s=r:null!=r&&(s=r.index,f=r.injector);const g=zc(this._lContainer,t.ssrId),C=t.createEmbeddedViewImpl(n||{},f,g);return this.insertImpl(C,s,Gc(this._hostTNode,g)),C}createComponent(t,n,r,s,f){var g,C,P;const re=t&&!function qt(e){return"function"==typeof e}(t);let Se;if(re)Se=n;else{const vn=n||{};Se=vn.index,r=vn.injector,s=vn.projectableNodes,f=vn.environmentInjector||vn.ngModuleRef}const xe=re?t:new th(vr(t)),at=r||this.parentInjector;if(!f&&null==xe.ngModule){const en=(re?at:this.parentInjector).get(ui,null);en&&(f=en)}const yt=vr(null!==(g=xe.componentType)&&void 0!==g?g:{}),Pt=zc(this._lContainer,null!==(C=null==yt?void 0:yt.id)&&void 0!==C?C:null),Gt=null!==(P=null==Pt?void 0:Pt.firstChild)&&void 0!==P?P:null,hn=xe.create(at,s,Gt,f);return this.insertImpl(hn.hostView,Se,Gc(this._hostTNode,Pt)),hn}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const s=t._lView;if(function jg(e){return qi(e[$r])}(s)){const C=this.indexOf(t);if(-1!==C)this.detach(C);else{const P=s[$r],re=new VE(P,P[xi],P[$r]);re.detach(re.indexOf(t))}}const f=this._adjustIndex(n),g=this._lContainer;return $f(g,s,f,r),t.attachToViewContainerRef(),es(sv(g),f,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=$E(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ff(this._lContainer,n);r&&(os(sv(this._lContainer),n),Vp(r[_n],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ff(this._lContainer,n);return r&&null!=os(sv(this._lContainer),n)?new Wf(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function $E(e){return e[8]}function sv(e){return e[8]||(e[8]=[])}function KE(e,t){let n;const r=t[e.index];return qi(r)?n=r:(n=aE(r,t,null,e),t[e.index]=n,Gp(t,n)),HE(n,t,e,r),new VE(n,e,t)}let HE=GE,av=()=>!1;function GE(e,t,n,r){if(e[Yo])return;let s;s=8&n.type?ci(r):function xT(e,t){const n=e[pr],r=n.createComment(""),s=Xo(t,e);return jl(n,$p(n,s),r,function Yb(e,t){return e.nextSibling(t)}(n,s),!1),r}(t,n),e[Yo]=s}function kT(e,t,n){var r;if(e[Yo]&&e[Ls])return!0;const s=n[ao],f=t.index-ir;if(!s||function El(e){if(_l(e))return!0;let t=e.parent;for(;t;){if(_l(e)||ef(t))return!0;t=t.parent}return!1}(t)||Ol(s,f))return!1;const C=Nc(s,f),P=null===(r=s.data[su])||void 0===r?void 0:r[f],[re,Se]=function oT(e,t){const n=[];for(const s of t)for(let f=0;f<(null!==(r=s[Ru])&&void 0!==r?r:1);f++){var r;const g={data:s,firstChild:null};s[au]>0&&(g.firstChild=e,e=qp(s[au],e)),n.push(g)}return[e,n]}(C,P);return e[Yo]=re,e[Ls]=Se,!0}function FT(e,t,n,r){av(e,n,t)||GE(e,t,n,r)}class uv{constructor(t){this.queryList=t,this.matches=null}clone(){return new uv(this.queryList)}setDirty(){this.queryList.setDirty()}}class lv{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let f=0;f<r;f++){const g=n.getByIndex(f);s.push(this.queries[g.indexInDeclarationView].clone())}return new lv(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==pv(t,n).matches&&this.queries[n].setDirty()}}class zE{constructor(t,n,r=null){this.flags=n,this.read=r,this.predicate="string"==typeof t?function KT(e){return e.split(",").map(t=>t.trim())}(t):t}}class cv{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const s=null!==n?n.length:0,f=this.getByIndex(r).embeddedTView(t,s);f&&(f.indexInDeclarationView=r,null!==n?n.push(f):n=[f])}return null!==n?new cv(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class dv{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new dv(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1&~this.metadata.flags){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const f=r[s];this.matchTNodeWithReadOption(t,n,BT(n,f)),this.matchTNodeWithReadOption(t,n,fl(n,t,f,!1,!1))}else r===Gf?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,fl(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Au||s===ig||s===Gf&&4&n.type)this.addMatch(n.index,-2);else{const f=fl(n,t,s,!1,!1);null!==f&&this.addMatch(n.index,f)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function BT(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function VT(e,t,n,r){return-1===n?function jT(e,t){return 11&e.type?iu(e,t):4&e.type?Yp(e,t):null}(t,e):-2===n?function $T(e,t,n){return n===Au?iu(t,e):n===Gf?Yp(t,e):n===ig?KE(t,e):void 0}(e,t,r):La(e,e[_n],n,t)}function QE(e,t,n,r){const s=t[$e].queries[r];if(null===s.matches){const f=e.data,g=n.matches,C=[];for(let P=0;null!==g&&P<g.length;P+=2){const re=g[P];C.push(re<0?null:VT(t,f[re],g[P+1],n.metadata.read))}s.matches=C}return s.matches}function fv(e,t,n,r){const s=e.queries.getByIndex(n),f=s.matches;if(null!==f){const g=QE(e,t,s,n);for(let C=0;C<f.length;C+=2){const P=f[C];if(P>0)r.push(g[C/2]);else{const re=f[C+1],Se=t[-P];for(let xe=li;xe<Se.length;xe++){const at=Se[xe];at[Le]===at[$r]&&fv(at[_n],at,re,r)}if(null!==Se[ls]){const xe=Se[ls];for(let at=0;at<xe.length;at++){const yt=xe[at];fv(yt[_n],yt,re,r)}}}}}return r}function YE(e,t,n){var r;const s=new vl(!(4&~n));return function sI(e,t,n,r){const s=lE(t);s.push(n),e.firstCreatePass&&cE(e).push(r,s.length-1)}(e,t,s,s.destroy),(null!==(r=t[$e])&&void 0!==r?r:t[$e]=new lv).queries.push(new uv(s))-1}function ZE(e,t,n){null===e.queries&&(e.queries=new cv),e.queries.track(new dv(t,n))}function pv(e,t){return e.queries.getByIndex(t)}function qE(e,t){const n=e[_n],r=pv(n,t);return r.crossesNgTemplate?fv(n,e,t,[]):QE(n,e,r,t)}function gv(e){return"function"==typeof e&&void 0!==e[$]}function ey(e,t){Ca("NgSignals");const n=function ye(e){const t=Object.create(he);t.value=e;const n=()=>(Z(t),t.value);return n[$]=t,n}(e),r=n[$];return null!=t&&t.equal&&(r.equal=t.equal),n.set=s=>be(r,s),n.update=s=>function Fe(e,t){Y()||it(),be(e,t(e.value))}(r,s),n.asReadonly=ty.bind(n),n}function ty(){const e=this[$];if(void 0===e.readonlyFn){const t=()=>this();t[$]=e,e.readonlyFn=t}return e.readonlyFn}function ny(e){return gv(e)&&"function"==typeof e.set}function vv(e){let t=function hy(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(Si(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new mt(903,!1);s=t.\u0275dir}if(s){if(n){r.push(s);const g=e;g.inputs=sg(e.inputs),g.inputTransforms=sg(e.inputTransforms),g.declaredInputs=sg(e.declaredInputs),g.outputs=sg(e.outputs);const C=s.hostBindings;C&&iD(e,C);const P=s.viewQuery,re=s.contentQueries;if(P&&nD(e,P),re&&rD(e,re),eD(e,s),qn(e.outputs,s.outputs),Si(s)&&s.data.animation){const Se=e.data;Se.animation=(Se.animation||[]).concat(s.data.animation)}}const f=s.features;if(f)for(let g=0;g<f.length;g++){const C=f[g];C&&C.ngInherit&&C(e),C===vv&&(n=!1)}}t=Object.getPrototypeOf(t)}!function tD(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Qo(s.hostAttrs,n=Qo(n,s.hostAttrs))}}(r)}function eD(e,t){for(const r in t.inputs){if(!t.inputs.hasOwnProperty(r)||e.inputs.hasOwnProperty(r))continue;const s=t.inputs[r];if(void 0!==s&&(e.inputs[r]=s,e.declaredInputs[r]=t.declaredInputs[r],null!==t.inputTransforms)){var n;const f=Array.isArray(s)?s[0]:s;if(!t.inputTransforms.hasOwnProperty(f))continue;null!==(n=e.inputTransforms)&&void 0!==n||(e.inputTransforms={}),e.inputTransforms[f]=t.inputTransforms[f]}}}function sg(e){return e===No?{}:e===Or?[]:e}function nD(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function rD(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,f)=>{t(r,s,f),n(r,s,f)}:t}function iD(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}function vy(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];Array.isArray(s)&&s[3]&&(n[r]=s[3])}e.inputTransforms=n}class $l{}class _y{}function cD(e,t){return new _v(e,null!=t?t:null,[])}class _v extends $l{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new BE(this);const s=Gi(t);this._bootstrapComponents=Ti(s.bootstrap),this._r3Injector=Xd(t,n,[{provide:$l,useValue:this},{provide:Jf,useValue:this.componentFactoryResolver},...r],Kn(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ev extends _y{constructor(t){super(),this.moduleType=t}create(t){return new _v(this.moduleType,t,[])}}class Ey extends $l{constructor(t){super(),this.componentFactoryResolver=new BE(this),this.instance=null;const n=new Li([...t.providers,{provide:$l,useValue:this},{provide:Jf,useValue:this.componentFactoryResolver}],t.parent||Eo(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function yv(e,t,n=null){return new Ey({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Yc=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ce.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ug(e){return!!Cv(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Cv(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Va(e,t,n){return e[t]=n}function bo(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Kl(e,t,n,r){const s=bo(e,t,n);return bo(e,t+1,r)||s}function ih(e){return!(32&~e.flags)}function Xc(e,t,n,r,s,f,g,C){const P=Zt(),re=kr(),Se=e+ir,xe=re.firstCreatePass?function vD(e,t,n,r,s,f,g,C,P){const re=t.consts,Se=Wc(t,e,4,g||null,xs(re,C));Vm(t,n,Se,xs(re,P)),pa(t,Se);const xe=Se.tView=jm(2,Se,r,s,f,t.directiveRegistry,t.pipeRegistry,null,t.schemas,re,null);return null!==t.queries&&(t.queries.template(t,Se),xe.queries=t.queries.embeddedTView(Se)),Se}(Se,re,P,t,n,r,s,f,g):re.data[Se];ys(xe,!1);const at=yy(re,P,xe,e);sc()&&Kp(re,P,at,xe),Uo(at,P);const yt=aE(at,P,at,xe);return P[Se]=yt,Gp(P,yt),function WE(e,t,n){return av(e,t,n)}(yt,xe,P),mu(xe)&&Um(re,P,xe),null!=g&&Bm(P,xe,C),Xc}let yy=Cy;function Cy(e,t,n,r){return Cs(!0),t[pr].createComment("")}function _D(e,t,n,r){var s,f;const g=t[ao],C=!g||Za()||ih(n)||Ol(g,r);if(Cs(C),C)return Cy(0,t);const P=null!==(s=null===(f=g.data[Tl])||void 0===f?void 0:f[r])&&void 0!==s?s:null;null!==P&&null!==n.tView&&null===n.tView.ssrId&&(n.tView.ssrId=P);const re=Zp(g,e,t,n);return uu(g,r,re),qp(Lc(g,r),re)}function wv(e,t,n,r){const s=Zt();return bo(s,ks(),t)&&(kr(),ja(wi(),s,e,t,n,r)),wv}function id(e,t,n,r){return bo(e,ks(),n)?t+dt(n)+r:Nr}function sd(e,t,n,r,s,f,g,C){const re=function lg(e,t,n,r,s){const f=Kl(e,t,n,r);return bo(e,t+2,s)||f}(e,ta(),n,s,g);return na(3),re?t+dt(n)+r+dt(s)+f+dt(g)+C:Nr}function ad(e,t,n,r,s,f,g,C,P,re){const xe=function sa(e,t,n,r,s,f){const g=Kl(e,t,n,r);return Kl(e,t+2,s,f)||g}(e,ta(),n,s,g,P);return na(4),xe?t+dt(n)+r+dt(s)+f+dt(g)+C+dt(P)+re:Nr}function gg(e,t){return e<<17|t<<2}function Gu(e){return e>>17&32767}function Rv(e){return 2|e}function Wl(e){return(131068&e)>>2}function Nv(e,t){return-131069&e|t<<2}function Lv(e){return 1|e}function Zy(e,t,n,r){const s=e[n+1],f=null===t;let g=r?Gu(s):Wl(s),C=!1;for(;0!==g&&(!1===C||f);){const re=e[g+1];rO(e[g],t)&&(C=!0,e[g+1]=r?Lv(re):Rv(re)),g=r?Gu(re):Wl(re)}C&&(e[n+1]=r?Rv(s):Lv(s))}function rO(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Ei(e,t)>=0}const jo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function qy(e){return e.substring(jo.key,jo.keyEnd)}function iO(e){return e.substring(jo.value,jo.valueEnd)}function e0(e,t){const n=jo.textEnd;return n===t?-1:(t=jo.keyEnd=function aO(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,jo.key=t,n),fd(e,t,n))}function t0(e,t){const n=jo.textEnd;let r=jo.key=fd(e,t,n);return n===r?-1:(r=jo.keyEnd=function uO(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=r0(e,r,n),r=jo.value=fd(e,r,n),r=jo.valueEnd=function lO(e,t,n){let r=-1,s=-1,f=-1,g=t,C=g;for(;g<n;){const P=e.charCodeAt(g++);if(59===P)return C;34===P||39===P?C=g=o0(e,P,g,n):t===g-4&&85===f&&82===s&&76===r&&40===P?C=g=o0(e,41,g,n):P>32&&(C=g),f=s,s=r,r=-33&P}return C}(e,r,n),r0(e,r,n))}function n0(e){jo.key=0,jo.keyEnd=0,jo.value=0,jo.valueEnd=0,jo.textEnd=e.length}function fd(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function r0(e,t,n,r){return(t=fd(e,t,n))<n&&t++,t}function o0(e,t,n,r){let s=-1,f=n;for(;f<r;){const g=e.charCodeAt(f++);if(g==t&&92!==s)return f;s=92==g&&92===s?0:g}throw new Error}function xv(e,t,n){const r=Zt();return bo(r,ks(),t)&&Ts(kr(),wi(),r,e,t,r[pr],n,!1),xv}function kv(e,t,n,r,s){const g=s?"class":"style";Wm(e,n,t.inputs[g],g,r)}function Fv(e,t,n){return ba(e,t,n,!1),Fv}function Uv(e,t){return ba(e,t,null,!0),Uv}function Sa(e){Ia(l0,cO,e,!1)}function cO(e,t){for(let n=function sO(e){return n0(e),t0(e,fd(e,0,jo.textEnd))}(t);n>=0;n=t0(t,n))l0(e,qy(t),iO(t))}function s0(e){Ia(mO,$a,e,!0)}function $a(e,t){for(let n=function oO(e){return n0(e),e0(e,fd(e,0,jo.textEnd))}(t);n>=0;n=e0(t,n))Zr(e,qy(t),!0)}function ba(e,t,n,r){const s=Zt(),f=kr(),g=na(2);f.firstUpdatePass&&u0(f,e,g,r),t!==Nr&&bo(s,g,t)&&c0(f,f.data[Go()],s,s[pr],e,s[g+1]=function _O(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Kn(_a(e)))),e}(t,n),r,g)}function Ia(e,t,n,r){const s=kr(),f=na(2);s.firstUpdatePass&&u0(s,null,f,r);const g=Zt();if(n!==Nr&&bo(g,f,n)){const C=s.data[Go()];if(f0(C,r)&&!a0(s,f)){let P=r?C.classesWithoutHost:C.stylesWithoutHost;null!==P&&(n=Qn(P,n||"")),kv(s,C,g,n,r)}else!function vO(e,t,n,r,s,f,g,C){s===Nr&&(s=Or);let P=0,re=0,Se=0<s.length?s[0]:null,xe=0<f.length?f[0]:null;for(;null!==Se||null!==xe;){const at=P<s.length?s[P+1]:void 0,yt=re<f.length?f[re+1]:void 0;let Gt,Pt=null;Se===xe?(P+=2,re+=2,at!==yt&&(Pt=xe,Gt=yt)):null===xe||null!==Se&&Se<xe?(P+=2,Pt=Se):(re+=2,Pt=xe,Gt=yt),null!==Pt&&c0(e,t,n,r,Pt,Gt,g,C),Se=P<s.length?s[P]:null,xe=re<f.length?f[re]:null}}(s,C,g,g[pr],g[f+1],g[f+1]=function gO(e,t,n){if(null==n||""===n)return Or;const r=[],s=_a(n);if(Array.isArray(s))for(let f=0;f<s.length;f++)e(r,s[f],!0);else if("object"==typeof s)for(const f in s)s.hasOwnProperty(f)&&e(r,f,s[f]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,f)}}function a0(e,t){return t>=e.expandoStartIndex}function u0(e,t,n,r){const s=e.data;if(null===s[n+1]){const f=s[Go()],g=a0(e,n);f0(f,r)&&null===t&&!g&&(t=!1),t=function dO(e,t,n,r){const s=function ic(e){const t=br.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let f=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=uh(n=Bv(null,e,t,n,r),t.attrs,r),f=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==s)if(n=Bv(s,e,t,n,r),null===f){let P=function fO(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Wl(r))return e[Gu(r)]}(e,t,r);void 0!==P&&Array.isArray(P)&&(P=Bv(null,e,t,P[1],r),P=uh(P,t.attrs,r),function hO(e,t,n,r){e[Gu(n?t.classBindings:t.styleBindings)]=r}(e,t,r,P))}else f=function pO(e,t,n){let r;const s=t.directiveEnd;for(let f=1+t.directiveStylingLast;f<s;f++)r=uh(r,e[f].hostAttrs,n);return uh(r,t.attrs,n)}(e,t,r)}return void 0!==f&&(r?t.residualClasses=f:t.residualStyles=f),n}(s,f,t,r),function tO(e,t,n,r,s,f){let g=f?t.classBindings:t.styleBindings,C=Gu(g),P=Wl(g);e[r]=n;let Se,re=!1;if(Array.isArray(n)?(Se=n[1],(null===Se||Ei(n,Se)>0)&&(re=!0)):Se=n,s)if(0!==P){const at=Gu(e[C+1]);e[r+1]=gg(at,C),0!==at&&(e[at+1]=Nv(e[at+1],r)),e[C+1]=function qD(e,t){return 131071&e|t<<17}(e[C+1],r)}else e[r+1]=gg(C,0),0!==C&&(e[C+1]=Nv(e[C+1],r)),C=r;else e[r+1]=gg(P,0),0===C?C=r:e[P+1]=Nv(e[P+1],r),P=r;re&&(e[r+1]=Rv(e[r+1])),Zy(e,Se,r,!0),Zy(e,Se,r,!1),function nO(e,t,n,r,s){const f=s?e.residualClasses:e.residualStyles;null!=f&&"string"==typeof t&&Ei(f,t)>=0&&(n[r+1]=Lv(n[r+1]))}(t,Se,e,r,f),g=gg(C,P),f?t.classBindings=g:t.styleBindings=g}(s,f,t,n,g,r)}}function Bv(e,t,n,r,s){let f=null;const g=n.directiveEnd;let C=n.directiveStylingLast;for(-1===C?C=n.directiveStart:C++;C<g&&(f=t[C],r=uh(r,f.hostAttrs,s),f!==e);)C++;return null!==e&&(n.directiveStylingLast=C),r}function uh(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let f=0;f<t.length;f++){const g=t[f];"number"==typeof g?s=g:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Zr(e,g,!!n||t[++f]))}return void 0===e?null:e}function l0(e,t,n){Zr(e,t,_a(n))}function mO(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&Zr(e,r,n)}function c0(e,t,n,r,s,f,g,C){if(!(3&t.type))return;const P=e.data,re=P[C+1],Se=function eO(e){return!(1&~e)}(re)?d0(P,t,n,s,Wl(re),g):void 0;mg(Se)||(mg(f)||function ZD(e){return!(2&~e)}(re)&&(f=d0(P,null,n,s,C,g)),function Zb(e,t,n,r,s){if(t)s?e.addClass(n,r):e.removeClass(n,r);else{let f=-1===r.indexOf("-")?void 0:cs.DashCase;null==s?e.removeStyle(n,r,f):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),f|=cs.Important),e.setStyle(n,r,s,f))}}(r,g,Eu(Go(),n),s,f))}function d0(e,t,n,r,s,f){const g=null===t;let C;for(;s>0;){const P=e[s],re=Array.isArray(P),Se=re?P[1]:P,xe=null===Se;let at=n[s+1];at===Nr&&(at=xe?Or:void 0);let yt=xe?Zi(at,r):Se===r?at:void 0;if(re&&!mg(yt)&&(yt=Zi(P,r)),mg(yt)&&(C=yt,g))return C;const Pt=e[s+1];s=g?Gu(Pt):Wl(Pt)}if(null!==t){let P=f?t.residualClasses:t.residualStyles;null!=P&&(C=Zi(P,r))}return C}function mg(e){return void 0!==e}function f0(e,t){return!!(e.flags&(t?8:16))}function h0(e,t,n){Ia(Zr,$a,id(Zt(),e,t,n),!0)}function p0(e,t,n,r,s,f,g){Ia(Zr,$a,sd(Zt(),e,t,n,r,s,f,g),!0)}function g0(e,t,n,r,s,f,g,C,P){Ia(Zr,$a,ad(Zt(),e,t,n,r,s,f,g,C,P),!0)}function vg(e,t,n,r){const s=Zt(),f=kr(),g=ir+e,C=s[pr],P=f.firstCreatePass?function UO(e,t,n,r,s,f){const g=t.consts,P=Wc(t,e,2,r,xs(g,s));return Vm(t,n,P,xs(g,f)),null!==P.attrs&&ng(P,P.attrs,!1),null!==P.mergedAttrs&&ng(P,P.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,P),P}(g,f,s,t,n,r):f.data[g],re=E0(f,s,P,C,t,e);s[g]=re;const Se=mu(P);return ys(P,!0),Y_(C,re,P),!ih(P)&&sc()&&Kp(f,s,re,P),0===function Dd(){return br.lFrame.elementDepthCount}()&&Uo(re,s),function Ja(){br.lFrame.elementDepthCount++}(),Se&&(Um(f,s,P),Fm(f,P,s)),null!==r&&Bm(s,P),vg}function _g(){let e=bi();tc()?nc():(e=e.parent,ys(e,!1));const t=e;(function Oh(e){return br.skipHydrationRootTNode===e})(t)&&function Ad(){br.skipHydrationRootTNode=null}(),function Od(){br.lFrame.elementDepthCount--}();const n=kr();return n.firstCreatePass&&(pa(n,e),gu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function lc(e){return!!(8&e.flags)}(t)&&kv(n,t,Zt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Uh(e){return!!(16&e.flags)}(t)&&kv(n,t,Zt(),t.stylesWithoutHost,!1),_g}function Hv(e,t,n,r){return vg(e,t,n,r),_g(),Hv}let E0=(e,t,n,r,s,f)=>(Cs(!0),$u(r,s,Fd()));function BO(e,t,n,r,s,f){const g=t[ao],C=!g||Za()||ih(n)||Ol(g,f);if(Cs(C),C)return $u(r,s,Fd());const P=Zp(g,e,t,n);return bf(g,f)&&uu(g,f,P.nextSibling),g&&(ef(n)||tf(P))&&fa(n)&&(function $g(e){br.skipHydrationRootTNode=e}(n),G_(P)),P}function Eg(e,t,n){const r=Zt(),s=kr(),f=e+ir,g=s.firstCreatePass?function VO(e,t,n,r,s){const f=t.consts,g=xs(f,r),C=Wc(t,e,8,"ng-container",g);return null!==g&&ng(C,g,!0),Vm(t,n,C,xs(f,s)),null!==t.queries&&t.queries.elementStart(t,C),C}(f,s,r,t,n):s.data[f];ys(g,!0);const C=y0(s,r,g,e);return r[f]=C,sc()&&Kp(s,r,C,g),Uo(C,r),mu(g)&&(Um(s,r,g),Fm(s,g,r)),null!=n&&Bm(r,g),Eg}function yg(){let e=bi();const t=kr();return tc()?nc():(e=e.parent,ys(e,!1)),t.firstCreatePass&&(pa(t,e),gu(e)&&t.queries.elementEnd(e)),yg}function Wv(e,t,n){return Eg(e,t,n),yg(),Wv}let y0=(e,t,n,r)=>(Cs(!0),Bl(t[pr],""));function $O(e,t,n,r){let s;const f=t[ao],g=!f||Za()||ih(n);if(Cs(g),g)return Bl(t[pr],"");const C=Zp(f,e,t,n),P=function Pp(e,t){var n,r,s;const f=e.data;let g=null!==(n=null===(r=f[Il])||void 0===r?void 0:r[t])&&void 0!==n?n:null;return null===g&&null!==(s=f[su])&&void 0!==s&&s[t]&&(g=Lc(e,t)),g}(f,r);return uu(f,r,C),s=qp(P,C),s}function C0(){return Zt()}const Gl=void 0;var WO=["en",[["a","p"],["AM","PM"],Gl],[["AM","PM"],Gl,Gl],[["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"]],Gl,[["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"]],Gl,[["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}",Gl,"{1} 'at' {0}",Gl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function HO(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let hd={};function Gv(e){const t=function GO(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=T0(t);if(n)return n;const r=t.split("-")[0];if(n=T0(r),n)return n;if("en"===r)return WO;throw new mt(701,!1)}function I0(e){return Gv(e)[pd.PluralCase]}function T0(e){return e in hd||(hd[e]=Ht.ng&&Ht.ng.common&&Ht.ng.common.locales&&Ht.ng.common.locales[e]),hd[e]}var pd=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(pd||{});const gd="en-US";let D0=gd;function x0(e,t,n){const r=e[pr];switch(n){case Node.COMMENT_NODE:return Bl(r,t);case Node.TEXT_NODE:return Ul(r,t);case Node.ELEMENT_NODE:return $u(r,t,null)}}let fh=(e,t,n,r)=>(Cs(!0),x0(e,n,r));function sA(e,t,n,r){return Cs(!0),x0(e,n,r)}function Yv(e,t,n,r){const s=Zt(),f=kr(),g=bi();return Xv(f,s,s[pr],g,e,t,r),Yv}function Xv(e,t,n,r,s,f,g){const C=mu(r),re=e.firstCreatePass&&cE(e),Se=t[Di],xe=lE(t);let at=!0;if(3&r.type||g){const Gt=Xo(r,t),hn=g?g(Gt):Gt,vn=xe.length,en=g?Ur=>g(ci(Ur[r.index])):r.index;let Sr=null;if(!g&&C&&(Sr=function $A(e,t,n,r){const s=e.cleanup;if(null!=s)for(let f=0;f<s.length-1;f+=2){const g=s[f];if(g===n&&s[f+1]===r){const C=t[da],P=s[f+2];return C.length>P?C[P]:null}"string"==typeof g&&(f+=2)}return null}(e,t,s,r.index)),null!==Sr)(Sr.__ngLastListenerFn__||Sr).__ngNextListenerFn__=f,Sr.__ngLastListenerFn__=f,at=!1;else{f=eC(r,t,Se,f,!1);const Ur=n.listen(hn,s,f);xe.push(f,Ur),re&&re.push(s,en,vn,vn+1)}}else f=eC(r,t,Se,f,!1);const yt=r.outputs;let Pt;if(at&&null!==yt&&(Pt=yt[s])){const Gt=Pt.length;if(Gt)for(let hn=0;hn<Gt;hn+=2){const ii=t[Pt[hn]][Pt[hn+1]].subscribe(f),qo=xe.length;xe.push(f,ii),re&&re.push(s,r.index,qo,-(qo+1))}}}function q0(e,t,n,r){const s=B(null);try{return qs(6,t,n),!1!==n(r)}catch(f){return zp(e,f),!1}finally{qs(7,t,n),B(s)}}function eC(e,t,n,r,s){return function f(g){if(g===Function)return r;Hf(e.componentOffset>-1?So(e.index,t):t);let P=q0(t,n,r,g),re=f.__ngNextListenerFn__;for(;re;)P=q0(t,n,re,g)&&P,re=re.__ngNextListenerFn__;return s&&!1===P&&g.preventDefault(),P}}function tC(e=1){return function ol(e){return(br.lFrame.contextLView=function Td(e,t){for(;e>0;)t=t[Po],e--;return t}(e,br.lFrame.contextLView))[Di]}(e)}function KA(e,t){let n=null;const r=function Ha(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const f=t[s];if("*"!==f){if(null===r?_o(e,f,!0):zs(r,f))return s}else n=s}return n}function nC(e){const t=Zt()[rt][xi];if(!t.projection){const r=t.projection=function hs(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),s=r.slice();let f=t.child;for(;null!==f;){const g=e?KA(f,e):0;null!==g&&(s[g]?s[g].projectionNext=f:r[g]=f,s[g]=f),f=f.next}}}function rC(e,t=0,n){const r=Zt(),s=kr(),f=Wc(s,ir+e,16,null,n||null);null===f.projection&&(f.projection=t),nc(),(!r[ao]||Za())&&32&~f.flags&&function Xb(e,t,n){z_(t[pr],0,t,n,Rm(e,n,t),V_(n.parent||t[xi],n,t))}(s,r,f)}function hC(e,t,n,r){!function JE(e,t,n,r){const s=kr();if(s.firstCreatePass){const f=bi();ZE(s,new zE(t,n,r),f.index),function HT(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),!(2&~n)&&(s.staticContentQueries=!0)}return YE(s,Zt(),n)}(e,t,n,r)}function pC(e,t,n){!function XE(e,t,n){const r=kr();return r.firstCreatePass&&(ZE(r,new zE(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),YE(r,Zt(),t)}(e,t,n)}function gC(e){const t=Zt(),n=kr(),r=nl();oc(r+1);const s=pv(n,r);if(e.dirty&&function bd(e){return!(4&~e[Wn])}(t)===!(2&~s.metadata.flags)){if(null===s.matches)e.reset([]);else{const f=qE(t,r);e.reset(f,qd),e.notifyOnChanges()}return!0}return!1}function mC(){return function hv(e,t){return e[$e].queries[t].queryList}(Zt(),nl())}function vC(e){return za(function Md(){return br.lFrame.contextLView}(),ir+e)}function OC(e,t=""){const n=Zt(),r=kr(),s=e+ir,f=r.firstCreatePass?Wc(r,s,1,t,null):r.data[s],g=AC(r,n,f,t,e);n[s]=g,sc()&&Kp(r,n,g,f),ys(f,!1)}let AC=(e,t,n,r,s)=>(Cs(!0),Ul(t[pr],r));function rP(e,t,n,r,s){const f=t[ao],g=!f||Za()||ih(n)||Ol(f,s);return Cs(g),g?Ul(t[pr],r):Zp(f,e,t,n)}function Zv(e){return Tg("",e,""),Zv}function Tg(e,t,n){const r=Zt(),s=id(r,e,t,n);return s!==Nr&&function hu(e,t,n){const r=Eu(t,e);!function $c(e,t,n){e.setValue(t,n)}(e[pr],r,n)}(r,Go(),s),Tg}function qv(e,t,n){ny(t)&&(t=t());const r=Zt();return bo(r,ks(),t)&&Ts(kr(),wi(),r,e,t,r[pr],n,!1),qv}function FC(e,t){const n=ny(e);return n&&e.set(t),n}function e_(e,t){const n=Zt(),r=kr(),s=bi();return Xv(r,n,n[pr],s,e,t),e_}function t_(e,t,n,r,s){if(e=ke(e),Array.isArray(e))for(let f=0;f<e.length;f++)t_(e[f],t,n,r,s);else{const f=kr(),g=Zt(),C=bi();let P=Qr(e)?e:ke(e.provide);const re=yo(e),Se=1048575&C.providerIndexes,xe=C.directiveStart,at=C.providerIndexes>>20;if(Qr(e)||!e.multi){const yt=new Iu(re,s,Hc),Pt=r_(P,t,s?Se:Se+at,xe);-1===Pt?(fc(qa(C,g),f,P),n_(f,e,t.length),t.push(P),C.directiveStart++,C.directiveEnd++,s&&(C.providerIndexes+=1048576),n.push(yt),g.push(yt)):(n[Pt]=yt,g[Pt]=yt)}else{const yt=r_(P,t,Se+at,xe),Pt=r_(P,t,Se,Se+at),hn=Pt>=0&&n[Pt];if(s&&!hn||!s&&!(yt>=0&&n[yt])){fc(qa(C,g),f,P);const vn=function uP(e,t,n,r,s){const f=new Iu(e,n,Hc);return f.multi=[],f.index=t,f.componentProviders=0,UC(f,s,r&&!n),f}(s?aP:sP,n.length,s,r,re);!s&&hn&&(n[Pt].providerFactory=vn),n_(f,e,t.length,0),t.push(P),C.directiveStart++,C.directiveEnd++,s&&(C.providerIndexes+=1048576),n.push(vn),g.push(vn)}else n_(f,e,yt>-1?yt:Pt,UC(n[s?Pt:yt],re,!s&&r));!s&&r&&hn&&n[Pt].componentProviders++}}}function n_(e,t,n,r){const s=Qr(t),f=function Ci(e){return!!e.useClass}(t);if(s||f){const P=(f?ke(t.useClass):t).prototype.ngOnDestroy;if(P){const re=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const Se=re.indexOf(n);-1===Se?re.push(n,[r,P]):re[Se+1].push(r,P)}else re.push(n,P)}}}function UC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function r_(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function sP(e,t,n,r){return i_(this.multi,[])}function aP(e,t,n,r){const s=this.multi;let f;if(this.providerFactory){const g=this.providerFactory.componentProviders,C=La(n,n[_n],this.providerFactory.index,r);f=C.slice(0,g),i_(s,f);for(let P=g;P<C.length;P++)f.push(C[P])}else f=[],i_(s,f);return f}function i_(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function BC(e,t=[]){return n=>{n.providersResolver=(r,s)=>function oP(e,t,n){const r=kr();if(r.firstCreatePass){const s=Si(e);t_(n,r.data,r.blueprint,s,!0),t_(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}let lP=(()=>{var e;class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const s=St(0,r.type),f=s.length>0?yv([s],this._injector,"Standalone[".concat(r.type.name,"]")):null;this.cachedInjectors.set(r,f)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=gr({token:e,providedIn:"environment",factory:()=>new e(hr(ui))}),t})();function jC(e){Ca("NgStandalone"),e.getStandaloneInjector=t=>t.get(lP).getOrCreateStandaloneInjector(e)}function VC(e,t,n){const r=e.\u0275cmp;r.directiveDefs=x(t,!1),r.pipeDefs=x(n,!0)}function KC(e,t,n){const r=po()+e,s=Zt();return s[r]===Nr?Va(s,r,n?t.call(n):t()):function rh(e,t){return e[t]}(s,r)}function HC(e,t,n,r){return GC(Zt(),po(),e,t,n,r)}function WC(e,t,n,r,s){return zC(Zt(),po(),e,t,n,r,s)}function gh(e,t){const n=e[t];return n===Nr?void 0:n}function GC(e,t,n,r,s,f){const g=t+n;return bo(e,g,s)?Va(e,g+1,f?r.call(f,s):r(s)):gh(e,g+1)}function zC(e,t,n,r,s,f,g){const C=t+n;return Kl(e,C,s,f)?Va(e,C+2,g?r.call(g,s,f):r(s,f)):gh(e,C+2)}function JC(e,t){const n=kr();let r;const s=e+ir;var f;n.firstCreatePass?(r=function _P(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(null!==(f=n.destroyHooks)&&void 0!==f?f:n.destroyHooks=[]).push(s,r.onDestroy)):r=n.data[s];const g=r.factory||(r.factory=lo(r.type)),P=rn(Hc);try{const re=cc(!1),Se=g();return cc(re),function zA(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Zt(),s,Se),Se}finally{rn(P)}}function ZC(e,t,n){const r=e+ir,s=Zt(),f=za(s,r);return mh(s,r)?GC(s,po(),t,f.transform,n,f):f.transform(n)}function qC(e,t,n,r){const s=e+ir,f=Zt(),g=za(f,s);return mh(f,s)?zC(f,po(),t,g.transform,n,r,g):g.transform(n,r)}function mh(e,t){return e[_n].data[t].pure}function eS(e,t){return Yp(e,t)}class mS{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let vS=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const CS=new Ut(""),SS=new Ut("");let d_,mM=(()=>{var e;class t{constructor(r,s,f){this._ngZone=r,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,d_||(function vM(e){d_=e}(f),f.addToWindow(s)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Mo.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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(r)||(clearTimeout(s.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,s,f){let g=-1;s&&s>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(C=>C.timeoutId!==g),r()},s)),this._callbacks.push({doneCb:r,timeoutId:g,updateCb:f})}whenStable(r,s,f){if(f&&!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(r,s,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,s,f){return[]}}return(e=t).\u0275fac=function(r){return new(r||e)(hr(Mo),hr(bS),hr(SS))},e.\u0275prov=gr({token:e,factory:e.\u0275fac}),t})(),bS=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(r,s){this._applications.set(r,s)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,s=!0){var f,g;return null!==(f=null===(g=d_)||void 0===g?void 0:g.findTestabilityInTree(this,r,s))&&void 0!==f?f:null}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function f_(e){return!!e&&"function"==typeof e.then}function IS(e){return!!e&&"function"==typeof e.subscribe}const TS=new Ut("");let h_=(()=>{var e;class t{constructor(){var r;this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,f)=>{this.resolve=s,this.reject=f}),this.appInits=null!==(r=Yn(TS,{optional:!0}))&&void 0!==r?r:[]}runInitializers(){if(this.initialized)return;const r=[];for(const f of this.appInits){const g=f();if(f_(g))r.push(g);else if(IS(g)){const C=new Promise((P,re)=>{g.subscribe({complete:P,error:re})});r.push(C)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{s()}).catch(f=>{this.reject(f)}),0===r.length&&s(),this.initialized=!0}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const p_=new Ut("");function AS(e,t){return Array.isArray(t)?t.reduce(AS,e):{...e,...t}}let Eh,zu=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Yn(Jd),this.afterRenderEffectManager=Yn(Zf),this.externalTestViews=new Set,this.beforeRender=new G.B,this.afterTick=new G.B,this.componentTypes=[],this.components=[],this.isStable=Yn(Yc).hasPendingTasks.pipe((0,Be.T)(r=>!r)),this._injector=Yn(ui)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,s){const f=r instanceof TE;if(!this._injector.get(h_).done)throw!f&&as(r),new mt(405,!1);let C;C=f?r:this._injector.get(Jf).resolveComponentFactory(r),this.componentTypes.push(C.componentType);const P=function _M(e){return e.isBoundToModule}(C)?void 0:this._injector.get($l),Se=C.create(rs.NULL,[],s||C.selector,P),xe=Se.location.nativeElement,at=Se.injector.get(CS,null);return null==at||at.registerApplication(xe),Se.onDestroy(()=>{this.detachView(Se.hostView),Pg(this.components,Se),null==at||at.unregisterApplication(xe)}),this._loadComponent(Se),Se}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new mt(101,!1);const s=B(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(f){this.internalErrorHandler(f)}finally{this.afterTick.next(),this._runningTick=!1,B(s)}}detectChangesInAttachedViews(r){let s=0;const f=this.afterRenderEffectManager;for(;;){if(s===gE)throw new mt(103,!1);if(r){const g=0===s;this.beforeRender.next(g);for(let{_lView:C,notifyErrorHandler:P}of this._views)EM(C,g,P)}if(s++,f.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>g_(g))&&(f.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>g_(g))))break}}attachView(r){const s=r;this._views.push(s),s.attachToAppRef(this)}detachView(r){const s=r;Pg(this._views,s),s.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const s=this._injector.get(p_,[]);[...this._bootstrapListeners,...s].forEach(f=>f(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Pg(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new mt(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function Pg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function PS(e){var t;null!==(t=Eh)&&void 0!==t||(Eh=new WeakMap);const n=Eh.get(e);if(n)return n;const r=e.isStable.pipe((0,qe.$)(s=>s)).toPromise().then(()=>{});return Eh.set(e,r),e.onDestroy(()=>{var s;return null===(s=Eh)||void 0===s?void 0:s.delete(e)}),r}function EM(e,t,n){!t&&!g_(e)||function yM(e,t,n){let r;n?(r=0,e[Wn]|=1024):r=64&e[Wn]?0:1,Qp(e,t,r)}(e,n,t)}function g_(e){return Qa(e)}class CM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let SM=(()=>{var e;class t{compileModuleSync(r){return new Ev(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const s=this.compileModuleSync(r),g=Ti(Gi(r).declarations).reduce((C,P)=>{const re=vr(P);return re&&C.push(new th(re)),C},[]);return new CM(s,g)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),TM=(()=>{var e;class t{constructor(){this.zone=Yn(Mo),this.applicationRef=Yn(zu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;null===(r=this._onMicrotaskEmptySubscription)||void 0===r||r.unsubscribe()}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function DM(){const e=Yn(Mo),t=Yn(Ss);return n=>e.runOutsideAngular(()=>t.handleError(n))}let AM=(()=>{var e;class t{constructor(){this.subscription=new K.yU,this.initialized=!1,this.zone=Yn(Mo),this.pendingTasks=Yn(Yc)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Mo.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var s;Mo.assertInAngularZone(),null!==(s=r)&&void 0!==s||(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(r){return new(r||e)},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const Mg=new Ut("",{providedIn:"root",factory:()=>Yn(Mg,ct.Optional|ct.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||gd}()}),MM=new Ut("",{providedIn:"root",factory:()=>"USD"}),m_=new Ut("");let NS=(()=>{var e;class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,s){const f=function yT(e="zone.js",t){return"noop"===e?new RE:"zone.js"===e?new Mo(t):e}(null==s?void 0:s.ngZone,function RS(e){var t,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(n=null==e?void 0:e.runCoalescing)&&void 0!==n&&n}}({eventCoalescing:null==s?void 0:s.ngZoneEventCoalescing,runCoalescing:null==s?void 0:s.ngZoneRunCoalescing}));return f.run(()=>{const g=function dD(e,t,n){return new _v(e,t,n)}(r.moduleType,this.injector,function wS(e){return[{provide:Mo,useFactory:e},{provide:zo,multi:!0,useFactory:()=>{const t=Yn(TM,{optional:!0});return()=>t.initialize()}},{provide:zo,multi:!0,useFactory:()=>{const t=Yn(AM);return()=>{t.initialize()}}},{provide:Jd,useFactory:DM}]}(()=>f)),C=g.injector.get(Ss,null);return f.runOutsideAngular(()=>{const P=f.onError.subscribe({next:re=>{C.handleError(re)}});g.onDestroy(()=>{Pg(this._modules,g),P.unsubscribe()})}),function OS(e,t,n){try{const r=n();return f_(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(C,f,()=>{const P=g.injector.get(h_);return P.runInitializers(),P.donePromise.then(()=>(function O0(e){"string"==typeof e&&(D0=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(Mg,gd)||gd),this._moduleDoBootstrap(g),g))})})}bootstrapModule(r,s=[]){const f=AS({},s);return function IM(e,t,n){const r=new Ev(n);return Promise.resolve(r)}(0,0,r).then(g=>this.bootstrapModuleFactory(g,f))}_moduleDoBootstrap(r){const s=r.injector.get(zu);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(f=>s.bootstrap(f));else{if(!r.instance.ngDoBootstrap)throw new mt(-403,!1);r.instance.ngDoBootstrap(s)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new mt(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const r=this._injector.get(m_,null);r&&(r.forEach(s=>s()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(r){return new(r||e)(hr(rs))},e.\u0275prov=gr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Qu=null;const LS=new Ut("");function xS(e,t,n=[]){const r="Platform: ".concat(t),s=new Ut(r);return(f=[])=>{let g=v_();if(!g||g.injector.get(LS,!1)){const C=[...n,...f,{provide:s,useValue:!0}];e?e(C):function RM(e){if(Qu&&!Qu.get(LS,!1))throw new mt(400,!1);(function DS(){!function Ze(e){Oe=e}(()=>{throw new mt(600,!1)})})(),Qu=e;const t=e.get(NS);(function FS(e){const t=e.get(bl,null);null==t||t.forEach(n=>n())})(e)}(function kS(e=[],t){return rs.create({name:t,providers:[{provide:hi,useValue:"platform"},{provide:m_,useValue:new Set([()=>Qu=null])},...e]})}(C,r))}return function NM(e){const t=v_();if(!t)throw new mt(401,!1);return t}()}}function v_(){var e,t;return null!==(e=null===(t=Qu)||void 0===t?void 0:t.get(NS))&&void 0!==e?e:null}function xM(){return!1}function kM(){}let BS=(()=>{class t{}return t.__NG_ELEMENT_ID__=FM,t})();function FM(e){return function UM(e,t,n){if(fa(e)&&!n){const r=So(e.index,t);return new Wf(r,r)}return 47&e.type?new Wf(t[rt],t):null}(bi(),Zt(),!(16&~e))}class KS{constructor(){}supports(t){return ug(t)}create(t){return new KM(t)}}const $M=(e,t)=>t;class KM{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||$M}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,f=null;for(;n||r;){const g=!r||n&&n.currentIndex<WS(r,s,f)?n:r,C=WS(g,s,f),P=g.currentIndex;if(g===r)s--,r=r._nextRemoved;else if(n=n._next,null==g.previousIndex)s++;else{f||(f=[]);const re=C-s,Se=P-s;if(re!=Se){for(let at=0;at<re;at++){const yt=at<f.length?f[at]:f[at]=0,Pt=yt+at;Se<=Pt&&Pt<re&&(f[at]=yt+1)}f[g.previousIndex]=Se-re}}C!==P&&t(g,C,P)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!ug(t))throw new mt(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,f,g,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let C=0;C<this.length;C++)f=t[C],g=this._trackByFn(C,f),null!==n&&Object.is(n.trackById,g)?(r&&(n=this._verifyReinsertion(n,f,g,C)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,g,C),r=!0),n=n._next}else s=0,function gD(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)}}(t,C=>{g=this._trackByFn(s,C),null!==n&&Object.is(n.trackById,g)?(r&&(n=this._verifyReinsertion(n,C,g,s)),Object.is(n.item,C)||this._addIdentityChange(n,C)):(n=this._mismatch(n,C,g,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let f;return null===t?f=this._itTail:(f=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,f,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,f,s)):t=this._addAfter(new HM(n,r),f,s),t}_verifyReinsertion(t,n,r,s){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==f?t=this._reinsertAfter(f,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,f=t._nextRemoved;return null===s?this._removalsHead=f:s._nextRemoved=f,null===f?this._removalsTail=s:f._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new HS),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new HS),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class HM{constructor(t,n){this.item=t,this.trackById=n,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 WM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class HS{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new WM,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function WS(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class GS{constructor(){}supports(t){return t instanceof Map||Cv(t)}create(){return new GM}}class GM{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(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Cv(t)))throw new mt(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const f=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,f)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const f=s._prev,g=s._next;return f&&(f._next=g),g&&(g._prev=f),s._next=null,s._prev=null,s}const r=new zM(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class zM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function zS(){return new S_([new KS])}let S_=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,s){if(null!=s){const f=s.factories.slice();r=r.concat(f)}return new t(r)}static extend(r){return{provide:t,useFactory:s=>t.create(r,s||zS()),deps:[[t,new fs,new Os]]}}find(r){const s=this.factories.find(f=>f.supports(r));if(null!=s)return s;throw new mt(901,!1)}}return(e=t).\u0275prov=gr({token:e,providedIn:"root",factory:zS}),t})();function QS(){return new b_([new GS])}let b_=(()=>{var e;class t{constructor(r){this.factories=r}static create(r,s){if(s){const f=s.factories.slice();r=r.concat(f)}return new t(r)}static extend(r){return{provide:t,useFactory:s=>t.create(r,s||QS()),deps:[[t,new fs,new Os]]}}find(r){const s=this.factories.find(f=>f.supports(r));if(s)return s;throw new mt(901,!1)}}return(e=t).\u0275prov=gr({token:e,providedIn:"root",factory:QS}),t})();const XM=xS(null,"core",[]);let JM=(()=>{var e;class t{constructor(r){}}return(e=t).\u0275fac=function(r){return new(r||e)(hr(zu))},e.\u0275mod=ns({type:e}),e.\u0275inj=ro({}),t})(),ub=!1,lb=!1;function gw(){return Ke([{provide:Al,useFactory:()=>{let e=!0;if(go()){const t=Yn(wu,{optional:!0});e=!(null==t||!t.get(Mc,null))}return e&&Ca("NgHydration"),e}},{provide:zo,useValue:()=>{lb=!!Yn(Tf,{optional:!0}),go()&&Yn(Al)&&(function vw(){const e=va();let t;for(const r of e.body.childNodes){var n;if(r.nodeType===Node.COMMENT_NODE&&(null===(n=r.textContent)||void 0===n?void 0:n.trim())===Sp){t=r;break}}if(!t)throw new mt(-507,!1)}(),function hw(){ub||(ub=!0,function Ip(){yf=bp}(),function jO(){E0=BO}(),function iP(){AC=rP}(),function KO(){y0=$O}(),function ED(){yy=_D}(),function UT(){HE=FT,av=kT}(),function aT(){IE=sT}(),function oI(){nE=iI}(),function aA(){fh=sA}())}())},multi:!0},{provide:Pl,useFactory:()=>go()&&Yn(Al)},{provide:p_,useFactory:()=>{if(go()&&Yn(Al)){const e=Yn(zu);return Yn(rs),()=>{(function pw(e,t){return PS(e)})(e).then(()=>{!function YI(e){const t=e._views;for(const n of t){const r=Cf(n);null!==r&&null!==r[Cr]&&(ho(r)?Jp(r):(Jp(r[Cr]),SE(r)))}}(e)})}}return()=>{}},multi:!0}])}function Ow(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function Pw(e,t){Ca("NgSignals");const n=function J(e){const t=Object.create(De);t.computation=e;const n=()=>{if(Q(t),Z(t),t.value===ge)throw t.error;return t.value};return n[$]=t,n}(e);return null!=t&&t.equal&&(n[$].equal=t.equal),n}function Mw(e){const t=B(null);try{return e()}finally{B(t)}}const ww=new Ut("",{providedIn:"root",factory:()=>Yn(Rw)});let Rw=(()=>{var e;class t{}return(e=t).\u0275prov=gr({token:e,providedIn:"root",factory:()=>new Nw}),t})();class Nw{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Yn(Yc),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class Lw{constructor(t,n,r,s,f,g){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=f,this.watcher=function st(e,t,n){const r=Object.create(A);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const s=P=>{r.cleanupFn=P};return r.ref={notify:()=>ve(r),run:()=>{if(null===r.fn)return;if(function te(){return v}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!w(r))return;r.hasRun=!0;const P=pe(r);try{r.cleanupFn(),r.cleanupFn=R,r.fn(s)}finally{fe(r,P)}},cleanup:()=>r.cleanupFn(),destroy:()=>function g(P){(function f(P){return null===P.fn&&null===P.schedule})(P)||(j(P),P.cleanupFn(),P.fn=null,P.schedule=null,P.cleanupFn=R)}(r),[$]:r},r.ref}(C=>this.runEffect(C),()=>this.schedule(),g),this.unregisterOnDestroy=null==s?void 0:s.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){const r=this.injector.get(Ss,null,{optional:!0});null==r||r.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function mb(e,t){var n,r;Ca("NgSignals"),(null==t||!t.injector)&&M();const s=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Yn(rs),f=!0!==(null==t?void 0:t.manualCleanup)?s.get(xa):null,g=new Lw(s.get(ww),e,typeof Zone>"u"?null:Zone.current,f,s,null!==(r=null==t?void 0:t.allowSignalWrites)&&void 0!==r&&r),C=s.get(BS,null,{optional:!0});var P,re;return C&&8&C._lView[Wn]?(null!==(re=(P=C._lView)[ei])&&void 0!==re?re:P[ei]=[]).push(g.watcher.notify):g.watcher.notify(),g}function xw(e){const t=vr(e);if(!t)return null;const n=new th(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}}}},9079:(ee,_,c)=>{"use strict";c.d(_,{ot:()=>te,pQ:()=>v});var l=c(4438),p=c(1985),E=c(6977);function v(me){me||((0,l.Af3)(v),me=(0,l.WQX)(l.abz));const V=new p.c(Z=>me.onDestroy(Z.next.bind(Z)));return Z=>Z.pipe((0,E.Q)(V))}function te(me,V){var Z,le;const Q=!(null!=V&&V.manualCleanup);Q&&(null==V||!V.injector)&&(0,l.Af3)(te);const z=Q?null!==(Z=null==V||null===(le=V.injector)||void 0===le?void 0:le.get(l.abz))&&void 0!==Z?Z:(0,l.WQX)(l.abz):null;let Y;Y=(0,l.vPA)(null!=V&&V.requireSync?{kind:0}:{kind:1,value:null==V?void 0:V.initialValue});const ve=me.subscribe({next:pe=>Y.set({kind:1,value:pe}),error:pe=>{if(null!=V&&V.rejectErrors)throw pe;Y.set({kind:2,error:pe})}});return null==z||z.onDestroy(ve.unsubscribe.bind(ve)),(0,l.EWP)(()=>{const pe=Y();switch(pe.kind){case 1:return pe.value;case 2:throw pe.error;case 0:throw new l.wOt(601,"`toSignal()` called with `requireSync` but `Observable` did not emit synchronously.")}})}},9383:(ee,_,c)=>{"use strict";c.d(_,{$E:()=>rr,yE:()=>Ke,r6:()=>ar,pZ:()=>wr});var l=c(4438),p=c(177),E=c(6860),v=c(1413);c(8359),c(8141);var lr=c(152),Gr=(c(5964),c(6354)),Dn=c(6697);function jt(rt){return Array.isArray(rt)?rt:[rt]}function Ie(rt){return rt instanceof l.aKT?rt.nativeElement:rt}var Te=c(4572),ft=c(8793),Et=c(1985),ct=c(5245),Lt=c(9172),Qt=c(6977);const zn=new Set;let er,d=(()=>{var rt;class Le{constructor($e,bt){this._platform=$e,this._nonce=bt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):de}matchMedia($e){return(this._platform.WEBKIT||this._platform.BLINK)&&function T(rt,Le){if(!zn.has(rt))try{er||(er=document.createElement("style"),Le&&er.setAttribute("nonce",Le),er.setAttribute("type","text/css"),document.head.appendChild(er)),er.sheet&&(er.sheet.insertRule("@media ".concat(rt," {body{ }}"),0),zn.add(rt))}catch(Qe){console.error(Qe)}}($e,this._nonce),this._matchMedia($e)}}return(rt=Le).\u0275fac=function($e){return new($e||rt)(l.KVO(E.OD),l.KVO(l.BIS,8))},rt.\u0275prov=l.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"}),Le})();function de(rt){return{matches:"all"===rt||""===rt,media:rt,addListener:()=>{},removeListener:()=>{}}}let Ae=(()=>{var rt;class Le{constructor($e,bt){this._mediaMatcher=$e,this._zone=bt,this._queries=new Map,this._destroySubject=new v.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched($e){return nt(jt($e)).some(on=>this._registerQuery(on).mql.matches)}observe($e){const on=nt(jt($e)).map(ei=>this._registerQuery(ei).observable);let Ln=(0,Te.z)(on);return Ln=(0,ft.x)(Ln.pipe((0,Dn.s)(1)),Ln.pipe((0,ct.i)(1),(0,lr.B)(0))),Ln.pipe((0,Gr.T)(ei=>{const Mi={matches:!1,breakpoints:{}};return ei.forEach(({matches:ir,query:Xi})=>{Mi.matches=Mi.matches||ir,Mi.breakpoints[Xi]=ir}),Mi}))}_registerQuery($e){if(this._queries.has($e))return this._queries.get($e);const bt=this._mediaMatcher.matchMedia($e),Ln={observable:new Et.c(ei=>{const Mi=ir=>this._zone.run(()=>ei.next(ir));return bt.addListener(Mi),()=>{bt.removeListener(Mi)}}).pipe((0,Lt.Z)(bt),(0,Gr.T)(({matches:ei})=>({query:$e,matches:ei})),(0,Qt.Q)(this._destroySubject)),mql:bt};return this._queries.set($e,Ln),Ln}}return(rt=Le).\u0275fac=function($e){return new($e||rt)(l.KVO(d),l.KVO(l.SKi))},rt.\u0275prov=l.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"}),Le})();function nt(rt){return rt.map(Le=>Le.split(",")).reduce((Le,Qe)=>Le.concat(Qe)).map(Le=>Le.trim())}var fo=function(rt){return rt[rt.NONE=0]="NONE",rt[rt.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",rt[rt.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",rt}(fo||{});const ts="cdk-high-contrast-black-on-white",Bi="cdk-high-contrast-white-on-black",Ho="cdk-high-contrast-active";let _o=(()=>{var rt;class Le{constructor($e,bt){this._platform=$e,this._document=bt,this._breakpointSubscription=(0,l.WQX)(Ae).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return fo.NONE;const $e=this._document.createElement("div");$e.style.backgroundColor="rgb(1,2,3)",$e.style.position="absolute",this._document.body.appendChild($e);const bt=this._document.defaultView||window,on=bt&&bt.getComputedStyle?bt.getComputedStyle($e):null,Ln=(on&&on.backgroundColor||"").replace(/ /g,"");switch($e.remove(),Ln){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return fo.BLACK_ON_WHITE}return fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const $e=this._document.body.classList;$e.remove(Ho,ts,Bi),this._hasCheckedHighContrastMode=!0;const bt=this.getHighContrastMode();bt===fo.BLACK_ON_WHITE?$e.add(Ho,ts):bt===fo.WHITE_ON_BLACK&&$e.add(Ho,Bi)}}}return(rt=Le).\u0275fac=function($e){return new($e||rt)(l.KVO(E.OD),l.KVO(p.qQ))},rt.\u0275prov=l.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"}),Le})(),Rs=(()=>{var rt;class Le{}return(rt=Le).\u0275fac=function($e){return new($e||rt)},rt.\u0275mod=l.$C({type:rt}),rt.\u0275inj=l.G2t({}),Le})();const Me=new l.nKC("mat-sanity-checks",{providedIn:"root",factory:function se(){return!0}});let Ke=(()=>{var rt;class Le{constructor($e,bt,on){this._sanityChecks=bt,this._document=on,this._hasDoneGlobalChecks=!1,$e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled($e){return!(0,E.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[$e])}}return(rt=Le).\u0275fac=function($e){return new($e||rt)(l.KVO(_o),l.KVO(Me,8),l.KVO(p.qQ))},rt.\u0275mod=l.$C({type:rt}),rt.\u0275inj=l.G2t({imports:[Rs,Rs]}),Le})();var wn=function(rt){return rt[rt.FADING_IN=0]="FADING_IN",rt[rt.VISIBLE=1]="VISIBLE",rt[rt.FADING_OUT=2]="FADING_OUT",rt[rt.HIDDEN=3]="HIDDEN",rt}(wn||{});class Xn{constructor(Le,Qe,$e,bt=!1){this._renderer=Le,this.element=Qe,this.config=$e,this._animationForciblyDisabledThroughCss=bt,this.state=wn.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const Er=(0,E.BQ)({passive:!0,capture:!0});class M{constructor(){this._events=new Map,this._delegateEventHandler=Le=>{const Qe=(0,E.Fb)(Le);var $e;Qe&&(null===($e=this._events.get(Le.type))||void 0===$e||$e.forEach((bt,on)=>{(on===Qe||on.contains(Qe))&&bt.forEach(Ln=>Ln.handleEvent(Le))}))}}addHandler(Le,Qe,$e,bt){const on=this._events.get(Qe);if(on){const Ln=on.get($e);Ln?Ln.add(bt):on.set($e,new Set([bt]))}else this._events.set(Qe,new Map([[$e,new Set([bt])]])),Le.runOutsideAngular(()=>{document.addEventListener(Qe,this._delegateEventHandler,Er)})}removeHandler(Le,Qe,$e){const bt=this._events.get(Le);if(!bt)return;const on=bt.get(Qe);on&&(on.delete($e),0===on.size&&bt.delete(Qe),0===bt.size&&(this._events.delete(Le),document.removeEventListener(Le,this._delegateEventHandler,Er)))}}const ae={enterDuration:225,exitDuration:150},ie=(0,E.BQ)({passive:!0,capture:!0}),Re=["mousedown","touchstart"],lt=["mouseup","mouseleave","touchend","touchcancel"];class $t{constructor(Le,Qe,$e,bt){this._target=Le,this._ngZone=Qe,this._platform=bt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,bt.isBrowser&&(this._containerElement=Ie($e))}fadeInRipple(Le,Qe,$e={}){const bt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),on={...ae,...$e.animation};$e.centered&&(Le=bt.left+bt.width/2,Qe=bt.top+bt.height/2);const Ln=$e.radius||function qt(rt,Le,Qe){const $e=Math.max(Math.abs(rt-Qe.left),Math.abs(rt-Qe.right)),bt=Math.max(Math.abs(Le-Qe.top),Math.abs(Le-Qe.bottom));return Math.sqrt($e*$e+bt*bt)}(Le,Qe,bt),ei=Le-bt.left,Mi=Qe-bt.top,ir=on.enterDuration,Xi=document.createElement("div");Xi.classList.add("mat-ripple-element"),Xi.style.left="".concat(ei-Ln,"px"),Xi.style.top="".concat(Mi-Ln,"px"),Xi.style.height="".concat(2*Ln,"px"),Xi.style.width="".concat(2*Ln,"px"),null!=$e.color&&(Xi.style.backgroundColor=$e.color),Xi.style.transitionDuration="".concat(ir,"ms"),this._containerElement.appendChild(Xi);const Ls=window.getComputedStyle(Xi),Oi=Ls.transitionDuration,ls="none"===Ls.transitionProperty||"0s"===Oi||"0s, 0s"===Oi||0===bt.width&&0===bt.height,li=new Xn(this,Xi,$e,ls);Xi.style.transform="scale3d(1, 1, 1)",li.state=wn.FADING_IN,$e.persistent||(this._mostRecentTransientRipple=li);let Pa=null;return!ls&&(ir||on.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ho=()=>this._finishRippleTransition(li),qi=()=>this._destroyRipple(li);Xi.addEventListener("transitionend",ho),Xi.addEventListener("transitioncancel",qi),Pa={onTransitionEnd:ho,onTransitionCancel:qi}}),this._activeRipples.set(li,Pa),(ls||!ir)&&this._finishRippleTransition(li),li}fadeOutRipple(Le){if(Le.state===wn.FADING_OUT||Le.state===wn.HIDDEN)return;const Qe=Le.element,$e={...ae,...Le.config.animation};Qe.style.transitionDuration="".concat($e.exitDuration,"ms"),Qe.style.opacity="0",Le.state=wn.FADING_OUT,(Le._animationForciblyDisabledThroughCss||!$e.exitDuration)&&this._finishRippleTransition(Le)}fadeOutAll(){this._getActiveRipples().forEach(Le=>Le.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Le=>{Le.config.persistent||Le.fadeOut()})}setupTriggerEvents(Le){const Qe=Ie(Le);!this._platform.isBrowser||!Qe||Qe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Qe,Re.forEach($e=>{$t._eventManager.addHandler(this._ngZone,$e,Qe,this)}))}handleEvent(Le){"mousedown"===Le.type?this._onMousedown(Le):"touchstart"===Le.type?this._onTouchStart(Le):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{lt.forEach(Qe=>{this._triggerElement.addEventListener(Qe,this,ie)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Le){Le.state===wn.FADING_IN?this._startFadeOutTransition(Le):Le.state===wn.FADING_OUT&&this._destroyRipple(Le)}_startFadeOutTransition(Le){const Qe=Le===this._mostRecentTransientRipple,{persistent:$e}=Le.config;Le.state=wn.VISIBLE,!$e&&(!Qe||!this._isPointerDown)&&Le.fadeOut()}_destroyRipple(Le){var Qe;const $e=null!==(Qe=this._activeRipples.get(Le))&&void 0!==Qe?Qe:null;this._activeRipples.delete(Le),this._activeRipples.size||(this._containerRect=null),Le===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Le.state=wn.HIDDEN,null!==$e&&(Le.element.removeEventListener("transitionend",$e.onTransitionEnd),Le.element.removeEventListener("transitioncancel",$e.onTransitionCancel)),Le.element.remove()}_onMousedown(Le){const Qe=function No(rt){return 0===rt.buttons||0===rt.detail}(Le),$e=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Qe&&!$e&&(this._isPointerDown=!0,this.fadeInRipple(Le.clientX,Le.clientY,this._target.rippleConfig))}_onTouchStart(Le){if(!this._target.rippleDisabled&&!function Or(rt){const Le=rt.touches&&rt.touches[0]||rt.changedTouches&&rt.changedTouches[0];return!(!Le||-1!==Le.identifier||null!=Le.radiusX&&1!==Le.radiusX||null!=Le.radiusY&&1!==Le.radiusY)}(Le)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Qe=Le.changedTouches;if(Qe)for(let $e=0;$e<Qe.length;$e++)this.fadeInRipple(Qe[$e].clientX,Qe[$e].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(Le=>{!Le.config.persistent&&(Le.state===wn.VISIBLE||Le.config.terminateOnPointerUp&&Le.state===wn.FADING_IN)&&Le.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Le=this._triggerElement;Le&&(Re.forEach(Qe=>$t._eventManager.removeHandler(Qe,Le,this)),this._pointerUpEventsRegistered&<.forEach(Qe=>Le.removeEventListener(Qe,this,ie)))}}$t._eventManager=new M;const rr=new l.nKC("mat-ripple-global-options");let ar=(()=>{var rt;class Le{get disabled(){return this._disabled}set disabled($e){$e&&this.fadeOutAllNonPersistent(),this._disabled=$e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger($e){this._trigger=$e,this._setupTriggerEventsIfEnabled()}constructor($e,bt,on,Ln,ei){this._elementRef=$e,this._animationMode=ei,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Ln||{},this._rippleRenderer=new $t(this,bt,$e,on)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch($e,bt=0,on){return"number"==typeof $e?this._rippleRenderer.fadeInRipple($e,bt,{...this.rippleConfig,...on}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...$e})}}return(rt=Le).\u0275fac=function($e){return new($e||rt)(l.rXU(l.aKT),l.rXU(l.SKi),l.rXU(E.OD),l.rXU(rr,8),l.rXU(l.bc$,8))},rt.\u0275dir=l.FsC({type:rt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function($e,bt){2&$e&&l.AVh("mat-ripple-unbounded",bt.unbounded)},inputs:{color:[l.Mj6.None,"matRippleColor","color"],unbounded:[l.Mj6.None,"matRippleUnbounded","unbounded"],centered:[l.Mj6.None,"matRippleCentered","centered"],radius:[l.Mj6.None,"matRippleRadius","radius"],animation:[l.Mj6.None,"matRippleAnimation","animation"],disabled:[l.Mj6.None,"matRippleDisabled","disabled"],trigger:[l.Mj6.None,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0}),Le})(),wr=(()=>{var rt;class Le{}return(rt=Le).\u0275fac=function($e){return new($e||rt)},rt.\u0275mod=l.$C({type:rt}),rt.\u0275inj=l.G2t({imports:[Ke,Ke]}),Le})()},9184:(ee,_,c)=>{"use strict";c.d(_,{wb:()=>yi});var l=c(4438),p=c(345),E=function(Pe){return Pe[Pe.State=0]="State",Pe[Pe.Transition=1]="Transition",Pe[Pe.Sequence=2]="Sequence",Pe[Pe.Group=3]="Group",Pe[Pe.Animate=4]="Animate",Pe[Pe.Keyframes=5]="Keyframes",Pe[Pe.Style=6]="Style",Pe[Pe.Trigger=7]="Trigger",Pe[Pe.Reference=8]="Reference",Pe[Pe.AnimateChild=9]="AnimateChild",Pe[Pe.AnimateRef=10]="AnimateRef",Pe[Pe.Query=11]="Query",Pe[Pe.Stagger=12]="Stagger",Pe}(E||{});const v="*";function te(Pe){return{type:E.Style,styles:Pe,offset:null}}class X{constructor(y=0,x=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=y+x}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(y=>y()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(y){this._position=this.totalTime?y*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(y){const x="start"==y?this._onStartFns:this._onDoneFns;x.forEach(se=>se()),x.length=0}}class J{constructor(y){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=y;let x=0,se=0,Me=0;const Ke=this.players.length;0==Ke?queueMicrotask(()=>this._onFinish()):this.players.forEach(vt=>{vt.onDone(()=>{++x==Ke&&this._onFinish()}),vt.onDestroy(()=>{++se==Ke&&this._onDestroy()}),vt.onStart(()=>{++Me==Ke&&this._onStart()})}),this.totalTime=this.players.reduce((vt,St)=>Math.max(vt,St.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this.players.forEach(y=>y.init())}onStart(y){this._onStartFns.push(y)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(y=>y()),this._onStartFns=[])}onDone(y){this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(y=>y.play())}pause(){this.players.forEach(y=>y.pause())}restart(){this.players.forEach(y=>y.restart())}finish(){this._onFinish(),this.players.forEach(y=>y.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(y=>y.destroy()),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}reset(){this.players.forEach(y=>y.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(y){const x=y*this.totalTime;this.players.forEach(se=>{const Me=se.totalTime?Math.min(1,x/se.totalTime):1;se.setPosition(Me)})}getPosition(){const y=this.players.reduce((x,se)=>null===x||se.totalTime>x.totalTime?se:x,null);return null!=y?y.getPosition():0}beforeDestroy(){this.players.forEach(y=>{y.beforeDestroy&&y.beforeDestroy()})}triggerCallback(y){const x="start"==y?this._onStartFns:this._onDoneFns;x.forEach(se=>se()),x.length=0}}function He(Pe){return new l.wOt(3e3,!1)}function Sn(Pe){switch(Pe.length){case 0:return new X;case 1:return Pe[0];default:return new J(Pe)}}function Ht(Pe,y,x=new Map,se=new Map){const Me=[],Ke=[];let vt=-1,St=null;if(y.forEach(kt=>{const Yt=kt.get("offset"),An=Yt==vt,Fn=An&&St||new Map;kt.forEach((Tr,_r)=>{let Zn=_r,ur=Tr;if("offset"!==_r)switch(Zn=Pe.normalizePropertyName(Zn,Me),ur){case"!":ur=x.get(_r);break;case v:ur=se.get(_r);break;default:ur=Pe.normalizeStyleValue(_r,Zn,ur,Me)}Fn.set(Zn,ur)}),An||Ke.push(Fn),St=Fn,vt=Yt}),Me.length)throw function Nt(Pe){return new l.wOt(3502,!1)}();return Ke}function On(Pe,y,x,se){switch(y){case"start":Pe.onStart(()=>se(x&&Gn(x,"start",Pe)));break;case"done":Pe.onDone(()=>se(x&&Gn(x,"done",Pe)));break;case"destroy":Pe.onDestroy(()=>se(x&&Gn(x,"destroy",Pe)))}}function Gn(Pe,y,x){const se=x.totalTime,Ke=$n(Pe.element,Pe.triggerName,Pe.fromState,Pe.toState,y||Pe.phaseName,null==se?Pe.totalTime:se,!!x.disabled),vt=Pe._data;return null!=vt&&(Ke._data=vt),Ke}function $n(Pe,y,x,se,Me="",Ke=0,vt){return{element:Pe,triggerName:y,fromState:x,toState:se,phaseName:Me,totalTime:Ke,disabled:!!vt}}function qn(Pe,y,x){let se=Pe.get(y);return se||Pe.set(y,se=x),se}function Kn(Pe){const y=Pe.indexOf(":");return[Pe.substring(1,y),Pe.slice(y+1)]}const Qn=typeof document>"u"?null:document.documentElement;function Rr(Pe){const y=Pe.parentNode||Pe.host||null;return y===Qn?null:y}let Dt=null,ke=!1;function Ct(Pe,y){for(;y;){if(y===Pe)return!0;y=Rr(y)}return!1}function xt(Pe,y,x){if(x)return Array.from(Pe.querySelectorAll(y));const se=Pe.querySelector(y);return se?[se]:[]}let Vn=(()=>{var Pe;class y{validateStyleProperty(se){return function Je(Pe){Dt||(Dt=function et(){return typeof document<"u"?document.body:null}()||{},ke=!!Dt.style&&"WebkitAppearance"in Dt.style);let y=!0;return Dt.style&&!function Pn(Pe){return"ebkit"==Pe.substring(1,6)}(Pe)&&(y=Pe in Dt.style,!y&&ke&&(y="Webkit"+Pe.charAt(0).toUpperCase()+Pe.slice(1)in Dt.style)),y}(se)}matchesElement(se,Me){return!1}containsElement(se,Me){return Ct(se,Me)}getParentElement(se){return Rr(se)}query(se,Me,Ke){return xt(se,Me,Ke)}computeStyle(se,Me,Ke){return Ke||""}animate(se,Me,Ke,vt,St,kt=[],Yt){return new X(Ke,vt)}}return(Pe=y).\u0275fac=function(se){return new(se||Pe)},Pe.\u0275prov=l.jDH({token:Pe,factory:Pe.\u0275fac}),y})();class sr{}sr.NOOP=new Vn;class Bt{}const Br=1e3,Jr="ng-enter",Dr="ng-leave",Tn="ng-trigger",fr=".ng-trigger",mo="ng-animating",no=".ng-animating";function Ai(Pe){if("number"==typeof Pe)return Pe;const y=Pe.match(/^(-?[\.\d]+)(m?s)/);return!y||y.length<2?0:Pi(parseFloat(y[1]),y[2])}function Pi(Pe,y){return"s"===y?Pe*Br:Pe}function gr(Pe,y,x){return Pe.hasOwnProperty("duration")?Pe:function vo(Pe,y,x){let Me,Ke=0,vt="";if("string"==typeof Pe){const St=Pe.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===St)return y.push(He()),{duration:0,delay:0,easing:""};Me=Pi(parseFloat(St[1]),St[2]);const kt=St[3];null!=kt&&(Ke=Pi(parseFloat(kt),St[4]));const Yt=St[5];Yt&&(vt=Yt)}else Me=Pe;if(!x){let St=!1,kt=y.length;Me<0&&(y.push(function Oe(){return new l.wOt(3100,!1)}()),St=!0),Ke<0&&(y.push(function it(){return new l.wOt(3101,!1)}()),St=!0),St&&y.splice(kt,0,He())}return{duration:Me,delay:Ke,easing:vt}}(Pe,y,x)}function ni(Pe,y,x){y.forEach((se,Me)=>{const Ke=Ut(Me);x&&!x.has(Me)&&x.set(Me,Pe.style[Ke]),Pe.style[Ke]=se})}function oi(Pe,y){y.forEach((x,se)=>{const Me=Ut(se);Pe.style[Me]=""})}function uo(Pe){return Array.isArray(Pe)?1==Pe.length?Pe[0]:function ne(Pe,y=null){return{type:E.Sequence,steps:Pe,options:y}}(Pe):Pe}const We=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function gt(Pe){let y=[];if("string"==typeof Pe){let x;for(;x=We.exec(Pe);)y.push(x[1]);We.lastIndex=0}return y}function wt(Pe,y,x){const se="".concat(Pe),Me=se.replace(We,(Ke,vt)=>{let St=y[vt];return null==St&&(x.push(function we(Pe){return new l.wOt(3003,!1)}()),St=""),St.toString()});return Me==se?Pe:Me}const It=/-+([a-z0-9])/g;function Ut(Pe){return Pe.replace(It,(...y)=>y[1].toUpperCase())}function Mn(Pe,y,x){switch(y.type){case E.Trigger:return Pe.visitTrigger(y,x);case E.State:return Pe.visitState(y,x);case E.Transition:return Pe.visitTransition(y,x);case E.Sequence:return Pe.visitSequence(y,x);case E.Group:return Pe.visitGroup(y,x);case E.Animate:return Pe.visitAnimate(y,x);case E.Keyframes:return Pe.visitKeyframes(y,x);case E.Style:return Pe.visitStyle(y,x);case E.Reference:return Pe.visitReference(y,x);case E.AnimateChild:return Pe.visitAnimateChild(y,x);case E.AnimateRef:return Pe.visitAnimateRef(y,x);case E.Query:return Pe.visitQuery(y,x);case E.Stagger:return Pe.visitStagger(y,x);default:throw function ye(Pe){return new l.wOt(3004,!1)}()}}function pn(Pe,y){return window.getComputedStyle(Pe)[y]}const mr=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class _i extends Bt{normalizePropertyName(y,x){return Ut(y)}normalizeStyleValue(y,x,se,Me){let Ke="";const vt=se.toString().trim();if(mr.has(x)&&0!==se&&"0"!==se)if("number"==typeof se)Ke="px";else{const St=se.match(/^[+-]?[\d\.]+([a-z]*)$/);St&&0==St[1].length&&Me.push(function ze(Pe,y){return new l.wOt(3005,!1)}())}return vt+Ke}}const di="*";const Ni=new Set(["true","1"]),dt=new Set(["false","0"]);function jt(Pe,y){const x=Ni.has(Pe)||dt.has(Pe),se=Ni.has(y)||dt.has(y);return(Me,Ke)=>{let vt=Pe==di||Pe==Me,St=y==di||y==Ke;return!vt&&x&&"boolean"==typeof Me&&(vt=Me?Ni.has(Pe):dt.has(Pe)),!St&&se&&"boolean"==typeof Ke&&(St=Ke?Ni.has(y):dt.has(y)),vt&&St}}const Ie=new RegExp("s*".concat(":self","s*,?"),"g");function _t(Pe,y,x,se){return new ft(Pe).build(y,x,se)}class ft{constructor(y){this._driver=y}build(y,x,se){const Me=new Lt(x);return this._resetContextStyleTimingState(Me),Mn(this,uo(y),Me)}_resetContextStyleTimingState(y){y.currentQuerySelector="",y.collectedStyles=new Map,y.collectedStyles.set("",new Map),y.currentTime=0}visitTrigger(y,x){let se=x.queryCount=0,Me=x.depCount=0;const Ke=[],vt=[];return"@"==y.name.charAt(0)&&x.errors.push(function Ye(){return new l.wOt(3006,!1)}()),y.definitions.forEach(St=>{if(this._resetContextStyleTimingState(x),St.type==E.State){const kt=St,Yt=kt.name;Yt.toString().split(/\s*,\s*/).forEach(An=>{kt.name=An,Ke.push(this.visitState(kt,x))}),kt.name=Yt}else if(St.type==E.Transition){const kt=this.visitTransition(St,x);se+=kt.queryCount,Me+=kt.depCount,vt.push(kt)}else x.errors.push(function be(){return new l.wOt(3007,!1)}())}),{type:E.Trigger,name:y.name,states:Ke,transitions:vt,queryCount:se,depCount:Me,options:null}}visitState(y,x){const se=this.visitStyle(y.styles,x),Me=y.options&&y.options.params||null;if(se.containsDynamicStyles){const Ke=new Set,vt=Me||{};se.styles.forEach(St=>{St instanceof Map&&St.forEach(kt=>{gt(kt).forEach(Yt=>{vt.hasOwnProperty(Yt)||Ke.add(Yt)})})}),Ke.size&&x.errors.push(function Fe(Pe,y){return new l.wOt(3008,!1)}(0,Ke.values()))}return{type:E.State,name:y.name,style:se,options:Me?{params:Me}:null}}visitTransition(y,x){x.queryCount=0,x.depCount=0;const se=Mn(this,uo(y.animation),x),Me=function Gr(Pe,y){const x=[];return"string"==typeof Pe?Pe.split(/\s*,\s*/).forEach(se=>function Dn(Pe,y,x){if(":"==Pe[0]){const kt=function si(Pe,y){switch(Pe){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(x,se)=>parseFloat(se)>parseFloat(x);case":decrement":return(x,se)=>parseFloat(se)<parseFloat(x);default:return y.push(function qe(Pe){return new l.wOt(3016,!1)}()),"* => *"}}(Pe,x);if("function"==typeof kt)return void y.push(kt);Pe=kt}const se=Pe.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==se||se.length<4)return x.push(function Be(Pe){return new l.wOt(3015,!1)}()),y;const Me=se[1],Ke=se[2],vt=se[3];y.push(jt(Me,vt)),"<"==Ke[0]&&(Me!=di||vt!=di)&&y.push(jt(vt,Me))}(se,x,y)):x.push(Pe),x}(y.expr,x.errors);return{type:E.Transition,matchers:Me,animation:se,queryCount:x.queryCount,depCount:x.depCount,options:zn(y.options)}}visitSequence(y,x){return{type:E.Sequence,steps:y.steps.map(se=>Mn(this,se,x)),options:zn(y.options)}}visitGroup(y,x){const se=x.currentTime;let Me=0;const Ke=y.steps.map(vt=>{x.currentTime=se;const St=Mn(this,vt,x);return Me=Math.max(Me,x.currentTime),St});return x.currentTime=Me,{type:E.Group,steps:Ke,options:zn(y.options)}}visitAnimate(y,x){const se=function rn(Pe,y){if(Pe.hasOwnProperty("duration"))return Pe;if("number"==typeof Pe)return er(gr(Pe,y).duration,0,"");const x=Pe;if(x.split(/\s+/).some(Ke=>"{"==Ke.charAt(0)&&"{"==Ke.charAt(1))){const Ke=er(0,0,"");return Ke.dynamic=!0,Ke.strValue=x,Ke}const Me=gr(x,y);return er(Me.duration,Me.delay,Me.easing)}(y.timings,x.errors);x.currentAnimateTimings=se;let Me,Ke=y.styles?y.styles:te({});if(Ke.type==E.Keyframes)Me=this.visitKeyframes(Ke,x);else{let vt=y.styles,St=!1;if(!vt){St=!0;const Yt={};se.easing&&(Yt.easing=se.easing),vt=te(Yt)}x.currentTime+=se.duration+se.delay;const kt=this.visitStyle(vt,x);kt.isEmptyStep=St,Me=kt}return x.currentAnimateTimings=null,{type:E.Animate,timings:se,style:Me,options:null}}visitStyle(y,x){const se=this._makeStyleAst(y,x);return this._validateStyleAst(se,x),se}_makeStyleAst(y,x){const se=[],Me=Array.isArray(y.styles)?y.styles:[y.styles];for(let St of Me)"string"==typeof St?St===v?se.push(St):x.errors.push(new l.wOt(3002,!1)):se.push(new Map(Object.entries(St)));let Ke=!1,vt=null;return se.forEach(St=>{if(St instanceof Map&&(St.has("easing")&&(vt=St.get("easing"),St.delete("easing")),!Ke))for(let kt of St.values())if(kt.toString().indexOf("{{")>=0){Ke=!0;break}}),{type:E.Style,styles:se,easing:vt,offset:y.offset,containsDynamicStyles:Ke,options:null}}_validateStyleAst(y,x){const se=x.currentAnimateTimings;let Me=x.currentTime,Ke=x.currentTime;se&&Ke>0&&(Ke-=se.duration+se.delay),y.styles.forEach(vt=>{"string"!=typeof vt&&vt.forEach((St,kt)=>{const Yt=x.collectedStyles.get(x.currentQuerySelector),An=Yt.get(kt);let Fn=!0;An&&(Ke!=Me&&Ke>=An.startTime&&Me<=An.endTime&&(x.errors.push(function st(Pe,y,x,se,Me){return new l.wOt(3010,!1)}()),Fn=!1),Ke=An.startTime),Fn&&Yt.set(kt,{startTime:Ke,endTime:Me}),x.options&&function Nn(Pe,y,x){const se=y.params||{},Me=gt(Pe);Me.length&&Me.forEach(Ke=>{se.hasOwnProperty(Ke)||x.push(function Ze(Pe){return new l.wOt(3001,!1)}())})}(St,x.options,x.errors)})})}visitKeyframes(y,x){const se={type:E.Keyframes,styles:[],options:null};if(!x.currentAnimateTimings)return x.errors.push(function R(){return new l.wOt(3011,!1)}()),se;let Ke=0;const vt=[];let St=!1,kt=!1,Yt=0;const An=y.steps.map(Ci=>{const hi=this._makeStyleAst(Ci,x);let pi=null!=hi.offset?hi.offset:function Qt(Pe){if("string"==typeof Pe)return null;let y=null;if(Array.isArray(Pe))Pe.forEach(x=>{if(x instanceof Map&&x.has("offset")){const se=x;y=parseFloat(se.get("offset")),se.delete("offset")}});else if(Pe instanceof Map&&Pe.has("offset")){const x=Pe;y=parseFloat(x.get("offset")),x.delete("offset")}return y}(hi.styles),zi=0;return null!=pi&&(Ke++,zi=hi.offset=pi),kt=kt||zi<0||zi>1,St=St||zi<Yt,Yt=zi,vt.push(zi),hi});kt&&x.errors.push(function A(){return new l.wOt(3012,!1)}()),St&&x.errors.push(function L(){return new l.wOt(3200,!1)}());const Fn=y.steps.length;let Tr=0;Ke>0&&Ke<Fn?x.errors.push(function G(){return new l.wOt(3202,!1)}()):0==Ke&&(Tr=1/(Fn-1));const _r=Fn-1,Zn=x.currentTime,ur=x.currentAnimateTimings,Qr=ur.duration;return An.forEach((Ci,hi)=>{const pi=Tr>0?hi==_r?1:Tr*hi:vt[hi],zi=pi*Qr;x.currentTime=Zn+ur.delay+zi,ur.duration=zi,this._validateStyleAst(Ci,x),Ci.offset=pi,se.styles.push(Ci)}),se}visitReference(y,x){return{type:E.Reference,animation:Mn(this,uo(y.animation),x),options:zn(y.options)}}visitAnimateChild(y,x){return x.depCount++,{type:E.AnimateChild,options:zn(y.options)}}visitAnimateRef(y,x){return{type:E.AnimateRef,animation:this.visitReference(y.animation,x),options:zn(y.options)}}visitQuery(y,x){const se=x.currentQuerySelector,Me=y.options||{};x.queryCount++,x.currentQuery=y;const[Ke,vt]=function Et(Pe){const y=!!Pe.split(/\s*,\s*/).find(x=>":self"==x);return y&&(Pe=Pe.replace(Ie,"")),Pe=Pe.replace(/@\*/g,fr).replace(/@\w+/g,x=>fr+"-"+x.slice(1)).replace(/:animating/g,no),[Pe,y]}(y.selector);x.currentQuerySelector=se.length?se+" "+Ke:Ke,qn(x.collectedStyles,x.currentQuerySelector,new Map);const St=Mn(this,uo(y.animation),x);return x.currentQuery=null,x.currentQuerySelector=se,{type:E.Query,selector:Ke,limit:Me.limit||0,optional:!!Me.optional,includeSelf:vt,animation:St,originalSelector:y.selector,options:zn(y.options)}}visitStagger(y,x){x.currentQuery||x.errors.push(function K(){return new l.wOt(3013,!1)}());const se="full"===y.timings?{duration:0,delay:0,easing:"full"}:gr(y.timings,x.errors,!0);return{type:E.Stagger,animation:Mn(this,uo(y.animation),x),timings:se,options:null}}}class Lt{constructor(y){this.errors=y,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zn(Pe){return Pe?(Pe={...Pe}).params&&(Pe.params=function ct(Pe){return Pe?{...Pe}:null}(Pe.params)):Pe={},Pe}function er(Pe,y,x){return{duration:Pe,delay:y,easing:x}}function d(Pe,y,x,se,Me,Ke,vt=null,St=!1){return{type:1,element:Pe,keyframes:y,preStyleProps:x,postStyleProps:se,duration:Me,delay:Ke,totalTime:Me+Ke,easing:vt,subTimeline:St}}class T{constructor(){this._map=new Map}get(y){return this._map.get(y)||[]}append(y,x){let se=this._map.get(y);se||this._map.set(y,se=[]),se.push(...x)}has(y){return this._map.has(y)}clear(){this._map.clear()}}const nt=new RegExp(":enter","g"),Ot=new RegExp(":leave","g");function gn(Pe,y,x,se,Me,Ke=new Map,vt=new Map,St,kt,Yt=[]){return(new En).buildKeyframes(Pe,y,x,se,Me,Ke,vt,St,kt,Yt)}class En{buildKeyframes(y,x,se,Me,Ke,vt,St,kt,Yt,An=[]){Yt=Yt||new T;const Fn=new In(y,x,Yt,Me,Ke,An,[]);Fn.options=kt;const Tr=kt.delay?Ai(kt.delay):0;Fn.currentTimeline.delayNextStep(Tr),Fn.currentTimeline.setStyles([vt],null,Fn.errors,kt),Mn(this,se,Fn);const _r=Fn.timelines.filter(Zn=>Zn.containsAnimation());if(_r.length&&St.size){let Zn;for(let ur=_r.length-1;ur>=0;ur--){const Qr=_r[ur];if(Qr.element===x){Zn=Qr;break}}Zn&&!Zn.allowOnlyTimelineStyles()&&Zn.setStyles([St],null,Fn.errors,kt)}return _r.length?_r.map(Zn=>Zn.buildKeyframes()):[d(x,[],[],[],0,Tr,"",!1)]}visitTrigger(y,x){}visitState(y,x){}visitTransition(y,x){}visitAnimateChild(y,x){const se=x.subInstructions.get(x.element);if(se){const Me=x.createSubContext(y.options),Ke=x.currentTimeline.currentTime,vt=this._visitSubInstructions(se,Me,Me.options);Ke!=vt&&x.transformIntoNewTimeline(vt)}x.previousNode=y}visitAnimateRef(y,x){const se=x.createSubContext(y.options);se.transformIntoNewTimeline(),this._applyAnimationRefDelays([y.options,y.animation.options],x,se),this.visitReference(y.animation,se),x.transformIntoNewTimeline(se.currentTimeline.currentTime),x.previousNode=y}_applyAnimationRefDelays(y,x,se){for(const Ke of y){const vt=null==Ke?void 0:Ke.delay;if(vt){var Me;const St="number"==typeof vt?vt:Ai(wt(vt,null!==(Me=null==Ke?void 0:Ke.params)&&void 0!==Me?Me:{},x.errors));se.delayNextStep(St)}}}_visitSubInstructions(y,x,se){let Ke=x.currentTimeline.currentTime;const vt=null!=se.duration?Ai(se.duration):null,St=null!=se.delay?Ai(se.delay):null;return 0!==vt&&y.forEach(kt=>{const Yt=x.appendInstructionToTimeline(kt,vt,St);Ke=Math.max(Ke,Yt.duration+Yt.delay)}),Ke}visitReference(y,x){x.updateOptions(y.options,!0),Mn(this,y.animation,x),x.previousNode=y}visitSequence(y,x){const se=x.subContextCount;let Me=x;const Ke=y.options;if(Ke&&(Ke.params||Ke.delay)&&(Me=x.createSubContext(Ke),Me.transformIntoNewTimeline(),null!=Ke.delay)){Me.previousNode.type==E.Style&&(Me.currentTimeline.snapshotCurrentStyles(),Me.previousNode=tr);const vt=Ai(Ke.delay);Me.delayNextStep(vt)}y.steps.length&&(y.steps.forEach(vt=>Mn(this,vt,Me)),Me.currentTimeline.applyStylesToKeyframe(),Me.subContextCount>se&&Me.transformIntoNewTimeline()),x.previousNode=y}visitGroup(y,x){const se=[];let Me=x.currentTimeline.currentTime;const Ke=y.options&&y.options.delay?Ai(y.options.delay):0;y.steps.forEach(vt=>{const St=x.createSubContext(y.options);Ke&&St.delayNextStep(Ke),Mn(this,vt,St),Me=Math.max(Me,St.currentTimeline.currentTime),se.push(St.currentTimeline)}),se.forEach(vt=>x.currentTimeline.mergeTimelineCollectedStyles(vt)),x.transformIntoNewTimeline(Me),x.previousNode=y}_visitTiming(y,x){if(y.dynamic){const se=y.strValue;return gr(x.params?wt(se,x.params,x.errors):se,x.errors)}return{duration:y.duration,delay:y.delay,easing:y.easing}}visitAnimate(y,x){const se=x.currentAnimateTimings=this._visitTiming(y.timings,x),Me=x.currentTimeline;se.delay&&(x.incrementTime(se.delay),Me.snapshotCurrentStyles());const Ke=y.style;Ke.type==E.Keyframes?this.visitKeyframes(Ke,x):(x.incrementTime(se.duration),this.visitStyle(Ke,x),Me.applyStylesToKeyframe()),x.currentAnimateTimings=null,x.previousNode=y}visitStyle(y,x){const se=x.currentTimeline,Me=x.currentAnimateTimings;!Me&&se.hasCurrentStyleProperties()&&se.forwardFrame();const Ke=Me&&Me.easing||y.easing;y.isEmptyStep?se.applyEmptyStep(Ke):se.setStyles(y.styles,Ke,x.errors,x.options),x.previousNode=y}visitKeyframes(y,x){const se=x.currentAnimateTimings,Me=x.currentTimeline.duration,Ke=se.duration,St=x.createSubContext().currentTimeline;St.easing=se.easing,y.styles.forEach(kt=>{St.forwardTime((kt.offset||0)*Ke),St.setStyles(kt.styles,kt.easing,x.errors,x.options),St.applyStylesToKeyframe()}),x.currentTimeline.mergeTimelineCollectedStyles(St),x.transformIntoNewTimeline(Me+Ke),x.previousNode=y}visitQuery(y,x){const se=x.currentTimeline.currentTime,Me=y.options||{},Ke=Me.delay?Ai(Me.delay):0;Ke&&(x.previousNode.type===E.Style||0==se&&x.currentTimeline.hasCurrentStyleProperties())&&(x.currentTimeline.snapshotCurrentStyles(),x.previousNode=tr);let vt=se;const St=x.invokeQuery(y.selector,y.originalSelector,y.limit,y.includeSelf,!!Me.optional,x.errors);x.currentQueryTotal=St.length;let kt=null;St.forEach((Yt,An)=>{x.currentQueryIndex=An;const Fn=x.createSubContext(y.options,Yt);Ke&&Fn.delayNextStep(Ke),Yt===x.element&&(kt=Fn.currentTimeline),Mn(this,y.animation,Fn),Fn.currentTimeline.applyStylesToKeyframe(),vt=Math.max(vt,Fn.currentTimeline.currentTime)}),x.currentQueryIndex=0,x.currentQueryTotal=0,x.transformIntoNewTimeline(vt),kt&&(x.currentTimeline.mergeTimelineCollectedStyles(kt),x.currentTimeline.snapshotCurrentStyles()),x.previousNode=y}visitStagger(y,x){const se=x.parentContext,Me=x.currentTimeline,Ke=y.timings,vt=Math.abs(Ke.duration),St=vt*(x.currentQueryTotal-1);let kt=vt*x.currentQueryIndex;switch(Ke.duration<0?"reverse":Ke.easing){case"reverse":kt=St-kt;break;case"full":kt=se.currentStaggerTime}const An=x.currentTimeline;kt&&An.delayNextStep(kt);const Fn=An.currentTime;Mn(this,y.animation,x),x.previousNode=y,se.currentStaggerTime=Me.currentTime-Fn+(Me.startTime-se.currentTimeline.startTime)}}const tr={};class In{constructor(y,x,se,Me,Ke,vt,St,kt){this._driver=y,this.element=x,this.subInstructions=se,this._enterClassName=Me,this._leaveClassName=Ke,this.errors=vt,this.timelines=St,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tr,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=kt||new Mr(this._driver,x,0),St.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(y,x){if(!y)return;const se=y;let Me=this.options;null!=se.duration&&(Me.duration=Ai(se.duration)),null!=se.delay&&(Me.delay=Ai(se.delay));const Ke=se.params;if(Ke){let vt=Me.params;vt||(vt=this.options.params={}),Object.keys(Ke).forEach(St=>{(!x||!vt.hasOwnProperty(St))&&(vt[St]=wt(Ke[St],vt,this.errors))})}}_copyOptions(){const y={};if(this.options){const x=this.options.params;if(x){const se=y.params={};Object.keys(x).forEach(Me=>{se[Me]=x[Me]})}}return y}createSubContext(y=null,x,se){const Me=x||this.element,Ke=new In(this._driver,Me,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Me,se||0));return Ke.previousNode=this.previousNode,Ke.currentAnimateTimings=this.currentAnimateTimings,Ke.options=this._copyOptions(),Ke.updateOptions(y),Ke.currentQueryIndex=this.currentQueryIndex,Ke.currentQueryTotal=this.currentQueryTotal,Ke.parentContext=this,this.subContextCount++,Ke}transformIntoNewTimeline(y){return this.previousNode=tr,this.currentTimeline=this.currentTimeline.fork(this.element,y),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(y,x,se){const Me={duration:null!=x?x:y.duration,delay:this.currentTimeline.currentTime+(null!=se?se:0)+y.delay,easing:""},Ke=new hr(this._driver,y.element,y.keyframes,y.preStyleProps,y.postStyleProps,Me,y.stretchStartingKeyframe);return this.timelines.push(Ke),Me}incrementTime(y){this.currentTimeline.forwardTime(this.currentTimeline.duration+y)}delayNextStep(y){y>0&&this.currentTimeline.delayNextStep(y)}invokeQuery(y,x,se,Me,Ke,vt){let St=[];if(Me&&St.push(this.element),y.length>0){y=(y=y.replace(nt,"."+this._enterClassName)).replace(Ot,"."+this._leaveClassName);let Yt=this._driver.query(this.element,y,1!=se);0!==se&&(Yt=se<0?Yt.slice(Yt.length+se,Yt.length):Yt.slice(0,se)),St.push(...Yt)}return!Ke&&0==St.length&&vt.push(function ce(Pe){return new l.wOt(3014,!1)}()),St}}class Mr{constructor(y,x,se,Me){this._driver=y,this.element=x,this.startTime=se,this._elementTimelineStylesLookup=Me,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(x),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(x,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(y){const x=1===this._keyframes.size&&this._pendingStyles.size;this.duration||x?(this.forwardTime(this.currentTime+y),x&&this.snapshotCurrentStyles()):this.startTime+=y}fork(y,x){return this.applyStylesToKeyframe(),new Mr(this._driver,y,x||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(y){this.applyStylesToKeyframe(),this.duration=y,this._loadKeyframe()}_updateStyle(y,x){this._localTimelineStyles.set(y,x),this._globalTimelineStyles.set(y,x),this._styleSummary.set(y,{time:this.currentTime,value:x})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(y){y&&this._previousKeyframe.set("easing",y);for(let[x,se]of this._globalTimelineStyles)this._backFill.set(x,se||v),this._currentKeyframe.set(x,v);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(y,x,se,Me){x&&this._previousKeyframe.set("easing",x);const Ke=Me&&Me.params||{},vt=function Yn(Pe,y){const x=new Map;let se;return Pe.forEach(Me=>{if("*"===Me){var Ke;null!==(Ke=se)&&void 0!==Ke||(se=y.keys());for(let vt of se)x.set(vt,v)}else for(let[vt,St]of Me)x.set(vt,St)}),x}(y,this._globalTimelineStyles);for(let[kt,Yt]of vt){const An=wt(Yt,Ke,se);var St;this._pendingStyles.set(kt,An),this._localTimelineStyles.has(kt)||this._backFill.set(kt,null!==(St=this._globalTimelineStyles.get(kt))&&void 0!==St?St:v),this._updateStyle(kt,An)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((y,x)=>{this._currentKeyframe.set(x,y)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((y,x)=>{this._currentKeyframe.has(x)||this._currentKeyframe.set(x,y)}))}snapshotCurrentStyles(){for(let[y,x]of this._localTimelineStyles)this._pendingStyles.set(y,x),this._updateStyle(y,x)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const y=[];for(let x in this._currentKeyframe)y.push(x);return y}mergeTimelineCollectedStyles(y){y._styleSummary.forEach((x,se)=>{const Me=this._styleSummary.get(se);(!Me||x.time>Me.time)&&this._updateStyle(se,x.value)})}buildKeyframes(){this.applyStylesToKeyframe();const y=new Set,x=new Set,se=1===this._keyframes.size&&0===this.duration;let Me=[];this._keyframes.forEach((St,kt)=>{const Yt=new Map([...this._backFill,...St]);Yt.forEach((An,Fn)=>{"!"===An?y.add(Fn):An===v&&x.add(Fn)}),se||Yt.set("offset",kt/this.duration),Me.push(Yt)});const Ke=[...y.values()],vt=[...x.values()];if(se){const St=Me[0],kt=new Map(St);St.set("offset",0),kt.set("offset",1),Me=[St,kt]}return d(this.element,Me,Ke,vt,this.duration,this.startTime,this.easing,!1)}}class hr extends Mr{constructor(y,x,se,Me,Ke,vt,St=!1){super(y,x,vt.delay),this.keyframes=se,this.preStyleProps=Me,this.postStyleProps=Ke,this._stretchStartingKeyframe=St,this.timings={duration:vt.duration,delay:vt.delay,easing:vt.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let y=this.keyframes,{delay:x,duration:se,easing:Me}=this.timings;if(this._stretchStartingKeyframe&&x){const Ke=[],vt=se+x,St=x/vt,kt=new Map(y[0]);kt.set("offset",0),Ke.push(kt);const Yt=new Map(y[0]);Yt.set("offset",Hi(St)),Ke.push(Yt);const An=y.length-1;for(let Fn=1;Fn<=An;Fn++){let Tr=new Map(y[Fn]);const _r=Tr.get("offset");Tr.set("offset",Hi((x+_r*se)/vt)),Ke.push(Tr)}se=vt,x=0,Me="",y=Ke}return d(this.element,y,this.preStyleProps,this.postStyleProps,se,x,Me,!0)}}function Hi(Pe,y=3){const x=Math.pow(10,y-1);return Math.round(Pe*x)/x}function Pr(Pe,y,x,se,Me,Ke,vt,St,kt,Yt,An,Fn,Tr){return{type:0,element:Pe,triggerName:y,isRemovalTransition:Me,fromState:x,fromStyles:Ke,toState:se,toStyles:vt,timelines:St,queriedElements:kt,preStyleProps:Yt,postStyleProps:An,totalTime:Fn,errors:Tr}}const io={};class Ui{constructor(y,x,se){this._triggerName=y,this.ast=x,this._stateStyles=se}match(y,x,se,Me){return function Oa(Pe,y,x,se,Me){return Pe.some(Ke=>Ke(y,x,se,Me))}(this.ast.matchers,y,x,se,Me)}buildStyles(y,x,se){let Me=this._stateStyles.get("*");return void 0!==y&&(Me=this._stateStyles.get(null==y?void 0:y.toString())||Me),Me?Me.buildStyles(x,se):new Map}build(y,x,se,Me,Ke,vt,St,kt,Yt,An){var Fn;const Tr=[],_r=this.ast.options&&this.ast.options.params||io,ur=this.buildStyles(se,St&&St.params||io,Tr),Qr=kt&&kt.params||io,Ci=this.buildStyles(Me,Qr,Tr),hi=new Set,pi=new Map,zi=new Map,ko="void"===Me,Eo={params:is(Qr,_r),delay:null===(Fn=this.ast.options)||void 0===Fn?void 0:Fn.delay},ui=An?[]:gn(y,x,this.ast.animation,Ke,vt,ur,Ci,Eo,Yt,Tr);let Li=0;return ui.forEach(oo=>{Li=Math.max(oo.duration+oo.delay,Li)}),Tr.length?Pr(x,this._triggerName,se,Me,ko,ur,Ci,[],[],pi,zi,Li,Tr):(ui.forEach(oo=>{const so=oo.element,Xs=qn(pi,so,new Set);oo.preStyleProps.forEach(ji=>Xs.add(ji));const yo=qn(zi,so,new Set);oo.postStyleProps.forEach(ji=>yo.add(ji)),so!==x&&hi.add(so)}),Pr(x,this._triggerName,se,Me,ko,ur,Ci,ui,[...hi.values()],pi,zi,Li))}}function is(Pe,y){const x={...y};return Object.entries(Pe).forEach(([se,Me])=>{null!=Me&&(x[se]=Me)}),x}class Vs{constructor(y,x,se){this.styles=y,this.defaultParams=x,this.normalizer=se}buildStyles(y,x){const se=new Map,Me=is(y,this.defaultParams);return this.styles.styles.forEach(Ke=>{"string"!=typeof Ke&&Ke.forEach((vt,St)=>{vt&&(vt=wt(vt,Me,x));const kt=this.normalizer.normalizePropertyName(St,x);vt=this.normalizer.normalizeStyleValue(St,kt,vt,x),se.set(St,vt)})}),se}}class Aa{constructor(y,x,se){this.name=y,this.ast=x,this._normalizer=se,this.transitionFactories=[],this.states=new Map,x.states.forEach(Me=>{this.states.set(Me.name,new Vs(Me.style,Me.options&&Me.options.params||{},se))}),$s(this.states,"true","1"),$s(this.states,"false","0"),x.transitions.forEach(Me=>{this.transitionFactories.push(new Ui(y,Me,this.states))}),this.fallbackTransition=function fs(Pe,y,x){return new Ui(Pe,{type:E.Transition,animation:{type:E.Sequence,steps:[],options:null},matchers:[(vt,St)=>!0],options:null,queryCount:0,depCount:0},y)}(y,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(y,x,se,Me){return this.transitionFactories.find(vt=>vt.match(y,x,se,Me))||null}matchStyles(y,x,se){return this.fallbackTransition.buildStyles(y,x,se)}}function $s(Pe,y,x){Pe.has(y)?Pe.has(x)||Pe.set(x,Pe.get(y)):Pe.has(x)&&Pe.set(y,Pe.get(x))}const lo=new T;class Ks{constructor(y,x,se){this.bodyNode=y,this._driver=x,this._normalizer=se,this._animations=new Map,this._playersById=new Map,this.players=[]}register(y,x){const se=[],Ke=_t(this._driver,x,se,[]);if(se.length)throw function zt(Pe){return new l.wOt(3503,!1)}();this._animations.set(y,Ke)}_buildPlayer(y,x,se){const Me=y.element,Ke=Ht(this._normalizer,y.keyframes,x,se);return this._driver.animate(Me,Ke,y.duration,y.delay,y.easing,[],!0)}create(y,x,se={}){const Me=[],Ke=this._animations.get(y);let vt;const St=new Map;if(Ke?(vt=gn(this._driver,x,Ke,Jr,Dr,new Map,new Map,se,lo,Me),vt.forEach(An=>{const Fn=qn(St,An.element,new Map);An.postStyleProps.forEach(Tr=>Fn.set(Tr,null))})):(Me.push(function fn(){return new l.wOt(3300,!1)}()),vt=[]),Me.length)throw function or(Pe){return new l.wOt(3504,!1)}();St.forEach((An,Fn)=>{An.forEach((Tr,_r)=>{An.set(_r,this._driver.computeStyle(Fn,_r,v))})});const Yt=Sn(vt.map(An=>{const Fn=St.get(An.element);return this._buildPlayer(An,new Map,Fn)}));return this._playersById.set(y,Yt),Yt.onDestroy(()=>this.destroy(y)),this.players.push(Yt),Yt}destroy(y){const x=this._getPlayer(y);x.destroy(),this._playersById.delete(y);const se=this.players.indexOf(x);se>=0&&this.players.splice(se,1)}_getPlayer(y){const x=this._playersById.get(y);if(!x)throw function Bn(Pe){return new l.wOt(3301,!1)}();return x}listen(y,x,se,Me){const Ke=$n(x,"","","");return On(this._getPlayer(y),se,Ke,Me),()=>{}}command(y,x,se,Me){if("register"==se)return void this.register(y,Me[0]);if("create"==se)return void this.create(y,x,Me[0]||{});const Ke=this._getPlayer(y);switch(se){case"play":Ke.play();break;case"pause":Ke.pause();break;case"reset":Ke.reset();break;case"restart":Ke.restart();break;case"finish":Ke.finish();break;case"init":Ke.init();break;case"setPosition":Ke.setPosition(parseFloat(Me[0]));break;case"destroy":this.destroy(y)}}}const Wi="ng-animate-queued",es="ng-animate-disabled",ua=[],Ro={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ka={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zr="__ng_removed";class Zi{get params(){return this.options.params}constructor(y,x=""){this.namespaceId=x;const se=y&&y.hasOwnProperty("value");if(this.value=function Hs(Pe){return null!=Pe?Pe:null}(se?y.value:y),se){const{value:Ke,...vt}=y;this.options=vt}else this.options={};this.options.params||(this.options.params={})}absorbOptions(y){const x=y.params;if(x){const se=this.options.params;Object.keys(x).forEach(Me=>{null==se[Me]&&(se[Me]=x[Me])})}}}const Ei="void",As=new Zi(Ei);class ss{constructor(y,x,se){this.id=y,this.hostElement=x,this._engine=se,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+y,co(x,this._hostClassName)}listen(y,x,se,Me){if(!this._triggers.has(x))throw function Cn(Pe,y){return new l.wOt(3302,!1)}();if(null==se||0==se.length)throw function yn(Pe){return new l.wOt(3303,!1)}();if(!function $o(Pe){return"start"==Pe||"done"==Pe}(se))throw function Lr(Pe,y){return new l.wOt(3400,!1)}();const Ke=qn(this._elementListeners,y,[]),vt={name:x,phase:se,callback:Me};Ke.push(vt);const St=qn(this._engine.statesByElement,y,new Map);return St.has(x)||(co(y,Tn),co(y,Tn+"-"+x),St.set(x,As)),()=>{this._engine.afterFlush(()=>{const kt=Ke.indexOf(vt);kt>=0&&Ke.splice(kt,1),this._triggers.has(x)||St.delete(x)})}}register(y,x){return!this._triggers.has(y)&&(this._triggers.set(y,x),!0)}_getTrigger(y){const x=this._triggers.get(y);if(!x)throw function Wt(Pe){return new l.wOt(3401,!1)}();return x}trigger(y,x,se,Me=!0){const Ke=this._getTrigger(x),vt=new Or(this.id,x,y);let St=this._engine.statesByElement.get(y);St||(co(y,Tn),co(y,Tn+"-"+x),this._engine.statesByElement.set(y,St=new Map));let kt=St.get(x);const Yt=new Zi(se,this.id);if(!(se&&se.hasOwnProperty("value"))&&kt&&Yt.absorbOptions(kt.options),St.set(x,Yt),kt||(kt=As),Yt.value!==Ei&&kt.value===Yt.value){if(!function Ws(Pe,y){const x=Object.keys(Pe),se=Object.keys(y);if(x.length!=se.length)return!1;for(let Me=0;Me<x.length;Me++){const Ke=x[Me];if(!y.hasOwnProperty(Ke)||Pe[Ke]!==y[Ke])return!1}return!0}(kt.params,Yt.params)){const ur=[],Qr=Ke.matchStyles(kt.value,kt.params,ur),Ci=Ke.matchStyles(Yt.value,Yt.params,ur);ur.length?this._engine.reportError(ur):this._engine.afterFlush(()=>{oi(y,Qr),ni(y,Ci)})}return}const Tr=qn(this._engine.playersByElement,y,[]);Tr.forEach(ur=>{ur.namespaceId==this.id&&ur.triggerName==x&&ur.queued&&ur.destroy()});let _r=Ke.matchTransition(kt.value,Yt.value,y,Yt.params),Zn=!1;if(!_r){if(!Me)return;_r=Ke.fallbackTransition,Zn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:x,transition:_r,fromState:kt,toState:Yt,player:vt,isFallbackTransition:Zn}),Zn||(co(y,Wi),vt.onStart(()=>{Ko(y,Wi)})),vt.onDone(()=>{let ur=this.players.indexOf(vt);ur>=0&&this.players.splice(ur,1);const Qr=this._engine.playersByElement.get(y);if(Qr){let Ci=Qr.indexOf(vt);Ci>=0&&Qr.splice(Ci,1)}}),this.players.push(vt),Tr.push(vt),vt}deregister(y){this._triggers.delete(y),this._engine.statesByElement.forEach(x=>x.delete(y)),this._elementListeners.forEach((x,se)=>{this._elementListeners.set(se,x.filter(Me=>Me.name!=y))})}clearElementCache(y){this._engine.statesByElement.delete(y),this._elementListeners.delete(y);const x=this._engine.playersByElement.get(y);x&&(x.forEach(se=>se.destroy()),this._engine.playersByElement.delete(y))}_signalRemovalForInnerTriggers(y,x){const se=this._engine.driver.query(y,fr,!0);se.forEach(Me=>{if(Me[Zr])return;const Ke=this._engine.fetchNamespacesByElement(Me);Ke.size?Ke.forEach(vt=>vt.triggerLeaveAnimation(Me,x,!1,!0)):this.clearElementCache(Me)}),this._engine.afterFlushAnimationsDone(()=>se.forEach(Me=>this.clearElementCache(Me)))}triggerLeaveAnimation(y,x,se,Me){const Ke=this._engine.statesByElement.get(y),vt=new Map;if(Ke){const St=[];if(Ke.forEach((kt,Yt)=>{if(vt.set(Yt,kt.value),this._triggers.has(Yt)){const An=this.trigger(y,Yt,Ei,Me);An&&St.push(An)}}),St.length)return this._engine.markElementAsRemoved(this.id,y,!0,x,vt),se&&Sn(St).onDone(()=>this._engine.processLeaveNode(y)),!0}return!1}prepareLeaveAnimationListeners(y){const x=this._elementListeners.get(y),se=this._engine.statesByElement.get(y);if(x&&se){const Me=new Set;x.forEach(Ke=>{const vt=Ke.name;if(Me.has(vt))return;Me.add(vt);const kt=this._triggers.get(vt).fallbackTransition,Yt=se.get(vt)||As,An=new Zi(Ei),Fn=new Or(this.id,vt,y);this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:vt,transition:kt,fromState:Yt,toState:An,player:Fn,isFallbackTransition:!0})})}}removeNode(y,x){const se=this._engine;if(y.childElementCount&&this._signalRemovalForInnerTriggers(y,x),this.triggerLeaveAnimation(y,x,!0))return;let Me=!1;if(se.totalAnimations){const Ke=se.players.length?se.playersByQueriedElement.get(y):[];if(Ke&&Ke.length)Me=!0;else{let vt=y;for(;vt=vt.parentNode;)if(se.statesByElement.get(vt)){Me=!0;break}}}if(this.prepareLeaveAnimationListeners(y),Me)se.markElementAsRemoved(this.id,y,!1,x);else{const Ke=y[Zr];(!Ke||Ke===Ro)&&(se.afterFlush(()=>this.clearElementCache(y)),se.destroyInnerAnimations(y),se._onRemovalComplete(y,x))}}insertNode(y,x){co(y,this._hostClassName)}drainQueuedTransitions(y){const x=[];return this._queue.forEach(se=>{const Me=se.player;if(Me.destroyed)return;const Ke=se.element,vt=this._elementListeners.get(Ke);vt&&vt.forEach(St=>{if(St.name==se.triggerName){const kt=$n(Ke,se.triggerName,se.fromState.value,se.toState.value);kt._data=y,On(se.player,St.phase,kt,St.callback)}}),Me.markedForDestroy?this._engine.afterFlush(()=>{Me.destroy()}):x.push(se)}),this._queue=[],x.sort((se,Me)=>{const Ke=se.transition.ast.depCount,vt=Me.transition.ast.depCount;return 0==Ke||0==vt?Ke-vt:this._engine.driver.containsElement(se.element,Me.element)?1:-1})}destroy(y){this.players.forEach(x=>x.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,y)}}class No{_onRemovalComplete(y,x){this.onRemovalComplete(y,x)}constructor(y,x,se,Me){this.bodyNode=y,this.driver=x,this._normalizer=se,this.scheduler=Me,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Ke,vt)=>{}}get queuedPlayers(){const y=[];return this._namespaceList.forEach(x=>{x.players.forEach(se=>{se.queued&&y.push(se)})}),y}createNamespace(y,x){const se=new ss(y,x,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,x)?this._balanceNamespaceList(se,x):(this.newHostElements.set(x,se),this.collectEnterElement(x)),this._namespaceLookup[y]=se}_balanceNamespaceList(y,x){const se=this._namespaceList,Me=this.namespacesByHostElement;if(se.length-1>=0){let vt=!1,St=this.driver.getParentElement(x);for(;St;){const kt=Me.get(St);if(kt){const Yt=se.indexOf(kt);se.splice(Yt+1,0,y),vt=!0;break}St=this.driver.getParentElement(St)}vt||se.unshift(y)}else se.push(y);return Me.set(x,y),y}register(y,x){let se=this._namespaceLookup[y];return se||(se=this.createNamespace(y,x)),se}registerTrigger(y,x,se){let Me=this._namespaceLookup[y];Me&&Me.register(x,se)&&this.totalAnimations++}destroy(y,x){y&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const se=this._fetchNamespace(y);this.namespacesByHostElement.delete(se.hostElement);const Me=this._namespaceList.indexOf(se);Me>=0&&this._namespaceList.splice(Me,1),se.destroy(x),delete this._namespaceLookup[y]}))}_fetchNamespace(y){return this._namespaceLookup[y]}fetchNamespacesByElement(y){const x=new Set,se=this.statesByElement.get(y);if(se)for(let Me of se.values())if(Me.namespaceId){const Ke=this._fetchNamespace(Me.namespaceId);Ke&&x.add(Ke)}return x}trigger(y,x,se,Me){if(Lo(x)){const Ke=this._fetchNamespace(y);if(Ke)return Ke.trigger(x,se,Me),!0}return!1}insertNode(y,x,se,Me){if(!Lo(x))return;const Ke=x[Zr];if(Ke&&Ke.setForRemoval){Ke.setForRemoval=!1,Ke.setForMove=!0;const vt=this.collectedLeaveElements.indexOf(x);vt>=0&&this.collectedLeaveElements.splice(vt,1)}if(y){const vt=this._fetchNamespace(y);vt&&vt.insertNode(x,se)}Me&&this.collectEnterElement(x)}collectEnterElement(y){this.collectedEnterElements.push(y)}markElementAsDisabled(y,x){x?this.disabledNodes.has(y)||(this.disabledNodes.add(y),co(y,es)):this.disabledNodes.has(y)&&(this.disabledNodes.delete(y),Ko(y,es))}removeNode(y,x,se){if(Lo(x)){var Me;null===(Me=this.scheduler)||void 0===Me||Me.notify();const Ke=y?this._fetchNamespace(y):null;Ke?Ke.removeNode(x,se):this.markElementAsRemoved(y,x,!1,se);const vt=this.namespacesByHostElement.get(x);vt&&vt.id!==y&&vt.removeNode(x,se)}else this._onRemovalComplete(x,se)}markElementAsRemoved(y,x,se,Me,Ke){this.collectedLeaveElements.push(x),x[Zr]={namespaceId:y,setForRemoval:Me,hasAnimation:se,removedBeforeQueried:!1,previousTriggersValues:Ke}}listen(y,x,se,Me,Ke){return Lo(x)?this._fetchNamespace(y).listen(x,se,Me,Ke):()=>{}}_buildInstruction(y,x,se,Me,Ke){return y.transition.build(this.driver,y.element,y.fromState.value,y.toState.value,se,Me,y.fromState.options,y.toState.options,x,Ke)}destroyInnerAnimations(y){let x=this.driver.query(y,fr,!0);x.forEach(se=>this.destroyActiveAnimationsForElement(se)),0!=this.playersByQueriedElement.size&&(x=this.driver.query(y,no,!0),x.forEach(se=>this.finishActiveQueriedAnimationOnElement(se)))}destroyActiveAnimationsForElement(y){const x=this.playersByElement.get(y);x&&x.forEach(se=>{se.queued?se.markedForDestroy=!0:se.destroy()})}finishActiveQueriedAnimationOnElement(y){const x=this.playersByQueriedElement.get(y);x&&x.forEach(se=>se.finish())}whenRenderingDone(){return new Promise(y=>{if(this.players.length)return Sn(this.players).onDone(()=>y());y()})}processLeaveNode(y){var x;const se=y[Zr];if(se&&se.setForRemoval){if(y[Zr]=Ro,se.namespaceId){this.destroyInnerAnimations(y);const Me=this._fetchNamespace(se.namespaceId);Me&&Me.clearElementCache(y)}this._onRemovalComplete(y,se.setForRemoval)}null!==(x=y.classList)&&void 0!==x&&x.contains(es)&&this.markElementAsDisabled(y,!1),this.driver.query(y,".ng-animate-disabled",!0).forEach(Me=>{this.markElementAsDisabled(Me,!1)})}flush(y=-1){let x=[];if(this.newHostElements.size&&(this.newHostElements.forEach((se,Me)=>this._balanceNamespaceList(se,Me)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let se=0;se<this.collectedEnterElements.length;se++)co(this.collectedEnterElements[se],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const se=[];try{x=this._flushAnimations(se,y)}finally{for(let Me=0;Me<se.length;Me++)se[Me]()}}else for(let se=0;se<this.collectedLeaveElements.length;se++)this.processLeaveNode(this.collectedLeaveElements[se]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(se=>se()),this._flushFns=[],this._whenQuietFns.length){const se=this._whenQuietFns;this._whenQuietFns=[],x.length?Sn(x).onDone(()=>{se.forEach(Me=>Me())}):se.forEach(Me=>Me())}}reportError(y){throw function Xt(Pe){return new l.wOt(3402,!1)}()}_flushAnimations(y,x){const se=new T,Me=[],Ke=new Map,vt=[],St=new Map,kt=new Map,Yt=new Map,An=new Set;this.disabledNodes.forEach(Hn=>{An.add(Hn);const wn=this.driver.query(Hn,".ng-animate-queued",!0);for(let Xn=0;Xn<wn.length;Xn++)An.add(wn[Xn])});const Fn=this.bodyNode,Tr=Array.from(this.statesByElement.keys()),_r=mi(Tr,this.collectedEnterElements),Zn=new Map;let ur=0;_r.forEach((Hn,wn)=>{const Xn=Jr+ur++;Zn.set(wn,Xn),Hn.forEach(Er=>co(Er,Xn))});const Qr=[],Ci=new Set,hi=new Set;for(let Hn=0;Hn<this.collectedLeaveElements.length;Hn++){const wn=this.collectedLeaveElements[Hn],Xn=wn[Zr];Xn&&Xn.setForRemoval&&(Qr.push(wn),Ci.add(wn),Xn.hasAnimation?this.driver.query(wn,".ng-star-inserted",!0).forEach(Er=>Ci.add(Er)):hi.add(wn))}const pi=new Map,zi=mi(Tr,Array.from(Ci));zi.forEach((Hn,wn)=>{const Xn=Dr+ur++;pi.set(wn,Xn),Hn.forEach(Er=>co(Er,Xn))}),y.push(()=>{_r.forEach((Hn,wn)=>{const Xn=Zn.get(wn);Hn.forEach(Er=>Ko(Er,Xn))}),zi.forEach((Hn,wn)=>{const Xn=pi.get(wn);Hn.forEach(Er=>Ko(Er,Xn))}),Qr.forEach(Hn=>{this.processLeaveNode(Hn)})});const ko=[],Eo=[];for(let Hn=this._namespaceList.length-1;Hn>=0;Hn--)this._namespaceList[Hn].drainQueuedTransitions(x).forEach(Xn=>{const Er=Xn.player,M=Xn.element;if(ko.push(Er),this.collectedEnterElements.length){const qt=M[Zr];if(qt&&qt.setForMove){if(qt.previousTriggersValues&&qt.previousTriggersValues.has(Xn.triggerName)){const rr=qt.previousTriggersValues.get(Xn.triggerName),ar=this.statesByElement.get(Xn.element);if(ar&&ar.has(Xn.triggerName)){const wr=ar.get(Xn.triggerName);wr.value=rr,ar.set(Xn.triggerName,wr)}}return void Er.destroy()}}const ae=!Fn||!this.driver.containsElement(Fn,M),Xe=pi.get(M),ie=Zn.get(M),Re=this._buildInstruction(Xn,se,ie,Xe,ae);if(Re.errors&&Re.errors.length)return void Eo.push(Re);if(ae)return Er.onStart(()=>oi(M,Re.fromStyles)),Er.onDestroy(()=>ni(M,Re.toStyles)),void Me.push(Er);if(Xn.isFallbackTransition)return Er.onStart(()=>oi(M,Re.fromStyles)),Er.onDestroy(()=>ni(M,Re.toStyles)),void Me.push(Er);const lt=[];Re.timelines.forEach(qt=>{qt.stretchStartingKeyframe=!0,this.disabledNodes.has(qt.element)||lt.push(qt)}),Re.timelines=lt,se.append(M,Re.timelines),vt.push({instruction:Re,player:Er,element:M}),Re.queriedElements.forEach(qt=>qn(St,qt,[]).push(Er)),Re.preStyleProps.forEach((qt,rr)=>{if(qt.size){let ar=kt.get(rr);ar||kt.set(rr,ar=new Set),qt.forEach((wr,cr)=>ar.add(cr))}}),Re.postStyleProps.forEach((qt,rr)=>{let ar=Yt.get(rr);ar||Yt.set(rr,ar=new Set),qt.forEach((wr,cr)=>ar.add(cr))})});if(Eo.length){const Hn=[];Eo.forEach(wn=>{Hn.push(function tn(Pe,y){return new l.wOt(3505,!1)}())}),ko.forEach(wn=>wn.destroy()),this.reportError(Hn)}const ui=new Map,Li=new Map;vt.forEach(Hn=>{const wn=Hn.element;se.has(wn)&&(Li.set(wn,wn),this._beforeAnimationBuild(Hn.player.namespaceId,Hn.instruction,ui))}),Me.forEach(Hn=>{const wn=Hn.element;this._getPreviousPlayers(wn,!1,Hn.namespaceId,Hn.triggerName,null).forEach(Er=>{qn(ui,wn,[]).push(Er),Er.destroy()})});const oo=Qr.filter(Hn=>Ps(Hn,kt,Yt)),so=new Map;xr(so,this.driver,hi,Yt,v).forEach(Hn=>{Ps(Hn,kt,Yt)&&oo.push(Hn)});const yo=new Map;_r.forEach((Hn,wn)=>{xr(yo,this.driver,new Set(Hn),kt,"!")}),oo.forEach(Hn=>{var wn,Xn;const Er=so.get(Hn),M=yo.get(Hn);so.set(Hn,new Map([...null!==(wn=null==Er?void 0:Er.entries())&&void 0!==wn?wn:[],...null!==(Xn=null==M?void 0:M.entries())&&void 0!==Xn?Xn:[]]))});const ji=[],Js=[],us={};vt.forEach(Hn=>{const{element:wn,player:Xn,instruction:Er}=Hn;if(se.has(wn)){if(An.has(wn))return Xn.onDestroy(()=>ni(wn,Er.toStyles)),Xn.disabled=!0,Xn.overrideTotalTime(Er.totalTime),void Me.push(Xn);let M=us;if(Li.size>1){let Xe=wn;const ie=[];for(;Xe=Xe.parentNode;){const Re=Li.get(Xe);if(Re){M=Re;break}ie.push(Xe)}ie.forEach(Re=>Li.set(Re,M))}const ae=this._buildAnimation(Xn.namespaceId,Er,ui,Ke,yo,so);if(Xn.setRealPlayer(ae),M===us)ji.push(Xn);else{const Xe=this.playersByElement.get(M);Xe&&Xe.length&&(Xn.parentPlayer=Sn(Xe)),Me.push(Xn)}}else oi(wn,Er.fromStyles),Xn.onDestroy(()=>ni(wn,Er.toStyles)),Js.push(Xn),An.has(wn)&&Me.push(Xn)}),Js.forEach(Hn=>{const wn=Ke.get(Hn.element);if(wn&&wn.length){const Xn=Sn(wn);Hn.setRealPlayer(Xn)}}),Me.forEach(Hn=>{Hn.parentPlayer?Hn.syncPlayerEvents(Hn.parentPlayer):Hn.destroy()});for(let Hn=0;Hn<Qr.length;Hn++){const wn=Qr[Hn],Xn=wn[Zr];if(Ko(wn,Dr),Xn&&Xn.hasAnimation)continue;let Er=[];if(St.size){let ae=St.get(wn);ae&&ae.length&&Er.push(...ae);let Xe=this.driver.query(wn,no,!0);for(let ie=0;ie<Xe.length;ie++){let Re=St.get(Xe[ie]);Re&&Re.length&&Er.push(...Re)}}const M=Er.filter(ae=>!ae.destroyed);M.length?gs(this,wn,M):this.processLeaveNode(wn)}return Qr.length=0,ji.forEach(Hn=>{this.players.push(Hn),Hn.onDone(()=>{Hn.destroy();const wn=this.players.indexOf(Hn);this.players.splice(wn,1)}),Hn.play()}),ji}afterFlush(y){this._flushFns.push(y)}afterFlushAnimationsDone(y){this._whenQuietFns.push(y)}_getPreviousPlayers(y,x,se,Me,Ke){let vt=[];if(x){const St=this.playersByQueriedElement.get(y);St&&(vt=St)}else{const St=this.playersByElement.get(y);if(St){const kt=!Ke||Ke==Ei;St.forEach(Yt=>{Yt.queued||!kt&&Yt.triggerName!=Me||vt.push(Yt)})}}return(se||Me)&&(vt=vt.filter(St=>!(se&&se!=St.namespaceId||Me&&Me!=St.triggerName))),vt}_beforeAnimationBuild(y,x,se){const Ke=x.element,vt=x.isRemovalTransition?void 0:y,St=x.isRemovalTransition?void 0:x.triggerName;for(const kt of x.timelines){const Yt=kt.element,An=Yt!==Ke,Fn=qn(se,Yt,[]);this._getPreviousPlayers(Yt,An,vt,St,x.toState).forEach(_r=>{const Zn=_r.getRealPlayer();Zn.beforeDestroy&&Zn.beforeDestroy(),_r.destroy(),Fn.push(_r)})}oi(Ke,x.fromStyles)}_buildAnimation(y,x,se,Me,Ke,vt){const St=x.triggerName,kt=x.element,Yt=[],An=new Set,Fn=new Set,Tr=x.timelines.map(Zn=>{const ur=Zn.element;An.add(ur);const Qr=ur[Zr];if(Qr&&Qr.removedBeforeQueried)return new X(Zn.duration,Zn.delay);const Ci=ur!==kt,hi=function ms(Pe){const y=[];return Qo(Pe,y),y}((se.get(ur)||ua).map(ui=>ui.getRealPlayer())).filter(ui=>!!ui.element&&ui.element===ur),pi=Ke.get(ur),zi=vt.get(ur),ko=Ht(this._normalizer,Zn.keyframes,pi,zi),Eo=this._buildPlayer(Zn,ko,hi);if(Zn.subTimeline&&Me&&Fn.add(ur),Ci){const ui=new Or(y,St,ur);ui.setRealPlayer(Eo),Yt.push(ui)}return Eo});Yt.forEach(Zn=>{qn(this.playersByQueriedElement,Zn.element,[]).push(Zn),Zn.onDone(()=>function zo(Pe,y,x){let se=Pe.get(y);if(se){if(se.length){const Me=se.indexOf(x);se.splice(Me,1)}0==se.length&&Pe.delete(y)}return se}(this.playersByQueriedElement,Zn.element,Zn))}),An.forEach(Zn=>co(Zn,mo));const _r=Sn(Tr);return _r.onDestroy(()=>{An.forEach(Zn=>Ko(Zn,mo)),ni(kt,x.toStyles)}),Fn.forEach(Zn=>{qn(Me,Zn,[]).push(_r)}),_r}_buildPlayer(y,x,se){return x.length>0?this.driver.animate(y.element,x,y.duration,y.delay,y.easing,se):new X(y.duration,y.delay)}}class Or{constructor(y,x,se){this.namespaceId=y,this.triggerName=x,this.element=se,this._player=new X,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(y){this._containsRealPlayer||(this._player=y,this._queuedCallbacks.forEach((x,se)=>{x.forEach(Me=>On(y,se,void 0,Me))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(y.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(y){this.totalTime=y}syncPlayerEvents(y){const x=this._player;x.triggerCallback&&y.onStart(()=>x.triggerCallback("start")),y.onDone(()=>this.finish()),y.onDestroy(()=>this.destroy())}_queueEvent(y,x){qn(this._queuedCallbacks,y,[]).push(x)}onDone(y){this.queued&&this._queueEvent("done",y),this._player.onDone(y)}onStart(y){this.queued&&this._queueEvent("start",y),this._player.onStart(y)}onDestroy(y){this.queued&&this._queueEvent("destroy",y),this._player.onDestroy(y)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(y){this.queued||this._player.setPosition(y)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(y){const x=this._player;x.triggerCallback&&x.triggerCallback(y)}}function Lo(Pe){return Pe&&1===Pe.nodeType}function ps(Pe,y){const x=Pe.style.display;return Pe.style.display=null!=y?y:"none",x}function xr(Pe,y,x,se,Me){const Ke=[];x.forEach(kt=>Ke.push(ps(kt)));const vt=[];se.forEach((kt,Yt)=>{const An=new Map;kt.forEach(Fn=>{const Tr=y.computeStyle(Yt,Fn,Me);An.set(Fn,Tr),(!Tr||0==Tr.length)&&(Yt[Zr]=Ka,vt.push(Yt))}),Pe.set(Yt,An)});let St=0;return x.forEach(kt=>ps(kt,Ke[St++])),vt}function mi(Pe,y){const x=new Map;if(Pe.forEach(St=>x.set(St,[])),0==y.length)return x;const Me=new Set(y),Ke=new Map;function vt(St){if(!St)return 1;let kt=Ke.get(St);if(kt)return kt;const Yt=St.parentNode;return kt=x.has(Yt)?Yt:Me.has(Yt)?1:vt(Yt),Ke.set(St,kt),kt}return y.forEach(St=>{const kt=vt(St);1!==kt&&x.get(kt).push(St)}),x}function co(Pe,y){var x;null===(x=Pe.classList)||void 0===x||x.add(y)}function Ko(Pe,y){var x;null===(x=Pe.classList)||void 0===x||x.remove(y)}function gs(Pe,y,x){Sn(x).onDone(()=>Pe.processLeaveNode(y))}function Qo(Pe,y){for(let x=0;x<Pe.length;x++){const se=Pe[x];se instanceof J?Qo(se.players,y):y.push(se)}}function Ps(Pe,y,x){const se=x.get(Pe);if(!se)return!1;let Me=y.get(Pe);return Me?se.forEach(Ke=>Me.add(Ke)):y.set(Pe,se),x.delete(Pe),!0}class Ms{constructor(y,x,se,Me){this._driver=x,this._normalizer=se,this._triggerCache={},this.onRemovalComplete=(Ke,vt)=>{},this._transitionEngine=new No(y.body,x,se,Me),this._timelineEngine=new Ks(y.body,x,se),this._transitionEngine.onRemovalComplete=(Ke,vt)=>this.onRemovalComplete(Ke,vt)}registerTrigger(y,x,se,Me,Ke){const vt=y+"-"+Me;let St=this._triggerCache[vt];if(!St){const kt=[],An=_t(this._driver,Ke,kt,[]);if(kt.length)throw function mt(Pe,y){return new l.wOt(3404,!1)}();St=function Os(Pe,y,x){return new Aa(Pe,y,x)}(Me,An,this._normalizer),this._triggerCache[vt]=St}this._transitionEngine.registerTrigger(x,Me,St)}register(y,x){this._transitionEngine.register(y,x)}destroy(y,x){this._transitionEngine.destroy(y,x)}onInsert(y,x,se,Me){this._transitionEngine.insertNode(y,x,se,Me)}onRemove(y,x,se){this._transitionEngine.removeNode(y,x,se)}disableAnimations(y,x){this._transitionEngine.markElementAsDisabled(y,x)}process(y,x,se,Me){if("@"==se.charAt(0)){const[Ke,vt]=Kn(se);this._timelineEngine.command(Ke,x,vt,Me)}else this._transitionEngine.trigger(y,x,se,Me)}listen(y,x,se,Me,Ke){if("@"==se.charAt(0)){const[vt,St]=Kn(se);return this._timelineEngine.listen(vt,x,St,Ke)}return this._transitionEngine.listen(y,x,se,Me,Ke)}flush(y=-1){this._transitionEngine.flush(y)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(y){this._transitionEngine.afterFlushAnimationsDone(y)}}class fo{constructor(y,x,se){this._element=y,this._startStyles=x,this._endStyles=se,this._state=0;let Me=fo.initialStylesByElement.get(y);Me||fo.initialStylesByElement.set(y,Me=new Map),this._initialStyles=Me}start(){this._state<1&&(this._startStyles&&ni(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ni(this._element,this._initialStyles),this._endStyles&&(ni(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(fo.initialStylesByElement.delete(this._element),this._startStyles&&(oi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(oi(this._element,this._endStyles),this._endStyles=null),ni(this._element,this._initialStyles),this._state=3)}}function ts(Pe){let y=null;return Pe.forEach((x,se)=>{(function Bi(Pe){return"display"===Pe||"position"===Pe})(se)&&(y=y||new Map,y.set(se,x))}),y}fo.initialStylesByElement=new WeakMap;class Ho{constructor(y,x,se,Me){this.element=y,this.keyframes=x,this.options=se,this._specialStyles=Me,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=se.duration,this._delay=se.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const y=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,y,this.options),this._finalKeyframe=y.length?y[y.length-1]:new Map;const x=()=>this._onFinish();this.domPlayer.addEventListener("finish",x),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",x)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(y){const x=[];return y.forEach(se=>{x.push(Object.fromEntries(se))}),x}_triggerWebAnimation(y,x,se){return y.animate(this._convertKeyframesToObject(x),se)}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(y=>y()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}setPosition(y){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=y*this.time}getPosition(){var y;return+(null!==(y=this.domPlayer.currentTime)&&void 0!==y?y:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const y=new Map;this.hasStarted()&&this._finalKeyframe.forEach((se,Me)=>{"offset"!==Me&&y.set(Me,this._finished?se:pn(this.element,Me))}),this.currentSnapshot=y}triggerCallback(y){const x="start"===y?this._onStartFns:this._onDoneFns;x.forEach(se=>se()),x.length=0}}class _o{validateStyleProperty(y){return!0}validateAnimatableStyleProperty(y){return!0}matchesElement(y,x){return!1}containsElement(y,x){return Ct(y,x)}getParentElement(y){return Rr(y)}query(y,x,se){return xt(y,x,se)}computeStyle(y,x,se){return pn(y,x)}animate(y,x,se,Me,Ke,vt=[]){const kt={duration:se,delay:Me,fill:0==Me?"both":"forwards"};Ke&&(kt.easing=Ke);const Yt=new Map,An=vt.filter(_r=>_r instanceof Ho);(function bn(Pe,y){return 0===Pe||0===y})(se,Me)&&An.forEach(_r=>{_r.currentSnapshot.forEach((Zn,ur)=>Yt.set(ur,Zn))});let Fn=function ro(Pe){return Pe.length?Pe[0]instanceof Map?Pe:Pe.map(y=>new Map(Object.entries(y))):[]}(x).map(_r=>new Map(_r));Fn=function mn(Pe,y,x){if(x.size&&y.length){let se=y[0],Me=[];if(x.forEach((Ke,vt)=>{se.has(vt)||Me.push(vt),se.set(vt,Ke)}),Me.length)for(let Ke=1;Ke<y.length;Ke++){let vt=y[Ke];Me.forEach(St=>vt.set(St,pn(Pe,St)))}}return y}(y,Fn,Yt);const Tr=function Gs(Pe,y){let x=null,se=null;return Array.isArray(y)&&y.length?(x=ts(y[0]),y.length>1&&(se=ts(y[y.length-1]))):y instanceof Map&&(x=ts(y)),x||se?new fo(Pe,x,se):null}(y,Fn);return new Ho(y,Fn,kt,Tr)}}const zs="@.disabled";class ws{constructor(y,x,se,Me){this.namespaceId=y,this.delegate=x,this.engine=se,this._onDestroy=Me,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(y){var x,se;null===(x=(se=this.delegate).destroyNode)||void 0===x||x.call(se,y)}destroy(){var y;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null===(y=this._onDestroy)||void 0===y||y.call(this)}createElement(y,x){return this.delegate.createElement(y,x)}createComment(y){return this.delegate.createComment(y)}createText(y){return this.delegate.createText(y)}appendChild(y,x){this.delegate.appendChild(y,x),this.engine.onInsert(this.namespaceId,x,y,!1)}insertBefore(y,x,se,Me=!0){this.delegate.insertBefore(y,x,se),this.engine.onInsert(this.namespaceId,x,y,Me)}removeChild(y,x,se){this.engine.onRemove(this.namespaceId,x,this.delegate)}selectRootElement(y,x){return this.delegate.selectRootElement(y,x)}parentNode(y){return this.delegate.parentNode(y)}nextSibling(y){return this.delegate.nextSibling(y)}setAttribute(y,x,se,Me){this.delegate.setAttribute(y,x,se,Me)}removeAttribute(y,x,se){this.delegate.removeAttribute(y,x,se)}addClass(y,x){this.delegate.addClass(y,x)}removeClass(y,x){this.delegate.removeClass(y,x)}setStyle(y,x,se,Me){this.delegate.setStyle(y,x,se,Me)}removeStyle(y,x,se){this.delegate.removeStyle(y,x,se)}setProperty(y,x,se){"@"==x.charAt(0)&&x==zs?this.disableAnimations(y,!!se):this.delegate.setProperty(y,x,se)}setValue(y,x){this.delegate.setValue(y,x)}listen(y,x,se){return this.delegate.listen(y,x,se)}disableAnimations(y,x){this.engine.disableAnimations(y,x)}}class la extends ws{constructor(y,x,se,Me,Ke){super(x,se,Me,Ke),this.factory=y,this.namespaceId=x}setProperty(y,x,se){"@"==x.charAt(0)?"."==x.charAt(1)&&x==zs?this.disableAnimations(y,se=void 0===se||!!se):this.engine.process(this.namespaceId,y,x.slice(1),se):this.delegate.setProperty(y,x,se)}listen(y,x,se){if("@"==x.charAt(0)){const Me=function ca(Pe){switch(Pe){case"body":return document.body;case"document":return document;case"window":return window;default:return Pe}}(y);let Ke=x.slice(1),vt="";return"@"!=Ke.charAt(0)&&([Ke,vt]=function Rs(Pe){const y=Pe.indexOf(".");return[Pe.substring(0,y),Pe.slice(y+1)]}(Ke)),this.engine.listen(this.namespaceId,Me,Ke,vt,St=>{this.factory.scheduleListenerCallback(St._data||-1,se,St)})}return this.delegate.listen(y,x,se)}}class Ns{constructor(y,x,se){this.delegate=y,this.engine=x,this._zone=se,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,x.onRemovalComplete=(Me,Ke)=>{const vt=null==Ke?void 0:Ke.parentNode(Me);vt&&Ke.removeChild(vt,Me)}}createRenderer(y,x){var se;const Ke=this.delegate.createRenderer(y,x);if(!y||null==x||null===(se=x.data)||void 0===se||!se.animation){const An=this._rendererCache;let Fn=An.get(Ke);return Fn||(Fn=new ws("",Ke,this.engine,()=>An.delete(Ke)),An.set(Ke,Fn)),Fn}const vt=x.id,St=x.id+"-"+this._currentId;this._currentId++,this.engine.register(St,y);const kt=An=>{Array.isArray(An)?An.forEach(kt):this.engine.registerTrigger(vt,St,y,An.name,An)};return x.data.animation.forEach(kt),new la(this,St,Ke,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(y,x,se){if(y>=0&&y<this._microtaskId)return void this._zone.run(()=>x(se));const Me=this._animationCallbacksBuffer;0==Me.length&&queueMicrotask(()=>{this._zone.run(()=>{Me.forEach(Ke=>{const[vt,St]=Ke;vt(St)}),this._animationCallbacksBuffer=[]})}),Me.push([x,se])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}var _s=c(177);const Ys=[{provide:Bt,useFactory:function ns(){return new _i}},{provide:Ms,useClass:(()=>{var Pe;class y extends Ms{constructor(se,Me,Ke){super(se,Me,Ke,(0,l.WQX)(l.An2,{optional:!0}))}ngOnDestroy(){this.flush()}}return(Pe=y).\u0275fac=function(se){return new(se||Pe)(l.KVO(_s.qQ),l.KVO(sr),l.KVO(Bt))},Pe.\u0275prov=l.jDH({token:Pe,factory:Pe.\u0275fac}),y})()},{provide:l._9s,useFactory:function xo(Pe,y,x){return new Ns(Pe,y,x)},deps:[p.B7,Ms,l.SKi]}],Wo=[{provide:sr,useFactory:()=>new _o},{provide:l.bc$,useValue:"BrowserAnimations"},...Ys],vr=[{provide:sr,useClass:Vn},{provide:l.bc$,useValue:"NoopAnimations"},...Ys];let yi=(()=>{var Pe;class y{static withConfig(se){return{ngModule:y,providers:se.disableAnimations?vr:Wo}}}return(Pe=y).\u0275fac=function(se){return new(se||Pe)},Pe.\u0275mod=l.$C({type:Pe}),Pe.\u0275inj=l.G2t({providers:Wo,imports:[p.Bb]}),y})()},345:(ee,_,c)=>{"use strict";c.d(_,{$x:()=>Qn,B7:()=>X,Bb:()=>Be,W8:()=>qe,dE:()=>$n,hE:()=>je,sG:()=>L,up:()=>Sn});var l=c(4438),p=c(177),E=c(1626);class v extends p.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class U extends v{static makeCurrent(){(0,p.ZD)(new U)}onAndCancel(Je,ot,et){return Je.addEventListener(ot,et),()=>{Je.removeEventListener(ot,et)}}dispatchEvent(Je,ot){Je.dispatchEvent(ot)}remove(Je){Je.parentNode&&Je.parentNode.removeChild(Je)}createElement(Je,ot){return(ot=ot||this.getDefaultDocument()).createElement(Je)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Je){return Je.nodeType===Node.ELEMENT_NODE}isShadowRoot(Je){return Je instanceof DocumentFragment}getGlobalEventTarget(Je,ot){return"window"===ot?window:"document"===ot?Je:"body"===ot?Je.body:null}getBaseHref(Je){const ot=function B(){return $=$||document.querySelector("base"),$?$.getAttribute("href"):null}();return null==ot?null:function ne(ke){return new URL(ke,document.baseURI).pathname}(ot)}resetBaseElement(){$=null}getUserAgent(){return window.navigator.userAgent}getCookie(Je){return(0,p._b)(document.cookie,Je)}}let $=null,me=(()=>{var ke;class Je{build(){return new XMLHttpRequest}}return(ke=Je).\u0275fac=function(et){return new(et||ke)},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac}),Je})();const V=new l.nKC("");let Z=(()=>{var ke;class Je{constructor(et,Ct){this._zone=Ct,this._eventNameToPlugin=new Map,et.forEach(xt=>{xt.manager=this}),this._plugins=et.slice().reverse()}addEventListener(et,Ct,xt){return this._findPluginFor(Ct).addEventListener(et,Ct,xt)}getZone(){return this._zone}_findPluginFor(et){let Ct=this._eventNameToPlugin.get(et);if(Ct)return Ct;if(Ct=this._plugins.find(cn=>cn.supports(et)),!Ct)throw new l.wOt(5101,!1);return this._eventNameToPlugin.set(et,Ct),Ct}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(V),l.KVO(l.SKi))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac}),Je})();class le{constructor(Je){this._doc=Je}}const Q="ng-app-id";let z=(()=>{var ke;class Je{constructor(et,Ct,xt,cn={}){this.doc=et,this.appId=Ct,this.nonce=xt,this.platformId=cn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,p.Vy)(cn),this.resetHostNodes()}addStyles(et){for(const Ct of et)1===this.changeUsageCount(Ct,1)&&this.onStyleAdded(Ct)}removeStyles(et){for(const Ct of et)this.changeUsageCount(Ct,-1)<=0&&this.onStyleRemoved(Ct)}ngOnDestroy(){const et=this.styleNodesInDOM;et&&(et.forEach(Ct=>Ct.remove()),et.clear());for(const Ct of this.getAllStyles())this.onStyleRemoved(Ct);this.resetHostNodes()}addHost(et){this.hostNodes.add(et);for(const Ct of this.getAllStyles())this.addStyleToHost(et,Ct)}removeHost(et){this.hostNodes.delete(et)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(et){for(const Ct of this.hostNodes)this.addStyleToHost(Ct,et)}onStyleRemoved(et){var Ct;const xt=this.styleRef;null===(Ct=xt.get(et))||void 0===Ct||null===(Ct=Ct.elements)||void 0===Ct||Ct.forEach(cn=>cn.remove()),xt.delete(et)}collectServerRenderedStyles(){var et;const Ct=null===(et=this.doc.head)||void 0===et?void 0:et.querySelectorAll("style[".concat(Q,'="').concat(this.appId,'"]'));if(null!=Ct&&Ct.length){const xt=new Map;return Ct.forEach(cn=>{null!=cn.textContent&&xt.set(cn.textContent,cn)}),xt}return null}changeUsageCount(et,Ct){const xt=this.styleRef;if(xt.has(et)){const cn=xt.get(et);return cn.usage+=Ct,cn.usage}return xt.set(et,{usage:Ct,elements:[]}),Ct}getStyleElement(et,Ct){const xt=this.styleNodesInDOM,cn=null==xt?void 0:xt.get(Ct);if((null==cn?void 0:cn.parentNode)===et)return xt.delete(Ct),cn.removeAttribute(Q),cn;{const Vn=this.doc.createElement("style");return this.nonce&&Vn.setAttribute("nonce",this.nonce),Vn.textContent=Ct,this.platformIsServer&&Vn.setAttribute(Q,this.appId),et.appendChild(Vn),Vn}}addStyleToHost(et,Ct){var xt;const cn=this.getStyleElement(et,Ct),Vn=this.styleRef,sr=null===(xt=Vn.get(Ct))||void 0===xt?void 0:xt.elements;sr?sr.push(cn):Vn.set(Ct,{elements:[cn],usage:1})}resetHostNodes(){const et=this.hostNodes;et.clear(),et.add(this.doc.head)}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(p.qQ),l.KVO(l.sZ2),l.KVO(l.BIS,8),l.KVO(l.Agw))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac}),Je})();const Y={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/"},ve=/%COMP%/g,fe="_nghost-".concat("%COMP%"),w="_ngcontent-".concat("%COMP%"),I=new l.nKC("",{providedIn:"root",factory:()=>!0});function W(ke,Je){return Je.map(ot=>ot.replace(ve,ke))}let X=(()=>{var ke;class Je{constructor(et,Ct,xt,cn,Vn,sr,Bt,Hr=null){this.eventManager=et,this.sharedStylesHost=Ct,this.appId=xt,this.removeStylesOnCompDestroy=cn,this.doc=Vn,this.platformId=sr,this.ngZone=Bt,this.nonce=Hr,this.rendererByCompId=new Map,this.platformIsServer=(0,p.Vy)(sr),this.defaultRenderer=new J(et,Vn,Bt,this.platformIsServer)}createRenderer(et,Ct){if(!et||!Ct)return this.defaultRenderer;this.platformIsServer&&Ct.encapsulation===l.gXe.ShadowDom&&(Ct={...Ct,encapsulation:l.gXe.Emulated});const xt=this.getOrCreateRenderer(et,Ct);return xt instanceof Oe?xt.applyToHost(et):xt instanceof He&&xt.applyStyles(),xt}getOrCreateRenderer(et,Ct){const xt=this.rendererByCompId;let cn=xt.get(Ct.id);if(!cn){const Vn=this.doc,sr=this.ngZone,Bt=this.eventManager,Hr=this.sharedStylesHost,Br=this.removeStylesOnCompDestroy,Xr=this.platformIsServer;switch(Ct.encapsulation){case l.gXe.Emulated:cn=new Oe(Bt,Hr,Ct,this.appId,Br,Vn,sr,Xr);break;case l.gXe.ShadowDom:return new De(Bt,Hr,et,Ct,Vn,sr,this.nonce,Xr);default:cn=new He(Bt,Hr,Ct,Br,Vn,sr,Xr)}xt.set(Ct.id,cn)}return cn}ngOnDestroy(){this.rendererByCompId.clear()}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(Z),l.KVO(z),l.KVO(l.sZ2),l.KVO(I),l.KVO(p.qQ),l.KVO(l.Agw),l.KVO(l.SKi),l.KVO(l.BIS))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac}),Je})();class J{constructor(Je,ot,et,Ct){this.eventManager=Je,this.doc=ot,this.ngZone=et,this.platformIsServer=Ct,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Je,ot){return ot?this.doc.createElementNS(Y[ot]||ot,Je):this.doc.createElement(Je)}createComment(Je){return this.doc.createComment(Je)}createText(Je){return this.doc.createTextNode(Je)}appendChild(Je,ot){(ge(Je)?Je.content:Je).appendChild(ot)}insertBefore(Je,ot,et){Je&&(ge(Je)?Je.content:Je).insertBefore(ot,et)}removeChild(Je,ot){Je&&Je.removeChild(ot)}selectRootElement(Je,ot){let et="string"==typeof Je?this.doc.querySelector(Je):Je;if(!et)throw new l.wOt(-5104,!1);return ot||(et.textContent=""),et}parentNode(Je){return Je.parentNode}nextSibling(Je){return Je.nextSibling}setAttribute(Je,ot,et,Ct){if(Ct){ot=Ct+":"+ot;const xt=Y[Ct];xt?Je.setAttributeNS(xt,ot,et):Je.setAttribute(ot,et)}else Je.setAttribute(ot,et)}removeAttribute(Je,ot,et){if(et){const Ct=Y[et];Ct?Je.removeAttributeNS(Ct,ot):Je.removeAttribute("".concat(et,":").concat(ot))}else Je.removeAttribute(ot)}addClass(Je,ot){Je.classList.add(ot)}removeClass(Je,ot){Je.classList.remove(ot)}setStyle(Je,ot,et,Ct){Ct&(l.czy.DashCase|l.czy.Important)?Je.style.setProperty(ot,et,Ct&l.czy.Important?"important":""):Je.style[ot]=et}removeStyle(Je,ot,et){et&l.czy.DashCase?Je.style.removeProperty(ot):Je.style[ot]=""}setProperty(Je,ot,et){null!=Je&&(Je[ot]=et)}setValue(Je,ot){Je.nodeValue=ot}listen(Je,ot,et){if("string"==typeof Je&&!(Je=(0,p.QT)().getGlobalEventTarget(this.doc,Je)))throw new Error("Unsupported event target ".concat(Je," for event ").concat(ot));return this.eventManager.addEventListener(Je,ot,this.decoratePreventDefault(et))}decoratePreventDefault(Je){return ot=>{if("__ngUnwrap__"===ot)return Je;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Je(ot)):Je(ot))&&ot.preventDefault()}}}function ge(ke){return"TEMPLATE"===ke.tagName&&void 0!==ke.content}class De extends J{constructor(Je,ot,et,Ct,xt,cn,Vn,sr){super(Je,xt,cn,sr),this.sharedStylesHost=ot,this.hostEl=et,this.shadowRoot=et.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Bt=W(Ct.id,Ct.styles);for(const Hr of Bt){const Br=document.createElement("style");Vn&&Br.setAttribute("nonce",Vn),Br.textContent=Hr,this.shadowRoot.appendChild(Br)}}nodeOrShadowRoot(Je){return Je===this.hostEl?this.shadowRoot:Je}appendChild(Je,ot){return super.appendChild(this.nodeOrShadowRoot(Je),ot)}insertBefore(Je,ot,et){return super.insertBefore(this.nodeOrShadowRoot(Je),ot,et)}removeChild(Je,ot){return super.removeChild(this.nodeOrShadowRoot(Je),ot)}parentNode(Je){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Je)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class He extends J{constructor(Je,ot,et,Ct,xt,cn,Vn,sr){super(Je,xt,cn,Vn),this.sharedStylesHost=ot,this.removeStylesOnCompDestroy=Ct,this.styles=sr?W(sr,et.styles):et.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Oe extends He{constructor(Je,ot,et,Ct,xt,cn,Vn,sr){const Bt=Ct+"-"+et.id;super(Je,ot,et,xt,cn,Vn,sr,Bt),this.contentAttr=function S(ke){return w.replace(ve,ke)}(Bt),this.hostAttr=function N(ke){return fe.replace(ve,ke)}(Bt)}applyToHost(Je){this.applyStyles(),this.setAttribute(Je,this.hostAttr,"")}createElement(Je,ot){const et=super.createElement(Je,ot);return super.setAttribute(et,this.contentAttr,""),et}}let it=(()=>{var ke;class Je extends le{constructor(et){super(et)}supports(et){return!0}addEventListener(et,Ct,xt){return et.addEventListener(Ct,xt,!1),()=>this.removeEventListener(et,Ct,xt)}removeEventListener(et,Ct,xt){return et.removeEventListener(Ct,xt)}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(p.qQ))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac}),Je})();const Ze=["alt","control","meta","shift"],we={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ye={alt:ke=>ke.altKey,control:ke=>ke.ctrlKey,meta:ke=>ke.metaKey,shift:ke=>ke.shiftKey};let ze=(()=>{var ke;class Je extends le{constructor(et){super(et)}supports(et){return null!=Je.parseEventName(et)}addEventListener(et,Ct,xt){const cn=Je.parseEventName(Ct),Vn=Je.eventCallback(cn.fullKey,xt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,p.QT)().onAndCancel(et,cn.domEventName,Vn))}static parseEventName(et){const Ct=et.toLowerCase().split("."),xt=Ct.shift();if(0===Ct.length||"keydown"!==xt&&"keyup"!==xt)return null;const cn=Je._normalizeKey(Ct.pop());let Vn="",sr=Ct.indexOf("code");if(sr>-1&&(Ct.splice(sr,1),Vn="code."),Ze.forEach(Hr=>{const Br=Ct.indexOf(Hr);Br>-1&&(Ct.splice(Br,1),Vn+=Hr+".")}),Vn+=cn,0!=Ct.length||0===cn.length)return null;const Bt={};return Bt.domEventName=xt,Bt.fullKey=Vn,Bt}static matchEventFullKeyCode(et,Ct){let xt=we[et.key]||et.key,cn="";return Ct.indexOf("code.")>-1&&(xt=et.code,cn="code."),!(null==xt||!xt)&&(xt=xt.toLowerCase()," "===xt?xt="space":"."===xt&&(xt="dot"),Ze.forEach(Vn=>{Vn!==xt&&(0,ye[Vn])(et)&&(cn+=Vn+".")}),cn+=xt,cn===Ct)}static eventCallback(et,Ct,xt){return cn=>{Je.matchEventFullKeyCode(cn,et)&&xt.runGuarded(()=>Ct(cn))}}static _normalizeKey(et){return"esc"===et?"escape":et}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(p.qQ))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac}),Je})();const L=(0,l.oH4)(l.fpN,"browser",[{provide:l.Agw,useValue:p.AJ},{provide:l.PLl,useValue:function Ne(){U.makeCurrent()},multi:!0},{provide:p.qQ,useFactory:function R(){return(0,l.TL$)(document),document},deps:[]}]),G=new l.nKC(""),K=[{provide:l.e01,useClass:class te{addToWindow(Je){l.JZv.getAngularTestability=(et,Ct=!0)=>{const xt=Je.findTestabilityInTree(et,Ct);if(null==xt)throw new l.wOt(5103,!1);return xt},l.JZv.getAllAngularTestabilities=()=>Je.getAllTestabilities(),l.JZv.getAllAngularRootElements=()=>Je.getAllRootElements(),l.JZv.frameworkStabilizers||(l.JZv.frameworkStabilizers=[]),l.JZv.frameworkStabilizers.push(et=>{const Ct=l.JZv.getAllAngularTestabilities();let xt=Ct.length;const cn=function(){xt--,0==xt&&et()};Ct.forEach(Vn=>{Vn.whenStable(cn)})})}findTestabilityInTree(Je,ot,et){if(null==ot)return null;const Ct=Je.getTestability(ot);return null!=Ct?Ct:et?(0,p.QT)().isShadowRoot(ot)?this.findTestabilityInTree(Je,ot.host,!0):this.findTestabilityInTree(Je,ot.parentElement,!0):null}},deps:[]},{provide:l.WHO,useClass:l.NYb,deps:[l.SKi,l.giA,l.e01]},{provide:l.NYb,useClass:l.NYb,deps:[l.SKi,l.giA,l.e01]}],ce=[{provide:l.H8p,useValue:"root"},{provide:l.zcH,useFactory:function st(){return new l.zcH},deps:[]},{provide:V,useClass:it,multi:!0,deps:[p.qQ,l.SKi,l.Agw]},{provide:V,useClass:ze,multi:!0,deps:[p.qQ]},X,z,Z,{provide:l._9s,useExisting:X},{provide:p.N0,useClass:me,deps:[]},[]];let Be=(()=>{var ke;class Je{constructor(et){}static withServerTransition(et){return{ngModule:Je,providers:[{provide:l.sZ2,useValue:et.appId}]}}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(G,12))},ke.\u0275mod=l.$C({type:ke}),ke.\u0275inj=l.G2t({providers:[...ce,...K],imports:[p.MD,l.Hbi]}),Je})(),qe=(()=>{var ke;class Je{constructor(et){this._doc=et,this._dom=(0,p.QT)()}addTag(et,Ct=!1){return et?this._getOrCreateElement(et,Ct):null}addTags(et,Ct=!1){return et?et.reduce((xt,cn)=>(cn&&xt.push(this._getOrCreateElement(cn,Ct)),xt),[]):[]}getTag(et){return et&&this._doc.querySelector("meta[".concat(et,"]"))||null}getTags(et){if(!et)return[];const Ct=this._doc.querySelectorAll("meta[".concat(et,"]"));return Ct?[].slice.call(Ct):[]}updateTag(et,Ct){if(!et)return null;Ct=Ct||this._parseSelector(et);const xt=this.getTag(Ct);return xt?this._setMetaElementAttributes(et,xt):this._getOrCreateElement(et,!0)}removeTag(et){this.removeTagElement(this.getTag(et))}removeTagElement(et){et&&this._dom.remove(et)}_getOrCreateElement(et,Ct=!1){if(!Ct){const Vn=this._parseSelector(et),sr=this.getTags(Vn).filter(Bt=>this._containsAttributes(et,Bt))[0];if(void 0!==sr)return sr}const xt=this._dom.createElement("meta");return this._setMetaElementAttributes(et,xt),this._doc.getElementsByTagName("head")[0].appendChild(xt),xt}_setMetaElementAttributes(et,Ct){return Object.keys(et).forEach(xt=>Ct.setAttribute(this._getMetaKeyMap(xt),et[xt])),Ct}_parseSelector(et){const Ct=et.name?"name":"property";return"".concat(Ct,'="').concat(et[Ct],'"')}_containsAttributes(et,Ct){return Object.keys(et).every(xt=>Ct.getAttribute(this._getMetaKeyMap(xt))===et[xt])}_getMetaKeyMap(et){return ut[et]||et}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(p.qQ))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"}),Je})();const ut={httpEquiv:"http-equiv"};let je=(()=>{var ke;class Je{constructor(et){this._doc=et}getTitle(){return this._doc.title}setTitle(et){this._doc.title=et||""}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(p.qQ))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"}),Je})(),Sn=(()=>{var ke;class Je{}return(ke=Je).\u0275fac=function(et){return new(et||ke)},ke.\u0275prov=l.jDH({token:ke,factory:function(et){let Ct=null;return Ct=et?new(et||ke):l.KVO(Ht),Ct},providedIn:"root"}),Je})(),Ht=(()=>{var ke;class Je extends Sn{constructor(et){super(),this._doc=et}sanitize(et,Ct){if(null==Ct)return null;switch(et){case l.WPN.NONE:return Ct;case l.WPN.HTML:return(0,l.ZF7)(Ct,"HTML")?(0,l.rcV)(Ct):(0,l.h9k)(this._doc,String(Ct)).toString();case l.WPN.STYLE:return(0,l.ZF7)(Ct,"Style")?(0,l.rcV)(Ct):Ct;case l.WPN.SCRIPT:if((0,l.ZF7)(Ct,"Script"))return(0,l.rcV)(Ct);throw new l.wOt(5200,!1);case l.WPN.URL:return(0,l.ZF7)(Ct,"URL")?(0,l.rcV)(Ct):(0,l.$MX)(String(Ct));case l.WPN.RESOURCE_URL:if((0,l.ZF7)(Ct,"ResourceURL"))return(0,l.rcV)(Ct);throw new l.wOt(5201,!1);default:throw new l.wOt(5202,!1)}}bypassSecurityTrustHtml(et){return(0,l.Kcf)(et)}bypassSecurityTrustStyle(et){return(0,l.cWb)(et)}bypassSecurityTrustScript(et){return(0,l.UyX)(et)}bypassSecurityTrustUrl(et){return(0,l.osQ)(et)}bypassSecurityTrustResourceUrl(et){return(0,l.e5t)(et)}}return(ke=Je).\u0275fac=function(et){return new(et||ke)(l.KVO(p.qQ))},ke.\u0275prov=l.jDH({token:ke,factory:ke.\u0275fac,providedIn:"root"}),Je})();var On=function(ke){return ke[ke.NoHttpTransferCache=0]="NoHttpTransferCache",ke[ke.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",ke}(On||{});function $n(){return function Gn(ke,Je=[],ot={}){return{\u0275kind:ke,\u0275providers:Je}}(On.NoHttpTransferCache)}function Qn(...ke){const Je=[],ot=new Set,et=ot.has(On.HttpTransferCacheOptions);for(const{\u0275providers:Ct,\u0275kind:xt}of ke)ot.add(xt),Ct.length&&Je.push(Ct);return(0,l.EmA)([[],(0,l.M8M)(),ot.has(On.NoHttpTransferCache)||et?[]:(0,E.$m)({}),Je])}},9047:(ee,_,c)=>{"use strict";c.d(_,{nX:()=>Ot,_d:()=>Te,wF:()=>jr,Z:()=>_i,Xk:()=>R,b:()=>$t,Ix:()=>Cr,iI:()=>fa,n3:()=>Pr,OY:()=>ft});var l=c(467),p=c(4438),E=c(1985),v=c(8071),$=c(2806),B=c(7673),ne=c(4412),te=c(4572),me=c(9350),V=c(8793),Z=c(8750);function le(O){return new E.c(F=>{(0,Z.Tg)(O()).subscribe(F)})}var Q=c(1203),z=c(8810),Y=c(983),ve=c(8359),pe=c(9974),fe=c(4360);function w(){return(0,pe.N)((O,F)=>{let q=null;O._refCount++;const k=(0,fe._)(F,void 0,void 0,void 0,()=>{if(!O||O._refCount<=0||0<--O._refCount)return void(q=null);const oe=O._connection,Ue=q;q=null,oe&&(!Ue||oe===Ue)&&oe.unsubscribe(),F.unsubscribe()});O.subscribe(k),k.closed||(q=O.connect())})}class j extends E.c{constructor(F,q){super(),this.source=F,this.subjectFactory=q,this._subject=null,this._refCount=0,this._connection=null,(0,pe.S)(F)&&(this.lift=F.lift)}_subscribe(F){return this.getSubject().subscribe(F)}getSubject(){const F=this._subject;return(!F||F.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:F}=this;this._subject=this._connection=null,null==F||F.unsubscribe()}connect(){let F=this._connection;if(!F){F=this._connection=new ve.yU;const q=this.getSubject();F.add(this.source.subscribe((0,fe._)(q,void 0,()=>{this._teardown(),q.complete()},k=>{this._teardown(),q.error(k)},()=>this._teardown()))),F.closed&&(this._connection=null,F=ve.yU.EMPTY)}return F}refCount(){return w()(this)}}var I=c(1413),S=c(177),N=c(6354),W=c(5558),X=c(6697),J=c(9172),Ce=c(5964),ue=c(1397),ge=c(1594),De=c(274),He=c(8141),Oe=c(9437),it=c(2816),Ze=c(9901);function we(O){return O<=0?()=>Y.w:(0,pe.N)((F,q)=>{let k=[];F.subscribe((0,fe._)(q,oe=>{k.push(oe),O<k.length&&k.shift()},()=>{for(const oe of k)q.next(oe);q.complete()},void 0,()=>{k=null}))})}var ye=c(3774),ze=c(3669),Fe=c(980),he=c(6977),Ne=c(6365),st=c(345);const R="primary",A=Symbol("RouteTitle");class L{constructor(F){this.params=F||{}}has(F){return Object.prototype.hasOwnProperty.call(this.params,F)}get(F){if(this.has(F)){const q=this.params[F];return Array.isArray(q)?q[0]:q}return null}getAll(F){if(this.has(F)){const q=this.params[F];return Array.isArray(q)?q:[q]}return[]}get keys(){return Object.keys(this.params)}}function G(O){return new L(O)}function K(O,F,q){const k=q.path.split("/");if(k.length>O.length||"full"===q.pathMatch&&(F.hasChildren()||k.length<O.length))return null;const oe={};for(let Ue=0;Ue<k.length;Ue++){const Ge=k[Ue],Mt=O[Ue];if(Ge.startsWith(":"))oe[Ge.substring(1)]=Mt;else if(Ge!==Mt.path)return null}return{consumed:O.slice(0,k.length),posParams:oe}}function Be(O,F){const q=O?qe(O):void 0,k=F?qe(F):void 0;if(!q||!k||q.length!=k.length)return!1;let oe;for(let Ue=0;Ue<q.length;Ue++)if(oe=q[Ue],!ut(O[oe],F[oe]))return!1;return!0}function qe(O){return[...Object.keys(O),...Object.getOwnPropertySymbols(O)]}function ut(O,F){if(Array.isArray(O)&&Array.isArray(F)){if(O.length!==F.length)return!1;const q=[...O].sort(),k=[...F].sort();return q.every((oe,Ue)=>k[Ue]===oe)}return O===F}function je(O){return O.length>0?O[O.length-1]:null}function mt(O){return function U(O){return!!O&&(O instanceof E.c||(0,v.T)(O.lift)&&(0,v.T)(O.subscribe))}(O)?O:(0,p.jNT)(O)?(0,$.H)(Promise.resolve(O)):(0,B.of)(O)}const Nt={exact:function Bn(O,F,q){if(!Sn(O.segments,F.segments)||!Wt(O.segments,F.segments,q)||O.numberOfChildren!==F.numberOfChildren)return!1;for(const k in F.children)if(!O.children[k]||!Bn(O.children[k],F.children[k],q))return!1;return!0},subset:yn},zt={exact:function or(O,F){return Be(O,F)},subset:function Cn(O,F){return Object.keys(F).length<=Object.keys(O).length&&Object.keys(F).every(q=>ut(O[q],F[q]))},ignored:()=>!0};function fn(O,F,q){return Nt[q.paths](O.root,F.root,q.matrixParams)&&zt[q.queryParams](O.queryParams,F.queryParams)&&!("exact"===q.fragment&&O.fragment!==F.fragment)}function yn(O,F,q){return Lr(O,F,F.segments,q)}function Lr(O,F,q,k){if(O.segments.length>q.length){const oe=O.segments.slice(0,q.length);return!(!Sn(oe,q)||F.hasChildren()||!Wt(oe,q,k))}if(O.segments.length===q.length){if(!Sn(O.segments,q)||!Wt(O.segments,q,k))return!1;for(const oe in F.children)if(!O.children[oe]||!yn(O.children[oe],F.children[oe],k))return!1;return!0}{const oe=q.slice(0,O.segments.length),Ue=q.slice(O.segments.length);return!!(Sn(O.segments,oe)&&Wt(O.segments,oe,k)&&O.children[R])&&Lr(O.children[R],F,Ue,k)}}function Wt(O,F,q){return F.every((k,oe)=>zt[q](O[oe].parameters,k.parameters))}class Xt{constructor(F=new sn([],{}),q={},k=null){this.root=F,this.queryParams=q,this.fragment=k}get queryParamMap(){var F;return null!==(F=this._queryParamMap)&&void 0!==F||(this._queryParamMap=G(this.queryParams)),this._queryParamMap}toString(){return $n.serialize(this)}}class sn{constructor(F,q){this.segments=F,this.children=q,this.parent=null,Object.values(q).forEach(k=>k.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qn(this)}}class tn{constructor(F,q){this.path=F,this.parameters=q}get parameterMap(){var F;return null!==(F=this._parameterMap)&&void 0!==F||(this._parameterMap=G(this.parameters)),this._parameterMap}toString(){return ot(this)}}function Sn(O,F){return O.length===F.length&&O.every((q,k)=>q.path===F[k].path)}let On=(()=>{var O;class F{}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:()=>new Gn,providedIn:"root"}),F})();class Gn{parse(F){const q=new zr(F);return new Xt(q.parseRootSegment(),q.parseQueryParams(),q.parseFragment())}serialize(F){const q="/".concat(Kn(F.root,!0)),k=function Ct(O){const F=Object.entries(O).map(([q,k])=>Array.isArray(k)?k.map(oe=>"".concat(Rr(q),"=").concat(Rr(oe))).join("&"):"".concat(Rr(q),"=").concat(Rr(k))).filter(q=>q);return F.length?"?".concat(F.join("&")):""}(F.queryParams),oe="string"==typeof F.fragment?"#".concat(function Pn(O){return encodeURI(O)}(F.fragment)):"";return"".concat(q).concat(k).concat(oe)}}const $n=new Gn;function qn(O){return O.segments.map(F=>ot(F)).join("/")}function Kn(O,F){if(!O.hasChildren())return qn(O);if(F){const q=O.children[R]?Kn(O.children[R],!1):"",k=[];return Object.entries(O.children).forEach(([oe,Ue])=>{oe!==R&&k.push("".concat(oe,":").concat(Kn(Ue,!1)))}),k.length>0?"".concat(q,"(").concat(k.join("//"),")"):q}{const q=function Ht(O,F){let q=[];return Object.entries(O.children).forEach(([k,oe])=>{k===R&&(q=q.concat(F(oe,k)))}),Object.entries(O.children).forEach(([k,oe])=>{k!==R&&(q=q.concat(F(oe,k)))}),q}(O,(k,oe)=>oe===R?[Kn(O.children[R],!1)]:["".concat(oe,":").concat(Kn(k,!1))]);return 1===Object.keys(O.children).length&&null!=O.children[R]?"".concat(qn(O),"/").concat(q[0]):"".concat(qn(O),"/(").concat(q.join("//"),")")}}function Qn(O){return encodeURIComponent(O).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rr(O){return Qn(O).replace(/%3B/gi,";")}function Dt(O){return Qn(O).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ke(O){return decodeURIComponent(O)}function Je(O){return ke(O.replace(/\+/g,"%20"))}function ot(O){return"".concat(Dt(O.path)).concat(function et(O){return Object.entries(O).map(([F,q])=>";".concat(Dt(F),"=").concat(Dt(q))).join("")}(O.parameters))}const xt=/^[^\/()?;#]+/;function cn(O){const F=O.match(xt);return F?F[0]:""}const Vn=/^[^\/()?;=#]+/,Bt=/^[^=?&#]+/,Br=/^[^&#]+/;class zr{constructor(F){this.url=F,this.remaining=F}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new sn([],{}):new sn([],this.parseChildren())}parseQueryParams(){const F={};if(this.consumeOptional("?"))do{this.parseQueryParam(F)}while(this.consumeOptional("&"));return F}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const F=[];for(this.peekStartsWith("(")||F.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),F.push(this.parseSegment());let q={};this.peekStartsWith("/(")&&(this.capture("/"),q=this.parseParens(!0));let k={};return this.peekStartsWith("(")&&(k=this.parseParens(!1)),(F.length>0||Object.keys(q).length>0)&&(k[R]=new sn(F,q)),k}parseSegment(){const F=cn(this.remaining);if(""===F&&this.peekStartsWith(";"))throw new p.wOt(4009,!1);return this.capture(F),new tn(ke(F),this.parseMatrixParams())}parseMatrixParams(){const F={};for(;this.consumeOptional(";");)this.parseParam(F);return F}parseParam(F){const q=function sr(O){const F=O.match(Vn);return F?F[0]:""}(this.remaining);if(!q)return;this.capture(q);let k="";if(this.consumeOptional("=")){const oe=cn(this.remaining);oe&&(k=oe,this.capture(k))}F[ke(q)]=ke(k)}parseQueryParam(F){const q=function Hr(O){const F=O.match(Bt);return F?F[0]:""}(this.remaining);if(!q)return;this.capture(q);let k="";if(this.consumeOptional("=")){const Ge=function Xr(O){const F=O.match(Br);return F?F[0]:""}(this.remaining);Ge&&(k=Ge,this.capture(k))}const oe=Je(q),Ue=Je(k);if(F.hasOwnProperty(oe)){let Ge=F[oe];Array.isArray(Ge)||(Ge=[Ge],F[oe]=Ge),Ge.push(Ue)}else F[oe]=Ue}parseParens(F){const q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const k=cn(this.remaining),oe=this.remaining[k.length];if("/"!==oe&&")"!==oe&&";"!==oe)throw new p.wOt(4010,!1);let Ue;k.indexOf(":")>-1?(Ue=k.slice(0,k.indexOf(":")),this.capture(Ue),this.capture(":")):F&&(Ue=R);const Ge=this.parseChildren();q[Ue]=1===Object.keys(Ge).length?Ge[R]:new sn([],Ge),this.consumeOptional("//")}return q}peekStartsWith(F){return this.remaining.startsWith(F)}consumeOptional(F){return!!this.peekStartsWith(F)&&(this.remaining=this.remaining.substring(F.length),!0)}capture(F){if(!this.consumeOptional(F))throw new p.wOt(4011,!1)}}function Jr(O){return O.segments.length>0?new sn([],{[R]:O}):O}function Dr(O){const F={};for(const[k,oe]of Object.entries(O.children)){const Ue=Dr(oe);if(k===R&&0===Ue.segments.length&&Ue.hasChildren())for(const[Ge,Mt]of Object.entries(Ue.children))F[Ge]=Mt;else(Ue.segments.length>0||Ue.hasChildren())&&(F[k]=Ue)}return function Tn(O){if(1===O.numberOfChildren&&O.children[R]){const F=O.children[R];return new sn(O.segments.concat(F.segments),F.children)}return O}(new sn(O.segments,F))}function fr(O){return O instanceof Xt}function no(O){var F;let q;const Ue=Jr(function k(Ge){const Mt={};for(const Ft of Ge.children){const xn=k(Ft);Mt[Ft.outlet]=xn}const un=new sn(Ge.url,Mt);return Ge===O&&(q=un),un}(O.root));return null!==(F=q)&&void 0!==F?F:Ue}function Ai(O,F,q,k){let oe=O;for(;oe.parent;)oe=oe.parent;if(0===F.length)return vo(oe,oe,oe,q,k);const Ue=function ni(O){if("string"==typeof O[0]&&1===O.length&&"/"===O[0])return new Fi(!0,0,O);let F=0,q=!1;const k=O.reduce((oe,Ue,Ge)=>{if("object"==typeof Ue&&null!=Ue){if(Ue.outlets){const Mt={};return Object.entries(Ue.outlets).forEach(([un,Ft])=>{Mt[un]="string"==typeof Ft?Ft.split("/"):Ft}),[...oe,{outlets:Mt}]}if(Ue.segmentPath)return[...oe,Ue.segmentPath]}return"string"!=typeof Ue?[...oe,Ue]:0===Ge?(Ue.split("/").forEach((Mt,un)=>{0==un&&"."===Mt||(0==un&&""===Mt?q=!0:".."===Mt?F++:""!=Mt&&oe.push(Mt))}),oe):[...oe,Ue]},[]);return new Fi(q,F,k)}(F);if(Ue.toRoot())return vo(oe,oe,new sn([],{}),q,k);const Ge=function uo(O,F,q){if(O.isAbsolute)return new oi(F,!0,0);if(!q)return new oi(F,!1,NaN);if(null===q.parent)return new oi(q,!0,0);const k=Pi(O.commands[0])?0:1;return function Nn(O,F,q){let k=O,oe=F,Ue=q;for(;Ue>oe;){if(Ue-=oe,k=k.parent,!k)throw new p.wOt(4005,!1);oe=k.segments.length}return new oi(k,!1,oe-Ue)}(q,q.segments.length-1+k,O.numberOfDoubleDots)}(Ue,oe,O),Mt=Ge.processChildren?wt(Ge.segmentGroup,Ge.index,Ue.commands):gt(Ge.segmentGroup,Ge.index,Ue.commands);return vo(oe,Ge.segmentGroup,Mt,q,k)}function Pi(O){return"object"==typeof O&&null!=O&&!O.outlets&&!O.segmentPath}function gr(O){return"object"==typeof O&&null!=O&&O.outlets}function vo(O,F,q,k,oe){let Ge,Ue={};k&&Object.entries(k).forEach(([un,Ft])=>{Ue[un]=Array.isArray(Ft)?Ft.map(xn=>"".concat(xn)):"".concat(Ft)}),Ge=O===F?q:ro(O,F,q);const Mt=Jr(Dr(Ge));return new Xt(Mt,Ue,oe)}function ro(O,F,q){const k={};return Object.entries(O.children).forEach(([oe,Ue])=>{k[oe]=Ue===F?q:ro(Ue,F,q)}),new sn(O.segments,k)}class Fi{constructor(F,q,k){if(this.isAbsolute=F,this.numberOfDoubleDots=q,this.commands=k,F&&k.length>0&&Pi(k[0]))throw new p.wOt(4003,!1);const oe=k.find(gr);if(oe&&oe!==je(k))throw new p.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class oi{constructor(F,q,k){this.segmentGroup=F,this.processChildren=q,this.index=k}}function gt(O,F,q){var k;if(null!==(k=O)&&void 0!==k||(O=new sn([],{})),0===O.segments.length&&O.hasChildren())return wt(O,F,q);const oe=function It(O,F,q){let k=0,oe=F;const Ue={match:!1,pathIndex:0,commandIndex:0};for(;oe<O.segments.length;){if(k>=q.length)return Ue;const Ge=O.segments[oe],Mt=q[k];if(gr(Mt))break;const un="".concat(Mt),Ft=k<q.length-1?q[k+1]:null;if(oe>0&&void 0===un)break;if(un&&Ft&&"object"==typeof Ft&&void 0===Ft.outlets){if(!mn(un,Ft,Ge))return Ue;k+=2}else{if(!mn(un,{},Ge))return Ue;k++}oe++}return{match:!0,pathIndex:oe,commandIndex:k}}(O,F,q),Ue=q.slice(oe.commandIndex);if(oe.match&&oe.pathIndex<O.segments.length){const Ge=new sn(O.segments.slice(0,oe.pathIndex),{});return Ge.children[R]=new sn(O.segments.slice(oe.pathIndex),O.children),wt(Ge,0,Ue)}return oe.match&&0===Ue.length?new sn(O.segments,{}):oe.match&&!O.hasChildren()?Ut(O,F,q):oe.match?wt(O,0,Ue):Ut(O,F,q)}function wt(O,F,q){if(0===q.length)return new sn(O.segments,{});{const k=function We(O){return gr(O[0])?O[0].outlets:{[R]:O}}(q),oe={};if(Object.keys(k).some(Ue=>Ue!==R)&&O.children[R]&&1===O.numberOfChildren&&0===O.children[R].segments.length){const Ue=wt(O.children[R],F,q);return new sn(O.segments,Ue.children)}return Object.entries(k).forEach(([Ue,Ge])=>{"string"==typeof Ge&&(Ge=[Ge]),null!==Ge&&(oe[Ue]=gt(O.children[Ue],F,Ge))}),Object.entries(O.children).forEach(([Ue,Ge])=>{void 0===k[Ue]&&(oe[Ue]=Ge)}),new sn(O.segments,oe)}}function Ut(O,F,q){const k=O.segments.slice(0,F);let oe=0;for(;oe<q.length;){const Ue=q[oe];if(gr(Ue)){const un=an(Ue.outlets);return new sn(k,un)}if(0===oe&&Pi(q[0])){k.push(new tn(O.segments[F].path,bn(q[0]))),oe++;continue}const Ge=gr(Ue)?Ue.outlets[R]:"".concat(Ue),Mt=oe<q.length-1?q[oe+1]:null;Ge&&Mt&&Pi(Mt)?(k.push(new tn(Ge,bn(Mt))),oe+=2):(k.push(new tn(Ge,{})),oe++)}return new sn(k,{})}function an(O){const F={};return Object.entries(O).forEach(([q,k])=>{"string"==typeof k&&(k=[k]),null!==k&&(F[q]=Ut(new sn([],{}),0,k))}),F}function bn(O){const F={};return Object.entries(O).forEach(([q,k])=>F[q]="".concat(k)),F}function mn(O,F,q){return O==q.path&&Be(F,q.parameters)}const Mn="imperative";var pn=function(O){return O[O.NavigationStart=0]="NavigationStart",O[O.NavigationEnd=1]="NavigationEnd",O[O.NavigationCancel=2]="NavigationCancel",O[O.NavigationError=3]="NavigationError",O[O.RoutesRecognized=4]="RoutesRecognized",O[O.ResolveStart=5]="ResolveStart",O[O.ResolveEnd=6]="ResolveEnd",O[O.GuardsCheckStart=7]="GuardsCheckStart",O[O.GuardsCheckEnd=8]="GuardsCheckEnd",O[O.RouteConfigLoadStart=9]="RouteConfigLoadStart",O[O.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",O[O.ChildActivationStart=11]="ChildActivationStart",O[O.ChildActivationEnd=12]="ChildActivationEnd",O[O.ActivationStart=13]="ActivationStart",O[O.ActivationEnd=14]="ActivationEnd",O[O.Scroll=15]="Scroll",O[O.NavigationSkipped=16]="NavigationSkipped",O}(pn||{});class mr{constructor(F,q){this.id=F,this.url=q}}class _i extends mr{constructor(F,q,k="imperative",oe=null){super(F,q),this.type=pn.NavigationStart,this.navigationTrigger=k,this.restoredState=oe}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}class jr extends mr{constructor(F,q,k){super(F,q),this.urlAfterRedirects=k,this.type=pn.NavigationEnd}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}var yr=function(O){return O[O.Redirect=0]="Redirect",O[O.SupersededByNewNavigation=1]="SupersededByNewNavigation",O[O.NoDataFromResolver=2]="NoDataFromResolver",O[O.GuardRejected=3]="GuardRejected",O}(yr||{}),Wr=function(O){return O[O.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",O[O.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",O}(Wr||{});class Vr extends mr{constructor(F,q,k,oe){super(F,q),this.reason=k,this.code=oe,this.type=pn.NavigationCancel}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}class nr extends mr{constructor(F,q,k,oe){super(F,q),this.reason=k,this.code=oe,this.type=pn.NavigationSkipped}}class lr extends mr{constructor(F,q,k,oe){super(F,q),this.error=k,this.target=oe,this.type=pn.NavigationError}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}class di extends mr{constructor(F,q,k,oe){super(F,q),this.urlAfterRedirects=k,this.state=oe,this.type=pn.RoutesRecognized}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Gr extends mr{constructor(F,q,k,oe){super(F,q),this.urlAfterRedirects=k,this.state=oe,this.type=pn.GuardsCheckStart}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Dn extends mr{constructor(F,q,k,oe,Ue){super(F,q),this.urlAfterRedirects=k,this.state=oe,this.shouldActivate=Ue,this.type=pn.GuardsCheckEnd}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}class si extends mr{constructor(F,q,k,oe){super(F,q),this.urlAfterRedirects=k,this.state=oe,this.type=pn.ResolveStart}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Ni extends mr{constructor(F,q,k,oe){super(F,q),this.urlAfterRedirects=k,this.state=oe,this.type=pn.ResolveEnd}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class dt{constructor(F){this.route=F,this.type=pn.RouteConfigLoadStart}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}class jt{constructor(F){this.route=F,this.type=pn.RouteConfigLoadEnd}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}class Kt{constructor(F){this.snapshot=F,this.type=pn.ChildActivationStart}toString(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class Ie{constructor(F){this.snapshot=F,this.type=pn.ChildActivationEnd}toString(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class _t{constructor(F){this.snapshot=F,this.type=pn.ActivationStart}toString(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class Te{constructor(F){this.snapshot=F,this.type=pn.ActivationEnd}toString(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class ft{constructor(F,q,k){this.routerEvent=F,this.position=q,this.anchor=k,this.type=pn.Scroll}toString(){const F=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(F,"')")}}class Et{}class ct{constructor(F){this.url=F}}class Qt{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new rn,this.attachRef=null}}let rn=(()=>{var O;class F{constructor(){this.contexts=new Map}onChildOutletCreated(k,oe){const Ue=this.getOrCreateContext(k);Ue.outlet=oe,this.contexts.set(k,Ue)}onChildOutletDestroyed(k){const oe=this.getContext(k);oe&&(oe.outlet=null,oe.attachRef=null)}onOutletDeactivated(){const k=this.contexts;return this.contexts=new Map,k}onOutletReAttached(k){this.contexts=k}getOrCreateContext(k){let oe=this.getContext(k);return oe||(oe=new Qt,this.contexts.set(k,oe)),oe}getContext(k){return this.contexts.get(k)||null}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();class zn{constructor(F){this._root=F}get root(){return this._root.value}parent(F){const q=this.pathFromRoot(F);return q.length>1?q[q.length-2]:null}children(F){const q=er(F,this._root);return q?q.children.map(k=>k.value):[]}firstChild(F){const q=er(F,this._root);return q&&q.children.length>0?q.children[0].value:null}siblings(F){const q=d(F,this._root);return q.length<2?[]:q[q.length-2].children.map(oe=>oe.value).filter(oe=>oe!==F)}pathFromRoot(F){return d(F,this._root).map(q=>q.value)}}function er(O,F){if(O===F.value)return F;for(const q of F.children){const k=er(O,q);if(k)return k}return null}function d(O,F){if(O===F.value)return[F];for(const q of F.children){const k=d(O,q);if(k.length)return k.unshift(F),k}return[]}class T{constructor(F,q){this.value=F,this.children=q}toString(){return"TreeNode(".concat(this.value,")")}}function de(O){const F={};return O&&O.children.forEach(q=>F[q.value.outlet]=q),F}class Ae extends zn{constructor(F,q){super(F),this.snapshot=q,In(this,F)}toString(){return this.snapshot.toString()}}function nt(O){const F=function At(O){const Ue=new En([],{},{},"",{},R,O,null,{});return new tr("",new T(Ue,[]))}(O),q=new ne.t([new tn("",{})]),k=new ne.t({}),oe=new ne.t({}),Ue=new ne.t({}),Ge=new ne.t(""),Mt=new Ot(q,k,Ue,Ge,oe,R,O,F.root);return Mt.snapshot=F.root,new Ae(new T(Mt,[]),F)}class Ot{constructor(F,q,k,oe,Ue,Ge,Mt,un){var Ft,xn;this.urlSubject=F,this.paramsSubject=q,this.queryParamsSubject=k,this.fragmentSubject=oe,this.dataSubject=Ue,this.outlet=Ge,this.component=Mt,this._futureSnapshot=un,this.title=null!==(Ft=null===(xn=this.dataSubject)||void 0===xn?void 0:xn.pipe((0,N.T)(dr=>dr[A])))&&void 0!==Ft?Ft:(0,B.of)(void 0),this.url=F,this.params=q,this.queryParams=k,this.fragment=oe,this.data=Ue}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var F;return null!==(F=this._paramMap)&&void 0!==F||(this._paramMap=this.params.pipe((0,N.T)(q=>G(q)))),this._paramMap}get queryParamMap(){var F;return null!==(F=this._queryParamMap)&&void 0!==F||(this._queryParamMap=this.queryParams.pipe((0,N.T)(q=>G(q)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}function gn(O,F,q="emptyOnly"){var k;let oe;const{routeConfig:Ue}=O;var Ge;return oe=null===F||"always"!==q&&""!==(null==Ue?void 0:Ue.path)&&(F.component||null!==(k=F.routeConfig)&&void 0!==k&&k.loadComponent)?{params:{...O.params},data:{...O.data},resolve:{...O.data,...null!==(Ge=O._resolvedData)&&void 0!==Ge?Ge:{}}}:{params:{...F.params,...O.params},data:{...F.data,...O.data},resolve:{...O.data,...F.data,...null==Ue?void 0:Ue.data,...O._resolvedData}},Ue&&Yn(Ue)&&(oe.resolve[A]=Ue.title),oe}class En{get title(){var F;return null===(F=this.data)||void 0===F?void 0:F[A]}constructor(F,q,k,oe,Ue,Ge,Mt,un,Ft){this.url=F,this.params=q,this.queryParams=k,this.fragment=oe,this.data=Ue,this.outlet=Ge,this.component=Mt,this.routeConfig=un,this._resolve=Ft}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var F;return null!==(F=this._paramMap)&&void 0!==F||(this._paramMap=G(this.params)),this._paramMap}get queryParamMap(){var F;return null!==(F=this._queryParamMap)&&void 0!==F||(this._queryParamMap=G(this.queryParams)),this._queryParamMap}toString(){const F=this.url.map(k=>k.toString()).join("/"),q=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(F,"', path:'").concat(q,"')")}}class tr extends zn{constructor(F,q){super(q),this.url=F,In(this,q)}toString(){return Mr(this._root)}}function In(O,F){F.value._routerState=O,F.children.forEach(q=>In(O,q))}function Mr(O){const F=O.children.length>0?" { ".concat(O.children.map(Mr).join(", ")," } "):"";return"".concat(O.value).concat(F)}function hr(O){if(O.snapshot){const F=O.snapshot,q=O._futureSnapshot;O.snapshot=q,Be(F.queryParams,q.queryParams)||O.queryParamsSubject.next(q.queryParams),F.fragment!==q.fragment&&O.fragmentSubject.next(q.fragment),Be(F.params,q.params)||O.paramsSubject.next(q.params),function ce(O,F){if(O.length!==F.length)return!1;for(let q=0;q<O.length;++q)if(!Be(O[q],F[q]))return!1;return!0}(F.url,q.url)||O.urlSubject.next(q.url),Be(F.data,q.data)||O.dataSubject.next(q.data)}else O.snapshot=O._futureSnapshot,O.dataSubject.next(O._futureSnapshot.data)}function Hi(O,F){const q=Be(O.params,F.params)&&function jn(O,F){return Sn(O,F)&&O.every((q,k)=>Be(q.parameters,F[k].parameters))}(O.url,F.url);return q&&!(!O.parent!=!F.parent)&&(!O.parent||Hi(O.parent,F.parent))}function Yn(O){return"string"==typeof O.title||null===O.title}let Pr=(()=>{var O;class F{constructor(){this.activated=null,this._activatedRoute=null,this.name=R,this.activateEvents=new p.bkB,this.deactivateEvents=new p.bkB,this.attachEvents=new p.bkB,this.detachEvents=new p.bkB,this.parentContexts=(0,p.WQX)(rn),this.location=(0,p.WQX)(p.c1b),this.changeDetector=(0,p.WQX)(p.gRc),this.environmentInjector=(0,p.WQX)(p.uvJ),this.inputBinder=(0,p.WQX)(Ui,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(k){if(k.name){const{firstChange:oe,previousValue:Ue}=k.name;if(oe)return;this.isTrackedInParentContexts(Ue)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Ue)),this.initializeOutletWithName()}}ngOnDestroy(){var k;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(k=this.inputBinder)||void 0===k||k.unsubscribeFromRouteData(this)}isTrackedInParentContexts(k){var oe;return(null===(oe=this.parentContexts.getContext(k))||void 0===oe?void 0:oe.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const k=this.parentContexts.getContext(this.name);null!=k&&k.route&&(k.attachRef?this.attach(k.attachRef,k.route):this.activateWith(k.route,k.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new p.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new p.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new p.wOt(4012,!1);this.location.detach();const k=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(k.instance),k}attach(k,oe){var Ue;this.activated=k,this._activatedRoute=oe,this.location.insert(k.hostView),null===(Ue=this.inputBinder)||void 0===Ue||Ue.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(k.instance)}deactivate(){if(this.activated){const k=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(k)}}activateWith(k,oe){var Ue;if(this.isActivated)throw new p.wOt(4013,!1);this._activatedRoute=k;const Ge=this.location,un=k.snapshot.component,Ft=this.parentContexts.getOrCreateContext(this.name).children,xn=new io(k,Ft,Ge.injector);this.activated=Ge.createComponent(un,{index:Ge.length,injector:xn,environmentInjector:null!=oe?oe:this.environmentInjector}),this.changeDetector.markForCheck(),null===(Ue=this.inputBinder)||void 0===Ue||Ue.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275dir=p.FsC({type:O,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[p.OA$]}),F})();class io{__ngOutletInjector(F){return new io(this.route,this.childContexts,F)}constructor(F,q,k){this.route=F,this.childContexts=q,this.parent=k}get(F,q){return F===Ot?this.route:F===rn?this.childContexts:this.parent.get(F,q)}}const Ui=new p.nKC("");let Da=(()=>{var O;class F{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(k){this.unsubscribeFromRouteData(k),this.subscribeToRouteData(k)}unsubscribeFromRouteData(k){var oe;null===(oe=this.outletDataSubscriptions.get(k))||void 0===oe||oe.unsubscribe(),this.outletDataSubscriptions.delete(k)}subscribeToRouteData(k){const{activatedRoute:oe}=k,Ue=(0,te.z)([oe.queryParams,oe.params,oe.data]).pipe((0,W.n)(([Ge,Mt,un],Ft)=>(un={...Ge,...Mt,...un},0===Ft?(0,B.of)(un):Promise.resolve(un)))).subscribe(Ge=>{if(!k.isActivated||!k.activatedComponentRef||k.activatedRoute!==oe||null===oe.component)return void this.unsubscribeFromRouteData(k);const Mt=(0,p.HJs)(oe.component);if(Mt)for(const{templateName:un}of Mt.inputs)k.activatedComponentRef.setInput(un,Ge[un]);else this.unsubscribeFromRouteData(k)});this.outletDataSubscriptions.set(k,Ue)}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac}),F})();function is(O,F,q){if(q&&O.shouldReuseRoute(F.value,q.value.snapshot)){const k=q.value;k._futureSnapshot=F.value;const oe=function Vs(O,F,q){return F.children.map(k=>{for(const oe of q.children)if(O.shouldReuseRoute(k.value,oe.value.snapshot))return is(O,k,oe);return is(O,k)})}(O,F,q);return new T(k,oe)}{if(O.shouldAttach(F.value)){const Ue=O.retrieve(F.value);if(null!==Ue){const Ge=Ue.route;return Ge.value._futureSnapshot=F.value,Ge.children=F.children.map(Mt=>is(O,Mt)),Ge}}const k=function Os(O){return new Ot(new ne.t(O.url),new ne.t(O.params),new ne.t(O.queryParams),new ne.t(O.fragment),new ne.t(O.data),O.outlet,O.component,O)}(F.value),oe=F.children.map(Ue=>is(O,Ue));return new T(k,oe)}}const Aa="ngNavigationCancelingError";function fs(O,F){const{redirectTo:q,navigationBehaviorOptions:k}=fr(F)?{redirectTo:F,navigationBehaviorOptions:void 0}:F,oe=$s(!1,yr.Redirect);return oe.url=q,oe.navigationBehaviorOptions=k,oe}function $s(O,F){const q=new Error("NavigationCancelingError: ".concat(O||""));return q[Aa]=!0,q.cancellationCode=F,q}function Ks(O){return!!O&&O[Aa]}let Wi=(()=>{var O;class F{}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275cmp=p.VBU({type:O,selectors:[["ng-component"]],standalone:!0,features:[p.aNF],decls:1,vars:0,template:function(k,oe){1&k&&p.nrm(0,"router-outlet")},dependencies:[Pr],encapsulation:2}),F})();function Zi(O){const F=O.children&&O.children.map(Zi),q=F?{...O,children:F}:{...O};return!q.component&&!q.loadComponent&&(F||q.loadChildren)&&q.outlet&&q.outlet!==R&&(q.component=Wi),q}function Ei(O){return O.outlet||R}function ss(O){var F;if(!O)return null;if(null!==(F=O.routeConfig)&&void 0!==F&&F._injector)return O.routeConfig._injector;for(let q=O.parent;q;q=q.parent){const k=q.routeConfig;if(null!=k&&k._loadedInjector)return k._loadedInjector;if(null!=k&&k._injector)return k._injector}return null}class zo{constructor(F,q,k,oe,Ue){this.routeReuseStrategy=F,this.futureState=q,this.currState=k,this.forwardEvent=oe,this.inputBindingEnabled=Ue}activate(F){const q=this.futureState._root,k=this.currState?this.currState._root:null;this.deactivateChildRoutes(q,k,F),hr(this.futureState.root),this.activateChildRoutes(q,k,F)}deactivateChildRoutes(F,q,k){const oe=de(q);F.children.forEach(Ue=>{const Ge=Ue.value.outlet;this.deactivateRoutes(Ue,oe[Ge],k),delete oe[Ge]}),Object.values(oe).forEach(Ue=>{this.deactivateRouteAndItsChildren(Ue,k)})}deactivateRoutes(F,q,k){const oe=F.value,Ue=q?q.value:null;if(oe===Ue)if(oe.component){const Ge=k.getContext(oe.outlet);Ge&&this.deactivateChildRoutes(F,q,Ge.children)}else this.deactivateChildRoutes(F,q,k);else Ue&&this.deactivateRouteAndItsChildren(q,k)}deactivateRouteAndItsChildren(F,q){F.value.component&&this.routeReuseStrategy.shouldDetach(F.value.snapshot)?this.detachAndStoreRouteSubtree(F,q):this.deactivateRouteAndOutlet(F,q)}detachAndStoreRouteSubtree(F,q){const k=q.getContext(F.value.outlet),oe=k&&F.value.component?k.children:q,Ue=de(F);for(const Ge of Object.values(Ue))this.deactivateRouteAndItsChildren(Ge,oe);if(k&&k.outlet){const Ge=k.outlet.detach(),Mt=k.children.onOutletDeactivated();this.routeReuseStrategy.store(F.value.snapshot,{componentRef:Ge,route:F,contexts:Mt})}}deactivateRouteAndOutlet(F,q){const k=q.getContext(F.value.outlet),oe=k&&F.value.component?k.children:q,Ue=de(F);for(const Ge of Object.values(Ue))this.deactivateRouteAndItsChildren(Ge,oe);k&&(k.outlet&&(k.outlet.deactivate(),k.children.onOutletDeactivated()),k.attachRef=null,k.route=null)}activateChildRoutes(F,q,k){const oe=de(q);F.children.forEach(Ue=>{this.activateRoutes(Ue,oe[Ue.value.outlet],k),this.forwardEvent(new Te(Ue.value.snapshot))}),F.children.length&&this.forwardEvent(new Ie(F.value.snapshot))}activateRoutes(F,q,k){const oe=F.value,Ue=q?q.value:null;if(hr(oe),oe===Ue)if(oe.component){const Ge=k.getOrCreateContext(oe.outlet);this.activateChildRoutes(F,q,Ge.children)}else this.activateChildRoutes(F,q,k);else if(oe.component){const Ge=k.getOrCreateContext(oe.outlet);if(this.routeReuseStrategy.shouldAttach(oe.snapshot)){const Mt=this.routeReuseStrategy.retrieve(oe.snapshot);this.routeReuseStrategy.store(oe.snapshot,null),Ge.children.onOutletReAttached(Mt.contexts),Ge.attachRef=Mt.componentRef,Ge.route=Mt.route.value,Ge.outlet&&Ge.outlet.attach(Mt.componentRef,Mt.route.value),hr(Mt.route.value),this.activateChildRoutes(F,null,Ge.children)}else{const Mt=ss(oe.snapshot);Ge.attachRef=null,Ge.route=oe,Ge.injector=Mt,Ge.outlet&&Ge.outlet.activateWith(oe,Ge.injector),this.activateChildRoutes(F,null,Ge.children)}}else this.activateChildRoutes(F,null,k)}}class Hs{constructor(F){this.path=F,this.route=this.path[this.path.length-1]}}class Lo{constructor(F,q){this.component=F,this.route=q}}function $o(O,F,q){const k=O._root;return mi(k,F?F._root:null,q,[k.value])}function xr(O,F){const q=Symbol(),k=F.get(O,q);return k===q?"function"!=typeof O||(0,p.LfX)(O)?F.get(O):O:k}function mi(O,F,q,k,oe={canDeactivateChecks:[],canActivateChecks:[]}){const Ue=de(F);return O.children.forEach(Ge=>{(function co(O,F,q,k,oe={canDeactivateChecks:[],canActivateChecks:[]}){const Ue=O.value,Ge=F?F.value:null,Mt=q?q.getContext(O.value.outlet):null;if(Ge&&Ue.routeConfig===Ge.routeConfig){const un=function Ko(O,F,q){if("function"==typeof q)return q(O,F);switch(q){case"pathParamsChange":return!Sn(O.url,F.url);case"pathParamsOrQueryParamsChange":return!Sn(O.url,F.url)||!Be(O.queryParams,F.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hi(O,F)||!Be(O.queryParams,F.queryParams);default:return!Hi(O,F)}}(Ge,Ue,Ue.routeConfig.runGuardsAndResolvers);un?oe.canActivateChecks.push(new Hs(k)):(Ue.data=Ge.data,Ue._resolvedData=Ge._resolvedData),mi(O,F,Ue.component?Mt?Mt.children:null:q,k,oe),un&&Mt&&Mt.outlet&&Mt.outlet.isActivated&&oe.canDeactivateChecks.push(new Lo(Mt.outlet.component,Ge))}else Ge&&gs(F,Mt,oe),oe.canActivateChecks.push(new Hs(k)),mi(O,null,Ue.component?Mt?Mt.children:null:q,k,oe)})(Ge,Ue[Ge.value.outlet],q,k.concat([Ge.value]),oe),delete Ue[Ge.value.outlet]}),Object.entries(Ue).forEach(([Ge,Mt])=>gs(Mt,q.getContext(Ge),oe)),oe}function gs(O,F,q){const k=de(O),oe=O.value;Object.entries(k).forEach(([Ue,Ge])=>{gs(Ge,oe.component?F?F.children.getContext(Ue):null:F,q)}),q.canDeactivateChecks.push(new Lo(oe.component&&F&&F.outlet&&F.outlet.isActivated?F.outlet.component:null,oe))}function ms(O){return"function"==typeof O}function ts(O){return O instanceof me.G||"EmptyError"===(null==O?void 0:O.name)}const Bi=Symbol("INITIAL_VALUE");function Ho(){return(0,W.n)(O=>(0,te.z)(O.map(F=>F.pipe((0,X.s)(1),(0,J.Z)(Bi)))).pipe((0,N.T)(F=>{for(const q of F)if(!0!==q){if(q===Bi)return Bi;if(!1===q||q instanceof Xt)return q}return!0}),(0,Ce.p)(F=>F!==Bi),(0,X.s)(1)))}function Ns(O){return(0,Q.F)((0,He.M)(F=>{if(fr(F))throw fs(0,F)}),(0,N.T)(F=>!0===F))}class Qs{constructor(F){this.segmentGroup=F||null}}class ns extends Error{constructor(F){super(),this.urlTree=F}}function xo(O){return(0,z.$)(new Qs(O))}class yi{constructor(F,q){this.urlSerializer=F,this.urlTree=q}lineralizeSegments(F,q){let k=[],oe=q.root;for(;;){if(k=k.concat(oe.segments),0===oe.numberOfChildren)return(0,B.of)(k);if(oe.numberOfChildren>1||!oe.children[R])return(0,z.$)(new p.wOt(4e3,!1));oe=oe.children[R]}}applyRedirectCommands(F,q,k){const oe=this.applyRedirectCreateUrlTree(q,this.urlSerializer.parse(q),F,k);if(q.startsWith("/"))throw new ns(oe);return oe}applyRedirectCreateUrlTree(F,q,k,oe){const Ue=this.createSegmentGroup(F,q.root,k,oe);return new Xt(Ue,this.createQueryParams(q.queryParams,this.urlTree.queryParams),q.fragment)}createQueryParams(F,q){const k={};return Object.entries(F).forEach(([oe,Ue])=>{if("string"==typeof Ue&&Ue.startsWith(":")){const Mt=Ue.substring(1);k[oe]=q[Mt]}else k[oe]=Ue}),k}createSegmentGroup(F,q,k,oe){const Ue=this.createSegments(F,q.segments,k,oe);let Ge={};return Object.entries(q.children).forEach(([Mt,un])=>{Ge[Mt]=this.createSegmentGroup(F,un,k,oe)}),new sn(Ue,Ge)}createSegments(F,q,k,oe){return q.map(Ue=>Ue.path.startsWith(":")?this.findPosParam(F,Ue,oe):this.findOrReturn(Ue,k))}findPosParam(F,q,k){const oe=k[q.path.substring(1)];if(!oe)throw new p.wOt(4001,!1);return oe}findOrReturn(F,q){let k=0;for(const oe of q){if(oe.path===F.path)return q.splice(k),oe;k++}return F}}const fi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function as(O,F,q,k,oe){const Ue=Gi(O,F,q);return Ue.matched?(k=function wo(O,F){var q;return O.providers&&!O._injector&&(O._injector=(0,p.Ol2)(O.providers,F,"Route: ".concat(O.path))),null!==(q=O._injector)&&void 0!==q?q:F}(F,k),function _s(O,F,q,k){const oe=F.canMatch;if(!oe||0===oe.length)return(0,B.of)(!0);const Ue=oe.map(Ge=>{const Mt=xr(Ge,O);return mt(function fo(O){return O&&ms(O.canMatch)}(Mt)?Mt.canMatch(F,q):(0,p.N4e)(O,()=>Mt(F,q)))});return(0,B.of)(Ue).pipe(Ho(),Ns())}(k,F,q).pipe((0,N.T)(Ge=>!0===Ge?Ue:{...fi}))):(0,B.of)(Ue)}function Gi(O,F,q){var k,oe;if("**"===F.path)return function Pe(O){return{matched:!0,parameters:O.length>0?je(O).parameters:{},consumedSegments:O,remainingSegments:[],positionalParamSegments:{}}}(q);if(""===F.path)return"full"===F.pathMatch&&(O.hasChildren()||q.length>0)?{...fi}:{matched:!0,consumedSegments:[],remainingSegments:q,parameters:{},positionalParamSegments:{}};const Ge=(F.matcher||K)(q,O,F);if(!Ge)return{...fi};const Mt={};Object.entries(null!==(k=Ge.posParams)&&void 0!==k?k:{}).forEach(([Ft,xn])=>{Mt[Ft]=xn.path});const un=Ge.consumed.length>0?{...Mt,...Ge.consumed[Ge.consumed.length-1].parameters}:Mt;return{matched:!0,consumedSegments:Ge.consumed,remainingSegments:q.slice(Ge.consumed.length),parameters:un,positionalParamSegments:null!==(oe=Ge.posParams)&&void 0!==oe?oe:{}}}function y(O,F,q,k){return q.length>0&&function Me(O,F,q){return q.some(k=>vt(O,F,k)&&Ei(k)!==R)}(O,q,k)?{segmentGroup:new sn(F,se(k,new sn(q,O.children))),slicedSegments:[]}:0===q.length&&function Ke(O,F,q){return q.some(k=>vt(O,F,k))}(O,q,k)?{segmentGroup:new sn(O.segments,x(O,q,k,O.children)),slicedSegments:q}:{segmentGroup:new sn(O.segments,O.children),slicedSegments:q}}function x(O,F,q,k){const oe={};for(const Ue of q)if(vt(O,F,Ue)&&!k[Ei(Ue)]){const Ge=new sn([],{});oe[Ei(Ue)]=Ge}return{...k,...oe}}function se(O,F){const q={};q[R]=F;for(const k of O)if(""===k.path&&Ei(k)!==R){const oe=new sn([],{});q[Ei(k)]=oe}return q}function vt(O,F,q){return(!(O.hasChildren()||F.length>0)||"full"!==q.pathMatch)&&""===q.path}class Yt{}class Tr{constructor(F,q,k,oe,Ue,Ge,Mt){this.injector=F,this.configLoader=q,this.rootComponentType=k,this.config=oe,this.urlTree=Ue,this.paramsInheritanceStrategy=Ge,this.urlSerializer=Mt,this.applyRedirects=new yi(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(F){return new p.wOt(4002,"'".concat(F.segmentGroup,"'"))}recognize(){const F=y(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(F).pipe((0,N.T)(q=>{const k=new En([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},R,this.rootComponentType,null,{}),oe=new T(k,q),Ue=new tr("",oe),Ge=function mo(O,F,q=null,k=null){return Ai(no(O),F,q,k)}(k,[],this.urlTree.queryParams,this.urlTree.fragment);return Ge.queryParams=this.urlTree.queryParams,Ue.url=this.urlSerializer.serialize(Ge),this.inheritParamsAndData(Ue._root,null),{state:Ue,tree:Ge}}))}match(F){return this.processSegmentGroup(this.injector,this.config,F,R).pipe((0,Oe.W)(k=>{if(k instanceof ns)return this.urlTree=k.urlTree,this.match(k.urlTree.root);throw k instanceof Qs?this.noMatchError(k):k}))}inheritParamsAndData(F,q){const k=F.value,oe=gn(k,q,this.paramsInheritanceStrategy);k.params=Object.freeze(oe.params),k.data=Object.freeze(oe.data),F.children.forEach(Ue=>this.inheritParamsAndData(Ue,k))}processSegmentGroup(F,q,k,oe){return 0===k.segments.length&&k.hasChildren()?this.processChildren(F,q,k):this.processSegment(F,q,k,k.segments,oe,!0).pipe((0,N.T)(Ue=>Ue instanceof T?[Ue]:[]))}processChildren(F,q,k){const oe=[];for(const Ue of Object.keys(k.children))"primary"===Ue?oe.unshift(Ue):oe.push(Ue);return(0,$.H)(oe).pipe((0,De.H)(Ue=>{const Ge=k.children[Ue],Mt=function As(O,F){const q=O.filter(k=>Ei(k)===F);return q.push(...O.filter(k=>Ei(k)!==F)),q}(q,Ue);return this.processSegmentGroup(F,Mt,Ge,Ue)}),(0,it.S)((Ue,Ge)=>(Ue.push(...Ge),Ue)),(0,Ze.U)(null),function Ye(O,F){const q=arguments.length>=2;return k=>k.pipe(O?(0,Ce.p)((oe,Ue)=>O(oe,Ue,k)):ze.D,we(1),q?(0,Ze.U)(F):(0,ye.v)(()=>new me.G))}(),(0,ue.Z)(Ue=>{if(null===Ue)return xo(k);const Ge=ur(Ue);return function _r(O){O.sort((F,q)=>F.value.outlet===R?-1:q.value.outlet===R?1:F.value.outlet.localeCompare(q.value.outlet))}(Ge),(0,B.of)(Ge)}))}processSegment(F,q,k,oe,Ue,Ge){return(0,$.H)(q).pipe((0,De.H)(Mt=>{var un;return this.processSegmentAgainstRoute(null!==(un=Mt._injector)&&void 0!==un?un:F,q,Mt,k,oe,Ue,Ge).pipe((0,Oe.W)(Ft=>{if(Ft instanceof Qs)return(0,B.of)(null);throw Ft}))}),(0,ge.$)(Mt=>!!Mt),(0,Oe.W)(Mt=>{if(ts(Mt))return function kt(O,F,q){return 0===F.length&&!O.children[q]}(k,oe,Ue)?(0,B.of)(new Yt):xo(k);throw Mt}))}processSegmentAgainstRoute(F,q,k,oe,Ue,Ge,Mt){return function St(O,F,q,k){return!!(Ei(O)===k||k!==R&&vt(F,q,O))&&Gi(F,O,q).matched}(k,oe,Ue,Ge)?void 0===k.redirectTo?this.matchSegmentAgainstRoute(F,oe,k,Ue,Ge):this.allowRedirects&&Mt?this.expandSegmentAgainstRouteUsingRedirect(F,oe,q,k,Ue,Ge):xo(oe):xo(oe)}expandSegmentAgainstRouteUsingRedirect(F,q,k,oe,Ue,Ge){const{matched:Mt,consumedSegments:un,positionalParamSegments:Ft,remainingSegments:xn}=Gi(q,oe,Ue);if(!Mt)return xo(q);oe.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const dr=this.applyRedirects.applyRedirectCommands(un,oe.redirectTo,Ft);return this.applyRedirects.lineralizeSegments(oe,dr).pipe((0,ue.Z)($i=>this.processSegment(F,k,q,$i.concat(xn),Ge,!1)))}matchSegmentAgainstRoute(F,q,k,oe,Ue){const Ge=as(q,k,oe,F);return"**"===k.path&&(q.children={}),Ge.pipe((0,W.n)(Mt=>{var un;return Mt.matched?(F=null!==(un=k._injector)&&void 0!==un?un:F,this.getChildConfig(F,k,oe).pipe((0,W.n)(({routes:Ft})=>{var xn,dr,$i;const ti=null!==(xn=k._loadedInjector)&&void 0!==xn?xn:F,{consumedSegments:Co,remainingSegments:Es,parameters:Zs}=Mt,ha=new En(Co,Zs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Ci(O){return O.data||{}}(k),Ei(k),null!==(dr=null!==($i=k.component)&&void 0!==$i?$i:k._loadedComponent)&&void 0!==dr?dr:null,k,function hi(O){return O.resolve||{}}(k)),{segmentGroup:Ma,slicedSegments:wa}=y(q,Co,Es,Ft);if(0===wa.length&&Ma.hasChildren())return this.processChildren(ti,Ft,Ma).pipe((0,N.T)(Ra=>null===Ra?null:new T(ha,Ra)));if(0===Ft.length&&0===wa.length)return(0,B.of)(new T(ha,[]));const Xu=Ei(k)===Ue;return this.processSegment(ti,Ft,Ma,wa,Xu?R:Ue,!0).pipe((0,N.T)(Ra=>new T(ha,Ra instanceof T?[Ra]:[])))}))):xo(q)}))}getChildConfig(F,q,k){return q.children?(0,B.of)({routes:q.children,injector:F}):q.loadChildren?void 0!==q._loadedRoutes?(0,B.of)({routes:q._loadedRoutes,injector:q._loadedInjector}):function Rs(O,F,q,k){const oe=F.canLoad;if(void 0===oe||0===oe.length)return(0,B.of)(!0);const Ue=oe.map(Ge=>{const Mt=xr(Ge,O);return mt(function Ws(O){return O&&ms(O.canLoad)}(Mt)?Mt.canLoad(F,q):(0,p.N4e)(O,()=>Mt(F,q)))});return(0,B.of)(Ue).pipe(Ho(),Ns())}(F,q,k).pipe((0,ue.Z)(oe=>oe?this.configLoader.loadChildren(F,q).pipe((0,He.M)(Ue=>{q._loadedRoutes=Ue.routes,q._loadedInjector=Ue.injector})):function vr(O){return(0,z.$)($s(!1,yr.GuardRejected))}())):(0,B.of)({routes:[],injector:F})}}function Zn(O){const F=O.value.routeConfig;return F&&""===F.path}function ur(O){const F=[],q=new Set;for(const k of O){if(!Zn(k)){F.push(k);continue}const oe=F.find(Ue=>k.value.routeConfig===Ue.value.routeConfig);void 0!==oe?(oe.children.push(...k.children),q.add(oe)):F.push(k)}for(const k of q){const oe=ur(k.children);F.push(new T(k.value,oe))}return F.filter(k=>!q.has(k))}function ko(O){const F=O.children.map(q=>ko(q)).flat();return[O,...F]}function oo(O){return(0,W.n)(F=>{const q=O(F);return q?(0,$.H)(q).pipe((0,N.T)(()=>F)):(0,B.of)(F)})}let so=(()=>{var O;class F{buildTitle(k){let oe,Ue=k.root;for(;void 0!==Ue;){var Ge;oe=null!==(Ge=this.getResolvedTitleForRoute(Ue))&&void 0!==Ge?Ge:oe,Ue=Ue.children.find(Mt=>Mt.outlet===R)}return oe}getResolvedTitleForRoute(k){return k.data[A]}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:()=>(0,p.WQX)(Xs),providedIn:"root"}),F})(),Xs=(()=>{var O;class F extends so{constructor(k){super(),this.title=k}updateTitle(k){const oe=this.buildTitle(k);void 0!==oe&&this.title.setTitle(oe)}}return(O=F).\u0275fac=function(k){return new(k||O)(p.KVO(st.hE))},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();const yo=new p.nKC("",{providedIn:"root",factory:()=>({})}),ji=new p.nKC("");let Js=(()=>{var O;class F{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,p.WQX)(p.Ql9)}loadComponent(k){if(this.componentLoaders.get(k))return this.componentLoaders.get(k);if(k._loadedComponent)return(0,B.of)(k._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(k);const oe=mt(k.loadComponent()).pipe((0,N.T)(wn),(0,He.M)(Ge=>{this.onLoadEndListener&&this.onLoadEndListener(k),k._loadedComponent=Ge}),(0,Fe.j)(()=>{this.componentLoaders.delete(k)})),Ue=new j(oe,()=>new I.B).pipe(w());return this.componentLoaders.set(k,Ue),Ue}loadChildren(k,oe){if(this.childrenLoaders.get(oe))return this.childrenLoaders.get(oe);if(oe._loadedRoutes)return(0,B.of)({routes:oe._loadedRoutes,injector:oe._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(oe);const Ge=function us(O,F,q,k){return mt(O.loadChildren()).pipe((0,N.T)(wn),(0,ue.Z)(oe=>oe instanceof p.Co$||Array.isArray(oe)?(0,B.of)(oe):(0,$.H)(F.compileModuleAsync(oe))),(0,N.T)(oe=>{k&&k(O);let Ue,Ge,Mt=!1;return Array.isArray(oe)?(Ge=oe,!0):(Ue=oe.create(q).injector,Ge=Ue.get(ji,[],{optional:!0,self:!0}).flat()),{routes:Ge.map(Zi),injector:Ue}}))}(oe,this.compiler,k,this.onLoadEndListener).pipe((0,Fe.j)(()=>{this.childrenLoaders.delete(oe)})),Mt=new j(Ge,()=>new I.B).pipe(w());return this.childrenLoaders.set(oe,Mt),Mt}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();function wn(O){return function Hn(O){return O&&"object"==typeof O&&"default"in O}(O)?O.default:O}let Xn=(()=>{var O;class F{}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:()=>(0,p.WQX)(Er),providedIn:"root"}),F})(),Er=(()=>{var O;class F{shouldProcessUrl(k){return!0}extract(k){return k}merge(k,oe){return k}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();const M=new p.nKC(""),ae=new p.nKC("");function Xe(O,F,q){const k=O.get(ae),oe=O.get(S.qQ);return O.get(p.SKi).runOutsideAngular(()=>{if(!oe.startViewTransition||k.skipNextTransition)return k.skipNextTransition=!1,new Promise(Ft=>setTimeout(Ft));let Ue;const Ge=new Promise(Ft=>{Ue=Ft}),Mt=oe.startViewTransition(()=>(Ue(),function ie(O){return new Promise(F=>{(0,p.mal)(F,{injector:O})})}(O))),{onViewTransitionCreated:un}=k;return un&&(0,p.N4e)(O,()=>un({transition:Mt,from:F,to:q})),Ge})}let Re=(()=>{var O;class F{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new I.B,this.transitionAbortSubject=new I.B,this.configLoader=(0,p.WQX)(Js),this.environmentInjector=(0,p.WQX)(p.uvJ),this.urlSerializer=(0,p.WQX)(On),this.rootContexts=(0,p.WQX)(rn),this.location=(0,p.WQX)(S.aZ),this.inputBindingEnabled=null!==(0,p.WQX)(Ui,{optional:!0}),this.titleStrategy=(0,p.WQX)(so),this.options=(0,p.WQX)(yo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,p.WQX)(Xn),this.createViewTransition=(0,p.WQX)(M,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,B.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Ue=>this.events.next(new jt(Ue)),this.configLoader.onLoadStartListener=Ue=>this.events.next(new dt(Ue))}complete(){var k;null===(k=this.transitions)||void 0===k||k.complete()}handleNavigationRequest(k){var oe;const Ue=++this.navigationId;null===(oe=this.transitions)||void 0===oe||oe.next({...this.transitions.value,...k,id:Ue})}setupNavigations(k,oe,Ue){return this.transitions=new ne.t({id:0,currentUrlTree:oe,currentRawUrl:oe,extractedUrl:this.urlHandlingStrategy.extract(oe),urlAfterRedirects:this.urlHandlingStrategy.extract(oe),rawUrl:oe,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Mn,restoredState:null,currentSnapshot:Ue.snapshot,targetSnapshot:null,currentRouterState:Ue,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ce.p)(Ge=>0!==Ge.id),(0,N.T)(Ge=>({...Ge,extractedUrl:this.urlHandlingStrategy.extract(Ge.rawUrl)})),(0,W.n)(Ge=>{let Mt=!1,un=!1;return(0,B.of)(Ge).pipe((0,W.n)(Ft=>{var xn;if(this.navigationId>Ge.id)return this.cancelNavigationTransition(Ge,"",yr.SupersededByNewNavigation),Y.w;this.currentTransition=Ge,this.currentNavigation={id:Ft.id,initialUrl:Ft.rawUrl,extractedUrl:Ft.extractedUrl,trigger:Ft.source,extras:Ft.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const dr=!k.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),$i=null!==(xn=Ft.extras.onSameUrlNavigation)&&void 0!==xn?xn:k.onSameUrlNavigation;if(!dr&&"reload"!==$i){const ti="";return this.events.next(new nr(Ft.id,this.urlSerializer.serialize(Ft.rawUrl),ti,Wr.IgnoredSameUrlNavigation)),Ft.resolve(null),Y.w}if(this.urlHandlingStrategy.shouldProcessUrl(Ft.rawUrl))return(0,B.of)(Ft).pipe((0,W.n)(ti=>{var Co,Es;const Zs=null===(Co=this.transitions)||void 0===Co?void 0:Co.getValue();return this.events.next(new _i(ti.id,this.urlSerializer.serialize(ti.extractedUrl),ti.source,ti.restoredState)),Zs!==(null===(Es=this.transitions)||void 0===Es?void 0:Es.getValue())?Y.w:Promise.resolve(ti)}),function pi(O,F,q,k,oe,Ue){return(0,ue.Z)(Ge=>function An(O,F,q,k,oe,Ue,Ge="emptyOnly"){return new Tr(O,F,q,k,oe,Ge,Ue).recognize()}(O,F,q,k,Ge.extractedUrl,oe,Ue).pipe((0,N.T)(({state:Mt,tree:un})=>({...Ge,targetSnapshot:Mt,urlAfterRedirects:un}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,k.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,He.M)(ti=>{Ge.targetSnapshot=ti.targetSnapshot,Ge.urlAfterRedirects=ti.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:ti.urlAfterRedirects};const Co=new di(ti.id,this.urlSerializer.serialize(ti.extractedUrl),this.urlSerializer.serialize(ti.urlAfterRedirects),ti.targetSnapshot);this.events.next(Co)}));if(dr&&this.urlHandlingStrategy.shouldProcessUrl(Ft.currentRawUrl)){const{id:ti,extractedUrl:Co,source:Es,restoredState:Zs,extras:ha}=Ft,Ma=new _i(ti,this.urlSerializer.serialize(Co),Es,Zs);this.events.next(Ma);const wa=nt(this.rootComponentType).snapshot;return this.currentTransition=Ge={...Ft,targetSnapshot:wa,urlAfterRedirects:Co,extras:{...ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Co,(0,B.of)(Ge)}{const ti="";return this.events.next(new nr(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),ti,Wr.IgnoredByUrlHandlingStrategy)),Ft.resolve(null),Y.w}}),(0,He.M)(Ft=>{const xn=new Gr(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),this.urlSerializer.serialize(Ft.urlAfterRedirects),Ft.targetSnapshot);this.events.next(xn)}),(0,N.T)(Ft=>(this.currentTransition=Ge={...Ft,guards:$o(Ft.targetSnapshot,Ft.currentSnapshot,this.rootContexts)},Ge)),function _o(O,F){return(0,ue.Z)(q=>{const{targetSnapshot:k,currentSnapshot:oe,guards:{canActivateChecks:Ue,canDeactivateChecks:Ge}}=q;return 0===Ge.length&&0===Ue.length?(0,B.of)({...q,guardsResult:!0}):function Ha(O,F,q,k){return(0,$.H)(O).pipe((0,ue.Z)(oe=>function ca(O,F,q,k,oe){const Ue=F&&F.routeConfig?F.routeConfig.canDeactivate:null;if(!Ue||0===Ue.length)return(0,B.of)(!0);const Ge=Ue.map(Mt=>{var un;const Ft=null!==(un=ss(F))&&void 0!==un?un:oe,xn=xr(Mt,Ft);return mt(function Gs(O){return O&&ms(O.canDeactivate)}(xn)?xn.canDeactivate(O,F,q,k):(0,p.N4e)(Ft,()=>xn(O,F,q,k))).pipe((0,ge.$)())});return(0,B.of)(Ge).pipe(Ho())}(oe.component,oe.route,q,F,k)),(0,ge.$)(oe=>!0!==oe,!0))}(Ge,k,oe,O).pipe((0,ue.Z)(Mt=>Mt&&function Qo(O){return"boolean"==typeof O}(Mt)?function ai(O,F,q,k){return(0,$.H)(F).pipe((0,De.H)(oe=>(0,V.x)(function zs(O,F){return null!==O&&F&&F(new Kt(O)),(0,B.of)(!0)}(oe.route.parent,k),function vs(O,F){return null!==O&&F&&F(new _t(O)),(0,B.of)(!0)}(oe.route,k),function la(O,F,q){const k=F[F.length-1],Ue=F.slice(0,F.length-1).reverse().map(Ge=>function ps(O){const F=O.routeConfig?O.routeConfig.canActivateChild:null;return F&&0!==F.length?{node:O,guards:F}:null}(Ge)).filter(Ge=>null!==Ge).map(Ge=>le(()=>{const Mt=Ge.guards.map(un=>{var Ft;const xn=null!==(Ft=ss(Ge.node))&&void 0!==Ft?Ft:q,dr=xr(un,xn);return mt(function Ms(O){return O&&ms(O.canActivateChild)}(dr)?dr.canActivateChild(k,O):(0,p.N4e)(xn,()=>dr(k,O))).pipe((0,ge.$)())});return(0,B.of)(Mt).pipe(Ho())}));return(0,B.of)(Ue).pipe(Ho())}(O,oe.path,q),function ws(O,F,q){const k=F.routeConfig?F.routeConfig.canActivate:null;if(!k||0===k.length)return(0,B.of)(!0);const oe=k.map(Ue=>le(()=>{var Ge;const Mt=null!==(Ge=ss(F))&&void 0!==Ge?Ge:q,un=xr(Ue,Mt);return mt(function Ps(O){return O&&ms(O.canActivate)}(un)?un.canActivate(F,O):(0,p.N4e)(Mt,()=>un(F,O))).pipe((0,ge.$)())}));return(0,B.of)(oe).pipe(Ho())}(O,oe.route,q))),(0,ge.$)(oe=>!0!==oe,!0))}(k,Ue,O,F):(0,B.of)(Mt)),(0,N.T)(Mt=>({...q,guardsResult:Mt})))})}(this.environmentInjector,Ft=>this.events.next(Ft)),(0,He.M)(Ft=>{if(Ge.guardsResult=Ft.guardsResult,fr(Ft.guardsResult))throw fs(0,Ft.guardsResult);const xn=new Dn(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),this.urlSerializer.serialize(Ft.urlAfterRedirects),Ft.targetSnapshot,!!Ft.guardsResult);this.events.next(xn)}),(0,Ce.p)(Ft=>!!Ft.guardsResult||(this.cancelNavigationTransition(Ft,"",yr.GuardRejected),!1)),oo(Ft=>{if(Ft.guards.canActivateChecks.length)return(0,B.of)(Ft).pipe((0,He.M)(xn=>{const dr=new si(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(dr)}),(0,W.n)(xn=>{let dr=!1;return(0,B.of)(xn).pipe(function zi(O,F){return(0,ue.Z)(q=>{const{targetSnapshot:k,guards:{canActivateChecks:oe}}=q;if(!oe.length)return(0,B.of)(q);const Ue=new Set(oe.map(un=>un.route)),Ge=new Set;for(const un of Ue)if(!Ge.has(un))for(const Ft of ko(un))Ge.add(Ft);let Mt=0;return(0,$.H)(Ge).pipe((0,De.H)(un=>Ue.has(un)?function Eo(O,F,q,k){const oe=O.routeConfig,Ue=O._resolve;return void 0!==(null==oe?void 0:oe.title)&&!Yn(oe)&&(Ue[A]=oe.title),function ui(O,F,q,k){const oe=qe(O);if(0===oe.length)return(0,B.of)({});const Ue={};return(0,$.H)(oe).pipe((0,ue.Z)(Ge=>function Li(O,F,q,k){var oe;const Ue=null!==(oe=ss(F))&&void 0!==oe?oe:k,Ge=xr(O,Ue);return mt(Ge.resolve?Ge.resolve(F,q):(0,p.N4e)(Ue,()=>Ge(F,q)))}(O[Ge],F,q,k).pipe((0,ge.$)(),(0,He.M)(Mt=>{Ue[Ge]=Mt}))),we(1),function be(O){return(0,N.T)(()=>O)}(Ue),(0,Oe.W)(Ge=>ts(Ge)?Y.w:(0,z.$)(Ge)))}(Ue,O,F,k).pipe((0,N.T)(Ge=>(O._resolvedData=Ge,O.data=gn(O,O.parent,q).resolve,null)))}(un,k,O,F):(un.data=gn(un,un.parent,O).resolve,(0,B.of)(void 0))),(0,He.M)(()=>Mt++),we(1),(0,ue.Z)(un=>Mt===Ge.size?(0,B.of)(q):Y.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,He.M)({next:()=>dr=!0,complete:()=>{dr||this.cancelNavigationTransition(xn,"",yr.NoDataFromResolver)}}))}),(0,He.M)(xn=>{const dr=new Ni(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(dr)}))}),oo(Ft=>{const xn=dr=>{var $i;const ti=[];null!==($i=dr.routeConfig)&&void 0!==$i&&$i.loadComponent&&!dr.routeConfig._loadedComponent&&ti.push(this.configLoader.loadComponent(dr.routeConfig).pipe((0,He.M)(Co=>{dr.component=Co}),(0,N.T)(()=>{})));for(const Co of dr.children)ti.push(...xn(Co));return ti};return(0,te.z)(xn(Ft.targetSnapshot.root)).pipe((0,Ze.U)(null),(0,X.s)(1))}),oo(()=>this.afterPreactivation()),(0,W.n)(()=>{var Ft;const{currentSnapshot:xn,targetSnapshot:dr}=Ge,$i=null===(Ft=this.createViewTransition)||void 0===Ft?void 0:Ft.call(this,this.environmentInjector,xn.root,dr.root);return $i?(0,$.H)($i).pipe((0,N.T)(()=>Ge)):(0,B.of)(Ge)}),(0,N.T)(Ft=>{const xn=function Oa(O,F,q){const k=is(O,F._root,q?q._root:void 0);return new Ae(k,F)}(k.routeReuseStrategy,Ft.targetSnapshot,Ft.currentRouterState);return this.currentTransition=Ge={...Ft,targetRouterState:xn},this.currentNavigation.targetRouterState=xn,Ge}),(0,He.M)(()=>{this.events.next(new Et)}),((O,F,q,k)=>(0,N.T)(oe=>(new zo(F,oe.targetRouterState,oe.currentRouterState,q,k).activate(O),oe)))(this.rootContexts,k.routeReuseStrategy,Ft=>this.events.next(Ft),this.inputBindingEnabled),(0,X.s)(1),(0,He.M)({next:Ft=>{var xn;Mt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new jr(Ft.id,this.urlSerializer.serialize(Ft.extractedUrl),this.urlSerializer.serialize(Ft.urlAfterRedirects))),null===(xn=this.titleStrategy)||void 0===xn||xn.updateTitle(Ft.targetRouterState.snapshot),Ft.resolve(!0)},complete:()=>{Mt=!0}}),(0,he.Q)(this.transitionAbortSubject.pipe((0,He.M)(Ft=>{throw Ft}))),(0,Fe.j)(()=>{var Ft;!Mt&&!un&&this.cancelNavigationTransition(Ge,"",yr.SupersededByNewNavigation),(null===(Ft=this.currentTransition)||void 0===Ft?void 0:Ft.id)===Ge.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Oe.W)(Ft=>{if(un=!0,Ks(Ft))this.events.next(new Vr(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),Ft.message,Ft.cancellationCode)),function lo(O){return Ks(O)&&fr(O.url)}(Ft)?this.events.next(new ct(Ft.url)):Ge.resolve(!1);else{var xn;this.events.next(new lr(Ge.id,this.urlSerializer.serialize(Ge.extractedUrl),Ft,null!==(xn=Ge.targetSnapshot)&&void 0!==xn?xn:void 0));try{Ge.resolve(k.errorHandler(Ft))}catch(dr){this.options.resolveNavigationPromiseOnError?Ge.resolve(!1):Ge.reject(dr)}}return Y.w}))}))}cancelNavigationTransition(k,oe,Ue){const Ge=new Vr(k.id,this.urlSerializer.serialize(k.extractedUrl),oe,Ue);this.events.next(Ge),k.resolve(!1)}isUpdatingInternalState(){var k,oe;return(null===(k=this.currentTransition)||void 0===k?void 0:k.extractedUrl.toString())!==(null===(oe=this.currentTransition)||void 0===oe?void 0:oe.currentUrlTree.toString())}isUpdatedBrowserUrl(){var k,oe;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(k=this.currentTransition)||void 0===k?void 0:k.extractedUrl.toString())&&!(null!==(oe=this.currentTransition)&&void 0!==oe&&oe.extras.skipLocationChange)}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();function lt(O){return O!==Mn}let $t=(()=>{var O;class F{}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:()=>(0,p.WQX)(rr),providedIn:"root"}),F})();class qt{shouldDetach(F){return!1}store(F,q){}shouldAttach(F){return!1}retrieve(F){return null}shouldReuseRoute(F,q){return F.routeConfig===q.routeConfig}}let rr=(()=>{var O;class F extends qt{}return(O=F).\u0275fac=(()=>{let q;return function(oe){return(q||(q=p.xGo(O)))(oe||O)}})(),O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})(),ar=(()=>{var O;class F{}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:()=>(0,p.WQX)(wr),providedIn:"root"}),F})(),wr=(()=>{var O;class F extends ar{constructor(){super(...arguments),this.location=(0,p.WQX)(S.aZ),this.urlSerializer=(0,p.WQX)(On),this.options=(0,p.WQX)(yo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,p.WQX)(Xn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Xt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=nt(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var k,oe;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(k=null===(oe=this.restoredState())||void 0===oe?void 0:oe.\u0275routerPageId)&&void 0!==k?k:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(k){return this.location.subscribe(oe=>{"popstate"===oe.type&&k(oe.url,oe.state)})}handleRouterEvent(k,oe){if(k instanceof _i)this.stateMemento=this.createStateMemento();else if(k instanceof nr)this.rawUrlTree=oe.initialUrl;else if(k instanceof di){if("eager"===this.urlUpdateStrategy&&!oe.extras.skipLocationChange){const Ue=this.urlHandlingStrategy.merge(oe.finalUrl,oe.initialUrl);this.setBrowserUrl(Ue,oe)}}else k instanceof Et?(this.currentUrlTree=oe.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(oe.finalUrl,oe.initialUrl),this.routerState=oe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(oe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,oe))):k instanceof Vr&&(k.code===yr.GuardRejected||k.code===yr.NoDataFromResolver)?this.restoreHistory(oe):k instanceof lr?this.restoreHistory(oe,!0):k instanceof jr&&(this.lastSuccessfulId=k.id,this.currentPageId=this.browserPageId)}setBrowserUrl(k,oe){const Ue=this.urlSerializer.serialize(k);if(this.location.isCurrentPathEqualTo(Ue)||oe.extras.replaceUrl){const Mt={...oe.extras.state,...this.generateNgRouterState(oe.id,this.browserPageId)};this.location.replaceState(Ue,"",Mt)}else{const Ge={...oe.extras.state,...this.generateNgRouterState(oe.id,this.browserPageId+1)};this.location.go(Ue,"",Ge)}}restoreHistory(k,oe=!1){if("computed"===this.canceledNavigationResolution){const Ge=this.currentPageId-this.browserPageId;0!==Ge?this.location.historyGo(Ge):this.currentUrlTree===k.finalUrl&&0===Ge&&(this.resetState(k),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(oe&&this.resetState(k),this.resetUrlToCurrentUrlTree())}resetState(k){var oe;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(oe=k.finalUrl)&&void 0!==oe?oe:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(k,oe){return"computed"===this.canceledNavigationResolution?{navigationId:k,\u0275routerPageId:oe}:{navigationId:k}}}return(O=F).\u0275fac=(()=>{let q;return function(oe){return(q||(q=p.xGo(O)))(oe||O)}})(),O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();var cr=function(O){return O[O.COMPLETE=0]="COMPLETE",O[O.FAILED=1]="FAILED",O[O.REDIRECTING=2]="REDIRECTING",O}(cr||{});function qr(O,F){O.events.pipe((0,Ce.p)(q=>q instanceof jr||q instanceof Vr||q instanceof lr||q instanceof nr),(0,N.T)(q=>q instanceof jr||q instanceof nr?cr.COMPLETE:q instanceof Vr&&(q.code===yr.Redirect||q.code===yr.SupersededByNewNavigation)?cr.REDIRECTING:cr.FAILED),(0,Ce.p)(q=>q!==cr.REDIRECTING),(0,X.s)(1)).subscribe(()=>{F()})}function Yr(O){throw O}const Vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Oo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Cr=(()=>{var O;class F{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var k,oe;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,p.WQX)(p.H3F),this.stateManager=(0,p.WQX)(ar),this.options=(0,p.WQX)(yo,{optional:!0})||{},this.pendingTasks=(0,p.WQX)(p.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,p.WQX)(Re),this.urlSerializer=(0,p.WQX)(On),this.location=(0,p.WQX)(S.aZ),this.urlHandlingStrategy=(0,p.WQX)(Xn),this._events=new I.B,this.errorHandler=this.options.errorHandler||Yr,this.navigated=!1,this.routeReuseStrategy=(0,p.WQX)($t),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(k=null===(oe=(0,p.WQX)(ji,{optional:!0}))||void 0===oe?void 0:oe.flat())&&void 0!==k?k:[],this.componentInputBindingEnabled=!!(0,p.WQX)(Ui,{optional:!0}),this.eventsSubscription=new ve.yU,this.isNgZoneEnabled=(0,p.WQX)(p.SKi)instanceof p.SKi&&p.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Ue=>{this.console.warn(Ue)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const k=this.navigationTransitions.events.subscribe(oe=>{try{const Ue=this.navigationTransitions.currentTransition,Ge=this.navigationTransitions.currentNavigation;if(null!==Ue&&null!==Ge)if(this.stateManager.handleRouterEvent(oe,Ge),oe instanceof Vr&&oe.code!==yr.Redirect&&oe.code!==yr.SupersededByNewNavigation)this.navigated=!0;else if(oe instanceof jr)this.navigated=!0;else if(oe instanceof ct){const Mt=this.urlHandlingStrategy.merge(oe.url,Ue.currentRawUrl),un={info:Ue.extras.info,skipLocationChange:Ue.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||lt(Ue.source)};this.scheduleNavigation(Mt,Mn,null,un,{resolve:Ue.resolve,reject:Ue.reject,promise:Ue.promise})}(function Wn(O){return!(O instanceof Et||O instanceof ct)})(oe)&&this._events.next(oe)}catch(Ue){this.navigationTransitions.transitionAbortSubject.next(Ue)}});this.eventsSubscription.add(k)}resetRootComponentType(k){this.routerState.root.component=k,this.navigationTransitions.rootComponentType=k}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Mn,this.stateManager.restoredState())}setUpLocationChangeListener(){var k;null!==(k=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==k||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((oe,Ue)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(oe,"popstate",Ue)},0)}))}navigateToSyncWithBrowser(k,oe,Ue){const Ge={replaceUrl:!0},Mt=null!=Ue&&Ue.navigationId?Ue:null;if(Ue){const Ft={...Ue};delete Ft.navigationId,delete Ft.\u0275routerPageId,0!==Object.keys(Ft).length&&(Ge.state=Ft)}const un=this.parseUrl(k);this.scheduleNavigation(un,oe,Mt,Ge)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(k){this.config=k.map(Zi),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(k,oe={}){const{relativeTo:Ue,queryParams:Ge,fragment:Mt,queryParamsHandling:un,preserveFragment:Ft}=oe,xn=Ft?this.currentUrlTree.fragment:Mt;let $i,dr=null;switch(un){case"merge":dr={...this.currentUrlTree.queryParams,...Ge};break;case"preserve":dr=this.currentUrlTree.queryParams;break;default:dr=Ge||null}null!==dr&&(dr=this.removeEmptyProps(dr));try{$i=no(Ue?Ue.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof k[0]||!k[0].startsWith("/"))&&(k=[]),$i=this.currentUrlTree.root}return Ai($i,k,dr,null!=xn?xn:null)}navigateByUrl(k,oe={skipLocationChange:!1}){const Ue=fr(k)?k:this.parseUrl(k),Ge=this.urlHandlingStrategy.merge(Ue,this.rawUrlTree);return this.scheduleNavigation(Ge,Mn,null,oe)}navigate(k,oe={skipLocationChange:!1}){return function _n(O){for(let F=0;F<O.length;F++)if(null==O[F])throw new p.wOt(4008,!1)}(k),this.navigateByUrl(this.createUrlTree(k,oe),oe)}serializeUrl(k){return this.urlSerializer.serialize(k)}parseUrl(k){try{return this.urlSerializer.parse(k)}catch{return this.urlSerializer.parse("/")}}isActive(k,oe){let Ue;if(Ue=!0===oe?{...Vi}:!1===oe?{...Oo}:oe,fr(k))return fn(this.currentUrlTree,k,Ue);const Ge=this.parseUrl(k);return fn(this.currentUrlTree,Ge,Ue)}removeEmptyProps(k){return Object.entries(k).reduce((oe,[Ue,Ge])=>(null!=Ge&&(oe[Ue]=Ge),oe),{})}scheduleNavigation(k,oe,Ue,Ge,Mt){if(this.disposed)return Promise.resolve(!1);let un,Ft,xn;Mt?(un=Mt.resolve,Ft=Mt.reject,xn=Mt.promise):xn=new Promise(($i,ti)=>{un=$i,Ft=ti});const dr=this.pendingTasks.add();return qr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(dr))}),this.navigationTransitions.handleNavigationRequest({source:oe,restoredState:Ue,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:k,extras:Ge,resolve:un,reject:Ft,promise:xn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),xn.catch($i=>Promise.reject($i))}}return(O=F).\u0275fac=function(k){return new(k||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();class ao{}let Yi=(()=>{var O;class F{constructor(k,oe,Ue,Ge,Mt){this.router=k,this.injector=Ue,this.preloadingStrategy=Ge,this.loader=Mt}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ce.p)(k=>k instanceof jr),(0,De.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(k,oe){const Ue=[];for(const Ft of oe){var Ge,Mt;Ft.providers&&!Ft._injector&&(Ft._injector=(0,p.Ol2)(Ft.providers,k,"Route: ".concat(Ft.path)));const xn=null!==(Ge=Ft._injector)&&void 0!==Ge?Ge:k,dr=null!==(Mt=Ft._loadedInjector)&&void 0!==Mt?Mt:xn;var un;(Ft.loadChildren&&!Ft._loadedRoutes&&void 0===Ft.canLoad||Ft.loadComponent&&!Ft._loadedComponent)&&Ue.push(this.preloadConfig(xn,Ft)),(Ft.children||Ft._loadedRoutes)&&Ue.push(this.processRoutes(dr,null!==(un=Ft.children)&&void 0!==un?un:Ft._loadedRoutes))}return(0,$.H)(Ue).pipe((0,Ne.U)())}preloadConfig(k,oe){return this.preloadingStrategy.preload(oe,()=>{let Ue;Ue=oe.loadChildren&&void 0===oe.canLoad?this.loader.loadChildren(k,oe):(0,B.of)(null);const Ge=Ue.pipe((0,ue.Z)(Mt=>{var un;return null===Mt?(0,B.of)(void 0):(oe._loadedRoutes=Mt.routes,oe._loadedInjector=Mt.injector,this.processRoutes(null!==(un=Mt.injector)&&void 0!==un?un:k,Mt.routes))}));if(oe.loadComponent&&!oe._loadedComponent){const Mt=this.loader.loadComponent(oe);return(0,$.H)([Ge,Mt]).pipe((0,Ne.U)())}return Ge})}}return(O=F).\u0275fac=function(k){return new(k||O)(p.KVO(Cr),p.KVO(p.Ql9),p.KVO(p.uvJ),p.KVO(ao),p.KVO(Js))},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),F})();const Ao=new p.nKC("");let pr=(()=>{var O;class F{constructor(k,oe,Ue,Ge,Mt={}){this.urlSerializer=k,this.transitions=oe,this.viewportScroller=Ue,this.zone=Ge,this.options=Mt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,p.WQX)(p.uvJ),Mt.scrollPositionRestoration||(Mt.scrollPositionRestoration="disabled"),Mt.anchorScrolling||(Mt.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(k=>{k instanceof _i?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=k.navigationTrigger,this.restoredId=k.restoredState?k.restoredState.navigationId:0):k instanceof jr?(this.lastId=k.id,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.urlAfterRedirects).fragment)):k instanceof nr&&k.code===Wr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(k,this.urlSerializer.parse(k.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(k=>{k instanceof ft&&(k.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(k.position):k.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(k.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(k,oe){var Ue=this;this.zone.runOutsideAngular((0,l.A)(function*(){yield new Promise(Ge=>{setTimeout(()=>{Ge()}),(0,p.mal)(()=>{Ge()},{injector:Ue.environmentInjector})}),Ue.zone.run(()=>{Ue.transitions.events.next(new ft(k,"popstate"===Ue.lastSource?Ue.store[Ue.restoredId]:null,oe))})}))}ngOnDestroy(){var k,oe;null===(k=this.routerEventsSubscription)||void 0===k||k.unsubscribe(),null===(oe=this.scrollEventsSubscription)||void 0===oe||oe.unsubscribe()}}return(O=F).\u0275fac=function(k){p.QTQ()},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac}),F})();function Po(O,F){return{\u0275kind:O,\u0275providers:F}}function bt(){const O=(0,p.WQX)(p.zZn);return F=>{var q,k;const oe=O.get(p.o8S);if(F!==oe.components[0])return;const Ue=O.get(Cr),Ge=O.get(on);1===O.get(Ln)&&Ue.initialNavigation(),null===(q=O.get(Xi,null,p.$GK.Optional))||void 0===q||q.setUpPreloading(),null===(k=O.get(Ao,null,p.$GK.Optional))||void 0===k||k.init(),Ue.resetRootComponentType(oe.componentTypes[0]),Ge.closed||(Ge.next(),Ge.complete(),Ge.unsubscribe())}}const on=new p.nKC("",{factory:()=>new I.B}),Ln=new p.nKC("",{providedIn:"root",factory:()=>1}),Xi=new p.nKC("");function Ls(O){return Po(0,[{provide:Xi,useExisting:Yi},{provide:ao,useExisting:O}])}function Pa(O){return Po(9,[{provide:M,useValue:Xe},{provide:ae,useValue:{skipNextTransition:!(null==O||!O.skipInitialTransition),...O}}])}const qi=new p.nKC("ROUTER_FORROOT_GUARD"),gu=[S.aZ,{provide:On,useClass:Gn},Cr,rn,{provide:Ot,useFactory:function pu(O){return O.routerState.root},deps:[Cr]},Js,[]];let fa=(()=>{var O;class F{constructor(k){}static forRoot(k,oe){return{ngModule:F,providers:[gu,[],{provide:ji,multi:!0,useValue:k},{provide:qi,useFactory:Ed,deps:[[Cr,new p.Xx1,new p.kdw]]},{provide:yo,useValue:oe||{}},null!=oe&&oe.useHash?{provide:S.hb,useClass:S.fw}:{provide:S.hb,useClass:S.Sm},{provide:Ao,useFactory:()=>{const O=(0,p.WQX)(S.Xr),F=(0,p.WQX)(p.SKi),q=(0,p.WQX)(yo),k=(0,p.WQX)(Re),oe=(0,p.WQX)(On);return q.scrollOffset&&O.setOffset(q.scrollOffset),new pr(oe,k,O,F,q)}},null!=oe&&oe.preloadingStrategy?Ls(oe.preloadingStrategy).\u0275providers:[],null!=oe&&oe.initialNavigation?yd(oe):[],null!=oe&&oe.bindToComponentInputs?Po(8,[Da,{provide:Ui,useExisting:Da}]).\u0275providers:[],null!=oe&&oe.enableViewTransitions?Pa().\u0275providers:[],[{provide:Ga,useFactory:bt},{provide:p.iLQ,multi:!0,useExisting:Ga}]]}}static forChild(k){return{ngModule:F,providers:[{provide:ji,multi:!0,useValue:k}]}}}return(O=F).\u0275fac=function(k){return new(k||O)(p.KVO(qi,8))},O.\u0275mod=p.$C({type:O}),O.\u0275inj=p.G2t({}),F})();function Ed(O){return"guarded"}function yd(O){return["disabled"===O.initialNavigation?Po(3,[{provide:p.hnV,multi:!0,useFactory:()=>{const F=(0,p.WQX)(Cr);return()=>{F.setUpLocationChangeListener()}}},{provide:Ln,useValue:2}]).\u0275providers:[],"enabledBlocking"===O.initialNavigation?Po(2,[{provide:Ln,useValue:0},{provide:p.hnV,multi:!0,deps:[p.zZn],useFactory:F=>{const q=F.get(S.hj,Promise.resolve());return()=>q.then(()=>new Promise(k=>{const oe=F.get(Cr),Ue=F.get(on);qr(oe,()=>{k(!0)}),F.get(Re).afterPreactivation=()=>(k(!0),Ue.closed?(0,B.of)(void 0):Ue),oe.initialNavigation()}))}}]).\u0275providers:[]]}const Ga=new p.nKC("")},3709:(ee,_,c)=>{"use strict";c.d(_,{En:()=>R,Vm:()=>$n,EH:()=>Oe,gp:()=>A});var l=c(7673);c(274),c(3993);var $=c(7786),B=c(1985),ne=c(1413),te=c(9974),me=c(4360),V=c(5343),le=c(983),Q=c(8810),z=c(8071);class ve{constructor(ke,Je,ot){this.kind=ke,this.value=Je,this.error=ot,this.hasValue="N"===ke}observe(ke){return pe(this,ke)}do(ke,Je,ot){const{kind:et,value:Ct,error:xt}=this;return"N"===et?null==ke?void 0:ke(Ct):"E"===et?null==Je?void 0:Je(xt):null==ot?void 0:ot()}accept(ke,Je,ot){var et;return(0,z.T)(null===(et=ke)||void 0===et?void 0:et.next)?this.observe(ke):this.do(ke,Je,ot)}toObservable(){const{kind:ke,value:Je,error:ot}=this,et="N"===ke?(0,l.of)(Je):"E"===ke?(0,Q.$)(()=>ot):"C"===ke?le.w:0;if(!et)throw new TypeError("Unexpected notification kind ".concat(ke));return et}static createNext(ke){return new ve("N",ke)}static createError(ke){return new ve("E",void 0,ke)}static createComplete(){return ve.completeNotification}}function pe(Dt,ke){var Je,ot,et;const{kind:Ct,value:xt,error:cn}=Dt;if("string"!=typeof Ct)throw new TypeError('Invalid notification, missing "kind"');"N"===Ct?null===(Je=ke.next)||void 0===Je||Je.call(ke,xt):"E"===Ct?null===(ot=ke.error)||void 0===ot||ot.call(ke,cn):null===(et=ke.complete)||void 0===et||et.call(ke)}ve.completeNotification=new ve("C");var w=c(6354),j=c(9437),I=c(5964),S=c(8750);function N(Dt,ke,Je,ot){return(0,te.N)((et,Ct)=>{let xt;ke&&"function"!=typeof ke?({duration:Je,element:xt,connector:ot}=ke):xt=ke;const cn=new Map,Vn=zr=>{cn.forEach(zr),zr(Ct)},sr=zr=>Vn(Jr=>Jr.error(zr));let Bt=0,Hr=!1;const Br=new me.H(Ct,zr=>{try{const Jr=Dt(zr);let Dr=cn.get(Jr);if(!Dr){cn.set(Jr,Dr=ot?ot():new ne.B);const Tn=function Xr(zr,Jr){const Dr=new B.c(Tn=>{Bt++;const fr=Jr.subscribe(Tn);return()=>{fr.unsubscribe(),0==--Bt&&Hr&&Br.unsubscribe()}});return Dr.key=zr,Dr}(Jr,Dr);if(Ct.next(Tn),Je){const fr=(0,me._)(Dr,()=>{Dr.complete(),null==fr||fr.unsubscribe()},void 0,void 0,()=>cn.delete(Jr));Br.add((0,S.Tg)(Je(Tn)).subscribe(fr))}}Dr.next(xt?xt(zr):zr)}catch(Jr){sr(Jr)}},()=>Vn(zr=>zr.complete()),sr,()=>cn.clear(),()=>(Hr=!0,0===Bt));et.subscribe(Br)})}var W=c(1397);function X(Dt,ke){return ke?Je=>Je.pipe(X((ot,et)=>(0,S.Tg)(Dt(ot,et)).pipe((0,w.T)((Ct,xt)=>ke(ot,Ct,et,xt))))):(0,te.N)((Je,ot)=>{let et=0,Ct=null,xt=!1;Je.subscribe((0,me._)(ot,cn=>{Ct||(Ct=(0,me._)(ot,void 0,()=>{Ct=null,xt&&ot.complete()}),(0,S.Tg)(Dt(cn,et++)).subscribe(Ct))},()=>{xt=!0,!Ct&&ot.complete()}))})}var Ce=c(6697),ue=c(4438),ge=c(7010);const De={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},He="__@ngrx/effects_create__";function Oe(Dt,ke={}){const Je=ke.functional?Dt:Dt(),ot={...De,...ke};return Object.defineProperty(Je,He,{value:ot}),Je}function ye(Dt){return Object.getPrototypeOf(Dt)}function Ye(Dt){return"function"==typeof Dt}function be(Dt){return Dt.filter(Ye)}function he(Dt,ke,Je){const ot=ye(Dt),Ct=ot&&"Object"!==ot.constructor.name?ot.constructor.name:null,xt=function we(Dt){return function it(Dt){return Object.getOwnPropertyNames(Dt).filter(ot=>!(!Dt[ot]||!Dt[ot].hasOwnProperty(He))&&Dt[ot][He].hasOwnProperty("dispatch")).map(ot=>({propertyName:ot,...Dt[ot][He]}))}(Dt)}(Dt).map(({propertyName:cn,dispatch:Vn,useEffectsErrorHandler:sr})=>{const Bt="function"==typeof Dt[cn]?Dt[cn]():Dt[cn],Hr=sr?Je(Bt,ke):Bt;return!1===Vn?Hr.pipe(function Z(){return(0,te.N)((Dt,ke)=>{Dt.subscribe((0,me._)(ke,V.l))})}()):Hr.pipe(function fe(){return(0,te.N)((Dt,ke)=>{Dt.subscribe((0,me._)(ke,Je=>{ke.next(ve.createNext(Je))},()=>{ke.next(ve.createComplete()),ke.complete()},Je=>{ke.next(ve.createError(Je)),ke.complete()}))})}()).pipe((0,w.T)(Xr=>({effect:Dt[cn],notification:Xr,propertyName:cn,sourceName:Ct,sourceInstance:Dt})))});return(0,$.h)(...xt)}function st(Dt,ke,Je=10){return Dt.pipe((0,j.W)(ot=>(ke&&ke.handleError(ot),Je<=1?Dt:st(Dt,ke,Je-1))))}let R=(()=>{var Dt;class ke extends B.c{constructor(ot){super(),ot&&(this.source=ot)}lift(ot){const et=new ke;return et.source=this,et.operator=ot,et}}return(Dt=ke).\u0275fac=function(ot){return new(ot||Dt)(ue.KVO(ge.sA))},Dt.\u0275prov=ue.jDH({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),ke})();function A(...Dt){return(0,I.p)(ke=>Dt.some(Je=>"string"==typeof Je?Je===ke.type:Je.type===ke.type))}const L=new ue.nKC("@ngrx/effects Internal Root Guard"),G=new ue.nKC("@ngrx/effects User Provided Effects"),K=new ue.nKC("@ngrx/effects Internal Root Effects"),ce=new ue.nKC("@ngrx/effects Internal Root Effects Instances"),Be=new ue.nKC("@ngrx/effects Internal Feature Effects"),qe=new ue.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),ut=new ue.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>st}),je="@ngrx/effects/init";(0,ge.VP)(je);function Xt(Dt){return sn(Dt,"ngrxOnInitEffects")}function sn(Dt,ke){return Dt&&ke in Dt&&"function"==typeof Dt[ke]}let tn=(()=>{var Dt;class ke extends ne.B{constructor(ot,et){super(),this.errorHandler=ot,this.effectsErrorHandler=et}addEffects(ot){this.next(ot)}toActions(){return this.pipe(N(ot=>function ze(Dt){return!!Dt.constructor&&"Object"!==Dt.constructor.name&&"Function"!==Dt.constructor.name}(ot)?ye(ot):ot),(0,W.Z)(ot=>ot.pipe(N(jn))),(0,W.Z)(ot=>{const et=ot.pipe(X(xt=>function Sn(Dt,ke){return Je=>{const ot=he(Je,Dt,ke);return function Lr(Dt){return sn(Dt,"ngrxOnRunEffects")}(Je)?Je.ngrxOnRunEffects(ot):ot}}(this.errorHandler,this.effectsErrorHandler)(xt)),(0,w.T)(xt=>(function Nt(Dt,ke){if("N"===Dt.notification.kind){const Je=Dt.notification.value;!function zt(Dt){return"function"!=typeof Dt&&Dt&&Dt.type&&"string"==typeof Dt.type}(Je)&&ke.handleError(new Error("Effect ".concat(function fn({propertyName:Dt,sourceInstance:ke,sourceName:Je}){const ot="function"==typeof ke[Dt];return Je?'"'.concat(Je,".").concat(String(Dt)).concat(ot?"()":"",'"'):'"'.concat(String(Dt),'()"')}(Dt)," dispatched an invalid action: ").concat(function or(Dt){try{return JSON.stringify(Dt)}catch{return Dt}}(Je))))}}(xt,this.errorHandler),xt.notification)),(0,I.p)(xt=>"N"===xt.kind&&null!=xt.value),function J(){return(0,te.N)((Dt,ke)=>{Dt.subscribe((0,me._)(ke,Je=>pe(Je,ke)))})}()),Ct=ot.pipe((0,Ce.s)(1),(0,I.p)(Xt),(0,w.T)(xt=>xt.ngrxOnInitEffects()));return(0,$.h)(et,Ct)}))}}return(Dt=ke).\u0275fac=function(ot){return new(ot||Dt)(ue.KVO(ue.zcH),ue.KVO(ut))},Dt.\u0275prov=ue.jDH({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),ke})();function jn(Dt){return function Cn(Dt){return sn(Dt,"ngrxOnIdentifyEffects")}(Dt)?Dt.ngrxOnIdentifyEffects():""}let Ht=(()=>{var Dt;class ke{get isStarted(){return!!this.effectsSubscription}constructor(ot,et){this.effectSources=ot,this.store=et,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return(Dt=ke).\u0275fac=function(ot){return new(ot||Dt)(ue.KVO(tn),ue.KVO(ge.il))},Dt.\u0275prov=ue.jDH({token:Dt,factory:Dt.\u0275fac,providedIn:"root"}),ke})(),On=(()=>{var Dt;class ke{constructor(ot,et,Ct,xt,cn,Vn,sr){this.sources=ot,et.start();for(const Bt of xt)ot.addEffects(Bt);Ct.dispatch({type:je})}addEffects(ot){this.sources.addEffects(ot)}}return(Dt=ke).\u0275fac=function(ot){return new(ot||Dt)(ue.KVO(tn),ue.KVO(Ht),ue.KVO(ge.il),ue.KVO(ce),ue.KVO(ge.wc,8),ue.KVO(ge.ae,8),ue.KVO(L,8))},Dt.\u0275mod=ue.$C({type:Dt}),Dt.\u0275inj=ue.G2t({}),ke})(),Gn=(()=>{var Dt;class ke{constructor(ot,et,Ct,xt){const cn=et.flat();for(const Vn of cn)ot.addEffects(Vn)}}return(Dt=ke).\u0275fac=function(ot){return new(ot||Dt)(ue.KVO(On),ue.KVO(qe),ue.KVO(ge.wc,8),ue.KVO(ge.ae,8))},Dt.\u0275mod=ue.$C({type:Dt}),Dt.\u0275inj=ue.G2t({}),ke})(),$n=(()=>{var Dt;class ke{static forFeature(...ot){const et=ot.flat(),Ct=be(et);return{ngModule:Gn,providers:[Ct,{provide:Be,multi:!0,useValue:et},{provide:G,multi:!0,useValue:[]},{provide:qe,multi:!0,useFactory:qn,deps:[Be,G]}]}}static forRoot(...ot){const et=ot.flat(),Ct=be(et);return{ngModule:On,providers:[Ct,{provide:K,useValue:[et]},{provide:L,useFactory:Kn},{provide:G,multi:!0,useValue:[]},{provide:ce,useFactory:qn,deps:[K,G]}]}}}return(Dt=ke).\u0275fac=function(ot){return new(ot||Dt)},Dt.\u0275mod=ue.$C({type:Dt}),Dt.\u0275inj=ue.G2t({}),ke})();function qn(Dt,ke){const Je=[];for(const ot of Dt)Je.push(...ot);for(const ot of ke)Je.push(...ot);return Je.map(ot=>function Fe(Dt){return Dt instanceof ue.nKC||Ye(Dt)}(ot)?(0,ue.WQX)(ot):ot)}function Kn(){const Dt=(0,ue.WQX)(Ht,{optional:!0,skipSelf:!0}),ke=(0,ue.WQX)(K,{self:!0});if((1!==ke.length||0!==ke[0].length)&&Dt)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},7010:(ee,_,c)=>{"use strict";c.d(_,{sA:()=>sn,il:()=>Gn,ae:()=>jt,md:()=>Kt,wc:()=>dt,VP:()=>w,UX:()=>mo,vy:()=>_t,on:()=>Ie,xk:()=>j});var l=c(4438),p=c(4412),E=c(1985),v=c(1413),U=c(6780),B=c(9687);const te=new class ne extends B.q{}(class $ extends U.R{constructor(ft,Et){super(ft,Et),this.scheduler=ft,this.work=Et}schedule(ft,Et=0){return Et>0?super.schedule(ft,Et):(this.delay=Et,this.state=ft,this.scheduler.flush(this),this)}execute(ft,Et){return Et>0||this.closed?super.execute(ft,Et):this._execute(ft,Et)}requestAsyncId(ft,Et,ct=0){return null!=ct&&ct>0||null==ct&&this.delay>0?super.requestAsyncId(ft,Et,ct):(ft.flush(this),0)}});var V=c(941),Z=c(3993),le=c(2816),Q=c(9085),z=c(6354),Y=c(3294),ve=c(9079);const pe={};function w(Te,ft){if(pe[Te]=(pe[Te]||0)+1,"function"==typeof ft)return S(Te,(...ct)=>({...ft(...ct),type:Te}));switch(ft?ft._as:"empty"){case"empty":return S(Te,()=>({type:Te}));case"props":return S(Te,ct=>({...ct,type:Te}));default:throw new Error("Unexpected config.")}}function j(){return{_as:"props",_p:void 0}}function S(Te,ft){return Object.defineProperty(ft,"type",{value:Te,writable:!1})}const ge="@ngrx/store/init";let De=(()=>{var Te;class ft extends p.t{constructor(){super({type:ge})}next(ct){if("function"==typeof ct)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof ct>"u")throw new TypeError("Actions must be objects");if(typeof ct.type>"u")throw new TypeError("Actions must have a type property");super.next(ct)}complete(){}ngOnDestroy(){super.complete()}}return(Te=ft).\u0275fac=function(ct){return new(ct||Te)},Te.\u0275prov=l.jDH({token:Te,factory:Te.\u0275fac}),ft})();const He=[De],Oe=new l.nKC("@ngrx/store Internal Root Guard"),it=new l.nKC("@ngrx/store Internal Initial State"),Ze=new l.nKC("@ngrx/store Initial State"),we=new l.nKC("@ngrx/store Reducer Factory"),ye=new l.nKC("@ngrx/store Internal Reducer Factory Provider"),ze=new l.nKC("@ngrx/store Initial Reducers"),Ye=new l.nKC("@ngrx/store Internal Initial Reducers"),be=new l.nKC("@ngrx/store Store Features"),Fe=new l.nKC("@ngrx/store Internal Store Reducers"),he=new l.nKC("@ngrx/store Internal Feature Reducers"),Ne=new l.nKC("@ngrx/store Internal Feature Configs"),st=new l.nKC("@ngrx/store Internal Store Features"),R=new l.nKC("@ngrx/store Internal Feature Reducers Token"),A=new l.nKC("@ngrx/store Feature Reducers"),L=new l.nKC("@ngrx/store User Provided Meta Reducers"),G=new l.nKC("@ngrx/store Meta Reducers"),K=new l.nKC("@ngrx/store Internal Resolved Meta Reducers"),ce=new l.nKC("@ngrx/store User Runtime Checks Config"),Be=new l.nKC("@ngrx/store Internal User Runtime Checks Config"),qe=new l.nKC("@ngrx/store Internal Runtime Checks"),ut=new l.nKC("@ngrx/store Check if Action types are unique");function Nt(Te,ft={}){const Et=Object.keys(Te),ct={};for(let Qt=0;Qt<Et.length;Qt++){const rn=Et[Qt];"function"==typeof Te[rn]&&(ct[rn]=Te[rn])}const Lt=Object.keys(ct);return function(rn,zn){rn=void 0===rn?ft:rn;let er=!1;const d={};for(let T=0;T<Lt.length;T++){const de=Lt[T],nt=rn[de],At=(0,ct[de])(nt,zn);d[de]=At,er=er||At!==nt}return er?d:rn}}function fn(...Te){return function(ft){if(0===Te.length)return ft;const Et=Te[Te.length-1];return Te.slice(0,-1).reduceRight((Lt,Qt)=>Qt(Lt),Et(ft))}}function or(Te,ft){return Array.isArray(ft)&&ft.length>0&&(Te=fn.apply(null,[...ft,Te])),(Et,ct)=>{const Lt=Te(Et);return(Qt,rn)=>Lt(Qt=void 0===Qt?ct:Qt,rn)}}new l.nKC("@ngrx/store Root Store Provider"),new l.nKC("@ngrx/store Feature State Provider");class Cn extends E.c{}class yn extends De{}let Wt=(()=>{var Te;class ft extends p.t{get currentReducers(){return this.reducers}constructor(ct,Lt,Qt,rn){super(rn(Qt,Lt)),this.dispatcher=ct,this.initialState=Lt,this.reducers=Qt,this.reducerFactory=rn}addFeature(ct){this.addFeatures([ct])}addFeatures(ct){const Lt=ct.reduce((Qt,{reducers:rn,reducerFactory:zn,metaReducers:er,initialState:d,key:T})=>{const de="function"==typeof rn?function Bn(Te){const ft=Array.isArray(Te)&&Te.length>0?fn(...Te):Et=>Et;return(Et,ct)=>(Et=ft(Et),(Lt,Qt)=>Et(Lt=void 0===Lt?ct:Lt,Qt))}(er)(rn,d):or(zn,er)(rn,d);return Qt[T]=de,Qt},{});this.addReducers(Lt)}removeFeature(ct){this.removeFeatures([ct])}removeFeatures(ct){this.removeReducers(ct.map(Lt=>Lt.key))}addReducer(ct,Lt){this.addReducers({[ct]:Lt})}addReducers(ct){this.reducers={...this.reducers,...ct},this.updateReducers(Object.keys(ct))}removeReducer(ct){this.removeReducers([ct])}removeReducers(ct){ct.forEach(Lt=>{this.reducers=function zt(Te,ft){return Object.keys(Te).filter(Et=>Et!==ft).reduce((Et,ct)=>Object.assign(Et,{[ct]:Te[ct]}),{})}(this.reducers,Lt)}),this.updateReducers(ct)}updateReducers(ct){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:ct})}ngOnDestroy(){this.complete()}}return(Te=ft).\u0275fac=function(ct){return new(ct||Te)(l.KVO(yn),l.KVO(Ze),l.KVO(ze),l.KVO(we))},Te.\u0275prov=l.jDH({token:Te,factory:Te.\u0275fac}),ft})();const Xt=[Wt,{provide:Cn,useExisting:Wt},{provide:yn,useExisting:De}];let sn=(()=>{var Te;class ft extends v.B{ngOnDestroy(){this.complete()}}return(Te=ft).\u0275fac=(()=>{let Et;return function(Lt){return(Et||(Et=l.xGo(Te)))(Lt||Te)}})(),Te.\u0275prov=l.jDH({token:Te,factory:Te.\u0275fac}),ft})();const tn=[sn];class jn extends E.c{}let Sn=(()=>{var Te;class ft extends p.t{constructor(ct,Lt,Qt,rn){super(rn);const T=ct.pipe((0,V.Q)(te)).pipe((0,Z.E)(Lt)).pipe((0,le.S)(Ht,{state:rn}));this.stateSubscription=T.subscribe(({state:de,action:Ae})=>{this.next(de),Qt.next(Ae)}),this.state=(0,ve.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return(Te=ft).INIT=ge,Te.\u0275fac=function(ct){return new(ct||Te)(l.KVO(De),l.KVO(Cn),l.KVO(sn),l.KVO(Ze))},Te.\u0275prov=l.jDH({token:Te,factory:Te.\u0275fac}),ft})();function Ht(Te={state:void 0},[ft,Et]){const{state:ct}=Te;return{state:Et(ct,ft),action:ft}}const On=[Sn,{provide:jn,useExisting:Sn}];let Gn=(()=>{var Te;class ft extends E.c{constructor(ct,Lt,Qt){super(),this.actionsObserver=Lt,this.reducerManager=Qt,this.source=ct,this.state=ct.state}select(ct,...Lt){return qn.call(null,ct,...Lt)(this)}selectSignal(ct,Lt){return(0,l.EWP)(()=>ct(this.state()),Lt)}lift(ct){const Lt=new ft(this,this.actionsObserver,this.reducerManager);return Lt.operator=ct,Lt}dispatch(ct){this.actionsObserver.next(ct)}next(ct){this.actionsObserver.next(ct)}error(ct){this.actionsObserver.error(ct)}complete(){this.actionsObserver.complete()}addReducer(ct,Lt){this.reducerManager.addReducer(ct,Lt)}removeReducer(ct){this.reducerManager.removeReducer(ct)}}return(Te=ft).\u0275fac=function(ct){return new(ct||Te)(l.KVO(jn),l.KVO(De),l.KVO(Wt))},Te.\u0275prov=l.jDH({token:Te,factory:Te.\u0275fac}),ft})();const $n=[Gn];function qn(Te,ft,...Et){return function(Lt){let Qt;if("string"==typeof Te){const rn=[ft,...Et].filter(Boolean);Qt=Lt.pipe((0,Q.E)(Te,...rn))}else{if("function"!=typeof Te)throw new TypeError("Unexpected type '".concat(typeof Te,"' in select operator,")+" expected 'string' or 'function'");Qt=Lt.pipe((0,z.T)(rn=>Te(rn,ft)))}return Qt.pipe((0,Y.F)())}}const Kn="https://ngrx.io/guide/store/configuration/runtime-checks";function Qn(Te){return void 0===Te}function Rr(Te){return null===Te}function Pn(Te){return Array.isArray(Te)}function ot(Te){return"object"==typeof Te&&null!==Te}function xt(Te){return"function"==typeof Te}let sr=!1;function Br(Te,ft){return Te===ft}function Jr(Te,ft=Br,Et=Br){let Qt,ct=null,Lt=null;return{memoized:function d(){if(void 0!==Qt)return Qt.result;if(!ct)return Lt=Te.apply(null,arguments),ct=arguments,Lt;if(!function Xr(Te,ft,Et){for(let ct=0;ct<Te.length;ct++)if(!Et(Te[ct],ft[ct]))return!0;return!1}(arguments,ct,ft))return Lt;const T=Te.apply(null,arguments);return ct=arguments,Et(Lt,T)?Lt:(Lt=T,T)},reset:function rn(){ct=null,Lt=null},setResult:function zn(T=void 0){Qt={result:T}},clearResult:function er(){Qt=void 0}}}function Tn(Te,ft,Et,ct){if(void 0===Et){const Qt=ft.map(rn=>rn(Te));return ct.memoized.apply(null,Qt)}const Lt=ft.map(Qt=>Qt(Te,Et));return ct.memoized.apply(null,[...Lt,Et])}function mo(Te){return function Dr(...Te){return function fr(Te,ft={stateFn:Tn}){return function(...Et){let ct=Et;if(Array.isArray(ct[0])){const[T,...de]=ct;ct=[...T,...de]}else 1===ct.length&&function no(Te){return!!Te&&"object"==typeof Te&&Object.values(Te).every(ft=>"function"==typeof ft)}(ct[0])&&(ct=function Ai(Te){const ft=Object.values(Te),Et=Object.keys(Te);return[...ft,(...Lt)=>Et.reduce((Qt,rn,zn)=>({...Qt,[rn]:Lt[zn]}),{})]}(ct[0]));const Lt=ct.slice(0,ct.length-1),Qt=ct[ct.length-1],rn=Lt.filter(T=>T.release&&"function"==typeof T.release),zn=Te(function(...T){return Qt.apply(null,T)}),er=Jr(function(T,de){return ft.stateFn.apply(null,[T,Lt,de,zn])});return Object.assign(er.memoized,{release:function d(){er.reset(),zn.reset(),rn.forEach(T=>T.release())},projector:zn.memoized,setResult:er.setResult,clearResult:er.clearResult})}}(Jr)(...Te)}(ft=>{const Et=ft[Te];return!function Hr(){return sr}()&&(0,l.naY)()&&!(Te in ft)&&console.warn('@ngrx/store: The feature name "'.concat(Te,'" does ')+"not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module "+"using StoreModule.forRoot('".concat(Te,"', ...) or ")+"StoreModule.forFeature('".concat(Te,"', ...). If the default ")+"state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored."),Et},ft=>ft)}function ro(Te){return Te instanceof l.nKC?(0,l.WQX)(Te):Te}function Fi(Te,ft){return ft.map((Et,ct)=>{if(Te[ct]instanceof l.nKC){const Lt=(0,l.WQX)(Te[ct]);return{key:Et.key,reducerFactory:Lt.reducerFactory?Lt.reducerFactory:Nt,metaReducers:Lt.metaReducers?Lt.metaReducers:[],initialState:Lt.initialState}}return Et})}function ni(Te){return Te.map(ft=>ft instanceof l.nKC?(0,l.WQX)(ft):ft)}function oi(Te){return"function"==typeof Te?Te():Te}function uo(Te,ft){return Te.concat(ft)}function Nn(){if((0,l.WQX)(Gn,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function gt(Te){Object.freeze(Te);const ft=xt(Te);return Object.getOwnPropertyNames(Te).forEach(Et=>{if(!Et.startsWith("\u0275")&&function Vn(Te,ft){return Object.prototype.hasOwnProperty.call(Te,ft)}(Te,Et)&&(!ft||"caller"!==Et&&"callee"!==Et&&"arguments"!==Et)){const ct=Te[Et];(ot(ct)||xt(ct))&&!Object.isFrozen(ct)&>(ct)}}),Te}function It(Te,ft=[]){return(Qn(Te)||Rr(Te))&&0===ft.length?{path:["root"],value:Te}:Object.keys(Te).reduce((ct,Lt)=>{if(ct)return ct;const Qt=Te[Lt];return function cn(Te){return xt(Te)&&Te.hasOwnProperty("\u0275cmp")}(Qt)?ct:!(Qn(Qt)||Rr(Qt)||function Je(Te){return"number"==typeof Te}(Qt)||function ke(Te){return"boolean"==typeof Te}(Qt)||function Dt(Te){return"string"==typeof Te}(Qt)||Pn(Qt))&&(function Ct(Te){if(!function et(Te){return ot(Te)&&!Pn(Te)}(Te))return!1;const ft=Object.getPrototypeOf(Te);return ft===Object.prototype||null===ft}(Qt)?It(Qt,[...ft,Lt]):{path:[...ft,Lt],value:Qt})},!1)}function Ut(Te,ft){if(!1===Te)return;const Et=Te.path.join("."),ct=new Error("Detected unserializable ".concat(ft,' at "').concat(Et,'". ').concat(Kn,"#strict").concat(ft,"serializability"));throw ct.value=Te.value,ct.unserializablePath=Et,ct}function bn(Te){return(0,l.naY)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...Te}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function mn({strictActionSerializability:Te,strictStateSerializability:ft}){return Et=>Te||ft?function wt(Te,ft){return function(Et,ct){ft.action(ct)&&Ut(It(ct),"action");const Lt=Te(Et,ct);return ft.state()&&Ut(It(Lt),"state"),Lt}}(Et,{action:ct=>Te&&!pn(ct),state:()=>ft}):Et}function Mn({strictActionImmutability:Te,strictStateImmutability:ft}){return Et=>Te||ft?function We(Te,ft){return function(Et,ct){const Lt=ft.action(ct)?gt(ct):ct,Qt=Te(Et,Lt);return ft.state()?gt(Qt):Qt}}(Et,{action:ct=>Te&&!pn(ct),state:()=>ft}):Et}function pn(Te){return Te.type.startsWith("@ngrx")}function mr({strictActionWithinNgZone:Te}){return ft=>Te?function an(Te,ft){return function(Et,ct){if(ft.action(ct)&&!l.SKi.isInAngularZone())throw new Error("Action '".concat(ct.type,"' running outside NgZone. ").concat(Kn,"#strictactionwithinngzone"));return Te(Et,ct)}}(ft,{action:Et=>Te&&!pn(Et)}):ft}function _i(Te){return[{provide:Be,useValue:Te},{provide:ce,useFactory:yr,deps:[Be]},{provide:qe,deps:[ce],useFactory:bn},{provide:G,multi:!0,deps:[qe],useFactory:Mn},{provide:G,multi:!0,deps:[qe],useFactory:mn},{provide:G,multi:!0,deps:[qe],useFactory:mr}]}function jr(){return[{provide:ut,multi:!0,deps:[qe],useFactory:Wr}]}function yr(Te){return Te}function Wr(Te){if(!Te.strictActionTypeUniqueness)return;const ft=Object.entries(pe).filter(([,Et])=>Et>1).map(([Et])=>Et);if(ft.length)throw new Error("Action types are registered more than once, ".concat(ft.map(Et=>'"'.concat(Et,'"')).join(", "),". ").concat(Kn,"#strictactiontypeuniqueness"))}function nr(Te={},ft={}){return[{provide:Oe,useFactory:Nn},{provide:it,useValue:ft.initialState},{provide:Ze,useFactory:oi,deps:[it]},{provide:Ye,useValue:Te},{provide:Fe,useExisting:Te instanceof l.nKC?Te:Ye},{provide:ze,deps:[Ye,[new l.y_5(Fe)]],useFactory:ro},{provide:L,useValue:ft.metaReducers?ft.metaReducers:[]},{provide:K,deps:[G,L],useFactory:uo},{provide:ye,useValue:ft.reducerFactory?ft.reducerFactory:Nt},{provide:we,deps:[ye,K],useFactory:or},He,Xt,tn,On,$n,_i(ft.runtimeChecks),jr()]}function Ni(Te,ft,Et={}){return[{provide:Ne,multi:!0,useValue:Te instanceof Object?{}:Et},{provide:be,multi:!0,useValue:{key:Te instanceof Object?Te.name:Te,reducerFactory:Et instanceof l.nKC||!Et.reducerFactory?Nt:Et.reducerFactory,metaReducers:Et instanceof l.nKC||!Et.metaReducers?[]:Et.metaReducers,initialState:Et instanceof l.nKC||!Et.initialState?void 0:Et.initialState}},{provide:st,deps:[Ne,be],useFactory:Fi},{provide:he,multi:!0,useValue:Te instanceof Object?Te.reducer:ft},{provide:R,multi:!0,useExisting:ft instanceof l.nKC?ft:he},{provide:A,multi:!0,deps:[he,[new l.y_5(R)]],useFactory:ni},jr()]}let dt=(()=>{var Te;class ft{constructor(ct,Lt,Qt,rn,zn,er){}}return(Te=ft).\u0275fac=function(ct){return new(ct||Te)(l.KVO(De),l.KVO(Cn),l.KVO(sn),l.KVO(Gn),l.KVO(Oe,8),l.KVO(ut,8))},Te.\u0275mod=l.$C({type:Te}),Te.\u0275inj=l.G2t({}),ft})(),jt=(()=>{var Te;class ft{constructor(ct,Lt,Qt,rn,zn){this.features=ct,this.featureReducers=Lt,this.reducerManager=Qt;const er=ct.map((d,T)=>{const Ae=Lt.shift()[T];return{...d,reducers:Ae,initialState:oi(d.initialState)}});Qt.addFeatures(er)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return(Te=ft).\u0275fac=function(ct){return new(ct||Te)(l.KVO(st),l.KVO(A),l.KVO(Wt),l.KVO(dt),l.KVO(ut,8))},Te.\u0275mod=l.$C({type:Te}),Te.\u0275inj=l.G2t({}),ft})(),Kt=(()=>{var Te;class ft{static forRoot(ct,Lt){return{ngModule:dt,providers:[...nr(ct,Lt)]}}static forFeature(ct,Lt,Qt={}){return{ngModule:jt,providers:[...Ni(ct,Lt,Qt)]}}}return(Te=ft).\u0275fac=function(ct){return new(ct||Te)},Te.\u0275mod=l.$C({type:Te}),Te.\u0275inj=l.G2t({}),ft})();function Ie(...Te){return{reducer:Te.pop(),types:Te.map(ct=>ct.type)}}function _t(Te,...ft){const Et=new Map;for(const ct of ft)for(const Lt of ct.types){const Qt=Et.get(Lt);Et.set(Lt,Qt?(zn,er)=>ct.reducer(Qt(zn,er),er):ct.reducer)}return function(ct=Te,Lt){const Qt=Et.get(Lt.type);return Qt?Qt(ct,Lt):ct}}},2356:(ee,_,c)=>{"use strict";c.d(_,{BK:()=>Mm,Fw:()=>xl});var l=c(467);function p(o){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(o)}function U(o,i,u){return(i=function v(o){var i=function E(o,i){if("object"!=p(o)||!o)return o;var u=o[Symbol.toPrimitive];if(void 0!==u){var h=u.call(o,i||"default");if("object"!=p(h))return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(o)}(o,"string");return"symbol"==p(i)?i:String(i)}(i))in o?Object.defineProperty(o,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[i]=u,o}let B,ne,te,me,V,Z,le,Q,z,Y,ve,pe,fe,w,j,I,S,N,W,X,J,Ce,ue,ge,De,He,Oe,it;var Ze=function(o,i){return(Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(u[m]=h[m])})(o,i)};function we(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function u(){this.constructor=o}Ze(o,i),o.prototype=null===i?Object.create(i):(u.prototype=i.prototype,new u)}var ye=function(){return ye=Object.assign||function(o){for(var i,u=1,h=arguments.length;u<h;u++)for(var m in i=arguments[u])Object.prototype.hasOwnProperty.call(i,m)&&(o[m]=i[m]);return o},ye.apply(this,arguments)};function ze(o,i){var u={};for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&i.indexOf(h)<0&&(u[h]=o[h]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var m=0;for(h=Object.getOwnPropertySymbols(o);m<h.length;m++)i.indexOf(h[m])<0&&Object.prototype.propertyIsEnumerable.call(o,h[m])&&(u[h[m]]=o[h[m]])}return u}function Ye(o,i,u,h){return new(u||(u=Promise))(function(D,H){function _e(tt){try{Ee(h.next(tt))}catch(pt){H(pt)}}function Ve(tt){try{Ee(h.throw(tt))}catch(pt){H(pt)}}function Ee(tt){tt.done?D(tt.value):function m(D){return D instanceof u?D:new u(function(H){H(D)})}(tt.value).then(_e,Ve)}Ee((h=h.apply(o,i||[])).next())})}function be(o,i){var h,m,D,H,u={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return H={next:_e(0),throw:_e(1),return:_e(2)},"function"==typeof Symbol&&(H[Symbol.iterator]=function(){return this}),H;function _e(Ee){return function(tt){return function Ve(Ee){if(h)throw new TypeError("Generator is already executing.");for(;H&&(H=0,Ee[0]&&(u=0)),u;)try{if(h=1,m&&(D=2&Ee[0]?m.return:Ee[0]?m.throw||((D=m.return)&&D.call(m),0):m.next)&&!(D=D.call(m,Ee[1])).done)return D;switch(m=0,D&&(Ee=[2&Ee[0],D.value]),Ee[0]){case 0:case 1:D=Ee;break;case 4:return u.label++,{value:Ee[1],done:!1};case 5:u.label++,m=Ee[1],Ee=[0];continue;case 7:Ee=u.ops.pop(),u.trys.pop();continue;default:if(!(D=(D=u.trys).length>0&&D[D.length-1])&&(6===Ee[0]||2===Ee[0])){u=0;continue}if(3===Ee[0]&&(!D||Ee[1]>D[0]&&Ee[1]<D[3])){u.label=Ee[1];break}if(6===Ee[0]&&u.label<D[1]){u.label=D[1],D=Ee;break}if(D&&u.label<D[2]){u.label=D[2],u.ops.push(Ee);break}D[2]&&u.ops.pop(),u.trys.pop();continue}Ee=i.call(o,u)}catch(tt){Ee=[6,tt],m=0}finally{h=D=0}if(5&Ee[0])throw Ee[1];return{value:Ee[0]?Ee[1]:void 0,done:!0}}([Ee,tt])}}}function Fe(o,i,u){if(u||2===arguments.length)for(var D,h=0,m=i.length;h<m;h++)(D||!(h in i))&&(D||(D=Array.prototype.slice.call(i,0,h)),D[h]=i[h]);return o.concat(D||Array.prototype.slice.call(i))}"function"==typeof SuppressedError&&SuppressedError;var he="Invariant Violation",Ne=Object.setPrototypeOf,st=void 0===Ne?function(o,i){return o.__proto__=i,o}:Ne,R=function(o){function i(u){void 0===u&&(u=he);var h=o.call(this,"number"==typeof u?he+": "+u+" (see https://github.com/apollographql/invariant-packages)":u)||this;return h.framesToPop=1,h.name=he,st(h,i.prototype),h}return we(i,o),i}(Error);function A(o,i){if(!o)throw new R(i)}var o,L=["debug","log","warn","error","silent"],G=L.indexOf("log");function K(o){return function(){if(L.indexOf(o)>=G)return(console[o]||console.log).apply(console,arguments)}}(o=A||(A={})).debug=K("debug"),o.log=K("log"),o.warn=K("warn"),o.error=K("error");var ce="3.8.1";function Be(o){try{return o()}catch{}}var qe=Be(function(){return globalThis})||Be(function(){return window})||Be(function(){return self})||Be(function(){return global})||Be(function(){return Be.constructor("return this")()}),ut=new Map;function je(o){var i=ut.get(o)||1;return ut.set(o,i+1),"".concat(o,":").concat(i,":").concat(Math.random().toString(36).slice(2))}function Nt(o){return function(i){for(var u=[],h=1;h<arguments.length;h++)u[h-1]=arguments[h];o.apply(void 0,Fe(["number"==typeof i?Bn(i):i],u,!1))}}var zt=Object.assign(function(o,i){for(var u=[],h=2;h<arguments.length;h++)u[h-2]=arguments[h];o||A(o,Bn(i,u))},{debug:Nt(A.debug),log:Nt(A.log),warn:Nt(A.warn),error:Nt(A.error)});function fn(o){for(var i=[],u=1;u<arguments.length;u++)i[u-1]=arguments[u];return new R(Bn(o,i))}var or=Symbol.for("ApolloErrorMessageHandler_"+ce);function Bn(o,i){if(void 0===i&&(i=[]),o){var u=i.map(function(h){return"string"==typeof h?h:function mt(o,i){void 0===i&&(i=0);var u=je("stringifyForDisplay");return JSON.stringify(o,function(h,m){return void 0===m?u:m},i).split(JSON.stringify(u)).join("<undefined>")}(h,2).slice(0,1e3)});return qe[or]&&qe[or](o,u)||"An error occured! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:ce,message:o,args:u})))}}function Cn(o,i){if(!o)throw new Error(i)}function Lr(o,i){if(!o)throw new Error(null!=i?i:"Unexpected invariant triggered.")}const Wt=/\r\n|[\n\r]/g;function Xt(o,i){let u=0,h=1;for(const m of o.body.matchAll(Wt)){if("number"==typeof m.index||Lr(!1),m.index>=i)break;u=m.index+m[0].length,h+=1}return{line:h,column:i+1-u}}function sn(o){return tn(o.source,Xt(o.source,o.start))}function tn(o,i){const u=o.locationOffset.column-1,h="".padStart(u)+o.body,m=i.line-1,H=i.line+(o.locationOffset.line-1),Ve=i.column+(1===i.line?u:0),Ee="".concat(o.name,":").concat(H,":").concat(Ve,"\n"),tt=h.split(/\r\n|[\n\r]/g),pt=tt[m];if(pt.length>120){const ht=Math.floor(Ve/80),Tt=Ve%80,Vt=[];for(let Jt=0;Jt<pt.length;Jt+=80)Vt.push(pt.slice(Jt,Jt+80));return Ee+jn([["".concat(H," |"),Vt[0]],...Vt.slice(1,ht+1).map(Jt=>["|",Jt]),["|","^".padStart(Tt)],["|",Vt[ht+1]]])}return Ee+jn([["".concat(H-1," |"),tt[m-1]],["".concat(H," |"),pt],["|","^".padStart(Ve)],["".concat(H+1," |"),tt[m+1]]])}function jn(o){const i=o.filter(([h,m])=>void 0!==m),u=Math.max(...i.map(([h])=>h.length));return i.map(([h,m])=>h.padStart(u)+(m?" "+m:"")).join("\n")}class Ht extends Error{constructor(i,...u){var h,m,D;const{nodes:H,source:_e,positions:Ve,path:Ee,originalError:tt,extensions:pt}=function Sn(o){const i=o[0];return null==i||"kind"in i||"length"in i?{nodes:i,source:o[1],positions:o[2],path:o[3],originalError:o[4],extensions:o[5]}:i}(u);super(i),this.name="GraphQLError",this.path=null!=Ee?Ee:void 0,this.originalError=null!=tt?tt:void 0,this.nodes=On(Array.isArray(H)?H:H?[H]:void 0);const ht=On(null===(h=this.nodes)||void 0===h?void 0:h.map(Vt=>Vt.loc).filter(Vt=>null!=Vt));this.source=null!=_e?_e:null==ht||null===(m=ht[0])||void 0===m?void 0:m.source,this.positions=null!=Ve?Ve:null==ht?void 0:ht.map(Vt=>Vt.start),this.locations=Ve&&_e?Ve.map(Vt=>Xt(_e,Vt)):null==ht?void 0:ht.map(Vt=>Xt(Vt.source,Vt.start));const Tt=function yn(o){return"object"==typeof o&&null!==o}(null==tt?void 0:tt.extensions)?null==tt?void 0:tt.extensions:void 0;this.extensions=null!==(D=null!=pt?pt:Tt)&&void 0!==D?D: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!=tt&&tt.stack?Object.defineProperty(this,"stack",{value:tt.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ht):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let i=this.message;if(this.nodes)for(const u of this.nodes)u.loc&&(i+="\n\n"+sn(u.loc));else if(this.source&&this.locations)for(const u of this.locations)i+="\n\n"+tn(this.source,u);return i}toJSON(){const i={message:this.message};return null!=this.locations&&(i.locations=this.locations),null!=this.path&&(i.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(i.extensions=this.extensions),i}}function On(o){return void 0===o||0===o.length?void 0:o}function Gn(o,i,u){return new Ht("Syntax Error: ".concat(u),{source:o,positions:[i]})}class $n{constructor(i,u,h){this.start=i.start,this.end=u.end,this.startToken=i,this.endToken=u,this.source=h}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class qn{constructor(i,u,h,m,D,H){this.kind=i,this.start=u,this.end=h,this.line=m,this.column=D,this.value=H,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 Kn={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"]},Qn=new Set(Object.keys(Kn));function Rr(o){const i=null==o?void 0:o.kind;return"string"==typeof i&&Qn.has(i)}var Pn,Dt,ke,Bt;function Je(o){return 9===o||32===o}function ot(o){return o>=48&&o<=57}function et(o){return o>=97&&o<=122||o>=65&&o<=90}function Ct(o){return et(o)||95===o}function xt(o){return et(o)||ot(o)||95===o}function cn(o){var i;let u=Number.MAX_SAFE_INTEGER,h=null,m=-1;for(let H=0;H<o.length;++H){var D;const _e=o[H],Ve=Vn(_e);Ve!==_e.length&&(h=null!==(D=h)&&void 0!==D?D:H,m=H,0!==H&&Ve<u&&(u=Ve))}return o.map((H,_e)=>0===_e?H:H.slice(u)).slice(null!==(i=h)&&void 0!==i?i:0,m+1)}function Vn(o){let i=0;for(;i<o.length&&Je(o.charCodeAt(i));)++i;return i}!function(o){o.QUERY="query",o.MUTATION="mutation",o.SUBSCRIPTION="subscription"}(Pn||(Pn={})),function(o){o.QUERY="QUERY",o.MUTATION="MUTATION",o.SUBSCRIPTION="SUBSCRIPTION",o.FIELD="FIELD",o.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",o.FRAGMENT_SPREAD="FRAGMENT_SPREAD",o.INLINE_FRAGMENT="INLINE_FRAGMENT",o.VARIABLE_DEFINITION="VARIABLE_DEFINITION",o.SCHEMA="SCHEMA",o.SCALAR="SCALAR",o.OBJECT="OBJECT",o.FIELD_DEFINITION="FIELD_DEFINITION",o.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",o.INTERFACE="INTERFACE",o.UNION="UNION",o.ENUM="ENUM",o.ENUM_VALUE="ENUM_VALUE",o.INPUT_OBJECT="INPUT_OBJECT",o.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(Dt||(Dt={})),function(o){o.NAME="Name",o.DOCUMENT="Document",o.OPERATION_DEFINITION="OperationDefinition",o.VARIABLE_DEFINITION="VariableDefinition",o.SELECTION_SET="SelectionSet",o.FIELD="Field",o.ARGUMENT="Argument",o.FRAGMENT_SPREAD="FragmentSpread",o.INLINE_FRAGMENT="InlineFragment",o.FRAGMENT_DEFINITION="FragmentDefinition",o.VARIABLE="Variable",o.INT="IntValue",o.FLOAT="FloatValue",o.STRING="StringValue",o.BOOLEAN="BooleanValue",o.NULL="NullValue",o.ENUM="EnumValue",o.LIST="ListValue",o.OBJECT="ObjectValue",o.OBJECT_FIELD="ObjectField",o.DIRECTIVE="Directive",o.NAMED_TYPE="NamedType",o.LIST_TYPE="ListType",o.NON_NULL_TYPE="NonNullType",o.SCHEMA_DEFINITION="SchemaDefinition",o.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",o.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",o.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",o.FIELD_DEFINITION="FieldDefinition",o.INPUT_VALUE_DEFINITION="InputValueDefinition",o.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",o.UNION_TYPE_DEFINITION="UnionTypeDefinition",o.ENUM_TYPE_DEFINITION="EnumTypeDefinition",o.ENUM_VALUE_DEFINITION="EnumValueDefinition",o.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",o.DIRECTIVE_DEFINITION="DirectiveDefinition",o.SCHEMA_EXTENSION="SchemaExtension",o.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",o.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",o.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",o.UNION_TYPE_EXTENSION="UnionTypeExtension",o.ENUM_TYPE_EXTENSION="EnumTypeExtension",o.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(ke||(ke={})),function(o){o.SOF="<SOF>",o.EOF="<EOF>",o.BANG="!",o.DOLLAR="$",o.AMP="&",o.PAREN_L="(",o.PAREN_R=")",o.SPREAD="...",o.COLON=":",o.EQUALS="=",o.AT="@",o.BRACKET_L="[",o.BRACKET_R="]",o.BRACE_L="{",o.PIPE="|",o.BRACE_R="}",o.NAME="Name",o.INT="Int",o.FLOAT="Float",o.STRING="String",o.BLOCK_STRING="BlockString",o.COMMENT="Comment"}(Bt||(Bt={}));class Hr{constructor(i){const u=new qn(Bt.SOF,0,0,0,0);this.source=i,this.lastToken=u,this.token=u,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let i=this.token;if(i.kind!==Bt.EOF)do{if(i.next)i=i.next;else{const u=mo(this,i.end);i.next=u,u.prev=i,i=u}}while(i.kind===Bt.COMMENT);return i}}function Xr(o){return o>=0&&o<=55295||o>=57344&&o<=1114111}function zr(o,i){return Jr(o.charCodeAt(i))&&Dr(o.charCodeAt(i+1))}function Jr(o){return o>=55296&&o<=56319}function Dr(o){return o>=56320&&o<=57343}function Tn(o,i){const u=o.source.body.codePointAt(i);if(void 0===u)return Bt.EOF;if(u>=32&&u<=126){const h=String.fromCodePoint(u);return'"'===h?"'\"'":'"'.concat(h,'"')}return"U+"+u.toString(16).toUpperCase().padStart(4,"0")}function fr(o,i,u,h,m){return new qn(i,u,h,o.line,1+u-o.lineStart,m)}function mo(o,i){const u=o.source.body,h=u.length;let m=i;for(;m<h;){const D=u.charCodeAt(m);switch(D){case 65279:case 9:case 32:case 44:++m;continue;case 10:++m,++o.line,o.lineStart=m;continue;case 13:10===u.charCodeAt(m+1)?m+=2:++m,++o.line,o.lineStart=m;continue;case 35:return no(o,m);case 33:return fr(o,Bt.BANG,m,m+1);case 36:return fr(o,Bt.DOLLAR,m,m+1);case 38:return fr(o,Bt.AMP,m,m+1);case 40:return fr(o,Bt.PAREN_L,m,m+1);case 41:return fr(o,Bt.PAREN_R,m,m+1);case 46:if(46===u.charCodeAt(m+1)&&46===u.charCodeAt(m+2))return fr(o,Bt.SPREAD,m,m+3);break;case 58:return fr(o,Bt.COLON,m,m+1);case 61:return fr(o,Bt.EQUALS,m,m+1);case 64:return fr(o,Bt.AT,m,m+1);case 91:return fr(o,Bt.BRACKET_L,m,m+1);case 93:return fr(o,Bt.BRACKET_R,m,m+1);case 123:return fr(o,Bt.BRACE_L,m,m+1);case 124:return fr(o,Bt.PIPE,m,m+1);case 125:return fr(o,Bt.BRACE_R,m,m+1);case 34:return 34===u.charCodeAt(m+1)&&34===u.charCodeAt(m+2)?uo(o,m):gr(o,m)}if(ot(D)||45===D)return Ai(o,m,D);if(Ct(D))return Nn(o,m);throw Gn(o.source,m,39===D?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Xr(D)||zr(u,m)?"Unexpected character: ".concat(Tn(o,m),"."):"Invalid character: ".concat(Tn(o,m),"."))}return fr(o,Bt.EOF,h,h)}function no(o,i){const u=o.source.body,h=u.length;let m=i+1;for(;m<h;){const D=u.charCodeAt(m);if(10===D||13===D)break;if(Xr(D))++m;else{if(!zr(u,m))break;m+=2}}return fr(o,Bt.COMMENT,i,m,u.slice(i+1,m))}function Ai(o,i,u){const h=o.source.body;let m=i,D=u,H=!1;if(45===D&&(D=h.charCodeAt(++m)),48===D){if(D=h.charCodeAt(++m),ot(D))throw Gn(o.source,m,"Invalid number, unexpected digit after 0: ".concat(Tn(o,m),"."))}else m=Pi(o,m,D),D=h.charCodeAt(m);if(46===D&&(H=!0,D=h.charCodeAt(++m),m=Pi(o,m,D),D=h.charCodeAt(m)),(69===D||101===D)&&(H=!0,D=h.charCodeAt(++m),(43===D||45===D)&&(D=h.charCodeAt(++m)),m=Pi(o,m,D),D=h.charCodeAt(m)),46===D||Ct(D))throw Gn(o.source,m,"Invalid number, expected digit but got: ".concat(Tn(o,m),"."));return fr(o,H?Bt.FLOAT:Bt.INT,i,m,h.slice(i,m))}function Pi(o,i,u){if(!ot(u))throw Gn(o.source,i,"Invalid number, expected digit but got: ".concat(Tn(o,i),"."));const h=o.source.body;let m=i+1;for(;ot(h.charCodeAt(m));)++m;return m}function gr(o,i){const u=o.source.body,h=u.length;let m=i+1,D=m,H="";for(;m<h;){const _e=u.charCodeAt(m);if(34===_e)return H+=u.slice(D,m),fr(o,Bt.STRING,i,m+1,H);if(92!==_e){if(10===_e||13===_e)break;if(Xr(_e))++m;else{if(!zr(u,m))throw Gn(o.source,m,"Invalid character within String: ".concat(Tn(o,m),"."));m+=2}}else{H+=u.slice(D,m);const Ve=117===u.charCodeAt(m+1)?123===u.charCodeAt(m+2)?vo(o,m):ro(o,m):oi(o,m);H+=Ve.value,m+=Ve.size,D=m}}throw Gn(o.source,m,"Unterminated string.")}function vo(o,i){const u=o.source.body;let h=0,m=3;for(;m<12;){const D=u.charCodeAt(i+m++);if(125===D){if(m<5||!Xr(h))break;return{value:String.fromCodePoint(h),size:m}}if(h=h<<4|ni(D),h<0)break}throw Gn(o.source,i,'Invalid Unicode escape sequence: "'.concat(u.slice(i,i+m),'".'))}function ro(o,i){const u=o.source.body,h=Fi(u,i+2);if(Xr(h))return{value:String.fromCodePoint(h),size:6};if(Jr(h)&&92===u.charCodeAt(i+6)&&117===u.charCodeAt(i+7)){const m=Fi(u,i+8);if(Dr(m))return{value:String.fromCodePoint(h,m),size:12}}throw Gn(o.source,i,'Invalid Unicode escape sequence: "'.concat(u.slice(i,i+6),'".'))}function Fi(o,i){return ni(o.charCodeAt(i))<<12|ni(o.charCodeAt(i+1))<<8|ni(o.charCodeAt(i+2))<<4|ni(o.charCodeAt(i+3))}function ni(o){return o>=48&&o<=57?o-48:o>=65&&o<=70?o-55:o>=97&&o<=102?o-87:-1}function oi(o,i){const u=o.source.body;switch(u.charCodeAt(i+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 Gn(o.source,i,'Invalid character escape sequence: "'.concat(u.slice(i,i+2),'".'))}function uo(o,i){const u=o.source.body,h=u.length;let m=o.lineStart,D=i+3,H=D,_e="";const Ve=[];for(;D<h;){const Ee=u.charCodeAt(D);if(34===Ee&&34===u.charCodeAt(D+1)&&34===u.charCodeAt(D+2)){_e+=u.slice(H,D),Ve.push(_e);const tt=fr(o,Bt.BLOCK_STRING,i,D+3,cn(Ve).join("\n"));return o.line+=Ve.length-1,o.lineStart=m,tt}if(92!==Ee||34!==u.charCodeAt(D+1)||34!==u.charCodeAt(D+2)||34!==u.charCodeAt(D+3))if(10!==Ee&&13!==Ee)if(Xr(Ee))++D;else{if(!zr(u,D))throw Gn(o.source,D,"Invalid character within String: ".concat(Tn(o,D),"."));D+=2}else _e+=u.slice(H,D),Ve.push(_e),13===Ee&&10===u.charCodeAt(D+1)?D+=2:++D,_e="",H=D,m=D;else _e+=u.slice(H,D),H=D+1,D+=4}throw Gn(o.source,D,"Unterminated string.")}function Nn(o,i){const u=o.source.body,h=u.length;let m=i+1;for(;m<h&&xt(u.charCodeAt(m));)++m;return fr(o,Bt.NAME,i,m,u.slice(i,m))}const We=10,gt=2;function wt(o){return It(o,[])}function It(o,i){switch(typeof o){case"string":return JSON.stringify(o);case"function":return o.name?"[function ".concat(o.name,"]"):"[function]";case"object":return function Ut(o,i){if(null===o)return"null";if(i.includes(o))return"[Circular]";const u=[...i,o];if(function an(o){return"function"==typeof o.toJSON}(o)){const h=o.toJSON();if(h!==o)return"string"==typeof h?h:It(h,u)}else if(Array.isArray(o))return function mn(o,i){if(0===o.length)return"[]";if(i.length>gt)return"[Array]";const u=Math.min(We,o.length),h=o.length-u,m=[];for(let D=0;D<u;++D)m.push(It(o[D],i));return 1===h?m.push("... 1 more item"):h>1&&m.push("... ".concat(h," more items")),"["+m.join(", ")+"]"}(o,u);return function bn(o,i){const u=Object.entries(o);return 0===u.length?"{}":i.length>gt?"["+function Mn(o){const i=Object.prototype.toString.call(o).replace(/^\[object /,"").replace(/]$/,"");if("Object"===i&&"function"==typeof o.constructor){const u=o.constructor.name;if("string"==typeof u&&""!==u)return u}return i}(o)+"]":"{ "+u.map(([h,m])=>h+": "+It(m,i)).join(", ")+" }"}(o,u)}(o,i);default:return String(o)}}const pn=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(o,i){return o instanceof i}:function(o,i){if(o instanceof i)return!0;if("object"==typeof o&&null!==o){var u;const h=i.prototype[Symbol.toStringTag];if(h===(Symbol.toStringTag in o?o[Symbol.toStringTag]:null===(u=o.constructor)||void 0===u?void 0:u.name)){const D=wt(o);throw new Error("Cannot use ".concat(h,' "').concat(D,'" 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 mr{constructor(i,u="GraphQL request",h={line:1,column:1}){"string"==typeof i||Cn(!1,"Body must be a string. Received: ".concat(wt(i),".")),this.body=i,this.name=u,this.locationOffset=h,this.locationOffset.line>0||Cn(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Cn(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class yr{constructor(i,u={}){const h=function _i(o){return pn(o,mr)}(i)?i:new mr(i);this._lexer=new Hr(h),this._options=u,this._tokenCounter=0}parseName(){const i=this.expectToken(Bt.NAME);return this.node(i,{kind:ke.NAME,value:i.value})}parseDocument(){return this.node(this._lexer.token,{kind:ke.DOCUMENT,definitions:this.many(Bt.SOF,this.parseDefinition,Bt.EOF)})}parseDefinition(){if(this.peek(Bt.BRACE_L))return this.parseOperationDefinition();const i=this.peekDescription(),u=i?this._lexer.lookahead():this._lexer.token;if(u.kind===Bt.NAME){switch(u.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(i)throw Gn(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(u.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(u)}parseOperationDefinition(){const i=this._lexer.token;if(this.peek(Bt.BRACE_L))return this.node(i,{kind:ke.OPERATION_DEFINITION,operation:Pn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const u=this.parseOperationType();let h;return this.peek(Bt.NAME)&&(h=this.parseName()),this.node(i,{kind:ke.OPERATION_DEFINITION,operation:u,name:h,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const i=this.expectToken(Bt.NAME);switch(i.value){case"query":return Pn.QUERY;case"mutation":return Pn.MUTATION;case"subscription":return Pn.SUBSCRIPTION}throw this.unexpected(i)}parseVariableDefinitions(){return this.optionalMany(Bt.PAREN_L,this.parseVariableDefinition,Bt.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ke.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Bt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Bt.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const i=this._lexer.token;return this.expectToken(Bt.DOLLAR),this.node(i,{kind:ke.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ke.SELECTION_SET,selections:this.many(Bt.BRACE_L,this.parseSelection,Bt.BRACE_R)})}parseSelection(){return this.peek(Bt.SPREAD)?this.parseFragment():this.parseField()}parseField(){const i=this._lexer.token,u=this.parseName();let h,m;return this.expectOptionalToken(Bt.COLON)?(h=u,m=this.parseName()):m=u,this.node(i,{kind:ke.FIELD,alias:h,name:m,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Bt.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(i){return this.optionalMany(Bt.PAREN_L,i?this.parseConstArgument:this.parseArgument,Bt.PAREN_R)}parseArgument(i=!1){const u=this._lexer.token,h=this.parseName();return this.expectToken(Bt.COLON),this.node(u,{kind:ke.ARGUMENT,name:h,value:this.parseValueLiteral(i)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const i=this._lexer.token;this.expectToken(Bt.SPREAD);const u=this.expectOptionalKeyword("on");return!u&&this.peek(Bt.NAME)?this.node(i,{kind:ke.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(i,{kind:ke.INLINE_FRAGMENT,typeCondition:u?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const i=this._lexer.token;return this.expectKeyword("fragment"),this.node(i,!0===this._options.allowLegacyFragmentVariables?{kind:ke.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:ke.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(i){const u=this._lexer.token;switch(u.kind){case Bt.BRACKET_L:return this.parseList(i);case Bt.BRACE_L:return this.parseObject(i);case Bt.INT:return this.advanceLexer(),this.node(u,{kind:ke.INT,value:u.value});case Bt.FLOAT:return this.advanceLexer(),this.node(u,{kind:ke.FLOAT,value:u.value});case Bt.STRING:case Bt.BLOCK_STRING:return this.parseStringLiteral();case Bt.NAME:switch(this.advanceLexer(),u.value){case"true":return this.node(u,{kind:ke.BOOLEAN,value:!0});case"false":return this.node(u,{kind:ke.BOOLEAN,value:!1});case"null":return this.node(u,{kind:ke.NULL});default:return this.node(u,{kind:ke.ENUM,value:u.value})}case Bt.DOLLAR:if(i){if(this.expectToken(Bt.DOLLAR),this._lexer.token.kind===Bt.NAME)throw Gn(this._lexer.source,u.start,'Unexpected variable "$'.concat(this._lexer.token.value,'" in constant value.'));throw this.unexpected(u)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const i=this._lexer.token;return this.advanceLexer(),this.node(i,{kind:ke.STRING,value:i.value,block:i.kind===Bt.BLOCK_STRING})}parseList(i){return this.node(this._lexer.token,{kind:ke.LIST,values:this.any(Bt.BRACKET_L,()=>this.parseValueLiteral(i),Bt.BRACKET_R)})}parseObject(i){return this.node(this._lexer.token,{kind:ke.OBJECT,fields:this.any(Bt.BRACE_L,()=>this.parseObjectField(i),Bt.BRACE_R)})}parseObjectField(i){const u=this._lexer.token,h=this.parseName();return this.expectToken(Bt.COLON),this.node(u,{kind:ke.OBJECT_FIELD,name:h,value:this.parseValueLiteral(i)})}parseDirectives(i){const u=[];for(;this.peek(Bt.AT);)u.push(this.parseDirective(i));return u}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(i){const u=this._lexer.token;return this.expectToken(Bt.AT),this.node(u,{kind:ke.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(i)})}parseTypeReference(){const i=this._lexer.token;let u;if(this.expectOptionalToken(Bt.BRACKET_L)){const h=this.parseTypeReference();this.expectToken(Bt.BRACKET_R),u=this.node(i,{kind:ke.LIST_TYPE,type:h})}else u=this.parseNamedType();return this.expectOptionalToken(Bt.BANG)?this.node(i,{kind:ke.NON_NULL_TYPE,type:u}):u}parseNamedType(){return this.node(this._lexer.token,{kind:ke.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Bt.STRING)||this.peek(Bt.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("schema");const h=this.parseConstDirectives(),m=this.many(Bt.BRACE_L,this.parseOperationTypeDefinition,Bt.BRACE_R);return this.node(i,{kind:ke.SCHEMA_DEFINITION,description:u,directives:h,operationTypes:m})}parseOperationTypeDefinition(){const i=this._lexer.token,u=this.parseOperationType();this.expectToken(Bt.COLON);const h=this.parseNamedType();return this.node(i,{kind:ke.OPERATION_TYPE_DEFINITION,operation:u,type:h})}parseScalarTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("scalar");const h=this.parseName(),m=this.parseConstDirectives();return this.node(i,{kind:ke.SCALAR_TYPE_DEFINITION,description:u,name:h,directives:m})}parseObjectTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("type");const h=this.parseName(),m=this.parseImplementsInterfaces(),D=this.parseConstDirectives(),H=this.parseFieldsDefinition();return this.node(i,{kind:ke.OBJECT_TYPE_DEFINITION,description:u,name:h,interfaces:m,directives:D,fields:H})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Bt.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Bt.BRACE_L,this.parseFieldDefinition,Bt.BRACE_R)}parseFieldDefinition(){const i=this._lexer.token,u=this.parseDescription(),h=this.parseName(),m=this.parseArgumentDefs();this.expectToken(Bt.COLON);const D=this.parseTypeReference(),H=this.parseConstDirectives();return this.node(i,{kind:ke.FIELD_DEFINITION,description:u,name:h,arguments:m,type:D,directives:H})}parseArgumentDefs(){return this.optionalMany(Bt.PAREN_L,this.parseInputValueDef,Bt.PAREN_R)}parseInputValueDef(){const i=this._lexer.token,u=this.parseDescription(),h=this.parseName();this.expectToken(Bt.COLON);const m=this.parseTypeReference();let D;this.expectOptionalToken(Bt.EQUALS)&&(D=this.parseConstValueLiteral());const H=this.parseConstDirectives();return this.node(i,{kind:ke.INPUT_VALUE_DEFINITION,description:u,name:h,type:m,defaultValue:D,directives:H})}parseInterfaceTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("interface");const h=this.parseName(),m=this.parseImplementsInterfaces(),D=this.parseConstDirectives(),H=this.parseFieldsDefinition();return this.node(i,{kind:ke.INTERFACE_TYPE_DEFINITION,description:u,name:h,interfaces:m,directives:D,fields:H})}parseUnionTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("union");const h=this.parseName(),m=this.parseConstDirectives(),D=this.parseUnionMemberTypes();return this.node(i,{kind:ke.UNION_TYPE_DEFINITION,description:u,name:h,directives:m,types:D})}parseUnionMemberTypes(){return this.expectOptionalToken(Bt.EQUALS)?this.delimitedMany(Bt.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("enum");const h=this.parseName(),m=this.parseConstDirectives(),D=this.parseEnumValuesDefinition();return this.node(i,{kind:ke.ENUM_TYPE_DEFINITION,description:u,name:h,directives:m,values:D})}parseEnumValuesDefinition(){return this.optionalMany(Bt.BRACE_L,this.parseEnumValueDefinition,Bt.BRACE_R)}parseEnumValueDefinition(){const i=this._lexer.token,u=this.parseDescription(),h=this.parseEnumValueName(),m=this.parseConstDirectives();return this.node(i,{kind:ke.ENUM_VALUE_DEFINITION,description:u,name:h,directives:m})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Gn(this._lexer.source,this._lexer.token.start,"".concat(Wr(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}parseInputObjectTypeDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("input");const h=this.parseName(),m=this.parseConstDirectives(),D=this.parseInputFieldsDefinition();return this.node(i,{kind:ke.INPUT_OBJECT_TYPE_DEFINITION,description:u,name:h,directives:m,fields:D})}parseInputFieldsDefinition(){return this.optionalMany(Bt.BRACE_L,this.parseInputValueDef,Bt.BRACE_R)}parseTypeSystemExtension(){const i=this._lexer.lookahead();if(i.kind===Bt.NAME)switch(i.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(i)}parseSchemaExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const u=this.parseConstDirectives(),h=this.optionalMany(Bt.BRACE_L,this.parseOperationTypeDefinition,Bt.BRACE_R);if(0===u.length&&0===h.length)throw this.unexpected();return this.node(i,{kind:ke.SCHEMA_EXTENSION,directives:u,operationTypes:h})}parseScalarTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const u=this.parseName(),h=this.parseConstDirectives();if(0===h.length)throw this.unexpected();return this.node(i,{kind:ke.SCALAR_TYPE_EXTENSION,name:u,directives:h})}parseObjectTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const u=this.parseName(),h=this.parseImplementsInterfaces(),m=this.parseConstDirectives(),D=this.parseFieldsDefinition();if(0===h.length&&0===m.length&&0===D.length)throw this.unexpected();return this.node(i,{kind:ke.OBJECT_TYPE_EXTENSION,name:u,interfaces:h,directives:m,fields:D})}parseInterfaceTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const u=this.parseName(),h=this.parseImplementsInterfaces(),m=this.parseConstDirectives(),D=this.parseFieldsDefinition();if(0===h.length&&0===m.length&&0===D.length)throw this.unexpected();return this.node(i,{kind:ke.INTERFACE_TYPE_EXTENSION,name:u,interfaces:h,directives:m,fields:D})}parseUnionTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const u=this.parseName(),h=this.parseConstDirectives(),m=this.parseUnionMemberTypes();if(0===h.length&&0===m.length)throw this.unexpected();return this.node(i,{kind:ke.UNION_TYPE_EXTENSION,name:u,directives:h,types:m})}parseEnumTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const u=this.parseName(),h=this.parseConstDirectives(),m=this.parseEnumValuesDefinition();if(0===h.length&&0===m.length)throw this.unexpected();return this.node(i,{kind:ke.ENUM_TYPE_EXTENSION,name:u,directives:h,values:m})}parseInputObjectTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const u=this.parseName(),h=this.parseConstDirectives(),m=this.parseInputFieldsDefinition();if(0===h.length&&0===m.length)throw this.unexpected();return this.node(i,{kind:ke.INPUT_OBJECT_TYPE_EXTENSION,name:u,directives:h,fields:m})}parseDirectiveDefinition(){const i=this._lexer.token,u=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Bt.AT);const h=this.parseName(),m=this.parseArgumentDefs(),D=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const H=this.parseDirectiveLocations();return this.node(i,{kind:ke.DIRECTIVE_DEFINITION,description:u,name:h,arguments:m,repeatable:D,locations:H})}parseDirectiveLocations(){return this.delimitedMany(Bt.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const i=this._lexer.token,u=this.parseName();if(Object.prototype.hasOwnProperty.call(Dt,u.value))return u;throw this.unexpected(i)}node(i,u){return!0!==this._options.noLocation&&(u.loc=new $n(i,this._lexer.lastToken,this._lexer.source)),u}peek(i){return this._lexer.token.kind===i}expectToken(i){const u=this._lexer.token;if(u.kind===i)return this.advanceLexer(),u;throw Gn(this._lexer.source,u.start,"Expected ".concat(Vr(i),", found ").concat(Wr(u),"."))}expectOptionalToken(i){return this._lexer.token.kind===i&&(this.advanceLexer(),!0)}expectKeyword(i){const u=this._lexer.token;if(u.kind!==Bt.NAME||u.value!==i)throw Gn(this._lexer.source,u.start,'Expected "'.concat(i,'", found ').concat(Wr(u),"."));this.advanceLexer()}expectOptionalKeyword(i){const u=this._lexer.token;return u.kind===Bt.NAME&&u.value===i&&(this.advanceLexer(),!0)}unexpected(i){const u=null!=i?i:this._lexer.token;return Gn(this._lexer.source,u.start,"Unexpected ".concat(Wr(u),"."))}any(i,u,h){this.expectToken(i);const m=[];for(;!this.expectOptionalToken(h);)m.push(u.call(this));return m}optionalMany(i,u,h){if(this.expectOptionalToken(i)){const m=[];do{m.push(u.call(this))}while(!this.expectOptionalToken(h));return m}return[]}many(i,u,h){this.expectToken(i);const m=[];do{m.push(u.call(this))}while(!this.expectOptionalToken(h));return m}delimitedMany(i,u){this.expectOptionalToken(i);const h=[];do{h.push(u.call(this))}while(this.expectOptionalToken(i));return h}advanceLexer(){const{maxTokens:i}=this._options,u=this._lexer.advance();if(void 0!==i&&u.kind!==Bt.EOF&&(++this._tokenCounter,this._tokenCounter>i))throw Gn(this._lexer.source,u.start,"Document contains more that ".concat(i," tokens. Parsing aborted."))}}function Wr(o){const i=o.value;return Vr(o.kind)+(null!=i?' "'.concat(i,'"'):"")}function Vr(o){return function Br(o){return o===Bt.BANG||o===Bt.DOLLAR||o===Bt.AMP||o===Bt.PAREN_L||o===Bt.PAREN_R||o===Bt.SPREAD||o===Bt.COLON||o===Bt.EQUALS||o===Bt.AT||o===Bt.BRACKET_L||o===Bt.BRACKET_R||o===Bt.BRACE_L||o===Bt.PIPE||o===Bt.BRACE_R}(o)?'"'.concat(o,'"'):o}const lr=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function di(o){return Gr[o.charCodeAt(0)]}const Gr=["\\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"],Dn=Object.freeze({});function si(o,i,u=Kn){const h=new Map;for(const Rt of Object.values(ke))h.set(Rt,Ni(i,Rt));let m,tt,pt,D=Array.isArray(o),H=[o],_e=-1,Ve=[],Ee=o;const ht=[],Tt=[];do{_e++;const Rt=_e===H.length,dn=Rt&&0!==Ve.length;if(Rt){if(tt=0===Tt.length?void 0:ht[ht.length-1],Ee=pt,pt=Tt.pop(),dn)if(D){Ee=Ee.slice();let Rn=0;for(const[kn,Un]of Ve){const Ir=kn-Rn;null===Un?(Ee.splice(Ir,1),Rn++):Ee[Ir]=Un}}else{Ee=Object.defineProperties({},Object.getOwnPropertyDescriptors(Ee));for(const[Rn,kn]of Ve)Ee[Rn]=kn}_e=m.index,H=m.keys,Ve=m.edits,D=m.inArray,m=m.prev}else if(pt){if(tt=D?_e:H[_e],Ee=pt[tt],null==Ee)continue;ht.push(tt)}let nn;if(!Array.isArray(Ee)){var Vt,Jt;Rr(Ee)||Cn(!1,"Invalid AST Node: ".concat(wt(Ee),"."));const Rn=Rt?null===(Vt=h.get(Ee.kind))||void 0===Vt?void 0:Vt.leave:null===(Jt=h.get(Ee.kind))||void 0===Jt?void 0:Jt.enter;if(nn=null==Rn?void 0:Rn.call(i,Ee,tt,pt,ht,Tt),nn===Dn)break;if(!1===nn){if(!Rt){ht.pop();continue}}else if(void 0!==nn&&(Ve.push([tt,nn]),!Rt)){if(!Rr(nn)){ht.pop();continue}Ee=nn}}var ln;void 0===nn&&dn&&Ve.push([tt,Ee]),Rt?ht.pop():(m={inArray:D,index:_e,keys:H,edits:Ve,prev:m},D=Array.isArray(Ee),H=D?Ee:null!==(ln=u[Ee.kind])&&void 0!==ln?ln:[],_e=-1,Ve=[],pt&&Tt.push(pt),pt=Ee)}while(void 0!==m);return 0!==Ve.length?Ve[Ve.length-1][1]:o}function Ni(o,i){const u=o[i];return"object"==typeof u?u:"function"==typeof u?{enter:u,leave:void 0}:{enter:o.enter,leave:o.leave}}const Kt={Name:{leave:o=>o.value},Variable:{leave:o=>"$"+o.name},Document:{leave:o=>Ie(o.definitions,"\n\n")},OperationDefinition:{leave(o){const i=Te("(",Ie(o.variableDefinitions,", "),")"),u=Ie([o.operation,Ie([o.name,i]),Ie(o.directives," ")]," ");return("query"===u?"":u+" ")+o.selectionSet}},VariableDefinition:{leave:({variable:o,type:i,defaultValue:u,directives:h})=>o+": "+i+Te(" = ",u)+Te(" ",Ie(h," "))},SelectionSet:{leave:({selections:o})=>_t(o)},Field:{leave({alias:o,name:i,arguments:u,directives:h,selectionSet:m}){const D=Te("",o,": ")+i;let H=D+Te("(",Ie(u,", "),")");return H.length>80&&(H=D+Te("(\n",ft(Ie(u,"\n")),"\n)")),Ie([H,Ie(h," "),m]," ")}},Argument:{leave:({name:o,value:i})=>o+": "+i},FragmentSpread:{leave:({name:o,directives:i})=>"..."+o+Te(" ",Ie(i," "))},InlineFragment:{leave:({typeCondition:o,directives:i,selectionSet:u})=>Ie(["...",Te("on ",o),Ie(i," "),u]," ")},FragmentDefinition:{leave:({name:o,typeCondition:i,variableDefinitions:u,directives:h,selectionSet:m})=>"fragment ".concat(o).concat(Te("(",Ie(u,", "),")")," on ").concat(i," ").concat(Te("",Ie(h," ")," "))+m},IntValue:{leave:({value:o})=>o},FloatValue:{leave:({value:o})=>o},StringValue:{leave:({value:o,block:i})=>i?function sr(o,i){const u=o.replace(/"""/g,'\\"""'),h=u.split(/\r\n|[\n\r]/g),m=1===h.length,D=h.length>1&&h.slice(1).every(Tt=>0===Tt.length||Je(Tt.charCodeAt(0))),H=u.endsWith('\\"""'),_e=o.endsWith('"')&&!H,Ve=o.endsWith("\\"),Ee=_e||Ve,tt=!(null!=i&&i.minimize)&&(!m||o.length>70||Ee||D||H);let pt="";const ht=m&&Je(o.charCodeAt(0));return(tt&&!ht||D)&&(pt+="\n"),pt+=u,(tt||Ee)&&(pt+="\n"),'"""'+pt+'"""'}(o):function nr(o){return'"'.concat(o.replace(lr,di),'"')}(o)},BooleanValue:{leave:({value:o})=>o?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:o})=>o},ListValue:{leave:({values:o})=>"["+Ie(o,", ")+"]"},ObjectValue:{leave:({fields:o})=>"{"+Ie(o,", ")+"}"},ObjectField:{leave:({name:o,value:i})=>o+": "+i},Directive:{leave:({name:o,arguments:i})=>"@"+o+Te("(",Ie(i,", "),")")},NamedType:{leave:({name:o})=>o},ListType:{leave:({type:o})=>"["+o+"]"},NonNullType:{leave:({type:o})=>o+"!"},SchemaDefinition:{leave:({description:o,directives:i,operationTypes:u})=>Te("",o,"\n")+Ie(["schema",Ie(i," "),_t(u)]," ")},OperationTypeDefinition:{leave:({operation:o,type:i})=>o+": "+i},ScalarTypeDefinition:{leave:({description:o,name:i,directives:u})=>Te("",o,"\n")+Ie(["scalar",i,Ie(u," ")]," ")},ObjectTypeDefinition:{leave:({description:o,name:i,interfaces:u,directives:h,fields:m})=>Te("",o,"\n")+Ie(["type",i,Te("implements ",Ie(u," & ")),Ie(h," "),_t(m)]," ")},FieldDefinition:{leave:({description:o,name:i,arguments:u,type:h,directives:m})=>Te("",o,"\n")+i+(Et(u)?Te("(\n",ft(Ie(u,"\n")),"\n)"):Te("(",Ie(u,", "),")"))+": "+h+Te(" ",Ie(m," "))},InputValueDefinition:{leave:({description:o,name:i,type:u,defaultValue:h,directives:m})=>Te("",o,"\n")+Ie([i+": "+u,Te("= ",h),Ie(m," ")]," ")},InterfaceTypeDefinition:{leave:({description:o,name:i,interfaces:u,directives:h,fields:m})=>Te("",o,"\n")+Ie(["interface",i,Te("implements ",Ie(u," & ")),Ie(h," "),_t(m)]," ")},UnionTypeDefinition:{leave:({description:o,name:i,directives:u,types:h})=>Te("",o,"\n")+Ie(["union",i,Ie(u," "),Te("= ",Ie(h," | "))]," ")},EnumTypeDefinition:{leave:({description:o,name:i,directives:u,values:h})=>Te("",o,"\n")+Ie(["enum",i,Ie(u," "),_t(h)]," ")},EnumValueDefinition:{leave:({description:o,name:i,directives:u})=>Te("",o,"\n")+Ie([i,Ie(u," ")]," ")},InputObjectTypeDefinition:{leave:({description:o,name:i,directives:u,fields:h})=>Te("",o,"\n")+Ie(["input",i,Ie(u," "),_t(h)]," ")},DirectiveDefinition:{leave:({description:o,name:i,arguments:u,repeatable:h,locations:m})=>Te("",o,"\n")+"directive @"+i+(Et(u)?Te("(\n",ft(Ie(u,"\n")),"\n)"):Te("(",Ie(u,", "),")"))+(h?" repeatable":"")+" on "+Ie(m," | ")},SchemaExtension:{leave:({directives:o,operationTypes:i})=>Ie(["extend schema",Ie(o," "),_t(i)]," ")},ScalarTypeExtension:{leave:({name:o,directives:i})=>Ie(["extend scalar",o,Ie(i," ")]," ")},ObjectTypeExtension:{leave:({name:o,interfaces:i,directives:u,fields:h})=>Ie(["extend type",o,Te("implements ",Ie(i," & ")),Ie(u," "),_t(h)]," ")},InterfaceTypeExtension:{leave:({name:o,interfaces:i,directives:u,fields:h})=>Ie(["extend interface",o,Te("implements ",Ie(i," & ")),Ie(u," "),_t(h)]," ")},UnionTypeExtension:{leave:({name:o,directives:i,types:u})=>Ie(["extend union",o,Ie(i," "),Te("= ",Ie(u," | "))]," ")},EnumTypeExtension:{leave:({name:o,directives:i,values:u})=>Ie(["extend enum",o,Ie(i," "),_t(u)]," ")},InputObjectTypeExtension:{leave:({name:o,directives:i,fields:u})=>Ie(["extend input",o,Ie(i," "),_t(u)]," ")}};function Ie(o,i=""){var u;return null!==(u=null==o?void 0:o.filter(h=>h).join(i))&&void 0!==u?u:""}function _t(o){return Te("{\n",ft(Ie(o,"\n")),"\n}")}function Te(o,i,u=""){return null!=i&&""!==i?o+i+u:""}function ft(o){return Te(" ",o.replace(/\n/g,"\n "))}function Et(o){var i;return null!==(i=null==o?void 0:o.some(u=>u.includes("\n")))&&void 0!==i&&i}function ct(o){return o.kind===ke.FIELD||o.kind===ke.FRAGMENT_SPREAD||o.kind===ke.INLINE_FRAGMENT}function Lt(o,i){var u=o.directives;return!u||!u.length||function er(o){var i=[];return o&&o.length&&o.forEach(function(u){if(function zn(o){var i=o.name.value;return"skip"===i||"include"===i}(u)){var h=u.arguments,m=u.name.value;zt(h&&1===h.length,65,m);var D=h[0];zt(D.name&&"if"===D.name.value,66,m);var H=D.value;zt(H&&("Variable"===H.kind||"BooleanValue"===H.kind),67,m),i.push({directive:u,ifArgument:D})}}),i}(u).every(function(h){var m=h.directive,D=h.ifArgument,H=!1;return"Variable"===D.value.kind?zt(void 0!==(H=i&&i[D.value.name.value]),64,m.name.value):H=D.value.value,"skip"===m.name.value?!H:H})}function Qt(o,i,u){var h=new Set(o),m=h.size;return si(i,{Directive:function(D){if(h.delete(D.name.value)&&(!u||!h.size))return Dn}}),u?!h.size:h.size<m}function rn(o){return o&&Qt(["client","export"],o,!0)}const d=()=>Object.create(null),{forEach:T,slice:de}=Array.prototype,{hasOwnProperty:Ae}=Object.prototype;class nt{constructor(i=!0,u=d){this.weakness=i,this.makeData=u}lookup(...i){return this.lookupArray(i)}lookupArray(i){let u=this;return T.call(i,h=>u=u.getChildTrie(h)),Ae.call(u,"data")?u.data:u.data=this.makeData(de.call(i))}peek(...i){return this.peekArray(i)}peekArray(i){let u=this;for(let h=0,m=i.length;u&&h<m;++h){const D=this.weakness&&At(i[h])?u.weak:u.strong;u=D&&D.get(i[h])}return u&&u.data}getChildTrie(i){const u=this.weakness&&At(i)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let h=u.get(i);return h||u.set(i,h=new nt(this.weakness,this.makeData)),h}}function At(o){switch(typeof o){case"object":if(null===o)break;case"function":return!0}return!1}var Ot="function"==typeof WeakMap&&"ReactNative"!==Be(function(){return navigator.product}),gn="function"==typeof WeakSet,En="function"==typeof Symbol&&"function"==typeof Symbol.for,tr=En&&Symbol.asyncIterator;function In(o){return null!==o&&"object"==typeof o}function Mr(o,i){var u=i,h=[];return o.definitions.forEach(function(D){if("OperationDefinition"===D.kind)throw fn(68,D.operation,D.name?" named '".concat(D.name.value,"'"):"");"FragmentDefinition"===D.kind&&h.push(D)}),typeof u>"u"&&(zt(1===h.length,69,h.length),u=h[0].name.value),ye(ye({},o),{definitions:Fe([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:u}}]}}],o.definitions,!0)})}function hr(o){void 0===o&&(o=[]);var i={};return o.forEach(function(u){i[u.name.value]=u}),i}function Hi(o,i){switch(o.kind){case"InlineFragment":return o;case"FragmentSpread":var u=o.name.value;if("function"==typeof i)return i(u);var h=i&&i[u];return zt(h,70,u),h||null;default:return null}}function Yn(o){return{__ref:String(o)}}function Pr(o){return!(!o||"object"!=typeof o||"string"!=typeof o.__ref)}function lo(o,i,u,h){if(function Oa(o){return"IntValue"===o.kind}(u)||function is(o){return"FloatValue"===o.kind}(u))o[i.value]=Number(u.value);else if(function Da(o){return"BooleanValue"===o.kind}(u)||function Ui(o){return"StringValue"===o.kind}(u))o[i.value]=u.value;else if(function Os(o){return"ObjectValue"===o.kind}(u)){var m={};u.fields.map(function(H){return lo(m,H.name,H.value,h)}),o[i.value]=m}else if(function Vs(o){return"Variable"===o.kind}(u))o[i.value]=(h||{})[u.name.value];else if(function Aa(o){return"ListValue"===o.kind}(u))o[i.value]=u.values.map(function(H){var _e={};return lo(_e,i,H,h),_e[i.value]});else if(function fs(o){return"EnumValue"===o.kind}(u))o[i.value]=u.value;else{if(!function $s(o){return"NullValue"===o.kind}(u))throw fn(79,i.value,u.kind);o[i.value]=null}}Be(function(){return window.document.createElement}),Be(function(){return navigator.userAgent.indexOf("jsdom")>=0});var Wi=["connection","include","skip","client","rest","export","nonreactive"],wo=Object.assign(function(o,i,u){if(i&&u&&u.connection&&u.connection.key){if(u.connection.filter&&u.connection.filter.length>0){var h=u.connection.filter?u.connection.filter:[];h.sort();var m={};return h.forEach(function(_e){m[_e]=i[_e]}),"".concat(u.connection.key,"(").concat(es(m),")")}return u.connection.key}var D=o;if(i){var H=es(i);D+="(".concat(H,")")}return u&&Object.keys(u).forEach(function(_e){-1===Wi.indexOf(_e)&&(u[_e]&&Object.keys(u[_e]).length?D+="@".concat(_e,"(").concat(es(u[_e]),")"):D+="@".concat(_e))}),D},{setStringify:function(o){var i=es;return es=o,i}}),es=function(o){return JSON.stringify(o,os)};function os(o,i){return In(i)&&!Array.isArray(i)&&(i=Object.keys(i).sort().reduce(function(u,h){return u[h]=i[h],u},{})),i}function hs(o,i){if(o.arguments&&o.arguments.length){var u={};return o.arguments.forEach(function(h){return lo(u,h.name,h.value,i)}),u}return null}function Do(o){return o.alias?o.alias.value:o.name.value}function ua(o,i,u){for(var h,m=0,D=i.selections;m<D.length;m++)if(Ro(H=D[m])){if("__typename"===H.name.value)return o[Do(H)]}else h?h.push(H):h=[H];if("string"==typeof o.__typename)return o.__typename;if(h)for(var _e=0,Ve=h;_e<Ve.length;_e++){var H,Ee=ua(o,Hi(H=Ve[_e],u).selectionSet,u);if("string"==typeof Ee)return Ee}}function Ro(o){return"Field"===o.kind}function Zr(o){zt(o&&"Document"===o.kind,71);var i=o.definitions.filter(function(u){return"FragmentDefinition"!==u.kind}).map(function(u){if("OperationDefinition"!==u.kind)throw fn(72,u.kind);return u});return zt(i.length<=1,73,i.length),o}function Zi(o){return Zr(o),o.definitions.filter(function(i){return"OperationDefinition"===i.kind})[0]}function Ei(o){return o.definitions.filter(function(i){return"OperationDefinition"===i.kind&&!!i.name}).map(function(i){return i.name.value})[0]||null}function As(o){return o.definitions.filter(function(i){return"FragmentDefinition"===i.kind})}function Or(o){Zr(o);for(var i,u=0,h=o.definitions;u<h.length;u++){var m=h[u];if("OperationDefinition"===m.kind){var D=m.operation;if("query"===D||"mutation"===D||"subscription"===D)return m}"FragmentDefinition"===m.kind&&!i&&(i=m)}if(i)return i;throw fn(78)}function zo(o){var i=Object.create(null),u=o&&o.variableDefinitions;return u&&u.length&&u.forEach(function(h){h.defaultValue&&lo(i,h.variable.name,h.defaultValue)}),i}function Hs(o){return o}var Lo=function(){function o(i,u){void 0===u&&(u=Object.create(null)),this.resultCache=gn?new WeakSet:new Set,this.transform=i,u.getCacheKey&&(this.getCacheKey=u.getCacheKey),!1!==u.cache&&(this.stableCacheKeys=new nt(Ot,function(h){return{key:h}}))}return o.prototype.getCacheKey=function(i){return[i]},o.identity=function(){return new o(Hs,{cache:!1})},o.split=function(i,u,h){return void 0===h&&(h=o.identity()),new o(function(m){return(i(m)?u:h).transformDocument(m)},{cache:!1})},o.prototype.transformDocument=function(i){if(this.resultCache.has(i))return i;var u=this.getStableCacheEntry(i);if(u&&u.value)return u.value;Zr(i);var h=this.transform(i);return this.resultCache.add(h),u&&(u.value=h),h},o.prototype.concat=function(i){var u=this;return new o(function(h){return i.transformDocument(u.transformDocument(h))},{cache:!1})},o.prototype.getStableCacheEntry=function(i){if(this.stableCacheKeys){var u=this.getCacheKey(i);if(u)return zt(Array.isArray(u),63),this.stableCacheKeys.lookupArray(u)}},o}(),$o=Ot?new WeakMap:void 0,ps=function(o){var i;return(i=null==$o?void 0:$o.get(o))||(i=function dt(o){return si(o,Kt)}(o),null!=$o&&$o.set(o,i)),i},xr=Array.isArray;function mi(o){return Array.isArray(o)&&o.length>0}var co={kind:ke.FIELD,name:{kind:ke.NAME,value:"__typename"}};function Ko(o,i){return!o||o.selectionSet.selections.every(function(u){return u.kind===ke.FRAGMENT_SPREAD&&Ko(i[u.name.value],i)})}function gs(o){return Ko(Zi(o)||function No(o){zt("Document"===o.kind,75),zt(o.definitions.length<=1,76);var i=o.definitions[0];return zt("FragmentDefinition"===i.kind,77),i}(o),hr(As(o)))?null:o}function Qo(o){var i=new Map;return function(u){void 0===u&&(u=o);var h=i.get(u);return h||i.set(u,h={variables:new Set,fragmentSpreads:new Set}),h}}function Ws(o,i){Zr(i);for(var u=Qo(""),h=Qo(""),m=function(Rt){for(var dn=0,nn=void 0;dn<Rt.length&&(nn=Rt[dn]);++dn)if(!xr(nn)){if(nn.kind===ke.OPERATION_DEFINITION)return u(nn.name&&nn.name.value);if(nn.kind===ke.FRAGMENT_DEFINITION)return h(nn.name.value)}return null},D=0,H=i.definitions.length-1;H>=0;--H)i.definitions[H].kind===ke.OPERATION_DEFINITION&&++D;var _e=function ms(o){var i=new Map,u=new Map;return o.forEach(function(h){h&&(h.name?i.set(h.name,h):h.test&&u.set(h.test,h))}),function(h){var m=i.get(h.name.value);return!m&&u.size&&u.forEach(function(D,H){H(h)&&(m=D)}),m}}(o),Ve=function(Rt){return mi(Rt)&&Rt.map(_e).some(function(dn){return dn&&dn.remove})},Ee=new Map,tt=!1,pt={enter:function(Rt){if(Ve(Rt.directives))return tt=!0,null}},ht=si(i,{Field:pt,InlineFragment:pt,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(Rt,dn,nn,Rn,kn){var Un=m(kn);Un&&Un.variables.add(Rt.name.value)}},FragmentSpread:{enter:function(Rt,dn,nn,Rn,kn){if(Ve(Rt.directives))return tt=!0,null;var Un=m(kn);Un&&Un.fragmentSpreads.add(Rt.name.value)}},FragmentDefinition:{enter:function(Rt,dn,nn,Rn){Ee.set(JSON.stringify(Rn),Rt)},leave:function(Rt,dn,nn,Rn){return Rt===Ee.get(JSON.stringify(Rn))?Rt:D>0&&Rt.selectionSet.selections.every(function(Un){return Un.kind===ke.FIELD&&"__typename"===Un.name.value})?(h(Rt.name.value).removed=!0,tt=!0,null):void 0}},Directive:{leave:function(Rt){if(_e(Rt))return tt=!0,null}}});if(!tt)return i;var Tt=function(Rt){return Rt.transitiveVars||(Rt.transitiveVars=new Set(Rt.variables),Rt.removed||Rt.fragmentSpreads.forEach(function(dn){Tt(h(dn)).transitiveVars.forEach(function(nn){Rt.transitiveVars.add(nn)})})),Rt},Vt=new Set;ht.definitions.forEach(function(Rt){Rt.kind===ke.OPERATION_DEFINITION?Tt(u(Rt.name&&Rt.name.value)).fragmentSpreads.forEach(function(dn){Vt.add(dn)}):Rt.kind===ke.FRAGMENT_DEFINITION&&0===D&&!h(Rt.name.value).removed&&Vt.add(Rt.name.value)}),Vt.forEach(function(Rt){Tt(h(Rt)).fragmentSpreads.forEach(function(dn){Vt.add(dn)})});var ln={enter:function(Rt){if(function(Rt){return!(Vt.has(Rt)&&!h(Rt).removed)}(Rt.name.value))return null}};return gs(si(ht,{FragmentSpread:ln,FragmentDefinition:ln,OperationDefinition:{leave:function(Rt){if(Rt.variableDefinitions){var dn=Tt(u(Rt.name&&Rt.name.value)).transitiveVars;if(dn.size<Rt.variableDefinitions.length)return ye(ye({},Rt),{variableDefinitions:Rt.variableDefinitions.filter(function(nn){return dn.has(nn.variable.name.value)})})}}}}))}var Ps=Object.assign(function(o){return si(o,{SelectionSet:{enter:function(i,u,h){if(!h||h.kind!==ke.OPERATION_DEFINITION){var m=i.selections;if(m&&!m.some(function(_e){return Ro(_e)&&("__typename"===_e.name.value||0===_e.name.value.lastIndexOf("__",0))})){var H=h;if(!(Ro(H)&&H.directives&&H.directives.some(function(_e){return"export"===_e.name.value})))return ye(ye({},i),{selections:Fe(Fe([],m,!0),[co],!1)})}}}}})},{added:function(o){return o===co}});function Ms(o){return"query"===Or(o).operation?o:si(o,{OperationDefinition:{enter:function(m){return ye(ye({},m),{operation:"query"})}}})}function Gs(o){return Zr(o),Ws([{test:function(u){return"client"===u.name.value},remove:!0}],o)}var fo=Object.prototype.hasOwnProperty;function ts(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Bi(o)}function Bi(o){var i=o[0]||{},u=o.length;if(u>1)for(var h=new _o,m=1;m<u;++m)i=h.merge(i,o[m]);return i}var Ho=function(o,i,u){return this.merge(o[u],i[u])},_o=function(){function o(i){void 0===i&&(i=Ho),this.reconciler=i,this.isObject=In,this.pastCopies=new Set}return o.prototype.merge=function(i,u){for(var h=this,m=[],D=2;D<arguments.length;D++)m[D-2]=arguments[D];return In(u)&&In(i)?(Object.keys(u).forEach(function(H){if(fo.call(i,H)){var _e=i[H];if(u[H]!==_e){var Ve=h.reconciler.apply(h,Fe([i,u,H],m,!1));Ve!==_e&&((i=h.shallowCopyForMerge(i))[H]=Ve)}}else(i=h.shallowCopyForMerge(i))[H]=u[H]}),i):u},o.prototype.shallowCopyForMerge=function(i){return In(i)&&(this.pastCopies.has(i)||(i=Array.isArray(i)?i.slice(0):ye({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i))),i},o}();function vs(o,i){(null==i||i>o.length)&&(i=o.length);for(var u=0,h=new Array(i);u<i;u++)h[u]=o[u];return h}function zs(o,i){for(var u=0;u<i.length;u++){var h=i[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(o,h.key,h)}}function ws(o,i,u){return i&&zs(o.prototype,i),u&&zs(o,u),Object.defineProperty(o,"prototype",{writable:!1}),o}var la=function(){return"function"==typeof Symbol},ca=function(o){return la()&&!!Symbol[o]},Rs=function(o){return ca(o)?Symbol[o]:"@@"+o};la()&&!ca("observable")&&(Symbol.observable=Symbol("observable"));var Ns=Rs("iterator"),_s=Rs("observable"),Qs=Rs("species");function ns(o,i){var u=o[i];if(null!=u){if("function"!=typeof u)throw new TypeError(u+" is not a function");return u}}function xo(o){var i=o.constructor;return void 0!==i&&null===(i=i[Qs])&&(i=void 0),void 0!==i?i:se}function Wo(o){Wo.log?Wo.log(o):setTimeout(function(){throw o})}function vr(o){Promise.resolve().then(function(){try{o()}catch(i){Wo(i)}})}function yi(o){var i=o._cleanup;if(void 0!==i&&(o._cleanup=void 0,i))try{if("function"==typeof i)i();else{var u=ns(i,"unsubscribe");u&&u.call(i)}}catch(h){Wo(h)}}function fi(o){o._observer=void 0,o._queue=void 0,o._state="closed"}function Gi(o,i,u){o._state="running";var h=o._observer;try{var m=ns(h,i);switch(i){case"next":m&&m.call(h,u);break;case"error":if(fi(o),!m)throw u;m.call(h,u);break;case"complete":fi(o),m&&m.call(h)}}catch(D){Wo(D)}"closed"===o._state?yi(o):"running"===o._state&&(o._state="ready")}function Pe(o,i,u){if("closed"!==o._state){if("buffering"===o._state)return void o._queue.push({type:i,value:u});if("ready"!==o._state)return o._state="buffering",o._queue=[{type:i,value:u}],void vr(function(){return function as(o){var i=o._queue;if(i){o._queue=void 0,o._state="ready";for(var u=0;u<i.length&&(Gi(o,i[u].type,i[u].value),"closed"!==o._state);++u);}}(o)});Gi(o,i,u)}}var y=function(){function o(u,h){this._cleanup=void 0,this._observer=u,this._queue=void 0,this._state="initializing";var m=new x(this);try{this._cleanup=h.call(void 0,m)}catch(D){m.error(D)}"initializing"===this._state&&(this._state="ready")}return o.prototype.unsubscribe=function(){"closed"!==this._state&&(fi(this),yi(this))},ws(o,[{key:"closed",get:function(){return"closed"===this._state}}]),o}(),x=function(){function o(u){this._subscription=u}var i=o.prototype;return i.next=function(u){Pe(this._subscription,"next",u)},i.error=function(u){Pe(this._subscription,"error",u)},i.complete=function(){Pe(this._subscription,"complete")},ws(o,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),o}(),se=function(){function o(u){if(!(this instanceof o))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof u)throw new TypeError("Observable initializer must be a function");this._subscriber=u}var i=o.prototype;return i.subscribe=function(u){return("object"!=typeof u||null===u)&&(u={next:u,error:arguments[1],complete:arguments[2]}),new y(u,this._subscriber)},i.forEach=function(u){var h=this;return new Promise(function(m,D){if("function"==typeof u)var _e=h.subscribe({next:function(Ve){try{u(Ve,H)}catch(Ee){D(Ee),_e.unsubscribe()}},error:D,complete:m});else D(new TypeError(u+" is not a function"));function H(){_e.unsubscribe(),m()}})},i.map=function(u){var h=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(xo(this))(function(D){return h.subscribe({next:function(H){try{H=u(H)}catch(_e){return D.error(_e)}D.next(H)},error:function(H){D.error(H)},complete:function(){D.complete()}})})},i.filter=function(u){var h=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(xo(this))(function(D){return h.subscribe({next:function(H){try{if(!u(H))return}catch(_e){return D.error(_e)}D.next(H)},error:function(H){D.error(H)},complete:function(){D.complete()}})})},i.reduce=function(u){var h=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var m=xo(this),D=arguments.length>1,H=!1,Ve=arguments[1];return new m(function(Ee){return h.subscribe({next:function(tt){var pt=!H;if(H=!0,!pt||D)try{Ve=u(Ve,tt)}catch(ht){return Ee.error(ht)}else Ve=tt},error:function(tt){Ee.error(tt)},complete:function(){if(!H&&!D)return Ee.error(new TypeError("Cannot reduce an empty sequence"));Ee.next(Ve),Ee.complete()}})})},i.concat=function(){for(var u=this,h=arguments.length,m=new Array(h),D=0;D<h;D++)m[D]=arguments[D];var H=xo(this);return new H(function(_e){var Ve,Ee=0;return function tt(pt){Ve=pt.subscribe({next:function(ht){_e.next(ht)},error:function(ht){_e.error(ht)},complete:function(){Ee===m.length?(Ve=void 0,_e.complete()):tt(H.from(m[Ee++]))}})}(u),function(){Ve&&(Ve.unsubscribe(),Ve=void 0)}})},i.flatMap=function(u){var h=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var m=xo(this);return new m(function(D){var H=[],_e=h.subscribe({next:function(Ee){if(u)try{Ee=u(Ee)}catch(pt){return D.error(pt)}var tt=m.from(Ee).subscribe({next:function(pt){D.next(pt)},error:function(pt){D.error(pt)},complete:function(){var pt=H.indexOf(tt);pt>=0&&H.splice(pt,1),Ve()}});H.push(tt)},error:function(Ee){D.error(Ee)},complete:function(){Ve()}});function Ve(){_e.closed&&0===H.length&&D.complete()}return function(){H.forEach(function(Ee){return Ee.unsubscribe()}),_e.unsubscribe()}})},i[_s]=function(){return this},o.from=function(u){var h="function"==typeof this?this:o;if(null==u)throw new TypeError(u+" is not an object");var m=ns(u,_s);if(m){var D=m.call(u);if(Object(D)!==D)throw new TypeError(D+" is not an object");return function Ys(o){return o instanceof se}(D)&&D.constructor===h?D:new h(function(H){return D.subscribe(H)})}if(ca("iterator")&&(m=ns(u,Ns)))return new h(function(H){vr(function(){if(!H.closed){for(var Ve,_e=function Ha(o,i){var u=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(u)return(u=u.call(o)).next.bind(u);if(Array.isArray(o)||(u=function ai(o,i){if(o){if("string"==typeof o)return vs(o,i);var u=Object.prototype.toString.call(o).slice(8,-1);if("Object"===u&&o.constructor&&(u=o.constructor.name),"Map"===u||"Set"===u)return Array.from(o);if("Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return vs(o,i)}}(o))||i&&o&&"number"==typeof o.length){u&&(o=u);var h=0;return function(){return h>=o.length?{done:!0}:{done:!1,value:o[h++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(m.call(u));!(Ve=_e()).done;)if(H.next(Ve.value),H.closed)return;H.complete()}})});if(Array.isArray(u))return new h(function(H){vr(function(){if(!H.closed){for(var _e=0;_e<u.length;++_e)if(H.next(u[_e]),H.closed)return;H.complete()}})});throw new TypeError(u+" is not observable")},o.of=function(){for(var u=arguments.length,h=new Array(u),m=0;m<u;m++)h[m]=arguments[m];return new("function"==typeof this?this:o)(function(H){vr(function(){if(!H.closed){for(var _e=0;_e<h.length;++_e)if(H.next(h[_e]),H.closed)return;H.complete()}})})},ws(o,null,[{key:Qs,get:function(){return this}}]),o}();la()&&Object.defineProperty(se,Symbol("extensions"),{value:{symbol:_s,hostReportError:Wo},configurable:!0}),function Me(o){var i,u=o.Symbol;if("function"==typeof u)if(u.observable)i=u.observable;else{i="function"==typeof u.for?u.for("https://github.com/benlesh/symbol-observable"):u("https://github.com/benlesh/symbol-observable");try{u.observable=i}catch{}}else i="@@observable"}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof module<"u"?module:Function("return this")());var vt=se.prototype,St="@@observable";vt[St]||(vt[St]=function(){return this});var kt=Object.prototype.toString;function Yt(o){return An(o)}function An(o,i){switch(kt.call(o)){case"[object Array]":if((i=i||new Map).has(o))return i.get(o);var u=o.slice(0);return i.set(o,u),u.forEach(function(m,D){u[D]=An(m,i)}),u;case"[object Object]":if((i=i||new Map).has(o))return i.get(o);var h=Object.create(Object.getPrototypeOf(o));return i.set(o,h),Object.keys(o).forEach(function(m){h[m]=An(o[m],i)}),h;default:return o}}function Zn(o,i,u){var h=[];o.forEach(function(m){return m[i]&&h.push(m)}),h.forEach(function(m){return m[i](u)})}function ur(o,i,u){return new se(function(h){var m=h.next,D=h.error,H=h.complete,_e=0,Ve=!1,Ee={then:function(Tt){return new Promise(function(Vt){return Vt(Tt())})}};function tt(Tt,Vt){return Tt?function(Jt){++_e;var ln=function(){return Tt(Jt)};Ee=Ee.then(ln,ln).then(function(Rt){--_e,m&&m.call(h,Rt),Ve&&pt.complete()},function(Rt){throw--_e,Rt}).catch(function(Rt){D&&D.call(h,Rt)})}:function(Jt){return Vt&&Vt.call(h,Jt)}}var pt={next:tt(i,m),error:tt(u,D),complete:function(){Ve=!0,_e||H&&H.call(h)}},ht=o.subscribe(pt);return function(){return ht.unsubscribe()}})}function Qr(o){function i(u){Object.defineProperty(o,u,{value:se})}return En&&Symbol.species&&i(Symbol.species),i("@@species"),o}function Ci(o){return o&&"function"==typeof o.then}var hi=function(o){function i(u){var h=o.call(this,function(m){return h.addObserver(m),function(){return h.removeObserver(m)}})||this;return h.observers=new Set,h.promise=new Promise(function(m,D){h.resolve=m,h.reject=D}),h.handlers={next:function(m){null!==h.sub&&(h.latest=["next",m],h.notify("next",m),Zn(h.observers,"next",m))},error:function(m){var D=h.sub;null!==D&&(D&&setTimeout(function(){return D.unsubscribe()}),h.sub=null,h.latest=["error",m],h.reject(m),h.notify("error",m),Zn(h.observers,"error",m))},complete:function(){var D=h.sub,H=h.sources;if(null!==D){var Ve=(void 0===H?[]:H).shift();Ve?Ci(Ve)?Ve.then(function(Ee){return h.sub=Ee.subscribe(h.handlers)}):h.sub=Ve.subscribe(h.handlers):(D&&setTimeout(function(){return D.unsubscribe()}),h.sub=null,h.latest&&"next"===h.latest[0]?h.resolve(h.latest[1]):h.resolve(),h.notify("complete"),Zn(h.observers,"complete"))}}},h.nextResultListeners=new Set,h.cancel=function(m){h.reject(m),h.sources=[],h.handlers.complete()},h.promise.catch(function(m){}),"function"==typeof u&&(u=[new se(u)]),Ci(u)?u.then(function(m){return h.start(m)},h.handlers.error):h.start(u),h}return we(i,o),i.prototype.start=function(u){void 0===this.sub&&(this.sources=Array.from(u),this.handlers.complete())},i.prototype.deliverLastMessage=function(u){if(this.latest){var h=this.latest[0],m=u[h];m&&m.call(u,this.latest[1]),null===this.sub&&"next"===h&&u.complete&&u.complete()}},i.prototype.addObserver=function(u){this.observers.has(u)||(this.deliverLastMessage(u),this.observers.add(u))},i.prototype.removeObserver=function(u){this.observers.delete(u)&&this.observers.size<1&&this.handlers.complete()},i.prototype.notify=function(u,h){var m=this.nextResultListeners;m.size&&(this.nextResultListeners=new Set,m.forEach(function(D){return D(u,h)}))},i.prototype.beforeNext=function(u){var h=!1;this.nextResultListeners.add(function(m,D){h||(h=!0,u(m,D))})},i}(se);function pi(o){return"incremental"in o}function Eo(o){return In(o)&&"payload"in o}function ui(o,i){var u=o,h=new _o;return pi(i)&&mi(i.incremental)&&i.incremental.forEach(function(m){for(var D=m.data,H=m.path,_e=H.length-1;_e>=0;--_e){var Ve=H[_e],tt=isNaN(+Ve)?{}:[];tt[Ve]=D,D=tt}u=h.merge(u,D)}),u}function Li(o){return mi(oo(o))}function oo(o){var i=mi(o.errors)?o.errors.slice(0):[];return pi(o)&&mi(o.incremental)&&o.incremental.forEach(function(u){u.errors&&i.push.apply(i,u.errors)}),i}function so(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var u=Object.create(null);return o.forEach(function(h){h&&Object.keys(h).forEach(function(m){var D=h[m];void 0!==D&&(u[m]=D)})}),u}function Xs(o,i){return so(o,i,i.variables&&{variables:so(ye(ye({},o&&o.variables),i.variables))})}function yo(o){return new se(function(i){i.error(o)})}Qr(hi);var ji=function(o,i,u){var h=new Error(u);throw h.name="ServerError",h.response=o,h.statusCode=o.status,h.result=i,h};function Xn(o,i){return i?i(o):se.of()}function Er(o){return"function"==typeof o?new ae(o):o}function M(o){return o.request.length<=1}var ae=function(){function o(i){i&&(this.request=i)}return o.empty=function(){return new o(function(){return se.of()})},o.from=function(i){return 0===i.length?o.empty():i.map(Er).reduce(function(u,h){return u.concat(h)})},o.split=function(i,u,h){var m=Er(u),D=Er(h||new o(Xn));return M(m)&&M(D)?new o(function(H){return i(H)?m.request(H)||se.of():D.request(H)||se.of()}):new o(function(H,_e){return i(H)?m.request(H,_e)||se.of():D.request(H,_e)||se.of()})},o.execute=function(i,u){return i.request(function us(o,i){var u=ye({},o);return Object.defineProperty(i,"setContext",{enumerable:!1,value:function(D){u=ye(ye({},u),"function"==typeof D?D(u):D)}}),Object.defineProperty(i,"getContext",{enumerable:!1,value:function(){return ye({},u)}}),i}(u.context,function Hn(o){var i={variables:o.variables||{},extensions:o.extensions||{},operationName:o.operationName,query:o.query};return i.operationName||(i.operationName="string"!=typeof i.query?Ei(i.query)||void 0:""),i}(function Js(o){for(var i=["query","operationName","variables","extensions","context"],u=0,h=Object.keys(o);u<h.length;u++){var m=h[u];if(i.indexOf(m)<0)throw fn(41,m)}return o}(u))))||se.of()},o.concat=function(i,u){var h=Er(i);if(M(h))return h;var m=Er(u);return M(m)?new o(function(D){return h.request(D,function(H){return m.request(H)||se.of()})||se.of()}):new o(function(D,H){return h.request(D,function(_e){return m.request(_e,H)||se.of()})||se.of()})},o.prototype.split=function(i,u,h){return this.concat(o.split(i,u,h||new o(Xn)))},o.prototype.concat=function(i){return o.concat(this,i)},o.prototype.request=function(i,u){throw fn(34)},o.prototype.onError=function(i,u){if(u&&u.error)return u.error(i),!1;throw i},o.prototype.setOnError=function(i){return this.onError=i,this},o}(),Xe=ae.from,ie=ae.execute;function qt(o){var i={next:function(){return o.read()}};return tr&&(i[Symbol.asyncIterator]=function(){return this}),i}function Vi(o){var i=o;if(function rr(o){return!!o.body}(o)&&(i=o.body),function wr(o){return!(!tr||!o[Symbol.asyncIterator])}(i))return function Re(o){var i,u=o[Symbol.asyncIterator]();return(i={next:function(){return u.next()}})[Symbol.asyncIterator]=function(){return this},i}(i);if(function ar(o){return!!o.getReader}(i))return qt(i.getReader());if(function cr(o){return!!o.stream}(i))return qt(i.stream().getReader());if(function qr(o){return!!o.arrayBuffer}(i))return function $t(o){var i=!1,u={next:function(){return i?Promise.resolve({value:void 0,done:!0}):(i=!0,new Promise(function(h,m){o.then(function(D){h({value:D,done:!1})}).catch(m)}))}};return tr&&(u[Symbol.asyncIterator]=function(){return this}),u}(i.arrayBuffer());if(function Yr(o){return!!o.pipe}(i))return function lt(o){var i=null,u=null,h=!1,m=[],D=[];function H(pt){if(!u){if(D.length){var ht=D.shift();if(Array.isArray(ht)&&ht[0])return ht[0]({value:pt,done:!1})}m.push(pt)}}function _e(pt){u=pt,D.slice().forEach(function(Tt){Tt[1](pt)}),!i||i()}function Ve(){h=!0,D.slice().forEach(function(ht){ht[0]({value:void 0,done:!0})}),!i||i()}i=function(){i=null,o.removeListener("data",H),o.removeListener("error",_e),o.removeListener("end",Ve),o.removeListener("finish",Ve),o.removeListener("close",Ve)},o.on("data",H),o.on("error",_e),o.on("end",Ve),o.on("finish",Ve),o.on("close",Ve);var tt={next:function(){return function Ee(){return new Promise(function(pt,ht){return u?ht(u):m.length?pt({value:m.shift(),done:!1}):h?pt({value:void 0,done:!0}):void D.push([pt,ht])})}()}};return tr&&(tt[Symbol.asyncIterator]=function(){return this}),tt}(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Oo=Symbol(),$r=function(o){function i(u){var h=u.graphQLErrors,m=u.protocolErrors,D=u.clientErrors,H=u.networkError,_e=u.errorMessage,Ve=u.extraInfo,Ee=o.call(this,_e)||this;return Ee.name="ApolloError",Ee.graphQLErrors=h||[],Ee.protocolErrors=m||[],Ee.clientErrors=D||[],Ee.networkError=H||null,Ee.message=_e||function(o){var i=Fe(Fe(Fe([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0);return o.networkError&&i.push(o.networkError),i.map(function(u){return In(u)&&u.message||"Error message not found."}).join("\n")}(Ee),Ee.extraInfo=Ve,Ee.__proto__=i.prototype,Ee}return we(i,o),i}(Error),Qi=Object.prototype.hasOwnProperty;function ao(o){var i={};return o.split("\n").forEach(function(u){var h=u.indexOf(":");if(h>-1){var m=u.slice(0,h).trim().toLowerCase(),D=u.slice(h+1).trim();i[m]=D}}),i}function da(o,i){o.status>=300&&ji(o,function(){try{return JSON.parse(i)}catch{return i}}(),"Response not successful: Received status code ".concat(o.status));try{return JSON.parse(i)}catch(m){var h=m;throw h.name="ServerParseError",h.response=o,h.statusCode=o.status,h.bodyText=i,h}}var Ao=function(o,i){var u;try{u=JSON.stringify(o)}catch(m){var h=fn(37,i,m.message);throw h.parseError=m,h}return u},Po={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},rt=function(o,i){return i(o)};var Ln=Be(function(){return fetch}),ei=function(o){void 0===o&&(o={});var i=o.uri,u=void 0===i?"/graphql":i,h=o.fetch,m=o.print,D=void 0===m?rt:m,H=o.includeExtensions,_e=o.preserveHeaderCase,Ve=o.useGETForQueries,Ee=o.includeUnusedVariables,tt=void 0!==Ee&&Ee,pt=ze(o,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),ht={http:{includeExtensions:H,preserveHeaderCase:_e},options:pt.fetchOptions,credentials:pt.credentials,headers:pt.headers};return new ae(function(Tt){var Vt=function(o,i){return o.getContext().uri||("function"==typeof i?i(o):i||"/graphql")}(Tt,u),Jt=Tt.getContext(),ln={};if(Jt.clientAwareness){var Rt=Jt.clientAwareness,dn=Rt.name,nn=Rt.version;dn&&(ln["apollographql-client-name"]=dn),nn&&(ln["apollographql-client-version"]=nn)}var Rn=ye(ye({},ln),Jt.headers),kn={http:Jt.http,options:Jt.fetchOptions,credentials:Jt.credentials,headers:Rn};if(Qt(["client"],Tt.query)){var Un=Gs(Tt.query);if(!Un)return yo(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`."));Tt.query=Un}var ki,Ir=function Le(o,i){for(var u=[],h=2;h<arguments.length;h++)u[h-2]=arguments[h];var m={},D={};u.forEach(function(pt){m=ye(ye(ye({},m),pt.options),{headers:ye(ye({},m.headers),pt.headers)}),pt.credentials&&(m.credentials=pt.credentials),D=ye(ye({},D),pt.http)}),m.headers&&(m.headers=function Qe(o,i){if(!i){var u=Object.create(null);return Object.keys(Object(o)).forEach(function(D){u[D.toLowerCase()]=o[D]}),u}var h=Object.create(null);Object.keys(Object(o)).forEach(function(D){h[D.toLowerCase()]={originalName:D,value:o[D]}});var m=Object.create(null);return Object.keys(h).forEach(function(D){m[h[D].originalName]=h[D].value}),m}(m.headers,D.preserveHeaderCase));var Ee=o.query,tt={operationName:o.operationName,variables:o.variables};return D.includeExtensions&&(tt.extensions=o.extensions),D.includeQuery&&(tt.query=i(Ee,ps)),{options:m,body:tt}}(Tt,D,Po,ht,kn),Fr=Ir.options,Ki=Ir.body;Ki.variables&&!tt&&(Ki.variables=function wn(o,i){var u=ye({},o),h=new Set(Object.keys(o));return si(i,{Variable:function(m,D,H){H&&"VariableDefinition"!==H.kind&&h.delete(m.name.value)}}),h.forEach(function(m){delete u[m]}),u}(Ki.variables,Tt.query)),!Fr.signal&&typeof AbortController<"u"&&(ki=new AbortController,Fr.signal=ki.signal);var Bo,go="OperationDefinition"===(Bo=Or(Tt.query)).kind&&"subscription"===Bo.operation,du=Qt(["defer"],Tt.query);if(Ve&&!Tt.query.definitions.some(function(Bo){return"OperationDefinition"===Bo.kind&&"mutation"===Bo.operation})&&(Fr.method="GET"),du||go){Fr.headers=Fr.headers||{};var Bu="multipart/mixed;";go?Bu+="boundary=graphql;subscriptionSpec=1.0,application/json":du&&(Bu+="deferSpec=20220824,application/json"),Fr.headers.accept=Bu}if("GET"===Fr.method){var ju=function on(o,i){var u=[],h=function(pt,ht){u.push("".concat(pt,"=").concat(encodeURIComponent(ht)))};if("query"in i&&h("query",i.query),i.operationName&&h("operationName",i.operationName),i.variables){var m=void 0;try{m=Ao(i.variables,"Variables map")}catch(pt){return{parseError:pt}}h("variables",m)}if(i.extensions){var D=void 0;try{D=Ao(i.extensions,"Extensions map")}catch(pt){return{parseError:pt}}h("extensions",D)}var H="",_e=o,Ve=o.indexOf("#");-1!==Ve&&(H=o.substr(Ve),_e=o.substr(0,Ve));var Ee=-1===_e.indexOf("?")?"?":"&";return{newURI:_e+Ee+u.join("&")+H}}(Vt,Ki),Vc=ju.newURI,kl=ju.parseError;if(kl)return yo(kl);Vt=Vc}else try{Fr.body=Ao(Ki,"Payload")}catch(Bo){return yo(Bo)}return new se(function(Bo){var Vu=h||Be(function(){return fetch})||Ln,Fl=Bo.next.bind(Bo);return Vu(Vt,Fr).then(function(cs){var ya;Tt.setContext({response:cs});var Ua=null===(ya=cs.headers)||void 0===ya?void 0:ya.get("content-type");return null!==Ua&&/^multipart\/mixed/i.test(Ua)?function xi(o,i){var u;return Ye(this,void 0,void 0,function(){var h,m,D,H,_e,Ve,Ee,tt,pt,ht,Tt,Vt,Jt,ln,Rt,dn,nn,Rn,kn,Un,Ir,Fr,Ki;return be(this,function(ki){var gi,Ti,go;switch(ki.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");h=new TextDecoder("utf-8"),m=null===(u=o.headers)||void 0===u?void 0:u.get("content-type"),D="boundary=",H=null!==(gi=m)&&void 0!==gi&&gi.includes(D)?null===(Ti=m)||void 0===Ti?void 0:Ti.substring((null===(go=m)||void 0===go?void 0:go.indexOf(D))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",_e="\r\n--".concat(H),Ve="",Ee=Vi(o),tt=!0,ki.label=1;case 1:return tt?[4,Ee.next()]:[3,3];case 2:for(pt=ki.sent(),Tt=pt.done,Vt="string"==typeof(ht=pt.value)?ht:h.decode(ht),Jt=Ve.length-_e.length+1,tt=!Tt,ln=(Ve+=Vt).indexOf(_e,Jt);ln>-1;){if(Rt=void 0,Fr=[Ve.slice(0,ln),Ve.slice(ln+_e.length)],Ve=Fr[1],dn=(Rt=Fr[0]).indexOf("\r\n\r\n"),nn=ao(Rt.slice(0,dn)),(Rn=nn["content-type"])&&-1===Rn.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(kn=Rt.slice(dn))if(Un=da(o,kn),Object.keys(Un).length>1||"data"in Un||"incremental"in Un||"errors"in Un||"payload"in Un)Eo(Un)?(Ir={},"payload"in Un&&(Ir=ye({},Un.payload)),"errors"in Un&&(Ir=ye(ye({},Ir),{extensions:ye(ye({},"extensions"in Ir?Ir.extensions:null),(Ki={},Ki[Oo]=Un.errors,Ki))})),i(Ir)):i(Un);else if(1===Object.keys(Un).length&&"hasNext"in Un&&!Un.hasNext)return[2];ln=Ve.indexOf(_e)}return[3,1];case 3:return[2]}})})}(cs,Fl):function Yi(o){return function(i){return i.text().then(function(u){return da(i,u)}).then(function(u){return i.status>=300&&ji(i,u,"Response not successful: Received status code ".concat(i.status)),!Array.isArray(u)&&!Qi.call(u,"data")&&!Qi.call(u,"errors")&&ji(i,u,"Server response was missing for query '".concat(Array.isArray(o)?o.map(function(h){return h.operationName}):o.operationName,"'.")),u})}}(Tt)(cs).then(Fl)}).then(function(){ki=void 0,Bo.complete()}).catch(function(cs){ki=void 0,function Di(o,i){o.result&&o.result.errors&&o.result.data&&i.next(o.result),i.error(o)}(cs,Bo)}),function(){ki&&ki.abort()}})})},Mi=function(o){function i(u){void 0===u&&(u={});var h=o.call(this,ei(u).request)||this;return h.options=u,h}return we(i,o),i}(ae);const{toString:ir,hasOwnProperty:Xi}=Object.prototype,Ls=Function.prototype.toString,Yo=new Map;function Oi(o,i){try{return ls(o,i)}finally{Yo.clear()}}function ls(o,i){if(o===i)return!0;const u=ir.call(o);if(u!==ir.call(i))return!1;switch(u){case"[object Array]":if(o.length!==i.length)return!1;case"[object Object]":{if(gu(o,i))return!0;const m=li(o),D=li(i),H=m.length;if(H!==D.length)return!1;for(let _e=0;_e<H;++_e)if(!Xi.call(i,m[_e]))return!1;for(let _e=0;_e<H;++_e){const Ve=m[_e];if(!ls(o[Ve],i[Ve]))return!1}return!0}case"[object Error]":return o.name===i.name&&o.message===i.message;case"[object Number]":if(o!=o)return i!=i;case"[object Boolean]":case"[object Date]":return+o==+i;case"[object RegExp]":case"[object String]":return o=="".concat(i);case"[object Map]":case"[object Set]":{if(o.size!==i.size)return!1;if(gu(o,i))return!0;const m=o.entries(),D="[object Map]"===u;for(;;){const H=m.next();if(H.done)break;const[_e,Ve]=H.value;if(!i.has(_e)||D&&!ls(Ve,i.get(_e)))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]":o=new Uint8Array(o),i=new Uint8Array(i);case"[object DataView]":{let m=o.byteLength;if(m===i.byteLength)for(;m--&&o[m]===i[m];);return-1===m}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const m=Ls.call(o);return m===Ls.call(i)&&!function qi(o,i){const u=o.length-i.length;return u>=0&&o.indexOf(i,u)===u}(m,ho)}}return!1}function li(o){return Object.keys(o).filter(Pa,o)}function Pa(o){return void 0!==this[o]}const ho="{ [native code] }";function gu(o,i){let u=Yo.get(o);if(u){if(u.has(i))return!0}else Yo.set(o,u=new Set);return u.add(i),!1}function fa(){}class mu{constructor(i=1/0,u=fa){this.max=i,this.dispose=u,this.map=new Map,this.newest=null,this.oldest=null}has(i){return this.map.has(i)}get(i){const u=this.getNode(i);return u&&u.value}getNode(i){const u=this.map.get(i);if(u&&u!==this.newest){const{older:h,newer:m}=u;m&&(m.older=h),h&&(h.newer=m),u.older=this.newest,u.older.newer=u,u.newer=null,this.newest=u,u===this.oldest&&(this.oldest=m)}return u}set(i,u){let h=this.getNode(i);return h?h.value=u:(h={key:i,value:u,newer:null,older:this.newest},this.newest&&(this.newest.newer=h),this.newest=h,this.oldest=this.oldest||h,this.map.set(i,h),h.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(i){const u=this.map.get(i);return!!u&&(u===this.newest&&(this.newest=u.older),u===this.oldest&&(this.oldest=u.newer),u.newer&&(u.newer.older=u.older),u.older&&(u.older.newer=u.newer),this.map.delete(i),this.dispose(u.value,i),!0)}}let Si=null;const vu={};let Ed=1;function Ga(o){try{return o()}catch{}}const _u="@wry/context:Slot",Yu=Ga(()=>globalThis)||Ga(()=>global)||Object.create(null),bh=Yu[_u]||Array[_u]||function(o){try{Object.defineProperty(Yu,_u,{value:o,enumerable:!1,writable:!1,configurable:!0})}finally{return o}}(class{constructor(){this.id=["slot",Ed++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let o=Si;o;o=o.parent)if(this.id in o.slots){const i=o.slots[this.id];if(i===vu)break;return o!==Si&&(Si.slots[this.id]=i),!0}return Si&&(Si.slots[this.id]=vu),!1}getValue(){if(this.hasValue())return Si.slots[this.id]}withValue(o,i,u,h){const D=Si;Si={parent:D,slots:{__proto__:null,[this.id]:o}};try{return i.apply(h,u)}finally{Si=D}}static bind(o){const i=Si;return function(){const u=Si;try{return Si=i,o.apply(this,arguments)}finally{Si=u}}}static noContext(o,i,u){if(!Si)return o.apply(u,i);{const h=Si;try{return Si=null,o.apply(u,i)}finally{Si=h}}}}),Yl=new bh,{hasOwnProperty:Ug}=Object.prototype,Cd=Array.from||function(o){const i=[];return o.forEach(u=>i.push(u)),i};function O(o){const{unsubscribe:i}=o;"function"==typeof i&&(o.unsubscribe=void 0,i())}const F=[],q=100;function k(o,i){if(!o)throw new Error(i||"assertion failure")}function Ue(o){switch(o.length){case 0:throw new Error("unknown value");case 1:return o[0];case 2:throw o[1]}}let Mt=(()=>{class o{constructor(u){this.fn=u,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++o.count}peek(){if(1===this.value.length&&!dr(this))return un(this),this.value[0]}recompute(u){return k(!this.recomputing,"already recomputing"),un(this),dr(this)?function Ft(o,i){return wa(o),Yl.withValue(o,xn,[o,i]),function Ra(o,i){if("function"==typeof o.subscribe)try{O(o),o.unsubscribe=o.subscribe.apply(null,i)}catch{return o.setDirty(),!1}return!0}(o,i)&&function $i(o){o.dirty=!1,!dr(o)&&Co(o)}(o),Ue(o.value)}(this,u):Ue(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,ti(this),O(this))}dispose(){this.setDirty(),wa(this),Es(this,(u,h)=>{u.setDirty(),Xu(u,this)})}forget(){this.dispose()}dependOn(u){u.add(this),this.deps||(this.deps=F.pop()||new Set),this.deps.add(u)}forgetDeps(){this.deps&&(Cd(this.deps).forEach(u=>u.delete(this)),this.deps.clear(),F.push(this.deps),this.deps=null)}}return o.count=0,o})();function un(o){const i=Yl.getValue();if(i)return o.parents.add(i),i.childValues.has(o)||i.childValues.set(o,[]),dr(o)?Zs(i,o):ha(i,o),i}function xn(o,i){o.recomputing=!0,o.value.length=0;try{o.value[0]=o.fn.apply(null,i)}catch(u){o.value[1]=u}o.recomputing=!1}function dr(o){return o.dirty||!(!o.dirtyChildren||!o.dirtyChildren.size)}function ti(o){Es(o,Zs)}function Co(o){Es(o,ha)}function Es(o,i){const u=o.parents.size;if(u){const h=Cd(o.parents);for(let m=0;m<u;++m)i(h[m],o)}}function Zs(o,i){k(o.childValues.has(i)),k(dr(i));const u=!dr(o);if(o.dirtyChildren){if(o.dirtyChildren.has(i))return}else o.dirtyChildren=F.pop()||new Set;o.dirtyChildren.add(i),u&&ti(o)}function ha(o,i){k(o.childValues.has(i)),k(!dr(i));const u=o.childValues.get(i);0===u.length?o.childValues.set(i,function Ge(o){return o.slice(0)}(i.value)):function oe(o,i){const u=o.length;return u>0&&u===i.length&&o[u-1]===i[u-1]}(u,i.value)||o.setDirty(),Ma(o,i),!dr(o)&&Co(o)}function Ma(o,i){const u=o.dirtyChildren;u&&(u.delete(i),0===u.size&&(F.length<q&&F.push(u),o.dirtyChildren=null))}function wa(o){o.childValues.size>0&&o.childValues.forEach((i,u)=>{Xu(o,u)}),o.forgetDeps(),k(null===o.dirtyChildren)}function Xu(o,i){i.parents.delete(o),o.childValues.delete(i),Ma(o,i)}const Bg={setDirty:!0,dispose:!0,forget:!0};function Xl(o){const i=new Map,u=o&&o.subscribe;function h(m){const D=Yl.getValue();if(D){let H=i.get(m);H||i.set(m,H=new Set),D.dependOn(H),"function"==typeof u&&(O(H),H.unsubscribe=u(m))}}return h.dirty=function(m,D){const H=i.get(m);if(H){const _e=D&&Ug.call(Bg,D)?D:"setDirty";Cd(H).forEach(Ve=>Ve[_e]()),i.delete(m),O(H)}},h}let Ih;function qs(...o){return(Ih||(Ih=new nt("function"==typeof WeakMap))).lookupArray(o)}const Jl=new Set;function Ju(o,{max:i=Math.pow(2,16),makeCacheKey:u=qs,keyArgs:h,subscribe:m}=Object.create(null)){const D=new mu(i,tt=>tt.dispose()),H=function(){const tt=u.apply(null,h?h.apply(null,arguments):arguments);if(void 0===tt)return o.apply(null,arguments);let pt=D.get(tt);pt||(D.set(tt,pt=new Mt(o)),pt.subscribe=m,pt.forget=()=>D.delete(tt));const ht=pt.recompute(Array.prototype.slice.call(arguments));return D.set(tt,pt),Jl.add(D),Yl.hasValue()||(Jl.forEach(Tt=>Tt.clean()),Jl.clear()),ht};function _e(tt){const pt=D.get(tt);pt&&pt.setDirty()}function Ve(tt){const pt=D.get(tt);if(pt)return pt.peek()}function Ee(tt){return D.delete(tt)}return Object.defineProperty(H,"size",{get:()=>D.map.size,configurable:!1,enumerable:!1}),Object.freeze(H.options={max:i,makeCacheKey:u,keyArgs:h,subscribe:m}),H.dirtyKey=_e,H.dirty=function(){_e(u.apply(null,arguments))},H.peekKey=Ve,H.peek=function(){return Ve(u.apply(null,arguments))},H.forgetKey=Ee,H.forget=function(){return Ee(u.apply(null,arguments))},H.makeCacheKey=u,H.getKey=h?function(){return u.apply(null,h.apply(null,arguments))}:u,Object.freeze(H)}var Sd=function(){function o(){this.assumeImmutableResults=!1,this.getFragmentDoc=Ju(Mr)}return o.prototype.batch=function(i){var m,u=this;return this.performTransaction(function(){return m=i.update(u)},"string"==typeof i.optimistic?i.optimistic:!1===i.optimistic?null:void 0),m},o.prototype.recordOptimisticTransaction=function(i,u){this.performTransaction(i,u)},o.prototype.transformDocument=function(i){return i},o.prototype.transformForLink=function(i){return i},o.prototype.identify=function(i){},o.prototype.gc=function(){return[]},o.prototype.modify=function(i){return!1},o.prototype.readQuery=function(i,u){return void 0===u&&(u=!!i.optimistic),this.read(ye(ye({},i),{rootId:i.id||"ROOT_QUERY",optimistic:u}))},o.prototype.readFragment=function(i,u){return void 0===u&&(u=!!i.optimistic),this.read(ye(ye({},i),{query:this.getFragmentDoc(i.fragment,i.fragmentName),rootId:i.id,optimistic:u}))},o.prototype.writeQuery=function(i){var u=i.id,h=i.data,m=ze(i,["id","data"]);return this.write(Object.assign(m,{dataId:u||"ROOT_QUERY",result:h}))},o.prototype.writeFragment=function(i){var u=i.id,h=i.data,m=i.fragment,D=i.fragmentName,H=ze(i,["id","data","fragment","fragmentName"]);return this.write(Object.assign(H,{query:this.getFragmentDoc(m,D),dataId:u,result:h}))},o.prototype.updateQuery=function(i,u){return this.batch({update:function(h){var m=h.readQuery(i),D=u(m);return null==D?m:(h.writeQuery(ye(ye({},i),{data:D})),D)}})},o.prototype.updateFragment=function(i,u){return this.batch({update:function(h){var m=h.readFragment(i),D=u(m);return null==D?m:(h.writeFragment(ye(ye({},i),{data:D})),D)}})},o}(),Th=function(o){function i(u,h,m,D){var H,_e=o.call(this,u)||this;if(_e.message=u,_e.path=h,_e.query=m,_e.variables=D,Array.isArray(_e.path)){_e.missing=_e.message;for(var Ve=_e.path.length-1;Ve>=0;--Ve)_e.missing=((H={})[_e.path[Ve]]=_e.missing,H)}else _e.missing=_e.path;return _e.__proto__=i.prototype,_e}return we(i,o),i}(Error),Fo=Object.prototype.hasOwnProperty;function ci(o){return null==o}function Zl(o,i){var u=o.__typename,h=o.id,m=o._id;if("string"==typeof u&&(i&&(i.keyObject=ci(h)?ci(m)?void 0:{_id:m}:{id:h}),ci(h)&&!ci(m)&&(h=m),!ci(h)))return"".concat(u,":").concat("number"==typeof h||"string"==typeof h?h:JSON.stringify(h))}var Eu={dataIdFromObject:Zl,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Dh(o){var i=o.canonizeResults;return void 0===i?Eu.canonizeResults:i}var za=/^[_a-z][_0-9a-z]*/i;function So(o){var i=o.match(za);return i?i[0]:o}function bd(o,i,u){return!!In(i)&&(xr(i)?i.every(function(h){return bd(o,h,u)}):o.selections.every(function(h){if(Ro(h)&&Lt(h,u)){var m=Do(h);return Fo.call(i,m)&&(!h.selectionSet||bd(h.selectionSet,i[m],u))}return!0}))}function Na(o){return In(o)&&!Pr(o)&&!xr(o)}function xs(o,i){var u=hr(As(o));return{fragmentMap:u,lookupFragment:function(h){var m=u[h];return!m&&i&&(m=i.lookup(h)),m||null}}}var qu=Object.create(null),Id=function(){return qu},Td=Object.create(null),Qa=function(){function o(i,u){var h=this;this.policies=i,this.group=u,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(m,D){return Pr(m)?h.get(m.__ref,D):m&&m[D]},this.canRead=function(m){return Pr(m)?h.has(m.__ref):"object"==typeof m},this.toReference=function(m,D){if("string"==typeof m)return Yn(m);if(Pr(m))return m;var H=h.policies.identify(m)[0];if(H){var _e=Yn(H);return D&&h.merge(H,m),_e}}}return o.prototype.toObject=function(){return ye({},this.data)},o.prototype.has=function(i){return void 0!==this.lookup(i,!0)},o.prototype.get=function(i,u){if(this.group.depend(i,u),Fo.call(this.data,i)){var h=this.data[i];if(h&&Fo.call(h,u))return h[u]}return"__typename"===u&&Fo.call(this.policies.rootTypenamesById,i)?this.policies.rootTypenamesById[i]:this instanceof ea?this.parent.get(i,u):void 0},o.prototype.lookup=function(i,u){return u&&this.group.depend(i,"__exists"),Fo.call(this.data,i)?this.data[i]:this instanceof ea?this.parent.lookup(i,u):this.policies.rootTypenamesById[i]?Object.create(null):void 0},o.prototype.merge=function(i,u){var m,h=this;Pr(i)&&(i=i.__ref),Pr(u)&&(u=u.__ref);var D="string"==typeof i?this.lookup(m=i):i,H="string"==typeof u?this.lookup(m=u):u;if(H){zt("string"==typeof m,1);var _e=new _o(br).merge(D,H);if(this.data[m]=_e,_e!==D&&(delete this.refs[m],this.group.caching)){var Ve=Object.create(null);D||(Ve.__exists=1),Object.keys(H).forEach(function(Ee){if(!D||D[Ee]!==_e[Ee]){Ve[Ee]=1;var tt=So(Ee);tt!==Ee&&!h.policies.hasKeyArgs(_e.__typename,tt)&&(Ve[tt]=1),void 0===_e[Ee]&&!(h instanceof ea)&&delete _e[Ee]}}),Ve.__typename&&!(D&&D.__typename)&&this.policies.rootTypenamesById[m]===_e.__typename&&delete Ve.__typename,Object.keys(Ve).forEach(function(Ee){return h.group.dirty(m,Ee)})}}},o.prototype.modify=function(i,u){var h=this,m=this.lookup(i);if(m){var D=Object.create(null),H=!1,_e=!0,Ve={DELETE:qu,INVALIDATE:Td,isReference:Pr,toReference:this.toReference,canRead:this.canRead,readField:function(Ee,tt){return h.policies.readField("string"==typeof Ee?{fieldName:Ee,from:tt||Yn(i)}:Ee,{store:h})}};if(Object.keys(m).forEach(function(Ee){var tt=So(Ee),pt=m[Ee];if(void 0!==pt){var ht="function"==typeof u?u:u[Ee]||u[tt];if(ht){var Tt=ht===Id?qu:ht(pt,ye(ye({},Ve),{fieldName:tt,storeFieldName:Ee,storage:h.getStorage(i,Ee)}));Tt===Td?h.group.dirty(i,Ee):(Tt===qu&&(Tt=void 0),Tt!==pt&&(D[Ee]=Tt,H=!0,pt=Tt))}void 0!==pt&&(_e=!1)}}),H)return this.merge(i,D),_e&&(this instanceof ea?this.data[i]=void 0:delete this.data[i],this.group.dirty(i,"__exists")),!0}return!1},o.prototype.delete=function(i,u,h){var m,D=this.lookup(i);if(D){var H=this.getFieldValue(D,"__typename"),_e=u&&h?this.policies.getStoreFieldName({typename:H,fieldName:u,args:h}):u;return this.modify(i,_e?((m={})[_e]=Id,m):Id)}return!1},o.prototype.evict=function(i,u){var h=!1;return i.id&&(Fo.call(this.data,i.id)&&(h=this.delete(i.id,i.fieldName,i.args)),this instanceof ea&&this!==u&&(h=this.parent.evict(i,u)||h),(i.fieldName||h)&&this.group.dirty(i.id,i.fieldName||"__exists")),h},o.prototype.clear=function(){this.replace(null)},o.prototype.extract=function(){var i=this,u=this.toObject(),h=[];return this.getRootIdSet().forEach(function(m){Fo.call(i.policies.rootTypenamesById,m)||h.push(m)}),h.length&&(u.__META={extraRootIds:h.sort()}),u},o.prototype.replace=function(i){var u=this;if(Object.keys(this.data).forEach(function(D){i&&Fo.call(i,D)||u.delete(D)}),i){var h=i.__META,m=ze(i,["__META"]);Object.keys(m).forEach(function(D){u.merge(D,m[D])}),h&&h.extraRootIds.forEach(this.retain,this)}},o.prototype.retain=function(i){return this.rootIds[i]=(this.rootIds[i]||0)+1},o.prototype.release=function(i){if(this.rootIds[i]>0){var u=--this.rootIds[i];return u||delete this.rootIds[i],u}return 0},o.prototype.getRootIdSet=function(i){return void 0===i&&(i=new Set),Object.keys(this.rootIds).forEach(i.add,i),this instanceof ea?this.parent.getRootIdSet(i):Object.keys(this.policies.rootTypenamesById).forEach(i.add,i),i},o.prototype.gc=function(){var i=this,u=this.getRootIdSet(),h=this.toObject();u.forEach(function(H){Fo.call(h,H)&&(Object.keys(i.findChildRefIds(H)).forEach(u.add,u),delete h[H])});var m=Object.keys(h);if(m.length){for(var D=this;D instanceof ea;)D=D.parent;m.forEach(function(H){return D.delete(H)})}return m},o.prototype.findChildRefIds=function(i){if(!Fo.call(this.refs,i)){var u=this.refs[i]=Object.create(null),h=this.data[i];if(!h)return u;var m=new Set([h]);m.forEach(function(D){Pr(D)&&(u[D.__ref]=!0),In(D)&&Object.keys(D).forEach(function(H){var _e=D[H];In(_e)&&m.add(_e)})})}return this.refs[i]},o.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},o}(),ql=function(){function o(i,u){void 0===u&&(u=null),this.caching=i,this.parent=u,this.d=null,this.resetCaching()}return o.prototype.resetCaching=function(){this.d=this.caching?Xl():null,this.keyMaker=new nt(Ot)},o.prototype.depend=function(i,u){if(this.d){this.d(Ya(i,u));var h=So(u);h!==u&&this.d(Ya(i,h)),this.parent&&this.parent.depend(i,u)}},o.prototype.dirty=function(i,u){this.d&&this.d.dirty(Ya(i,u),"__exists"===u?"forget":"setDirty")},o}();function Ya(o,i){return i+"#"+o}function el(o,i){yu(o)&&o.group.depend(i,"__exists")}!function(o){var i=function(u){function h(m){var H=m.resultCaching,Ve=m.seed,Ee=u.call(this,m.policies,new ql(void 0===H||H))||this;return Ee.stump=new Xa(Ee),Ee.storageTrie=new nt(Ot),Ve&&Ee.replace(Ve),Ee}return we(h,u),h.prototype.addLayer=function(m,D){return this.stump.addLayer(m,D)},h.prototype.removeLayer=function(){return this},h.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},h}(o);o.Root=i}(Qa||(Qa={}));var ea=function(o){function i(u,h,m,D){var H=o.call(this,h.policies,D)||this;return H.id=u,H.parent=h,H.replay=m,H.group=D,m(H),H}return we(i,o),i.prototype.addLayer=function(u,h){return new i(u,this,h,this.group)},i.prototype.removeLayer=function(u){var h=this,m=this.parent.removeLayer(u);return u===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(D){var H=h.data[D],_e=m.lookup(D);_e?H?H!==_e&&Object.keys(H).forEach(function(Ve){Oi(H[Ve],_e[Ve])||h.group.dirty(D,Ve)}):(h.group.dirty(D,"__exists"),Object.keys(_e).forEach(function(Ve){h.group.dirty(D,Ve)})):h.delete(D)}),m):m===this.parent?this:m.addLayer(this.id,this.replay)},i.prototype.toObject=function(){return ye(ye({},this.parent.toObject()),this.data)},i.prototype.findChildRefIds=function(u){var h=this.parent.findChildRefIds(u);return Fo.call(this.data,u)?ye(ye({},h),o.prototype.findChildRefIds.call(this,u)):h},i.prototype.getStorage=function(){for(var u=this.parent;u.parent;)u=u.parent;return u.getStorage.apply(u,arguments)},i}(Qa),Xa=function(o){function i(u){return o.call(this,"EntityStore.Stump",u,function(){},new ql(u.group.caching,u.group))||this}return we(i,o),i.prototype.removeLayer=function(){return this},i.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},i}(ea);function br(o,i,u){var h=o[u],m=i[u];return Oi(h,m)?h:m}function yu(o){return!!(o instanceof Qa&&o.group.caching)}var Od,ec,Dd=function(){function o(){this.known=new(gn?WeakSet:Set),this.pool=new nt(Ot),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return o.prototype.isKnown=function(i){return In(i)&&this.known.has(i)},o.prototype.pass=function(i){if(In(i)){var u=function O_(o){return In(o)?xr(o)?o.slice(0):ye({__proto__:Object.getPrototypeOf(o)},o):o}(i);return this.passes.set(u,i),u}return i},o.prototype.admit=function(i){var u=this;if(In(i)){var h=this.passes.get(i);if(h)return h;switch(Object.getPrototypeOf(i)){case Array.prototype:if(this.known.has(i))return i;var D=i.map(this.admit,this);return(H=this.pool.lookupArray(D)).array||this.known.add(H.array=D),H.array;case null:case Object.prototype:if(this.known.has(i))return i;var _e=Object.getPrototypeOf(i),Ve=[_e],Ee=this.sortedKeys(i);Ve.push(Ee.json);var H,tt=Ve.length;if(Ee.sorted.forEach(function(Tt){Ve.push(u.admit(i[Tt]))}),!(H=this.pool.lookupArray(Ve)).object){var pt=H.object=Object.create(_e);this.known.add(pt),Ee.sorted.forEach(function(Tt,Vt){pt[Tt]=Ve[tt+Vt]})}return H.object}}return i},o.prototype.sortedKeys=function(i){var u=Object.keys(i),h=this.pool.lookupArray(u);if(!h.keys){u.sort();var m=JSON.stringify(u);(h.keys=this.keysByJSON.get(m))||this.keysByJSON.set(m,h.keys={sorted:u,json:m})}return h.keys},o}(),Ja=Object.assign(function(o){if(In(o)){void 0===Od&&Za();var i=Od.admit(o),u=ec.get(i);return void 0===u&&ec.set(i,u=JSON.stringify(i)),u}return JSON.stringify(o)},{reset:Za});function Za(){Od=new Dd,ec=new(Ot?WeakMap:Map)}function Oh(o){return[o.selectionSet,o.objectOrReference,o.context,o.context.canonizeResults]}var Vg=function(){function o(i){var u=this;this.knownResults=new(Ot?WeakMap:Map),this.config=so(i,{addTypename:!1!==i.addTypename,canonizeResults:Dh(i)}),this.canon=i.canon||new Dd,this.executeSelectionSet=Ju(function(h){var m,D=h.context.canonizeResults,H=Oh(h);H[3]=!D;var _e=(m=u.executeSelectionSet).peek.apply(m,H);return _e?D?ye(ye({},_e),{result:u.canon.admit(_e.result)}):_e:(el(h.context.store,h.enclosingRef.__ref),u.execSelectionSetImpl(h))},{max:this.config.resultCacheMaxSize,keyArgs:Oh,makeCacheKey:function(h,m,D,H){if(yu(D.store))return D.store.makeCacheKey(h,Pr(m)?m.__ref:m,D.varString,H)}}),this.executeSubSelectedArray=Ju(function(h){return el(h.context.store,h.enclosingRef.__ref),u.execSubSelectedArrayImpl(h)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(h){var m=h.field,D=h.array,H=h.context;if(yu(H.store))return H.store.makeCacheKey(m,D,H.varString)}})}return o.prototype.resetCanon=function(){this.canon=new Dd},o.prototype.diffQueryAgainstStore=function(i){var u=i.store,h=i.query,m=i.rootId,D=void 0===m?"ROOT_QUERY":m,H=i.variables,_e=i.returnPartialData,Ve=void 0===_e||_e,Ee=i.canonizeResults,tt=void 0===Ee?this.config.canonizeResults:Ee,pt=this.config.cache.policies;H=ye(ye({},zo(function ss(o){var i=Zi(o);return zt(i&&"query"===i.operation,74),i}(h))),H);var Vt,ht=Yn(D),Tt=this.executeSelectionSet({selectionSet:Or(h).selectionSet,objectOrReference:ht,enclosingRef:ht,context:ye({store:u,query:h,policies:pt,variables:H,varString:Ja(H),canonizeResults:tt},xs(h,this.config.fragments))});if(Tt.missing&&(Vt=[new Th($g(Tt.missing),Tt.missing,h,H)],!Ve))throw Vt[0];return{result:Tt.result,complete:!Vt,missing:Vt}},o.prototype.isFresh=function(i,u,h,m){if(yu(m.store)&&this.knownResults.get(i)===h){var D=this.executeSelectionSet.peek(h,u,m,this.canon.isKnown(i));if(D&&i===D.result)return!0}return!1},o.prototype.execSelectionSetImpl=function(i){var u=this,h=i.selectionSet,m=i.objectOrReference,D=i.enclosingRef,H=i.context;if(Pr(m)&&!H.policies.rootTypenamesById[m.__ref]&&!H.store.has(m.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(m.__ref," object")};var ht,_e=H.variables,Ve=H.policies,tt=H.store.getFieldValue(m,"__typename"),pt=[],Tt=new _o;function Vt(nn,Rn){var kn;return nn.missing&&(ht=Tt.merge(ht,((kn={})[Rn]=nn.missing,kn))),nn.result}this.config.addTypename&&"string"==typeof tt&&!Ve.rootIdsByTypename[tt]&&pt.push({__typename:tt});var Jt=new Set(h.selections);Jt.forEach(function(nn){var Rn,kn;if(Lt(nn,_e))if(Ro(nn)){var Un=Ve.readField({fieldName:nn.name.value,field:nn,variables:H.variables,from:m},H),Ir=Do(nn);void 0===Un?Ps.added(nn)||(ht=Tt.merge(ht,((Rn={})[Ir]="Can't find field '".concat(nn.name.value,"' on ").concat(Pr(m)?m.__ref+" object":"object "+JSON.stringify(m,null,2)),Rn))):xr(Un)?Un=Vt(u.executeSubSelectedArray({field:nn,array:Un,enclosingRef:D,context:H}),Ir):nn.selectionSet?null!=Un&&(Un=Vt(u.executeSelectionSet({selectionSet:nn.selectionSet,objectOrReference:Un,enclosingRef:Pr(Un)?Un:D,context:H}),Ir)):H.canonizeResults&&(Un=u.canon.pass(Un)),void 0!==Un&&pt.push(((kn={})[Ir]=Un,kn))}else{var Fr=Hi(nn,H.lookupFragment);if(!Fr&&nn.kind===ke.FRAGMENT_SPREAD)throw fn(7,nn.name.value);Fr&&Ve.fragmentMatches(Fr,tt)&&Fr.selectionSet.selections.forEach(Jt.add,Jt)}});var Rt={result:Bi(pt),missing:ht},dn=H.canonizeResults?this.canon.admit(Rt):Rt;return dn.result&&this.knownResults.set(dn.result,h),dn},o.prototype.execSubSelectedArrayImpl=function(i){var _e,u=this,h=i.field,m=i.array,D=i.enclosingRef,H=i.context,Ve=new _o;function Ee(tt,pt){var ht;return tt.missing&&(_e=Ve.merge(_e,((ht={})[pt]=tt.missing,ht))),tt.result}return h.selectionSet&&(m=m.filter(H.store.canRead)),m=m.map(function(tt,pt){return null===tt?null:xr(tt)?Ee(u.executeSubSelectedArray({field:h,array:tt,enclosingRef:D,context:H}),pt):h.selectionSet?Ee(u.executeSelectionSet({selectionSet:h.selectionSet,objectOrReference:tt,enclosingRef:Pr(tt)?tt:D,context:H}),pt):tt}),{result:H.canonizeResults?this.canon.admit(m):m,missing:_e}},o}();function $g(o){try{JSON.stringify(o,function(i,u){if("string"==typeof u)throw u;return u})}catch(i){return i}}var Ad=new bh,Zt=new WeakMap;function kr(o){var i=Zt.get(o);return i||Zt.set(o,i={vars:new Set,dep:Xl()}),i}function Pd(o){kr(o).vars.forEach(function(i){return i.forgetCache(o)})}function bi(o){var i=new Set,u=new Set,h=function(D){if(arguments.length>0){if(o!==D){o=D,i.forEach(function(Ve){kr(Ve).dep.dirty(h),function Ph(o){o.broadcastWatches&&o.broadcastWatches()}(Ve)});var H=Array.from(u);u.clear(),H.forEach(function(Ve){return Ve(o)})}}else{var _e=Ad.getValue();_e&&(m(_e),kr(_e).dep(h))}return o};h.onNextChange=function(D){return u.add(D),function(){u.delete(D)}};var m=h.attachCache=function(D){return i.add(D),kr(D).vars.add(h),h};return h.forgetCache=function(D){return i.delete(D)},h}var Cu=Object.create(null);function ys(o){var i=JSON.stringify(o);return Cu[i]||(Cu[i]=Object.create(null))}function tc(o){var i=ys(o);return i.keyFieldsFn||(i.keyFieldsFn=function(u,h){var m=function(H,_e){return h.readField(_e,H)},D=h.keyObject=Md(o,function(H){var _e=po(h.storeObject,H,m);return void 0===_e&&u!==h.storeObject&&Fo.call(u,H[0])&&(_e=po(u,H,wd)),zt(void 0!==_e,2,H.join("."),u),_e});return"".concat(h.typename,":").concat(JSON.stringify(D))})}function nc(o){var i=ys(o);return i.keyArgsFn||(i.keyArgsFn=function(u,h){var m=h.field,D=h.variables,H=h.fieldName,_e=Md(o,function(Ee){var tt=Ee[0],pt=tt.charAt(0);if("@"!==pt)if("$"!==pt){if(u)return po(u,Ee)}else{var Jt=tt.slice(1);if(D&&Fo.call(D,Jt)){var ln=Ee.slice(0);return ln[0]=Jt,po(D,ln)}}else if(m&&mi(m.directives)){var ht=tt.slice(1),Tt=m.directives.find(function(Rt){return Rt.name.value===ht}),Vt=Tt&&hs(Tt,D);return Vt&&po(Vt,Ee.slice(1))}}),Ve=JSON.stringify(_e);return(u||"{}"!==Ve)&&(H+=":"+Ve),H})}function Md(o,i){var u=new _o;return Kg(o).reduce(function(h,m){var D,H=i(m);if(void 0!==H){for(var _e=m.length-1;_e>=0;--_e)(D={})[m[_e]]=H,H=D;h=u.merge(h,H)}return h},Object.create(null))}function Kg(o){var i=ys(o);if(!i.paths){var u=i.paths=[],h=[];o.forEach(function(m,D){xr(m)?(Kg(m).forEach(function(H){return u.push(h.concat(H))}),h.length=0):(h.push(m),xr(o[D+1])||(u.push(h.slice(0)),h.length=0))})}return i.paths}function wd(o,i){return o[i]}function po(o,i,u){return u=u||wd,ta(i.reduce(function h(m,D){return xr(m)?m.map(function(H){return h(H,D)}):m&&u(m,D)},o))}function ta(o){return In(o)?xr(o)?o.map(ta):Md(Object.keys(o).sort(),function(i){return po(o,i)}):o}function rc(o){return void 0!==o.args?o.args:o.field?hs(o.field,o.variables):null}wo.setStringify(Ja);var ks=function(){},na=function(o,i){return i.fieldName},Mh=function(o,i,u){return(0,u.mergeObjects)(o,i)},Rd=function(o,i){return i},Hg=function(){function o(i){this.config=i,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=ye({dataIdFromObject:Zl},i),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),i.possibleTypes&&this.addPossibleTypes(i.possibleTypes),i.typePolicies&&this.addTypePolicies(i.typePolicies)}return o.prototype.identify=function(i,u){var h,m=this,D=u&&(u.typename||(null===(h=u.storeObject)||void 0===h?void 0:h.__typename))||i.__typename;if(D===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var Ve,H=u&&u.storeObject||i,_e=ye(ye({},u),{typename:D,storeObject:H,readField:u&&u.readField||function(){var ht=tl(arguments,H);return m.readField(ht,{store:m.cache.data,variables:ht.variables})}}),Ee=D&&this.getTypePolicy(D),tt=Ee&&Ee.keyFn||this.config.dataIdFromObject;tt;){var pt=tt(ye(ye({},i),H),_e);if(!xr(pt)){Ve=pt;break}tt=tc(pt)}return Ve=Ve?String(Ve):void 0,_e.keyObject?[Ve,_e.keyObject]:[Ve]},o.prototype.addTypePolicies=function(i){var u=this;Object.keys(i).forEach(function(h){var m=i[h],D=m.queryType,H=m.mutationType,_e=m.subscriptionType,Ve=ze(m,["queryType","mutationType","subscriptionType"]);D&&u.setRootTypename("Query",h),H&&u.setRootTypename("Mutation",h),_e&&u.setRootTypename("Subscription",h),Fo.call(u.toBeAdded,h)?u.toBeAdded[h].push(Ve):u.toBeAdded[h]=[Ve]})},o.prototype.updateTypePolicy=function(i,u){var h=this,m=this.getTypePolicy(i),D=u.keyFields,H=u.fields;function _e(Ve,Ee){Ve.merge="function"==typeof Ee?Ee:!0===Ee?Mh:!1===Ee?Rd:Ve.merge}_e(m,u.merge),m.keyFn=!1===D?ks:xr(D)?tc(D):"function"==typeof D?D:m.keyFn,H&&Object.keys(H).forEach(function(Ve){var Ee=h.getFieldPolicy(i,Ve,!0),tt=H[Ve];if("function"==typeof tt)Ee.read=tt;else{var pt=tt.keyArgs,ht=tt.read,Tt=tt.merge;Ee.keyFn=!1===pt?na:xr(pt)?nc(pt):"function"==typeof pt?pt:Ee.keyFn,"function"==typeof ht&&(Ee.read=ht),_e(Ee,Tt)}Ee.read&&Ee.merge&&(Ee.keyFn=Ee.keyFn||na)})},o.prototype.setRootTypename=function(i,u){void 0===u&&(u=i);var h="ROOT_"+i.toUpperCase(),m=this.rootTypenamesById[h];u!==m&&(zt(!m||m===i,3,i),m&&delete this.rootIdsByTypename[m],this.rootIdsByTypename[u]=h,this.rootTypenamesById[h]=u)},o.prototype.addPossibleTypes=function(i){var u=this;this.usingPossibleTypes=!0,Object.keys(i).forEach(function(h){u.getSupertypeSet(h,!0),i[h].forEach(function(m){u.getSupertypeSet(m,!0).add(h);var D=m.match(za);(!D||D[0]!==m)&&u.fuzzySubtypes.set(m,new RegExp(m))})})},o.prototype.getTypePolicy=function(i){var u=this;if(!Fo.call(this.typePolicies,i)){var h=this.typePolicies[i]=Object.create(null);h.fields=Object.create(null);var m=this.supertypeMap.get(i);!m&&this.fuzzySubtypes.size&&(m=this.getSupertypeSet(i,!0),this.fuzzySubtypes.forEach(function(H,_e){if(H.test(i)){var Ve=u.supertypeMap.get(_e);Ve&&Ve.forEach(function(Ee){return m.add(Ee)})}})),m&&m.size&&m.forEach(function(H){var _e=u.getTypePolicy(H),Ve=_e.fields,Ee=ze(_e,["fields"]);Object.assign(h,Ee),Object.assign(h.fields,Ve)})}var D=this.toBeAdded[i];return D&&D.length&&D.splice(0).forEach(function(H){u.updateTypePolicy(i,H)}),this.typePolicies[i]},o.prototype.getFieldPolicy=function(i,u,h){if(i){var m=this.getTypePolicy(i).fields;return m[u]||h&&(m[u]=Object.create(null))}},o.prototype.getSupertypeSet=function(i,u){var h=this.supertypeMap.get(i);return!h&&u&&this.supertypeMap.set(i,h=new Set),h},o.prototype.fragmentMatches=function(i,u,h,m){var D=this;if(!i.typeCondition)return!0;if(!u)return!1;var H=i.typeCondition.name.value;if(u===H)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(H))for(var _e=this.getSupertypeSet(u,!0),Ve=[_e],Ee=function(Vt){var Jt=D.getSupertypeSet(Vt,!1);Jt&&Jt.size&&Ve.indexOf(Jt)<0&&Ve.push(Jt)},tt=!(!h||!this.fuzzySubtypes.size),ht=0;ht<Ve.length;++ht){var Tt=Ve[ht];if(Tt.has(H))return _e.has(H)||_e.add(H),!0;Tt.forEach(Ee),tt&&ht===Ve.length-1&&bd(i.selectionSet,h,m)&&(tt=!1,this.fuzzySubtypes.forEach(function(Vt,Jt){var ln=u.match(Vt);ln&&ln[0]===u&&Ee(Jt)}))}return!1},o.prototype.hasKeyArgs=function(i,u){var h=this.getFieldPolicy(i,u,!1);return!(!h||!h.keyFn)},o.prototype.getStoreFieldName=function(i){var D,u=i.typename,h=i.fieldName,m=this.getFieldPolicy(u,h,!1),H=m&&m.keyFn;if(H&&u)for(var _e={typename:u,fieldName:h,field:i.field||null,variables:i.variables},Ve=rc(i);H;){var Ee=H(Ve,_e);if(!xr(Ee)){D=Ee||h;break}H=nc(Ee)}return void 0===D&&(D=i.field?function Ks(o,i){var u=null;o.directives&&(u={},o.directives.forEach(function(m){u[m.name.value]={},m.arguments&&m.arguments.forEach(function(D){return lo(u[m.name.value],D.name,D.value,i)})}));var h=null;return o.arguments&&o.arguments.length&&(h={},o.arguments.forEach(function(m){return lo(h,m.name,m.value,i)})),wo(o.name.value,h,u)}(i.field,i.variables):wo(h,rc(i))),!1===D?h:h===So(D)?D:h+":"+D},o.prototype.readField=function(i,u){var h=i.from;if(h&&(i.field||i.fieldName)){if(void 0===i.typename){var D=u.store.getFieldValue(h,"__typename");D&&(i.typename=D)}var H=this.getStoreFieldName(i),_e=So(H),Ve=u.store.getFieldValue(h,H),Ee=this.getFieldPolicy(i.typename,_e,!1),tt=Ee&&Ee.read;if(tt){var pt=wh(this,h,i,u,u.store.getStorage(Pr(h)?h.__ref:h,H));return Ad.withValue(this.cache,tt,[Ve,pt])}return Ve}},o.prototype.getReadFunction=function(i,u){var h=this.getFieldPolicy(i,u,!1);return h&&h.read},o.prototype.getMergeFunction=function(i,u,h){var m=this.getFieldPolicy(i,u,!1),D=m&&m.merge;return!D&&h&&(D=(m=this.getTypePolicy(h))&&m.merge),D},o.prototype.runMergeFunction=function(i,u,h,m,D){var H=h.field,_e=h.typename,Ve=h.merge;return Ve===Mh?ic(m.store)(i,u):Ve===Rd?u:(m.overwrite&&(i=void 0),Ve(i,u,wh(this,void 0,{typename:_e,fieldName:H.name.value,field:H,variables:m.variables},m,D||Object.create(null))))},o}();function wh(o,i,u,h,m){var D=o.getStoreFieldName(u),H=So(D),_e=u.variables||h.variables,Ve=h.store,Ee=Ve.toReference,tt=Ve.canRead;return{args:rc(u),field:u.field||null,fieldName:H,storeFieldName:D,variables:_e,isReference:Pr,toReference:Ee,storage:m,cache:o.cache,canRead:tt,readField:function(){return o.readField(tl(arguments,i,_e),h)},mergeObjects:ic(h.store)}}function tl(o,i,u){var H,h=o[0];return"string"==typeof h?H={fieldName:h,from:o.length>1?o[1]:i}:(H=ye({},h),Fo.call(H,"from")||(H.from=i)),void 0===H.variables&&(H.variables=u),H}function ic(o){return function(i,u){if(xr(i)||xr(u))throw fn(6);if(In(i)&&In(u)){var h=o.getFieldValue(i,"__typename"),m=o.getFieldValue(u,"__typename");if(h&&m&&h!==m)return u;if(Pr(i)&&Na(u))return o.merge(i.__ref,u),i;if(Na(i)&&Pr(u))return o.merge(i,u.__ref),u;if(Na(i)&&Na(u))return ye(ye({},i),u)}return u}}function nl(o,i,u){var h="".concat(i).concat(u),m=o.flavors.get(h);return m||o.flavors.set(h,m=o.clientOnly===i&&o.deferred===u?o:ye(ye({},o),{clientOnly:i,deferred:u})),m}var vi,oc=function(){function o(i,u,h){this.cache=i,this.reader=u,this.fragments=h}return o.prototype.writeToStore=function(i,u){var h=this,m=u.query,D=u.result,H=u.dataId,_e=u.variables,Ve=u.overwrite,Ee=Zi(m),tt=function jg(){return new _o}();_e=ye(ye({},zo(Ee)),_e);var pt=ye(ye({store:i,written:Object.create(null),merge:function(Tt,Vt){return tt.merge(Tt,Vt)},variables:_e,varString:Ja(_e)},xs(m,this.fragments)),{overwrite:!!Ve,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),ht=this.processSelectionSet({result:D||Object.create(null),dataId:H,selectionSet:Ee.selectionSet,mergeTree:{map:new Map},context:pt});if(!Pr(ht))throw fn(9,D);return pt.incomingById.forEach(function(Tt,Vt){var Jt=Tt.storeObject,ln=Tt.mergeTree,dn=Yn(Vt);if(ln&&ln.map.size){var nn=h.applyMerges(ln,dn,Jt,pt);if(Pr(nn))return;Jt=nn}i.merge(Vt,Jt)}),i.retain(ht.__ref),ht},o.prototype.processSelectionSet=function(i){var u=this,h=i.dataId,m=i.result,D=i.selectionSet,H=i.context,_e=i.mergeTree,Ve=this.cache.policies,Ee=Object.create(null),tt=h&&Ve.rootTypenamesById[h]||ua(m,D,H.fragmentMap)||h&&H.store.get(h,"__typename");"string"==typeof tt&&(Ee.__typename=tt);var pt=function(){var nn=tl(arguments,Ee,H.variables);if(Pr(nn.from)){var Rn=H.incomingById.get(nn.from.__ref);if(Rn){var kn=Ve.readField(ye(ye({},nn),{from:Rn.storeObject}),H);if(void 0!==kn)return kn}}return Ve.readField(nn,H)},ht=new Set;this.flattenFields(D,m,H,tt).forEach(function(nn,Rn){var kn,Un=Do(Rn),Ir=m[Un];if(ht.add(Rn),void 0!==Ir){var Fr=Ve.getStoreFieldName({typename:tt,fieldName:Rn.name.value,field:Rn,variables:nn.variables}),Ki=Nd(_e,Fr),ki=u.processFieldValue(Ir,Rn,Rn.selectionSet?nl(nn,!1,!1):nn,Ki),gi=void 0;Rn.selectionSet&&(Pr(ki)||Na(ki))&&(gi=pt("__typename",ki));var Ti=Ve.getMergeFunction(tt,Rn.name.value,gi);Ti?Ki.info={field:Rn,typename:tt,merge:Ti}:Ld(_e,Fr),Ee=nn.merge(Ee,((kn={})[Fr]=ki,kn))}});try{var Tt=Ve.identify(m,{typename:tt,selectionSet:D,fragmentMap:H.fragmentMap,storeObject:Ee,readField:pt}),Jt=Tt[1];h=h||Tt[0],Jt&&(Ee=H.merge(Ee,Jt))}catch(nn){if(!h)throw nn}if("string"==typeof h){var ln=Yn(h),Rt=H.written[h]||(H.written[h]=[]);if(Rt.indexOf(D)>=0||(Rt.push(D),this.reader&&this.reader.isFresh(m,ln,D,H)))return ln;var dn=H.incomingById.get(h);return dn?(dn.storeObject=H.merge(dn.storeObject,Ee),dn.mergeTree=rl(dn.mergeTree,_e),ht.forEach(function(nn){return dn.fieldNodeSet.add(nn)})):H.incomingById.set(h,{storeObject:Ee,mergeTree:il(_e)?void 0:_e,fieldNodeSet:ht}),ln}return Ee},o.prototype.processFieldValue=function(i,u,h,m){var D=this;return u.selectionSet&&null!==i?xr(i)?i.map(function(H,_e){var Ve=D.processFieldValue(H,u,h,Nd(m,_e));return Ld(m,_e),Ve}):this.processSelectionSet({result:i,selectionSet:u.selectionSet,context:h,mergeTree:m}):i},o.prototype.flattenFields=function(i,u,h,m){void 0===m&&(m=ua(u,i,h.fragmentMap));var D=new Map,H=this.cache.policies,_e=new nt(!1);return function Ve(Ee,tt){var pt=_e.lookup(Ee,tt.clientOnly,tt.deferred);pt.visited||(pt.visited=!0,Ee.selections.forEach(function(ht){if(Lt(ht,h.variables)){var Tt=tt.clientOnly,Vt=tt.deferred;if(!(Tt&&Vt)&&mi(ht.directives)&&ht.directives.forEach(function(Rt){var dn=Rt.name.value;if("client"===dn&&(Tt=!0),"defer"===dn){var nn=hs(Rt,h.variables);(!nn||!1!==nn.if)&&(Vt=!0)}}),Ro(ht)){var Jt=D.get(ht);Jt&&(Tt=Tt&&Jt.clientOnly,Vt=Vt&&Jt.deferred),D.set(ht,nl(h,Tt,Vt))}else{var ln=Hi(ht,h.lookupFragment);if(!ln&&ht.kind===ke.FRAGMENT_SPREAD)throw fn(11,ht.name.value);ln&&H.fragmentMatches(ln,m,u,h.variables)&&Ve(ln.selectionSet,nl(h,Tt,Vt))}}}))}(i,h),D},o.prototype.applyMerges=function(i,u,h,m,D){var H,_e=this;if(i.map.size&&!Pr(h)){var Ve=xr(h)||!Pr(u)&&!Na(u)?void 0:u,Ee=h;Ve&&!D&&(D=[Pr(Ve)?Ve.__ref:Ve]);var tt,pt=function(ht,Tt){return xr(ht)?"number"==typeof Tt?ht[Tt]:void 0:m.store.getFieldValue(ht,String(Tt))};i.map.forEach(function(ht,Tt){var Vt=pt(Ve,Tt),Jt=pt(Ee,Tt);if(void 0!==Jt){D&&D.push(Tt);var ln=_e.applyMerges(ht,Vt,Jt,m,D);ln!==Jt&&(tt=tt||new Map).set(Tt,ln),D&&zt(D.pop()===Tt)}}),tt&&(h=xr(Ee)?Ee.slice(0):ye({},Ee),tt.forEach(function(ht,Tt){h[Tt]=ht}))}return i.info?this.cache.policies.runMergeFunction(u,h,i.info,m,D&&(H=m.store).getStorage.apply(H,D)):h},o}(),Rh=[];function Nd(o,i){var u=o.map;return u.has(i)||u.set(i,Rh.pop()||{map:new Map}),u.get(i)}function rl(o,i){if(o===i||!i||il(i))return o;if(!o||il(o))return i;var u=o.info&&i.info?ye(ye({},o.info),i.info):o.info||i.info,h=o.map.size&&i.map.size,D={info:u,map:h?new Map:o.map.size?o.map:i.map};if(h){var H=new Set(i.map.keys());o.map.forEach(function(_e,Ve){D.map.set(Ve,rl(_e,i.map.get(Ve))),H.delete(Ve)}),H.forEach(function(_e){D.map.set(_e,rl(i.map.get(_e),o.map.get(_e)))})}return D}function il(o){return!o||!(o.info||o.map.size)}function Ld(o,i){var u=o.map,h=u.get(i);h&&il(h)&&(Rh.push(h),u.delete(i))}function ol(o){return!!o&&o<7}function Go(o,i,u,h){var m=i.data,D=ze(i,["data"]),H=u.data;return Oi(D,ze(u,["data"]))&&ra(Or(o).selectionSet,m,H,{fragmentMap:hr(As(o)),variables:h})}function ra(o,i,u,h){if(i===u)return!0;var m=new Set;return o.selections.every(function(D){if(m.has(D)||(m.add(D),!Lt(D,h.variables))||wi(D))return!0;if(Ro(D)){var H=Do(D),_e=i&&i[H],Ve=u&&u[H],Ee=D.selectionSet;if(!Ee)return Oi(_e,Ve);var tt=Array.isArray(_e),pt=Array.isArray(Ve);if(tt!==pt)return!1;if(tt&&pt){var ht=_e.length;if(Ve.length!==ht)return!1;for(var Tt=0;Tt<ht;++Tt)if(!ra(Ee,_e[Tt],Ve[Tt],h))return!1;return!0}return ra(Ee,_e,Ve,h)}var Vt=Hi(D,h.fragmentMap);return Vt?!!wi(Vt)||ra(Vt.selectionSet,i,u,h):void 0})}function wi(o){return!!o.directives&&o.directives.some(Gg)}function Gg(o){return"nonreactive"===o.name.value}!function(o){function i(u){void 0===u&&(u={});var h=o.call(this)||this;return h.watches=new Set,h.addTypenameTransform=new Lo(Ps),h.assumeImmutableResults=!0,h.makeVar=bi,h.txCount=0,h.config=function Xo(o){return so(Eu,o)}(u),h.addTypename=!!h.config.addTypename,h.policies=new Hg({cache:h,dataIdFromObject:h.config.dataIdFromObject,possibleTypes:h.config.possibleTypes,typePolicies:h.config.typePolicies}),h.init(),h}we(i,o),i.prototype.init=function(){var u=this.data=new Qa.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=u.stump,this.resetResultCache()},i.prototype.resetResultCache=function(u){var h=this,m=this.storeReader,D=this.config.fragments;this.storeWriter=new oc(this,this.storeReader=new Vg({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Dh(this.config),canon:u?void 0:m&&m.canon,fragments:D}),D),this.maybeBroadcastWatch=Ju(function(H,_e){return h.broadcastWatch(H,_e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(H){var _e=H.optimistic?h.optimisticData:h.data;if(yu(_e))return _e.makeCacheKey(H.query,H.callback,Ja({optimistic:H.optimistic,id:H.id,variables:H.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(H){return H.resetCaching()})},i.prototype.restore=function(u){return this.init(),u&&this.data.replace(u),this},i.prototype.extract=function(u){return void 0===u&&(u=!1),(u?this.optimisticData:this.data).extract()},i.prototype.read=function(u){var h=u.returnPartialData,m=void 0!==h&&h;try{return this.storeReader.diffQueryAgainstStore(ye(ye({},u),{store:u.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:m})).result||null}catch(D){if(D instanceof Th)return null;throw D}},i.prototype.write=function(u){try{return++this.txCount,this.storeWriter.writeToStore(this.data,u)}finally{! --this.txCount&&!1!==u.broadcast&&this.broadcastWatches()}},i.prototype.modify=function(u){if(Fo.call(u,"id")&&!u.id)return!1;var h=u.optimistic?this.optimisticData:this.data;try{return++this.txCount,h.modify(u.id||"ROOT_QUERY",u.fields)}finally{! --this.txCount&&!1!==u.broadcast&&this.broadcastWatches()}},i.prototype.diff=function(u){return this.storeReader.diffQueryAgainstStore(ye(ye({},u),{store:u.optimistic?this.optimisticData:this.data,rootId:u.id||"ROOT_QUERY",config:this.config}))},i.prototype.watch=function(u){var h=this;return this.watches.size||function Ah(o){kr(o).vars.forEach(function(i){return i.attachCache(o)})}(this),this.watches.add(u),u.immediate&&this.maybeBroadcastWatch(u),function(){h.watches.delete(u)&&!h.watches.size&&Pd(h),h.maybeBroadcastWatch.forget(u)}},i.prototype.gc=function(u){Ja.reset();var h=this.optimisticData.gc();return u&&!this.txCount&&(u.resetResultCache?this.resetResultCache(u.resetResultIdentities):u.resetResultIdentities&&this.storeReader.resetCanon()),h},i.prototype.retain=function(u,h){return(h?this.optimisticData:this.data).retain(u)},i.prototype.release=function(u,h){return(h?this.optimisticData:this.data).release(u)},i.prototype.identify=function(u){if(Pr(u))return u.__ref;try{return this.policies.identify(u)[0]}catch{}},i.prototype.evict=function(u){if(!u.id){if(Fo.call(u,"id"))return!1;u=ye(ye({},u),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(u,this.data)}finally{! --this.txCount&&!1!==u.broadcast&&this.broadcastWatches()}},i.prototype.reset=function(u){var h=this;return this.init(),Ja.reset(),u&&u.discardWatches?(this.watches.forEach(function(m){return h.maybeBroadcastWatch.forget(m)}),this.watches.clear(),Pd(this)):this.broadcastWatches(),Promise.resolve()},i.prototype.removeOptimistic=function(u){var h=this.optimisticData.removeLayer(u);h!==this.optimisticData&&(this.optimisticData=h,this.broadcastWatches())},i.prototype.batch=function(u){var Ee,h=this,m=u.update,D=u.optimistic,H=void 0===D||D,_e=u.removeOptimistic,Ve=u.onWatchUpdated,tt=function(ht){var Vt=h.data,Jt=h.optimisticData;++h.txCount,ht&&(h.data=h.optimisticData=ht);try{return Ee=m(h)}finally{--h.txCount,h.data=Vt,h.optimisticData=Jt}},pt=new Set;return Ve&&!this.txCount&&this.broadcastWatches(ye(ye({},u),{onWatchUpdated:function(ht){return pt.add(ht),!1}})),"string"==typeof H?this.optimisticData=this.optimisticData.addLayer(H,tt):!1===H?tt(this.data):tt(),"string"==typeof _e&&(this.optimisticData=this.optimisticData.removeLayer(_e)),Ve&&pt.size?(this.broadcastWatches(ye(ye({},u),{onWatchUpdated:function(ht,Tt){var Vt=Ve.call(this,ht,Tt);return!1!==Vt&&pt.delete(ht),Vt}})),pt.size&&pt.forEach(function(ht){return h.maybeBroadcastWatch.dirty(ht)})):this.broadcastWatches(u),Ee},i.prototype.performTransaction=function(u,h){return this.batch({update:u,optimistic:h||null!==h})},i.prototype.transformDocument=function(u){return this.addTypenameToDocument(this.addFragmentsToDocument(u))},i.prototype.broadcastWatches=function(u){var h=this;this.txCount||this.watches.forEach(function(m){return h.maybeBroadcastWatch(m,u)})},i.prototype.addFragmentsToDocument=function(u){var h=this.config.fragments;return h?h.transform(u):u},i.prototype.addTypenameToDocument=function(u){return this.addTypename?this.addTypenameTransform.transformDocument(u):u},i.prototype.broadcastWatch=function(u,h){var m=u.lastDiff,D=this.diff(u);h&&(u.optimistic&&"string"==typeof h.optimistic&&(D.fromOptimisticTransaction=!0),h.onWatchUpdated&&!1===h.onWatchUpdated.call(this,u,D,m))||(!m||!Oi(m.result,D.result))&&u.callback(u.lastDiff=D,m)}}(Sd),function(o){o[o.loading=1]="loading",o[o.setVariables=2]="setVariables",o[o.fetchMore=3]="fetchMore",o[o.refetch=4]="refetch",o[o.poll=6]="poll",o[o.ready=7]="ready",o[o.error=8]="error"}(vi||(vi={}));var Nh=Object.assign,kd=function(o){function i(u){var h=u.queryManager,m=u.queryInfo,D=u.options,H=o.call(this,function(ln){try{var Rt=ln._subscription._observer;Rt&&!Rt.error&&(Rt.error=Lh)}catch{}var dn=!H.observers.size;H.observers.add(ln);var nn=H.last;return nn&&nn.error?ln.error&&ln.error(nn.error):nn&&nn.result&&ln.next&&ln.next(nn.result),dn&&H.reobserve().catch(function(){}),function(){H.observers.delete(ln)&&!H.observers.size&&H.tearDownQuery()}})||this;H.observers=new Set,H.subscriptions=new Set,H.queryInfo=m,H.queryManager=h,H.waitForOwnResult=Cs(D.fetchPolicy),H.isTornDown=!1;var _e=h.defaultOptions.watchQuery,Ee=(void 0===_e?{}:_e).fetchPolicy,tt=void 0===Ee?"cache-first":Ee,pt=D.fetchPolicy,ht=void 0===pt?tt:pt,Tt=D.initialFetchPolicy,Vt=void 0===Tt?"standby"===ht?tt:ht:Tt;H.options=ye(ye({},D),{initialFetchPolicy:Vt,fetchPolicy:ht}),H.queryId=m.queryId||h.generateQueryId();var Jt=Zi(H.query);return H.queryName=Jt&&Jt.name&&Jt.name.value,H}return we(i,o),Object.defineProperty(i.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),i.prototype.result=function(){var u=this;return new Promise(function(h,m){var D={next:function(_e){h(_e),u.observers.delete(D),u.observers.size||u.queryManager.removeQuery(u.queryId),setTimeout(function(){H.unsubscribe()},0)},error:m},H=u.subscribe(D)})},i.prototype.getCurrentResult=function(u){void 0===u&&(u=!0);var h=this.getLastResult(!0),m=this.queryInfo.networkStatus||h&&h.networkStatus||vi.ready,D=ye(ye({},h),{loading:ol(m),networkStatus:m}),H=this.options.fetchPolicy,_e=void 0===H?"cache-first":H;if(!Cs(_e)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var Ve=this.queryInfo.getDiff();(Ve.complete||this.options.returnPartialData)&&(D.data=Ve.result),Oi(D.data,{})&&(D.data=void 0),Ve.complete?(delete D.partial,Ve.complete&&D.networkStatus===vi.loading&&("cache-first"===_e||"cache-only"===_e)&&(D.networkStatus=vi.ready,D.loading=!1)):D.partial=!0}return u&&this.updateLastResult(D),D},i.prototype.isDifferentFromLastResult=function(u,h){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Go(this.query,this.last.result,u,this.variables):!Oi(this.last.result,u))||h&&!Oi(this.last.variables,h)},i.prototype.getLast=function(u,h){var m=this.last;if(m&&m[u]&&(!h||Oi(m.variables,this.variables)))return m[u]},i.prototype.getLastResult=function(u){return this.getLast("result",u)},i.prototype.getLastError=function(u){return this.getLast("error",u)},i.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},i.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},i.prototype.refetch=function(u){var m={pollInterval:0},D=this.options.fetchPolicy;return m.fetchPolicy="cache-and-network"===D?D:"no-cache"===D?"no-cache":"network-only",u&&!Oi(this.options.variables,u)&&(m.variables=this.options.variables=ye(ye({},this.options.variables),u)),this.queryInfo.resetLastWrite(),this.reobserve(m,vi.refetch)},i.prototype.fetchMore=function(u){var h=this,m=ye(ye({},u.query?u:ye(ye(ye(ye({},this.options),{query:this.options.query}),u),{variables:ye(ye({},this.options.variables),u.variables)})),{fetchPolicy:"no-cache"});m.query=this.transformDocument(m.query);var D=this.queryManager.generateQueryId();this.lastQuery=u.query?this.transformDocument(this.options.query):m.query;var H=this.queryInfo,_e=H.networkStatus;H.networkStatus=vi.fetchMore,m.notifyOnNetworkStatusChange&&this.observe();var Ve=new Set;return this.queryManager.fetchQuery(D,m,vi.fetchMore).then(function(Ee){return h.queryManager.removeQuery(D),H.networkStatus===vi.fetchMore&&(H.networkStatus=_e),h.queryManager.cache.batch({update:function(tt){var pt=u.updateQuery;pt?tt.updateQuery({query:h.query,variables:h.variables,returnPartialData:!0,optimistic:!1},function(ht){return pt(ht,{fetchMoreResult:Ee.data,variables:m.variables})}):tt.writeQuery({query:m.query,variables:m.variables,data:Ee.data})},onWatchUpdated:function(tt){Ve.add(tt.query)}}),Ee}).finally(function(){Ve.has(h.query)||Fd(h)})},i.prototype.subscribeToMore=function(u){var h=this,m=this.queryManager.startGraphQLSubscription({query:u.document,variables:u.variables,context:u.context}).subscribe({next:function(D){var H=u.updateQuery;H&&h.updateQuery(function(_e,Ve){return H(_e,{subscriptionData:D,variables:Ve.variables})})},error:function(D){u.onError&&u.onError(D)}});return this.subscriptions.add(m),function(){h.subscriptions.delete(m)&&m.unsubscribe()}},i.prototype.setOptions=function(u){return this.reobserve(u)},i.prototype.silentSetOptions=function(u){var h=so(this.options,u||{});Nh(this.options,h)},i.prototype.setVariables=function(u){return Oi(this.variables,u)?this.observers.size?this.result():Promise.resolve():(this.options.variables=u,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:u},vi.setVariables):Promise.resolve())},i.prototype.updateQuery=function(u){var h=this.queryManager,D=u(h.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});D&&(h.cache.writeQuery({query:this.options.query,data:D,variables:this.variables}),h.broadcastQueries())},i.prototype.startPolling=function(u){this.options.pollInterval=u,this.updatePolling()},i.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},i.prototype.applyNextFetchPolicy=function(u,h){if(h.nextFetchPolicy){var m=h.fetchPolicy,D=void 0===m?"cache-first":m,H=h.initialFetchPolicy,_e=void 0===H?D:H;"standby"===D||(h.fetchPolicy="function"==typeof h.nextFetchPolicy?h.nextFetchPolicy(D,{reason:u,options:h,observable:this,initialFetchPolicy:_e}):"variables-changed"===u?_e:h.nextFetchPolicy)}return h.fetchPolicy},i.prototype.fetch=function(u,h){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,u,h)},i.prototype.updatePolling=function(){var u=this;if(!this.queryManager.ssrMode){var m=this.pollingInfo,D=this.options.pollInterval;if(!D)return void(m&&(clearTimeout(m.timeout),delete this.pollingInfo));if(!m||m.interval!==D){zt(D,20),(m||(this.pollingInfo={})).interval=D;var _e=function(){u.pollingInfo&&(ol(u.queryInfo.networkStatus)?Ve():u.reobserve({fetchPolicy:"no-cache"===u.options.initialFetchPolicy?"no-cache":"network-only"},vi.poll).then(Ve,Ve))},Ve=function(){var Ee=u.pollingInfo;Ee&&(clearTimeout(Ee.timeout),Ee.timeout=setTimeout(_e,Ee.interval))};Ve()}}},i.prototype.updateLastResult=function(u,h){void 0===h&&(h=this.variables);var m=this.getLastError();return m&&this.last&&!Oi(h,this.last.variables)&&(m=void 0),this.last=ye({result:this.queryManager.assumeImmutableResults?u:Yt(u),variables:h},m?{error:m}:null)},i.prototype.reobserveAsConcast=function(u,h){var m=this;this.isTornDown=!1;var D=h===vi.refetch||h===vi.fetchMore||h===vi.poll,H=this.options.variables,_e=this.options.fetchPolicy,Ve=so(this.options,u||{}),Ee=D?Ve:Nh(this.options,Ve),tt=this.transformDocument(Ee.query);this.lastQuery=tt,D||(this.updatePolling(),u&&u.variables&&!Oi(u.variables,H)&&"standby"!==Ee.fetchPolicy&&Ee.fetchPolicy===_e&&(this.applyNextFetchPolicy("variables-changed",Ee),void 0===h&&(h=vi.setVariables)));var pt=tt===Ee.query?Ee:ye(ye({},Ee),{query:tt});this.waitForOwnResult&&(this.waitForOwnResult=Cs(pt.fetchPolicy));var ht=function(){m.concast===Jt&&(m.waitForOwnResult=!1)},Tt=pt.variables&&ye({},pt.variables),Vt=this.fetch(pt,h),Jt=Vt.concast,Rt={next:function(dn){ht(),m.reportResult(dn,Tt)},error:function(dn){ht(),m.reportError(dn,Tt)}};return!D&&(Vt.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=Jt,this.observer=Rt),Jt.addObserver(Rt),Jt},i.prototype.reobserve=function(u,h){return this.reobserveAsConcast(u,h).promise},i.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},i.prototype.reportResult=function(u,h){var m=this.getLastError(),D=this.isDifferentFromLastResult(u,h);(m||!u.partial||this.options.returnPartialData)&&this.updateLastResult(u,h),(m||D)&&Zn(this.observers,"next",u)},i.prototype.reportError=function(u,h){var m=ye(ye({},this.getLastResult()),{error:u,errors:u.graphQLErrors,networkStatus:vi.error,loading:!1});this.updateLastResult(m,h),Zn(this.observers,"error",this.last.error=u)},i.prototype.hasObservers=function(){return this.observers.size>0},i.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(u){return u.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},i.prototype.transformDocument=function(u){return this.queryManager.transform(u)},i}(se);function Fd(o){var i=o.options,u=i.fetchPolicy,h=i.nextFetchPolicy;return"cache-and-network"===u||"network-only"===u?o.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=h,"function"==typeof h?h.apply(this,arguments):u}}):o.reobserve()}function Lh(o){}function Cs(o){return"network-only"===o||"no-cache"===o||"standby"===o}Qr(kd);var xh=function(){function o(i){var u=i.cache,h=i.client,m=i.resolvers,D=i.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=u,h&&(this.client=h),m&&this.addResolvers(m),D&&this.setFragmentMatcher(D)}return o.prototype.addResolvers=function(i){var u=this;this.resolvers=this.resolvers||{},Array.isArray(i)?i.forEach(function(h){u.resolvers=ts(u.resolvers,h)}):this.resolvers=ts(this.resolvers,i)},o.prototype.setResolvers=function(i){this.resolvers={},this.addResolvers(i)},o.prototype.getResolvers=function(){return this.resolvers||{}},o.prototype.runResolvers=function(i){var u=i.document,h=i.remoteResult,m=i.context,D=i.variables,H=i.onlyRunForcedResolvers,_e=void 0!==H&&H;return Ye(this,void 0,void 0,function(){return be(this,function(Ve){return u?[2,this.resolveDocument(u,h.data,m,D,this.fragmentMatcher,_e).then(function(Ee){return ye(ye({},h),{data:Ee.result})})]:[2,h]})})},o.prototype.setFragmentMatcher=function(i){this.fragmentMatcher=i},o.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},o.prototype.clientQuery=function(i){return Qt(["client"],i)&&this.resolvers?i:null},o.prototype.serverQuery=function(i){return Gs(i)},o.prototype.prepareContext=function(i){var u=this.cache;return ye(ye({},i),{cache:u,getCacheKey:function(h){return u.identify(h)}})},o.prototype.addExportedVariables=function(i,u,h){return void 0===u&&(u={}),void 0===h&&(h={}),Ye(this,void 0,void 0,function(){return be(this,function(m){return i?[2,this.resolveDocument(i,this.buildRootValueFromCache(i,u)||{},this.prepareContext(h),u).then(function(D){return ye(ye({},u),D.exportedVariables)})]:[2,ye({},u)]})})},o.prototype.shouldForceResolvers=function(i){var u=!1;return si(i,{Directive:{enter:function(h){if("client"===h.name.value&&h.arguments&&(u=h.arguments.some(function(m){return"always"===m.name.value&&"BooleanValue"===m.value.kind&&!0===m.value.value})))return Dn}}}),u},o.prototype.buildRootValueFromCache=function(i,u){return this.cache.diff({query:Ms(i),variables:u,returnPartialData:!0,optimistic:!1}).result},o.prototype.resolveDocument=function(i,u,h,m,D,H){return void 0===h&&(h={}),void 0===m&&(m={}),void 0===D&&(D=function(){return!0}),void 0===H&&(H=!1),Ye(this,void 0,void 0,function(){var _e,Ve,Ee,tt,pt,ht,Tt,Vt,Jt,ln;return be(this,function(dn){return _e=Or(i),Ve=As(i),Ee=hr(Ve),tt=this.collectSelectionsToResolve(_e,Ee),ht=(pt=_e.operation)?pt.charAt(0).toUpperCase()+pt.slice(1):"Query",Vt=(Tt=this).cache,Jt=Tt.client,ln={fragmentMap:Ee,context:ye(ye({},h),{cache:Vt,client:Jt}),variables:m,fragmentMatcher:D,defaultOperationType:ht,exportedVariables:{},selectionsToResolve:tt,onlyRunForcedResolvers:H},[2,this.resolveSelectionSet(_e.selectionSet,!1,u,ln).then(function(nn){return{result:nn,exportedVariables:ln.exportedVariables}})]})})},o.prototype.resolveSelectionSet=function(i,u,h,m){return Ye(this,void 0,void 0,function(){var D,H,_e,Ve,Ee,tt=this;return be(this,function(pt){return D=m.fragmentMap,H=m.context,_e=m.variables,Ve=[h],Ee=function(ht){return Ye(tt,void 0,void 0,function(){var Tt;return be(this,function(Jt){return(u||m.selectionsToResolve.has(ht))&&Lt(ht,_e)?Ro(ht)?[2,this.resolveField(ht,u,h,m).then(function(ln){var Rt;typeof ln<"u"&&Ve.push(((Rt={})[Do(ht)]=ln,Rt))})]:(function Ka(o){return"InlineFragment"===o.kind}(ht)?Tt=ht:zt(Tt=D[ht.name.value],16,ht.name.value),Tt&&Tt.typeCondition&&m.fragmentMatcher(h,Tt.typeCondition.name.value,H)?[2,this.resolveSelectionSet(Tt.selectionSet,u,h,m).then(function(ln){Ve.push(ln)})]:[2]):[2]})})},[2,Promise.all(i.selections.map(Ee)).then(function(){return Bi(Ve)})]})})},o.prototype.resolveField=function(i,u,h,m){return Ye(this,void 0,void 0,function(){var D,H,_e,Ve,Ee,tt,pt,ht,Tt,Vt=this;return be(this,function(Jt){return h?(D=m.variables,H=i.name.value,_e=Do(i),Ve=H!==_e,Ee=h[_e]||h[H],tt=Promise.resolve(Ee),(!m.onlyRunForcedResolvers||this.shouldForceResolvers(i))&&(pt=h.__typename||m.defaultOperationType,(ht=this.resolvers&&this.resolvers[pt])&&(Tt=ht[Ve?H:_e])&&(tt=Promise.resolve(Ad.withValue(this.cache,Tt,[h,hs(i,D),m.context,{field:i,fragmentMap:m.fragmentMap}])))),[2,tt.then(function(ln){var Rt,dn;if(void 0===ln&&(ln=Ee),i.directives&&i.directives.forEach(function(Rn){"export"===Rn.name.value&&Rn.arguments&&Rn.arguments.forEach(function(kn){"as"===kn.name.value&&"StringValue"===kn.value.kind&&(m.exportedVariables[kn.value.value]=ln)})}),!i.selectionSet||null==ln)return ln;var nn=null!==(dn=null===(Rt=i.directives)||void 0===Rt?void 0:Rt.some(function(Rn){return"client"===Rn.name.value}))&&void 0!==dn&&dn;return Array.isArray(ln)?Vt.resolveSubSelectedArray(i,u||nn,ln,m):i.selectionSet?Vt.resolveSelectionSet(i.selectionSet,u||nn,ln,m):void 0})]):[2,null]})})},o.prototype.resolveSubSelectedArray=function(i,u,h,m){var D=this;return Promise.all(h.map(function(H){return null===H?null:Array.isArray(H)?D.resolveSubSelectedArray(i,u,H,m):i.selectionSet?D.resolveSelectionSet(i.selectionSet,u,H,m):void 0}))},o.prototype.collectSelectionsToResolve=function(i,u){var h=function(H){return!Array.isArray(H)},m=this.selectionsToResolveCache;return function D(H){if(!m.has(H)){var _e=new Set;m.set(H,_e),si(H,{Directive:function(Ve,Ee,tt,pt,ht){"client"===Ve.name.value&&ht.forEach(function(Tt){h(Tt)&&ct(Tt)&&_e.add(Tt)})},FragmentSpread:function(Ve,Ee,tt,pt,ht){var Tt=u[Ve.name.value];zt(Tt,17,Ve.name.value);var Vt=D(Tt);Vt.size>0&&(ht.forEach(function(Jt){h(Jt)&&ct(Jt)&&_e.add(Jt)}),_e.add(Ve),Vt.forEach(function(Jt){_e.add(Jt)}))}})}return m.get(H)}(i)},o}(),pa=new(Ot?WeakMap:Map);function Su(o,i){var u=o[i];"function"==typeof u&&(o[i]=function(){return pa.set(o,(pa.get(o)+1)%1e15),u.apply(this,arguments)})}function sl(o){o.notifyTimeout&&(clearTimeout(o.notifyTimeout),o.notifyTimeout=void 0)}var al=function(){function o(i,u){void 0===u&&(u=i.generateQueryId()),this.queryId=u,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var h=this.cache=i.cache;pa.has(h)||(pa.set(h,0),Su(h,"evict"),Su(h,"modify"),Su(h,"reset"))}return o.prototype.init=function(i){var u=i.networkStatus||vi.loading;return this.variables&&this.networkStatus!==vi.loading&&!Oi(this.variables,i.variables)&&(u=vi.setVariables),Oi(i.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:i.document,variables:i.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:u}),i.observableQuery&&this.setObservableQuery(i.observableQuery),i.lastRequestId&&(this.lastRequestId=i.lastRequestId),this},o.prototype.reset=function(){sl(this),this.dirty=!1},o.prototype.getDiff=function(i){void 0===i&&(i=this.variables);var u=this.getDiffOptions(i);if(this.lastDiff&&Oi(u,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=i);var h=this.observableQuery;if(h&&"no-cache"===h.options.fetchPolicy)return{complete:!1};var m=this.cache.diff(u);return this.updateLastDiff(m,u),m},o.prototype.updateLastDiff=function(i,u){this.lastDiff=i?{diff:i,options:u||this.getDiffOptions()}:void 0},o.prototype.getDiffOptions=function(i){var u;return void 0===i&&(i=this.variables),{query:this.document,variables:i,returnPartialData:!0,optimistic:!0,canonizeResults:null===(u=this.observableQuery)||void 0===u?void 0:u.options.canonizeResults}},o.prototype.setDiff=function(i){var u=this,h=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(i),!this.dirty&&!Oi(h&&h.result,i&&i.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return u.notify()},0)))},o.prototype.setObservableQuery=function(i){var u=this;i!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=i,i?(i.queryInfo=this,this.listeners.add(this.oqListener=function(){u.getDiff().fromOptimisticTransaction?i.observe():Fd(i)})):delete this.oqListener)},o.prototype.notify=function(){var i=this;sl(this),this.shouldNotify()&&this.listeners.forEach(function(u){return u(i)}),this.dirty=!1},o.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(ol(this.networkStatus)&&this.observableQuery){var i=this.observableQuery.options.fetchPolicy;if("cache-only"!==i&&"cache-and-network"!==i)return!1}return!0},o.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=o.prototype.cancel,this.subscriptions.forEach(function(u){return u.unsubscribe()});var i=this.observableQuery;i&&i.stopPolling()}},o.prototype.cancel=function(){},o.prototype.updateWatch=function(i){var u=this;void 0===i&&(i=this.variables);var h=this.observableQuery;if(!h||"no-cache"!==h.options.fetchPolicy){var m=ye(ye({},this.getDiffOptions(i)),{watcher:this,callback:function(D){return u.setDiff(D)}});(!this.lastWatch||!Oi(m,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=m))}},o.prototype.resetLastWrite=function(){this.lastWrite=void 0},o.prototype.shouldWrite=function(i,u){var h=this.lastWrite;return!(h&&h.dmCount===pa.get(this.cache)&&Oi(u,h.variables)&&Oi(i.data,h.result.data))},o.prototype.markResult=function(i,u,h,m){var D=this,H=new _o,_e=mi(i.errors)?i.errors.slice(0):[];if(this.reset(),"incremental"in i&&mi(i.incremental)){var Ve=ui(this.getDiff().result,i);i.data=Ve}else if("hasNext"in i&&i.hasNext){var Ee=this.getDiff();i.data=H.merge(Ee.result,i.data)}this.graphQLErrors=_e,"no-cache"===h.fetchPolicy?this.updateLastDiff({result:i.data,complete:!0},this.getDiffOptions(h.variables)):0!==m&&(ac(i,h.errorPolicy)?this.cache.performTransaction(function(tt){if(D.shouldWrite(i,h.variables))tt.writeQuery({query:u,data:i.data,variables:h.variables,overwrite:1===m}),D.lastWrite={result:i,variables:h.variables,dmCount:pa.get(D.cache)};else if(D.lastDiff&&D.lastDiff.diff.complete)return void(i.data=D.lastDiff.diff.result);var pt=D.getDiffOptions(h.variables),ht=tt.diff(pt);D.stopped||D.updateWatch(h.variables),D.updateLastDiff(ht,pt),ht.complete&&(i.data=ht.result)}):this.lastWrite=void 0)},o.prototype.markReady=function(){return this.networkError=null,this.networkStatus=vi.ready},o.prototype.markError=function(i){return this.networkStatus=vi.error,this.lastWrite=void 0,this.reset(),i.graphQLErrors&&(this.graphQLErrors=i.graphQLErrors),i.networkError&&(this.networkError=i.networkError),i},o}();function ac(o,i){void 0===i&&(i="none");var u="ignore"===i||"all"===i,h=!Li(o);return!h&&u&&o.data&&(h=!0),h}var kh=Object.prototype.hasOwnProperty,zg=function(){function o(i){var u=i.cache,h=i.link,m=i.defaultOptions,D=i.documentTransform,H=i.queryDeduplication,_e=void 0!==H&&H,Ve=i.onBroadcast,Ee=i.ssrMode,tt=void 0!==Ee&&Ee,pt=i.clientAwareness,ht=void 0===pt?{}:pt,Tt=i.localState,Vt=i.assumeImmutableResults,Jt=void 0===Vt?!!u.assumeImmutableResults:Vt,ln=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ot?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var Rt=new Lo(function(dn){return ln.cache.transformDocument(dn)},{cache:!1});this.cache=u,this.link=h,this.defaultOptions=m||Object.create(null),this.queryDeduplication=_e,this.clientAwareness=ht,this.localState=Tt||new xh({cache:u}),this.ssrMode=tt,this.assumeImmutableResults=Jt,this.documentTransform=D?Rt.concat(D).concat(Rt):Rt,(this.onBroadcast=Ve)&&(this.mutationStore=Object.create(null))}return o.prototype.stop=function(){var i=this;this.queries.forEach(function(u,h){i.stopQueryNoBroadcast(h)}),this.cancelPendingFetches(fn(23))},o.prototype.cancelPendingFetches=function(i){this.fetchCancelFns.forEach(function(u){return u(i)}),this.fetchCancelFns.clear()},o.prototype.mutate=function(i){var u,h,m=i.mutation,D=i.variables,H=i.optimisticResponse,_e=i.updateQueries,Ve=i.refetchQueries,Ee=void 0===Ve?[]:Ve,tt=i.awaitRefetchQueries,pt=void 0!==tt&&tt,ht=i.update,Tt=i.onQueryUpdated,Vt=i.fetchPolicy,Jt=void 0===Vt?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":Vt,ln=i.errorPolicy,Rt=void 0===ln?(null===(h=this.defaultOptions.mutate)||void 0===h?void 0:h.errorPolicy)||"none":ln,dn=i.keepRootFields,nn=i.context;return Ye(this,void 0,void 0,function(){var Rn,kn,Un,Ir;return be(this,function(Fr){switch(Fr.label){case 0:return zt(m,24),zt("network-only"===Jt||"no-cache"===Jt,25),Rn=this.generateMutationId(),m=this.cache.transformForLink(this.transform(m)),kn=this.getDocumentInfo(m).hasClientExports,D=this.getVariables(m,D),kn?[4,this.localState.addExportedVariables(m,D,nn)]:[3,2];case 1:D=Fr.sent(),Fr.label=2;case 2:return Un=this.mutationStore&&(this.mutationStore[Rn]={mutation:m,variables:D,loading:!0,error:null}),H&&this.markMutationOptimistic(H,{mutationId:Rn,document:m,variables:D,fetchPolicy:Jt,errorPolicy:Rt,context:nn,updateQueries:_e,update:ht,keepRootFields:dn}),this.broadcastQueries(),Ir=this,[2,new Promise(function(Ki,ki){return ur(Ir.getObservableFromLink(m,ye(ye({},nn),{optimisticResponse:H}),D,!1),function(gi){if(Li(gi)&&"none"===Rt)throw new $r({graphQLErrors:oo(gi)});Un&&(Un.loading=!1,Un.error=null);var Ti=ye({},gi);return"function"==typeof Ee&&(Ee=Ee(Ti)),"ignore"===Rt&&Li(Ti)&&delete Ti.errors,Ir.markMutationResult({mutationId:Rn,result:Ti,document:m,variables:D,fetchPolicy:Jt,errorPolicy:Rt,context:nn,update:ht,updateQueries:_e,awaitRefetchQueries:pt,refetchQueries:Ee,removeOptimistic:H?Rn:void 0,onQueryUpdated:Tt,keepRootFields:dn})}).subscribe({next:function(gi){Ir.broadcastQueries(),(!("hasNext"in gi)||!1===gi.hasNext)&&Ki(gi)},error:function(gi){Un&&(Un.loading=!1,Un.error=gi),H&&Ir.cache.removeOptimistic(Rn),Ir.broadcastQueries(),ki(gi instanceof $r?gi:new $r({networkError:gi}))}})})]}})})},o.prototype.markMutationResult=function(i,u){var h=this;void 0===u&&(u=this.cache);var m=i.result,D=[],H="no-cache"===i.fetchPolicy;if(!H&&ac(m,i.errorPolicy)){if(pi(m)||D.push({result:m.data,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}),pi(m)&&mi(m.incremental)){var _e=u.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0}),Ve=void 0;_e.result&&(Ve=ui(_e.result,m)),typeof Ve<"u"&&(m.data=Ve,D.push({result:Ve,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}))}var Ee=i.updateQueries;Ee&&this.queries.forEach(function(pt,ht){var Tt=pt.observableQuery,Vt=Tt&&Tt.queryName;if(Vt&&kh.call(Ee,Vt)){var Jt=Ee[Vt],ln=h.queries.get(ht),Rt=ln.document,dn=ln.variables,nn=u.diff({query:Rt,variables:dn,returnPartialData:!0,optimistic:!1}),Rn=nn.result;if(nn.complete&&Rn){var Un=Jt(Rn,{mutationResult:m,queryName:Rt&&Ei(Rt)||void 0,queryVariables:dn});Un&&D.push({result:Un,dataId:"ROOT_QUERY",query:Rt,variables:dn})}}})}if(D.length>0||i.refetchQueries||i.update||i.onQueryUpdated||i.removeOptimistic){var tt=[];if(this.refetchQueries({updateCache:function(pt){H||D.forEach(function(Jt){return pt.write(Jt)});var ht=i.update,Tt=!function ko(o){return pi(o)||function zi(o){return"hasNext"in o&&"data"in o}(o)}(m)||pi(m)&&!m.hasNext;if(ht){if(!H){var Vt=pt.diff({id:"ROOT_MUTATION",query:h.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0});Vt.complete&&("incremental"in(m=ye(ye({},m),{data:Vt.result}))&&delete m.incremental,"hasNext"in m&&delete m.hasNext)}Tt&&ht(pt,m,{context:i.context,variables:i.variables})}!H&&!i.keepRootFields&&Tt&&pt.modify({id:"ROOT_MUTATION",fields:function(Jt,ln){return"__typename"===ln.fieldName?Jt:ln.DELETE}})},include:i.refetchQueries,optimistic:!1,removeOptimistic:i.removeOptimistic,onQueryUpdated:i.onQueryUpdated||null}).forEach(function(pt){return tt.push(pt)}),i.awaitRefetchQueries||i.onQueryUpdated)return Promise.all(tt).then(function(){return m})}return Promise.resolve(m)},o.prototype.markMutationOptimistic=function(i,u){var h=this,m="function"==typeof i?i(u.variables):i;return this.cache.recordOptimisticTransaction(function(D){try{h.markMutationResult(ye(ye({},u),{result:{data:m}}),D)}catch{}},u.mutationId)},o.prototype.fetchQuery=function(i,u,h){return this.fetchConcastWithInfo(i,u,h).concast.promise},o.prototype.getQueryStore=function(){var i=Object.create(null);return this.queries.forEach(function(u,h){i[h]={variables:u.variables,networkStatus:u.networkStatus,networkError:u.networkError,graphQLErrors:u.graphQLErrors}}),i},o.prototype.resetErrors=function(i){var u=this.queries.get(i);u&&(u.networkError=void 0,u.graphQLErrors=[])},o.prototype.transform=function(i){return this.documentTransform.transformDocument(i)},o.prototype.getDocumentInfo=function(i){var u=this.transformCache;if(!u.has(i)){var h={hasClientExports:rn(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),hasNonreactiveDirective:Qt(["nonreactive"],i),clientQuery:this.localState.clientQuery(i),serverQuery:Ws([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],i),defaultVars:zo(Zi(i)),asQuery:ye(ye({},i),{definitions:i.definitions.map(function(m){return"OperationDefinition"===m.kind&&"query"!==m.operation?ye(ye({},m),{operation:"query"}):m})})};u.set(i,h)}return u.get(i)},o.prototype.getVariables=function(i,u){return ye(ye({},this.getDocumentInfo(i).defaultVars),u)},o.prototype.watchQuery=function(i){var u=this.transform(i.query);typeof(i=ye(ye({},i),{variables:this.getVariables(u,i.variables)})).notifyOnNetworkStatusChange>"u"&&(i.notifyOnNetworkStatusChange=!1);var h=new al(this),m=new kd({queryManager:this,queryInfo:h,options:i});return m.lastQuery=u,this.queries.set(m.queryId,h),h.init({document:u,observableQuery:m,variables:m.variables}),m},o.prototype.query=function(i,u){var h=this;return void 0===u&&(u=this.generateQueryId()),zt(i.query,26),zt("Document"===i.query.kind,27),zt(!i.returnPartialData,28),zt(!i.pollInterval,29),this.fetchQuery(u,ye(ye({},i),{query:this.transform(i.query)})).finally(function(){return h.stopQuery(u)})},o.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},o.prototype.generateRequestId=function(){return this.requestIdCounter++},o.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},o.prototype.stopQueryInStore=function(i){this.stopQueryInStoreNoBroadcast(i),this.broadcastQueries()},o.prototype.stopQueryInStoreNoBroadcast=function(i){var u=this.queries.get(i);u&&u.stop()},o.prototype.clearStore=function(i){return void 0===i&&(i={discardWatches:!0}),this.cancelPendingFetches(fn(30)),this.queries.forEach(function(u){u.observableQuery?u.networkStatus=vi.loading:u.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(i)},o.prototype.getObservableQueries=function(i){var u=this;void 0===i&&(i="active");var h=new Map,m=new Map,D=new Set;return Array.isArray(i)&&i.forEach(function(H){"string"==typeof H?m.set(H,!1):function io(o){return In(o)&&"Document"===o.kind&&Array.isArray(o.definitions)}(H)?m.set(u.transform(H),!1):In(H)&&H.query&&D.add(H)}),this.queries.forEach(function(H,_e){var Ve=H.observableQuery,Ee=H.document;if(Ve){if("all"===i)return void h.set(_e,Ve);var tt=Ve.queryName;if("standby"===Ve.options.fetchPolicy||"active"===i&&!Ve.hasObservers())return;("active"===i||tt&&m.has(tt)||Ee&&m.has(Ee))&&(h.set(_e,Ve),tt&&m.set(tt,!0),Ee&&m.set(Ee,!0))}}),D.size&&D.forEach(function(H){var _e=je("legacyOneTimeQuery"),Ve=u.getQuery(_e).init({document:H.query,variables:H.variables}),Ee=new kd({queryManager:u,queryInfo:Ve,options:ye(ye({},H),{fetchPolicy:"network-only"})});zt(Ee.queryId===_e),Ve.setObservableQuery(Ee),h.set(_e,Ee)}),h},o.prototype.reFetchObservableQueries=function(i){var u=this;void 0===i&&(i=!1);var h=[];return this.getObservableQueries(i?"all":"active").forEach(function(m,D){var H=m.options.fetchPolicy;m.resetLastResults(),(i||"standby"!==H&&"cache-only"!==H)&&h.push(m.refetch()),u.getQuery(D).setDiff(null)}),this.broadcastQueries(),Promise.all(h)},o.prototype.setObservableQuery=function(i){this.getQuery(i.queryId).setObservableQuery(i)},o.prototype.startGraphQLSubscription=function(i){var u=this,h=i.query,m=i.fetchPolicy,D=i.errorPolicy,H=i.variables,_e=i.context,Ve=void 0===_e?{}:_e;h=this.transform(h),H=this.getVariables(h,H);var Ee=function(pt){return u.getObservableFromLink(h,Ve,pt).map(function(ht){"no-cache"!==m&&(ac(ht,D)&&u.cache.write({query:h,result:ht.data,dataId:"ROOT_SUBSCRIPTION",variables:pt}),u.broadcastQueries());var Tt=Li(ht),Vt=function Cr(o){return!!o.extensions&&Array.isArray(o.extensions[Oo])}(ht);if(Tt||Vt){var Jt={};throw Tt&&(Jt.graphQLErrors=ht.errors),Vt&&(Jt.protocolErrors=ht.extensions[Oo]),new $r(Jt)}return ht})};if(this.getDocumentInfo(h).hasClientExports){var tt=this.localState.addExportedVariables(h,H,Ve).then(Ee);return new se(function(pt){var ht=null;return tt.then(function(Tt){return ht=Tt.subscribe(pt)},pt.error),function(){return ht&&ht.unsubscribe()}})}return Ee(H)},o.prototype.stopQuery=function(i){this.stopQueryNoBroadcast(i),this.broadcastQueries()},o.prototype.stopQueryNoBroadcast=function(i){this.stopQueryInStoreNoBroadcast(i),this.removeQuery(i)},o.prototype.removeQuery=function(i){this.fetchCancelFns.delete(i),this.queries.has(i)&&(this.getQuery(i).stop(),this.queries.delete(i))},o.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(i){return i.notify()})},o.prototype.getLocalState=function(){return this.localState},o.prototype.getObservableFromLink=function(i,u,h,m){var D,_e,H=this;void 0===m&&(m=null!==(_e=null===(D=u)||void 0===D?void 0:D.queryDeduplication)&&void 0!==_e?_e:this.queryDeduplication);var Ve,Ee=this.getDocumentInfo(i),tt=Ee.serverQuery,pt=Ee.clientQuery;if(tt){var Tt=this.inFlightLinkObservables,Vt=this.link,Jt={query:tt,variables:h,operationName:Ei(tt)||void 0,context:this.prepareContext(ye(ye({},u),{forceFetch:!m}))};if(u=Jt.context,m){var ln=ps(tt),Rt=Tt.get(ln)||new Map;Tt.set(ln,Rt);var dn=Ja(h);if(!(Ve=Rt.get(dn))){var nn=new hi([ie(Vt,Jt)]);Rt.set(dn,Ve=nn),nn.beforeNext(function(){Rt.delete(dn)&&Rt.size<1&&Tt.delete(ln)})}}else Ve=new hi([ie(Vt,Jt)])}else Ve=new hi([se.of({data:{}})]),u=this.prepareContext(u);return pt&&(Ve=ur(Ve,function(Rn){return H.localState.runResolvers({document:pt,remoteResult:Rn,context:u,variables:h})})),Ve},o.prototype.getResultsFromLink=function(i,u,h){var m=i.lastRequestId=this.generateRequestId(),D=this.cache.transformForLink(h.query);return ur(this.getObservableFromLink(D,h.context,h.variables),function(H){var _e=oo(H),Ve=_e.length>0;if(m>=i.lastRequestId){if(Ve&&"none"===h.errorPolicy)throw i.markError(new $r({graphQLErrors:_e}));i.markResult(H,D,h,u),i.markReady()}var Ee={data:H.data,loading:!1,networkStatus:vi.ready};return Ve&&"ignore"!==h.errorPolicy&&(Ee.errors=_e,Ee.networkStatus=vi.error),Ee},function(H){var _e=function _n(o){return o.hasOwnProperty("graphQLErrors")}(H)?H:new $r({networkError:H});throw m>=i.lastRequestId&&i.markError(_e),_e})},o.prototype.fetchConcastWithInfo=function(i,u,h){var m=this;void 0===h&&(h=vi.loading);var Un,Ir,D=u.query,H=this.getVariables(D,u.variables),_e=this.getQuery(i),Ve=this.defaultOptions.watchQuery,Ee=u.fetchPolicy,pt=u.errorPolicy,Tt=u.returnPartialData,Jt=u.notifyOnNetworkStatusChange,Rt=u.context,nn=Object.assign({},u,{query:D,variables:H,fetchPolicy:void 0===Ee?Ve&&Ve.fetchPolicy||"cache-first":Ee,errorPolicy:void 0===pt?Ve&&Ve.errorPolicy||"none":pt,returnPartialData:void 0!==Tt&&Tt,notifyOnNetworkStatusChange:void 0!==Jt&&Jt,context:void 0===Rt?{}:Rt}),Rn=function(Ki){nn.variables=Ki;var ki=m.fetchQueryByPolicy(_e,nn,h);return"standby"!==nn.fetchPolicy&&ki.sources.length>0&&_e.observableQuery&&_e.observableQuery.applyNextFetchPolicy("after-fetch",u),ki},kn=function(){return m.fetchCancelFns.delete(i)};if(this.fetchCancelFns.set(i,function(Ki){kn(),setTimeout(function(){return Un.cancel(Ki)})}),this.getDocumentInfo(nn.query).hasClientExports)Un=new hi(this.localState.addExportedVariables(nn.query,nn.variables,nn.context).then(Rn).then(function(Ki){return Ki.sources})),Ir=!0;else{var Fr=Rn(nn.variables);Ir=Fr.fromLink,Un=new hi(Fr.sources)}return Un.promise.then(kn,kn),{concast:Un,fromLink:Ir}},o.prototype.refetchQueries=function(i){var u=this,h=i.updateCache,m=i.include,D=i.optimistic,H=void 0!==D&&D,_e=i.removeOptimistic,Ve=void 0===_e?H?je("refetchQueries"):void 0:_e,Ee=i.onQueryUpdated,tt=new Map;m&&this.getObservableQueries(m).forEach(function(ht,Tt){tt.set(Tt,{oq:ht,lastDiff:u.getQuery(Tt).getDiff()})});var pt=new Map;return h&&this.cache.batch({update:h,optimistic:H&&Ve||!1,removeOptimistic:Ve,onWatchUpdated:function(ht,Tt,Vt){var Jt=ht.watcher instanceof al&&ht.watcher.observableQuery;if(Jt){if(Ee){tt.delete(Jt.queryId);var ln=Ee(Jt,Tt,Vt);return!0===ln&&(ln=Jt.refetch()),!1!==ln&&pt.set(Jt,ln),ln}null!==Ee&&tt.set(Jt.queryId,{oq:Jt,lastDiff:Vt,diff:Tt})}}}),tt.size&&tt.forEach(function(ht,Tt){var Rt,Vt=ht.oq,Jt=ht.lastDiff,ln=ht.diff;if(Ee){if(!ln){var dn=Vt.queryInfo;dn.reset(),ln=dn.getDiff()}Rt=Ee(Vt,ln,Jt)}(!Ee||!0===Rt)&&(Rt=Vt.refetch()),!1!==Rt&&pt.set(Vt,Rt),Tt.indexOf("legacyOneTimeQuery")>=0&&u.stopQueryNoBroadcast(Tt)}),Ve&&this.cache.removeOptimistic(Ve),pt},o.prototype.fetchQueryByPolicy=function(i,u,h){var m=this,D=u.query,H=u.variables,_e=u.fetchPolicy,Ve=u.refetchWritePolicy,Ee=u.errorPolicy,tt=u.returnPartialData,pt=u.context,ht=u.notifyOnNetworkStatusChange,Tt=i.networkStatus;i.init({document:D,variables:H,networkStatus:h});var Vt=function(){return i.getDiff(H)},Jt=function(Rn,kn){void 0===kn&&(kn=i.networkStatus||vi.loading);var Un=Rn.result,Ir=function(Fr){return se.of(ye({data:Fr,loading:ol(kn),networkStatus:kn},Rn.complete?null:{partial:!0}))};return Un&&m.getDocumentInfo(D).hasForcedResolvers?m.localState.runResolvers({document:D,remoteResult:{data:Un},context:pt,variables:H,onlyRunForcedResolvers:!0}).then(function(Fr){return Ir(Fr.data||void 0)}):"none"===Ee&&kn===vi.refetch&&Array.isArray(Rn.missing)?Ir(void 0):Ir(Un)},ln="no-cache"===_e?0:h===vi.refetch&&"merge"!==Ve?1:2,Rt=function(){return m.getResultsFromLink(i,ln,{query:D,variables:H,context:pt,fetchPolicy:_e,errorPolicy:Ee})},dn=ht&&"number"==typeof Tt&&Tt!==h&&ol(h);switch(_e){default:case"cache-first":return(nn=Vt()).complete?{fromLink:!1,sources:[Jt(nn,i.markReady())]}:tt||dn?{fromLink:!0,sources:[Jt(nn),Rt()]}:{fromLink:!0,sources:[Rt()]};case"cache-and-network":var nn;return(nn=Vt()).complete||tt||dn?{fromLink:!0,sources:[Jt(nn),Rt()]}:{fromLink:!0,sources:[Rt()]};case"cache-only":return{fromLink:!1,sources:[Jt(Vt(),i.markReady())]};case"network-only":return dn?{fromLink:!0,sources:[Jt(Vt()),Rt()]}:{fromLink:!0,sources:[Rt()]};case"no-cache":return dn?{fromLink:!0,sources:[Jt(i.getDiff()),Rt()]}:{fromLink:!0,sources:[Rt()]};case"standby":return{fromLink:!1,sources:[]}}},o.prototype.getQuery=function(i){return i&&!this.queries.has(i)&&this.queries.set(i,new al(this,i)),this.queries.get(i)},o.prototype.prepareContext=function(i){void 0===i&&(i={});var u=this.localState.prepareContext(i);return ye(ye({},u),{clientAwareness:this.clientAwareness})},o}(),Iu=function(){function o(i){var u=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!i.cache)throw fn(13);var h=i.uri,H=i.cache,_e=i.documentTransform,Ve=i.ssrMode,Ee=void 0!==Ve&&Ve,tt=i.ssrForceFetchDelay,pt=void 0===tt?0:tt,ht=i.connectToDevTools,Tt=void 0===ht?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:ht,Vt=i.queryDeduplication,Jt=void 0===Vt||Vt,ln=i.defaultOptions,Rt=i.assumeImmutableResults,dn=void 0===Rt?H.assumeImmutableResults:Rt,nn=i.resolvers,Rn=i.typeDefs,kn=i.fragmentMatcher,Un=i.name,Ir=i.version,Fr=i.link;Fr||(Fr=h?new Mi({uri:h,credentials:i.credentials,headers:i.headers}):ae.empty()),this.link=Fr,this.cache=H,this.disableNetworkFetches=Ee||pt>0,this.queryDeduplication=Jt,this.defaultOptions=ln||Object.create(null),this.typeDefs=Rn,pt&&setTimeout(function(){return u.disableNetworkFetches=!1},pt),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),Tt&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version=ce,this.localState=new xh({cache:H,client:this,resolvers:nn,fragmentMatcher:kn}),this.queryManager=new zg({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:_e,queryDeduplication:Jt,ssrMode:Ee,clientAwareness:{name:Un,version:Ir},localState:this.localState,assumeImmutableResults:dn,onBroadcast:Tt?function(){u.devToolsHookCb&&u.devToolsHookCb({action:{},state:{queries:u.queryManager.getQueryStore(),mutations:u.queryManager.mutationStore||{}},dataWithOptimisticResults:u.cache.extract(!0)})}:void 0})}return Object.defineProperty(o.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),o.prototype.stop=function(){this.queryManager.stop()},o.prototype.watchQuery=function(i){return this.defaultOptions.watchQuery&&(i=Xs(this.defaultOptions.watchQuery,i)),this.disableNetworkFetches&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i=ye(ye({},i),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(i)},o.prototype.query=function(i){return this.defaultOptions.query&&(i=Xs(this.defaultOptions.query,i)),zt("cache-and-network"!==i.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===i.fetchPolicy&&(i=ye(ye({},i),{fetchPolicy:"cache-first"})),this.queryManager.query(i)},o.prototype.mutate=function(i){return this.defaultOptions.mutate&&(i=Xs(this.defaultOptions.mutate,i)),this.queryManager.mutate(i)},o.prototype.subscribe=function(i){return this.queryManager.startGraphQLSubscription(i)},o.prototype.readQuery=function(i,u){return void 0===u&&(u=!1),this.cache.readQuery(i,u)},o.prototype.readFragment=function(i,u){return void 0===u&&(u=!1),this.cache.readFragment(i,u)},o.prototype.writeQuery=function(i){var u=this.cache.writeQuery(i);return!1!==i.broadcast&&this.queryManager.broadcastQueries(),u},o.prototype.writeFragment=function(i){var u=this.cache.writeFragment(i);return!1!==i.broadcast&&this.queryManager.broadcastQueries(),u},o.prototype.__actionHookForDevTools=function(i){this.devToolsHookCb=i},o.prototype.__requestRaw=function(i){return ie(this.link,i)},o.prototype.resetStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(i.resetStoreCallbacks.map(function(u){return u()}))}).then(function(){return i.reFetchObservableQueries()})},o.prototype.clearStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(i.clearStoreCallbacks.map(function(u){return u()}))})},o.prototype.onResetStore=function(i){var u=this;return this.resetStoreCallbacks.push(i),function(){u.resetStoreCallbacks=u.resetStoreCallbacks.filter(function(h){return h!==i})}},o.prototype.onClearStore=function(i){var u=this;return this.clearStoreCallbacks.push(i),function(){u.clearStoreCallbacks=u.clearStoreCallbacks.filter(function(h){return h!==i})}},o.prototype.reFetchObservableQueries=function(i){return this.queryManager.reFetchObservableQueries(i)},o.prototype.refetchQueries=function(i){var u=this.queryManager.refetchQueries(i),h=[],m=[];u.forEach(function(H,_e){h.push(_e),m.push(H)});var D=Promise.all(m);return D.queries=h,D.results=m,D.catch(function(H){}),D},o.prototype.getObservableQueries=function(i){return void 0===i&&(i="active"),this.queryManager.getObservableQueries(i)},o.prototype.extract=function(i){return this.cache.extract(i)},o.prototype.restore=function(i){return this.cache.restore(i)},o.prototype.addResolvers=function(i){this.localState.addResolvers(i)},o.prototype.setResolvers=function(i){this.localState.setResolvers(i)},o.prototype.getResolvers=function(){return this.localState.getResolvers()},o.prototype.setLocalStateFragmentMatcher=function(i){this.localState.setFragmentMatcher(i)},o.prototype.setLink=function(i){this.link=this.queryManager.link=i},o}(),uc=new Map,ul=new Map,Fh=!0,lc=!1;function Uh(o){return o.replace(/[\s,]+/g," ").trim()}function ll(o){var i=Uh(o);if(!uc.has(i)){var u=function jr(o,i){return new yr(o,i).parseDocument()}(o,{experimentalFragmentVariables:lc,allowLegacyFragmentVariables:lc});if(!u||"Document"!==u.kind)throw new Error("Not a valid GraphQL document.");uc.set(i,function Ud(o){var i=new Set(o.definitions);i.forEach(function(h){h.loc&&delete h.loc,Object.keys(h).forEach(function(m){var D=h[m];D&&"object"==typeof D&&i.add(D)})});var u=o.loc;return u&&(delete u.startToken,delete u.endToken),o}(function w_(o){var i=new Set,u=[];return o.definitions.forEach(function(h){if("FragmentDefinition"===h.kind){var m=h.name.value,D=function M_(o){return Uh(o.source.body.substring(o.start,o.end))}(h.loc),H=ul.get(m);H&&!H.has(D)?Fh&&console.warn("Warning: fragment with name "+m+" 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"):H||ul.set(m,H=new Set),H.add(D),i.has(D)||(i.add(D),u.push(h))}else u.push(h)}),ye(ye({},o),{definitions:u})}(u)))}return uc.get(i)}function ri(o){for(var i=[],u=1;u<arguments.length;u++)i[u-1]=arguments[u];"string"==typeof o&&(o=[o]);var h=o[0];return i.forEach(function(m,D){h+=m&&"Document"===m.kind?m.loc.source.body:m,h+=o[D+1]}),ll(h)}var Tu_gql=ri,Tu_resetCaches=function cl(){uc.clear(),ul.clear()},Tu_disableFragmentWarnings=function Bd(){Fh=!1},Tu_enableExperimentalFragmentVariables=function cc(){lc=!0},Tu_disableExperimentalFragmentVariables=function R_(){lc=!1};(function(o){o.gql=Tu_gql,o.resetCaches=Tu_resetCaches,o.disableFragmentWarnings=Tu_disableFragmentWarnings,o.enableExperimentalFragmentVariables=Tu_enableExperimentalFragmentVariables,o.disableExperimentalFragmentVariables=Tu_disableExperimentalFragmentVariables})(ri||(ri={})),ri.default=ri;var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ar={},Fs={},Bh={};Object.defineProperty(Bh,"__esModule",{value:!0});var dc,qa={};Object.defineProperty(qa,"__esModule",{value:!0}),qa.APP_STATE_TYPE=void 0,function(o){o.STARTED="STARTED",o.RESUMED="RESUMED",o.PAUSED="PAUSED",o.STOPPED="STOPPED"}(dc||(qa.APP_STATE_TYPE=dc={}));var jd={};Object.defineProperty(jd,"__esModule",{value:!0});var fc,jh,ga={};Object.defineProperty(ga,"__esModule",{value:!0}),ga.CONNECTION_TYPE=ga.CONNECTION_STATE=void 0,function(o){o.ONLINE="ONLINE",o.OFFLINE="OFFLINE"}(fc||(ga.CONNECTION_STATE=fc={})),function(o){o.TYPE_3G="TYPE_3G",o.TYPE_WLAN="TYPE_WLAN"}(jh||(ga.CONNECTION_TYPE=jh={}));var Vd,$d,eu={};Object.defineProperty(eu,"__esModule",{value:!0}),eu.DisplayMode=eu.DISPLAY_MODE=void 0,function(o){o.EMBEDDED="embedded",o.MODAL="modal"}(Vd||(eu.DISPLAY_MODE=Vd={})),function(o){o.EMBEDDED="EMBEDDED",o.MODAL="MODAL"}($d||(eu.DisplayMode=$d={}));var Vh,dl={};Object.defineProperty(dl,"__esModule",{value:!0}),dl.ENTITLEMENT_MODE=void 0,function(o){o.ENTITLEMENT="entitlement",o.OAUTH="oauth",o.NONE="none"}(Vh||(dl.ENTITLEMENT_MODE=Vh={}));var fl={};Object.defineProperty(fl,"__esModule",{value:!0});var La={};Object.defineProperty(La,"__esModule",{value:!0});var Kd,hc={};Object.defineProperty(hc,"__esModule",{value:!0}),hc.ISSUE_STATE=void 0,function(o){o.PURCHASABLE="PURCHASABLE",o.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",o.DOWNLOADING="DOWNLOADING",o.AVAILABLE="AVAILABLE",o.INSTALLING="INSTALLING",o.UPDATE="UPDATE",o.INSTALLED="INSTALLED",o.LOCKED="LOCKED",o.COMING_SOON="COMING_SOON",o.INDEXING="INDEXING",o.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",o.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(Kd||(hc.ISSUE_STATE=Kd={}));var Hd={};Object.defineProperty(Hd,"__esModule",{value:!0});var tu,ma={};Object.defineProperty(ma,"__esModule",{value:!0}),ma.MEDIA_PLAYBACK_STATE=void 0,function(o){o.NONE="NONE",o.ERROR="ERROR",o.LOADING="LOADING",o.READY="READY",o.PLAYING="PLAYING"}(tu||(ma.MEDIA_PLAYBACK_STATE=tu={}));var $h,eo={};Object.defineProperty(eo,"__esModule",{value:!0}),eo.Platform=void 0,function(o){o.ANDROID="android",o.IOS="ios"}($h||(eo.Platform=$h={}));var pc,hl={};Object.defineProperty(hl,"__esModule",{value:!0}),hl.PUBLICATION_TYPE=void 0,function(o){o.KIOSK="KIOSK",o.CHANNEL="CHANNEL"}(pc||(hl.PUBLICATION_TYPE=pc={}));var Kh={};Object.defineProperty(Kh,"__esModule",{value:!0});var Wd={};Object.defineProperty(Wd,"__esModule",{value:!0});var pl={};Object.defineProperty(pl,"__esModule",{value:!0});var Hh={};Object.defineProperty(Hh,"__esModule",{value:!0});var gc,gl,nu={};Object.defineProperty(nu,"__esModule",{value:!0}),nu.OpenFileMode=nu.OpenFileTarget=void 0,function(o){o.INTERNAL="INTERNAL",o.EXTERNAL="EXTERNAL"}(gc||(nu.OpenFileTarget=gc={})),function(o){o.MODAL="MODAL",o.EMBEDDED="EMBEDDED"}(gl||(nu.OpenFileMode=gl={}));var Gd={};Object.defineProperty(Gd,"__esModule",{value:!0});var Wh,mc={};Object.defineProperty(mc,"__esModule",{value:!0}),mc.METADATA_KEY=void 0,function(o){o.APP_ID="app_id",o.APP_VERSION="app_version",o.BUNDLE_ID="bundle_id",o.DEEPLINK_SCHEME="deeplink_scheme",o.PREVIEW_APP="preview_app",o.DEVICE_ID="device_id",o.DEVICE_MODEL="device_model",o.DEVICE_OS="device_os",o.PLATFORM="platform",o.LOCALE="locale",o.MANAGER_BASE_URL="manager_base_url",o.PUSH_REGISTRATION_TOKEN="push_registration_token",o.ENTITLEMENT_LOGIN="entitlement_login",o.ENTITLEMENT_TOKEN="entitlement_token",o.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",o.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",o.ENTITLEMENT_MODE="entitlement_mode",o.ISSUE_ID="issue_id",o.ISSUE_NAME="issue_name",o.PUBLICATION_ID="publication_id",o.PUBLICATION_NAME="publication_name",o.PAGE_ID="page_id",o.PAGE_ALIAS="page_alias",o.PAGE_TITLE="page_title",o.PAGE_INDEX="page_index",o.PAGE_FILENAME="page_filename",o.PURPLE_VERSION="purple_version",o.ONBOARDING_MODE="onboarding_mode"}(Wh||(mc.METADATA_KEY=Wh={}));var Gh={};Object.defineProperty(Gh,"__esModule",{value:!0});var zd={};Object.defineProperty(zd,"__esModule",{value:!0});var Qd,vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.SUBSCRIPTION_STATE=void 0,function(o){o.NONE="NONE",o.PURCHASING="PURCHASING",o.VALIDATING="VALIDATING",o.PURCHASED="PURCHASED"}(Qd||(vc.SUBSCRIPTION_STATE=Qd={}));var zh={};Object.defineProperty(zh,"__esModule",{value:!0});var Qg,Yd,Du={};Object.defineProperty(Du,"__esModule",{value:!0}),Du.UPDATE_STOREFRONT_ERROR_CODE=Du.UPDATE_STOREFRONT_TYPE=void 0,function(o){o.PARTIAL="PARTIAL",o.FULL="FULL",o.LOGIN="LOGIN",o.LOGOUT="LOGOUT"}(Qg||(Du.UPDATE_STOREFRONT_TYPE=Qg={})),function(o){o.OFFLINE="OFFLINE",o.UNKNOWN="UNKNOWN"}(Yd||(Du.UPDATE_STOREFRONT_ERROR_CODE=Yd={}));var Xd={};Object.defineProperty(Xd,"__esModule",{value:!0});var rs={};Object.defineProperty(rs,"__esModule",{value:!0});var Xg,_c,Yg={},ru={};Object.defineProperty(ru,"__esModule",{value:!0}),ru.AppSubscriptionType=ru.AppSubscriptionDuration=void 0,function(o){o.SEVEN_DAYS="SEVEN_DAYS",o.TWO_WEEKS="TWO_WEEKS",o.ONE_MONTH="ONE_MONTH",o.TWO_MONTHS="TWO_MONTHS",o.THREE_MONTHS="THREE_MONTHS",o.SIX_MONTHS="SIX_MONTHS",o.ONE_YEAR="ONE_YEAR"}(Xg||(ru.AppSubscriptionDuration=Xg={})),function(o){o.FREE="FREE",o.AUTORENEWABLE="AUTORENEWABLE",o.NONAUTORENEWABLE="NONAUTORENEWABLE"}(_c||(ru.AppSubscriptionType=_c={}));var Jd,Ss={};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(o){o.DAY="DAY",o.WEEK="WEEK",o.MONTH="MONTH",o.YEAR="YEAR"}(Jd||(Ss.AppSubscriptionAdditionalBackIssueUnlocksType=Jd={}));var xa={};Object.defineProperty(xa,"__esModule",{value:!0});var Qh,Zd,Jg,Zg,ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.ContentResourceType=ia.CatalogBundleType=ia.CatalogContentType=ia.Access=void 0,function(o){o.FREE="FREE",o.HIDDEN="HIDDEN",o.PURCHASABLE="PURCHASABLE"}(Qh||(ia.Access=Qh={})),function(o){o.ISSUE="ISSUE",o.POST="POST",o.BUNDLE="BUNDLE"}(Zd||(ia.CatalogContentType=Zd={})),function(o){o.ISSUE="ISSUE",o.DOSSIER="DOSSIER"}(Jg||(ia.CatalogBundleType=Jg={})),function(o){o.ASSET="ASSET",o.CONTENT_BUNDLE="CONTENT_BUNDLE"}(Zg||(ia.ContentResourceType=Zg={}));var qg,em,ml={};Object.defineProperty(ml,"__esModule",{value:!0}),ml.IssueType=ml.PurchaseOption=void 0,function(o){o.APP_STORE_PURCHASE="APP_STORE_PURCHASE",o.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",o.ENTITLEMENT="ENTITLEMENT",o.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",o.TRIAL="TRIAL",o.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT"}(qg||(ml.PurchaseOption=qg={})),function(o){o.ARTICLE="ARTICLE",o.ISSUE="ISSUE"}(em||(ml.IssueType=em={}));var iu,Au,Ou={};Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.CatalogIssueStateError=Ou.CatalogIssueInstallState=void 0,function(o){o.NOT_INSTALLED="NOT_INSTALLED",o.INCOMPLETE="INCOMPLETE",o.COMPLETE="COMPLETE"}(iu||(Ou.CatalogIssueInstallState=iu={})),function(o){o.NETWORK="NETWORK",o.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",o.PAYMENT_REQUIRED="PAYMENT_REQUIRED",o.NOT_FOUND="NOT_FOUND",o.UNKNOWN="UNKNOWN"}(Au||(Ou.CatalogIssueStateError=Au={}));var qd={};Object.defineProperty(qd,"__esModule",{value:!0});var Yh={};Object.defineProperty(Yh,"__esModule",{value:!0});var Us,Pu={};Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.PublicationType=void 0,function(o){o.KIOSK="KIOSK",o.CHANNEL="CHANNEL"}(Us||(Pu.PublicationType=Us={}));var Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});var vl={};Object.defineProperty(vl,"__esModule",{value:!0});var Jh,ka={};Object.defineProperty(ka,"__esModule",{value:!0}),ka.SortDirection=void 0,function(o){o.ASC="ASC",o.DESC="DESC"}(Jh||(ka.SortDirection=Jh={}));var ef={};Object.defineProperty(ef,"__esModule",{value:!0});var tf={};Object.defineProperty(tf,"__esModule",{value:!0});var _l={};Object.defineProperty(_l,"__esModule",{value:!0});var El={};Object.defineProperty(El,"__esModule",{value:!0});var Ec={};Object.defineProperty(Ec,"__esModule",{value:!0});var Zh={};Object.defineProperty(Zh,"__esModule",{value:!0});var qh,yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.ERROR_CODE=void 0,function(o){o.ACCESS_DENIED="ACCESS_DENIED",o.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",o.ALREADY_OWNED="ALREADY_OWNED",o.CANCELLED="CANCELLED",o.CONFIGURATION_ERROR="CONFIGURATION_ERROR",o.DUPLICATE_CODE="DUPLICATE_CODE",o.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",o.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",o.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",o.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",o.INVALID_CODE="INVALID_CODE",o.INVALID_CREDENTIALS="INVALID_CREDENTIALS",o.NETWORK="NETWORK",o.NO_ISSUES_FOUND="NO_ISSUES_FOUND",o.NOT_AVAILABLE="NOT_AVAILABLE",o.NOT_FOUND="NOT_FOUND",o.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",o.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",o.NOT_HANDLED="NOT_HANDLED",o.NOTHING_LOADED="NOTHING_LOADED",o.NOT_LOGGED_IN="NOT_LOGGED_IN",o.PAYMENT_REQUIRED="PAYMENT_REQUIRED",o.UNKNOWN="UNKNOWN",o.UNKNOWN_CODE="UNKNOWN_CODE",o.UNKNOWN_OFFER="UNKNOWN_OFFER",o.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",o.UNKNOWN_VENDOR="UNKNOWN_VENDOR",o.USER_DEACTIVATED="USER_DEACTIVATED",o.VALIDATION_FAILED="VALIDATION_FAILED"}(qh||(yc.ERROR_CODE=qh={}));var nf={};Object.defineProperty(nf,"__esModule",{value:!0});var ep,Jo,Cc,rf,oa={};Object.defineProperty(oa,"__esModule",{value:!0}),oa.ListOperation=oa.IntOperation=oa.DateOperation=oa.StringOperation=void 0,function(o){o.EQUAL="EQUAL",o.CONTAINS="CONTAINS",o.STARTS_WITH="STARTS_WITH",o.GREATER_THAN="GREATER_THAN",o.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",o.LESS_THAN="LESS_THAN",o.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",o.REGEX="REGEX"}(ep||(oa.StringOperation=ep={})),function(o){o.GREATER_THAN="GREATER_THAN",o.LESS_THAN="LESS_THAN",o.EQUAL="EQUAL"}(Jo||(oa.DateOperation=Jo={})),function(o){o.GREATER_THAN="GREATER_THAN",o.LESS_THAN="LESS_THAN",o.EQUAL="EQUAL"}(Cc||(oa.IntOperation=Cc={})),function(o){o.CONTAINS="CONTAINS",o.CONTAINS_ONLY="CONTAINS_ONLY"}(rf||(oa.ListOperation=rf={}));var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});var Uo={};Object.defineProperty(Uo,"__esModule",{value:!0});var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});var sf={};Object.defineProperty(sf,"__esModule",{value:!0});var af={};Object.defineProperty(af,"__esModule",{value:!0});var tp={};Object.defineProperty(tp,"__esModule",{value:!0});var uf={};Object.defineProperty(uf,"__esModule",{value:!0});var np={};Object.defineProperty(np,"__esModule",{value:!0});var lf={};Object.defineProperty(lf,"__esModule",{value:!0});var rp={};Object.defineProperty(rp,"__esModule",{value:!0});var cf={};Object.defineProperty(cf,"__esModule",{value:!0});var ip={};Object.defineProperty(ip,"__esModule",{value:!0});var op={};Object.defineProperty(op,"__esModule",{value:!0});var sp={};Object.defineProperty(sp,"__esModule",{value:!0});var ap={};Object.defineProperty(ap,"__esModule",{value:!0});var df={};Object.defineProperty(df,"__esModule",{value:!0});var ff={};Object.defineProperty(ff,"__esModule",{value:!0});var hf={};Object.defineProperty(hf,"__esModule",{value:!0});var yl={};Object.defineProperty(yl,"__esModule",{value:!0});var pf={};Object.defineProperty(pf,"__esModule",{value:!0});var gf={};Object.defineProperty(gf,"__esModule",{value:!0});var mf={};Object.defineProperty(mf,"__esModule",{value:!0});var vf={};Object.defineProperty(vf,"__esModule",{value:!0});var up,bc={};Object.defineProperty(bc,"__esModule",{value:!0}),bc.PublicationProductType=void 0,function(o){o.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",o.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(up||(bc.PublicationProductType=up={}));var lp={};Object.defineProperty(lp,"__esModule",{value:!0});var cp={};Object.defineProperty(cp,"__esModule",{value:!0});var _f={};Object.defineProperty(_f,"__esModule",{value:!0});var tm={};Object.defineProperty(tm,"__esModule",{value:!0});var dp,Cl={};Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.SystemConsentStatus=void 0,function(o){o.GRANTED="GRANTED",o.DENIED="DENIED",o.UNDETERMINED="UNDETERMINED"}(dp||(Cl.SystemConsentStatus=dp={}));var fp={};Object.defineProperty(fp,"__esModule",{value:!0});var nm={};Object.defineProperty(nm,"__esModule",{value:!0});var hp={};Object.defineProperty(hp,"__esModule",{value:!0});var Ic,Sl={};Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.SearchResultSortCriteria=void 0,function(o){o.RELEVANCE="RELEVANCE",o.PUB_DATE_DESC="PUB_DATE_DESC"}(Ic||(Sl.SearchResultSortCriteria=Ic={}));var va,Tc={};Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.SearchField=void 0,function(o){o.CONTENT="CONTENT",o.CONTENT_NAME="CONTENT_NAME",o.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",o.CUSTOM_TERMS="CUSTOM_TERMS"}(va||(Tc.SearchField=va={}));var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0});var pp={};Object.defineProperty(pp,"__esModule",{value:!0});var Dc,bl={};Object.defineProperty(bl,"__esModule",{value:!0}),bl.StartDownloadError=void 0,function(o){o.NETWORK="NETWORK",o.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",o.PAYMENT_REQUIRED="PAYMENT_REQUIRED",o.NOT_FOUND="NOT_FOUND",o.UNKNOWN="UNKNOWN"}(Dc||(bl.StartDownloadError=Dc={}));var rm={};Object.defineProperty(rm,"__esModule",{value:!0});var gp={};Object.defineProperty(gp,"__esModule",{value:!0});var mp={};Object.defineProperty(mp,"__esModule",{value:!0});var vp={};Object.defineProperty(vp,"__esModule",{value:!0});var _p={};Object.defineProperty(_p,"__esModule",{value:!0});var Ep={};Object.defineProperty(Ep,"__esModule",{value:!0});var yp={};Object.defineProperty(yp,"__esModule",{value:!0});var wu={};Object.defineProperty(wu,"__esModule",{value:!0});var Cp={};Object.defineProperty(Cp,"__esModule",{value:!0});var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});var ou={};Object.defineProperty(ou,"__esModule",{value:!0});var Il={};Object.defineProperty(Il,"__esModule",{value:!0});var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});var su={};Object.defineProperty(su,"__esModule",{value:!0});var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});var au={};Object.defineProperty(au,"__esModule",{value:!0});var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});var Dl={};Object.defineProperty(Dl,"__esModule",{value:!0});var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});var im={};Object.defineProperty(im,"__esModule",{value:!0}),function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(ru,o),u(Ss,o),u(xa,o),u(ia,o),u(ml,o),u(Ou,o),u(qd,o),u(Yh,o),u(Pu,o),u(Xh,o),u(vl,o),u(ka,o),u(ef,o),u(tf,o),u(_l,o),u(El,o),u(Ec,o),u(Zh,o),u(yc,o),u(nf,o),u(oa,o),u(Sc,o),u(Uo,o),u(Mu,o),u(sf,o),u(af,o),u(tp,o),u(uf,o),u(np,o),u(lf,o),u(rp,o),u(cf,o),u(ip,o),u(op,o),u(sp,o),u(ap,o),u(df,o),u(ff,o),u(hf,o),u(yl,o),u(pf,o),u(gf,o),u(mf,o),u(vf,o),u(bc,o),u(lp,o),u(cp,o),u(_f,o),u(tm,o),u(Cl,o),u(fp,o),u(nm,o),u(hp,o),u(Sl,o),u(Tc,o),u(Ef,o),u(pp,o),u(bl,o),u(rm,o),u(gp,o),u(mp,o),u(vp,o),u(_p,o),u(Ep,o),u(yp,o),u(wu,o),u(Cp,o),u(Oc,o),u(Ac,o),u(ou,o),u(Il,o),u(Tl,o),u(su,o),u(Ru,o),u(au,o),u(Pc,o),u(Dl,o),u(Nu,o),u(im,o)}(Yg);var Sp,Mc={},Fa={};Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.ElementAlignment=void 0,function(o){o.TOP_LEFT="TOP_LEFT",o.TOP_CENTER="TOP_CENTER",o.TOP_RIGHT="TOP_RIGHT",o.CENTER_LEFT="CENTER_LEFT",o.CENTER_CENTER="CENTER_CENTER",o.CENTER_RIGHT="CENTER_RIGHT",o.BOTTOM_LEFT="BOTTOM_LEFT",o.BOTTOM_CENTER="BOTTOM_CENTER",o.BOTTOM_RIGHT="BOTTOM_RIGHT"}(Sp||(Fa.ElementAlignment=Sp={}));var yf={};Object.defineProperty(yf,"__esModule",{value:!0}),function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(Fa,o),u(yf,o)}(Mc);var bp={},Ip={};Object.defineProperty(Ip,"__esModule",{value:!0});var wc={};Object.defineProperty(wc,"__esModule",{value:!0});var Cf={};Object.defineProperty(Cf,"__esModule",{value:!0});var Tp={};Object.defineProperty(Tp,"__esModule",{value:!0});var Dp={};Object.defineProperty(Dp,"__esModule",{value:!0});var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});var Sf={};Object.defineProperty(Sf,"__esModule",{value:!0});var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});var Op={};Object.defineProperty(Op,"__esModule",{value:!0});var om={};Object.defineProperty(om,"__esModule",{value:!0});var sm={};Object.defineProperty(sm,"__esModule",{value:!0});var xu={};Object.defineProperty(xu,"__esModule",{value:!0});var Ap={};Object.defineProperty(Ap,"__esModule",{value:!0});var Nc,uu={};Object.defineProperty(uu,"__esModule",{value:!0}),uu.ProrationMode=void 0,function(o){o.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",o.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",o.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",o.DEFERRED="DEFERRED"}(Nc||(uu.ProrationMode=Nc={}));var Pp={};Object.defineProperty(Pp,"__esModule",{value:!0}),function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(Ip,o),u(wc,o),u(Cf,o),u(Tp,o),u(Dp,o),u(Lu,o),u(Sf,o),u(Rc,o),u(Op,o),u(om,o),u(sm,o),u(xu,o),u(Ap,o),u(uu,o),u(Pp,o)}(bp);var bf={},Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var If={};Object.defineProperty(If,"__esModule",{value:!0});var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.LAST_VISITED_PATH=void 0,Pl.LAST_VISITED_PATH="lastVisitedPath",function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(Lc,o),u(Ol,o),u(Al,o),u(If,o),u(Pl,o)}(bf);var xc,Tf={},lu={};Object.defineProperty(lu,"__esModule",{value:!0}),lu.AssignLocalPurchasesMode=void 0,function(o){o.UNASSIGNED="UNASSIGNED",o.REASSIGN="REASSIGN",o.ASSIGN="ASSIGN"}(xc||(lu.AssignLocalPurchasesMode=xc={})),function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(lu,o)}(Tf),function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(Bh,o),u(qa,o),u(jd,o),u(ga,o),u(eu,o),u(dl,o),u(fl,o),u(La,o),u(hc,o),u(Hd,o),u(ma,o),u(eo,o),u(hl,o),u(Kh,o),u(Wd,o),u(pl,o),u(Hh,o),u(nu,o),u(Gd,o),u(mc,o),u(Gh,o),u(zd,o),u(vc,o),u(zh,o),u(Du,o),u(Xd,o),u(rs,o),u(Yg,o),u(Mc,o),u(bp,o),u(bf,o),u(Tf,o)}(Fs),function(o){var i=Ii&&Ii.__createBinding||(Object.create?function(h,m,D,H){void 0===H&&(H=D);var _e=Object.getOwnPropertyDescriptor(m,D);(!_e||("get"in _e?!m.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return m[D]}}),Object.defineProperty(h,H,_e)}:function(h,m,D,H){void 0===H&&(H=D),h[H]=m[D]}),u=Ii&&Ii.__exportStar||function(h,m){for(var D in h)"default"!==D&&!Object.prototype.hasOwnProperty.call(m,D)&&i(m,h,D)};Object.defineProperty(o,"__esModule",{value:!0}),u(Fs,o)}(Ar);var Kr=(o=>(o.NOT_IMPLEMENTED="not implemented. Please override this method",o))(Kr||{});class am{constructor(){U(this,"version",void 0)}addConnectionStateListener(i){}addLifecycleListener(i){}closeOnboarding(i){console.warn("app.closeOnboarding:"+Kr.NOT_IMPLEMENTED)}performActionUrl(i){return(0,l.A)(function*(){console.warn("app.performActionUrl:"+Kr.NOT_IMPLEMENTED)})()}performAuthentication(i){return(0,l.A)(function*(){return console.warn("app.performAuthentication:"+Kr.NOT_IMPLEMENTED),{values:new Map}})()}removeConnectionStateListener(i){}removeLifecycleListener(i){}}class um{constructor(){U(this,"version",void 0)}getDisplayConfig(){return(0,l.A)(function*(){return{controlsEnabled:!1,displayMode:Ar.DisplayMode.EMBEDDED,statusBarEnabled:!1,titleBarEnabled:!1}})()}getDisplayMode(i){this.getDisplayConfig().then(u=>i(u.displayMode.toLowerCase()))}isControlsEnabled(i){this.getDisplayConfig().then(u=>i(u.controlsEnabled))}isStatusBarEnabled(i){this.getDisplayConfig().then(u=>i(u.statusBarEnabled))}isTitleBarEnabled(i){this.getDisplayConfig().then(u=>i(u.titleBarEnabled))}}class N_{constructor(){U(this,"version",void 0)}assignLocalPurchases(i){return(0,l.A)(function*(){return Promise.resolve(void 0)})()}getUserData(){return(0,l.A)(function*(){return Promise.resolve({token:void 0})})()}login(i){return(0,l.A)(function*(){return Promise.resolve(void 0)})()}logout(){return(0,l.A)(function*(){return Promise.resolve(void 0)})()}}class kc{constructor(){U(this,"version",void 0)}createBookmark(i){return(0,l.A)(function*(){return console.warn("bookmark.createBookmark:"+Kr.NOT_IMPLEMENTED),null})()}deleteBookmark(i){return(0,l.A)(function*(){console.warn("bookmark.deleteBookmark:"+Kr.NOT_IMPLEMENTED)})()}getBookmarks(){return(0,l.A)(function*(){return console.warn("bookmark.getBookmarks:"+Kr.NOT_IMPLEMENTED),{bookmarks:[]}})()}}class Df{constructor(){U(this,"version",void 0)}open(i){return Promise.resolve()}}const bs="pageInfo { hasNextPage, endCursor }";function Is(o){return o?"totalCount":""}const Mp=o=>"preview_".concat(o),Bs=ri(B||(B=_b||(_b=Ri(["\nfragment TaxonomySummaryFragment on Taxonomy {\n id\n internalId\n name\n type\n parentId\n seoMetadata @include(if: $includeContentSeoMetadata) {\n key\n value\n }\n properties {\n key\n value\n }\n}\n"])))),Ml=ri(ne||(ne=Eb||(Eb=Ri(["\n fragment ContentFragment on Content {\n __typename\n id\n version\n name\n description\n index\n alias\n externalId\n publicationDate\n unpublishDate\n lastModified\n access\n productId\n purchaseData {\n purchased\n purchasedBy\n }\n publication {\n id\n }\n properties (filter: $propertyFilter) {\n key\n value\n }\n seoMetadata @include(if: $includeContentSeoMetadata) {\n key\n value\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n }\n categories\n tags\n }\n"])))),lm=ri(te||(te=yb||(yb=Ri(["\nfragment ContentBlockFragment on ContentBlock {\n id\n type\n parentId\n children\n sequence\n html\n level\n properties {\n key\n value\n type\n }\n}\n"])))),wl=ri(me||(me=Cb||(Cb=Ri(["\nfragment IssueFragment on Issue {\n contentLength\n numberOfPages\n previewContentLength\n resources @include(if: $includeResources) {\n id\n url\n type\n contentLength\n properties {\n key\n value\n type\n }\n }\n}\n"])))),Rl=ri(V||(V=Sb||(Sb=Ri(["\nfragment PostFragment on Post {\n postType\n bundleId\n bundles {\n id\n bundleType\n }\n taxonomies {\n ...TaxonomySummaryFragment\n }\n authors {\n name\n email\n }\n bundleId\n content @include(if: $includeBlocks) {\n ...ContentBlockFragment\n }\n\n previewContentBlocks @include(if: $includeBlocks) {\n ...ContentBlockFragment\n }\n\n contentHtml @include(if: $includeHtml)\n previewContentHtml @include(if: $includeHtml)\n resources @include(if: $includeResources) {\n id\n url\n type\n contentLength\n properties {\n key\n value\n type\n }\n }\n}\n\n","\n"]))),lm),Nl=ri(Z||(Z=bb||(bb=Ri(["\n fragment BundleFragment on Bundle {\n bundleType\n taxonomies {\n ...TaxonomySummaryFragment\n }\n authors {\n name\n email\n }\n contents @include(if: $includeBundledContent) {\n id\n content {\n ...ContentFragment\n ...PostFragment\n }\n }\n }\n"])))),cm=ri(z||(z=Db||(Db=Ri(["\nfragment PostSearchResultFragment on PostSearchResult {\n post {\n ...ContentFragment\n ...PostFragment\n },\n excerpt\n}\n "]))));var Jn=(o=>(o.APP_PERFORM_ACTION_URL="APP_PERFORM_ACTION_URL",o.APP_BROWSER_GET_DISPLAY_CONFIG="APP_BROWSER_GET_DISPLAY_CONFIG",o.ACCOUNT_ASSIGN_LOCAL_PURCHASES="ACCOUNT_ASSIGN_LOCAL_PURCHASES",o.ACCOUNT_GET_USER_DATA="ACCOUNT_GET_USER_DATA",o.ACCOUNT_LOGIN="ACCOUNT_LOGIN",o.ACCOUNT_LOGOUT="ACCOUNT_LOGOUT",o.BOOKMARK_CREATE="BOOKMARK_CREATE",o.BOOKMARK_DELETE="BOOKMARK_DELETE",o.BOOKMARK_GET="BOOKMARK_GET",o.CATALOG_GET_CATEGORIES="CATALOG_GET_CATEGORIES",o.CATALOG_GET_ISSUES="CATALOG_GET_ISSUES",o.CATALOG_GET_METADATA="CATALOG_GET_METADATA",o.CATALOG_GET_CONTENT="CATALOG_GET_CONTENT",o.CATALOG_GET_PRODUCTS="CATALOG_GET_PRODUCTS",o.CATALOG_GET_PUBLICATION_PRODUCTS="CATALOG_GET_PUBLICATION_PRODUCTS",o.CATALOG_GET_PUBLICATIONS="CATALOG_GET_PUBLICATIONS",o.CATALOG_GET_SUBSCRIPTIONS="CATALOG_GET_PUBLICATIONS",o.CATALOG_SEARCH="CATALOG_SEARCH",o.CATALOG_GET_ISSUE_STATES="CATALOG_GET_ISSUE_STATES",o.CATALOG_GET_MENUS="CATALOG_GET_MENUS",o.CATALOG_GET_TAXONOMIES="CATALOG_GET_TAXONOMIES",o.CATALOG_GET_COLLECTIONS="CATALOG_GET_COLLECTIONS",o.CATALOG_GET_APP_SETTINGS="CATALOG_GET_APP_SETTINGS",o.CATALOG_GET_REDIRECTS="CATALOG_GET_REDIRECTS",o.CATALOG_LOOKUP_PATH_SEGMENTS="CATALOG_LOOKUP_PATH_SEGMENTS",o.CLOSE_VIEW="CLOSE_VIEW",o.CONTENT_OPEN="CONTENT_OPEN",o.ENTITLEMENT_GET_USER_DATA="ENTITLEMENT_GET_USER_DATA",o.ENTITLEMENT_LOGIN="ENTITLEMENT_LOGIN",o.ENTITLEMENT_LOGIN_OAUTH="ENTITLEMENT_LOGIN_OAUTH",o.ENTITLEMENT_LOGOUT="ENTITLEMENT_LOGOUT",o.ENTITLEMENT_INVALIDATE_TOKENS="ENTITLEMENT_INVALIDATE_TOKENS",o.ENTITLEMENT_CHECK_OAUTH="ENTITLEMENT_CHECK_OAUTH",o.ENTITLEMENT_VERIFY_ACCESS_TOKEN="ENTITLEMENT_VERIFY_ACCESS_TOKEN",o.CONSENT_GET_CONSENT="CONSENT_GET_CONSENT",o.CONSENT_GRANT_CONSENT="CONSENT_GRANT_CONSENT",o.CONSENT_SHOW_PRIVACY_MANAGER="CONSENT_SHOW_PRIVACY_MANAGER",o.CONSENT_GET_SYSTEM_CONSENT="CONSENT_GET_SYSTEM_CONSENT",o.CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER="CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER",o.ENV_RESOURCE_URL="ENV_RESOURCE_URL",o.ENV_RESIZE="ENV_RESIZE",o.ENV_CSS_URLS="ENV_CSS_URLS",o.ENV_INIT="ENV_INIT",o.ENV_TITLE="ENV_TITLE",o.ENV_PRINT="ENV_PRINT",o.ENV_BACK="ENV_BACK",o.ENV_FORWARD="ENV_FORWARD",o.ENV_RELOAD="ENV_RELOAD",o.ENV_LOCATION="ENV_LOCATION",o.ISSUE_GET_BASE_URL="ISSUE_GET_BASE_URL",o.ISSUE_GET_PAGES="ISSUE_GET_PAGES",o.ISSUE_GET_TOC="ISSUE_GET_TOC",o.ISSUE_PAGER_GET_INFO="ISSUE_PAGER_GET_INFO",o.ISSUE_PAGER_NAVIGATE_TO="ISSUE_PAGER_NAVIGATE_TO",o.MEDIA_START_AUDIO="MEDIA_START_AUDIO",o.MEDIA_PAUSE_AUDIO="MEDIA_PAUSE_AUDIO",o.MEDIA_RESUME_AUDIO="MEDIA_RESUME_AUDIO",o.MEDIA_STOP_AUDIO="MEDIA_STOP_AUDIO",o.MEDIA_SEEK_TO="MEDIA_SEEK_TO",o.MEDIA_GET_PLAYBACK_RATE="MEDIA_GET_PLAYBACK_RATE",o.MEDIA_SET_PLAYBACK_RATE="MEDIA_SET_PLAYBACK_RATE",o.METADATA_GET_METADATA="METADATA_GET_METADATA",o.SHARE_SHARE="SHARE_SHARE",o.STATE_GET_STATE="STATE_GET_STATE",o.STATE_SET_STATE="STATE_SET_STATE",o.STORE_ADD_SUBSCRIPTION_CODES="STORE_ADD_SUBSCRIPTION_CODES",o.STORE_ADD_SUBSCRIPTION_CODE="STORE_ADD_SUBSCRIPTION_CODE",o.STORE_GET_PRICES="STORE_GET_PRICES",o.STORE_GET_SUBSCRIPTION_CODES="STORE_GET_SUBSCRIPTION_CODES",o.STORE_OPEN_CODE_REDEMPTION="STORE_OPEN_CODE_REDEMPTION",o.STORE_PURCHASE="STORE_PURCHASE",o.STORE_REMOVE_SUBSCRIPTION_CODE="STORE_REMOVE_SUBSCRIPTION_CODE",o.STORE_REMOVE_SUBSCRIPTION_CODES="STORE_REMOVE_SUBSCRIPTION_CODES",o.STORE_RESTORE_PURCHASES="STORE_RESTORE_PURCHASES",o.STORE_SUBSCRIBE="STORE_SUBSCRIBE",o.TRACKING_TRACK_ACTION="TRACKING_TRACK_ACTION",o.TRACKING_TRACK_VIEW="TRACKING_TRACK_VIEW",o.TRACKING_TRACK_PURCHASE="TRACKING_TRACK_PURCHASE",o.TRACKING_SET_USER_ATTRIBUTE="TRACKING_SET_USER_ATTRIBUTE",o))(Jn||{}),pm=(o=>(o.ANDROID="ANDROID",o.IOS="IOS",o.WEB="WEB",o))(pm||{}),Fu=(o=>(o.CONNECTIONS_STATE="APP_CONNECTION_STATE",o.LIFECYCLE="APP_LIFECYCLE",o.CATALOG_INVALIDATION="CATALOG_INVALIDATION",o.MEDIA_STATUS="MEDIA_STATUS",o.MEDIA_PROGRESS="MEDIA_PROGRESS",o.ISSUE_PAGER_STATE="ISSUE_PAGER_STATE",o))(Fu||{});class Of{constructor(i,u){this.major=i,this.minor=u}toString(){return"".concat(this.major,".").concat(this.minor)}}var Ji=(o=>(o.INVALIDATION="CATALOG:INVALIDATION",o.MEDIA_STATUS="MEDIA:STATUS",o.MEDIA_PROGRESS="MEDIA:PROGRESS",o.ISSUE_PAGER_STATE="ISSUEPAGER:STATE",o))(Ji||{});const to={sendEvent:(o,i)=>{window.dispatchEvent(new CustomEvent(o,{detail:i}))},addListener(o,i){window.addEventListener(o,i)},removeListener(o,i){window.removeEventListener(o,i)}};class L_{constructor(i,u,h,m,D,H){var _e=this;U(this,"version",new Of(1,12)),U(this,"getPublications",function(){var Ve=(0,l.A)(function*(Ee){var tt,pt,ht,Tt,Vt,Jt,ln;const Rt=null===(tt=Ee=_e.convertPublicationsParams(Ee))||void 0===tt?void 0:tt.contentsParams,dn=null==Rt?void 0:Rt.fetchOptions,nn=(yield _e.queryWithAuthRetry(function fm(o,i){return ri(ve||(ve=Ab||(Ab=Ri(["\nquery CatalogPublicationQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: PublicationFilter,\n $sort: [PublicationComparator!],\n $first: Int,\n $after: String,\n $includeContents: Boolean!,\n $contentFilter: ContentFilter,\n $contentSort: [ContentComparator!],\n $contentFirst: Int,\n $contentAfter: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n publicationsConnection(\n filter: $filter,\n sort: $sort,\n first: $first,\n after: $after\n ) {\n ","\n ","\n edges {\n publication: node {\n ...PublicationFragment\n }\n }\n }\n }\n}\n\n","\n "]))),bs,Is(null==o?void 0:o.totalCount),function ku(o){return ri(Q||(Q=Tb||(Tb=Ri(["\nfragment PublicationFragment on Publication {\n id\n name\n description\n type\n language\n index\n currentContentId\n contentsConnection(\n filter: $contentFilter,\n sort: $contentSort,\n first: $contentFirst,\n after: $contentAfter\n ) @include(if: $includeContents) {\n ",",\n ",",\n edges {\n node {\n ...ContentFragment\n ...IssueFragment\n ...PostFragment\n ...BundleFragment\n }\n }\n }\n properties {\n key\n value\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n },\n tocSettings {\n pageLabelsEnabled\n style\n }\n}\n\n","\n","\n","\n","\n","\n"]))),bs,Is(null==o?void 0:o.totalCount),Ml,wl,Rl,Nl,Bs)}(i))}(null===(pt=Ee)||void 0===pt?void 0:pt.fetchOptions,dn),{filter:null===(ht=Ee)||void 0===ht?void 0:ht.publicationFilter,sort:null===(Tt=Ee)||void 0===Tt?void 0:Tt.sort,first:null===(Vt=Ee)||void 0===Vt?void 0:Vt.first,after:null===(Jt=Ee)||void 0===Jt?void 0:Jt.after,includeContents:!(null===(ln=Ee)||void 0===ln||!ln.includeContents),contentFilter:null==Rt?void 0:Rt.contentFilter,contentSort:null==Rt?void 0:Rt.sort,contentFirst:null==Rt?void 0:Rt.first,contentAfter:null==Rt?void 0:Rt.after,includeBundledContent:!(null==dn||!dn.includeBundledContent),includeResources:!(null==dn||!dn.includeResources),includeBlocks:!(null==dn||!dn.includeBlocks),includeHtml:!(null==dn||!dn.includeHtml),includeContentSeoMetadata:!(null==dn||!dn.seoMetadata),propertyFilter:null==dn?void 0:dn.properties})).catalog;return _e.toPage(nn.publicationsConnection,Rn=>_e.mapPublication(Rn.publication))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getIssues",function(){var Ve=(0,l.A)(function*(Ee){const tt=_e.convertIssueParams(Ee);return _e.getContents(tt)});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getContents",function(){var Ve=(0,l.A)(function*(Ee){const tt=null==Ee?void 0:Ee.fetchOptions,pt=(yield _e.queryWithAuthRetry(function dm(o){return ri(Y||(Y=Ob||(Ob=Ri(["\nquery CatalogContentsQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: ContentFilter,\n $sort: [ContentComparator!],\n $first: Int,\n $after: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n contentsConnection(\n filter: $filter,\n sort: $sort,\n first: $first,\n after: $after\n ) {\n ","\n ","\n edges {\n content: node {\n __typename\n ...ContentFragment\n ...PostFragment\n ...IssueFragment \n ...BundleFragment\n }\n }\n }\n }\n}\n","\n","\n","\n","\n","\n"]))),bs,Is(null==o?void 0:o.totalCount),Ml,Rl,Nl,wl,Bs)}(tt),{filter:null==Ee?void 0:Ee.contentFilter,sort:null==Ee?void 0:Ee.sort,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeBlocks:!(null==tt||!tt.includeBlocks),includeHtml:!(null==tt||!tt.includeHtml),includeResources:!(null==tt||!tt.includeResources),includeBundledContent:!(null==tt||!tt.includeBundledContent),includeContentSeoMetadata:!(null==tt||!tt.seoMetadata),propertyFilter:null==tt?void 0:tt.properties})).catalog;return _e.toPage(pt.contentsConnection,ht=>_e.mapContent(ht.content))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getMenus",function(){var Ve=(0,l.A)(function*(Ee){const tt=(yield _e.queryWithAuthRetry(function gm(o){return ri(fe||(fe=Mb||(Mb=Ri(["\n query MenuQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: MenuFilter,\n $first: Int,\n $after: String,\n $includeItems: Boolean!\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n menusConnection(filter: $filter, first: $first, after: $after) {\n edges {\n node {\n id\n name\n properties {\n key\n value\n type\n }\n items @include(if: $includeItems) {\n id\n sortIndex\n parentId\n url\n name\n title\n description\n target\n cssClasses\n properties {\n key\n value\n type\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n }\n }\n }\n },\n ","\n ","\n }\n }\n }\n"]))),bs,Is(null==o?void 0:o.totalCount))}(null==Ee?void 0:Ee.fetchOptions),{filter:null==Ee?void 0:Ee.menuFilter,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeItems:!(null==Ee||!Ee.includeItems)})).catalog;return _e.toPage(tt.menusConnection,pt=>_e.mapMenu(pt.node))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getCollections",function(){var Ve=(0,l.A)(function*(Ee){const tt=null==Ee?void 0:Ee.elementsParams,pt=null==Ee?void 0:Ee.fetchOptions,ht=null==tt?void 0:tt.fetchOptions,Tt=(yield _e.queryWithAuthRetry(function mm(o,i){return ri(w||(w=wb||(wb=Ri(["\nquery CatalogCollections(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: CollectionFilter,\n $sort: [CollectionComparator!],\n $first: Int,\n $after: String,\n $includeElements: Boolean!,\n $elementsFirst: Int,\n $elementsAfter: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(appInfo: $appInfo, deviceInfo: $deviceInfo, authorization: $authorization) {\n collectionsConnection(\n filter: $filter\n sort: $sort\n first: $first\n after: $after\n ) {\n ","\n ","\n edges {\n node {\n id\n name\n properties {\n key\n value\n }\n elementsConnection(\n first: $elementsFirst,\n after: $elementsAfter\n ) @include(if: $includeElements) {\n ","\n ","\n edges {\n node {\n __typename\n ... on ContentElement {\n id\n sortIndex\n content {\n ...ContentFragment\n ...IssueFragment\n ...PostFragment\n ...BundleFragment\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n","\n","\n","\n","\n","\n"]))),bs,Is(null==o?void 0:o.totalCount),bs,Is(null==i?void 0:i.totalCount),Ml,wl,Rl,Nl,Bs)}(pt,ht),{filter:null==Ee?void 0:Ee.collectionFilter,sort:null==Ee?void 0:Ee.sort,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeElements:!(null==Ee||!Ee.includeElements),elementsFirst:null==tt?void 0:tt.first,elementsAfter:null==tt?void 0:tt.after,includeBlocks:!(null==ht||!ht.includeBlocks),includeHtml:!(null==ht||!ht.includeHtml),includeResources:!(null==ht||!ht.includeResources),includeBundledContent:!(null==ht||!ht.includeBundledContent),includeContentSeoMetadata:!(null==ht||!ht.seoMetadata),propertyFilter:null==ht?void 0:ht.properties})).catalog;return _e.toPage(Tt.collectionsConnection,Vt=>_e.mapCollection(Vt.node))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getCategories",function(){var Ve=(0,l.A)(function*(Ee){const tt=_e.convertCategoriesParams(Ee),pt=yield _e.getTaxonomies(tt);return _e.convertToCategoryPage(pt)});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getTaxonomies",function(){var Ve=(0,l.A)(function*(Ee){var tt;const pt=null==Ee?void 0:Ee.contentsParams,ht=null==pt?void 0:pt.fetchOptions,Tt=(yield _e.queryWithAuthRetry(function vm(o,i){return ri(j||(j=Rb||(Rb=Ri(["\nquery CatalogTaxonomiesQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $filter: TaxonomyFilter,\n $sort: [TaxonomyComparator!],\n $first: Int,\n $after: String,\n $includeTaxonomySeoMetadata: Boolean!,\n $includeContents: Boolean!,\n $contentFilter: ContentFilter,\n $contentSort: [ContentComparator!],\n $contentFirst: Int,\n $contentAfter: String,\n $includeBundledContent: Boolean!,\n $includeResources: Boolean!,\n $includeBlocks: Boolean!,\n $includeHtml: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n taxonomiesConnection(\n first: $first,\n after: $after,\n sort: $sort,\n filter: $filter\n ) {\n ","\n ","\n edges {\n node {\n __typename\n ...TaxonomyFragment\n }\n }\n }\n }\n}\n","\n"]))),bs,Is(null==o?void 0:o.totalCount),function _a(o){return ri(le||(le=Ib||(Ib=Ri(["\n fragment TaxonomyFragment on Taxonomy {\n id\n internalId\n name\n description\n type\n parentId\n seoMetadata @include(if: $includeTaxonomySeoMetadata) {\n key\n value\n }\n properties {\n key\n value\n }\n thumbnails {\n kind\n url\n properties {\n key\n value\n }\n }\n contentsConnection(\n filter: $contentFilter,\n sort: $contentSort,\n first: $contentFirst,\n after: $contentAfter\n ) @include(if: $includeContents) {\n ",",\n ",",\n edges {\n node {\n ...ContentFragment\n ...IssueFragment\n ...PostFragment\n ...BundleFragment\n }\n }\n }\n }\n\n ","\n ","\n ","\n ","\n ","\n"]))),bs,Is(null==o?void 0:o.totalCount),Ml,wl,Rl,Nl,Bs)}(i))}(null==Ee?void 0:Ee.fetchOptions,ht),{filter:null==Ee?void 0:Ee.taxonomyFilter,sort:null==Ee?void 0:Ee.sort,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeTaxonomySeoMetadata:!(null==Ee||null===(tt=Ee.fetchOptions)||void 0===tt||!tt.seoMetadata),includeContents:!(null==Ee||!Ee.includeContents),contentFilter:null==pt?void 0:pt.contentFilter,contentSort:null==pt?void 0:pt.sort,contentFirst:null==pt?void 0:pt.first,contentAfter:null==pt?void 0:pt.after,includeBundledContent:!(null==ht||!ht.includeBundledContent),includeResources:!(null==ht||!ht.includeResources),includeBlocks:!(null==ht||!ht.includeBlocks),includeHtml:!(null==ht||!ht.includeHtml),includeContentSeoMetadata:!(null==ht||!ht.seoMetadata),propertyFilter:null==ht?void 0:ht.properties})).catalog;return _e.toPage(Tt.taxonomiesConnection,Vt=>_e.mapTaxonomy(Vt.node))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getAppSettings",function(){var Ve=(0,l.A)(function*(Ee){const tt=(yield _e.queryWithAuthRetry(function Fc(o){return ri(I||(I=Nb||(Nb=Ri(["\n query AppSettingsQuery(\n $appInfo: AppInfo!\n $deviceInfo: DeviceInfo!\n $authorization: Authorization!\n $filter: AppSettingFilter\n $first: Int\n $after: String\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n appSettingsConnection(filter: $filter, first: $first, after: $after) {\n edges {\n node {\n key\n value\n }\n },\n ","\n ","\n }\n }\n }\n "]))),bs,Is(null==o?void 0:o.totalCount))}(null==Ee?void 0:Ee.fetchOptions),{filter:null==Ee?void 0:Ee.appSettingFilter,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after})).catalog;return _e.toPage(tt.appSettingsConnection,pt=>pt.node)});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"getRedirects",function(){var Ve=(0,l.A)(function*(Ee){const tt=(yield _e.queryWithAuthRetry(function Ea(o){return ri(S||(S=Lb||(Lb=Ri(["\n query RedirectsQuery(\n $appInfo: AppInfo!\n $deviceInfo: DeviceInfo!\n $authorization: Authorization!\n $filter: RedirectFilter,\n $first: Int,\n $after: String\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n redirectsConnection(filter: $filter, first: $first, after: $after) {\n edges {\n node {\n id\n identifier\n type\n target\n statusCode\n }\n },\n ","\n ","\n }\n }\n }\n "]))),bs,Is(null==o?void 0:o.totalCount))}(null==Ee?void 0:Ee.fetchOptions),{filter:null==Ee?void 0:Ee.redirectFilter,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after})).catalog;return _e.toPage(tt.redirectsConnection,pt=>_e.mapRedirect(pt.node))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"lookupPathSegments",function(){var Ve=(0,l.A)(function*(Ee){return(yield _e.queryWithAuthRetry(function Ll(){return ri(N||(N=xb||(xb=Ri(["\n query LookupPathSegmentsQuery(\n $appInfo: AppInfo!\n $deviceInfo: DeviceInfo!\n $authorization: Authorization!\n $pathSegments: [String!]!\n ) {\n catalog(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n authorization: $authorization\n ) {\n lookupPathSegments(pathSegments: $pathSegments) {\n identifier\n matches {\n __typename\n ... on ContentMatch {\n id\n contentType\n postType\n }\n ... on TaxonomyMatch {\n id\n identifier\n parentIdentifier\n name\n taxonomyType\n }\n ... on CollectionMatch {\n id\n name\n }\n ... on RedirectMatch {\n id\n identifier\n redirectType\n target\n statusCode\n }\n }\n }\n }\n }\n "]))))}(),{pathSegments:Ee.pathSegments})).catalog.lookupPathSegments.map(tt=>_e.mapPathSegmentLookupResult(tt))});return function(Ee){return Ve.apply(this,arguments)}}()),U(this,"search",function(){var Ve=(0,l.A)(function*(Ee){var tt,pt,ht,Tt,Vt,Jt,ln;let dn=Ee.contentFilter;if(Ee.phrase||Ee.issueFilter){const Ir={contentType:{value:Ar.CatalogContentType.ISSUE}};dn=Ee.issueFilter?{AND:[Ir,Ee.issueFilter]}:Ir}let nn=Ee.sort;if(!nn&&null!==(tt=Ee.options)&&void 0!==tt&&tt.sortBy)switch(null===(pt=Ee.options)||void 0===pt?void 0:pt.sortBy){case Ar.SearchResultSortCriteria.RELEVANCE:nn=[{relevance:{direction:Ar.SortDirection.DESC}}];break;case Ar.SearchResultSortCriteria.PUB_DATE_DESC:nn=[{publicationDate:{direction:Ar.SortDirection.DESC}}]}let Rn=null===(ht=Ee.options)||void 0===ht?void 0:ht.pageSort;!Rn&&null!==(Tt=Ee.options)&&void 0!==Tt&&Tt.sortPages&&(Rn=[{index:{direction:Ar.SortDirection.ASC}}]);const kn=Ee.fetchOptions,Un=(yield _e.queryWithAuthRetry(function hm(o){return ri(pe||(pe=Pb||(Pb=Ri(["\nquery CatalogSearchQuery(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $authorization: Authorization!,\n $phrase: String!,\n $fields: [SearchField!],\n $fuzzy: Boolean,\n $pageSort: [IssuePageComparator!]\n $sort: [ContentSearchResultComparator!]\n $findAll: Boolean,\n $contentFilter: ContentFilter,\n $first: Int,\n $after: String,\n $includeHtml: Boolean!,\n $includeBlocks: Boolean!,\n $includeResources: Boolean!,\n $includeBundledContent: Boolean!,\n $includeContentSeoMetadata: Boolean!,\n $propertyFilter: PropertyFilter\n) {\n catalog(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n authorization: $authorization\n ) {\n contentSearchConnection(\n searchPhrase: $phrase,\n searchFields: $fields,\n contentFilter: $contentFilter,\n fuzzyMatching: $fuzzy,\n sort: $sort,\n findAllWords: $findAll,\n first: $first,\n after: $after\n ) {\n ","\n ","\n edges {\n searchResult: node {\n __typename\n ... on IssueSearchResult {\n issue {\n ...ContentFragment\n ...IssueFragment\n }\n pagesConnection(\n sort: $pageSort\n ) {\n edges {\n node {\n excerpt\n pageIndex\n pageNumber\n pageLabel\n pageTitle\n elementAlias\n }\n }\n }\n }\n ...PostSearchResultFragment\n ... on BundleSearchResult {\n bundle {\n ...ContentFragment\n ...BundleFragment\n }\n posts {\n ...PostSearchResultFragment\n }\n }\n }\n }\n }\n }\n}\n","\n","\n","\n","\n","\n","\n "]))),bs,Is(null==o?void 0:o.totalCount),cm,wl,Ml,Nl,Rl,Bs)}(kn),{phrase:null!==(Vt=Ee.searchPhrase)&&void 0!==Vt?Vt:Ee.phrase,fields:Ee.searchFields,fuzzy:null===(Jt=Ee.options)||void 0===Jt?void 0:Jt.fuzzy,sort:nn,findAll:null===(ln=Ee.options)||void 0===ln?void 0:ln.findAll,contentFilter:dn,pageSort:Rn,first:Ee.first,after:Ee.after,includeHtml:!(null==kn||!kn.includeHtml),includeBlocks:!(null==kn||!kn.includeBlocks),includeBundledContent:!(null==kn||!kn.includeBundledContent),includeResources:!(null==kn||!kn.includeResources),includeContentSeoMetadata:!(null==kn||!kn.seoMetadata),propertyFilter:null==kn?void 0:kn.properties})).catalog;return _e.toPage(Un.contentSearchConnection,Ir=>_e.mapSearchResult(Ir.searchResult))});return function(Ee){return Ve.apply(this,arguments)}}()),this.getConfig=i,this.thisPurple=u,this.client=h,this.appInfo=m,this.deviceInfo=D,this.authorization=H}get config(){return this.getConfig()}getDataOrThrow(i){if(i.data)return i.data;throw{message:i.errors[0].message,code:"UNKNOWN"}}queryWithAuthRetry(i,u){var h=this;return(0,l.A)(function*(){var m;let D=yield h.client.query({query:i,variables:{...u,appInfo:h.appInfo(),deviceInfo:h.deviceInfo(),authorization:h.authorization()}});if(null!==(m=D.errors)&&void 0!==m&&m.some(H=>"INVALID_ENTITLEMENT_TOKEN"===H.extensions.code)){if(console.warn("err: INVALID_ENTITLEMENT_TOKEN, refreshing token and retrying again"),!h.getConfig().entitlementRefreshToken)return h.logoutAndReturnResponse(D,"Error during refresh: no refreshToken");try{yield h.thisPurple.entitlement.refreshAccessToken()}catch(H){return h.logoutAndReturnResponse(D,"Error during refresh: logging user out",H)}console.debug("refreshed accessToken, retrying query again"),D=yield h.client.query({query:i,variables:{...u,appInfo:h.appInfo(),deviceInfo:h.deviceInfo(),authorization:h.authorization()}})}return h.getDataOrThrow(D)})()}logoutAndReturnResponse(i,u,h){return console.error(u,h),this.thisPurple.entitlement.clearLocalData(),this.getDataOrThrow(i)}toPage(i,u){return{totalCount:i.totalCount,cursor:i.pageInfo.endCursor,hasNextPage:i.pageInfo.hasNextPage,nodes:i.edges.map(u).filter(h=>!!h)}}mapProperties(i){return i.reduce((u,h)=>({...u,[h.key]:h.value}),{})}mapSeoMetadata(i){return null==i?void 0:i.reduce((u,h)=>({...u,[h.key]:h.value}),{})}mapThumbnails(i){return i.reduce((u,h)=>({...u,[h.kind]:h.url}),{})}mapThumbnailsExtended(i){return i.reduce((u,h)=>(u[h.kind]={kind:h.kind,url:h.url,properties:this.mapProperties(h.properties)},u),{})}mapPublication(i){return{id:i.id,currentContentId:i.currentContentId,currentIssueId:i.currentContentId,description:i.description,freeConsumable:i.freeConsumable,index:i.index,contents:i.contentsConnection?this.toPage(i.contentsConnection,u=>this.mapContent(u.node)):null,language:i.language,name:i.name,printSubscriptionEnabled:i.printSubscriptionEnabled,properties:this.mapProperties(i.properties),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails),type:i.type,tocSettings:i.tocSettings}}mapIssueToCatalogPreviewIssue(i){return{id:Mp(i.id),contentLength:i.contentLength,numberOfPages:i.numberOfPages,state:this.getIssueState(i.id),version:i.version}}getIssueState(i){return{installState:Ar.CatalogIssueInstallState.NOT_INSTALLED,downloading:!1,issueId:i,progress:0,updateAvailable:!1}}mapIssue(i){const u=this.mapContent(i);if((null==u?void 0:u.contentType)!==Ar.CatalogContentType.ISSUE)throw new Error("mapIssue received contentType: ".concat(u.contentType));return u}mapIssueSpecificFields(i){var u;return{comingSoon:!1,contentLength:i.contentLength,numberOfPages:i.numberOfPages,previewIssue:i.previewContentLength>0?this.mapIssueToCatalogPreviewIssue(i):void 0,state:this.getIssueState(i.id),purchasable:i.access===Ar.Access.PURCHASABLE,type:Ar.IssueType.ISSUE,externalIssueId:i.externalId,purchased:i.purchaseData.purchased,purchasedBy:i.purchaseData.purchased,categories:i.categories,tags:i.tags,resources:null===(u=i.resources)||void 0===u?void 0:u.map(h=>this.mapResource(h))}}mapPost(i){const u=this.mapContent(i);if((null==u?void 0:u.contentType)!==Ar.CatalogContentType.POST)throw new Error("mapPost received contentType: "+u.contentType);return u}mapPostSpecificFields(i){var u,h,m,D;return{postType:i.postType,content:null===(u=i.content)||void 0===u?void 0:u.map(H=>this.mapPostBlock(H)),contentHtml:i.contentHtml,authors:null===(h=i.authors)||void 0===h?void 0:h.map(H=>this.mapAuthor(H)),resources:null===(m=i.resources)||void 0===m?void 0:m.map(H=>this.mapResource(H)),previewResources:null===(D=i.previewResources)||void 0===D?void 0:D.map(H=>this.mapResource(H)),taxonomies:i.taxonomies.map(H=>this.mapTaxonomySummary(H)),bundleId:i.bundleId,bundles:i.bundles.map(H=>this.mapBundleSummary(H))}}mapBundle(i){const u=this.mapContent(i);if((null==u?void 0:u.contentType)!==Ar.CatalogContentType.BUNDLE)throw new Error("mapBundle received contentType: "+u.contentType);return u}mapPostBlock(i){return{id:i.id,html:i.html,children:i.children,level:i.level,properties:this.mapProperties(i.properties),sequence:i.sequence,type:i.type,parentId:i.parentId}}mapBundleSummary(i){return{id:i.id,bundleType:i.bundleType}}mapAuthor(i){return{name:i.name,email:i.email}}mapBundleSpecificFields(i){var u,h;return{bundleType:i.bundleType,taxonomies:i.taxonomies.map(m=>this.mapTaxonomySummary(m)),contents:null===(u=i.contents)||void 0===u?void 0:u.map(m=>this.mapBundleContent(m)),authors:null===(h=i.authors)||void 0===h?void 0:h.map(m=>this.mapAuthor(m))}}mapBundleContent(i){return{id:i.id,post:this.mapPost(i.content)}}mapContent(i){var u;const h=i.__typename.toUpperCase(),m={contentType:h,id:i.id,publicationId:i.publication.id,version:i.version,name:i.name,description:null!==(u=i.description)&&void 0!==u?u:"",alias:i.alias,externalId:i.externalId,publicationDate:Rp(i.publicationDate),lastModified:Rp(i.lastModified),unpublishDate:Rp(i.unpublishDate),index:i.index,productId:i.productId,access:i.access,purchaseData:i.purchaseData,properties:this.mapProperties(i.properties),seoMetadata:this.mapSeoMetadata(i.seoMetadata),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails)};switch(h){case Ar.CatalogContentType.ISSUE:return{...m,...this.mapIssueSpecificFields(i)};case Ar.CatalogContentType.BUNDLE:return{...m,...this.mapBundleSpecificFields(i)};case Ar.CatalogContentType.POST:return{...m,...this.mapPostSpecificFields(i)};default:return}}mapResource(i){return{id:i.id,url:i.url,properties:this.mapProperties(i.properties),contentLength:i.contentLength,type:i.type}}mapPathSegmentLookupResult(i){return{identifier:i.identifier,matches:i.matches.map(u=>this.mapPathSegmentMatch(u)).filter(u=>!!u)}}mapPathSegmentMatch(i){switch(i.__typename){case"ContentMatch":return{type:"CONTENT",contentType:i.contentType,id:i.id,postType:i.postType};case"TaxonomyMatch":return{type:"TAXONOMY",id:i.id,identifier:i.identifier,name:i.name,taxonomyType:i.taxonomyType,parentIdentifier:i.parentIdentifier};case"CollectionMatch":return{type:"COLLECTION",id:i.id,name:i.name};case"RedirectMatch":return{type:"REDIRECT",id:i.id,identifier:i.identifier,redirectType:i.redirectType,statusCode:i.statusCode,target:i.target};default:return}}mapTaxonomy(i){return{id:i.id,internalId:i.internalId,name:i.name,description:i.description,seoMetadata:this.mapSeoMetadata(i.seoMetadata),properties:this.mapProperties(i.properties),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails),type:i.type,parentId:i.parentId,contents:i.contentsConnection?this.toPage(i.contentsConnection,u=>this.mapContent(u.node)):null}}mapTaxonomySummary(i){return{id:i.id,internalId:i.internalId,name:i.name,seoMetadata:this.mapSeoMetadata(i.seoMetadata),properties:this.mapProperties(i.properties),type:i.type,parentId:i.parentId}}mapCollection(i){return{id:i.id,name:i.name,properties:i.properties?this.mapProperties(i.properties):null,elements:i.elementsConnection?this.toPage(i.elementsConnection,u=>this.mapCollectionElement(u.node)):void 0}}mapCollectionElement(i){if("ContentElement"===i.__typename)return{id:i.id,sortIndex:i.sortIndex,type:"CONTENT",content:this.mapContent(i.content)}}mapIssueSearchResult(i){return{contentType:Ar.CatalogContentType.ISSUE,issue:this.mapIssue(i.issue),pageHits:i.pagesConnection.edges.map(({node:u})=>({excerpt:u.excerpt,pageIndex:u.pageIndex,pageNumber:u.pageNumber,pageLabel:u.pageLabel,pageTitle:u.pageTitle,elementAlias:u.elementAlias}))}}mapPostSearchResult(i){return{contentType:Ar.CatalogContentType.POST,excerpt:i.excerpt,post:this.mapPost(i.post)}}mapBundleSearchResult(i){return{contentType:Ar.CatalogContentType.BUNDLE,bundle:this.mapBundle(i.bundle),posts:i.posts.map(u=>this.mapPostSearchResult(u))}}mapSearchResult(i){switch(i.__typename){case"IssueSearchResult":return this.mapIssueSearchResult(i);case"PostSearchResult":return this.mapPostSearchResult(i);case"BundleSearchResult":return this.mapBundleSearchResult(i);default:return}}mapRedirect(i){return{id:i.id,identifier:i.identifier,statusCode:i.statusCode,target:i.target,type:i.type}}mapMenu(i){var u;return{id:i.id,name:i.name,properties:this.mapProperties(i.properties),items:null===(u=i.items)||void 0===u?void 0:u.map(h=>this.mapMenuItem(h))}}mapMenuItem(i){return{id:i.id,name:i.name,properties:this.mapProperties(i.properties),title:i.title,description:i.description,target:i.target,cssClasses:i.cssClasses,sortIndex:i.sortIndex,url:i.url,parentId:i.parentId,thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails)}}getLocalIssues(){return(0,l.A)(function*(){return Promise.resolve({issues:[],previewIssues:[]})})()}getIssueStates(i){return(0,l.A)(function*(){return Promise.resolve(i.issues.reduce((u,h)=>({[h.issueId]:{issueId:h.issueId,installState:Ar.CatalogIssueInstallState.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}}),{}))})()}startDownload(i){return(0,l.A)(function*(){return console.warn("catalog.startDownload:"+Kr.NOT_IMPLEMENTED),{}})()}pauseDownload(i){return(0,l.A)(function*(){console.warn("catalog.pauseDownload:"+Kr.NOT_IMPLEMENTED)})()}addInvalidationListener(i){to.addListener(Ji.INVALIDATION,i)}addIssueStateListener(i,u){}deleteIssue(i){return(0,l.A)(function*(){console.warn("catalog.deleteIssue:"+Kr.NOT_IMPLEMENTED)})()}deleteIssues(i){return(0,l.A)(function*(){return console.warn("catalog.deleteIssues:"+Kr.NOT_IMPLEMENTED),{}})()}getMetadata(){return Promise.resolve({activePurchaseTypes:[]})}getPublicationProducts(i){return(0,l.A)(function*(){return console.warn("catalog.getPublicationProducts:"+Kr.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}})()}getSubscriptions(i){return(0,l.A)(function*(){return console.warn("catalog.getSubscriptions:"+Kr.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}})()}pauseDownloads(i){return(0,l.A)(function*(){return console.warn("catalog.pauseDownloads:"+Kr.NOT_IMPLEMENTED),{}})()}removeInvalidationListener(i){to.removeListener(Ji.INVALIDATION,i)}removeIssueStateListener(i,u){}startDownloads(i){return(0,l.A)(function*(){return console.warn("catalog.startDownloads:"+Kr.NOT_IMPLEMENTED),{}})()}syncLocalIssues(i){return(0,l.A)(function*(){console.warn("catalog.syncLocalIssues:"+Kr.NOT_IMPLEMENTED)})()}getProducts(i){return(0,l.A)(function*(){return console.warn("catalog.getProducts:"+Kr.NOT_IMPLEMENTED),{issues:[],subscriptions:[],publicationProducts:[],contents:[]}})()}convertIssueParams(i){return i?{contentFilter:this.issueToContentFilter(i.issueFilter,!0),sort:i.sort&&i.sort.map(u=>this.issueToContentSort(u)),first:i.first,after:i.after}:{contentFilter:this.issueToContentFilter(void 0,!0)}}convertCategoriesParams(i){return i?{taxonomyFilter:this.categoryToTaxonomyFilter(i.categoryFilter,!0),sort:i.sort&&i.sort.map(u=>this.categoryToTaxonomySort(u)),first:i.first,after:i.after,includeContents:i.includeIssues,contentsParams:i.includeIssues?this.convertIssueParams(i.issuesParams):void 0}:{taxonomyFilter:this.categoryToTaxonomyFilter(void 0,!0)}}convertPublicationsParams(i){var u;let h=null==i?void 0:i.contentsParams;return null!=i&&i.includeIssues&&(console.warn('PublicationParams: deprecated "includeIssues" used',i),h=this.convertIssueParams(null==i?void 0:i.issuesParams)),{...i,publicationFilter:this.pubToPubFilter(null==i?void 0:i.publicationFilter),sort:null==i||null===(u=i.sort)||void 0===u?void 0:u.map(m=>this.pubToPubSort(m)),includeContents:(null==i?void 0:i.includeContents)||(null==i?void 0:i.includeIssues),contentsParams:h}}convertToCategoryPage(i){return{hasNextPage:i.hasNextPage,totalCount:i.totalCount,cursor:i.cursor,nodes:i.nodes.map(u=>({id:u.id,name:u.name,type:u.type,parentCategoryId:u.parentId,thumbnails:u.thumbnails,properties:u.properties,issues:u.contents}))}}issueToContentSort(i){return i&&{index:i.index,publicationDate:i.publicationDate,property:i.property}}categoryToTaxonomySort(i){return i&&{name:i.name,property:i.property}}pubToPubSort(i){if(i)return i.currentIssuePublicationDate&&console.warn('PublicationComparator: deprecated "currentIssuePublicationDate" use',i),{index:i.index,property:i.property,currentContentPublicationDate:i.currentContentPublicationDate||i.currentIssuePublicationDate}}categoryToTaxonomyFilter(i,u){const h=i&&{AND:i.AND&&i.AND.map(m=>this.categoryToTaxonomyFilter(m,!1)),OR:i.OR&&i.OR.map(m=>this.categoryToTaxonomyFilter(m,!1)),id:i.id,parentId:i.parentCategoryId,name:i.name,properties:i.properties,contents:this.issueListToContentListFilter(i.issues)};return u?this.wrapAsCategoryFilter(h):h}issueToContentFilter(i,u){const h=i&&{AND:i.AND&&i.AND.map(m=>this.issueToContentFilter(m,!1)),OR:i.OR&&i.OR.map(m=>this.issueToContentFilter(m,!1)),id:i.id,externalId:i.externalIssueId,alias:i.alias,publicationDate:i.publicationDate,access:this.purchasableToAccessFilter(i.purchasable),purchased:i.purchased,publication:this.pubToPubFilter(i.publication)||this.issueTypeToPubFilter(i.type),properties:i.properties,taxonomies:this.stringListToTaxonomyListFilter("category",i.categories)||this.stringListToTaxonomyListFilter("tag",i.tags)};return u?this.wrapAsIssueFilter(h):h}purchasableToAccessFilter(i){return i&&{value:Ar.Access.FREE,negated:i.value}}stringListToTaxonomyListFilter(i,u){if(u)return{negated:u.negated,content:this.stringListContentToTaxonomyListContentFilter(i,u.content),size:u.size}}stringListContentToTaxonomyListContentFilter(i,u){if(u)return{operation:u.operation,value:this.stringFilterToTaxonomyFilter(i,u.value)}}stringFilterToTaxonomyFilter(i,u){return{AND:[{type:{value:i}},{id:u}]}}issueTypeToPubFilter(i){if(i)return{type:{negated:i.negated,value:"ARTICLE"===i.value?Ar.PublicationType.CHANNEL:Ar.PublicationType.KIOSK}}}pubToPubFilter(i){if(!i)return;let u=i.contents;return!i.contents&&i.issues&&(console.warn('PublicationFilter: deprecated "issues" used',i),u=this.issueListToContentListFilter(i.issues)),{AND:i.AND&&i.AND.map(h=>this.pubToPubFilter(h)),OR:i.OR&&i.OR.map(h=>this.pubToPubFilter(h)),id:i.id,type:i.type,language:i.language,properties:i.properties,contents:u}}issueListToContentListFilter(i){return i&&{negated:i.negated,content:this.issueListContentToContentListContentFilter(i.content),size:i.size}}issueListContentToContentListContentFilter(i){return i&&{operation:i.operation,value:this.issueToContentFilter(i.value,!0)}}wrapAsCategoryFilter(i){return i?{AND:[{type:{value:"category"}},i]}:{type:{value:"category"}}}wrapAsIssueFilter(i){return i?{AND:[{contentType:{value:Ar.CatalogContentType.ISSUE}},i]}:{contentType:{value:Ar.CatalogContentType.ISSUE}}}}function Rp(o){return new Date(o).getTime()}class x_{constructor(i){U(this,"version",void 0),this._getMetadata=i}getMetadata(i,u,h){return Promise.resolve({...this._getMetadata(h)})}}const _m=ri(J||(J=Ub||(Ub=Ri(["\n fragment AppWebConfigurationFields on AppWebConfiguration {\n id\n dynamicResources {\n lastModified\n }\n favicons {\n url\n mimeType\n }\n entitlementConfig {\n __typename\n ... on EntitlementConfig {\n dummy\n }\n ... on OAuthConfig {\n clientId\n tokenUrl\n loginUrl\n logoutUrl\n }\n }\n }\n"]))));class k_{constructor(){U(this,"version",void 0)}getState(i,u){let h;h="string"==typeof i?i:i.key;let m=localStorage.getItem("storefront-"+h);if(void 0===m&&(m=null),!u)return Promise.resolve({key:h,value:m});u(h,m)}setState(i,u){let h,m;return"string"==typeof i?(h=i,m=u):(h=i.key,m=i.value),null==m?localStorage.removeItem("storefront-"+h):localStorage.setItem("storefront-"+h,m),Promise.resolve()}}class Em{constructor(i,u,h,m,D){U(this,"version",new Of(2,0)),this.setConfigValue=i,this.getConfig=u,this.client=h,this.appInfo=m,this.deviceInfo=D}get config(){return this.getConfig()}sanitizeCode(i){return i.substring(0,255).trim().toUpperCase()}addSubscriptionCode(i){var u=this;return(0,l.A)(function*(){const h=u.sanitizeCode(i.code);if(u.config.subscriptionCodes.includes(h))throw{code:"DUPLICATE_CODE",message:"Code is already added: ".concat(i.code)};try{if(!((yield u.client.mutate({mutation:ri(Ce||(Ce=Bb||(Bb=Ri(["\n mutation CheckSubscriptionCodes(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!\n $subscriptionCodes: [String!]!\n ) {\n subscriptionCodes(\n appInfo: $appInfo\n deviceInfo: $deviceInfo\n codes: $subscriptionCodes\n ) {\n codes {\n code\n valid\n }\n }\n }\n "])))),variables:{appInfo:u.appInfo(),deviceInfo:u.deviceInfo(),subscriptionCodes:[h]}})).data.subscriptionCodes.codes.filter(m=>m.code===h&&m.valid).length>0))throw{code:"INVALID_CODE",message:"Code is invalid: ".concat(i.code)};u.setConfigValue("subscriptionCodes",u.config.subscriptionCodes.concat(h)),to.sendEvent(Ji.INVALIDATION,{})}catch(m){throw console.warn(m),m}})()}addSubscriptionCodes(i,u){console.warn("store.addSubscriptionCodes:"+Kr.NOT_IMPLEMENTED),u({success:!0})}getPrices(i,u){return console.warn("store.getPrices:"+Kr.NOT_IMPLEMENTED),Promise.resolve({priceInfos:[]})}getSubscriptionCodes(i){const u=this.config.subscriptionCodes;if("function"!=typeof i)return Promise.resolve({subscriptionCodes:u});i(u)}openCodeRedemption(){return(0,l.A)(function*(){console.warn("store.purchase:"+Kr.NOT_IMPLEMENTED)})()}purchase(i,u){return console.warn("store.purchase:"+Kr.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof i?i:i.productId})}removeSubscriptionCode(i){var u=this;return(0,l.A)(function*(){const h=u.sanitizeCode(i.code),m=u.config.subscriptionCodes,D=m.indexOf(h);if(!(D>-1))throw{code:"UNKNOWN_CODE",message:"No such code found: ".concat(i.code)};m.splice(D,1),u.setConfigValue("subscriptionCodes",m),to.sendEvent(Ji.INVALIDATION,{})})()}removeSubscriptionCodes(i,u){}restorePurchases(i){console.warn("store.restorePurchases:"+Kr.NOT_IMPLEMENTED)}setPurchaseStateListener(i){}subscribe(i,u){return console.warn("store.subscribe:"+Kr.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof i?i:i.productId})}}class ym{constructor(){U(this,"version",void 0)}setUserAttribute(i){return(0,l.A)(function*(){console.warn("tracking.setUserAttribute:"+Kr.NOT_IMPLEMENTED)})()}trackAction(i,u,h){console.warn("tracking.trackAction:"+Kr.NOT_IMPLEMENTED)}trackPurchase(i,u,h,m,D,H,_e){console.warn("tracking.trackPurchase:"+Kr.NOT_IMPLEMENTED)}trackView(i,u,h){console.warn("tracking.trackView:"+Kr.NOT_IMPLEMENTED)}debug(i){return(0,l.A)(function*(){console.warn("tracking.debug:"+Kr.NOT_IMPLEMENTED)})()}}const Uc=ri(it||(it=Wb||(Wb=Ri(["\nfragment EntitlementFields on EntitlementResult {\n ... on EntitlementError {\n code\n message\n }\n ... on EntitlementUserData {\n accessToken\n refreshToken\n roles\n }\n}\n"]))));class Im{constructor(i,u,h,m,D,H){U(this,"version",void 0),this.getMetadata=i,this.setConfigValue=u,this.getConfig=h,this.client=m,this.appInfo=D,this.deviceInfo=H}get config(){return this.getConfig()}entitlementMutation(i,u,h){var m=this;return(0,l.A)(function*(){try{const D=yield m.client.mutate({mutation:i,variables:{...u,appInfo:m.appInfo(),deviceInfo:m.deviceInfo()}});return m.handleEntitlementResult(h(D.data))}catch(D){throw{code:D.code||Ar.ERROR_CODE.UNKNOWN,message:D.message,error:D}}})()}getUserData(){return Promise.resolve({username:this.config.entitlementLogin,accessToken:this.config.entitlementToken,refreshToken:this.config.entitlementRefreshToken})}getRedirectUri(){const i=new URL(location.protocol+"//"+location.host+location.pathname+location.search),u=new URL(this.config.baseUrl).host;return i.pathname=i.host.indexOf(u)>-1||i.host.indexOf("localhost")>-1?i.pathname.split("/")[1]+"/":"",i.pathname=i.pathname+"oauth/callback",i.toString()}login(i){var u=this;return(0,l.A)(function*(){if(i.externalToken)return u.loginWithExternalToken(i.externalToken);{const h=u.config.entitlementConfig;switch(h.mode){case Ar.ENTITLEMENT_MODE.ENTITLEMENT:return u.loginWithUsernameAndPassword(i.username,i.password);case Ar.ENTITLEMENT_MODE.OAUTH:return u.loginWithOauth(h,i.state);default:throw{code:Ar.ERROR_CODE.CONFIGURATION_ERROR,message:"No Entitlement configured"}}}})()}loginWithExternalToken(i){var u=this;return(0,l.A)(function*(){return yield u.entitlementMutation(function xp(){return ri(Oe||(Oe=Hb||(Hb=Ri(["\n mutation LoginWithExternalToken(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $externalToken: String!,\n ) {\n loginWithExternalToken(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n externalToken: $externalToken,\n ) {\n ... EntitlementFields\n }\n }",""]))),Uc)}(),{externalToken:i},h=>h.loginWithExternalToken)})()}loginWithUsernameAndPassword(i,u){var h=this;return(0,l.A)(function*(){return yield h.entitlementMutation(function Cm(){return ri(ue||(ue=jb||(jb=Ri(["\n mutation Login(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $username: String!,\n $password: String\n ) {\n login(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n username: $username,\n password: $password\n ) {\n ... EntitlementFields\n }\n }\n \n ",""]))),Uc)}(),{username:i,password:u},m=>m.login)})()}loginWithOauth(i,u){var h=this;return(0,l.A)(function*(){const m=new URL(i.loginUrl);m.searchParams.set("response_type","code"),m.searchParams.set("client_id",i.clientId),m.searchParams.set("device_id",h.config.deviceId);const D=h.getRedirectUri();m.searchParams.set("redirectUri",D);const H=function Fp(){var o=new Uint32Array(28);return window.crypto.getRandomValues(o),Array.from(o,Bc).join("")}(),_e=yield function cu(o){return jc.apply(this,arguments)}(H);if(m.searchParams.set("code_challenge",_e),m.searchParams.set("code_challenge_method","S256"),!h.config.deviceId)throw{code:"MISSING_DEVICE_ID",message:"oauth is only available if an deviceId was specified"};const Ve=u||{};Ve.verifier=H,Ve.tokenRedirectUrl=D;const Ee=encodeURIComponent(btoa(JSON.stringify(Ve)));return m.searchParams.set("state",Ee),localStorage.setItem("loginState",Ee),window.location.href=m.toString(),new Promise(()=>{})})()}checkForOauthEntitlement(){var i=this;return(0,l.A)(function*(){const u=localStorage.getItem("loginState"),h=localStorage.getItem("logoutState");return u?i.handleOauthLogin(u):h?i.handleOauthLogout(h):void 0})()}handleOauthLogin(i){var u=this;return(0,l.A)(function*(){const h=new URL(window.location.href),m=h.searchParams.get("code"),D=h.searchParams.get("state");if(i&&i!=D)throw{code:Ar.ERROR_CODE.INVALID_CREDENTIALS,message:"Invalid State"};localStorage.removeItem("loginState");const H=JSON.parse(atob(decodeURIComponent(D))),_e=JSON.parse(localStorage.getItem("AppWebConfiguration"));if(_e.entitlementConfig.mode!==Ar.ENTITLEMENT_MODE.OAUTH)throw{code:Ar.ERROR_CODE.CONFIGURATION_ERROR,message:"Invalid entitlement mode"};const Ve=_e.entitlementConfig,Ee=Ve.clientId,tt=Ve.tokenUrl;let pt=new FormData;pt.append("grant_type","authorization_code"),pt.append("code",m),pt.append("redirect_uri",H.tokenRedirectUrl),pt.append("code_verifier",H.verifier),pt.append("client_id",Ee);let ht=yield(yield fetch(tt,{method:"POST",body:pt})).json();if(ht.error)throw{code:Ar.ERROR_CODE.INVALID_CREDENTIALS,message:"Error when retrieving token"};if(ht.access_token){var Tt;const Vt={accessToken:ht.access_token,refreshToken:ht.refresh_token,roles:ht.roles,state:H};return u.setConfigValue("entitlementToken",Vt.accessToken),u.setConfigValue("entitlementRefreshToken",Vt.refreshToken),u.setConfigValue("entitlementRoles",Vt.roles),to.sendEvent(Ji.INVALIDATION,{}),null===(Tt=Vt.state)||void 0===Tt?void 0:Tt.redirectUrl}})()}logout(i){var u=this;return(0,l.A)(function*(){const h=u.config.entitlementToken,m=u.config.entitlementRefreshToken;if(!h)throw new Error("No accessToken to logout");try{const _e=u.config.entitlementConfig;if(_e.mode===Ar.ENTITLEMENT_MODE.OAUTH&&_e.logoutUrl){var D,H;const Ve=new URL(_e.logoutUrl);return Ve.searchParams.set("redirect_uri",u.getRedirectUri()),Ve.searchParams.set("device_id",u.config.deviceId),localStorage.setItem("logoutState",JSON.stringify({redirectUri:null!==(D=null==i||null===(H=i.state)||void 0===H?void 0:H.redirectUrl)&&void 0!==D?D:"purple://app/home/open"})),window.location.href=Ve.href,new Promise(()=>{})}yield u.client.mutate({mutation:ri(ge||(ge=Vb||(Vb=Ri(["\n mutation Logout(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $accessToken: String!,\n $refreshToken: String\n ) {\n logout(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n accessToken: $accessToken,\n refreshToken: $refreshToken\n )\n }"])))),variables:{appInfo:u.appInfo(),deviceInfo:u.deviceInfo(),accessToken:h,refreshToken:m}}),u.clearLocalData()}catch(_e){throw console.warn(_e),_e}})()}handleOauthLogout(i){var u=this;return(0,l.A)(function*(){localStorage.removeItem("logoutState");const h=JSON.parse(i);return u.clearLocalData(),Promise.resolve(h.redirectUri)})()}refreshAccessToken(){var i=this;return(0,l.A)(function*(){const u=i.config.entitlementRefreshToken;if(!u)throw{code:"NO_REFRESH_TOKEN",message:"Tried to refresh without refresh token"};return yield i.entitlementMutation(function Lp(){return ri(He||(He=Kb||(Kb=Ri(["\n mutation RefreshAccessToken(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $refreshToken: String!\n ) {\n refreshAccessToken(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo\n refreshToken: $refreshToken\n ) {\n ... EntitlementFields\n }\n }\n ",""]))),Uc)}(),{refreshToken:u},h=>h.refreshAccessToken)})()}mapLoginResult(i){return{accessToken:i.accessToken,refreshToken:i.refreshToken,roles:i.roles}}mapEntitlementResult(i){return i.accessToken?this.mapEntitlementUserData(i):this.mapEntitlementError(i)}mapEntitlementUserData(i){return{accessToken:i.accessToken,refreshToken:i.refreshToken,roles:i.roles}}mapEntitlementError(i){return{message:i.message,code:this.mapEntitlementErrorCode(i.code)}}mapEntitlementErrorCode(i){switch(i){case"WRONG_PASSWORD_OR_USERNAME":case"WRONG_PASSWORD":case"AUTHENTICATION_ERROR":return Ar.ERROR_CODE.INVALID_CREDENTIALS;case"USER_DEACTIVATED":return Ar.ERROR_CODE.USER_DEACTIVATED;case"INSTALLATION_LIMIT_EXCEEDED":return Ar.ERROR_CODE.INSTALLATION_LIMIT_EXCEEDED;case"SYSTEM_ERROR_IN_REMOTE_SYSTEM":case"PARAMETER_ERROR_IN_REMOTE_SYSTEM":return Ar.ERROR_CODE.CONFIGURATION_ERROR;default:return Ar.ERROR_CODE.UNKNOWN}}handleEntitlementResult(i,u){const h=this.mapEntitlementResult(i);if(function kp(o){return"code"in o}(h))throw console.warn(h),h;return u&&this.setConfigValue("entitlementLogin",u),this.setConfigValue("entitlementToken",h.accessToken),h.refreshToken&&this.setConfigValue("entitlementRefreshToken",h.refreshToken),h.roles&&this.setConfigValue("entitlementRoles",h.roles),to.sendEvent(Ji.INVALIDATION,{}),this.mapLoginResult(h)}invalidateTokens(i){null!=i&&i.refreshTokenOnly&&this.setConfigValue("entitlementToken","devtest_".concat(this.config.entitlementToken)),null!=i&&i.accessTokenOnly&&this.setConfigValue("entitlementRefreshToken","devtest_".concat(this.config.entitlementRefreshToken))}clearLocalData(){this.setConfigValue("entitlementLogin",null),this.setConfigValue("entitlementToken",null),this.setConfigValue("entitlementRefreshToken",null),this.setConfigValue("entitlementRoles",null),to.sendEvent(Ji.INVALIDATION,{})}verifyAccessToken(i){var u=this;return(0,l.A)(function*(){return yield u.entitlementMutation(function bm(){return ri(De||(De=$b||($b=Ri(["\n mutation VerifyToken(\n $appInfo: AppInfo!,\n $deviceInfo: DeviceInfo!,\n $accessToken: String!\n ) {\n verify(\n appInfo: $appInfo,\n deviceInfo: $deviceInfo,\n accessToken: $accessToken\n ) {\n ... EntitlementFields\n }\n }\n ",""]))),Uc)}(),{accessToken:i.accessToken},h=>h.verify)})()}}function Bc(o){return("0"+o.toString(16)).substr(-2)}function jc(){return jc=(0,l.A)(function*(o){var i=yield function Tm(o){const i=(new TextEncoder).encode(o);return window.crypto.subtle.digest("SHA-256",i)}(o),u=function Mf(o){for(var i="",u=new Uint8Array(o),h=u.byteLength,m=0;m<h;m++)i+=String.fromCharCode(u[m]);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(i);return u}),jc.apply(this,arguments)}const Up="purple-catalog-audio-context";class wf{constructor(){U(this,"version",void 0),U(this,"audioElement",void 0),U(this,"title",void 0),U(this,"playbackRate",1),this.audioElement=document.getElementById(Up),this.audioElement||this.setupAudioElement(),this.setupEventListeners()}setupAudioElement(){this.audioElement=document.createElement("audio"),this.audioElement.id=Up,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(i){const u={displayName:this.title,url:this.audioElement.src,...i};to.sendEvent(Ji.MEDIA_STATUS,u)}sendProgress(i){to.sendEvent(Ji.MEDIA_PROGRESS,i)}addProgressListener(i){to.addListener(Ji.MEDIA_PROGRESS,i)}addStatusListener(i){to.addListener(Ji.MEDIA_STATUS,i)}getPlaybackRate(i){var u=this;return(0,l.A)(function*(){return{playbackRate:u.playbackRate}})()}pauseAudio(){var i=this;return(0,l.A)(function*(){i.audioElement.pause()})()}removeProgressListener(i){to.removeListener(Ji.MEDIA_PROGRESS,i)}removeStatusListener(i){to.removeListener(Ji.MEDIA_STATUS,i)}resumeAudio(){return this.audioElement.play()}seekTo(i){var u=this;return(0,l.A)(function*(){"number"==typeof i&&(i={time:i}),u.audioElement.currentTime=i.time/1e3})()}setPlaybackRate(i){var u=this;return(0,l.A)(function*(){return"number"==typeof i&&(i={playbackRate:i}),u.playbackRate=i.playbackRate,u.audioElement.playbackRate=u.playbackRate,{playbackRate:u.audioElement.playbackRate}})()}startAudio(i,u){var h=this;return(0,l.A)(function*(){"string"==typeof i&&(i={displayName:i,url:u}),h.audioElement.src=i.url,h.audioElement.playbackRate=h.playbackRate,h.title=i.displayName;try{return h.audioElement.play()}catch{h.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 Rf{constructor(){U(this,"version",void 0)}getBaseUrl(){return(0,l.A)(function*(){return console.warn("issue.getBaseUrl:"+Kr.NOT_IMPLEMENTED),{baseUrl:""}})()}getPages(i){return(0,l.A)(function*(){return console.warn("issue.getPages:"+Kr.NOT_IMPLEMENTED),[]})()}getToc(i){return(0,l.A)(function*(){return console.warn("issue.getToc:"+Kr.NOT_IMPLEMENTED),[]})()}openFile(i){return(0,l.A)(function*(){console.warn("issue.openFile:"+Kr.NOT_IMPLEMENTED)})()}}class Dm{constructor(){U(this,"version",void 0)}share(i){return(0,l.A)(function*(){console.warn("Share.share:"+Kr.NOT_IMPLEMENTED)})()}}class Om{constructor(i){U(this,"version",void 0),this.getPagerInfo=i}getInfo(){return Promise.resolve(this.getPagerInfo())}navigateTo(i){return Promise.resolve(void 0)}addIssueChangeListener(i){}removeIssueChangeListener(i){}retryLoad(){}}class Am{constructor(){U(this,"version",void 0)}getConsent(i){throw new Error("Method not implemented.")}grantConsent(i){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 Bp(o){return new ae(function(i,u){return new se(function(h){var m,D,H;try{m=u(i).subscribe({next:function(_e){_e.errors&&(H=o({graphQLErrors:_e.errors,response:_e,operation:i,forward:u}))?D=H.subscribe({next:h.next.bind(h),error:h.error.bind(h),complete:h.complete.bind(h)}):h.next(_e)},error:function(_e){(H=o({operation:i,networkError:_e,graphQLErrors:_e&&_e.result&&_e.result.errors,forward:u}))?D=H.subscribe({next:h.next.bind(h),error:h.error.bind(h),complete:h.complete.bind(h)}):h.error(_e)},complete:function(){H||h.complete.bind(h)()}})}catch(_e){o({networkError:_e,operation:i,forward:u}),h.error(_e)}return function(){m&&m.unsubscribe(),D&&m.unsubscribe()}})})}!function(o){function i(u){var h=o.call(this)||this;return h.link=Bp(u),h}we(i,o),i.prototype.request=function(u,h){return this.link.request(u,h)}}(ae);class jp{constructor(i,u){U(this,"version",void 0),U(this,"app",void 0),U(this,"appBrowser",void 0),U(this,"account",void 0),U(this,"bookmark",void 0),U(this,"content",void 0),U(this,"consent",void 0),U(this,"catalog",void 0),U(this,"entitlement",void 0),U(this,"experience",void 0),U(this,"issue",void 0),U(this,"issuePager",void 0),U(this,"media",void 0),U(this,"share",void 0),U(this,"storefront",void 0),U(this,"metadata",void 0),U(this,"state",void 0),U(this,"store",void 0),U(this,"tracking",void 0),U(this,"pageData",{}),U(this,"pagerInfo",void 0),U(this,"cache",new Uu),U(this,"client",void 0),this.config=i,this.onConfigChange=u;const h=Bp(({graphQLErrors:D})=>{null==D||D.forEach(H=>this.config.onGraphQLError(H))}),m=new Mi({uri:"".concat(this.config.contentUrl,"/graphql")});this.client=new Iu({cache:this.cache,link:Xe([h,m]),defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}}}),this.account=new N_,this.app=new am,this.appBrowser=new um,this.bookmark=new kc,this.content=new Df,this.entitlement=new Im(()=>this.configToMetadata(),(D,H)=>this.setConfigValue(D,H),()=>i,this.client,this.appInfo,this.deviceInfo),this.issue=new Rf,this.issuePager=new Om(()=>this.pagerInfo),this.media=new wf,this.metadata=new x_(D=>this.configToMetadata(D)),this.share=new Dm,this.state=new k_,this.store=new Em((D,H)=>this.setConfigValue(D,H),()=>i,this.client,this.appInfo,this.deviceInfo),this.tracking=new ym,this.consent=new Am,this.catalog=null,this.storefront=null}appInfo(){return{appId:this.config.appId,appVersion:this.config.appVersion,preview:this.config.preview}}deviceInfo(){var i;return{deviceId:this.config.deviceId,deviceModel:this.config.deviceModel,locale:this.config.locale,smallestScreenWidthDp:this.config.smallestScreenWidthDp,deviceOs:this.config.deviceOs,platform:(null!==(i=this.config.platform)&&void 0!==i?i:"web").toUpperCase()}}authorization(){return{accessToken:this.config.entitlementToken,subscriptionCodes:this.config.subscriptionCodes,accountAccessToken:this.config.accountAccessToken}}closeView(){console.warn("closeView:"+Kr.NOT_IMPLEMENTED)}setConfig(i,u){this.config=i,this.onConfigChange({...this.config},u)}setConfigValue(i,u){this.config[i]=u,this.setConfig(this.config,i)}setPageData(i,u){this.pageData[i]=u}setIssuePagerInfo(i){this.pagerInfo=i}configToMetadata(i){const u=this.pageData[i]||{};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:u.id,page_alias:u.alias,page_label:u.label,page_title:u.title,page_filename:u.filename,page_number:u.number}}}class xl extends jp{constructor(i,u){super(i,u),this.config=i,this.onConfigChange=u,this.catalog=new L_(()=>this.config,this,this.client,this.appInfo,this.deviceInfo,this.authorization)}static getAppIdByPath(i,u,h=!1){return(0,l.A)(function*(){const m=Pm(u),D=yield m.query({query:ri(X||(X=Fb||(Fb=Ri(["\n query AppWebConfigForPath(\n $path: String!\n $preview: Boolean! = false\n ) {\n appConfigurationForPath(\n path: $path,\n preview: $preview\n ) {\n ... AppWebConfigurationFields\n }\n }\n ","\n "]))),_m),variables:{path:i,preview:h}});return m.stop(),xl.mapAppConfiguration(D.data.appConfigurationForPath)})()}static getAppIdByDomain(i,u,h=!1){return(0,l.A)(function*(){const m=Pm(u),D=yield m.query({query:ri(W||(W=kb||(kb=Ri(["\n query AppWebConfigForDomain(\n $domainName: String!\n $preview: Boolean! = false\n ) {\n appConfigurationForDomain(\n domainName: $domainName,\n preview: $preview\n ) {\n ... AppWebConfigurationFields\n }\n }\n ","\n "]))),_m),variables:{domainName:i,preview:h}});return m.stop(),xl.mapAppConfiguration(D.data.appConfigurationForDomain)})()}static mapAppConfiguration(i){var u;return i?{id:i.id,dynamicResources:{lastModified:null===(u=i.dynamicResources)||void 0===u?void 0:u.lastModified},favicons:i.favicons.map(h=>xl.mapFavicons(h)),entitlementConfig:xl.mapEntitlementConfig(i.entitlementConfig)}:null}static mapFavicons(i){if(i)return{url:i.url,mimeType:i.mimeType}}static mapEntitlementConfig(i){switch(null==i?void 0:i.__typename){case"EntitlementConfig":return{mode:Ar.ENTITLEMENT_MODE.ENTITLEMENT};case"OAuthConfig":return{mode:Ar.ENTITLEMENT_MODE.OAUTH,clientId:i.clientId,loginUrl:i.loginUrl,tokenUrl:i.tokenUrl,logoutUrl:i.logoutUrl};default:return{mode:Ar.ENTITLEMENT_MODE.NONE}}}}function Pm(o){return new Iu({uri:o+"/graphql",cache:new Uu,defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"}}})}class Uu extends Sd{constructor(...i){super(...i),U(this,"read",()=>null),U(this,"write",()=>{}),U(this,"diff",()=>({})),U(this,"watch",()=>()=>{}),U(this,"reset",(0,l.A)(function*(){})),U(this,"evict",()=>!1),U(this,"restore",()=>this),U(this,"extract",()=>({})),U(this,"removeOptimistic",()=>{}),U(this,"batch",()=>{}),U(this,"performTransaction",()=>{}),U(this,"recordOptimisticTransaction",()=>{}),U(this,"transformDocument",u=>u),U(this,"transformForLink",u=>u),U(this,"identify",()=>{}),U(this,"gc",()=>[]),U(this,"modify",()=>!1),U(this,"readQuery",()=>null),U(this,"readFragment",()=>null),U(this,"writeQuery",()=>{}),U(this,"writeFragment",()=>{}),U(this,"updateQuery",()=>null),U(this,"updateFragment",()=>null)}}class Mm{constructor(i){U(this,"purple",void 0),U(this,"getCssUrls",void 0),U(this,"getResourceUrl",void 0),U(this,"onLocationChange",void 0),U(this,"onSetTitle",void 0),U(this,"windows",[]),U(this,"messageEventListener",void 0),U(this,"invalidationEventListener",void 0),U(this,"audioStatusListener",void 0),U(this,"audioProgressListener",void 0),U(this,"issuePagerStateListener",void 0),this.purple=i.purple,this.getCssUrls=i.getCssUrls||(()=>({})),this.getResourceUrl=i.getResourceUrl||(u=>u),this.onLocationChange=i.onLocationChange||(u=>{}),this.onSetTitle=i.onSetTitle||(u=>{}),this.setup()}setup(){var i=this;this.messageEventListener=function(){var u=(0,l.A)(function*(h){if(i.windows.includes(h.source))try{const m=JSON.parse(h.data),{callback:D,key:H,params:_e,webViewId:Ve,pageId:Ee}=m;if(D&&H){let tt,pt;try{tt=yield i.handleMessage(H,_e,Ve,Ee)}catch(ht){console.warn(ht),pt=ht}h.source.postMessage(JSON.stringify({callback:D,data:tt,error:pt}),"*")}}catch(m){console.warn(m)}});return function(h){return u.apply(this,arguments)}}(),this.invalidationEventListener=u=>{this.windows.forEach(h=>{h.postMessage(JSON.stringify({key:Fu.CATALOG_INVALIDATION,data:u.detail}),"*")})},this.audioStatusListener=u=>{this.windows.forEach(h=>{h.postMessage(JSON.stringify({key:Fu.MEDIA_STATUS,data:u.detail}),"*")})},this.audioProgressListener=u=>{this.windows.forEach(h=>{h.postMessage(JSON.stringify({key:Fu.MEDIA_PROGRESS,data:u.detail}),"*")})},this.issuePagerStateListener=u=>{this.windows.forEach(h=>{h.postMessage(JSON.stringify({key:Fu.ISSUE_PAGER_STATE,data:u.detail}),"*")})},to.addListener(Ji.INVALIDATION,this.invalidationEventListener),to.addListener(Ji.MEDIA_STATUS,this.audioStatusListener),to.addListener(Ji.MEDIA_PROGRESS,this.audioProgressListener),to.addListener(Ji.ISSUE_PAGER_STATE,this.issuePagerStateListener),window.addEventListener("message",this.messageEventListener)}destroy(){window.removeEventListener("message",this.messageEventListener),to.removeListener(Ji.INVALIDATION,this.invalidationEventListener),to.removeListener(Ji.MEDIA_STATUS,this.audioStatusListener),to.removeListener(Ji.MEDIA_PROGRESS,this.audioProgressListener),to.removeListener(Ji.ISSUE_PAGER_STATE,this.issuePagerStateListener)}connectWindow(i){i.postMessage(Jn.ENV_INIT,"*"),this.windows.push(i)}disconnectWindow(i){this.windows=this.windows.filter(u=>u!==i)}handleMessage(i,u,h,m){var D=this;return(0,l.A)(function*(){var H,_e,Ve,Ee,tt,pt,ht,Tt,Vt,Jt,ln,Rt,dn,nn,Rn,kn,Un,Ir,Fr,Ki,ki,gi,Ti,go,du,Bu,ju,Vc,kl,Bo,Vu,Fl,cs,ya,Ua,Nf,Ba,Ul,$c,Bl,$u,Lf,xf,Kc,kf;switch(i){case Jn.APP_PERFORM_ACTION_URL:return null===(H=D.purple.app)||void 0===H?void 0:H.performActionUrl(u);case Jn.APP_BROWSER_GET_DISPLAY_CONFIG:return D.purple.appBrowser.getDisplayConfig();case Jn.ACCOUNT_ASSIGN_LOCAL_PURCHASES:return null===(_e=D.purple.account)||void 0===_e?void 0:_e.assignLocalPurchases(u);case Jn.ACCOUNT_GET_USER_DATA:return null===(Ve=D.purple.account)||void 0===Ve?void 0:Ve.getUserData();case Jn.ACCOUNT_LOGIN:return null===(Ee=D.purple.account)||void 0===Ee?void 0:Ee.login(u);case Jn.ACCOUNT_LOGOUT:return null===(tt=D.purple.account)||void 0===tt?void 0:tt.logout();case Jn.BOOKMARK_CREATE:return null===(pt=D.purple.bookmark)||void 0===pt?void 0:pt.createBookmark(u);case Jn.BOOKMARK_DELETE:return null===(ht=D.purple.bookmark)||void 0===ht?void 0:ht.deleteBookmark(u);case Jn.BOOKMARK_GET:return null===(Tt=D.purple.bookmark)||void 0===Tt?void 0:Tt.getBookmarks();case Jn.CATALOG_GET_CATEGORIES:return null===(Vt=D.purple.catalog)||void 0===Vt?void 0:Vt.getCategories(u);case Jn.CATALOG_GET_ISSUES:return null===(Jt=D.purple.catalog)||void 0===Jt?void 0:Jt.getIssues(u);case Jn.CATALOG_GET_METADATA:return null===(ln=D.purple.catalog)||void 0===ln?void 0:ln.getMetadata();case Jn.CATALOG_GET_PUBLICATIONS:return null===(Rt=D.purple.catalog)||void 0===Rt?void 0:Rt.getPublications(u);case Jn.CATALOG_GET_PUBLICATION_PRODUCTS:return null===(dn=D.purple.catalog)||void 0===dn?void 0:dn.getPublicationProducts(u);case Jn.CATALOG_GET_SUBSCRIPTIONS:return null===(nn=D.purple.catalog)||void 0===nn?void 0:nn.getSubscriptions(u);case Jn.CATALOG_SEARCH:return null===(Rn=D.purple.catalog)||void 0===Rn?void 0:Rn.search(u);case Jn.CATALOG_GET_ISSUE_STATES:return null===(kn=D.purple.catalog)||void 0===kn?void 0:kn.getIssueStates(u);case Jn.CLOSE_VIEW:return D.purple.closeView();case Jn.CONTENT_OPEN:return D.purple.content.open(u);case Jn.ENTITLEMENT_GET_USER_DATA:return null===(Un=D.purple.entitlement)||void 0===Un?void 0:Un.getUserData();case Jn.ENTITLEMENT_LOGIN:return null===(Ir=D.purple.entitlement)||void 0===Ir?void 0:Ir.login(u);case Jn.ENTITLEMENT_LOGOUT:return null===(Fr=D.purple.entitlement)||void 0===Fr?void 0:Fr.logout();case Jn.ENV_RESOURCE_URL:return D.getResourceUrl(u);case Jn.ENV_RESIZE:return D.handleResize(h,u);case Jn.ENV_CSS_URLS:return D.getCssUrls();case Jn.ENV_TITLE:return D.onSetTitle(u);case Jn.ENV_LOCATION:return D.onLocationChange(u);case Jn.ISSUE_GET_BASE_URL:return null===(Ki=D.purple.issue)||void 0===Ki?void 0:Ki.getBaseUrl();case Jn.ISSUE_GET_PAGES:return new Promise(fu=>{var Zo;return null===(Zo=D.purple.issue)||void 0===Zo?void 0:Zo.getPages(fu)});case Jn.ISSUE_GET_TOC:return new Promise(fu=>{var Zo;return null===(Zo=D.purple.issue)||void 0===Zo?void 0:Zo.getToc(fu)});case Jn.ISSUE_PAGER_GET_INFO:return null===(ki=D.purple.issuePager)||void 0===ki?void 0:ki.getInfo();case Jn.ISSUE_PAGER_NAVIGATE_TO:return null===(gi=D.purple.issuePager)||void 0===gi?void 0:gi.navigateTo(u);case Jn.MEDIA_START_AUDIO:return null===(Ti=D.purple.media)||void 0===Ti?void 0:Ti.startAudio(u);case Jn.MEDIA_PAUSE_AUDIO:return null===(go=D.purple.media)||void 0===go?void 0:go.pauseAudio();case Jn.MEDIA_RESUME_AUDIO:return null===(du=D.purple.media)||void 0===du?void 0:du.resumeAudio();case Jn.MEDIA_STOP_AUDIO:return null===(Bu=D.purple.media)||void 0===Bu?void 0:Bu.stopAudio();case Jn.MEDIA_SEEK_TO:return null===(ju=D.purple.media)||void 0===ju?void 0:ju.seekTo(u);case Jn.MEDIA_GET_PLAYBACK_RATE:return null===(Vc=D.purple.media)||void 0===Vc?void 0:Vc.getPlaybackRate();case Jn.MEDIA_SET_PLAYBACK_RATE:return null===(kl=D.purple.media)||void 0===kl?void 0:kl.setPlaybackRate(u);case Jn.METADATA_GET_METADATA:return null===(Bo=D.purple.metadata)||void 0===Bo?void 0:Bo.getMetadata(u,null,m);case Jn.SHARE_SHARE:return null===(Vu=D.purple.share)||void 0===Vu?void 0:Vu.share(u);case Jn.STATE_GET_STATE:return null===(Fl=D.purple.state)||void 0===Fl?void 0:Fl.getState(u);case Jn.STATE_SET_STATE:return null===(cs=D.purple.state)||void 0===cs?void 0:cs.setState(u);case Jn.STORE_ADD_SUBSCRIPTION_CODE:return null===(ya=D.purple.store)||void 0===ya?void 0:ya.addSubscriptionCode(u);case Jn.STORE_ADD_SUBSCRIPTION_CODES:return new Promise(fu=>{var Zo;return null===(Zo=D.purple.store)||void 0===Zo?void 0:Zo.addSubscriptionCodes(u,fu)});case Jn.STORE_GET_PRICES:return null===(Ua=D.purple.store)||void 0===Ua?void 0:Ua.getPrices(u);case Jn.STORE_GET_SUBSCRIPTION_CODES:return null===(Nf=D.purple.store)||void 0===Nf?void 0:Nf.getSubscriptionCodes();case Jn.STORE_OPEN_CODE_REDEMPTION:return null===(Ba=D.purple.store)||void 0===Ba?void 0:Ba.openCodeRedemption();case Jn.STORE_PURCHASE:return null===(Ul=D.purple.store)||void 0===Ul?void 0:Ul.purchase(u);case Jn.STORE_REMOVE_SUBSCRIPTION_CODE:return null===($c=D.purple.store)||void 0===$c?void 0:$c.removeSubscriptionCode(u);case Jn.STORE_REMOVE_SUBSCRIPTION_CODES:return new Promise(fu=>{var Zo;return null===(Zo=D.purple.store)||void 0===Zo?void 0:Zo.removeSubscriptionCodes(u,fu)});case Jn.STORE_RESTORE_PURCHASES:return null===(Bl=D.purple.store)||void 0===Bl?void 0:Bl.restorePurchases();case Jn.STORE_SUBSCRIBE:return null===($u=D.purple.store)||void 0===$u?void 0:$u.subscribe(u);case Jn.TRACKING_TRACK_ACTION:return null===(Lf=D.purple.tracking)||void 0===Lf?void 0:Lf.trackAction(u);case Jn.TRACKING_TRACK_VIEW:return null===(xf=D.purple.tracking)||void 0===xf?void 0:xf.trackView(u);case Jn.TRACKING_TRACK_PURCHASE:return null===(Kc=D.purple.tracking)||void 0===Kc?void 0:Kc.trackPurchase(u);case Jn.TRACKING_SET_USER_ATTRIBUTE:return null===(kf=D.purple.tracking)||void 0===kf?void 0:kf.setUserAttribute(u)}})()}handleResize(i,u){return(0,l.A)(function*(){if(i){const h="webView-"+i;let m=document.getElementById(h);m||(m=document.createElement("style"),m.id=h,document.head.appendChild(m)),m.innerHTML="@media print {#"+i+" iframe {height: "+u+"px !important;}}"}})()}print(i){i.postMessage(Jn.ENV_PRINT,"*")}back(i){i.postMessage(Jn.ENV_BACK,"*")}forward(i){i.postMessage(Jn.ENV_FORWARD,"*")}reload(i){i.postMessage(Jn.ENV_RELOAD,"*")}}},9360:(ee,_,c)=>{"use strict";function l(B){return null!==B&&"object"==typeof B&&"constructor"in B&&B.constructor===Object}function p(B={},ne={}){Object.keys(ne).forEach(te=>{typeof B[te]>"u"?B[te]=ne[te]:l(ne[te])&&l(B[te])&&Object.keys(ne[te]).length>0&&p(B[te],ne[te])})}c.d(_,{YE:()=>v,zk:()=>$});const E={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 v(){const B=typeof document<"u"?document:{};return p(B,E),B}const U={document:E,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:B=>typeof setTimeout>"u"?(B(),null):setTimeout(B,0),cancelAnimationFrame(B){typeof setTimeout>"u"||clearTimeout(B)}};function $(){const B=typeof window<"u"?window:{};return p(B,U),B}},467:(ee,_,c)=>{"use strict";function l(E,v,U,$,B,ne,te){try{var me=E[ne](te),V=me.value}catch(Z){return void U(Z)}me.done?v(V):Promise.resolve(V).then($,B)}function p(E){return function(){var v=this,U=arguments;return new Promise(function($,B){var ne=E.apply(v,U);function te(V){l(ne,$,B,te,me,"next",V)}function me(V){l(ne,$,B,te,me,"throw",V)}te(void 0)})}}c.d(_,{A:()=>p})},1635:(ee,_,c)=>{"use strict";function Z(we,ye,ze,Ye){return new(ze||(ze=Promise))(function(Fe,he){function Ne(A){try{R(Ye.next(A))}catch(L){he(L)}}function st(A){try{R(Ye.throw(A))}catch(L){he(L)}}function R(A){A.done?Fe(A.value):function be(Fe){return Fe instanceof ze?Fe:new ze(function(he){he(Fe)})}(A.value).then(Ne,st)}R((Ye=Ye.apply(we,ye||[])).next())})}function j(we){return this instanceof j?(this.v=we,this):new j(we)}function I(we,ye,ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var be,Ye=ze.apply(we,ye||[]),Fe=[];return be={},he("next"),he("throw"),he("return"),be[Symbol.asyncIterator]=function(){return this},be;function he(G){Ye[G]&&(be[G]=function(K){return new Promise(function(ce,Be){Fe.push([G,K,ce,Be])>1||Ne(G,K)})})}function Ne(G,K){try{!function st(G){G.value instanceof j?Promise.resolve(G.value.v).then(R,A):L(Fe[0][2],G)}(Ye[G](K))}catch(ce){L(Fe[0][3],ce)}}function R(G){Ne("next",G)}function A(G){Ne("throw",G)}function L(G,K){G(K),Fe.shift(),Fe.length&&Ne(Fe[0][0],Fe[0][1])}}function N(we){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ze,ye=we[Symbol.asyncIterator];return ye?ye.call(we):(we=function Y(we){var ye="function"==typeof Symbol&&Symbol.iterator,ze=ye&&we[ye],Ye=0;if(ze)return ze.call(we);if(we&&"number"==typeof we.length)return{next:function(){return we&&Ye>=we.length&&(we=void 0),{value:we&&we[Ye++],done:!we}}};throw new TypeError(ye?"Object is not iterable.":"Symbol.iterator is not defined.")}(we),ze={},Ye("next"),Ye("throw"),Ye("return"),ze[Symbol.asyncIterator]=function(){return this},ze);function Ye(Fe){ze[Fe]=we[Fe]&&function(he){return new Promise(function(Ne,st){!function be(Fe,he,Ne,st){Promise.resolve(st).then(function(R){Fe({value:R,done:Ne})},he)}(Ne,st,(he=we[Fe](he)).done,he.value)})}}}c.d(_,{AQ:()=>I,N3:()=>j,sH:()=>Z,xN:()=>N}),"function"==typeof SuppressedError&&SuppressedError},8330:ee=>{"use strict";ee.exports={rE:"3.6.0"}}},ee=>{ee(ee.s=1589)}]);
|